/*
 * Design tokens and base styles. Propshaft serves every file in this
 * directory alphabetically: application (tokens, base), components, layout.
 * Custom properties resolve at computed time, so order only matters for
 * competing selectors.
 */

:root {
  --bg: #ffffff;
  --bg-muted: #f6f5f2;
  --ink: #1c1b19;
  --ink-muted: #5e5b55;
  --line: #ddd9d2;
  --line-soft: #eeebe5;
  --input-border: #c9c4bb;

  --accent: #0e5a6b;
  --accent-strong: #093d49;
  --accent-ink: #ffffff;

  --rail-bg: #1c1b19;
  --rail-ink: #d8d4cc;
  --rail-hover: rgba(255, 255, 255, 0.08);

  --ok-bg: #e6f2ee;   --ok-ink: #114d3a;   --ok-line: #b7dccb;
  --err-bg: #fbe9e7;  --err-ink: #7a1f14;  --err-line: #efb8b0;
  --warn-bg: #f3e9d9; --warn-ink: #6b4e16; --warn-line: #e4cfa6;
  --info-bg: #ebe9f6; --info-ink: #3b2f7a; --info-line: #cdc7ea;

  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size: 14px;
  --radius: 8px;
  --control-h: 40px;
  --touch: 44px;
  --rail-w: 72px;
}

@media (pointer: coarse) {
  :root { --control-h: 44px; --font-size: 15px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; min-height: 100vh; }

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
h1 { font-size: 18px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
p + p { margin-top: 0.5em; }

input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

table { border-collapse: collapse; width: 100%; }
th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }

.muted { color: var(--ink-muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.num-left { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
