/* night.css - the shared look of aqthevision.ai: the public pages, the four account pages and the signed-in app (slice site-paper, 2026-11-24).
   The look of the sites the owner named, measured from their live pages (table in AQ Office's .done/office-paper.build-notes.md): light by default,
   few words, soft bordered cards, rounded buttons, one brand colour. Same tokens and shapes as AQ Office's night.css.
   Day = paper #FAF9F5 / ink #141413 / grey #5E5D59 / border #D1CFC5 / surface #F5F4ED / field #FFFFFF.
   Night = the same shapes on #0B0B0B / #E9E9E9 / #909090 / #2B2B2B / #161616 / #0B0B0B.
   Cards: surface + 1 px border + 16 px radius + >= 20 px padding (shadow 0 1px 2px at 6 % in Day, none in Night). Buttons and fields: 10 px radius;
   the one primary of a screen is gold #D4990C with ink words; menus 12 px, dialogs 16 px, pills 999. Gold is for the mark, the primary, the focus ring and the current pill.
   Atkinson Hyperlegible 17/26 for words, Kufam 600 for headings; nothing under 16 px; controls >= 44 px (48 px on the app and the account pages at a phone's width).
   An inline line in every page's head sets <html data-theme> before the first paint: Day, unless Night was chosen or nothing was chosen and the phone prefers dark.
   This sheet loads AFTER aq.css on the app and the account pages: it re-points aq.css's tokens and restyles the components those pages use.
   Spacing steps: 4 8 12 16 24 32 48 64. */

@font-face{font-family:'Kufam';src:url('/fonts/Kufam-Regular.ttf?v=2026-11-24d') format('truetype');font-weight:400 500;font-display:swap}
@font-face{font-family:'Kufam';src:url('/fonts/Kufam-Bold.ttf?v=2026-11-24d') format('truetype');font-weight:600 900;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url('/fonts/atkinson-Regular.ttf?v=2026-11-24d') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url('/fonts/atkinson-Bold.ttf?v=2026-11-24d') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url('/fonts/atkinson-Italic.ttf?v=2026-11-24d') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Atkinson Hyperlegible';src:url('/fonts/atkinson-BoldItalic.ttf?v=2026-11-24d') format('truetype');font-weight:700;font-style:italic;font-display:swap}

:root{
  --night:#FAF9F5;--white:#141413;--line:#D1CFC5;--grey:#5E5D59;--surface:#F5F4ED;--field:#FFFFFF;
  --gold:#D4990C;--gold-fill:#D4990C;--gold-text:#8F6200;--gold-lit:#E2A91F;
  --err:#B3261E;--on-focus:#141413;--overlay:rgba(20,20,19,.45);
  --shadow:0 1px 2px rgba(0,0,0,.06);--shadow-menu:0 8px 32px rgba(0,0,0,.12);
  --r-card:16px;--r-btn:10px;--r-menu:12px;
  --select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5D59' stroke-width='1.5'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  --display:'Kufam','Century Gothic','Avenir Next',sans-serif;
  --body:'Atkinson Hyperlegible','Source Sans 3','Segoe UI',sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);--slow:500ms;
  /* aq.css tokens, re-pointed */
  --bg:var(--night);--bg-2:var(--night);--bg-3:var(--night);--bg-grad:var(--night);
  --gold-2:var(--gold);--gold-3:var(--gold);--gold-hover:var(--gold-lit);--gold-active:var(--gold-lit);
  --gold-04:rgba(212,153,12,.04);--gold-08:rgba(212,153,12,.08);--gold-12:rgba(212,153,12,.12);--gold-20:rgba(212,153,12,.2);--gold-25:rgba(212,153,12,.25);
  --text:var(--white);--text-2:var(--grey);--text-3:var(--grey);
  --ok:var(--white);--warn:var(--gold-text);
  --line-hover:var(--grey);--line-soft:var(--line);
  --font-display:var(--display);--font-body:var(--body);
  --r-xs:6px;--r-sm:8px;--r-md:10px;--r-lg:16px;--r-tile:16px;--r-full:999px;
  --lift-1:none;--lift-2:none;--lift-3:none;
  --t-fast:200ms var(--ease);--t-card:200ms var(--ease);
  color-scheme:light;
}
:root[data-theme="night"]{
  --night:#0B0B0B;--white:#E9E9E9;--line:#2B2B2B;--grey:#909090;--surface:#161616;--field:#0B0B0B;
  --gold-text:#D4990C;--err:#E8566D;--on-focus:#000000;--overlay:rgba(0,0,0,.72);
  --shadow:none;
  --select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='1.5'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  color-scheme:dark;
}
html{background:var(--night);scroll-behavior:auto;-webkit-tap-highlight-color:transparent}
body{background:var(--night);color:var(--white);font-family:var(--body);font-size:17px;line-height:26px;font-weight:400;font-synthesis:none;font-feature-settings:normal;-webkit-font-smoothing:antialiased}
body::before{display:none}
::selection{background:var(--gold-fill);color:#141413}
*{scrollbar-color:var(--line) transparent}
::-webkit-scrollbar-thumb{border-radius:6px;border:0;background:var(--line)}
h1,h2,h3,h4,.h1,.h2,.h3,.h4{font-family:var(--display);font-weight:600;letter-spacing:0;color:var(--white);text-wrap:balance}
p,li,.lede,blockquote{font-family:var(--body)}
p,li{max-width:none}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--white);outline-offset:2px;box-shadow:none}
.skip-link:focus,.skip:focus{left:8px;top:8px;background:var(--night);color:var(--white);border:1px solid var(--line);border-radius:var(--r-btn);padding:8px 16px;min-height:44px;display:inline-flex;align-items:center;font-weight:400}
mark{background:none;color:var(--gold-text);font-weight:700}
dialog{background:var(--night);color:var(--white);border:1px solid var(--line);border-radius:16px;padding:24px 28px;max-width:560px;width:calc(100% - 32px);box-shadow:var(--shadow-menu)}
dialog::backdrop{background:var(--overlay)}

/* ---- the mark, the top bar: the page colour, no line, 64 px (56 on a phone) --------------------------- */
.col{max-width:1180px;margin:0 auto;padding:0 32px}
.top{position:sticky;top:0;z-index:20;background:var(--night);border:0}
.top .col{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.mark{display:inline-flex;align-items:center;gap:10px;min-height:48px;font-family:var(--display);font-weight:600;font-size:19px;line-height:28px;letter-spacing:.06em;white-space:nowrap;color:var(--white)}
.mark svg{width:18px;height:18px;flex:none;display:block}
.mark svg path{stroke:var(--gold)}

/* ---- links: quiet words with a soft pill on hover ---------------------------------------------------- */
.link,.link-gold,.auth-foot a,.auth-legal a{display:inline-flex;align-items:center;min-height:48px;padding:0 12px;margin:0 -12px;color:var(--white);font-weight:400;border:1px solid transparent;border-radius:var(--r-btn);transition:background-color 200ms var(--ease),border-color 200ms var(--ease)}
.link:hover,.link-gold:hover,.auth-foot a:hover,.auth-legal a:hover{color:var(--white);background:var(--surface)}
.link-gold,.auth-legal a{color:var(--white)}
.link[aria-current="page"]{background:var(--surface);border-color:var(--line)}

/* ---- buttons: rounded; secondary = surface + 1 px border; the one primary = gold with ink words -------- */
.btn,.btn-sm,.btn-dark,.btn-ghost,.btn-block{--btn-bg:var(--surface);--btn-text:var(--white);--btn-border:var(--line)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;background:var(--surface);color:var(--white);border:1px solid var(--line);border-radius:var(--r-btn);font-family:var(--body);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;white-space:normal;cursor:pointer;text-align:center;transition:border-color 200ms var(--ease),background-color 200ms var(--ease)}
.btn:hover:not(:disabled){background:var(--surface);color:var(--white);border-color:var(--grey)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-sm{min-height:48px;padding:0 16px;font-size:16px}
.btn.btn-gold,.cart,.hex{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:1px solid transparent;border-radius:var(--r-btn);background:var(--gold-fill);color:#141413;font-family:var(--body);font-size:17px;line-height:26px;font-weight:700;text-align:center;cursor:pointer;text-decoration:none;transition:background-color 200ms var(--ease)}
.btn.btn-gold:hover:not(:disabled),.cart:hover:not(:disabled),.hex:hover:not(:disabled){background:var(--gold-lit);color:#141413;border-color:transparent}
.btn.btn-gold:active:not(:disabled){background:var(--gold-lit)}
.btn.btn-gold:focus-visible,.cart:focus-visible,.hex:focus-visible{outline:2px solid var(--white);outline-offset:2px}
.btn.btn-gold:disabled,.cart:disabled{opacity:.5;cursor:not-allowed}
.btn.btn-gold.btn-block{width:auto}
.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;border-radius:var(--r-btn);background:transparent;color:var(--grey)}
.btn-icon:hover{color:var(--white);background:var(--surface);border:0}

/* ---- fields: the field colour, one border, rounded; a gold ring on focus ----------------------------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:24px}
.field>label,.a-lab{font-size:17px;line-height:26px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--white)}
.input,input[type="text"],input[type="email"],input[type="password"],input[type="search"],textarea,select{
  width:100%;min-height:48px;padding:10px 14px;background:var(--field);border:1px solid var(--line);border-radius:var(--r-btn);box-shadow:none;
  color:var(--white);font-family:var(--body);font-size:17px;line-height:26px;transition:border-color 200ms var(--ease),box-shadow 200ms var(--ease)}
.input::placeholder,input::placeholder,textarea::placeholder{color:var(--grey);opacity:1}
.input:hover,input[type="text"]:hover,input[type="email"]:hover,input[type="password"]:hover,input[type="search"]:hover,textarea:hover,select:hover{border-color:var(--grey);background:var(--field)}
.input:focus,input:focus,textarea:focus,select:focus,
.input:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:none;background:var(--field);border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
.input[aria-invalid="true"],input[aria-invalid="true"]{border-color:var(--err)}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--field) inset!important;-webkit-text-fill-color:var(--white)!important;caret-color:var(--white)}
select{-webkit-appearance:none;appearance:none;cursor:pointer;padding-right:40px;
  background-image:var(--select-arrow);
  background-repeat:no-repeat;background-position:right 12px center;background-size:20px}
select option{background:var(--night);color:var(--white)}
textarea{resize:vertical}
input[type=checkbox],input[type=radio]{appearance:none;-webkit-appearance:none;flex:none;width:24px;height:24px;min-height:0;padding:0;margin:0;background:var(--field);border:1px solid var(--line);border-radius:6px;cursor:pointer;vertical-align:middle;box-shadow:none}
input[type=radio]{border-radius:50%}
input[type=checkbox]:checked{border-color:var(--white);background-color:var(--white);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FAF9F5' stroke-width='3'/%3E%3C/svg%3E");background-position:center;background-size:85%;background-repeat:no-repeat}
:root[data-theme="night"] input[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230B0B0B' stroke-width='3'/%3E%3C/svg%3E")}
input[type=radio]:checked{border-color:var(--white);background:var(--white);box-shadow:inset 0 0 0 5px var(--night)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{box-shadow:0 0 0 2px var(--white)}
input[type=radio]:checked:focus-visible{box-shadow:inset 0 0 0 5px var(--night),0 0 0 2px var(--white)}
.hint{font-size:16px;line-height:24px;color:var(--grey);margin-top:4px}
.field-error{display:flex;align-items:flex-start;gap:8px;color:var(--err);font-size:16px;line-height:24px}
.field-error::before{width:18px;height:18px;margin-top:3px}
.shake{animation:none}

/* ---- badges, notices, skeletons, empty states ---------------------------------------------------------- */
.badge{display:inline-flex;align-items:center;gap:4px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--grey);font-size:16px;line-height:22px;font-weight:400;letter-spacing:0;text-transform:none}
.badge-gold{background:var(--surface);color:var(--gold-text);border-color:var(--gold)}
.badge-ok{background:var(--surface);color:var(--white)}
.badge-warn{background:var(--surface);color:var(--gold-text)}
.badge-err{background:var(--surface);color:var(--err);border-color:var(--err)}
.dot{border-radius:50%}
.notice{display:flex;gap:16px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px 20px}
.notice-err{border-color:var(--err)}
.notice-warn,.notice-gold{border-color:var(--gold)}
.notice-ok{border-color:var(--line)}
.notice h4{font-size:21px;line-height:28px;font-weight:600;margin-bottom:4px}
.notice p{color:var(--grey);font-size:17px;line-height:26px}
.skel{background:var(--line);border-radius:8px;animation:pulse 2s ease-in-out infinite}
.loading-note{color:var(--grey)}
.empty h4{font-size:28px}
.empty p{color:var(--grey);font-size:17px}

/* ---- toasts, connection banner, Ctrl+K search ------------------------------------------------------------ */
.toasts{right:16px;bottom:16px}
.toast{background:var(--night);color:var(--white);border:1px solid var(--line);border-radius:var(--r-menu);box-shadow:var(--shadow-menu);padding:12px 16px;font-size:17px;line-height:26px;animation:night-rise 300ms var(--ease) both}
.toast-ok{border-color:var(--line)}
.toast-err{border-color:var(--err)}
.toast.out{animation:none;opacity:0;transition:opacity 250ms linear}
.conn{background:var(--night);backdrop-filter:none;-webkit-backdrop-filter:none;border:1px solid var(--line);border-radius:var(--r-menu);box-shadow:var(--shadow-menu);color:var(--white);font-size:16px}
.conn-warn{border-color:var(--gold)}
.scrim{background:var(--overlay);backdrop-filter:none;-webkit-backdrop-filter:none}
.palette{background:var(--night);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-menu);overflow:hidden}
.palette.show{animation:night-rise 300ms var(--ease) both}
.palette input{width:calc(100% - 24px);margin:12px 12px 0;min-height:48px;padding:10px 14px;background:var(--field);border:1px solid var(--line);border-radius:var(--r-btn);color:var(--white);font-size:17px}
.palette input:focus{background:var(--field);border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
.palette-list{padding:8px}
.palette-item{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:8px;font-size:17px;line-height:26px;color:var(--white)}
.palette-item[aria-selected="true"]{background:var(--surface);color:var(--white)}
.palette-item .who{font-family:var(--body);font-size:16px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--grey)}
.palette-empty{color:var(--grey);font-size:17px;text-align:left;padding:20px}
kbd{border-radius:6px;background:var(--surface);border:1px solid var(--line);color:var(--grey);box-shadow:none;font-size:16px}

/* ---- the four account pages: one card in a column: the mark, the title, fields, the gold button ----------- */
body.auth-page{display:block;padding:0;min-height:100vh}
.auth-page>.top{position:static}
.auth{width:100%;max-width:568px;margin:0 auto;padding:48px 24px 64px}
.auth>*{max-width:520px}
@media (min-width:701px){
  body.auth-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
  .auth{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center}
}
.auth h1{font-size:40px;line-height:48px;font-weight:600;text-align:left;letter-spacing:0;margin:0 0 12px}
.auth-sub{text-align:left;color:var(--grey);font-size:17px;line-height:26px;margin:0 0 24px}
.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow);padding:24px}
.auth-card h2{font-size:24px;line-height:32px;font-weight:600;margin-bottom:12px}
.auth-card .btn.btn-gold{min-height:48px;font-size:17px;line-height:26px}
.auth-card form .btn-dark,.auth-card form .btn-ghost{margin-top:12px}
.auth-foot{text-align:left;margin-top:24px;font-size:17px;line-height:26px;color:var(--grey)}
.auth-foot a{color:var(--white)}
.auth-legal{text-align:left;margin-top:24px;font-size:16px;line-height:24px;color:var(--grey)}
.auth-legal a{font-size:16px}
.promise{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:12px}
.promise li{position:relative;padding:12px 0 0 24px;border-top:1px solid var(--line);font-size:17px;line-height:26px;color:var(--white)}
.promise li::before{content:'';position:absolute;left:0;top:23px;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.auth-page .a-lang{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.auth-page .a-lang button{display:flex;align-items:center;min-height:48px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--white);font:inherit;font-size:16px;line-height:24px;cursor:pointer;transition:border-color 200ms var(--ease)}
.auth-page .a-lang button:hover{border-color:var(--grey)}
.auth-page .a-lang button[aria-pressed="true"]{background:var(--white);color:var(--night);border-color:var(--white)}
.auth-page .au-trust{color:var(--grey);margin:0 0 24px}
.auth-page .au-trust a,.auth-page .field-error a,.auth-page .notice-err li a{display:inline-flex;align-items:center;min-height:48px;color:var(--white);border-bottom:1px solid var(--line)}
.auth-page .a-pw{position:relative}
.auth-page .a-pw input{padding-right:96px}
.auth-page .pwb{position:absolute;right:2px;top:50%;transform:translateY(-50%);min-height:48px;min-width:64px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--grey);font:inherit;font-size:16px;line-height:24px;cursor:pointer}
.auth-page .pwb:hover{color:var(--white);background:var(--surface)}
.auth-page .field.tight{margin-bottom:4px}
.auth-page .forgot{margin:0 0 16px}
.es-title{font-family:var(--display);font-size:21px;line-height:28px;font-weight:600;color:var(--white);margin:0 0 4px}
.notice-err ul{margin:0;padding:0;list-style:none}
.notice-err li{color:var(--white);font-size:17px;line-height:26px}
.notice-err:focus{outline:2px solid var(--white);outline-offset:2px}
.auth form>.notice-err{margin-bottom:16px}

/* ---- entry reveal: opacity + 8 px rise; entry only ------------------------------------------------------- */
@keyframes night-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.auth>*{animation:night-rise var(--slow) var(--ease) both}
.auth>:nth-child(2){animation-delay:60ms}
.auth>:nth-child(3){animation-delay:120ms}
.auth>:nth-child(n+4){animation-delay:180ms}

@media (max-width:700px){
  .col{padding:0 16px}
  .top .col{min-height:56px}
  .mark{font-size:16px;letter-spacing:.03em;min-height:48px}
  .auth{padding:24px 16px 48px}
  .auth h1{font-size:34px;line-height:42px}
  .auth-card{padding:20px}
  .auth-card .btn.btn-gold,.btn.btn-gold.btn-block{display:flex;width:100%;min-height:48px}
  .btn,.btn-sm{min-height:48px}
  .link,.link-gold,.auth-foot a,.auth-legal a,.auth-page .au-trust a,.auth-page .a-lang button,.auth-page .pwb{min-height:48px}
  .field{margin-bottom:16px}
  .toasts{left:16px;right:16px;bottom:12px;max-width:none}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* ======================================================================================================
   THE PUBLIC PAGES (slice site-all, repainted by site-paper). Everything below is scoped to body.site, so the app and the four account pages do not change.
   A public page does not load aq.css, so this layer carries its own reset. The same tokens as above.
   Sizes: body 17/26, small 16/24, nothing under 16. Spacing steps: 4 8 12 16 24 32 48 64 96.
   ====================================================================================================== */
body.site,body.site *,body.site *::before,body.site *::after{box-sizing:border-box}
body.site{margin:0;font-size:17px;line-height:26px;overflow-x:hidden}
body.site h1,body.site h2,body.site h3,body.site h4,body.site p,body.site ul,body.site ol,body.site dl,body.site dd,body.site figure,body.site blockquote{margin:0;padding:0}
body.site ul,body.site ol{list-style:none}
body.site img,body.site svg,body.site video{max-width:100%}
body.site button{font-family:inherit}
body.site .skip{position:absolute;left:-999px;top:8px;z-index:40;background:var(--night);color:var(--white);border:1px solid var(--line);border-radius:var(--r-btn);padding:8px 16px;min-height:44px;display:inline-flex;align-items:center}
body.site .skip:focus{left:8px}
body.site h1{font-size:40px;line-height:48px;letter-spacing:0;margin:0 0 24px;max-width:21ch}
body.site h2{font-size:32px;line-height:40px;margin:0 0 24px;max-width:24ch}
body.site h3{font-size:21px;line-height:28px;margin:0 0 8px}
body.site h4{font-size:18px;line-height:26px;margin:0 0 4px}
body.site p+p{margin-top:16px}
body.site .small,body.site .note{font-size:16px;line-height:24px}
body.site .note,body.site .dim{color:var(--grey)}
body.site .lede{font-size:20px;line-height:30px;max-width:42ch;margin:0 0 24px}
body.site .tag{display:block;font-size:16px;line-height:24px;margin-bottom:8px;color:var(--grey)}
body.site .label{display:block;font-size:17px;line-height:26px;font-weight:700;margin:48px 0 12px}
body.site code,body.site pre,body.site .mono{font-family:ui-monospace,Consolas,monospace;font-size:16px;line-height:24px}
body.site pre{white-space:pre-wrap;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 20px;overflow-x:auto}
body.site hr{border:0;border-top:1px solid var(--line);margin:32px 0}
body.site main{display:block}
body.site section{scroll-margin-top:96px}
body.site .sec{padding:64px 0 0}
body.site .page{padding:48px 0 64px}
body.site .page-head{padding:48px 0 16px}
/* a link inside a sentence is a 48 px target without moving the lines: an inline-block 26 px high, 11 px padding above and below, pulled back by the same margin; the hairline is drawn at the words' foot */
body.site .prose a,body.site .note a,body.site .after a,body.site .list a,body.site .lede a{display:inline-block;padding:11px 0;margin:-11px 0;line-height:26px;background:linear-gradient(var(--line),var(--line)) 0 calc(100% - 11px)/100% 1px no-repeat}
body.site .prose a:hover,body.site .note a:hover,body.site .after a:hover,body.site .list a:hover,body.site .lede a:hover{background-image:linear-gradient(var(--white),var(--white))}
body.site .qlink,body.site .back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-btn);transition:border-color 200ms var(--ease)}
body.site .qlink:hover,body.site .back:hover{border-color:var(--grey)}
body.site .back{margin:0 0 16px}
body.site .prose{max-width:760px}
body.site .prose h2{font-size:28px;line-height:36px;margin:48px 0 12px;max-width:none}
body.site .prose h3{font-size:21px;line-height:28px;margin:32px 0 8px}
body.site .prose ul{list-style:disc;padding-left:32px;margin:12px 0 0}
body.site .prose ol{list-style:decimal;padding-left:32px;margin:12px 0 0}
body.site .prose li+li{margin-top:8px}

/* header: the tools row (theme and language), then the sticky bar with the mark and the links */
body.site .tools{border:0}
body.site .tools .col{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:0 16px;min-height:48px;align-items:center}
body.site .tool-set{display:flex;gap:4px}
body.site .wordbtns{display:flex;flex-wrap:wrap;gap:0 8px}
body.site .wordbtns button{padding:0 16px}
body.site [hidden]{display:none!important}
body.site .tool-set button,body.site .wordbtns button{min-height:44px;min-width:44px;padding:0 14px;background:transparent;border:1px solid transparent;border-radius:999px;color:var(--white);font:inherit;font-size:16px;line-height:24px;cursor:pointer;transition:background-color 200ms var(--ease),border-color 200ms var(--ease)}
body.site .tool-set button:hover,body.site .wordbtns button:hover{background:var(--surface)}
body.site .tool-set button[aria-pressed="true"],body.site .wordbtns button[aria-pressed="true"]{background:var(--surface);border-color:var(--line)}
/* the one theme control: a sun or a moon, top right, always on screen (the icon is the mode a tap brings) */
.theme-toggle,.a-tt{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;background:transparent;border:1px solid transparent;border-radius:999px;color:var(--white);cursor:pointer;transition:background-color 200ms var(--ease),border-color 200ms var(--ease)}
.theme-toggle:hover,.a-tt:hover{background:var(--surface);border-color:var(--line)}
.theme-toggle svg,.a-tt svg{width:22px;height:22px;flex:none}
html[data-theme="day"] .tt-sun,html[data-theme="night"] .tt-moon{display:none}
.a-bar .a-tt{margin-left:auto}
body.site .menu+.theme-toggle{margin-left:8px}
/* the account pages: the header spans the page like everywhere else, so the mark is far left and the sun/moon far right */
.auth-page>.top{width:100%;align-self:stretch}
.auth-page>.top .col{max-width:1180px;width:100%}
body.site .links{display:flex;flex-wrap:wrap;gap:0 4px}
body.site .links .link{font-size:16px;line-height:24px;margin:0}
body.site .menu{display:none}
body.site .menu summary{list-style:none;display:flex;align-items:center;min-height:44px;min-width:44px;padding:0 16px;font-size:16px;line-height:24px;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-btn)}
body.site .menu summary::-webkit-details-marker{display:none}
body.site .menu[open] summary{border-color:var(--grey)}
body.site .menu ul{position:absolute;left:16px;right:16px;top:calc(100% + 4px);padding:8px;background:var(--night);border:1px solid var(--line);border-radius:var(--r-menu);box-shadow:var(--shadow-menu)}
body.site .menu li .link{display:flex;font-size:16px;margin:0;width:100%}
@media (max-width:1000px){
  body.site .links{display:none}
  body.site .menu{display:block}
}

/* the footer: a brand block and four columns of links */
body.site .foot{border-top:1px solid var(--line);margin-top:64px}
body.site .foot .col{padding-top:48px;padding-bottom:32px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:32px}
body.site .foot-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
body.site .foot p{font-size:16px;line-height:24px;margin-top:8px;max-width:300px}
body.site .foot .head{display:block;font-size:16px;line-height:24px;font-weight:700;margin-bottom:4px}
body.site .foot .link{font-size:16px;line-height:24px}
body.site .foot .bar{grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px;margin:0;max-width:none;color:var(--grey)}

/* columns, lists and cards: a soft surface with one border and round corners */
body.site .three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.site .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.site .three>li,body.site .two>li,body.site .card,body.site .rows>li,body.site details.q{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow)}
body.site .three>li,body.site .two>li,body.site .card{padding:24px}
body.site .card{display:block;min-width:0}
body.site a.card:hover{border-color:var(--grey)}
body.site .three p,body.site .two p,body.site .card p{margin-top:8px}
body.site .rows{display:grid;gap:16px}
body.site .rows>li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 48px;padding:24px}
body.site .rows .big{font-family:var(--display);font-weight:600;font-size:21px;line-height:28px}
body.site .after{margin-top:24px}
body.site .list{display:grid;gap:0}
body.site .list>li{position:relative;padding:12px 0 12px 32px;border-top:1px solid var(--line)}
body.site .list>li:last-child{border-bottom:1px solid var(--line)}
body.site .list>li::before{content:'';position:absolute;left:0;top:23px;width:8px;height:8px;border-radius:50%;background:var(--gold)}
body.site .list b{font-weight:700}
body.site .line{font-family:ui-monospace,Consolas,monospace;font-size:16px;line-height:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin-top:24px;white-space:pre-wrap}
body.site .split{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:48px;align-items:start;margin-top:24px}
body.site details.q{padding:8px 24px;margin-bottom:12px}
body.site details.q summary{display:flex;align-items:center;min-height:48px;cursor:pointer;font-family:var(--display);font-weight:600;font-size:21px;line-height:28px;list-style:none}
body.site details.q summary::-webkit-details-marker{display:none}
body.site details.q[open] summary{border-bottom:1px solid var(--line)}
body.site details.q p{padding:12px 0}

/* controls of a public page are 48 px at every width */
body.site .link,body.site .tool-set button,body.site .wordbtns button,body.site .menu summary,body.site .links .link,body.site .foot .link,body.site .qlink,body.site .back,body.site .menu li .link,body.site .btn,body.site .btn-sm{min-height:48px}

/* tables: wide ones scroll inside .tablewrap, never the page */
body.site .tablewrap{overflow-x:auto;max-width:100%}
body.site table{border-collapse:collapse;width:100%;font-size:16px;line-height:24px}
body.site th,body.site td{text-align:left;vertical-align:top;padding:12px 16px 12px 0;border-top:1px solid var(--line)}
body.site th{font-weight:700;color:var(--white);border-top:0;border-bottom:1px solid var(--line)}
body.site tr:last-child td{border-bottom:1px solid var(--line)}

/* forms and the primary: the rules above style .field, .input, .btn, .btn-gold, .notice; a public page adds its own .cart and the other input types */
body.site .cart{min-height:48px}
body.site input[type="tel"],body.site input[type="url"],body.site input[type="number"],body.site input[type="date"]{width:100%;min-height:48px;padding:10px 14px;background:var(--field);border:1px solid var(--line);border-radius:var(--r-btn);box-shadow:none;color:var(--white);font-family:var(--body);font-size:17px;line-height:26px;transition:border-color 200ms var(--ease),box-shadow 200ms var(--ease)}
body.site input[type="tel"]:hover,body.site input[type="url"]:hover,body.site input[type="number"]:hover,body.site input[type="date"]:hover{border-color:var(--grey)}
body.site input[type="tel"]:focus,body.site input[type="url"]:focus,body.site input[type="number"]:focus,body.site input[type="date"]:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
body.site textarea{min-height:144px;resize:vertical}
body.site .form-note{margin-top:16px;color:var(--grey);font-size:16px;line-height:24px}
body.site .error-line{color:var(--err);font-size:16px;line-height:24px;margin-bottom:16px}

/* the home page's own blocks, brought to the same scale (the page's inline sheet keeps its layout; these win by specificity) */
body.site .home .lit{font-size:32px;line-height:40px;letter-spacing:0;max-width:24ch;margin-bottom:32px}
body.site .home .door h1{margin-bottom:32px}
body.site .ask label{font-size:17px;line-height:26px}
body.site .ask-row{gap:12px}
body.site .home .ask-row .input{min-height:48px}
body.site .next{min-height:0}

/* cards that pages keep in their own inline sheets: the same surface, border and radius */
body.site .es-card,body.site .es-tile,body.site .es-pair,body.site .es-scn,body.site .es-problem,body.site .pg-card,body.site .pg-count>div,body.site .pg-open,body.site .pg-slice{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow)}
body.site .es-card,body.site .es-tile,body.site .es-pair,body.site .pg-card,body.site .pg-count>div,body.site .pg-open,body.site .pg-slice{padding:20px 24px}
body.site .es-problem{padding:12px 20px}
body.site .es-btn{border-radius:var(--r-btn);background:var(--surface);min-height:48px}
body.site .es-btn[aria-pressed="true"]{border-color:var(--gold)}
body.site .es-chip,body.site .es-tag{border-radius:999px;padding:0 10px}
body.site .es-codes code{border-radius:6px}
body.site .es-clear,body.site .es-warn,body.site .es-morning{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 20px}
body.site .es-warn{border-color:var(--err)}
body.site .es-card.flagged,body.site .es-tile.bad,body.site .pg-count .bad{border-color:var(--err)}
body.site .pg-slice:target{outline:2px solid var(--white);outline-offset:2px}
body.site .pricing .plans>li.here,body.site .koze .plan.pick{border-top-color:var(--line);box-shadow:0 0 0 1px var(--gold)}
body.site .srch textarea{min-height:96px;padding:10px 14px;background:var(--field);border:1px solid var(--line);border-radius:var(--r-btn);font-size:17px;line-height:26px}
body.site .srch textarea:focus{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
body.site .pricing .close{border-top:1px solid var(--line)}
body.site .signup .pick{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px 20px;box-shadow:var(--shadow)}
body.site .signup .pick[aria-pressed="true"],body.site .signup .pick[data-picked]{border-color:var(--gold)}
body.site .signup .plan-link{border:1px solid var(--line);border-radius:var(--r-btn);padding:0 16px;background:var(--surface)}
body.site .signup .pw-toggle{border:0;border-radius:8px;right:2px;color:var(--grey);min-height:48px}
body.site .signup .pw-wrap input{padding-right:96px}

@media (max-width:1000px){
  body.site .foot .col{grid-template-columns:1fr}
  body.site .foot-nav{grid-template-columns:1fr 1fr}
  body.site .three{grid-template-columns:1fr}
  body.site .split{grid-template-columns:1fr;gap:32px}
}
@media (max-width:700px){
  body.site h1{font-size:34px;line-height:42px;margin-bottom:16px}
  body.site h2{font-size:28px;line-height:36px;margin-bottom:16px}
  body.site .lede{font-size:18px;line-height:28px}
  body.site .menu ul{left:12px;right:12px}
  body.site .tools .col{justify-content:space-between;gap:0 8px}
  body.site .tool-set{gap:0}
  body.site .page-head{padding:32px 0 8px}
  body.site .sec{padding:48px 0 0}
  body.site .two{grid-template-columns:1fr}
  body.site .rows>li{grid-template-columns:1fr;padding:20px;gap:4px}
  body.site .foot .col,body.site .foot-nav{gap:20px}
  body.site .cart{display:flex;width:100%}
  body.site .prose h2{font-size:24px;line-height:32px}
  body.site .home .lit{font-size:28px;line-height:36px}
  body.site .three>li,body.site .two>li,body.site .card{padding:20px}
  body.site details.q{padding:8px 20px}
  body.site .tool-set button,body.site .wordbtns button,body.site .menu summary{min-height:48px}
  .theme-toggle,.a-tt{width:48px;height:48px}
  body.site .links .link,body.site .foot .link,body.site .qlink,body.site .back{min-height:48px}
}
