/* [project]/admin/src/app/globals.css [app-client] (css) */
:root {
  --admin-bg: #f4f8fc;
  --admin-surface: #fff;
  --admin-surface-soft: #ecf4fb;
  --admin-elevated: #f8fbfe;
  --admin-text: #142033;
  --admin-text-soft: #52657a;
  --admin-muted: #7d8ea1;
  --admin-border: #d8e5f0;
  --admin-border-strong: #b8cee0;
  --admin-blue: #1c8dde;
  --admin-blue-hover: #0d73be;
  --admin-blue-soft: #ddf0ff;
  --admin-focus: #75c7ff;
  --admin-success: #138a5b;
  --admin-success-soft: #e1f6ed;
  --admin-warning: #b7791f;
  --admin-warning-soft: #fff2d6;
  --admin-danger: #c2413a;
  --admin-danger-soft: #ffe2df;
  --admin-chip: #eef3f8;
  --admin-shadow: 0 16px 42px #14203314;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--admin-bg);
  min-width: 320px;
  color: var(--admin-text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

body {
  background: linear-gradient(180deg, #ddf0ff8c, #f4f8fc00 18rem),
    var(--admin-bg);
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input {
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s, opacity .16s;
}

:focus-visible {
  outline: 3px solid var(--admin-focus);
  outline-offset: 2px;
}

.admin-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.admin-sidebar {
  border-right: 1px solid var(--admin-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #ffffffeb;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  position: sticky;
  top: 0;
}

.admin-brand {
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  display: flex;
}

.admin-brand:hover {
  background: var(--admin-blue-soft);
}

.admin-brand-mark {
  background: var(--admin-blue);
  color: #fff;
  border-radius: 8px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 800;
  display: grid;
}

.admin-brand strong, .admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 15px;
  line-height: 20px;
}

.admin-brand small {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 18px;
}

.admin-nav {
  gap: 4px;
  margin-top: 24px;
  display: grid;
}

.admin-nav a {
  color: var(--admin-text-soft);
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 650;
  display: flex;
}

.admin-nav a span {
  background: var(--admin-chip);
  width: 24px;
  height: 24px;
  color: var(--admin-muted);
  border-radius: 6px;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  display: grid;
}

.admin-nav a:hover, .admin-nav a.active {
  border-color: var(--admin-border);
  background: var(--admin-blue-soft);
  color: var(--admin-text);
}

.admin-nav a.active {
  box-shadow: inset 3px 0 0 var(--admin-blue);
}

.admin-nav a.active span {
  background: var(--admin-blue);
  color: #fff;
}

.admin-sidebar-footer {
  border-top: 1px solid var(--admin-border);
  margin-top: auto;
  padding: 16px 10px 2px;
}

.admin-sidebar-footer p, .admin-sidebar-footer strong {
  margin: 0;
}

.admin-sidebar-footer p {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 18px;
}

.admin-sidebar-footer strong {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  display: block;
}

.admin-sidebar-footer div {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  display: flex;
}

.admin-sidebar-footer span {
  background: var(--admin-chip);
  color: var(--admin-text-soft);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
}

.admin-main {
  min-width: 0;
}

.admin-commandbar {
  z-index: 10;
  border-bottom: 1px solid var(--admin-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #f4f8fceb;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 24px;
  display: flex;
  position: sticky;
  top: 0;
}

.admin-search {
  align-items: center;
  gap: 8px;
  width: min(640px, 100%);
  display: flex;
}

.admin-search label {
  color: var(--admin-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.admin-search input, .admin-search select {
  border: 1px solid var(--admin-border);
  min-width: 0;
  color: var(--admin-text);
  background: #fff;
  border-radius: 6px;
  padding: 9px 11px;
}

.admin-search input {
  flex: 1;
}

.admin-search select {
  max-width: 180px;
}

.admin-search button, .admin-session button, .admin-button {
  border: 1px solid var(--admin-blue);
  background: var(--admin-blue);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
  display: inline-flex;
}

.admin-search button:hover, .admin-session button:hover, .admin-button:hover {
  border-color: var(--admin-blue-hover);
  background: var(--admin-blue-hover);
}

.admin-button.secondary {
  border-color: var(--admin-border);
  color: var(--admin-text);
  background: #fff;
}

.admin-button.secondary:hover {
  border-color: var(--admin-border-strong);
  background: var(--admin-elevated);
}

.admin-button.danger {
  border-color: var(--admin-danger);
  background: var(--admin-danger);
}

.admin-button[aria-disabled="true"], .admin-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.admin-session {
  color: var(--admin-text-soft);
  align-items: center;
  gap: 12px;
  font-size: 13px;
  display: flex;
}

.admin-content {
  padding: 26px 24px 40px;
}

.admin-page-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  display: flex;
}

.admin-page-header h1, .admin-page-header p {
  margin: 0;
}

.admin-page-header h1 {
  color: var(--admin-text);
  margin-top: 5px;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.admin-page-header div > p:last-child {
  max-width: 760px;
  color: var(--admin-text-soft);
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
}

.admin-page-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

.admin-eyebrow {
  color: var(--admin-blue-hover);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.admin-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  display: grid;
}

.admin-metric {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  border-radius: 8px;
  min-height: 112px;
  padding: 14px;
}

.admin-metric p, .admin-metric strong, .admin-metric span {
  margin: 0;
  display: block;
}

.admin-metric p {
  color: var(--admin-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.admin-metric strong {
  color: var(--admin-text);
  margin-top: 12px;
  font-size: 26px;
  font-weight: 760;
  line-height: 32px;
}

.admin-metric span {
  color: var(--admin-text-soft);
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
}

.admin-metric-info {
  background: linear-gradient(180deg, var(--admin-blue-soft), white);
  border-color: #b8dcf6;
}

.admin-metric-success {
  background: linear-gradient(180deg, var(--admin-success-soft), white);
  border-color: #aedbc9;
}

.admin-metric-warning {
  background: linear-gradient(180deg, var(--admin-warning-soft), white);
  border-color: #efd49d;
}

.admin-metric-danger {
  background: linear-gradient(180deg, var(--admin-danger-soft), white);
  border-color: #efb9b4;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: start;
  gap: 24px;
  margin-top: 24px;
  display: grid;
}

.admin-grid-wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  display: grid;
}

.admin-stack {
  gap: 18px;
  display: grid;
}

.admin-panel, .admin-action-rail {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  border-radius: 8px;
}

.admin-panel {
  padding: 18px;
}

.admin-panel h2, .admin-panel h3, .admin-action-rail h2, .admin-action-rail h3 {
  color: var(--admin-text);
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 26px;
}

.admin-panel h3, .admin-action-rail h3 {
  font-size: 14px;
  line-height: 20px;
}

.admin-muted {
  color: var(--admin-text-soft);
  font-size: 14px;
  line-height: 22px;
}

.admin-action-rail {
  gap: 16px;
  padding: 16px;
  display: grid;
  position: sticky;
  top: 80px;
}

.admin-action-group {
  gap: 8px;
  display: grid;
}

.admin-action-group + .admin-action-group {
  border-top: 1px solid var(--admin-border);
  padding-top: 16px;
}

.admin-action-list {
  gap: 8px;
  display: grid;
}

.admin-form {
  gap: 10px;
  display: grid;
}

.admin-form-separated {
  border-top: 1px solid var(--admin-border);
  padding-top: 14px;
}

.admin-form label {
  color: var(--admin-muted);
  text-transform: uppercase;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  line-height: 18px;
  display: grid;
}

.admin-form input, .admin-form select, .admin-form textarea {
  border: 1px solid var(--admin-border);
  width: 100%;
  color: var(--admin-text);
  text-transform: none;
  background: #fff;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 20px;
}

.admin-form textarea {
  resize: vertical;
  min-height: 76px;
}

.admin-form input:disabled, .admin-form select:disabled, .admin-form textarea:disabled {
  background: var(--admin-elevated);
  color: var(--admin-muted);
}

.admin-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.admin-filter-grid label {
  color: var(--admin-muted);
  text-transform: uppercase;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  line-height: 18px;
  display: grid;
}

.admin-filter-grid input, .admin-filter-grid select {
  border: 1px solid var(--admin-border);
  width: 100%;
  color: var(--admin-text);
  text-transform: none;
  background: #fff;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 20px;
}

.admin-filter-grid input:disabled, .admin-filter-grid select:disabled {
  background: var(--admin-elevated);
  color: var(--admin-muted);
}

.admin-metadata summary {
  cursor: pointer;
  color: var(--admin-blue-hover);
  font-size: 12px;
  font-weight: 750;
}

.admin-metadata pre {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  max-width: 360px;
  max-height: 220px;
  color: var(--admin-text-soft);
  white-space: pre-wrap;
  border-radius: 8px;
  margin: 8px 0 0;
  padding: 10px;
  font-size: 11px;
  line-height: 16px;
  overflow: auto;
}

.admin-notice {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 20px;
}

.admin-notice-success {
  background: var(--admin-success-soft);
  color: var(--admin-success);
  border-color: #b4dec9;
}

.admin-notice-warning {
  background: var(--admin-warning-soft);
  color: var(--admin-warning);
  border-color: #efd49d;
}

.admin-notice-danger {
  background: var(--admin-danger-soft);
  color: var(--admin-danger);
  border-color: #efb9b4;
}

.admin-compact-list {
  gap: 8px;
  display: grid;
}

.admin-compact-row {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: grid;
}

.admin-compact-row strong, .admin-compact-row span {
  display: block;
}

.admin-compact-row strong {
  font-size: 13px;
  line-height: 19px;
}

.admin-compact-row span {
  color: var(--admin-text-soft);
  font-size: 12px;
  line-height: 18px;
}

.admin-badge {
  border: 1px solid var(--admin-border);
  background: var(--admin-chip);
  color: var(--admin-text-soft);
  border-radius: 999px;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  display: inline-flex;
}

.admin-badge-info {
  background: var(--admin-blue-soft);
  color: var(--admin-blue-hover);
  border-color: #acd9f8;
}

.admin-badge-success {
  background: var(--admin-success-soft);
  color: var(--admin-success);
  border-color: #b4dec9;
}

.admin-badge-warning {
  background: var(--admin-warning-soft);
  color: var(--admin-warning);
  border-color: #efd49d;
}

.admin-badge-danger {
  background: var(--admin-danger-soft);
  color: var(--admin-danger);
  border-color: #efb9b4;
}

.admin-badge-row {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.admin-table-wrap {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  background: #fff;
  width: 100%;
  min-width: 720px;
}

.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--admin-border);
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
}

.admin-table th {
  background: var(--admin-elevated);
  color: var(--admin-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.admin-table td {
  color: var(--admin-text);
  font-size: 13px;
  line-height: 20px;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tr.admin-selected-row td {
  background: var(--admin-blue-soft);
}

.admin-mono {
  font-family: SFMono-Regular, Cascadia Code, JetBrains Mono, ui-monospace, monospace;
  font-size: 12px;
}

.admin-ticket-detail {
  gap: 16px;
  display: grid;
}

.admin-ticket-detail-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  display: grid;
}

.admin-ticket-detail-head strong, .admin-ticket-detail-head span {
  display: block;
}

.admin-ticket-detail-head strong {
  color: var(--admin-text);
  font-size: 15px;
  line-height: 22px;
}

.admin-ticket-detail-head span {
  color: var(--admin-text-soft);
  font-size: 13px;
  line-height: 20px;
}

.admin-ticket-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.admin-ticket-facts div {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
  padding: 10px;
}

.admin-ticket-facts span, .admin-ticket-facts strong, .admin-ticket-facts a {
  display: block;
}

.admin-ticket-facts span {
  color: var(--admin-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
}

.admin-ticket-facts strong, .admin-ticket-facts a {
  color: var(--admin-text);
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
}

.admin-ticket-thread {
  gap: 10px;
  display: grid;
}

.admin-ticket-message {
  border: 1px solid var(--admin-border);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
}

.admin-ticket-message-note {
  background: var(--admin-blue-soft);
  border-color: #acd9f8;
}

.admin-ticket-message header {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  display: flex;
}

.admin-ticket-message strong {
  color: var(--admin-text);
  font-size: 13px;
  line-height: 19px;
}

.admin-ticket-message span {
  color: var(--admin-text-soft);
  font-size: 12px;
  line-height: 18px;
}

.admin-ticket-message p {
  color: var(--admin-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 21px;
}

.admin-ticket-action-summary {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
  gap: 2px;
  padding: 10px;
  display: grid;
}

.admin-ticket-action-summary span, .admin-ticket-action-summary strong, .admin-ticket-action-summary small {
  display: block;
}

.admin-ticket-action-summary span, .admin-ticket-action-summary small {
  color: var(--admin-text-soft);
  font-size: 12px;
  line-height: 18px;
}

.admin-ticket-action-summary strong {
  color: var(--admin-text);
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 19px;
}

.admin-ticket-assignee-results {
  gap: 6px;
  display: grid;
}

.admin-ticket-assignee-results button {
  border: 1px solid var(--admin-border);
  cursor: pointer;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  gap: 2px;
  padding: 8px 10px;
  display: grid;
}

.admin-ticket-assignee-results button:hover {
  border-color: var(--admin-blue);
  background: var(--admin-blue-soft);
}

.admin-ticket-assignee-results strong, .admin-ticket-assignee-results span {
  display: block;
}

.admin-ticket-assignee-results strong {
  color: var(--admin-text);
  font-size: 13px;
  line-height: 18px;
}

.admin-ticket-assignee-results span {
  color: var(--admin-text-soft);
  overflow-wrap: anywhere;
  font-family: SFMono-Regular, Cascadia Code, JetBrains Mono, ui-monospace, monospace;
  font-size: 11px;
  line-height: 16px;
}

.admin-ticket-refresh {
  align-items: center;
  gap: 8px;
  display: flex;
}

.admin-ticket-refresh span {
  color: var(--admin-text-soft);
  white-space: nowrap;
  font-size: 12px;
  line-height: 18px;
}

.admin-ticket-workspace {
  grid-template-columns: 330px minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
  margin-top: 24px;
  display: grid;
}

.admin-ticket-queue-panel, .admin-ticket-chat-panel, .admin-ticket-side-panel {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  border-radius: 8px;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.admin-ticket-chat-panel {
  grid-template-rows: auto minmax(420px, 1fr) auto;
  min-height: 680px;
}

.admin-ticket-queue-panel, .admin-ticket-side-panel {
  position: sticky;
  top: 80px;
}

.admin-ticket-panel-head, .admin-ticket-chat-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.admin-ticket-panel-head h2, .admin-ticket-chat-header h2, .admin-ticket-context h2 {
  color: var(--admin-text);
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 26px;
}

.admin-ticket-panel-head p, .admin-ticket-chat-header p {
  color: var(--admin-text-soft);
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 20px;
}

.admin-ticket-panel-head > span {
  background: var(--admin-blue-soft);
  min-width: 34px;
  height: 34px;
  color: var(--admin-blue-hover);
  border-radius: 8px;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  display: grid;
}

.admin-ticket-queue-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.admin-ticket-queue-tab {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  min-height: 44px;
  color: var(--admin-text-soft);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 750;
  line-height: 16px;
  display: flex;
}

.admin-ticket-queue-tab:hover {
  border-color: var(--admin-border-strong);
  background: var(--admin-blue-soft);
  color: var(--admin-text);
}

.admin-ticket-queue-tab strong {
  min-width: 24px;
  height: 24px;
  color: var(--admin-blue-hover);
  background: #fff;
  border-radius: 999px;
  place-items: center;
  font-size: 12px;
  display: grid;
}

.admin-ticket-queue-tab-active {
  border-color: var(--admin-blue);
  background: var(--admin-blue-soft);
  color: var(--admin-text);
}

.admin-ticket-filter-drawer {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
}

.admin-ticket-filter-drawer summary {
  cursor: pointer;
  color: var(--admin-text);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 760;
  line-height: 18px;
}

.admin-ticket-filter-form {
  border-top: 1px solid var(--admin-border);
  gap: 10px;
  padding: 12px;
  display: grid;
}

.admin-ticket-filter-form label {
  color: var(--admin-muted);
  text-transform: uppercase;
  gap: 6px;
  font-size: 12px;
  font-weight: 760;
  line-height: 16px;
  display: grid;
}

.admin-ticket-filter-form input, .admin-ticket-filter-form select {
  border: 1px solid var(--admin-border);
  width: 100%;
  min-height: 36px;
  color: var(--admin-text);
  text-transform: none;
  background: #fff;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 520;
  line-height: 18px;
}

.admin-ticket-list {
  gap: 10px;
  display: grid;
}

.admin-ticket-list-card {
  border: 1px solid var(--admin-border);
  background: #fff;
  border-radius: 8px;
  gap: 6px;
  padding: 12px;
  display: grid;
}

.admin-ticket-list-card:hover {
  border-color: var(--admin-border-strong);
  background: var(--admin-elevated);
}

.admin-ticket-list-card-active {
  border-color: var(--admin-blue);
  background: var(--admin-blue-soft);
}

.admin-ticket-list-topline, .admin-ticket-list-footer {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-ticket-list-topline strong {
  color: var(--admin-blue-hover);
  font-size: 13px;
  line-height: 18px;
}

.admin-ticket-list-title {
  color: var(--admin-text);
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 760;
  line-height: 20px;
}

.admin-ticket-list-meta, .admin-ticket-list-snippet, .admin-ticket-list-footer {
  color: var(--admin-text-soft);
  font-size: 12px;
  line-height: 18px;
}

.admin-ticket-list-snippet {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.admin-ticket-list-pagination {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  padding: 10px 12px;
  display: flex;
}

.admin-ticket-list-pagination span {
  color: var(--admin-text-soft);
  font-size: 12px;
  line-height: 18px;
}

.admin-ticket-chat-header {
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 14px;
}

.admin-ticket-chat-header > div:first-child > span {
  color: var(--admin-blue-hover);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  display: block;
}

.admin-ticket-chat-thread {
  align-content: start;
  gap: 12px;
  min-height: 520px;
  padding-right: 2px;
  display: grid;
  overflow: auto;
}

.admin-ticket-chat-message {
  border: 1px solid var(--admin-border);
  background: #fff;
  border-radius: 8px;
  gap: 7px;
  width: min(82%, 680px);
  padding: 12px;
  display: grid;
}

.admin-ticket-chat-message-player {
  justify-self: start;
}

.admin-ticket-chat-message-staff {
  background: var(--admin-blue-soft);
  border-color: #acd9f8;
  justify-self: end;
}

.admin-ticket-chat-message-note {
  background: var(--admin-warning-soft);
  border-color: #efd49d;
  justify-self: center;
}

.admin-ticket-chat-message-system {
  background: var(--admin-elevated);
  justify-self: center;
}

.admin-ticket-chat-message header {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  display: flex;
}

.admin-ticket-chat-message strong {
  color: var(--admin-text);
  font-size: 13px;
  line-height: 19px;
}

.admin-ticket-chat-message span {
  color: var(--admin-text-soft);
  font-size: 12px;
  line-height: 18px;
}

.admin-ticket-chat-message p {
  color: var(--admin-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 13px;
  line-height: 21px;
}

.admin-ticket-chat-composer {
  border-top: 1px solid var(--admin-border);
  background: linear-gradient(#fff0, #fff 22px);
  gap: 8px;
  padding-top: 14px;
  display: grid;
}

.admin-ticket-chat-composer-hint {
  color: var(--admin-text-soft);
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.admin-ticket-chat-composer-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.admin-ticket-chat-composer textarea {
  resize: vertical;
  border: 1px solid var(--admin-border);
  width: 100%;
  min-height: 44px;
  max-height: 150px;
  color: var(--admin-text);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
}

.admin-ticket-chat-composer textarea:disabled {
  background: var(--admin-elevated);
  color: var(--admin-muted);
}

.admin-ticket-side-panel {
  align-content: start;
}

.admin-ticket-context {
  gap: 10px;
  display: grid;
}

.admin-ticket-context-grid {
  gap: 8px;
  display: grid;
}

.admin-ticket-context-grid div {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
  gap: 3px;
  padding: 10px;
  display: grid;
}

.admin-ticket-context-grid span {
  color: var(--admin-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
}

.admin-ticket-context-grid strong, .admin-ticket-context-grid a, .admin-ticket-context-grid small {
  color: var(--admin-text);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
}

.admin-ticket-context + .admin-action-group {
  border-top: 1px solid var(--admin-border);
  padding-top: 16px;
}

.admin-empty {
  border: 1px dashed var(--admin-border-strong);
  background: var(--admin-elevated);
  text-align: center;
  border-radius: 8px;
  padding: 22px;
}

.admin-empty h3, .admin-empty p {
  margin: 0;
}

.admin-empty p {
  color: var(--admin-text-soft);
  margin-top: 6px;
  font-size: 14px;
  line-height: 22px;
}

.admin-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  display: flex;
}

.admin-tabs a {
  border: 1px solid var(--admin-border);
  color: var(--admin-text-soft);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 720;
}

.admin-tabs a:hover {
  border-color: var(--admin-blue);
  background: var(--admin-blue-soft);
  color: var(--admin-text);
}

.admin-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.admin-field {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  border-radius: 8px;
  padding: 12px;
}

.admin-field span, .admin-field strong {
  display: block;
}

.admin-field span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.admin-field strong {
  color: var(--admin-text);
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
}

.admin-checklist {
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.admin-checklist li {
  border: 1px solid var(--admin-border);
  background: var(--admin-elevated);
  color: var(--admin-text-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
}

.admin-login-shell {
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.admin-login-card {
  border: 1px solid var(--admin-border);
  width: min(420px, 100%);
  box-shadow: var(--admin-shadow);
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 28px;
}

.admin-login-card h1, .admin-login-card p {
  margin: 0;
}

.admin-login-card h1 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 32px;
}

.admin-login-card p {
  color: var(--admin-text-soft);
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
}

.admin-login-form {
  text-align: left;
  gap: 12px;
  margin-top: 22px;
  display: grid;
}

.admin-login-form label {
  color: var(--admin-muted);
  text-transform: uppercase;
  gap: 6px;
  font-size: 12px;
  font-weight: 760;
  line-height: 18px;
  display: grid;
}

.admin-login-form input, .admin-login-form select {
  border: 1px solid var(--admin-border);
  width: 100%;
  color: var(--admin-text);
  text-transform: none;
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  line-height: 22px;
}

.admin-login-form .admin-button {
  width: 100%;
}

.admin-login-error {
  background: var(--admin-danger-soft);
  text-align: left;
  border: 1px solid #efb9b4;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--admin-danger) !important;
  margin: 0 !important;
}

.admin-login-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  display: flex;
}

@media (max-width: 1360px) {
  .admin-ticket-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .admin-ticket-side-panel {
    grid-column: 1 / -1;
    position: static;
  }

  .admin-ticket-context-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-brand span:last-child, .admin-nav a {
    font-size: 0;
  }

  .admin-nav a span {
    margin: 0 auto;
  }

  .admin-sidebar-footer {
    display: none;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid, .admin-ticket-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-ticket-queue-panel, .admin-ticket-side-panel {
    position: static;
  }

  .admin-ticket-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-action-rail {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
    height: auto;
    position: static;
  }

  .admin-brand span:last-child {
    display: block;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nav a {
    font-size: 13px;
  }

  .admin-commandbar, .admin-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-content, .admin-commandbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-search {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-session {
    justify-content: space-between;
  }

  .admin-summary, .admin-field-grid, .admin-ticket-detail-head, .admin-ticket-facts, .admin-ticket-context-grid, .admin-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-ticket-panel-head, .admin-ticket-chat-header, .admin-ticket-list-topline, .admin-ticket-list-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-ticket-queue-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-ticket-chat-message {
    width: 100%;
  }

  .admin-ticket-chat-panel {
    min-height: 0;
  }

  .admin-ticket-chat-thread {
    min-height: 360px;
  }

  .admin-ticket-chat-composer-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*# sourceMappingURL=admin_src_app_globals_0~2evyr.css.map*/