/* DragonProposal web tokens. Light surfaces like dragonrecorder's web side,
   but a bronze brand colour instead of the blue: this ink ends up in a PDF a
   client prints, and bronze reads as document rather than as app chrome.
   Reserved: --brand = document headings and primary actions, --ok = signed
   and paid, --warn = failure states only. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f2f1ee;
  --line: #e4e2dd;
  --line-strong: #d3d0c9;
  --text: #17181c;
  --muted: #5c6470;
  --faint: #98a0ac;
  --brand: #7c4a12;
  --brand-dim: #f3e9dc;
  --ok: #2f7d4f;
  --ok-dim: #e3f2e8;
  --warn: #b3261e;
  --warn-dim: #fbe9e7;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --sans: "DM Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono, time, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button {
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
button:hover:not(:disabled) { background: var(--surface-2); }
button:disabled { opacity: .55; cursor: default; }
button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
button.primary:hover:not(:disabled) { filter: brightness(1.09); background: var(--brand); }
button.danger { color: var(--warn); border-color: #e8c9c6; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
}
textarea { line-height: 1.55; resize: vertical; }
label { display: block; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface);
  white-space: nowrap;
}
.pill.ok { color: var(--ok); background: var(--ok-dim); border-color: #c9e3d3; }
.pill.warn { color: var(--warn); background: var(--warn-dim); border-color: #f0cfcb; }
.pill.brand { color: var(--brand); background: var(--brand-dim); border-color: #e6d6c0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
