/* Booklet, beta step 1.
   Layout: a quiet app frame (top bar + section rail) around fixed 1600x900 book pages
   that scale to fit; a phone column for set; Letter-size black and white printables. */
:root {
  /* App frame (follows the viewer's light or dark theme) */
  --c-bg: #efeeea; --c-panel: #f8f7f4; --c-fg: #191a19; --c-mute: #66675f; --c-line: #d9d6cf; --c-accent: #1f6f6b; --c-accent-ink: #ffffff; --c-flag: #a8461a; --c-flag-bg: #f6e3d6; --c-shadow: 0 1px 2px rgba(20,20,18,.06), 0 8px 24px rgba(20,20,18,.08);
  /* Type */
  --f-sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* Book palette (Studio look; set by the look picker, not by the viewer's theme) */
  --bg: #e8e0d2; --ink: #1d2422; --ac: #1f6f6b; --mu: #5d6460; --ru: #cbbfac; --b2: #ddd3c2;
  /* Book type (set by the look; Studio by default) */
  --bk-body: var(--f-sans); --bk-disp: var(--f-sans); --bk-it: var(--f-serif); --bk-bit: var(--f-serif); --bk-mono: var(--f-mono);
  --d-wt: 500; --d-ls: -0.03em; --d-tt: none; --d-st: normal; --dk: 1; --dlh: 0.9;
  --i-st: italic; --i-wt: 400; --i-tt: none; --i-ls: 0; --ik: 1; --body-wt: 400;
}
/* Looks: only type changes here; colors come from the combo. */
:root[data-look="ledger"] { --bk-bit: 'Noto Serif', Georgia, serif; --bk-body: 'Noto Sans', Arial, sans-serif; --bk-disp: 'Noto Serif Display', Georgia, serif; --bk-it: 'Noto Serif Display', Georgia, serif; --bk-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --d-wt: 300; --d-ls: -0.01em; --dk: 1; --dlh: 0.95; --i-st: italic; --i-wt: 300; --ik: 1; }
:root[data-look="spec"] { --bk-bit: 'Newsreader', Georgia, serif; --bk-body: 'Geist', Arial, sans-serif; --bk-disp: 'Geist', Arial, sans-serif; --bk-it: 'Geist Mono', ui-monospace, monospace; --bk-mono: 'Geist Mono', ui-monospace, monospace;
  --d-wt: 600; --d-ls: -0.045em; --dk: 1; --dlh: 0.9; --i-st: normal; --i-tt: uppercase; --i-ls: 0.02em; --ik: 0.62; }
:root[data-look="cinema"] { --bk-bit: 'Newsreader', Georgia, serif; --bk-body: 'Inter', Arial, sans-serif; --bk-disp: 'Archivo Expanded', 'Archivo', Arial, sans-serif; --bk-it: 'Archivo Expanded', 'Archivo', Arial, sans-serif; --bk-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --d-wt: 400; --d-ls: 0.04em; --d-tt: uppercase; --d-st: 125%; --dk: 0.6; --dlh: 1; --i-st: normal; --i-wt: 400; --i-tt: uppercase; --i-ls: 0.04em; --ik: 0.5; --body-wt: 300; }
:root[data-look="poster"] { --bk-bit: 'Spectral', Georgia, serif; --bk-body: 'Spectral', Georgia, serif; --bk-disp: 'Antonio', 'Arial Narrow', sans-serif; --bk-it: 'Antonio', 'Arial Narrow', sans-serif; --bk-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --d-wt: 700; --d-ls: 0; --d-tt: uppercase; --dk: 1.12; --dlh: 0.86; --i-st: normal; --i-wt: 700; --i-tt: uppercase; --ik: 0.9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --c-bg: #121312; --c-panel: #1b1c1b; --c-fg: #ecebe6; --c-mute: #a3a39b; --c-line: #33342f; --c-accent: #5fb3ac; --c-accent-ink: #0d1615; --c-flag: #f0a67e; --c-flag-bg: #3a2418; --c-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; }
}
:root[data-theme="dark"] { --c-bg: #121312; --c-panel: #1b1c1b; --c-fg: #ecebe6; --c-mute: #a3a39b; --c-line: #33342f; --c-accent: #5fb3ac; --c-accent-ink: #0d1615; --c-flag: #f0a67e; --c-flag-bg: #3a2418; --c-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; }

html, body { height: 100%; }
body { background: var(--c-bg); color: var(--c-fg); font: 15px/1.45 var(--f-sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--c-panel); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--c-panel); border-bottom: 1px solid var(--c-line);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 10px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Booklet logo: ink parts follow the text color, the dot stays coral. */
.logo { display: inline-block; position: relative; height: 1em; aspect-ratio: 1231 / 300; vertical-align: -0.18em; flex: none; }
.logo::before, .logo::after { content: ""; position: absolute; inset: 0; }
.logo::before { background: currentColor; -webkit-mask: url(img/logo-ink.png) center / contain no-repeat; mask: url(img/logo-ink.png) center / contain no-repeat; }
.logo::after { background: url(img/logo-dot.png) center / contain no-repeat; }
.brand .logo { font-size: 28px; color: var(--c-fg); align-self: center; }
.brand #bookName { color: var(--c-mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 2px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; padding: 3px; margin-left: auto; }
.tabs a { text-decoration: none; color: var(--c-mute); padding: 6px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--c-panel); color: var(--c-fg); box-shadow: var(--c-shadow); }
.lookbtn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-line); background: var(--c-panel); border-radius: 10px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.lookpop { position: absolute; max-height: calc(100vh - 90px); overflow: auto; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 6px); width: 300px; max-width: calc(100vw - 32px); background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--c-shadow); padding: 14px; }
.lookpop h3 { margin: 0 0 2px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-mute); font-weight: 500; }
.lookpop p { margin: 0 0 12px; font-size: 13px; color: var(--c-mute); }
.looks { display: grid; gap: 4px; margin-bottom: 4px; }
.lk { display: grid; grid-template-columns: 92px 1fr; align-items: baseline; gap: 8px; border: 1px solid var(--c-line); background: none; border-radius: 10px; padding: 7px 10px; text-align: left; }
.lk[aria-pressed="true"] { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.lk b { font-size: 16px; font-weight: 500; }
.lk span { font-size: 12px; color: var(--c-mute); }
.lk-ledger { font-family: 'Noto Serif Display', Georgia, serif; font-weight: 300 !important; font-size: 18px !important; }
.lk-studio { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400 !important; font-size: 18px !important; }
.lk-spec { font-family: 'Geist', Arial, sans-serif; font-weight: 600 !important; letter-spacing: -0.02em; }
.lk-cinema { font-family: 'Archivo Expanded', 'Archivo', Arial, sans-serif; font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; font-size: 12px !important; }
.lk-poster { font-family: 'Antonio', 'Arial Narrow', sans-serif; font-weight: 700 !important; text-transform: uppercase; font-size: 18px !important; }
.combos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.combo { border: 1px solid var(--c-line); border-radius: 10px; background: none; padding: 8px; text-align: left; display: grid; gap: 6px; }
.combo[aria-pressed="true"] { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.combo .chips { display: flex; height: 26px; border-radius: 6px; overflow: hidden; }
.combo .chips i { flex: 1; }
.combo span { font-size: 13px; }

/* ---------- Book view ---------- */
.view { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 48px; }
.bookwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; max-width: 1480px; margin: 0 auto; }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); align-self: start; display: grid; gap: 1px; max-height: calc(100vh - 100px); overflow: auto; }
.rail .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-mute); padding: 0 10px 8px; }
.rail a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--c-fg); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.rail a span { font-family: var(--f-mono); font-size: 11px; color: var(--c-mute); width: 18px; flex: none; }
.rail a:hover { background: var(--c-panel); }
.rail a.on { background: var(--c-panel); box-shadow: var(--c-shadow); }
.rail .note { margin-top: 14px; padding: 10px; font-size: 12px; color: var(--c-mute); border-top: 1px solid var(--c-line); }
.pages { display: grid; gap: 22px; min-width: 0; }
.pagebox { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 4px; box-shadow: var(--c-shadow); background: var(--bg); scroll-margin-top: 84px; }
.pagebox > .pg { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); }
.pagecap { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-mute); margin: -14px 2px 0; }
.phonehint { display: none; }

/* ---------- Book pages (Studio look) ---------- */
.pg { width: 1600px; height: 900px; background: var(--bg); color: var(--ink); font-family: var(--bk-body); font-weight: var(--body-wt); overflow: hidden; position: relative; }
.pg .a { position: absolute; }
.pg .it { font-family: var(--bk-bit); font-style: italic; font-weight: 400; }
.pg .big, .pg .h1 .it, .pg .dsp + .it { font-family: var(--bk-it); font-style: var(--i-st); font-weight: var(--i-wt); text-transform: var(--i-tt); letter-spacing: var(--i-ls); font-stretch: var(--d-st); }
.pg .dsp { font-family: var(--bk-disp); font-weight: var(--d-wt); letter-spacing: calc(var(--d-ls) - 0.015em); text-transform: var(--d-tt); font-stretch: var(--d-st); }
.pg .mo { font-family: var(--bk-mono); font-variant-numeric: tabular-nums; }
.pg .hd { position: absolute; left: 64px; right: 64px; top: 34px; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mu); border-bottom: 1px solid var(--ru); padding-bottom: 12px; }
.pg .ft { position: absolute; left: 64px; right: 64px; bottom: 30px; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.pg .ph { object-fit: cover; display: block; background: var(--b2); }
.pg .h1 { font-family: var(--bk-disp); font-size: calc(84px * var(--dk)); font-weight: var(--d-wt); letter-spacing: var(--d-ls); text-transform: var(--d-tt); font-stretch: var(--d-st); line-height: 1; }
.pg .h1i { font-family: var(--bk-it); font-style: var(--i-st); font-weight: var(--i-wt); text-transform: var(--i-tt); letter-spacing: var(--i-ls); font-stretch: var(--d-st); font-size: calc(40px * max(var(--ik), 0.7)); color: var(--ac); line-height: 1.1; }
.pg .lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.pg .kv { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ru); padding: 12px 0; font-size: 17px; }
.pg .kv > span:first-child { color: var(--mu); }
.pg .kv > span:last-child { text-align: right; }
.pg .meta { display: grid; grid-template-columns: repeat(4, auto); gap: 24px; font-size: 17px; }
.pg .meta b { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); font-weight: 500; margin-bottom: 4px; }
.pg .row { display: grid; grid-template-columns: 92px 76px 1fr 104px; gap: 18px; align-items: center; border-bottom: 1px solid var(--ru); padding: 9px 0; font-size: 17px; line-height: 1.3; min-height: 34px; }
.pg .row.th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); border-bottom: 1px solid var(--ink); min-height: 0; padding-top: 0; }
.pg .row .ty { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.pg .row.shoot .ty { color: var(--ac); font-weight: 600; }
.pg .row img { width: 92px; height: 52px; object-fit: cover; border: 1px solid var(--ru); display: block; }
.flag { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #a8461a; background: #f6e3d6; border-radius: 4px; padding: 2px 7px; font-family: var(--f-sans); font-style: normal; }

/* ---------- Phone view ---------- */
.phone { max-width: 440px; margin: 0 auto; display: grid; gap: 14px; }
.ph-head { display: grid; gap: 4px; }
.ph-head .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-mute); }
.ph-head h1 { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
.ph-head h1 i { font-family: var(--f-serif); font-weight: 400; color: var(--c-accent); }
.ph-head p { margin: 0; font-size: 13px; color: var(--c-mute); }
.daysw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 12px; padding: 4px; }
.daysw button { border: 0; background: none; border-radius: 9px; padding: 9px 6px; font-weight: 500; font-size: 14px; color: var(--c-mute); }
.daysw button[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-ink); }
.card { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 14px; padding: 14px; min-width: 0; }
.card h2 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-mute); font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calls div { display: grid; gap: 2px; }
.calls b { font-family: var(--f-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.calls span { font-size: 12px; color: var(--c-mute); }
.now { border-color: var(--c-accent); }
.now .tag { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--c-accent-ink); background: var(--c-accent); border-radius: 5px; padding: 2px 7px; }
.now img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; margin: 10px 0; filter: grayscale(1); }
.now .what { font-size: 18px; font-weight: 500; line-height: 1.3; }
.now .next { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-mute); }
.tl { display: grid; }
.tl .r { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; line-height: 1.3; }
.tl .r:last-child { border-bottom: 0; }
.tl .r.past { color: var(--c-mute); }
.tl .r.cur { font-weight: 600; }
.tl .r .t { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.tl .r img { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; filter: grayscale(1); }
.tl .r .ty { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-mute); font-weight: 500; }
.shot { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.shot:last-child { border-bottom: 0; }
.shot input { width: 22px; height: 22px; margin: 0; accent-color: var(--c-accent); }
.shot .d { font-size: 14px; font-weight: 500; line-height: 1.3; }
.shot .m { font-size: 12px; color: var(--c-mute); font-family: var(--f-mono); }
.shot.done .d { text-decoration: line-through; color: var(--c-mute); }
.loc { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.loc:last-child { border-bottom: 0; }
.loc img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.loc b { display: block; font-size: 15px; }
.loc span { display: block; font-size: 13px; color: var(--c-mute); }
.ppl { display: grid; gap: 12px; }
.ppl .dept { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 2px; }
.ppl .p { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.ppl .p span:first-child { color: var(--c-mute); }
.cflag { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--c-flag); background: var(--c-flag-bg); border-radius: 4px; padding: 1px 6px; }
.small { font-size: 12px; color: var(--c-mute); }

/* ---------- Printables view ---------- */
.prwrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; max-width: 1280px; margin: 0 auto; }
.prside { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); }
.prside h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }
.prside h1 i { font-family: var(--f-serif); font-weight: 400; color: var(--c-accent); }
.prside p { margin: 0; font-size: 14px; color: var(--c-mute); }
.doclist { display: grid; gap: 2px; }
.doc { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; }
.doc:hover { background: var(--c-panel); }
.doc input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-accent); }
.doc label { font-size: 14px; font-weight: 500; cursor: pointer; }
.doc .n { font-size: 12px; color: var(--c-mute); font-family: var(--f-mono); }
.opts { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 14px; }
.opts label { display: flex; align-items: center; gap: 8px; }
.opts select { border: 1px solid var(--c-line); background: var(--c-panel); border-radius: 8px; padding: 4px 8px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 12px; }
.total b { font-size: 15px; }
.total span { font-family: var(--f-mono); font-size: 13px; color: var(--c-mute); }
.prnote { font-size: 13px; color: var(--c-mute); padding: 10px 12px; border-left: 3px solid var(--c-accent); background: var(--c-panel); border-radius: 0 10px 10px 0; }
.prpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 22px; min-width: 0; }
.ppbox { position: relative; width: 100%; aspect-ratio: 8.5 / 11; overflow: hidden; box-shadow: var(--c-shadow); background: #fff; border-radius: 2px; }
.ppbox.a4 { aspect-ratio: 210 / 297; }
.ppbox > .pp { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, .45)); }
.ppcap { font-size: 12px; color: var(--c-mute); margin-top: 6px; }

/* Printable sheet: plain black on white, one font, no backgrounds or photos */
.pp { width: 816px; height: 1056px; background: #fff; color: #000; font: 13px/1.4 'Inter Tight', Arial, Helvetica, sans-serif; padding: 48px 56px 40px; box-sizing: border-box; display: flex; flex-direction: column; }
.pp.a4 { width: 794px; height: 1123px; }
.pp .top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
.pp .top h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.pp .top div { text-align: right; font-size: 11px; line-height: 1.35; }
.pp .body { flex: 1; min-height: 0; }
.pp .bot { display: flex; justify-content: space-between; border-top: 1px solid #000; padding-top: 6px; font-size: 10px; }
.pp table { width: 100%; border-collapse: collapse; }
.pp th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid #000; padding: 4px 6px 4px 0; font-weight: 700; }
.pp td { border-bottom: 1px solid #999; padding: 6px 6px 6px 0; vertical-align: top; }
.pp .box { width: 12px; height: 12px; border: 1.3px solid #000; display: inline-block; vertical-align: -2px; }
.pp .notes { margin-top: 14px; }
.pp .notes b { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pp .notes i { display: block; border-bottom: 1px solid #999; height: 24px; }
.pp .fr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.pp .fr img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #000; display: block; filter: grayscale(1); }
.pp .fr .c { font-size: 11px; margin-top: 4px; }
.pp .grp { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 10px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .bookwrap, .prwrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .rail .eyebrow, .rail .note { display: none; }
  .rail a { white-space: nowrap; background: var(--c-panel); border: 1px solid var(--c-line); }
  .prside { position: static; }
  .phonehint { display: block; font-size: 13px; color: var(--c-mute); background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 12px; }
  .phonehint a { color: var(--c-accent); font-weight: 500; }
}
@media (max-width: 560px) {
  .brand #bookName { display: none; }
  .tabs { margin-left: 0; order: 3; width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 6px 4px; }
  .lookbtn { margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .tabs a, .combo, .rail a { transition: background-color .15s, box-shadow .15s; }
}

/* ---------- Printing (works where the app is hosted; the preview frame can't print) ---------- */
@media print {
  @page { size: letter; margin: 0; }
  body { background: #fff; }
  body::before, .bar, .prside, .ppcap, .view > :not(.prwrap) { display: none !important; }
  .view { padding: 0; }
  .prwrap { display: block; }
  .prpages { display: block; }
  .ppbox { width: auto; aspect-ratio: auto; box-shadow: none; overflow: visible; border-radius: 0; break-after: page; }
  .ppbox > .pp { position: static; transform: none; }
}

/* "Made with booklet." marks */
.pg .ft .made { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .14em; }
.pg .ft .made .logo { font-size: 22px; color: var(--ink); }
.ph-foot { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--c-mute); font-size: 12px; padding: 8px 0 24px; }
.ph-foot .logo { font-size: 18px; color: var(--c-fg); }
.pp .bot .made { display: inline-flex; align-items: center; gap: 5px; }
.pp .bot .logo { font-size: 11px; color: #000; }
.pp .bot .logo::after { filter: brightness(0); }

/* Print button (hosted app only) */
.prbtn { display: block; width: 100%; margin: 14px 0 10px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--c-accent); color: var(--c-accent-ink); font: 600 15px/1.2 var(--f-sans); cursor: pointer; }
.prbtn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
