/* The Aight console. The same tokens as portal/static/style.css and
   getaight.ai: paper, ink, one red stop. Money is only ever ink
   (console-v1 §0.2 rule 4), so no colour appears on a figure anywhere here.
   No web fonts: the content security policy allows styles from this origin
   only, and a console that waits on a font is a console that looks broken on
   a bad Indian connection. */

:root {
  --paper: #F7F7F4;
  --paper-raised: #ffffff;
  --ink: #141f31;
  --ink-soft: #525e6e;
  --hairline: #E4E3DC;
  --stamp: #b0341f;
  --error: #8F1D1D;
  --radius: 2px;
  --radius-button: 4px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-raised);
}
.mark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.mark::after { content: "."; color: var(--stamp); }
.who { color: var(--ink-soft); font-size: 14px; }

main { padding: 32px 24px 64px; margin: 0 auto; }
main.narrow { max-width: 520px; }
main.wide { max-width: 800px; }

h1 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 12px;
}
h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.sub { color: var(--ink-soft); margin-bottom: 24px; }
.help { color: var(--ink-soft); font-size: 14px; margin: 4px 0 20px; }
.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 4px;
}
.figure { font-size: 36px; line-height: 1.1; margin: 0 0 2px; color: var(--ink); }
.under { margin: 0 0 6px; color: var(--ink); }

/* A link that does what a button does, so a two-step confirmation needs no
   script: the first step is a GET, the second is the form that acts. */
a.btn {
  display: inline-block;
  padding: 9px 18px;
  font-weight: 600;
  color: var(--paper-raised);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-button);
  text-decoration: none;
}
a.btn.quietbtn { color: var(--ink); background: transparent; }

a { color: var(--ink); text-underline-offset: 3px; }
a.quiet { color: var(--ink-soft); font-size: 14px; text-decoration: none; }

label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 4px; }
input[type=text], input[type=email], select {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
input:focus, select:focus, button:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.code-box {
  width: 9ch;
  font-family: var(--mono);
  font-size: 24px;
  letter-spacing: 0.35em;
  text-align: center;
}

button {
  margin-top: 20px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--paper-raised);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-button);
  cursor: pointer;
}
button.quietbtn { color: var(--ink); background: transparent; }
button.linky {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
form.inline { display: inline; }
.dot { color: var(--ink-soft); margin: 0 6px; }

.error {
  color: var(--error);
  font-size: 14px;
  margin: 6px 0 0;
}
.notice {
  border-left: 3px solid var(--ink);
  padding: 8px 12px;
  background: var(--paper-raised);
  margin: 0 0 16px;
}
.warn { color: var(--error); font-weight: 600; }

.pairs { display: grid; grid-template-columns: 9rem 1fr; gap: 4px 16px; margin: 0 0 20px; }
.pairs dt { color: var(--ink-soft); font-size: 14px; }
.pairs dd { margin: 0; }

.block { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.block:last-of-type { border-bottom: 0; }

.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.count { color: var(--ink-soft); font-size: 14px; }
.row { padding: 16px 0; border-top: 1px solid var(--hairline); }
.row .meta { color: var(--ink-soft); font-size: 14px; margin: 2px 0; }
.actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.actions input[type=text] { width: 20rem; max-width: 100%; }
.actions button { margin-top: 12px; }

.foot {
  padding: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 13px;
}
.foot p { margin: 0; }
