/* Shared styles for the account screens (sign-in, waiting, onboarding, admin). Same tokens as the landing page. */
:root {
  --bg: #F6F7F4; --surface: #FFFFFF; --surface-2: #EEF2ED; --ink: #1F2A2E; --ink-2: #4A5A5C; --muted: #7A8A8C;
  --line: #DCE2DE; --line-2: #EAEFEB; --accent: #1E7A63; --accent-ink: #145A49; --accent-soft: #E1F0E9;
  --warn: #A86A12; --warn-soft: #F7EBD3; --crit: #A33A2E; --crit-soft: #F6E1DE;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #131919; --surface: #1B2323; --surface-2: #202A2A; --ink: #E6EAE7; --ink-2: #B7C2BF; --muted: #8E9C99;
  --line: #2D3838; --line-2: #263030; --accent: #4FBF9F; --accent-ink: #86DCC3; --accent-soft: #1D3A33;
  --warn: #E0A64A; --warn-soft: #3A2E17; --crit: #E27A6C; --crit-soft: #3D2320;
} }
:root[data-theme="dark"] {
  --bg: #131919; --surface: #1B2323; --surface-2: #202A2A; --ink: #E6EAE7; --ink-2: #B7C2BF; --muted: #8E9C99;
  --line: #2D3838; --line-2: #263030; --accent: #4FBF9F; --accent-ink: #86DCC3; --accent-soft: #1D3A33;
  --warn: #E0A64A; --warn-soft: #3A2E17; --crit: #E27A6C; --crit-soft: #3D2320;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; margin: 0; text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
a { color: var(--accent-ink); }
.mono { font-family: "IBM Plex Mono", Menlo, monospace; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.top .logo { font-family: "Bricolage Grotesque", Arial, sans-serif; font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.top .logo i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: inline-block; }
.top nav { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.wrap { max-width: 520px; margin: 0 auto; padding: 48px 20px 64px; }
.wrap.wide { max-width: 1180px; padding-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.eyebrow { font-family: "IBM Plex Mono", Menlo, monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
p { margin: 10px 0 0; color: var(--ink-2); }
label { display: block; font-weight: 600; font-size: 13.5px; margin: 16px 0 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A8A8C' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.small { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.danger { color: var(--crit); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.wide { width: 100%; margin-top: 18px; }
.msg { margin-top: 12px; font-size: 14px; color: var(--crit); min-height: 20px; }
.msg.ok { color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 14px; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--accent-soft); color: var(--accent-ink); }
.pill.rejected { background: var(--crit-soft); color: var(--crit); }
.big { font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 44px; font-weight: 800; color: var(--accent-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.linkbox { margin-top: 14px; padding: 12px; background: var(--warn-soft); color: var(--warn); border-radius: 7px; font-size: 13px; word-break: break-all; }
.linkbox a { color: inherit; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.stat .n { font-family: "Bricolage Grotesque", Arial, sans-serif; font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 6px; margin: 8px 0 12px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; white-space: nowrap; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
td.wrapc { white-space: normal; min-width: 220px; color: var(--ink-2); }
td .sub { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 6px; }
