/* The account pages until the design system (CON-25) replaces this file.
   Plain on purpose: tokens, both themes, nothing to unlearn later. */

:root {
  --ground: #f7f7f5;
  --surface: #ffffff;
  --ink: #1d2126;
  --muted: #5d6670;
  --line: #d9dcdf;
  --accent: #2f5d8a;
  --accent-ink: #ffffff;
  --error-ground: #fbeaea;
  --error-ink: #8a1f1f;
  --note-ground: #e8f1ea;
  --note-ink: #1f5a2e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #15181b;
    --surface: #1d2125;
    --ink: #e6e8ea;
    --muted: #9aa3ac;
    --line: #333a41;
    --accent: #7fa9d4;
    --accent-ink: #10161c;
    --error-ground: #3a1d1d;
    --error-ink: #f2b8b8;
    --note-ground: #1b3222;
    --note-ink: #b5e0c0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #15181b;
  --surface: #1d2125;
  --ink: #e6e8ea;
  --muted: #9aa3ac;
  --line: #333a41;
  --accent: #7fa9d4;
  --accent-ink: #10161c;
  --error-ground: #3a1d1d;
  --error-ink: #f2b8b8;
  --note-ground: #1b3222;
  --note-ink: #b5e0c0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top nav { display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 600; color: var(--ink); text-decoration: none; }

main { margin: 32px auto; padding: 0 16px; }
main.narrow { max-width: 30rem; }
main.wide { max-width: 64rem; }

h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
section { margin-top: 32px; }

.stack { display: grid; gap: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
label { display: grid; gap: 4px; font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }

input, select, button { font: inherit; }
input:not([type="checkbox"]), select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
button {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
button.quiet { background: transparent; color: var(--accent); padding: 4px 10px; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.inline { display: inline; margin: 0; }

.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.alert { padding: 10px 12px; border-radius: 6px; }
.alert.error { background: var(--error-ground); color: var(--error-ink); }
.alert.note { background: var(--note-ground); color: var(--note-ink); }
.tag { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.rows { list-style: none; margin: 0 0 12px; padding: 0; }
.rows li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li > div { min-width: 0; overflow-wrap: anywhere; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; }
