/* Overnight Authors members area, Gilded Folio art direction, round 2. Palette and Lato only. */

:root {
  --navy: #16243F; --navy-blue: #22365C; --gold: #C9A24B; --deep-gold: #B0872E; --gold-ink: #7A5A12; --gold-soft: #D4AF5C;
  --ink: #1E232C; --charcoal: #2A313C; --slate: #4A515C; --muted: #9AA0A8; --light-gray: #D6D9DE;
  --cream: #FAF7F0; --beige: #ECE4D2; --hairline: #E3E1DA; --white: #ffffff; --butter: #FBF1DA; --ivory: #FFFCF4;
  --night: #191D24; --night-2: #262C36; --night-3: #3B434F;
  --card-grad: linear-gradient(135deg, #191D24 0%, #262C36 48%, #3B434F 100%);
  --navy-grad: linear-gradient(150deg, #22365C 0%, #16243F 55%, #191D24 100%);
  --gold-rule: linear-gradient(90deg, rgba(201, 162, 75, 0) 0%, #C9A24B 18%, #D4AF5C 50%, #B0872E 82%, rgba(176, 135, 46, 0) 100%);
  --gilt: linear-gradient(180deg, #D4AF5C 0%, #C9A24B 55%, #B0872E 100%);
  --art: url("/static/art-folio.svg");
  --danger: #9B2C2C; --ok: #2F6B3F; --info: #22365C;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --frame: inset 0 0 0 1px rgba(201, 162, 75, .28);
  --shadow-sm: 0 1px 2px rgba(22, 36, 63, .05), 0 2px 6px -2px rgba(22, 36, 63, .06);
  --shadow: 0 1px 2px rgba(22, 36, 63, .05), 0 14px 32px -16px rgba(22, 36, 63, .22);
  --shadow-lg: 0 2px 6px rgba(22, 36, 63, .08), 0 40px 80px -36px rgba(22, 36, 63, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--cream) url("/static/art-paper.svg") repeat; color: var(--ink);
  font: 400 17px/1.65 Lato, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--navy-blue); text-decoration-color: rgba(176, 135, 46, .6); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--navy); text-decoration-color: var(--gold); }
img, svg { max-width: 100%; }
::selection { background: rgba(201, 162, 75, .32); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ top bar */
.topbar { background: rgba(250, 247, 240, .9); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar .brand { display: block; padding: 6px 0; border-radius: 6px; }
.topbar .brand img { display: block; width: 200px; min-width: 160px; height: auto; }
.topbar nav { display: flex; gap: 4px; align-items: center; font-size: 13px; }
.topbar nav a { position: relative; text-decoration: none; color: var(--slate); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; transition: color .15s; }
.topbar nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--gilt); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.topbar nav a:hover { color: var(--navy); }
.topbar nav a:hover::after { transform: scaleX(.5); }
.topbar nav a[aria-current="page"] { color: var(--navy); }
.topbar nav a[aria-current="page"]::after { transform: scaleX(1); }
.topbar nav form { margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--hairline); }
.rule { height: 2px; background: var(--gold-rule); opacity: .9; }
/* public pages: a centred publishing-house masthead over a double gold hairline */
.topbar.masthead .topbar-inner { justify-content: center; min-height: 92px; }
.topbar.masthead .brand img { width: 232px; }
.topbar.masthead .rule { height: 5px; opacity: 1; background: var(--gold-rule) top / 100% 1px no-repeat, var(--gold-rule) bottom / 100% 1px no-repeat; }

/* ------------------------------------------------------------------ layout */
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 56px 32px 88px; flex: 1; }
.narrow { max-width: 640px; margin: 0 auto; }
.mid { max-width: 840px; margin: 0 auto; }
footer.site { background: linear-gradient(180deg, #16243F, #16243F); color: rgba(214, 217, 222, .85); position: relative; }
footer.site::before { content: ""; display: block; height: 5px; background: var(--gold-rule) top / 100% 1px no-repeat, var(--gold-rule) bottom / 100% 1px no-repeat; opacity: .85; }
footer.site .inner { max-width: 1180px; margin: 0 auto; padding: 20px 32px 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 217, 222, .85); }
footer.site a { color: var(--light-gray); text-decoration: none; }

/* ------------------------------------------------------------------ type */
.eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--gilt); transform-origin: left; animation: draw .9s var(--ease) .15s both; }
h1 { font-weight: 900; font-size: 48px; line-height: 1.06; letter-spacing: -.022em; color: var(--navy); margin: 0 0 18px; text-wrap: balance; }
h2 { font-weight: 900; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin: 56px 0 20px; display: flex; align-items: center; gap: 14px; }
h2::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 162, 75, .6), var(--hairline) 40%, rgba(227, 225, 218, 0)); transform-origin: left; animation: draw 1.1s var(--ease) .2s both; }
h3 { font-weight: 900; font-size: 19px; line-height: 1.3; color: var(--charcoal); margin: 0 0 6px; letter-spacing: -.005em; }
.intro { font-weight: 300; font-size: 20px; line-height: 1.6; color: var(--slate); margin: 0 0 32px; max-width: 60ch; }
.muted { color: var(--slate); font-size: 15.5px; }
.small { font-size: 14px; color: var(--slate); }
.m0 { margin: 0; }
.mt20 { margin-top: 20px; }
.mt8 { margin-top: 8px; }
.accent-rule { height: 2px; width: 88px; background: var(--gilt); border-radius: 2px; margin: 24px 0 0; transform-origin: left; animation: draw 1s var(--ease) .3s both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.card.pad-lg { padding: 40px; }
.card + .card { margin-top: 20px; }
.callout { position: relative; background: linear-gradient(90deg, #FBF1DA, #FFFCF4); border: 1px solid rgba(201, 162, 75, .35); border-radius: var(--radius-sm); padding: 18px 22px 18px 26px; color: var(--charcoal); overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gilt); }
.callout .lead, .callout em { font-style: italic; font-weight: 700; color: var(--gold-ink); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #EEF3EF; border: 1px solid #CFE2D4; color: #24533A; border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 24px; }
.notice svg { flex: none; margin-top: 3px; }

/* the cinematic dark hero: still-life art + brand gradient, framed like a cloth-bound cover */
.hero { position: relative; overflow: hidden; color: var(--light-gray); border-radius: var(--radius-lg); padding: 60px 64px 56px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-lg); isolation: isolate;
  background: linear-gradient(90deg, rgba(25, 29, 36, .98) 0%, rgba(25, 29, 36, .9) 38%, rgba(25, 29, 36, .3) 72%, rgba(25, 29, 36, .12) 100%), var(--art) 72% 58% / cover no-repeat, var(--night); }
.hero::before { content: ""; position: absolute; inset: 12px; border-radius: 16px; border: 1px solid rgba(201, 162, 75, .32); pointer-events: none; z-index: 2; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-rule); z-index: 2; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin: 0; font-size: 60px; }
.hero p { color: var(--light-gray); font-size: 18px; }
.hero p.eyebrow { font-size: 12px; }
.hero .accent-rule { margin-top: 24px; }
.hero .actions { margin-bottom: 0; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }

/* dashboard hero: cover on the left, credit ledger on clean navy at the right behind a vertical gold rule */
.hero-dash { padding: 0; min-height: 0;
  background: linear-gradient(90deg, rgba(25, 29, 36, .98) 0%, rgba(25, 29, 36, .9) 36%, rgba(25, 29, 36, .25) 62%, rgba(25, 29, 36, .55) 74%), var(--art) right 230px center / auto 128% no-repeat, var(--night); }
.hero-dash .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; align-items: stretch; }
.hero-copy { padding: 64px 64px 60px; }
.hero-copy > p.m0 { max-width: 30ch; }
.credit-tile { position: relative; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, #16243F, #16243F); padding: 48px 44px 48px 48px; color: var(--light-gray); }
.credit-tile::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(180deg, rgba(201, 162, 75, 0), #C9A24B 25%, #D4AF5C 50%, #B0872E 75%, rgba(176, 135, 46, 0)); }
.credit-tile .num { font-weight: 900; font-size: 128px; line-height: .86; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--gold); background: var(--gilt); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.credit-tile .label { font-size: 12px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; color: var(--light-gray); margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(201, 162, 75, .35); }
.credit-tile .btn { margin-top: 22px; width: 100%; }

/* "books are waiting on you": the next thing to do, as one clickable bar */
.callout.next-up { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 18px 20px 18px 24px; border-radius: 14px; border: 1px solid rgba(201, 162, 75, .5); background: linear-gradient(90deg, #16243F, #22365C); color: var(--light-gray); font-size: 17px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.callout.next-up .lead { color: var(--gold-soft); font-size: 18px; }
.callout.next-up a { color: var(--white); font-weight: 900; text-decoration-color: var(--gold); }
.callout.next-up a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.callout.next-up a:focus-visible { outline: none; }
.callout.next-up:has(a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.callout.next-up:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.next-up-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gilt); color: var(--navy); box-shadow: 0 0 0 5px rgba(201, 162, 75, .16); }
.next-up-go { flex: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 162, 75, .6); color: var(--gold); transition: transform .2s var(--ease), background .2s; }
.callout.next-up:hover .next-up-go { transform: translateX(3px); background: rgba(201, 162, 75, .14); }

/* ------------------------------------------------------------------ buttons (sentence case everywhere) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font: 900 16px/1.15 Lato, Arial, sans-serif; letter-spacing: .005em; text-transform: none; padding: 14px 24px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .15s, border-color .15s; }
.btn svg { flex: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, #22365C, #16243F); color: var(--white); border-color: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 22px -12px rgba(22, 36, 63, .75); }
.btn-primary:hover { background: linear-gradient(180deg, #22365C, #22365C); color: var(--white); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 26px -12px rgba(22, 36, 63, .8); }
.btn-gold { background: var(--gilt); color: var(--navy); border-color: rgba(176, 135, 46, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -12px rgba(176, 135, 46, .85); }
.btn-gold:hover { background: linear-gradient(180deg, #D4AF5C, #D4AF5C 60%, #C9A24B); color: var(--navy); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--light-gray); }
.btn-ghost:hover { border-color: var(--gold); color: var(--navy); }
.btn-on-dark { background: rgba(255, 255, 255, .04); color: var(--white); border-color: rgba(201, 162, 75, .55); }
.btn-on-dark:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(201, 162, 75, .08); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; border-radius: 8px; min-height: 40px; }
.btn-lg { padding: 18px 30px; font-size: 18px; border-radius: 12px; min-height: 58px; }
.btn[disabled], .btn.disabled { opacity: .42; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0; }
.inline { display: inline; }

/* admin sub-nav: one navy segmented control, gold marks where you are */
.admin-tabs { display: inline-flex; gap: 4px; padding: 5px; margin: 8px 0 36px; background: var(--navy); border: 1px solid var(--navy); border-radius: 12px; box-shadow: var(--shadow), var(--frame); max-width: 100%; overflow-x: auto; }
.admin-tabs .btn { border-color: transparent; background: transparent; color: var(--light-gray); min-height: 42px; padding: 10px 20px; }
.admin-tabs .btn:hover { background: rgba(255, 255, 255, .08); color: var(--white); transform: none; }
.admin-tabs .btn[aria-current="page"] { background: var(--gilt); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.admin-search { flex-wrap: nowrap; gap: 10px; }
.admin-search input { flex: 1; width: auto; min-width: 0; }
.admin-search .btn { min-height: 54px; padding: 0 26px; }

/* ------------------------------------------------------------------ forms */
label { display: block; font-weight: 700; color: var(--charcoal); margin: 0 0 8px; }
input[type=email], input[type=text], input[type=number], input[type=search], textarea, select {
  width: 100%; font: 400 17px/1.5 Lato, Arial, sans-serif; padding: 14px 16px; min-height: 54px; border: 1px solid var(--light-gray);
  border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s; box-shadow: inset 0 1px 2px rgba(22, 36, 63, .04);
}
input::placeholder, textarea::placeholder { color: var(--slate); opacity: .7; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .22); }
textarea { resize: vertical; min-height: 120px; }
.field { margin: 0 0 22px; }
.form-error { display: flex; gap: 10px; align-items: flex-start; color: var(--danger); background: #FBF0F0; border: 1px solid #F0D2D2; border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; margin: 0 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 14px 0; cursor: pointer; min-height: 44px; }
.check input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--navy); }

/* file drop zone */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1.5px dashed rgba(176, 135, 46, .55); border-radius: var(--radius); padding: 36px 20px; background: var(--ivory) url("/static/art-contours.svg") center / cover no-repeat; color: var(--deep-gold); transition: border-color .15s, background-color .15s, box-shadow .15s; cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--gold); background-color: #FBF1DA; box-shadow: 0 0 0 4px rgba(201, 162, 75, .16); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .drop-title { font-weight: 900; color: var(--navy); font-size: 18px; }
.drop .drop-sub { font-size: 14px; color: var(--slate); }
.drop .drop-file { font-size: 14px; font-weight: 700; color: var(--gold-ink); min-height: 1.4em; }

/* ------------------------------------------------------------------ status badges */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--beige); color: var(--charcoal); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.waiting, .badge.needs { background: #FBF1DA; color: #7A5A12; box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .45); }
.badge.writing { background: #E7ECF5; color: var(--navy-blue); }
.badge.writing::before { animation: pulse 1.6s ease-in-out infinite; }
.badge.ready { background: #E3F1E7; color: var(--ok); }
.badge.failed, .badge.paused { background: #F6E4E4; color: var(--danger); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.5); opacity: .35; } }

/* ------------------------------------------------------------------ book cards (dashboard) */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.book-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--hairline); border-radius: 6px var(--radius) var(--radius) 6px; padding: 26px 26px 22px 36px; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; overflow: hidden; }
.book-card::before { content: ""; position: absolute; top: 0; right: 0; width: 160px; height: 160px; background: radial-gradient(closest-side at 100% 0%, rgba(201, 162, 75, .14), rgba(201, 162, 75, 0)); pointer-events: none; }
.book-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(201, 162, 75, .5); }
.book-card:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .35), var(--shadow); }
/* the spine: status colour, with two gilt bands like a cloth binding */
.book-card .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; border-radius: 0; background: linear-gradient(180deg, transparent 18px, rgba(201, 162, 75, .9) 18px 20px, transparent 20px 24px, rgba(201, 162, 75, .9) 24px 26px, transparent 26px), linear-gradient(90deg, #D6D9DE, #ECE4D2); box-shadow: inset -2px 0 0 rgba(22, 36, 63, .1); }
.book-card.is-writing .spine { background: linear-gradient(180deg, transparent 18px, #C9A24B 18px 20px, transparent 20px 24px, #C9A24B 24px 26px, transparent 26px), linear-gradient(90deg, #16243F, #22365C); }
.book-card.is-waiting .spine, .book-card.is-needs .spine { background: linear-gradient(180deg, transparent 18px, #16243F 18px 20px, transparent 20px 24px, #16243F 24px 26px, transparent 26px), linear-gradient(90deg, #B0872E, #D4AF5C); }
.book-card.is-ready .spine { background: linear-gradient(180deg, transparent 18px, #C9A24B 18px 20px, transparent 20px 24px, #C9A24B 24px 26px, transparent 26px), linear-gradient(90deg, #24533A, #2F6B3F); }
.book-card.is-failed .spine, .book-card.is-paused .spine { background: var(--danger); }
.book-card h3 { font-size: 22px; line-height: 1.22; margin: 4px 0 0; letter-spacing: -.012em; }
.book-card h3 a { color: var(--navy); text-decoration: none; }
.book-card h3 a:focus-visible { outline: none; }
.book-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.book-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.book-card .next { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--hairline); font-weight: 900; font-size: 16px; color: var(--navy); }
.book-card .next svg { color: var(--deep-gold); transition: transform .2s var(--ease); }
.book-card:hover .next svg { transform: translateX(4px); }
/* books that need the author get a ring and a filled action bar */
.book-card.is-waiting, .book-card.is-needs { border-color: rgba(201, 162, 75, .75); box-shadow: 0 0 0 3px rgba(201, 162, 75, .16), var(--shadow); }
.book-card.is-waiting .next, .book-card.is-needs .next, .book-card.is-ready .next { margin: auto -26px -22px -36px; padding: 17px 26px 17px 36px; border-top: 0; }
.book-card.is-waiting .next, .book-card.is-needs .next { background: var(--gilt); color: var(--navy); }
.book-card.is-waiting .next svg, .book-card.is-needs .next svg { color: var(--navy); }
.book-card.is-ready .next { background: #E3F1E7; color: #24533A; border-top: 1px solid #CFE2D4; }
.book-card.is-ready .next svg { color: var(--ok); }
.progress { height: 6px; border-radius: 999px; background: var(--beige); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy-blue), var(--gold)); }
.book-card .progress-label { font-size: 14px; color: var(--slate); margin-top: 12px; }

.empty { text-align: center; padding: 56px 24px; background: var(--white) url("/static/art-contours.svg") center / cover no-repeat; }
.empty .empty-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--gold); box-shadow: var(--shadow); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--slate); max-width: 44ch; margin: 0 auto 20px; }

/* ------------------------------------------------------------------ wizard stepper: large numerals */
.stepper { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.stepper > li { position: relative; padding: 0 0 44px 84px; }
.stepper > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 24px; letter-spacing: -.02em; background: var(--white); color: var(--slate); border: 1.5px solid var(--light-gray); z-index: 1; box-shadow: var(--shadow-sm); }
.stepper > li::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: var(--hairline); }
.stepper > li:last-child::after { display: none; }
.stepper > li.done::before { content: "✓"; background: var(--navy); border-color: var(--navy); color: var(--gold); }
.stepper > li.current::before { border-color: var(--deep-gold); color: var(--navy); background: var(--gilt); box-shadow: 0 0 0 6px rgba(201, 162, 75, .2), 0 10px 20px -10px rgba(176, 135, 46, .8); }
.stepper > li.done::after { background: linear-gradient(var(--navy), var(--gold)); }
.stepper h3 { margin: 12px 0 8px; font-size: 23px; color: var(--navy); }
.stepper .step-body { margin-top: 16px; }
.optional-tag { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: #FBF1DA; border-radius: 999px; padding: 4px 10px; margin-left: 8px; vertical-align: 3px; }

.file-list { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--hairline); }
.file-list li:last-child { border-bottom: 0; }
.file-list .fname { flex: 1; font-weight: 700; color: var(--charcoal); overflow-wrap: anywhere; }
.file-list .fmeta { font-size: 13.5px; color: var(--slate); white-space: nowrap; }

.parse-summary { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.meter { position: relative; width: 58px; height: 58px; flex: none; }
.meter svg { transform: rotate(-90deg); }
.meter .val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--navy); }

.confirm-card { position: relative; border: 1px solid rgba(201, 162, 75, .55); box-shadow: var(--shadow); overflow: hidden; }
.confirm-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gilt); }
.cost-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--hairline); margin: 16px 0; font-weight: 700; color: var(--navy); }
.cost-line .coin { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-ink); font-weight: 900; }

/* ------------------------------------------------------------------ question rounds */
.q-card { position: relative; background: var(--white); border: 1px solid var(--hairline); border-radius: 6px var(--radius) var(--radius) 6px; padding: 34px 36px 34px 44px; margin: 0 0 24px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.q-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #C9A24B, #B0872E); opacity: .35; transition: opacity .2s; }
.q-card:focus-within { border-color: rgba(201, 162, 75, .7); box-shadow: 0 0 0 3px rgba(201, 162, 75, .16), var(--shadow); }
.q-card:focus-within::before { opacity: 1; }
fieldset.q-card { min-width: 0; }
.q-num { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); background: var(--navy); border-radius: 999px; padding: 6px 14px; margin: 0 0 16px; }
.q-card legend, .q-card .q-prompt { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-weight: 900; font-size: 23px; line-height: 1.35; color: var(--navy); letter-spacing: -.01em; }
.q-card legend + * { clear: both; }
.q-help { font-size: 15px; color: var(--slate); margin: 0 0 16px; }
blockquote.thesis { position: relative; margin: 6px 0 22px; padding: 32px 34px 30px 76px; background: var(--navy-grad); border-radius: var(--radius-sm); font-size: 22px; line-height: 1.5; font-style: italic; font-weight: 700; color: var(--white); box-shadow: var(--shadow), var(--frame); }
blockquote.thesis::before { content: "\201C"; position: absolute; left: 22px; top: 12px; font: 900 72px/1 Georgia, serif; color: var(--gold); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; gap: 12px; align-items: center; min-height: 52px; border: 1.5px solid var(--light-gray); border-radius: 10px; padding: 12px 18px; font-weight: 700; color: var(--charcoal); cursor: pointer; background: var(--white); transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--gold); background: var(--ivory); }
.choice input { accent-color: var(--navy); width: 20px; height: 20px; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #F0F3F8; box-shadow: inset 0 0 0 1px var(--navy), 0 6px 14px -8px rgba(22, 36, 63, .4); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice.block { display: flex; margin: 10px 0; font-weight: 400; line-height: 1.45; min-height: 56px; }
.submit-bar { position: relative; z-index: 5; background: var(--white); border: 1px solid rgba(201, 162, 75, .45); border-radius: var(--radius); box-shadow: var(--shadow), var(--frame); padding: 20px 24px; margin-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit-bar .small { display: inline-flex; align-items: center; gap: 8px; }

.missing-list { list-style: none; padding: 0; margin: 12px 0 0; }
.missing-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.missing-list li:last-child { border-bottom: 0; }
.missing-list .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 900; font-size: 13px; margin-top: 1px; }

/* ------------------------------------------------------------------ build status */
.stages { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 0; margin: 36px 0 8px; }
.stages li { position: relative; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--slate); padding-top: 40px; }
.stages li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--light-gray); z-index: 1; }
.stages li::after { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--hairline); }
.stages li:first-child::after { display: none; }
.stages li.done { color: var(--charcoal); }
.stages li.done::before { background: var(--ok) url("/static/tick.svg") center / 13px no-repeat; border-color: var(--ok); }
.stages li.done::after, .stages li.now::after { background: linear-gradient(90deg, var(--ok), var(--gold)); }
.stages li.now { color: var(--navy); font-weight: 900; }
.stages li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(201, 162, 75, .22); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 11px rgba(201, 162, 75, .08); } }
.status-card { text-align: left; position: relative; overflow: hidden; padding: 40px 44px 36px; border: 0; box-shadow: var(--shadow-lg), var(--frame); color: var(--light-gray); background: radial-gradient(120% 140% at 100% 0%, rgba(201, 162, 75, .16), rgba(201, 162, 75, 0) 55%), var(--navy-grad); }
.status-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gilt); }
.status-card::after { content: ""; position: absolute; inset: 12px; border-radius: 10px; border: 1px solid rgba(201, 162, 75, .22); pointer-events: none; }
.status-card .eyebrow { color: var(--gold); }
.status-card h3, .status-card strong, .status-card .status-now h3 { color: var(--white); }
.status-card p { color: var(--light-gray); }
.status-card .stages li { color: var(--light-gray); }
.status-card .stages li.done { color: var(--white); }
.status-card .stages li.now { color: var(--gold-soft); }
.status-card .stages li::before { background: var(--navy); border-color: rgba(214, 217, 222, .45); }
.status-card .stages li::after { background: rgba(214, 217, 222, .22); }
.status-card .stages li.done::before { background: var(--ok) url("/static/tick.svg") center / 13px no-repeat; border-color: #CFE2D4; }
.status-card .stages li.done::after, .status-card .stages li.now::after { background: linear-gradient(90deg, #CFE2D4, var(--gold)); }
.status-card .stages li.now::before { background: var(--gold); border-color: var(--gold); }
.status-now { display: flex; align-items: center; gap: 22px; margin: 6px 0 4px; padding-right: 160px; }
.status-now h3, .status-now strong { font-size: 26px; color: var(--navy); }
.spinner { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(201, 162, 75, .25); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* quill writing in an open book (replaces the spinner) */
.quill-book { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(201, 162, 75, .22), rgba(22, 36, 63, .9) 70%); box-shadow: 0 0 0 1px rgba(201, 162, 75, .5), 0 0 0 7px rgba(201, 162, 75, .08); }
.quill-book svg { width: 62px; height: 62px; overflow: visible; }
.qb-page { fill: #FAF7F0; stroke: #C9A24B; stroke-width: 1.2; stroke-linejoin: round; }
.qb-spine { stroke: #B0872E; stroke-width: 1.4; }
.qb-line { stroke: #4A515C; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: ink 5s linear infinite; }
.qb-line.l2 { animation-delay: .8s; } .qb-line.l3 { animation-delay: 1.6s; } .qb-line.l4 { animation-delay: 2.4s; } .qb-line.l5 { animation-delay: 3.2s; }
@keyframes ink { 0% { stroke-dashoffset: 20; } 18%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.qb-feather { fill: #C9A24B; stroke: #7A5A12; stroke-width: .8; }
.qb-shaft { stroke: #7A5A12; stroke-width: 1.4; stroke-linecap: round; }
.qb-quill { transform-origin: 36px 33px; animation: scribe 1.6s ease-in-out infinite; }
@keyframes scribe { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-4deg); } 50% { transform: translate(-6px, 0) rotate(2deg); } 75% { transform: translate(-3px, -1px) rotate(-2deg); } }

/* shelf of spines that fills as the build moves through its stages */
.shelf { position: absolute; right: 44px; top: 40px; display: flex; align-items: flex-end; gap: 5px; height: 76px; padding: 0 10px; border-bottom: 4px solid #B0872E; box-shadow: 0 6px 10px -6px rgba(25, 29, 36, .9); z-index: 1; }
.shelf .bk { width: 15px; height: 56px; border-radius: 2px 2px 0 0; border: 1px solid rgba(214, 217, 222, .28); background: rgba(214, 217, 222, .06); }
.shelf .bk:nth-child(2) { height: 64px; } .shelf .bk:nth-child(3) { height: 50px; width: 17px; } .shelf .bk:nth-child(4) { height: 68px; } .shelf .bk:nth-child(5) { height: 58px; width: 13px; } .shelf .bk:nth-child(6) { height: 62px; }
.shelf .bk.done { border-color: transparent; background: linear-gradient(180deg, transparent 8px, #C9A24B 8px 10px, transparent 10px calc(100% - 12px), #C9A24B calc(100% - 12px) calc(100% - 10px), transparent 0), #22365C; box-shadow: inset -3px 0 0 rgba(25, 29, 36, .35); }
.shelf .bk.done:nth-child(even) { background: linear-gradient(180deg, transparent 8px, #16243F 8px 10px, transparent 10px calc(100% - 12px), #16243F calc(100% - 12px) calc(100% - 10px), transparent 0), #C9A24B; }
.shelf .bk.now { border-color: var(--gold); background: rgba(201, 162, 75, .28); animation: fill 2.4s ease-in-out infinite; }
@keyframes fill { 50% { background: rgba(201, 162, 75, .55); } }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { flex: none; width: 150px; font-size: 13px; color: var(--slate); padding-top: 2px; font-variant-numeric: tabular-nums; }
/* empty activity: a ruled page with a quill resting on it, so it never looks unfinished */
.card.activity:has(> .timeline:empty) { min-height: 168px; padding: 0; border-color: rgba(201, 162, 75, .35);
  background: url("/static/art-quill.svg") right 36px center / 150px auto no-repeat,
    linear-gradient(90deg, transparent 64px, rgba(201, 162, 75, .5) 64px 65px, transparent 65px),
    repeating-linear-gradient(180deg, transparent 0 31px, #E3E1DA 31px 32px) 0 26px / 100% calc(100% - 52px) no-repeat,
    var(--ivory); }

/* ------------------------------------------------------------------ ready */
.hero-ready { min-height: 440px; padding: 72px 64px 60px; background: linear-gradient(90deg, rgba(25, 29, 36, .98) 0%, rgba(25, 29, 36, .9) 52%, rgba(25, 29, 36, .2) 72%, rgba(25, 29, 36, .1) 100%), var(--art) right -340px bottom -50px / auto 125% no-repeat, var(--night); }
.hero-ready h1 { font-size: 84px; line-height: .98; letter-spacing: -.04em; max-width: 9.5em; }
.downloads { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin: 32px 0; }
.dl { position: relative; display: flex; gap: 18px; align-items: center; text-decoration: none; background: transparent; border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 24px; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s, background .2s; color: var(--ink); overflow: hidden; }
.dl:first-child { background: var(--navy-grad); border-color: rgba(201, 162, 75, .5); box-shadow: var(--shadow-lg), var(--frame); padding: 28px; }
.dl:first-child .dl-title { color: var(--white); font-size: 19px; }
.dl:first-child .dl-sub { color: var(--light-gray); }
.dl:first-child .doc { background: var(--gilt); color: var(--navy); }
.dl:first-child .dl-go { background: var(--gilt); color: var(--navy); box-shadow: 0 0 0 5px rgba(201, 162, 75, .16); }
.dl:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); border-color: var(--gold); }
.dl.secondary:hover { background: var(--white); }
.dl .doc { flex: none; width: 54px; height: 68px; border-radius: 4px 8px 8px 4px; background: var(--navy); color: var(--gold); display: grid; place-items: center; box-shadow: inset 5px 0 0 rgba(0, 0, 0, .2), 0 8px 16px -8px rgba(22, 36, 63, .6); }
.dl.secondary .doc { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); box-shadow: inset 5px 0 0 rgba(22, 36, 63, .12); }
.dl .dl-title { font-weight: 900; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; font-size: 18px; }
.dl .dl-sub { font-size: 13.5px; color: var(--slate); margin-top: 4px; }
.dl .dl-go { margin-left: auto; color: var(--navy); }

/* ------------------------------------------------------------------ tables (account, admin): navy-ruled ledgers */
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 15.5px; }
table.list th, table.list td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.list th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); font-weight: 900; background: #FCFBF7; border-bottom: 2px solid var(--navy); white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background .15s; }
table.list tbody tr:hover td { background: #FFFCF4; }
table.list td .badge { margin-left: 6px; }
table.list a { font-weight: 700; }
/* a table with no rows yet: a ruled ledger page under the header instead of a bare strip */
table.list:has(tbody:empty) th, .table-wrap.can-scroll table.list:has(tbody:empty) th:first-child { padding-bottom: 92px; border-bottom: 0; background: linear-gradient(#FCFBF7, #FCFBF7) top / 100% 46px no-repeat, linear-gradient(#16243F, #16243F) 0 46px / 100% 2px no-repeat, repeating-linear-gradient(180deg, #FFFFFF 0 29px, #E3E1DA 29px 30px) 0 48px / 100% calc(100% - 48px) no-repeat; }
table.list:not(:has(thead)):has(tbody:empty) { display: block; height: 72px; background: repeating-linear-gradient(180deg, #FFFFFF 0 23px, #E3E1DA 23px 24px) 0 12px / 100% 48px no-repeat, var(--white); }
.table-wrap { position: relative; max-width: 100%; border-radius: var(--radius); }
.table-wrap.can-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-sm); border: 1px solid var(--hairline); background: var(--white); }
.table-wrap.can-scroll table.list { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.table-wrap.can-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.table-wrap.can-scroll { background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 40px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 40px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(22, 36, 63, .22), rgba(22, 36, 63, 0)) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(22, 36, 63, .22), rgba(22, 36, 63, 0)) right / 14px 100% no-repeat scroll, #fff; }
.table-wrap.can-scroll table.list { background: transparent; }
.table-wrap.can-scroll table.list td { background: rgba(255, 255, 255, 0); }
.delta-pos { color: var(--ok); font-weight: 900; }
.delta-neg { color: var(--danger); font-weight: 900; }

/* ------------------------------------------------------------------ sign-in */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; max-width: 1100px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); border: 1px solid rgba(201, 162, 75, .25); }
.auth-side { position: relative; overflow: hidden; color: var(--light-gray); padding: 52px 52px 48px; display: flex; flex-direction: column; justify-content: flex-start; gap: 32px; isolation: isolate; background: var(--navy-grad); }
.auth-side::before { content: ""; position: absolute; inset: 14px; border-radius: 14px; border: 1px solid rgba(201, 162, 75, .26); pointer-events: none; }
.auth-side::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: linear-gradient(180deg, rgba(201, 162, 75, 0), #C9A24B 30%, #B0872E 70%, rgba(176, 135, 46, 0)); }
.auth-side .wordmark { width: 230px; }
/* the art sits on its own framed plate, never under the copy */
.auth-plate { height: 232px; border-radius: 12px; border: 1px solid rgba(201, 162, 75, .4); box-shadow: inset 0 0 0 4px rgba(25, 29, 36, .55), 0 24px 40px -24px rgba(25, 29, 36, .9);
  background: radial-gradient(120% 90% at 50% 120%, rgba(25, 29, 36, .55), rgba(25, 29, 36, 0) 60%), var(--art) calc(50% - 170px) calc(50% - 40px) / 900px auto no-repeat, var(--night); }
.auth-side h2 { color: var(--white); text-transform: none; letter-spacing: -.02em; font-size: 40px; line-height: 1.1; margin: 0 0 14px; display: block; }
.auth-side h2::before, .auth-side h2::after { display: none; }
.auth-side p { margin: 0; color: var(--light-gray); font-weight: 300; font-size: 18px; max-width: 40ch; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--light-gray); }
.auth-points svg { flex: none; color: var(--gold); margin-top: 3px; }
.auth-side .auth-points { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(201, 162, 75, .3); }
.auth-form { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.auth-form h1 { font-size: 46px; }
.auth-form .btn-lg { width: 100%; }
.auth-single { max-width: 600px; margin: 8px auto 0; }
.auth-single .card { position: relative; padding: 0 44px 44px; overflow: hidden; box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 75, .3); }
.auth-single .card::before { content: ""; display: block; height: 176px; margin: 0 -44px 40px; border-bottom: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(25, 29, 36, .55), rgba(25, 29, 36, 0) 45%), var(--art) calc(50% - 160px) calc(50% - 30px) / 820px auto no-repeat, var(--night); }
.auth-single .card::after { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 152px; border: 1px solid rgba(201, 162, 75, .3); border-radius: 8px; pointer-events: none; }
.auth-single .card .icon-bubble { margin-top: -80px; }
.icon-bubble { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin: 0 0 24px; border: 4px solid var(--white); box-shadow: var(--shadow), inset 0 0 0 1px rgba(201, 162, 75, .5); }
.auth-points.light li { color: var(--charcoal); }
.auth-points.light svg { color: var(--ok); }
.auth-points.light { margin: 0 0 8px; padding: 20px 22px; background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--radius-sm); }
.auth-foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--slate); }

/* ------------------------------------------------------------------ order page */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: auto auto 1fr; align-items: start; }
.order-bg { grid-column: 1; grid-row: 1 / 4; align-self: stretch; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #191D24 0, #191D24 calc(100% - 610px), rgba(25, 29, 36, 0) calc(100% - 360px), rgba(25, 29, 36, 0) 88%, rgba(25, 29, 36, .6) 100%), var(--art) -380px 100% / auto 660px no-repeat, var(--night); }
.order-bg::after { content: ""; position: absolute; inset: 14px; border-radius: 14px; border: 1px solid rgba(201, 162, 75, .28); pointer-events: none; }
.order-pitch { grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding: 68px 120px 0 60px; color: var(--light-gray); }
.order-pitch .eyebrow { color: var(--gold); }
.order-pitch h1 { font-size: 56px; color: var(--white); }
.order-pitch .intro { color: var(--light-gray); font-size: 19px; }
.order-steps { grid-column: 1; grid-row: 2; position: relative; z-index: 1; list-style: none; padding: 0 120px 420px 60px; margin: 0; display: grid; gap: 24px; }
.order-steps li { display: flex; gap: 18px; align-items: flex-start; }
.order-steps strong { display: block; color: var(--white); font-size: 18px; }
.order-steps .small { display: block; margin-top: 2px; color: var(--light-gray); }
.order-step-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(201, 162, 75, .12); border: 1px solid rgba(201, 162, 75, .45); color: var(--gold); }
.order-card { grid-column: 2; grid-row: 1 / 4; position: sticky; top: 112px; z-index: 2; margin: 60px 0 60px -80px; background: var(--white); border: 1px solid rgba(201, 162, 75, .4); border-radius: 20px; padding: 0; box-shadow: var(--shadow-lg); overflow: hidden; }
.order-card > :not(.order-head):not(.order-foot) { margin-left: 36px; margin-right: 36px; }
.order-head { position: relative; padding: 30px 36px 28px; margin: 0 0 22px; color: var(--light-gray); background: radial-gradient(90% 120% at 100% 0%, rgba(201, 162, 75, .2), rgba(201, 162, 75, 0) 60%), var(--navy-grad); border-bottom: 3px solid var(--gold); }
.order-head::after { content: ""; position: absolute; inset: 10px; border-radius: 12px; border: 1px solid rgba(201, 162, 75, .28); pointer-events: none; }
.order-head .eyebrow { color: var(--gold); }
.price-row { display: flex; align-items: center; gap: 16px; margin: 4px 0 0; }
.price { font-weight: 900; font-size: 76px; line-height: .95; color: var(--white); letter-spacing: -.04em; }
.price-note { font-size: 11.5px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); background: var(--gilt); border-radius: 999px; padding: 7px 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.included { list-style: none; padding: 20px 0; margin: 20px 0 24px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: grid; gap: 12px; }
.included li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--charcoal); }
.included svg { flex: none; margin-top: 3px; color: var(--white); background: var(--ok); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.btn-block { width: 100%; }
.secure { display: flex; gap: 10px; align-items: center; margin-top: 14px; margin-bottom: 0; padding: 11px 14px; border-radius: var(--radius-sm); background: #EEF3EF; border: 1px solid #CFE2D4; color: #24533A; font-size: 13.5px; line-height: 1.45; }
.secure svg { flex: none; color: var(--ok); }
.order-foot { margin-top: 24px; padding: 18px 36px 20px; background: var(--cream); border-top: 1px solid var(--hairline); font-size: 15px; }
.cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }

/* ------------------------------------------------------------------ misc helpers */
.nowrap { white-space: nowrap; }
.dl .dl-title, .dl .dl-sub { display: block; }
.dl .dl-go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }
.linklike { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--navy-blue); text-decoration: underline; text-decoration-color: rgba(176, 135, 46, .6); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }
.linklike:hover { color: var(--navy); text-decoration-color: var(--gold); }

/* ------------------------------------------------------------------ entrance motion (respects reduced motion below) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
main > *, .auth-wrap > *, .order-grid > * { animation: rise .7s var(--ease) both; }
main > *:nth-child(2), .auth-wrap > *:nth-child(2), .order-grid > *:nth-child(2) { animation-delay: .08s; }
main > *:nth-child(3), .order-grid > *:nth-child(3) { animation-delay: .14s; }
main > *:nth-child(n+4), .order-grid > *:nth-child(n+4) { animation-delay: .2s; }
.books-grid > * { animation: rise .6s var(--ease) both; }
.books-grid > *:nth-child(2) { animation-delay: .06s; } .books-grid > *:nth-child(3) { animation-delay: .12s; } .books-grid > *:nth-child(n+4) { animation-delay: .18s; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .hero-dash { background: linear-gradient(90deg, rgba(25, 29, 36, .98) 0%, rgba(25, 29, 36, .9) 46%, rgba(25, 29, 36, .4) 78%, rgba(25, 29, 36, .6) 100%), var(--art) right 200px center / auto 120% no-repeat, var(--night); }
}
@media (max-width: 960px) {
  .order-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .order-bg { grid-row: 1; background: linear-gradient(180deg, #191D24 0%, rgba(25, 29, 36, .85) 45%, rgba(25, 29, 36, .1) 75%), var(--art) 66% 100% / auto 440px no-repeat, var(--night); }
  .order-pitch { grid-row: 1; padding: 52px 36px 300px; }
  .order-pitch h1 { font-size: 44px; }
  .order-card { grid-column: 1; grid-row: 2; position: relative; top: 0; margin: -200px 16px 0; }
  .order-steps { grid-row: 3; padding: 40px 8px 0; }
  .order-steps strong { color: var(--navy); }
  .order-steps .small { color: var(--slate); }
  .order-step-icon { background: var(--navy); border-color: var(--navy); color: var(--gold); }
  .hero-dash .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-dash { background: linear-gradient(180deg, rgba(25, 29, 36, .9) 0%, rgba(25, 29, 36, .82) 50%, rgba(25, 29, 36, .4) 100%), var(--art) 70% 70% / cover no-repeat, var(--night); }
  .credit-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 24px; align-items: end; padding: 28px 32px 30px; border-top: 1px solid rgba(201, 162, 75, .45); }
  .credit-tile::before { display: none; }
  .credit-tile .num { grid-row: 1; font-size: 96px; }
  .credit-tile .label { margin: 0; padding: 0 0 10px; border: 0; align-self: end; }
  .credit-tile .btn { margin-top: 12px; width: auto; justify-self: start; }
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; border-radius: 22px; }
  .auth-side { padding: 34px 28px 64px; gap: 22px; }
  .auth-side::after { top: auto; left: 0; width: auto; height: 3px; background: var(--gold-rule); display: none; }
  .auth-plate { height: 150px; background-size: 640px auto; background-position: calc(50% - 116px) calc(50% - 22px); }
  .auth-side h2 { font-size: 32px; }
  .auth-side .auth-points { display: none; }
  /* the form rises over the brand panel as a white sheet */
  .auth-form { position: relative; z-index: 1; margin-top: -32px; border-radius: 22px 22px 0 0; padding: 34px 26px 32px; box-shadow: 0 -18px 30px -18px rgba(25, 29, 36, .55); }
  .auth-form::before { content: ""; position: absolute; top: 10px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--light-gray); }
  .downloads { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(180deg, rgba(25, 29, 36, .95) 0%, rgba(25, 29, 36, .82) 50%, rgba(25, 29, 36, .5) 100%), var(--art) 72% 70% / cover no-repeat, var(--night); }
  .hero-dash { padding: 0; }
  .status-now { padding-right: 0; }
  .shelf { position: relative; right: auto; top: auto; display: inline-flex; margin: 22px 0 0; height: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  main { padding: 26px 16px 56px; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 247, 240, .97); }
  .topbar-inner { padding: 8px 16px; min-height: 60px; justify-content: center; }
  .topbar .brand img { width: 176px; min-width: 0; }
  .topbar.masthead .topbar-inner { min-height: 68px; }
  .topbar.masthead .brand img { width: 196px; }
  /* members' nav becomes a navy tab strip under the masthead, gold marker on the current page */
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .topbar .brand { align-self: center; padding: 12px 0 10px; }
  .topbar nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; align-items: stretch; padding: 0 6px; background: var(--navy); border-top: 1px solid rgba(201, 162, 75, .55); font-size: 11px; }
  .topbar nav a, .topbar nav form .btn { min-height: 48px; justify-content: center; padding: 0 4px; color: var(--light-gray); letter-spacing: .1em; white-space: nowrap; }
  .topbar nav a::after { left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
  .topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--gold-soft); }
  .topbar nav form { margin: 0; padding: 0; border-left: 1px solid rgba(214, 217, 222, .14); display: flex; }
  .topbar nav form .btn { width: 100%; min-height: 48px; background: transparent; border: 0; border-radius: 0; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; box-shadow: none; }
  .topbar nav form .btn:hover { color: var(--white); transform: none; }
  .topbar:has(nav) .rule { display: none; }
  h1 { font-size: 34px; }
  h2 { margin-top: 44px; letter-spacing: .16em; }
  .intro { font-size: 17.5px; margin-bottom: 26px; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; }
  .btn-lg { min-height: 56px; font-size: 17px; padding: 16px 22px; }
  .hero { padding: 34px 26px 30px; border-radius: 20px; min-height: 0; }
  .hero::before { inset: 8px; border-radius: 14px; }
  .hero h1 { font-size: 40px; }
  .hero-dash { padding: 0; }
  .hero-copy { padding: 36px 26px 28px; }
  .hero-copy .actions .btn, .hero-copy .actions form { width: 100%; }
  .credit-tile { padding: 22px 26px 26px; column-gap: 18px; }
  .credit-tile .num { font-size: 80px; }
  .credit-tile .btn { justify-self: stretch; grid-column: 1 / 3; }
  .callout.next-up { display: block; padding: 18px 18px 18px 76px; font-size: 16px; line-height: 1.55; }
  .callout.next-up .next-up-icon { position: absolute; left: 20px; top: 18px; }
  .callout.next-up .next-up-go { display: none; }
  .next-up-icon { width: 40px; height: 40px; }
  .card, .q-card { padding: 24px 20px; }
  .q-card { padding-left: 26px; }
  .q-card legend, .q-card .q-prompt { font-size: 20px; }
  .auth-single .card { padding: 0 22px 28px; }
  .auth-single .card::before { height: 136px; margin: 0 -22px 32px; background-size: 640px auto; background-position: calc(50% - 110px) calc(50% - 20px); }
  .auth-single .card::after { left: 8px; right: 8px; top: 8px; height: 120px; }
  .auth-single .card .icon-bubble { margin-top: -72px; }
  .auth-form h1 { font-size: 38px; }
  .order-pitch { padding: 40px 24px 250px; }
  .order-bg { border-radius: 20px; background: linear-gradient(180deg, #191D24 0%, rgba(25, 29, 36, .82) 50%, rgba(25, 29, 36, .05) 80%), var(--art) 64% 100% / auto 340px no-repeat, var(--night); }
  .order-bg::after { inset: 8px; }
  .order-pitch h1 { font-size: 36px; }
  .order-card { margin: -170px 0 0; }
  .order-card > :not(.order-head):not(.order-foot) { margin-left: 22px; margin-right: 22px; }
  .order-head { padding: 26px 22px 24px; }
  .order-foot { padding: 16px 22px 18px; }
  .price { font-size: 64px; }
  .stepper > li { padding-left: 64px; }
  .stepper > li::before { width: 46px; height: 46px; font-size: 20px; }
  .stepper > li::after { left: 22px; top: 50px; }
  .stepper h3 { margin-top: 8px; font-size: 21px; }
  blockquote.thesis { font-size: 19px; padding: 26px 20px 24px 52px; }
  blockquote.thesis::before { left: 14px; font-size: 56px; }
  /* vertical stage timeline on phones */
  .stages { grid-template-columns: 1fr; margin-top: 26px; }
  .stages li { text-align: left; padding: 9px 0 9px 40px; min-height: 40px; display: flex; align-items: center; }
  .stages li::before { top: 50%; left: 11px; transform: translate(-50%, -50%); }
  .stages li::after { left: 10px; top: -50%; width: 2px; height: 100%; }
  .status-card .stages li.done::after, .status-card .stages li.now::after { background: linear-gradient(180deg, #CFE2D4, var(--gold)); }
  .status-card { padding: 30px 22px 26px; }
  .status-card::after { inset: 8px; }
  .status-now { gap: 16px; }
  .status-now h3, .status-now strong { font-size: 21px; }
  .quill-book { width: 68px; height: 68px; }
  .quill-book svg { width: 50px; height: 50px; }
  .card.activity:has(> .timeline:empty) { background-size: 104px auto, auto, 100% calc(100% - 52px), auto; background-position: right 18px center, 0 0, 0 26px, 0 0; }
  .timeline .when { width: 110px; }
  .choice-row .choice { flex: 1 1 100%; min-height: 56px; }
  .submit-bar { padding: 16px; }
  .submit-bar .btn { width: 100%; }
  .admin-tabs { display: flex; flex-wrap: nowrap; width: 100%; margin-bottom: 28px; }
  .admin-tabs .btn { flex: 1 1 auto; min-height: 44px; padding: 0 8px; font-size: 14px; }
  .admin-search .btn { padding: 0 18px; }
  .hero-ready { padding: 40px 26px 190px; background: linear-gradient(180deg, rgba(25, 29, 36, .98) 0%, rgba(25, 29, 36, .9) 55%, rgba(25, 29, 36, .1) 85%), var(--art) 64% 100% / auto 270px no-repeat, var(--night); }
  .hero-ready h1 { font-size: 50px; }
  .dl { padding: 20px; }
  /* wide tables scroll inside their own frame; the first column stays pinned */
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .table-wrap table.list { display: table; overflow: visible; }
  table.list th, table.list td { white-space: nowrap; padding: 13px 14px; }
  .table-wrap.can-scroll table.list tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--white); box-shadow: 1px 0 0 var(--hairline), 6px 0 10px -8px rgba(22, 36, 63, .35); }
  .table-wrap.can-scroll table.list th:first-child { background: #FCFBF7; }
  .card { overflow-wrap: anywhere; }
  footer.site .inner { padding: 18px 16px 20px; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .qb-line { stroke-dashoffset: 0; }
}

/* progress widths as classes (the CSP blocks inline style attributes) */
.progress > span.w0 { width: 0%; } .progress > span.w5 { width: 5%; } .progress > span.w10 { width: 10%; } .progress > span.w15 { width: 15%; } .progress > span.w20 { width: 20%; } .progress > span.w25 { width: 25%; } .progress > span.w30 { width: 30%; } .progress > span.w35 { width: 35%; } .progress > span.w40 { width: 40%; } .progress > span.w45 { width: 45%; } .progress > span.w50 { width: 50%; } .progress > span.w55 { width: 55%; } .progress > span.w60 { width: 60%; } .progress > span.w65 { width: 65%; } .progress > span.w70 { width: 70%; } .progress > span.w75 { width: 75%; } .progress > span.w80 { width: 80%; } .progress > span.w85 { width: 85%; } .progress > span.w90 { width: 90%; } .progress > span.w95 { width: 95%; } .progress > span.w100 { width: 100%; }

/* cards laid out side by side inside an actions row (admin book) */
.actions:has(> .card) { align-items: stretch; }
.actions > .card { margin: 0; flex: 1 1 280px; }

/* ================================================================== final polish pass */
/* readable ledes: Lato 400 charcoal, never light grey */
.intro { font-weight: 400; color: var(--charcoal); font-size: 19px; line-height: 1.6; }
.muted { color: var(--charcoal); }
.auth-side p { font-weight: 400; }
.order-pitch .intro { font-weight: 400; color: rgba(236, 228, 210, .92); }

/* members' bar gets the same double gold hairline as the public masthead */
.topbar .rule { height: 5px; opacity: 1; background: var(--gold-rule) top / 100% 1px no-repeat, var(--gold-rule) bottom / 100% 1px no-repeat; }

/* the next thing to do: first on the page, upright cream copy, the only gold action while books wait */
.callout.next-up { margin: 0 0 28px; padding: 16px 16px 16px 22px; gap: 18px; color: rgba(250, 247, 240, .9); background: linear-gradient(90deg, #16243F 0%, #22365C 100%); border-color: rgba(201, 162, 75, .55); }
.callout.next-up .lead { font-style: normal; font-weight: 900; color: var(--white); font-size: 18px; }
.callout.next-up a { color: var(--cream); font-weight: 700; text-decoration-color: rgba(212, 175, 92, .85); }
.next-up-icon { background: rgba(201, 162, 75, .1); color: var(--gold-soft); border: 1px solid rgba(201, 162, 75, .6); box-shadow: none; }
.next-up-go { width: 52px; height: 52px; border: 0; background: var(--gilt); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 5px rgba(201, 162, 75, .14), 0 10px 20px -10px rgba(176, 135, 46, .9); }
.callout.next-up:hover .next-up-go { background: var(--gilt); transform: translateX(3px); }

/* dashboard hero: one continuous cover, art on its own stage between copy and ledger, no seam */
.hero-dash { background: radial-gradient(38% 90% at 63% 52%, rgba(34, 54, 92, .7), rgba(34, 54, 92, 0) 100%), linear-gradient(90deg, #191D24 0%, #191D24 34%, #16243F 80%, #16243F 100%); }
.hero-dash .hero-grid { grid-template-columns: minmax(0, 1fr) 360px 280px; }
.hero-copy { padding: 64px 0 60px 64px; position: relative; z-index: 3; }
.hero-art { position: relative; z-index: 1; min-height: 380px; margin: 0 -80px;
  background: var(--art) -182px calc(50% - 30px) / 660px auto no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.credit-tile { background: transparent; padding: 48px 44px 48px 44px; z-index: 3; }
/* while a book waits on the author, "Start a new book" steps back to an outline */
.hero .btn-on-dark.btn-lg { background: rgba(250, 247, 240, .04); border-color: rgba(201, 162, 75, .6); color: var(--white); box-shadow: none; }

/* waiting cards: warm butter action bars (status reads from the ring and spine; gold stays for the one primary) */
.book-card.is-waiting .next, .book-card.is-needs .next { background: linear-gradient(180deg, #FBF1DA, #FFFCF4); color: var(--navy); border-top: 1px solid rgba(201, 162, 75, .55); }
.book-card.is-waiting .next svg, .book-card.is-needs .next svg { color: var(--deep-gold); }

/* order: the art sits on its own framed plate under the last feature, never under copy */
.order-bg { background: radial-gradient(90% 40% at 40% 100%, rgba(34, 54, 92, .7), rgba(34, 54, 92, 0) 100%), var(--night); }
.order-steps { padding: 0 120px 0 60px; }
.order-plate { grid-column: 1; grid-row: 3; position: relative; z-index: 1; height: 300px; margin: 48px 120px 64px 60px; border-radius: 12px; border: 1px solid rgba(201, 162, 75, .45);
  box-shadow: inset 0 0 0 4px rgba(25, 29, 36, .5), 0 24px 40px -24px rgba(0, 0, 0, .8);
  background: var(--art) calc(50% - 131px) calc(50% - 40px) / 770px auto no-repeat, var(--navy); }

/* Turnstile: a reserved, styled slot so there is never a blank hole above the button */
.cf-turnstile { height: 67px; min-height: 0; width: 302px; max-width: 100%; overflow: hidden; border: 1px solid var(--hairline); border-radius: 10px; background: linear-gradient(100deg, rgba(252, 251, 247, 0) 30%, rgba(236, 228, 210, .55) 50%, rgba(252, 251, 247, 0) 70%) 0 0 / 220% 100% no-repeat, #FCFBF7; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }

/* ready page: two equal download cards, titles on one line where they fit */
.downloads { grid-template-columns: 1fr 1fr; align-items: stretch; }
.dl, .dl:first-child { padding: 26px 24px; }
.dl.secondary { background: var(--white); }
.dl.secondary .dl-title { white-space: nowrap; overflow-wrap: normal; }
.dl:first-child .dl-title { font-size: 18px; }

/* question rounds: the submit dock stays in reach */
.dock-on .submit-bar { position: sticky; bottom: 16px; }

/* admin filters: the current filter is filled navy */
.chips { gap: 8px; }
.chips .chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (max-width: 1100px) {
  .hero-dash .hero-grid { grid-template-columns: minmax(0, 1fr) 280px 250px; }
  .hero-art { margin: 0 -60px; background-size: 520px auto; background-position: -148px calc(50% - 24px); }
  .order-plate { margin-right: 100px; }
}
@media (max-width: 960px) {
  .hero-dash, .hero-dash.hero { background: linear-gradient(180deg, #191D24 0%, #191D24 45%, #16243F 100%); }
  .hero-dash .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; min-height: 0; height: 220px; margin: 0; background-size: 500px auto; background-position: calc(50% - 60px) calc(50% + 4px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 0, #000 78%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .hero-copy { padding-top: 8px; }
  .credit-tile { padding: 28px 32px 30px 64px; }
  .order-bg { grid-row: 1; background: radial-gradient(90% 40% at 50% 100%, rgba(34, 54, 92, .8), rgba(34, 54, 92, 0) 100%), var(--night); }
  .order-pitch { padding-bottom: 236px; }
  .order-card { margin-top: -186px; }
  .order-steps { padding: 40px 8px 0; }
  .order-plate { grid-row: 4; margin: 40px 0 0; height: 240px; background-size: 640px auto; background-position: calc(50% - 109px) calc(50% - 32px); }
}
@media (max-width: 640px) {
  .intro { font-size: 17px; }
  .callout.next-up { display: block; padding: 18px 76px 18px 70px; min-height: 92px; }
  .callout.next-up .next-up-icon { left: 18px; top: 50%; margin-top: -20px; }
  .callout.next-up .next-up-go { display: grid; position: absolute; right: 16px; top: 50%; margin-top: -24px; width: 48px; height: 48px; }
  .callout.next-up .lead { display: block; font-size: 16.5px; margin-bottom: 2px; }
  .hero-art { height: 200px; background-size: 500px auto; background-position: calc(50% - 60px) calc(50% + 4px); }
  .hero-copy { padding: 4px 26px 28px; }
  .credit-tile { padding: 22px 26px 26px; }
  .order-pitch { padding-bottom: 206px; }
  .order-card { margin-top: -166px; }
  .order-plate { height: 200px; background-size: 540px auto; background-position: calc(50% - 92px) calc(50% - 28px); }
  /* members' nav: sign out in its own outlined box, set apart by a divider */
  .topbar nav { padding: 0 4px; }
  .topbar nav a { min-height: 56px; }
  .topbar nav form { padding: 6px 4px 6px 8px; margin-left: 2px; border-left: 1px solid rgba(214, 217, 222, .2); }
  .topbar nav form .btn { min-height: 44px; border: 1px solid rgba(201, 162, 75, .6); border-radius: 8px; }
  .topbar nav form .btn:hover { border-color: var(--gold); }
  .downloads { grid-template-columns: 1fr; }
  .dl.secondary .dl-title { white-space: normal; }
  .dock-on .submit-bar { bottom: 8px; }
  .submit-bar { padding: 12px; }
  /* admin tables: no pinned column, the first column wraps, status pills stay whole */
  .table-wrap.can-scroll table.list tr > :first-child { position: static; box-shadow: none; }
  table.list td:first-child { white-space: normal; min-width: 150px; max-width: 190px; }
  table.list td:first-child a { overflow-wrap: anywhere; }
  table.list .badge { font-size: 10.5px; letter-spacing: .06em; padding: 5px 10px; }
  table.list td .badge { margin-left: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 4px 16px 8px; scrollbar-width: none; }
  .chips .chip { flex: none; }
}

.auth-plate { height: 196px; }
@media (max-width: 860px) { .auth-plate { height: 172px; background-size: 400px auto; background-position: calc(50% - 68px) calc(50% - 21px); } }
/* cards never end in stray margin; side-by-side admin action cards line their buttons up */
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.actions > .card { display: flex; flex-direction: column; align-items: flex-start; }
.actions > .card > .field { align-self: stretch; }
.actions > .card > .btn:last-child { margin-top: auto; }
.actions > .card > .check + .btn:last-child, .actions > .card > .field + .btn:last-child { margin-top: auto; }
.actions.m0 { margin: 0; }
.check + .actions.m0 { margin-top: 20px; }
.card .actions.m0 + .small { margin: 14px 0 0; }

/* ------------------------------------------------------------------ order page video placeholder */
.order-video {
  position: relative; margin: 32px 0 40px; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 12px; border: 1px solid rgba(201, 162, 75, .55); overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(201, 162, 75, .16) 0%, rgba(201, 162, 75, 0) 55%),
    linear-gradient(135deg, #191D24 0%, #16243F 55%, #22365C 100%);
  box-shadow: 0 24px 48px -24px rgba(25, 29, 36, .7), inset 0 0 0 6px rgba(22, 36, 63, .55);
  display: grid; place-items: center;
}
.order-video::before {
  content: ""; position: absolute; inset: 10px; border-radius: 8px;
  border: 1px solid rgba(201, 162, 75, .18); pointer-events: none;
}
.order-video-play {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(145deg, #D4AF5C 0%, #C9A24B 55%, #B0872E 100%);
  box-shadow: 0 0 0 10px rgba(201, 162, 75, .16), 0 12px 28px -8px rgba(25, 29, 36, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.order-video-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #16243F;
}
.order-video:hover .order-video-play { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(201, 162, 75, .2), 0 14px 32px -8px rgba(25, 29, 36, .85); }
@media (max-width: 640px) {
  .order-video { margin-top: 24px; }
  .order-video-play { width: 64px; height: 64px; }
  .order-video-play::after { border-width: 12px 0 12px 19px; }
}
@media (prefers-reduced-motion: reduce) { .order-video-play { transition: none; } }

/* ------------------------------------------------------------------ admin: AI models and book cost */
.cost-card { border-top: 3px solid var(--gold); }
p.cost-big { font-size: 48px; font-weight: 900; line-height: 1.1; color: var(--navy); letter-spacing: -.02em; margin: 6px 0 4px; }
strong.cost-big { font-size: 22px; font-weight: 900; color: var(--navy); }
.field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; }
.field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ admin: per-book cost targets */
.cost-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-tag-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.cost-ok { color: #2F6B3F; } .cost-ok .cost-tag-label { background: #E3F1E7; color: #24533A; }
.cost-warn { color: #B45309; } .cost-warn .cost-tag-label { background: #FDEBD3; color: #92400E; }
.cost-over { color: #9B2C2C; } .cost-over .cost-tag-label { background: #F6E4E4; color: #9B2C2C; }
p.cost-big .cost-tag-label { font-size: 14px; vertical-align: middle; }
p.cost-big.cost-ok { color: #2F6B3F; } p.cost-big.cost-warn { color: #B45309; } p.cost-big.cost-over { color: #9B2C2C; }

/* Guided intake form and question rounds (autosave.js) */
.intake-section { margin: 36px 0 8px; font-size: 1.15rem; }
.q-card[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; }
.choice-col { display: grid; gap: 4px; }
.choice input:disabled + * , .choice:has(input:disabled) { opacity: .55; }
.intake-bar { flex-wrap: wrap; gap: 10px 16px; }
.save-state { font-size: .85rem; color: var(--muted, #4A515C); }
.save-state.ok::before { content: "\2713  "; color: #2e7d4f; }
.save-state.pending { color: #8a6d1c; }
.save-state.error { color: #b3261e; font-weight: 700; }
.q-card[data-qcard] .q-prompt { float: none; }
.q-card[data-qcard] .choice.block { margin: 8px 0; }
.callout.take-time { margin-top: 4px; }
