/* Direction: ClaimForge — industrial warranty operations console.
   Deep slate canvas, graphite panels, muted teal-grey, burnt orange signal. */
/* 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 {
  color-scheme: dark;
  --canvas: #202629;
  --surface: #2b3337;
  --surface-2: #394347;
  --border: #3f4a4d;
  --border-strong: #636769;
  --ink: #e7e7e2;
  --muted: #a7b4b5;
  --accent: #c47a50;
  --accent-hover: #cd8e6a;
  --accent-ink: #1c2124;
  --accent-text: #dba27f;
  --accent-strong: #2d221b;
  --accent-soft: #c47a50;
  --accent-border: #6a4c3b;
  --success: #6f8f8e;
  --success-ink: #ffffff;
  --success-soft: #313d3f;
  --success-strong: #99afae;
  --warning: #c47a50;
  --warning-ink: #ffffff;
  --warning-soft: #443832;
  --warning-strong: #d19877;
  --danger: #c0604f;
  --danger-ink: #ffffff;
  --danger-soft: #433331;
  --danger-strong: #d28e81;
  --chart-1: #c47a50;
  --chart-2: #b0b145;
  --chart-3: #009775;
  --chart-4: #30b3e5;
  --chart-5: #7f71c8;
  --chart-6: #e484b4;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.25rem;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 36px -24px rgba(0, 0, 0, 0.8);
  --x-ok: #8faaa8;
  --x-ok-soft: rgba(143, 170, 168, 0.16);
  --x-warn: #d08e64;
  --x-warn-soft: rgba(208, 142, 100, 0.18);
  --x-bad: #cc6f5c;
  --x-bad-soft: rgba(204, 111, 92, 0.18);
  --x-info: #a9b7b8;
  --x-info-soft: rgba(169, 183, 184, 0.14);
  --x-on-photo: #ffffff;
  --x-grid: rgba(211, 216, 216, 0.1);
  --gradient-signal: linear-gradient(180deg, #c47a50 0%, rgba(196, 122, 80, 0.3) 100%);
  --gradient-shell: linear-gradient(165deg, #262e32 0%, #202629 65%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f3f3;
  --border: #dfdedd;
  --border-strong: #bbb8b6;
  --ink: #202629;
  --muted: #666a6c;
  --accent: #c47a50;
  --accent-hover: #a76844;
  --accent-ink: #1b110b;
  --accent-text: #995f3f;
  --accent-strong: #8d573a;
  --accent-soft: #f7ece7;
  --accent-border: #e4c3b0;
  --success: #6f8f8e;
  --success-ink: #202629;
  --success-soft: #eef2f1;
  --success-strong: #566f6f;
  --warning: #c47a50;
  --warning-ink: #202629;
  --warning-soft: #f8efea;
  --warning-strong: #995f3f;
  --danger: #c0604f;
  --danger-ink: #ffffff;
  --danger-soft: #f7ecea;
  --danger-strong: #a35143;
  --chart-1: #c47a50;
  --chart-2: #989827;
  --chart-3: #108c6d;
  --chart-4: #06a0d1;
  --chart-5: #7465bb;
  --chart-6: #d375a4;
}

/* ClaimForge — operations shell */

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-link .icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  opacity: 0.85;
}

.shell-aside {
  background: var(--gradient-shell);
  border-right: 1px solid var(--border);
}

/* status pills */
.st {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.st::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
}
.st-ok { background: var(--x-ok-soft); color: var(--x-ok); border-color: rgba(143, 170, 168, 0.3); }
.st-warn { background: var(--x-warn-soft); color: var(--x-warn); border-color: rgba(208, 142, 100, 0.34); }
.st-bad { background: var(--x-bad-soft); color: var(--x-bad); border-color: rgba(204, 111, 92, 0.32); }
.st-info { background: var(--x-info-soft); color: var(--x-info); border-color: rgba(169, 183, 184, 0.24); }

/* data tables */
.dt { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.dt th {
  text-align: left;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dt td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--x-grid);
  vertical-align: middle;
}
.dt tbody tr:hover { background: rgba(211, 216, 216, 0.04); }
.dt tbody tr:last-child td { border-bottom: 0; }

/* charts */
.bar-fill { background: var(--gradient-signal); border-radius: 6px 6px 3px 3px; }
.bar-track { background: var(--x-info-soft); border-radius: 999px; overflow: hidden; }
.bar-value { background: var(--accent); height: 100%; border-radius: 999px; }
.bar-value-soft { background: var(--x-ok); height: 100%; border-radius: 999px; }

/* timeline */
.tl { position: relative; padding-left: 1.6rem; }
.tl::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--border);
}
.tl-dot {
  position: absolute;
  left: -1.6rem;
  top: 0.3rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--canvas);
  background: var(--x-info);
}
.tl-dot-accent { background: var(--accent); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--border);
  flex: none;
}

details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }

.scrim { background: linear-gradient(100deg, rgba(32, 38, 41, 0.97) 8%, rgba(32, 38, 41, 0.78) 52%, rgba(32, 38, 41, 0.45) 100%); }
