/* Direction: instrument panel — pale grey paper, thin-bordered white cards,
   one cobalt accent, wide technical headings, monospace plates. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #ecedf0;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --border: #d6dae1;
  --border-strong: #a6a9b1;
  --ink: #141921;
  --muted: #5e6675;
  --accent: #1d4ed8;
  --accent-hover: #1942b8;
  --accent-ink: #ffffff;
  --accent-text: #1a44bd;
  --accent-strong: #15359c;
  --accent-soft: #e5ebfd;
  --accent-border: #8fa5e5;
  --success: #0f6b4a;
  --success-ink: #ffffff;
  --success-soft: #d1dddc;
  --success-strong: #0f6b4a;
  --warning: #8a5a07;
  --warning-ink: #ffffff;
  --warning-soft: #e0dbd4;
  --warning-strong: #7f5306;
  --danger: #a32218;
  --danger-ink: #ffffff;
  --danger-soft: #e3d5d6;
  --danger-strong: #a32218;
  --chart-1: #1d4ed8;
  --chart-2: #b43bbf;
  --chart-3: #940217;
  --chart-4: #926d0b;
  --chart-5: #055e14;
  --chart-6: #0e8791;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: 0.02em;
  --radius-card: 6px;
  --radius-btn: 5px;
  --radius-input: 5px;
  --shadow-card: 0 1px 2px rgb(20 25 33 / 0.06);
  --card-pad: 1.25rem;
  --x-grid: rgb(20 25 33 / 0.05);
  --x-on-photo: #ffffff;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #030610;
  --surface: #1c1f28;
  --surface-2: #10121c;
  --border: #262931;
  --border-strong: #4f5158;
  --ink: #ecedf0;
  --muted: #8f9196;
  --accent: #1d4ed8;
  --accent-hover: #3f69de;
  --accent-ink: #ffffff;
  --accent-text: #6a8ae5;
  --accent-strong: #5d80e3;
  --accent-soft: #09163c;
  --accent-border: #0f266a;
  --success: #0f6b4a;
  --success-ink: #ffffff;
  --success-soft: #061c1d;
  --success-strong: #53957c;
  --warning: #8a5a07;
  --warning-ink: #ffffff;
  --warning-soft: #21180e;
  --warning-strong: #a47e3e;
  --danger: #a32218;
  --danger-ink: #ffffff;
  --danger-soft: #260c12;
  --danger-strong: #c26e66;
  --chart-1: #2d62ed;
  --chart-2: #c950d3;
  --chart-3: #e52d38;
  --chart-4: #a77e15;
  --chart-5: #189a2a;
  --chart-6: #199aa5;
}

/* Kerbside — instrument panel texture and motion */

@keyframes kb-page-in {
  from { opacity: 0.55; transform: translateY(10px); }
}
.page-in { animation: kb-page-in 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

.card { transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgb(20 25 33 / 0.1);
  border-color: var(--accent);
}

/* calendar cells and meters fill from the left */
@keyframes kb-fill {
  from { transform: scaleX(0); }
}
.cal-on,
.bar-fill {
  transform-origin: left center;
  animation: kb-fill 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel-grid {
  background-image:
    linear-gradient(var(--x-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--x-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
}

.plate {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.tech {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.row-hover:hover { background: var(--surface-2); }

html.reduced-motion .page-in,
html.reduced-motion .cal-on,
html.reduced-motion .bar-fill { animation: none; }
html.reduced-motion .lift:hover { transform: none; }
