/* Permit Desk — shared tokens and base styles. Sizes in rem; light first, dark follows the system. */
:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --sunk: #efece5;
  --ink: #1b2a41;
  --ink-2: #44546a;
  --ink-3: #6b7889;
  --line: #d9d4c8;
  --line-2: #e8e4da;
  --action: #1d5fbf;
  --action-ink: #ffffff;
  --action-soft: #e6eefb;
  --amber: #e0a100;
  --amber-soft: #fdf3d3;
  --amber-ink: #6b4a00;
  --green: #1c7a4b;
  --green-soft: #e2f3e9;
  --red: #b3261e;
  --red-soft: #fbe6e3;
  --grey-soft: #eceae4;
  --navy: #1b2a41;
  --navy-ink: #f2efe8;
  --navy-line: #5f7696;
  --radius: .5rem;
  --shadow: 0 1px 2px rgba(27, 42, 65, .06), 0 4px 14px rgba(27, 42, 65, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a26;
    --surface: #1a2433;
    --sunk: #151e2b;
    --ink: #e9edf3;
    --ink-2: #b6c1d0;
    --ink-3: #8b98aa;
    --line: #2e3b4e;
    --line-2: #253142;
    --action: #7fb0ff;
    --action-ink: #0d1726;
    --action-soft: #1f3252;
    --amber: #f0b429;
    --amber-soft: #3a2f10;
    --amber-ink: #f6d889;
    --green: #5fd39a;
    --green-soft: #173527;
    --red: #ff8f85;
    --red-soft: #40201d;
    --grey-soft: #253142;
    --navy: #0e1520;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: .15em; }
:focus-visible { outline: .2rem solid var(--amber); outline-offset: .15rem; border-radius: .2rem; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer;
       padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
       color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { color: var(--red); }
.btn[disabled] { opacity: .5; cursor: default; }

.mark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700;
        font-size: 1.15rem; color: inherit; text-decoration: none; }
.mark svg { width: 1.6rem; height: 1.6rem; flex: none; }

.chip { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: .3rem .55rem;
        border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.chip.wait { background: var(--amber-soft); color: var(--amber-ink); }
.chip.go { background: var(--action-soft); color: var(--action); }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.bad { background: var(--red-soft); color: var(--red); }

.demo-bar { background: var(--amber-soft); color: var(--amber-ink); font-size: .85rem; text-align: center; padding: .4rem 1rem; }
.demo-bar a { color: inherit; }
