/* Shared tokens and fonts. Coinbase Sans for all text, Coinbase Mono for figures.
   unicode-range skips U+00B5 (micro sign), which Coinbase Sans draws like a plain "u"; the
   browser falls back to a system font for it so "µm" never reads as "um". */
@font-face { font-family: 'Coinbase Sans'; src: url('/static/fonts/Coinbase_Sans-Regular-web-1.32.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00B4, U+00B6-FFFF; }
@font-face { font-family: 'Coinbase Sans'; src: url('/static/fonts/Coinbase_Sans-Regular_Italic-web-1.32.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00B4, U+00B6-FFFF; }
@font-face { font-family: 'Coinbase Sans'; src: url('/static/fonts/Coinbase_Sans-Medium-web-1.32.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00B4, U+00B6-FFFF; }
@font-face { font-family: 'Coinbase Sans'; src: url('/static/fonts/Coinbase_Sans-Bold-web-1.32.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00B4, U+00B6-FFFF; }
@font-face { font-family: 'Coinbase Mono'; src: url('/static/fonts/Coinbase_Mono-Regular-web.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00B4, U+00B6-FFFF; }
@font-face { font-family: 'Coinbase Mono'; src: url('/static/fonts/Coinbase_Mono-Medium-web.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00B4, U+00B6-FFFF; }

:root {
  color-scheme: light;
  --font: 'Coinbase Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Coinbase Mono', ui-monospace, Menlo, Consolas, monospace;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0a0b0d;
  --muted: #5b616e;
  --border: #dee1e7;
  --blue: #0052ff;
  --blue-press: #003ecb;
  --blue-soft: #e8efff;
  --green: #05832f;
  --amber: #8a5a00;
  --amber-soft: #fff4dc;
  --red: #cf202f;
  --red-soft: #fdecee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 500; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; cursor: pointer; background: var(--blue); color: #fff; }
.btn:hover:not(:disabled) { background: var(--blue-press); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover:not(:disabled) { background: #eef0f3; }
.btn.danger { background: var(--red); }
.btn.link { background: none; color: var(--blue); padding: 0 6px; min-height: 36px; }
.btn.link:hover:not(:disabled) { background: none; text-decoration: underline; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 82, 255, 0.35); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 0.92rem; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--text); min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
.notice-error { background: var(--red-soft); color: var(--red); border-radius: 8px; padding: 10px 14px; }
.notice-ok { background: #e7f6ec; color: var(--green); border-radius: 8px; padding: 10px 14px; }
.notice-warn { background: var(--amber-soft); color: var(--amber); border-radius: 8px; padding: 10px 14px; }
