:root {
  color-scheme: dark;
  --canvas: #07080b;
  --canvas-raised: #0b0e14;
  --surface: #121419;
  --surface-raised: #181d27;
  --surface-hover: #202733;
  --surface-selected: #172442;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #fafafc;
  --text-soft: #c7ced8;
  --muted: #8e9aa9;
  --muted-faint: #5f6a78;
  --brand: #0050fe;
  --brand-bright: #2871ff;
  --info: #39c7ff;
  --success: #48d16b;
  --warning: #e6b748;
  --danger: #f54356;
  --magenta: #ff4f9a;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.26);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-sans: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% -16%, rgba(0, 80, 254, 0.15), transparent 29rem),
    radial-gradient(circle at 15% 110%, rgba(255, 79, 154, 0.08), transparent 25rem),
    var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:not(:disabled), select:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.035em; }
[hidden] { display: none !important; }

::selection { background: rgba(57, 199, 255, 0.32); color: var(--text); }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }

.eyebrow {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); }
.optional { color: var(--muted); font-size: 0.78em; font-weight: 500; }

/* Buttons, fields and small reusable primitives ------------------------ */
.button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.82rem;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  border-color: rgba(102, 151, 255, 0.58);
  box-shadow: 0 8px 20px rgba(0, 80, 254, 0.22);
  color: #fff;
}
.button-primary:hover:not(:disabled) { box-shadow: 0 12px 26px rgba(0, 80, 254, 0.34); }
.button-secondary {
  background: rgba(0, 80, 254, 0.12);
  border-color: rgba(68, 126, 255, 0.35);
  color: #b9d0ff;
}
.button-secondary:hover:not(:disabled) { background: rgba(0, 80, 254, 0.2); }
.button-quiet { border-color: var(--line); color: var(--text-soft); }
.button-quiet:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--line-strong); color: var(--text); }
.button-warning { background: rgba(230, 183, 72, 0.12); border-color: rgba(230, 183, 72, 0.44); color: #ffd77a; }
.button-warning:hover:not(:disabled) { background: rgba(230, 183, 72, 0.2); }
.button-danger { background: rgba(245, 67, 86, 0.13); border-color: rgba(245, 67, 86, 0.52); color: #ffabb4; }
.button-danger:hover:not(:disabled) { background: rgba(245, 67, 86, 0.22); }
.button-block { width: 100%; }
.button-small { font-size: 0.76rem; min-height: 32px; padding: 0.36rem 0.6rem; }
.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  display: inline-flex;
  font-size: 1.14rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  width: 38px;
}
.icon-button:hover { background: var(--surface-hover); border-color: var(--line-strong); color: var(--text); }
.text-button {
  background: transparent;
  border: 0;
  color: #9dc4ff;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 0.25rem 0;
}
.text-button:hover { color: #dce9ff; }

input, select {
  background: #0e1118;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  min-height: 39px;
  padding: 0.52rem 0.7rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
input::placeholder { color: var(--muted-faint); }
input:hover, select:hover { border-color: rgba(255, 255, 255, 0.24); }
input:focus, select:focus { border-color: var(--info); box-shadow: 0 0 0 3px rgba(57, 199, 255, 0.12); outline: 0; }

.status-dot {
  background: var(--muted);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(142, 154, 169, 0.1);
  display: inline-block;
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}
.status-dot-live { background: var(--success); box-shadow: 0 0 0 3px rgba(72, 209, 107, 0.13), 0 0 14px rgba(72, 209, 107, 0.5); }
.status-dot-error { background: var(--danger); box-shadow: 0 0 0 3px rgba(245, 67, 86, 0.13); }
.status-dot-warning { background: var(--warning); box-shadow: 0 0 0 3px rgba(230, 183, 72, 0.14); }
.status-chip {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.69rem;
  font-weight: 750;
  gap: 0.32rem;
  line-height: 1;
  max-width: 100%;
  padding: 0.35rem 0.52rem;
  white-space: nowrap;
}
.status-neutral { background: rgba(142, 154, 169, 0.1); border-color: rgba(142, 154, 169, 0.18); color: #b4bdc9; }
.status-good, .status-active, .status-license { background: rgba(72, 209, 107, 0.11); border-color: rgba(72, 209, 107, 0.22); color: #7aee96; }
.status-info, .status-trial { background: rgba(57, 199, 255, 0.11); border-color: rgba(57, 199, 255, 0.24); color: #85ddff; }
.status-warning, .status-trial_expired { background: rgba(230, 183, 72, 0.11); border-color: rgba(230, 183, 72, 0.24); color: #ffd36a; }
.status-danger, .status-revoked, .status-none { background: rgba(245, 67, 86, 0.11); border-color: rgba(245, 67, 86, 0.23); color: #ff9eaa; }

/* Login --------------------------------------------------------------- */
.login-screen {
  align-items: center;
  display: grid;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  place-items: center;
  position: relative;
}
.login-screen::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
  pointer-events: none;
  position: absolute;
  z-index: -2;
}
.login-orb { border-radius: 999px; filter: blur(14px); pointer-events: none; position: absolute; z-index: -1; }
.login-orb-a { background: rgba(0, 80, 254, 0.24); height: 25rem; right: calc(50% - 34rem); top: -12rem; width: 25rem; }
.login-orb-b { background: rgba(255, 79, 154, 0.12); bottom: -15rem; height: 25rem; left: calc(50% - 36rem); width: 25rem; }
.login-card {
  background: linear-gradient(145deg, rgba(24, 29, 39, 0.96), rgba(14, 17, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 446px;
  padding: 38px;
  width: min(446px, 100%);
}
.brand-lockup { align-items: center; display: inline-flex; gap: 0.55rem; }
.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #2e7cff, #0047e5 65%, #083185);
  border: 1px solid rgba(164, 196, 255, 0.7);
  border-radius: 9px 4px 9px 4px;
  box-shadow: 0 6px 18px rgba(0, 80, 254, 0.28);
  color: #fff;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  letter-spacing: -0.12em;
  padding-right: 0.12em;
  transform: skewX(-9deg);
  width: 28px;
}
.brand-name { font-size: 1.05rem; font-style: italic; font-weight: 800; letter-spacing: -0.05em; }
.brand-product { color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; margin-left: -0.14rem; text-transform: uppercase; }
.brand-lockup-large { gap: 0.7rem; }
.brand-lockup-large .brand-mark { font-size: 1.05rem; height: 35px; width: 35px; }
.brand-lockup-large .brand-name { font-size: 1.35rem; }
.login-copy { margin: 2.5rem 0 1.75rem; }
.login-copy h1 { font-size: clamp(1.72rem, 5vw, 2.22rem); line-height: 1.06; margin-top: 0.5rem; }
.login-copy p:last-child { color: var(--muted); line-height: 1.62; margin-top: 0.9rem; }
.stack-form { display: grid; gap: 0.62rem; }
.field-label { color: var(--text-soft); font-size: 0.8rem; font-weight: 700; }
.stack-form .button { margin-top: 0.48rem; }
.form-message { border-radius: var(--radius-sm); font-size: 0.82rem; line-height: 1.45; padding: 0.58rem 0.68rem; }
.form-message-error { background: rgba(245, 67, 86, 0.11); border: 1px solid rgba(245, 67, 86, 0.25); color: #ffadb6; }
.form-message-success { background: rgba(72, 209, 107, 0.09); border: 1px solid rgba(72, 209, 107, 0.25); color: #9af1ad; font-family: var(--font-mono); overflow-wrap: anywhere; }
.login-footnote { color: var(--muted-faint); font-size: 0.73rem; line-height: 1.5; margin-top: 1.35rem; }

/* Application shell ---------------------------------------------------- */
.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, rgba(17, 20, 27, 0.98), rgba(10, 12, 17, 0.98));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px 14px 16px;
  position: sticky;
  top: 0;
}
.sidebar-top { align-items: center; display: flex; justify-content: space-between; padding: 0 8px; }
.sidebar-close, .sidebar-toggle { display: none; }
.nav-list { display: grid; gap: 5px; margin-top: 44px; }
.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 650;
  gap: 0.72rem;
  min-height: 43px;
  padding: 0.62rem 0.72rem;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  width: 100%;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.035); color: var(--text-soft); }
.nav-item.is-active { background: linear-gradient(100deg, rgba(0, 80, 254, 0.2), rgba(0, 80, 254, 0.08)); border-color: rgba(79, 136, 255, 0.24); color: #d4e1ff; }
.nav-glyph { color: currentColor; font-size: 1.13rem; font-weight: 400; text-align: center; width: 18px; }
.nav-count { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; margin-left: auto; }
.nav-item.is-active .nav-count { color: #9dbbff; }
.sidebar-footer { display: grid; gap: 14px; margin-top: auto; padding: 16px 8px 2px; }
.sidebar-status { align-items: center; border-top: 1px solid var(--line); color: var(--text-soft); display: flex; font-size: 0.78rem; gap: 0.6rem; padding-top: 16px; }
.sidebar-status small { color: var(--muted-faint); display: block; font-size: 0.68rem; margin-top: 0.08rem; }
.sidebar-footer .button { font-size: 0.78rem; justify-content: flex-start; }
.app-main { min-width: 0; }
.app-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 11, 0.74);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 13px clamp(20px, 3.4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-context, .header-actions { align-items: center; display: flex; }
.header-context { gap: 0.76rem; }
.header-context h1 { font-size: 1.18rem; line-height: 1.16; margin-top: 0.19rem; }
.header-actions { gap: 0.55rem; }
.sync-status { align-items: center; color: var(--muted); display: flex; font-size: 0.74rem; gap: 0.42rem; margin-right: 0.14rem; white-space: nowrap; }
.sync-status.is-error { color: #ff9eaa; }
.content { margin: 0 auto; max-width: 1570px; padding: clamp(30px, 4vw, 56px) clamp(20px, 3.4vw, 48px) 64px; width: 100%; }
.view-section { animation: view-in 240ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Overview ------------------------------------------------------------ */
.overview-intro, .view-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; }
.overview-intro { margin-bottom: 29px; }
.overview-intro h2, .view-heading h2 { font-size: clamp(1.7rem, 3.1vw, 2.42rem); line-height: 1.08; margin-top: 0.5rem; max-width: 720px; }
.section-description { color: var(--muted); font-size: 0.91rem; line-height: 1.55; margin-top: 0.8rem; max-width: 700px; }
.metrics-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card {
  background: linear-gradient(145deg, rgba(26, 31, 42, 0.96), rgba(17, 20, 27, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 150px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}
.metric-card::after { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025)); content: ""; inset: auto 0 0; height: 35%; pointer-events: none; position: absolute; }
.metric-card.metric-skeleton { background: linear-gradient(100deg, var(--surface) 20%, #202632 40%, var(--surface) 60%); background-size: 240% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -140% 0; } }
.metric-top { align-items: flex-start; display: flex; gap: 0.56rem; justify-content: space-between; position: relative; z-index: 1; }
.metric-label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.085em; text-transform: uppercase; }
.metric-glyph { align-items: center; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; color: var(--info); display: inline-flex; font-size: 0.84rem; height: 28px; justify-content: center; width: 28px; }
.metric-value { font-size: clamp(1.65rem, 2.6vw, 2.28rem); font-variant-numeric: tabular-nums; letter-spacing: -0.055em; line-height: 1; margin-top: 22px; position: relative; z-index: 1; }
.metric-caption { color: var(--muted); font-size: 0.76rem; margin-top: 0.55rem; position: relative; z-index: 1; }
.metric-caption b { color: var(--text-soft); font-weight: 700; }
.metric-card.metric-attention .metric-glyph { color: var(--warning); }
.metric-card.metric-danger .metric-glyph { color: var(--danger); }
.metric-card.metric-success .metric-glyph { color: var(--success); }
.overview-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.35fr) minmax(285px, 0.9fr); margin-top: 14px; }
.panel {
  background: linear-gradient(145deg, rgba(21, 25, 34, 0.94), rgba(15, 18, 25, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.capacity-panel, .fleet-panel, .attention-panel { min-height: 218px; padding: 22px; }
.panel-heading { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.panel-heading h3 { font-size: 1.03rem; line-height: 1.2; margin-top: 0.3rem; }
.capacity-value-row { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0.52rem; margin-top: 37px; }
.capacity-value-row strong { font-size: 2.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.065em; line-height: 1; }
.capacity-value-row span { color: var(--muted); font-size: 0.86rem; }
.capacity-value-row b { color: var(--text-soft); font-weight: 650; }
.usage-track { background: rgba(255, 255, 255, 0.08); border-radius: 999px; height: 6px; overflow: hidden; position: relative; }
.usage-track-large { margin-top: 21px; }
.usage-fill { background: linear-gradient(90deg, var(--info), var(--brand-bright)); border-radius: inherit; display: block; height: 100%; min-width: 0; transition: width 360ms ease, background 180ms ease; width: 0; }
.usage-fill.is-warning { background: linear-gradient(90deg, var(--warning), #ff8c44); }
.usage-fill.is-danger { background: linear-gradient(90deg, #ff8c44, var(--danger)); }
.capacity-meta { color: var(--muted); display: flex; font-size: 0.76rem; justify-content: space-between; margin-top: 11px; }
.capacity-meta b { color: var(--text-soft); font-weight: 700; }
.fleet-panel { grid-column: 2; }
.attention-panel { grid-column: 1 / -1; }
.fleet-distribution { display: grid; gap: 12px; margin-top: 22px; }
.distribution-row { align-items: center; border-bottom: 1px solid var(--line); color: var(--text-soft); display: flex; font-size: 0.82rem; justify-content: space-between; padding-bottom: 10px; }
.distribution-row:last-child { border-bottom: 0; padding-bottom: 0; }
.distribution-row b { color: var(--text); font-family: var(--font-mono); font-size: 0.9rem; }
.attention-list { display: grid; gap: 8px; margin-top: 17px; }
.attention-item { align-items: center; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 0.72rem; min-height: 48px; padding: 0.55rem 0.7rem; }
.attention-indicator { border-radius: 99px; flex: 0 0 auto; height: 7px; width: 7px; }
.attention-item.attention-warning .attention-indicator { background: var(--warning); box-shadow: 0 0 12px rgba(230, 183, 72, 0.42); }
.attention-item.attention-danger .attention-indicator { background: var(--danger); box-shadow: 0 0 12px rgba(245, 67, 86, 0.42); }
.attention-item.attention-info .attention-indicator { background: var(--info); box-shadow: 0 0 12px rgba(57, 199, 255, 0.42); }
.attention-item strong { display: block; font-size: 0.82rem; font-weight: 700; }
.attention-item span { color: var(--muted); font-size: 0.74rem; }
.empty-inline { color: var(--muted); font-size: 0.82rem; padding: 14px 0; }

/* Tables and list views ------------------------------------------------ */
.view-heading { margin-bottom: 27px; }
.view-summary { background: rgba(57, 199, 255, 0.08); border: 1px solid rgba(57, 199, 255, 0.18); border-radius: 999px; color: #a0e4ff; font-family: var(--font-mono); font-size: 0.74rem; padding: 0.43rem 0.62rem; white-space: nowrap; }
.table-panel { overflow: hidden; }
.table-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 11px; padding: 15px; }
.search-field { align-items: center; background: #0e1118; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); display: flex; flex: 1 1 270px; gap: 0.5rem; min-height: 39px; padding-left: 0.7rem; }
.search-field:focus-within { border-color: var(--info); box-shadow: 0 0 0 3px rgba(57, 199, 255, 0.12); }
.search-field input { background: transparent; border: 0; box-shadow: none; flex: 1; min-width: 0; outline: 0; padding: 0.5rem 0.65rem 0.5rem 0; }
.filter-chips { align-items: center; display: flex; flex: 0 1 auto; gap: 5px; overflow-x: auto; }
.filter-chip { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.71rem; font-weight: 700; padding: 0.39rem 0.58rem; white-space: nowrap; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--text-soft); }
.filter-chip.is-active { background: rgba(0, 80, 254, 0.14); border-color: rgba(72, 129, 255, 0.34); color: #a8c3ff; }
.page-size-control { align-items: center; color: var(--muted); display: flex; font-size: 0.72rem; gap: 0.42rem; margin-left: auto; white-space: nowrap; }
.page-size-control select { font-size: 0.74rem; min-height: 33px; padding: 0.31rem 1.55rem 0.31rem 0.48rem; }
.table-meta { align-items: center; color: var(--muted); display: flex; font-size: 0.74rem; justify-content: space-between; min-height: 37px; padding: 8px 16px 5px; }
.table-meta span:last-child { color: #95b9ff; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; min-width: 760px; width: 100%; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 0.72rem 0.9rem; text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); font-size: 0.64rem; font-weight: 750; letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.data-table td { color: var(--text-soft); font-size: 0.79rem; }
.data-table tbody tr { transition: background-color 120ms ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.machine-cell, .license-cell { min-width: 170px; }
.machine-cell strong, .license-cell strong { color: var(--text); display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.35; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine-cell small, .license-cell small { color: var(--muted); display: block; font-size: 0.7rem; margin-top: 0.16rem; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-cell .mono { color: #b6ccff; font-size: 0.75rem; }
.subtle-date { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.seat-usage { min-width: 122px; }
.seat-usage-line { align-items: baseline; color: var(--text-soft); display: flex; font-size: 0.75rem; gap: 0.2rem; justify-content: space-between; margin-bottom: 0.42rem; }
.seat-usage-line b { color: var(--text); font-family: var(--font-mono); font-size: 0.78rem; }
.seat-usage .usage-track { height: 4px; width: 116px; }
.row-actions { align-items: center; display: flex; gap: 0.4rem; justify-content: flex-end; min-width: 136px; }
.row-actions .button { white-space: nowrap; }
.table-empty { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; padding: 35px 16px; text-align: center; }
.table-loading-cell { color: var(--muted); font-size: 0.83rem; padding: 34px !important; text-align: center !important; }
.pagination { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: var(--font-mono); font-size: 0.72rem; justify-content: space-between; min-height: 61px; padding: 11px 15px; }
.pagination .button { min-height: 33px; }

/* Dialogs -------------------------------------------------------------- */
.modal-layer { align-items: center; display: grid; inset: 0; justify-items: center; padding: 22px; position: fixed; z-index: 40; }
.modal-backdrop { background: rgba(0, 0, 0, 0.67); backdrop-filter: blur(5px); inset: 0; position: absolute; }
.dialog { background: linear-gradient(145deg, #1a1f2a, #101319); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: min(850px, calc(100vh - 44px)); overflow: auto; padding: 25px; position: relative; width: min(100%, 580px); }
.dialog-medium { max-width: 630px; }
.dialog-wide { max-width: 1080px; }
.dialog-confirm { max-width: 430px; }
.dialog-header { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; }
.dialog-header h2, .dialog-confirm h2 { font-size: 1.42rem; line-height: 1.15; margin-top: 0.37rem; }
.dialog-key { color: #a9c3ff; font-size: 0.78rem; margin-top: 0.5rem; overflow-wrap: anywhere; }
.dialog-description { color: var(--text-soft); line-height: 1.55; margin-top: 0.85rem; }
.license-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 25px; }
.license-form label { color: var(--text-soft); display: grid; font-size: 0.78rem; font-weight: 700; gap: 0.42rem; }
.form-span-2 { grid-column: 1 / -1; }
.dialog-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 6px; }
.license-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 16px; }
.summary-pill { background: rgba(255, 255, 255, 0.047); border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font-size: 0.72rem; padding: 0.38rem 0.55rem; }
.summary-pill b { color: var(--text); font-weight: 700; }
.seat-toolbar { align-items: flex-end; background: rgba(230, 183, 72, 0.055); border: 1px solid rgba(230, 183, 72, 0.17); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; gap: 13px; justify-content: space-between; margin-bottom: 17px; padding: 13px; }
.seat-toolbar p:not(.eyebrow) { color: var(--muted); font-size: 0.78rem; margin-top: 0.24rem; }
.compact-field { align-items: center; color: var(--text-soft); display: inline-flex; font-size: 0.76rem; gap: 0.35rem; white-space: nowrap; }
.compact-field input { min-height: 33px; padding: 0.33rem 0.42rem; text-align: center; width: 60px; }
.dialog-table-wrap { border: 1px solid var(--line); border-radius: 10px; }

/* Notifications -------------------------------------------------------- */
.toast { background: #1b202b; border: 1px solid var(--line-strong); border-radius: 11px; bottom: 24px; box-shadow: var(--shadow-md); color: var(--text); font-size: 0.83rem; left: 50%; max-width: min(440px, calc(100vw - 32px)); padding: 0.72rem 0.9rem; position: fixed; transform: translateX(-50%); z-index: 60; }
.toast.ok { border-color: rgba(72, 209, 107, 0.5); }
.toast.bad { border-color: rgba(245, 67, 86, 0.56); }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1120px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-toolbar .filter-chips { order: 3; width: 100%; }
}
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { box-shadow: var(--shadow-lg); left: 0; max-width: 290px; position: fixed; transform: translateX(-105%); transition: transform 190ms ease; width: min(82vw, 290px); z-index: 31; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close, .sidebar-toggle { display: inline-flex; }
  .sidebar-scrim { background: rgba(0, 0, 0, 0.5); inset: 0; position: fixed; z-index: 30; }
  .app-header { min-height: 70px; }
  .overview-layout { grid-template-columns: 1fr; }
  .fleet-panel, .attention-panel { grid-column: auto; }
  .content { padding-bottom: 42px; }
}
@media (max-width: 640px) {
  .login-screen { padding: 16px; }
  .login-card { border-radius: 20px; padding: 27px 23px; }
  .login-copy { margin: 2rem 0 1.45rem; }
  .app-header { align-items: flex-start; gap: 12px; padding: 12px 16px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .sync-status { display: none; }
  .header-actions .button { font-size: 0; gap: 0; min-width: 38px; padding: 0.45rem; }
  .header-actions .button span:first-child { font-size: 1.15rem; }
  .content { padding: 27px 16px 36px; }
  .overview-intro, .view-heading { align-items: flex-start; flex-direction: column; }
  .overview-intro { margin-bottom: 22px; }
  .overview-intro .button { width: 100%; }
  .metrics-grid { gap: 10px; }
  .metric-card { min-height: 129px; padding: 14px; }
  .metric-value { font-size: 1.62rem; margin-top: 19px; }
  .metric-caption { font-size: 0.69rem; }
  .capacity-panel, .fleet-panel, .attention-panel { padding: 17px; }
  .capacity-value-row { margin-top: 27px; }
  .table-toolbar { align-items: stretch; }
  .search-field { flex-basis: 100%; }
  .page-size-control { margin-left: 0; }
  .table-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .optional-column { display: none; }
  .dialog { border-radius: 16px; max-height: calc(100vh - 28px); padding: 20px; }
  .modal-layer { padding: 14px; }
  .license-form { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .seat-toolbar { align-items: stretch; flex-direction: column; }
  .compact-field { justify-content: space-between; }
  .seat-toolbar .button { width: 100%; }
}
@media (max-width: 420px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 115px; }
  .header-context h1 { font-size: 1.05rem; }
  .pagination { gap: 7px; }
  .pagination .button { padding-left: 0.5rem; padding-right: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
