:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-muted: #eef3f5;
  --ink: #15232d;
  --ink-strong: #0b1720;
  --text: #344451;
  --muted: #6b7b87;
  --muted-strong: #536572;
  --line: #e1e8ec;
  --line-strong: #ced9df;
  --primary: #0d7d74;
  --primary-dark: #075f59;
  --primary-soft: #e3f5f2;
  --blue: #2563a8;
  --blue-soft: #e8f1fb;
  --amber: #c27612;
  --amber-soft: #fff4df;
  --red: #c43c3c;
  --red-soft: #fcebec;
  --green: #16855d;
  --green-soft: #e8f7f0;
  --purple: #7554a8;
  --purple-soft: #f0ebf9;
  --sidebar: #101b24;
  --sidebar-soft: #192731;
  --sidebar-text: #adbbc5;
  --shadow-xs: 0 1px 2px rgba(15, 31, 42, .04);
  --shadow-sm: 0 8px 24px rgba(21, 35, 45, .055);
  --shadow-md: 0 18px 45px rgba(15, 31, 42, .11);
  --radius-sm: 8px;
  --radius: 13px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Inter", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

:focus-visible {
  outline: 3px solid rgba(13, 125, 116, .24);
  outline-offset: 2px;
}

::selection {
  background: #bfe9e4;
  color: var(--ink-strong);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 14px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 5%, rgba(30, 148, 136, .18), transparent 30%),
    linear-gradient(180deg, #111e28 0%, #0c161e 100%);
  color: var(--sidebar-text);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 24px;
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 11px;
  background: rgba(54, 211, 192, .11);
  color: #4fd3c5;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.brand-copy small {
  color: #70818d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-label {
  margin: 18px 12px 5px;
  color: #687984;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 3px;
}

.side-nav a {
  position: relative;
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 9px;
  color: #aebbc5;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.side-nav a svg {
  width: 19px;
  height: 19px;
  color: #7f919d;
  transition: color .18s ease;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.side-nav a:active {
  transform: scale(.99);
}

.side-nav a.is-active {
  background: linear-gradient(90deg, rgba(31, 161, 148, .24), rgba(31, 161, 148, .1));
  color: #fff;
}

.side-nav a.is-active svg {
  color: #69dfd3;
}

.sidebar-footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 18px 12px 3px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #70818c;
  font-size: 10px;
}

.system-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a7b6c0;
  font-size: 11px;
}

.system-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40c894;
  box-shadow: 0 0 0 4px rgba(64, 200, 148, .1);
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .64), transparent 220px),
    var(--bg);
}

.workspace-main {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 30px 30px 54px;
}

.workspace-footer {
  display: flex;
  width: min(100%, 1600px);
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 0 30px 30px;
  color: #85939c;
  font-size: 11px;
}

.mobile-header,
.nav-scrim {
  display: none;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 1px 4px;
}

.page-header h1 {
  margin: 7px 0 5px;
  color: var(--ink-strong);
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #21a394;
  box-shadow: 0 0 0 4px rgba(33, 163, 148, .1);
}

.eyebrow-light {
  color: #85e1d7;
}

.eyebrow-light i {
  background: #69dfd3;
  box-shadow: 0 0 0 4px rgba(105, 223, 211, .11);
}

.page-actions,
.page-actions form {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 18px rgba(13, 125, 116, .18);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 9px 22px rgba(13, 125, 116, .23);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover {
  border-color: #aebdc6;
  background: #fbfcfd;
}

.button-ghost {
  background: transparent;
  color: var(--muted-strong);
}

.button-ghost:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.button-danger {
  background: var(--red-soft);
  color: var(--red);
}

.button-danger:hover {
  background: #f9dddd;
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 11px;
}

.button-block {
  width: 100%;
}

.button-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
}

.status-band {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 17px;
  border: 1px solid #d9e8e5;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(227, 245, 242, .82), rgba(255, 255, 255, .94) 60%),
    var(--surface);
  box-shadow: var(--shadow-xs);
}

.status-message {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 11px;
}

.status-message > div {
  display: grid;
  gap: 2px;
}

.status-message strong {
  color: var(--ink);
  font-size: 12px;
}

.status-message span:not(.status-indicator) {
  color: var(--muted);
  font-size: 10px;
}

.status-indicator {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-indicator::after {
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: .2;
}

.status-indicator.is-online {
  background: #24a875;
  color: #24a875;
}

.status-indicator.is-warning {
  background: #d58b24;
  color: #d58b24;
}

.status-facts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted-strong);
  font-size: 10px;
}

.status-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.fact-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93a3ad;
}

.fact-dot.teal {
  background: #21a394;
}

.fact-dot.blue {
  background: #4c85d1;
}

.fact-dot.amber {
  background: #d49435;
}

.fact-dot.red {
  background: #d34e4e;
}

.overview-section {
  display: grid;
  gap: 12px;
}

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

.metric-card {
  position: relative;
  min-width: 0;
  min-height: 146px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.metric-card:hover {
  border-color: #cbd8de;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.metric-head,
.metric-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-head > span:first-child {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 600;
}

.metric-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
}

.metric-icon svg {
  width: 17px;
  height: 17px;
}

.metric-icon.teal {
  background: var(--primary-soft);
  color: var(--primary);
}

.metric-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.metric-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.metric-icon.orange {
  background: #fff0e4;
  color: #b86124;
}

.metric-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-value {
  display: block;
  margin: 12px 0 10px;
  color: var(--ink-strong);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-value small {
  margin-left: 3px;
  color: #8a99a2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-foot {
  color: var(--muted);
  font-size: 9px;
}

.metric-chip {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #7a8992;
  font-size: 8px;
}

.metric-progress {
  justify-content: flex-start;
}

.metric-progress .progress-track {
  flex: 1;
}

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

.panel {
  min-width: 0;
  margin: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.trend-panel {
  grid-column: span 8;
}

.run-panel {
  grid-column: span 4;
}

.resource-panel,
.risk-panel,
.data-panel {
  grid-column: span 4;
}

.panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.section-heading h2 {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.panel-heading p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-kicker,
.section-number {
  color: #8998a1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.legend {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.legend-line.pages {
  height: 0;
  border-top: 2px dashed #cf8020;
  background: transparent;
}

.trend-summary {
  display: flex;
  gap: 26px;
  margin-top: 17px;
}

.trend-summary div {
  display: grid;
  gap: 1px;
}

.trend-summary span {
  color: var(--muted);
  font-size: 9px;
}

.trend-summary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.trend-chart {
  width: 100%;
  margin-top: 6px;
}

.chart-mobile-hint {
  display: none;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 224px;
  overflow: visible;
}

.grid-line {
  stroke: #e7edef;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.axis-label,
.x-label {
  fill: #81909a;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.axis-label {
  text-anchor: start;
}

.x-label {
  text-anchor: middle;
}

.chart-area {
  fill: rgba(13, 125, 116, .08);
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-line.pages {
  stroke: #d48220;
  stroke-width: 2.2;
  stroke-dasharray: 6 5;
}

.chart-point {
  stroke: var(--surface);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.chart-point.observations {
  fill: var(--primary);
}

.chart-point.pages {
  fill: #d48220;
}

.chart-point-group {
  cursor: help;
}

.chart-point-group:hover .chart-point {
  stroke-width: 3;
}

.data-disclosure {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 10px;
}

.data-disclosure summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
}

.data-disclosure summary:hover {
  color: var(--primary);
}

.compact-table {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.compact-table table {
  min-width: 480px;
}

.run-total {
  display: grid;
  text-align: right;
}

.run-total strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.run-total span {
  color: var(--muted);
  font-size: 9px;
}

.status-list {
  display: grid;
  gap: 17px;
  margin-top: 29px;
}

.status-row {
  display: grid;
  gap: 7px;
}

.status-row-label,
.status-row-label > span {
  display: flex;
  align-items: center;
}

.status-row-label {
  justify-content: space-between;
  color: var(--text);
  font-size: 11px;
}

.status-row-label > span {
  gap: 7px;
}

.status-row-label strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.status-row-label small {
  min-width: 31px;
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8c9aa3;
}

.status-dot.success {
  background: var(--green);
}

.status-dot.failed {
  background: var(--red);
}

.status-dot.leased {
  background: #d28425;
}

.status-dot.pending {
  background: #83919a;
}

.progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f3;
}

.progress-track > i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--blue);
  transition: width .35s ease;
}

.progress-track > i.success {
  background: var(--green);
}

.progress-track > i.failed {
  background: var(--red);
}

.progress-track > i.leased {
  background: #d28425;
}

.progress-track > i.pending {
  background: #83919a;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 21px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.panel-link span {
  transition: transform .18s ease;
}

.panel-link:hover span {
  transform: translateX(3px);
}

.donut-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 25px;
}

.donut-block {
  min-width: 0;
  text-align: center;
}

.donut {
  --ring: var(--primary);
  display: grid;
  width: min(108px, 82%);
  aspect-ratio: 1;
  margin: 0 auto 11px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring) var(--value), #edf1f3 0);
}

.donut.accounts {
  --ring: var(--blue);
}

.donut > span {
  display: flex;
  width: 76%;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(225, 232, 236, .7);
}

.donut strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.donut small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.donut-block > strong {
  color: var(--ink);
  font-size: 11px;
}

.donut-block p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.quota-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 24px;
}

.quota-summary > div {
  display: grid;
  gap: 2px;
}

.quota-summary span {
  color: var(--muted);
  font-size: 9px;
}

.quota-summary strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.quota-summary strong small {
  color: var(--muted);
  font-size: 11px;
}

.quota-summary > span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.quota-progress {
  height: 8px;
  margin-top: 9px;
}

.quota-progress > i {
  background: linear-gradient(90deg, var(--primary), #48b8a9);
}

.risk-list {
  display: grid;
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.risk-list > div {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.risk-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 10px;
}

.risk-list strong {
  color: var(--ink);
  font-size: 12px;
}

.risk-list .is-danger strong {
  color: var(--red);
}

.data-volume {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.data-volume > div {
  display: grid;
  grid-template-columns: minmax(80px, .8fr) auto;
  column-gap: 12px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.data-volume > div:last-child {
  border-bottom: 0;
}

.data-volume span {
  color: var(--muted-strong);
  font-size: 10px;
}

.data-volume strong {
  grid-row: span 2;
  color: var(--ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.data-volume small {
  color: var(--muted);
  font-size: 8px;
}

.data-section {
  scroll-margin-top: 22px;
  margin-top: 8px;
  padding: 21px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 5px;
  font-size: 18px;
}

.section-heading p {
  max-width: 790px;
  font-size: 11px;
}

.create-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(150px, .9fr) minmax(140px, .8fr) auto;
  gap: 11px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.create-form-compact {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.create-form-compact:has(.field-wide) {
  grid-template-columns: minmax(160px, .7fr) minmax(240px, 1.6fr) auto;
}

.field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.field > span,
.field-label {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder {
  color: #99a5ad;
}

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

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 125, 116, .1);
}

.create-form .button {
  min-height: 42px;
}

.notice {
  border-color: #ead6ac;
  background: #fffdf8;
}

.install-code {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #ead9b4;
  border-radius: 10px;
  background: #fff8e9;
}

.install-code span {
  color: #92671e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.install-code code {
  color: var(--ink);
  font: 600 15px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.install-grid > div {
  min-width: 0;
}

pre {
  margin: 6px 0 0;
  padding: 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--sidebar);
  color: #d7e5eb;
  font: 11px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  scrollbar-color: #c5d0d6 transparent;
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f7f9fa;
  color: #758691;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
}

tbody tr {
  transition: background .16s ease;
}

tbody tr:hover {
  background: #fafcfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--text);
}

.cell-title {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.cell-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.mono-muted {
  color: #84929b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.nowrap {
  white-space: nowrap;
}

.reason {
  max-width: 360px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success {
  background: var(--green-soft);
  color: #147450;
}

.badge-danger {
  background: var(--red-soft);
  color: #b43737;
}

.badge-warning {
  background: var(--amber-soft);
  color: #a8640d;
}

.badge-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-muted {
  background: var(--surface-muted);
  color: var(--muted-strong);
}

.text-token {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font: 9px/1.7 "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 1px 3px 1px 0;
  vertical-align: middle;
}

.inline-action-login input {
  width: 100px;
  min-height: 34px;
  padding-inline: 8px;
  font-size: 10px;
}

.table-form {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 1px 4px 1px 0;
}

.table-form select {
  width: 112px;
  min-height: 34px;
  padding-inline: 7px;
  font-size: 10px;
}

.table-form input[type="number"] {
  width: 66px;
  min-height: 34px;
  padding-inline: 7px;
  font-size: 10px;
}

.empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  color: #9eabb2;
}

.empty-state strong {
  color: var(--muted-strong);
  font-size: 11px;
}

.empty-state span {
  font-size: 9px;
}

.download-links {
  display: flex;
  gap: 6px;
}

.download-links a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.download-links a:hover {
  border-color: #a9d5d0;
  background: var(--primary-soft);
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(23, 153, 138, .1), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(32, 93, 138, .08), transparent 30%),
    #eef3f5;
}

.auth-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-layout {
  display: grid;
  width: min(1120px, 100%);
  min-height: 650px;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(14, 31, 42, .16);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 37px 40px;
  background:
    radial-gradient(circle at 85% 20%, rgba(66, 202, 185, .2), transparent 25%),
    linear-gradient(150deg, #10202a 0%, #0b171f 60%, #0e2928 100%);
  color: #fff;
}

.auth-showcase::before,
.auth-showcase::after {
  position: absolute;
  border: 1px solid rgba(100, 219, 207, .12);
  border-radius: 50%;
  content: "";
}

.auth-showcase::before {
  right: -160px;
  bottom: -190px;
  width: 520px;
  height: 520px;
}

.auth-showcase::after {
  right: -90px;
  bottom: -120px;
  width: 370px;
  height: 370px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-brand > span:last-child {
  display: grid;
}

.auth-brand strong {
  font-size: 15px;
}

.auth-brand small {
  color: #71858f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.auth-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 65px 0 45px;
}

.auth-copy h1 {
  max-width: 520px;
  margin: 15px 0 17px;
  color: #fff;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.16;
  letter-spacing: -.045em;
}

.auth-copy p {
  max-width: 470px;
  margin: 0;
  color: #93a5ae;
  font-size: 13px;
  line-height: 1.8;
}

.auth-features {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
}

.auth-features > div {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.auth-features svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #5bd6c9;
}

.auth-features span {
  display: grid;
}

.auth-features strong {
  font-size: 10px;
}

.auth-features small {
  color: #7e919a;
  font-size: 8px;
}

.auth-panel {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 46px;
  background:
    linear-gradient(rgba(255, 255, 255, .96), rgba(255, 255, 255, .96)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, #e7edef 32px);
}

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

.auth-card h2 {
  margin: 12px 0 7px;
  color: var(--ink-strong);
  font-size: 27px;
  letter-spacing: -.035em;
}

.auth-intro {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #82929b;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  min-height: 46px;
  padding-left: 39px;
  font-size: 13px;
}

.auth-form .button {
  min-height: 46px;
  margin-top: 4px;
}

.form-alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f0cccc;
  border-radius: 8px;
  background: var(--red-soft);
  color: #a63232;
  font-size: 11px;
}

.auth-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  color: #89969e;
  font-size: 9px;
}

.auth-note svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1300px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .workspace-main {
    padding-inline: 24px;
  }

  .trend-panel {
    grid-column: span 12;
  }

  .run-panel,
  .resource-panel,
  .risk-panel,
  .data-panel {
    grid-column: span 6;
  }
}

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

  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding-top: 18px;
    box-shadow: 20px 0 50px rgba(9, 19, 26, .22);
    transform: translateX(-105%);
    transition: transform .23s ease;
  }

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

  .nav-scrim {
    position: fixed;
    z-index: 25;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(8, 17, 23, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-open {
    overflow: hidden;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(225, 232, 236, .9);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-color: transparent;
    background: var(--primary-soft);
    color: var(--primary);
  }

  .mobile-brand .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
  }

  .nav-toggle svg {
    width: 21px;
    height: 21px;
  }

  .workspace-main {
    padding: 24px 22px 44px;
  }

  .workspace-footer {
    padding: 0 22px 24px;
  }

  .auth-main {
    padding: 20px;
  }

  .auth-layout {
    min-height: 620px;
    grid-template-columns: 1fr 1fr;
  }

  .auth-showcase,
  .auth-panel {
    padding: 30px;
  }

  .auth-copy h1 {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions > .button,
  .page-actions form,
  .page-actions form .button {
    flex: 1;
  }

  .status-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-facts {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .trend-panel,
  .run-panel,
  .resource-panel,
  .risk-panel,
  .data-panel {
    grid-column: auto;
  }

  .panel-heading {
    gap: 10px;
  }

  .create-form,
  .create-form-compact,
  .create-form-compact:has(.field-wide) {
    grid-template-columns: 1fr;
  }

  .create-form .button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading form,
  .section-heading form .button {
    width: 100%;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .auth-main {
    padding: 0;
  }

  .auth-layout {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .auth-showcase {
    min-height: 230px;
    padding: 25px 24px;
  }

  .auth-copy {
    margin-top: 34px;
    padding: 0;
  }

  .auth-copy h1 {
    margin-block: 10px 8px;
    font-size: 30px;
  }

  .auth-copy p {
    font-size: 11px;
  }

  .auth-features {
    display: none;
  }

  .auth-panel {
    padding: 38px 24px 48px;
  }

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

@media (max-width: 520px) {
  .workspace-main {
    padding: 20px 14px 40px;
  }

  .workspace-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 0 14px 22px;
  }

  .dashboard {
    gap: 14px;
  }

  .page-header h1 {
    font-size: 25px;
  }

  .page-header p {
    font-size: 12px;
  }

  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions > .button,
  .page-actions form .button {
    width: 100%;
  }

  .status-band {
    padding: 14px;
  }

  .status-facts {
    gap: 8px 14px;
  }

  .metric-grid {
    gap: 9px;
  }

  .metric-card {
    min-height: 135px;
    padding: 13px;
  }

  .metric-head {
    align-items: flex-start;
  }

  .metric-icon {
    width: 27px;
    height: 27px;
  }

  .metric-icon svg {
    width: 15px;
    height: 15px;
  }

  .metric-value {
    margin-top: 15px;
    font-size: 26px;
  }

  .metric-foot > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metric-chip {
    display: none;
  }

  .panel {
    padding: 15px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .legend {
    gap: 12px;
  }

  .trend-summary {
    gap: 18px;
  }

  .chart-mobile-hint {
    display: block;
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
  }

  .trend-chart {
    overflow-x: auto;
    padding-bottom: 5px;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
  }

  .trend-chart svg {
    width: 680px;
    min-height: 220px;
  }

  .donut {
    width: min(112px, 88%);
  }

  .data-section {
    padding: 16px 13px;
  }

  .section-heading {
    margin-bottom: 15px;
  }

  .create-form {
    padding: 12px;
  }

  .auth-showcase {
    min-height: 202px;
  }

  .auth-copy {
    margin-top: 24px;
  }

  .auth-copy h1 {
    font-size: 26px;
  }

  .auth-copy p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
