@font-face {
  font-family: "Gordita";
  src: url("/assets/gordita-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gordita";
  src: url("/assets/gordita-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gordita";
  src: url("/assets/gordita-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Reo Sans";
  src: url("/assets/reo-sans-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Reo Sans";
  src: url("/assets/reo-sans-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink-950: #0b1726;
  --ink-900: #10233a;
  --ink-800: #18324d;
  --ink-700: #294762;
  --mint-600: #119b82;
  --mint-500: #1cb99a;
  --mint-100: #d9f4ed;
  --fog-100: #edf3f4;
  --fog-50: #f6f9f9;
  --paper: #ffffff;
  --amber: #dc843f;
  --red: #c84f5d;
  --blue: #527ea6;
  --text: #182a3d;
  --muted: #718191;
  --line: #dce6e8;
  --shadow: 0 20px 60px rgba(16, 35, 58, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--fog-50);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--fog-50);
  font-family: "Gordita", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(28, 185, 154, 0.34);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint-600);
  font-family: "Reo Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #84e3d1;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(460px, 1.06fr) minmax(460px, 0.94fr);
}

.auth-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px);
  color: white;
  background:
    radial-gradient(circle at 74% 18%, rgba(28, 185, 154, 0.24), transparent 28%),
    linear-gradient(145deg, var(--ink-950), var(--ink-800));
}

.auth-story::before {
  position: absolute;
  top: -18vw;
  right: -22vw;
  width: 54vw;
  height: 54vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(255, 255, 255, 0.018), 0 0 0 16vw rgba(255, 255, 255, 0.014);
  content: "";
}

.auth-logo {
  z-index: 1;
  width: fit-content;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink-900);
  font-family: "Reo Sans", sans-serif;
  line-height: 1;
}

.brand-wordmark span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-wordmark small {
  margin-top: 7px;
  color: var(--mint-600);
  font-family: "Gordita", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand-wordmark--light {
  color: white;
}

.brand-wordmark--light small {
  color: #84e3d1;
}

.auth-statement {
  z-index: 1;
  max-width: 620px;
  margin: auto 0;
  padding: 80px 0 50px;
}

.auth-statement h1 {
  max-width: 620px;
  margin: 0;
  color: white;
  font-family: "Reo Sans", sans-serif;
  font-size: clamp(3.4rem, 6vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.auth-statement h1 span {
  color: var(--mint-500);
}

.auth-copy {
  max-width: 510px;
  margin: 28px 0 0;
  color: #b9c9d5;
  font-size: 1.03rem;
  line-height: 1.72;
}

.auth-signal {
  position: absolute;
  right: 7%;
  bottom: 14%;
  display: flex;
  height: 90px;
  align-items: flex-end;
  gap: 8px;
  opacity: 0.55;
  transform: rotate(-90deg);
}

.auth-signal span {
  display: block;
  width: 5px;
  border-radius: 10px;
  background: var(--mint-500);
  animation: signal 2.4s ease-in-out infinite;
}

.auth-signal span:nth-child(1), .auth-signal span:nth-child(7) { height: 18px; }
.auth-signal span:nth-child(2), .auth-signal span:nth-child(6) { height: 38px; animation-delay: 0.12s; }
.auth-signal span:nth-child(3), .auth-signal span:nth-child(5) { height: 62px; animation-delay: 0.24s; }
.auth-signal span:nth-child(4) { height: 88px; animation-delay: 0.36s; }

.auth-environment {
  z-index: 1;
  display: flex;
  margin: 0;
  align-items: center;
  gap: 10px;
  color: #9eb0c0;
  font-size: 0.78rem;
}

.auth-environment span,
.live-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 5px rgba(28, 185, 154, 0.14);
}

.auth-panel {
  display: grid;
  padding: 48px;
  place-items: center;
  background: var(--paper);
}

.auth-card {
  width: min(100%, 440px);
}

.auth-logo-mobile {
  display: none;
  width: fit-content;
  margin-bottom: 48px;
}

.auth-card h2 {
  margin: 0;
  color: var(--ink-900);
  font-family: "Reo Sans", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

.form-intro {
  margin: 12px 0 34px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-card label,
.ticket-drawer label {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink-800);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b8c9ce;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.visibility-button {
  position: absolute;
  top: 0;
  right: 6px;
  height: 48px;
  border: 0;
  color: var(--mint-600);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 24px;
  padding: 0 18px;
  justify-content: space-between;
  border: 1px solid var(--ink-900);
  color: white;
  background: var(--ink-900);
  box-shadow: 0 10px 24px rgba(16, 35, 58, 0.16);
}

.primary-button:hover {
  background: var(--ink-800);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.secondary-button {
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink-800);
  background: white;
}

.secondary-button:hover {
  border-color: var(--mint-500);
  color: var(--mint-600);
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--mint-600);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
}

.back-button {
  margin-bottom: 42px;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.code-input {
  font-family: "Reo Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-align: center;
}

.console {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  color: white;
  background: var(--ink-900);
}

.sidebar::after {
  position: absolute;
  right: 0;
  bottom: 14%;
  width: 3px;
  height: 88px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(var(--mint-500), transparent);
  content: "";
}

.sidebar-brand {
  display: flex;
  min-height: 118px;
  padding: 28px 26px;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand-wordmark span {
  font-size: 1.65rem;
}

.main-nav {
  padding: 28px 16px;
}

.nav-label {
  margin: 0 14px 12px;
  color: #70889c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-label--second {
  margin-top: 34px;
}

.nav-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 48px;
  margin: 3px 0;
  padding: 0 14px;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  color: #afbfcb;
  background: transparent;
  text-align: left;
}

.nav-item svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-item:first-of-type svg {
  fill: currentColor;
  stroke: none;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.is-active {
  color: white;
  background: rgba(28, 185, 154, 0.13);
}

.nav-item.is-active::before {
  position: absolute;
  left: -16px;
  width: 3px;
  height: 28px;
  border-radius: 0 4px 4px 0;
  background: var(--mint-500);
  content: "";
}

.nav-count {
  min-width: 25px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--ink-900);
  background: var(--mint-500);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
}

.sidebar-user {
  display: grid;
  min-height: 86px;
  margin: auto 16px 18px;
  padding: 15px;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--ink-900);
  background: var(--mint-500);
  font-size: 0.72rem;
  font-weight: 700;
  place-items: center;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 0.76rem;
}

.sidebar-user span {
  margin-top: 3px;
  color: #8ea3b5;
  font-size: 0.65rem;
}

.sidebar-user button {
  border: 0;
  color: #8ea3b5;
  background: transparent;
  font-size: 1.1rem;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.workspace-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 118px;
  padding: 0 clamp(24px, 4vw, 62px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 249, 0.92);
  backdrop-filter: blur(16px);
}

.workspace-header h1 {
  margin: 0;
  color: var(--ink-900);
  font-family: "Reo Sans", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-state {
  display: flex;
  height: 38px;
  padding: 0 14px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-state.is-offline span {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(200, 79, 93, 0.13);
}

.icon-button,
.mobile-menu {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-800);
  background: white;
  font-size: 1.2rem;
  place-items: center;
}

.mobile-menu {
  display: none;
}

.view {
  display: none;
  padding: clamp(24px, 4vw, 58px) clamp(20px, 4vw, 62px) 72px;
}

.view.is-visible {
  display: block;
  animation: enter 260ms ease both;
}

.queue-brief {
  position: relative;
  display: grid;
  min-height: 242px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 54px);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  align-items: center;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--ink-900);
}

.queue-brief::after {
  position: absolute;
  top: -90px;
  right: -50px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.018), 0 0 0 110px rgba(255, 255, 255, 0.012);
  content: "";
}

.queue-brief h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Reo Sans", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
}

.queue-brief p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 16px 0 0;
  color: #aebfcb;
  line-height: 1.65;
}

.queue-pulse {
  position: relative;
  z-index: 2;
  display: flex;
  height: 110px;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.1vw, 15px);
}

.queue-pulse span {
  width: clamp(6px, 0.7vw, 10px);
  border-radius: 10px;
  background: var(--mint-500);
  box-shadow: 0 0 24px rgba(28, 185, 154, 0.24);
}

.queue-pulse span:nth-child(1), .queue-pulse span:nth-child(7) { height: 20px; opacity: 0.42; }
.queue-pulse span:nth-child(2), .queue-pulse span:nth-child(6) { height: 44px; opacity: 0.58; }
.queue-pulse span:nth-child(3), .queue-pulse span:nth-child(5) { height: 76px; opacity: 0.78; }
.queue-pulse span:nth-child(4) { height: 108px; }

.metric-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 152px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
}

.metric::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 62px;
  height: 4px;
  border-radius: 0 0 0 10px;
  background: var(--metric-color);
  content: "";
}

.metric--new { --metric-color: var(--amber); }
.metric--active { --metric-color: var(--blue); }
.metric--closed { --metric-color: var(--mint-500); }
.metric--knowledge { --metric-color: var(--ink-700); }

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.metric strong {
  display: block;
  margin: 12px 0 7px;
  color: var(--ink-900);
  font-family: "Reo Sans", sans-serif;
  font-size: 2.65rem;
  letter-spacing: -0.04em;
}

.content-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.72fr);
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.panel-heading {
  display: flex;
  padding: 26px 28px 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.panel h2,
.knowledge-intro h2,
.ticket-drawer h2,
.status-hero h2 {
  margin: 0;
  color: var(--ink-900);
  font-family: "Reo Sans", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.compact-list {
  border-top: 1px solid var(--line);
}

.compact-ticket {
  display: grid;
  min-height: 82px;
  padding: 14px 28px;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.compact-ticket:last-child {
  border-bottom: 0;
}

.compact-ticket:hover {
  background: var(--fog-50);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-color, var(--muted));
}

.compact-ticket strong,
.compact-ticket small {
  display: block;
}

.compact-ticket strong {
  overflow: hidden;
  color: var(--ink-800);
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-ticket small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.compact-ticket time,
.compact-ticket > span:last-child {
  color: var(--muted);
  font-size: 0.68rem;
}

.focus-panel {
  padding: 28px;
}

.focus-panel h2 {
  margin-top: 28px;
  font-size: 2rem;
  line-height: 1.08;
}

.focus-panel > p:not(.eyebrow) {
  min-height: 68px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.focus-scale {
  display: flex;
  height: 48px;
  margin: 28px 0;
  align-items: flex-end;
  gap: 5px;
}

.focus-scale span {
  flex: 1;
  min-height: 8px;
  border-radius: 4px 4px 1px 1px;
  background: var(--fog-100);
}

.focus-scale span.is-filled {
  background: var(--amber);
}

.ticket-toolbar {
  display: grid;
  padding: 22px;
  grid-template-columns: minmax(240px, 1fr) 160px 150px 150px auto;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.search-field input {
  padding-left: 44px;
}

.date-field {
  margin: 0;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-field input {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.table-meta {
  display: flex;
  padding: 16px 22px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.7rem;
}

.ticket-table-wrap {
  overflow-x: auto;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
}

.ticket-table th,
.ticket-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.ticket-table th {
  color: var(--muted);
  background: var(--fog-50);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ticket-table td {
  color: var(--muted);
  font-size: 0.73rem;
}

.ticket-table td strong,
.ticket-table td small {
  display: block;
}

.ticket-table td strong {
  max-width: 350px;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-table td small {
  max-width: 350px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-table tr[data-ticket-id] {
  cursor: pointer;
}

.ticket-table tr[data-ticket-id]:hover td {
  background: #f9fbfb;
}

.status-pill {
  display: inline-flex;
  min-width: 72px;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 12%, white);
  font-size: 0.64rem;
  font-weight: 700;
}

.open-ticket {
  display: grid;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-700);
  background: white;
  place-items: center;
}

.empty-state {
  padding: 34px 24px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.empty-state--card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.knowledge-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.knowledge-intro h2 {
  font-size: 2rem;
}

.knowledge-intro > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.knowledge-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-card {
  display: flex;
  min-height: 240px;
  padding: 24px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
}

.knowledge-card:hover {
  border-color: #b9d7d0;
  box-shadow: 0 14px 40px rgba(16, 35, 58, 0.07);
  transform: translateY(-2px);
}

.knowledge-card > span {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--mint-600);
  background: var(--mint-100);
  font-size: 0.61rem;
  font-weight: 700;
}

.knowledge-card h3 {
  margin: 24px 0 10px;
  color: var(--ink-900);
  font-family: "Reo Sans", sans-serif;
  font-size: 1.22rem;
  line-height: 1.25;
}

.knowledge-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.knowledge-card button {
  margin-top: auto;
  align-self: flex-start;
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  gap: 22px;
}

.status-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 38px;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--ink-900);
}

.status-hero h2 {
  max-width: 340px;
  margin-top: 24px;
  color: white;
  font-size: 2.25rem;
}

.status-hero > p:not(.eyebrow) {
  max-width: 400px;
  color: #9eb0c0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.status-orbit {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.02), 0 0 0 80px rgba(255, 255, 255, 0.012);
}

.status-orbit span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 3px solid var(--ink-900);
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 20px var(--mint-500);
}

.status-orbit.is-error span {
  background: var(--red);
  box-shadow: 0 0 20px var(--red);
}

.service-panel {
  align-self: start;
  padding: 10px 28px;
}

.service-row {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

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

.service-row strong {
  color: var(--ink-800);
  font-size: 0.82rem;
}

.service-row div span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.service-badge {
  min-width: 78px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--fog-100);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}

.service-badge--ok {
  color: var(--mint-600);
  background: var(--mint-100);
}

.service-badge--error {
  color: var(--red);
  background: #f9e6e8;
}

.service-badge--neutral {
  color: var(--blue);
  background: #e8f0f7;
}

.drawer-scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(8, 22, 36, 0.4);
  backdrop-filter: blur(2px);
}

.ticket-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(100%, 610px);
  height: 100vh;
  overflow-y: auto;
  background: white;
  box-shadow: -22px 0 70px rgba(16, 35, 58, 0.2);
  transform: translateX(105%);
  transition: transform 240ms ease;
}

.ticket-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 108px;
  padding: 25px 30px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.drawer-body {
  padding: 28px 30px 50px;
}

.drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.drawer-fact {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fog-50);
}

.drawer-fact span,
.drawer-fact strong {
  display: block;
}

.drawer-fact span,
.field-label,
.message-block > span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.drawer-fact strong {
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-block {
  margin: 24px 0;
  padding: 20px;
  border-left: 3px solid var(--mint-500);
  background: var(--fog-50);
}

.message-block p {
  margin: 11px 0 0;
  color: var(--ink-800);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.document-list {
  display: flex;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}

.document-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-700);
  background: white;
  font-size: 0.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 16px;
}

.knowledge-check {
  display: flex !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.knowledge-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--mint-600);
}

.knowledge-check span {
  color: var(--ink-800);
  font-size: 0.72rem;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  background: var(--ink-900);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: var(--red);
}

.sidebar-scrim {
  display: none;
}

@keyframes signal {
  0%, 100% { transform: scaleY(0.75); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-toolbar { grid-template-columns: minmax(250px, 1fr) 160px 1fr 1fr; }
  .ticket-toolbar .secondary-button { grid-column: 4; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  :root { --sidebar-width: 248px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px; }
  .auth-logo-mobile { display: block; }
  .content-grid, .status-layout { grid-template-columns: 1fr; }
  .queue-brief { grid-template-columns: 1fr; }
  .queue-pulse { display: none; }
  .ticket-toolbar { grid-template-columns: 1fr 1fr; }
  .ticket-toolbar .search-field { grid-column: 1 / -1; }
  .ticket-toolbar .secondary-button { grid-column: auto; }
}

@media (max-width: 760px) {
  .sidebar {
    width: min(86vw, 290px);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open { transform: translateX(0); }

  .sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(8, 22, 36, 0.42);
  }

  .sidebar-scrim.is-visible { display: block; }
  .workspace { margin-left: 0; }
  .workspace-header { height: 94px; padding: 0 18px; }
  .workspace-header > div:nth-child(2) { flex: 1; margin-left: 13px; }
  .workspace-header h1 { font-size: 1.45rem; }
  .workspace-header .eyebrow { display: none; }
  .mobile-menu { display: grid; }
  .live-state { display: none; }
  .view { padding: 22px 16px 52px; }
  .queue-brief { min-height: 210px; padding: 28px; }
  .queue-brief h2 { font-size: 2.35rem; }
  .metric-grid { gap: 10px; }
  .metric { min-height: 130px; padding: 18px; }
  .metric strong { font-size: 2.15rem; }
  .compact-ticket { grid-template-columns: 8px minmax(0, 1fr) auto; padding: 13px 18px; }
  .compact-ticket time { display: none; }
  .panel-heading { padding: 22px 18px 16px; }
  .knowledge-intro { display: block; }
  .knowledge-intro > p { margin-top: 14px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .ticket-toolbar { padding: 15px; grid-template-columns: 1fr; }
  .ticket-toolbar .search-field { grid-column: auto; }
  .ticket-table th:nth-child(3), .ticket-table td:nth-child(3),
  .ticket-table th:nth-child(4), .ticket-table td:nth-child(4) { display: none; }
  .status-hero { min-height: 340px; padding: 28px; }
  .drawer-body, .drawer-header { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 480px) {
  .auth-panel { padding: 24px 20px; }
  .auth-logo-mobile { margin-bottom: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 118px; padding: 15px; }
  .metric strong { margin: 8px 0 5px; font-size: 1.9rem; }
  .metric small { font-size: 0.62rem; }
  .drawer-facts, .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
