:root {
  --ink: #18243a;
  --ink-2: #2d3b51;
  --paper: #f0e9da;
  --paper-soft: #f8f4eb;
  --paper-bright: #fffdf8;
  --coral: #ed684d;
  --coral-dark: #c94a33;
  --sage: #789078;
  --brass: #c49a43;
  --muted: #70756f;
  --line: rgba(24, 36, 58, 0.14);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", sans-serif;
  --shadow: 0 24px 70px rgba(24, 36, 58, 0.14);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(237, 104, 77, 0.1), transparent 25rem),
    radial-gradient(circle at 92% 78%, rgba(196, 154, 67, 0.11), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(237, 104, 77, 0.42);
  outline-offset: 3px;
}

.paper-grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 244, 235, 0.91);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--paper-bright);
  border-radius: 50% 50% 50% 8px;
  background: var(--coral);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong { font-size: 12px; letter-spacing: 0.17em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: 0.035em; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--sage);
  border: 1px solid rgba(120, 144, 120, 0.25);
  border-radius: 99px;
  background: rgba(120, 144, 120, 0.08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.live { color: var(--coral-dark); border-color: rgba(237, 104, 77, 0.24); background: rgba(237, 104, 77, 0.07); }
.status-pill.ended { color: var(--brass); border-color: rgba(196, 154, 67, 0.28); background: rgba(196, 154, 67, 0.08); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 10%, transparent); }

.page { width: min(1180px, 100%); margin: 0 auto; padding: 28px 17px 100px; }
.page.narrow { width: min(760px, 100%); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before { width: 18px; height: 1px; background: currentColor; content: ""; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); }

.hero-title {
  max-width: 820px;
  margin: 13px 0 0;
  font-size: clamp(44px, 10vw, 86px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-copy { max-width: 630px; margin: 20px 0 0; color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.55; }

.landing {
  display: grid;
  min-height: calc(100vh - 68px);
  align-content: center;
  gap: 36px;
  padding-top: 55px;
  padding-bottom: 70px;
}

.landing::after {
  position: fixed;
  z-index: -1;
  top: 13%;
  right: -17vw;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(24, 36, 58, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 9vw rgba(24, 36, 58, 0.025), inset 0 0 0 18vw rgba(237, 104, 77, 0.025);
  content: "";
}

.auth-page { display: grid; min-height: calc(100vh - 68px); place-items: center; padding-top: 48px; padding-bottom: 80px; }
.auth-card { position: relative; overflow: hidden; width: min(520px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 6px 34px 34px 34px; background: rgba(255,253,248,.76); box-shadow: var(--shadow); }
.auth-card h1 { max-width: 390px; margin: 18px 0 10px; font-size: clamp(42px, 11vw, 66px); font-weight: 600; line-height: .92; letter-spacing: -.04em; }
.auth-card > p:not(.eyebrow) { max-width: 390px; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.auth-number { position: absolute; top: -26px; right: -9px; color: rgba(237,104,77,.08); font-family: var(--serif); font-size: 120px; font-weight: 700; line-height: 1; }
.auth-form { display: grid; gap: 14px; margin-top: 30px; }
.auth-form input { min-height: 54px; font-size: 16px; }
.auth-form #auth-code { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .28em; }

.entry-grid { display: grid; gap: 13px; }

.entry-card {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 5px 26px 26px 26px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 12px 35px rgba(24, 36, 58, 0.05);
}

.entry-card.dark { color: white; border: 0; background: var(--ink); box-shadow: var(--shadow); }
.entry-number { color: var(--coral); font-family: var(--serif); font-size: 30px; }
.entry-card h2 { max-width: 360px; margin: 25px 0 0; font-size: 31px; font-weight: 600; line-height: 1.02; }
.entry-card p { max-width: 430px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.entry-card.dark p { color: rgba(255,255,255,.56); }
.entry-card .btn { margin-top: 22px; }

.join-form { display: flex; gap: 8px; margin-top: 22px; }
.join-form input { width: 150px; text-align: center; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }

.btn {
  display: inline-flex;
  min-height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24,36,58,.1); }
.btn:disabled { cursor: not-allowed; opacity: .42; }
.btn-primary { color: white; border-color: var(--coral); background: var(--coral); }
.btn-dark { color: white; border-color: var(--ink); background: var(--ink); }
.btn-danger { color: var(--coral-dark); border-color: rgba(237,104,77,.25); background: rgba(237,104,77,.06); }
.btn-small { min-height: 34px; padding: 0 11px; font-size: 9px; }
.btn-plain { padding: 0; color: var(--muted); border: 0; background: transparent; box-shadow: none; }

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,253,248,.66);
}

input, textarea, select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,253,248,.67);
}

input, select { min-height: 44px; padding: 0 12px; }
textarea { min-height: 92px; padding: 12px; resize: vertical; line-height: 1.5; }
label { display: block; }
label > span { display: block; margin: 0 0 7px 2px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.admin-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(24,36,58,.04); }
.admin-tabs button { min-height: 32px; padding: 0 11px; cursor: pointer; border: 0; border-radius: 8px; background: transparent; font-size: 9px; font-weight: 750; }
.admin-tabs button.active { color: white; background: var(--ink); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h1 { margin: 8px 0 0; font-size: clamp(37px, 7vw, 58px); font-weight: 600; line-height: .98; }
.section-head p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.builder-layout { display: grid; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 5px 22px 22px 22px; background: rgba(255,253,248,.62); box-shadow: 0 9px 32px rgba(24,36,58,.045); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-head strong { font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.panel-head small { color: var(--muted); font-size: 9px; }
.panel-body { padding: 18px; }

.meta-grid { display: grid; gap: 13px; }
.deck-upload { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.upload-zone { display: grid; min-height: 128px; cursor: pointer; place-items: center; padding: 16px; border: 1px dashed rgba(237,104,77,.4); border-radius: 12px; background: rgba(237,104,77,.04); text-align: center; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone strong, .upload-zone small { display: block; }
.upload-zone strong { font-family: var(--serif); font-size: 18px; }
.upload-zone small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.deck-file { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(120,144,120,.07); }
.deck-file-badge { display: grid; width: 34px; height: 40px; place-items: center; color: white; border-radius: 5px 9px 5px 5px; background: var(--coral-dark); font-size: 8px; font-weight: 800; }
.deck-file-info { min-width: 0; flex: 1; }
.deck-file strong, .deck-file small { display: block; }
.deck-file strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deck-file small { margin-top: 3px; color: var(--sage); font-size: 8px; }
.retention-note { margin: 12px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.retention-note strong { color: var(--ink-2); }

.flow-list { display: grid; gap: 10px; }
.block-editor { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; background: rgba(248,244,235,.62); }
.block-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.block-index { color: var(--coral-dark); font-family: var(--serif); font-size: 21px; }
.block-grid { display: grid; gap: 10px; }
.block-visual { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.block-visual-preview { width: 104px; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); }
.block-visual-preview img { width: 100%; height: 100%; object-fit: cover; }
.block-actions { display: flex; flex-wrap: wrap; gap: 7px; }

.sticky-actions { position: sticky; z-index: 10; bottom: 14px; display: flex; justify-content: flex-end; gap: 8px; width: min(1180px, calc(100% - 28px)); margin: -76px auto 14px; padding: 10px; border: 1px solid rgba(24,36,58,.12); border-radius: 15px; background: rgba(255,253,248,.9); box-shadow: 0 14px 45px rgba(24,36,58,.14); backdrop-filter: blur(18px); }

.live-layout { display: grid; gap: 18px; }
.session-card { padding: 19px; color: white; border-radius: 5px 22px 22px 22px; background: var(--ink); box-shadow: var(--shadow); }
.session-card h2 { margin: 10px 0 0; font-size: 31px; font-weight: 600; line-height: 1; }
.join-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.13); }
.join-code strong { font-family: var(--serif); font-size: 39px; letter-spacing: .12em; }
.join-code small { display: block; color: rgba(255,255,255,.5); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.qr-box { display: grid; place-items: center; padding: 14px; border-radius: 16px; background: white; }
.qr-box img { display: block; width: min(230px, 100%); }
.join-url { margin-top: 9px; color: rgba(255,255,255,.5); font-size: 8px; line-height: 1.4; word-break: break-all; }

.present-stage { display: grid; gap: 14px; }
.now-card { position: relative; overflow: hidden; min-height: 330px; padding: 25px; color: white; border-radius: 5px 26px 26px 26px; background: radial-gradient(circle at 96% 4%, rgba(237,104,77,.35), transparent 16rem), var(--ink); box-shadow: var(--shadow); }
.now-card::after { position: absolute; right: -70px; bottom: -105px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.now-label { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #ff9b82; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.now-card h2 { position: relative; z-index: 1; max-width: 780px; margin: 48px 0 0; font-size: clamp(37px, 7.5vw, 64px); font-weight: 600; line-height: .95; letter-spacing: -.03em; }
.now-card blockquote { position: relative; z-index: 1; max-width: 730px; margin: 24px 0 0; padding-top: 17px; color: rgba(255,255,255,.66); border-top: 1px solid rgba(255,255,255,.14); font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.now-visual { position: relative; z-index: 1; display: block; width: min(360px, 100%); margin-top: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; }
.now-visual img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.next-card { padding: 18px; border: 1px solid var(--line); border-radius: 4px 17px 17px 17px; background: rgba(255,253,248,.58); }
.next-card small { color: var(--sage); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.next-card h3 { margin: 8px 0 0; font-size: 22px; font-weight: 600; }
.present-controls { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }

.audience-header { position: relative; overflow: hidden; padding: 37px 20px 34px; color: white; background: var(--ink); }
.audience-header::after { position: absolute; top: -84px; right: -75px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: inset 0 0 0 42px rgba(237,104,77,.035); content: ""; }
.audience-header h1 { position: relative; z-index: 1; max-width: 760px; margin: 10px 0 0; font-size: clamp(39px, 9vw, 67px); font-weight: 600; line-height: .94; letter-spacing: -.035em; }
.audience-header > p:last-child { position: relative; z-index: 1; margin: 13px 0 0; color: rgba(255,255,255,.55); font-size: 10px; }

main.waiting { display: grid; min-height: calc(100vh - 68px); place-items: center; padding: 35px 20px; text-align: center; }
.waiting-mark { display: grid; width: 78px; height: 78px; place-items: center; margin: 0 auto; color: white; border-radius: 50% 50% 50% 17px; background: var(--ink); box-shadow: var(--shadow); font-family: var(--serif); font-size: 26px; }
main.waiting h1 { max-width: 540px; margin: 25px auto 0; font-size: clamp(38px, 9vw, 57px); font-weight: 600; line-height: .98; }
main.waiting p { max-width: 480px; margin: 13px auto 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.timeline { position: relative; display: grid; gap: 18px; width: min(780px, 100%); margin: 0 auto; padding: 28px 17px 130px 39px; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 23px; width: 1px; background: var(--line); content: ""; }
.timeline-entry { position: relative; animation: reveal-in 450ms cubic-bezier(.22,1,.36,1) both; }
.timeline-dot { position: absolute; top: 18px; left: -21px; width: 11px; height: 11px; border: 3px solid var(--paper); border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 1px var(--line); }
.timeline-entry.current .timeline-dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(237,104,77,.12); }
.point-card { overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 4px 19px 19px 19px; background: rgba(255,253,248,.65); box-shadow: 0 8px 25px rgba(24,36,58,.05); }
.timeline-entry.current .point-card { border-color: rgba(237,104,77,.35); background: var(--paper-bright); box-shadow: 0 17px 40px rgba(24,36,58,.09); }
.point-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--sage); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.timeline-entry.current .point-kicker { color: var(--coral-dark); }
.point-card h2 { margin: 12px 0 0; font-size: clamp(24px, 6vw, 34px); font-weight: 600; line-height: 1.04; }
.point-body { margin: 13px 0 0; color: var(--ink-2); font-family: var(--serif); font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.point-reference { margin: 10px 0 0; color: var(--coral-dark); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.point-image { display: block; width: 100%; margin-top: 15px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--ink); }
.note-area { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.note-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.note-label span:first-child { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.save-state { color: var(--sage); font-size: 8px; font-weight: 700; }
.note-prompt { margin: 0 0 8px; color: var(--muted); font-family: var(--serif); font-size: 12px; font-style: italic; }
.note-area textarea { min-height: 88px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; font-family: var(--serif); font-size: 16px; }

.audience-nav { position: fixed; z-index: 15; right: 12px; bottom: 12px; left: 12px; display: grid; grid-template-columns: repeat(3,1fr); max-width: 500px; margin: 0 auto; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.92); box-shadow: 0 14px 40px rgba(24,36,58,.16); backdrop-filter: blur(18px); }
.audience-nav button { min-height: 44px; cursor: pointer; color: var(--muted); border: 0; border-radius: 10px; background: transparent; font-size: 9px; font-weight: 750; }
.audience-nav button.active { color: white; background: var(--ink); }

.notebook { width: min(860px, 100%); margin: 0 auto; padding: 28px 17px 130px; }
.notebook-cover { padding: 28px; color: white; border-radius: 5px 25px 25px 25px; background: radial-gradient(circle at 98% 3%, rgba(237,104,77,.32), transparent 15rem), var(--ink); box-shadow: var(--shadow); }
.notebook-cover h1 { margin: 11px 0 0; font-size: clamp(39px, 9vw, 60px); font-weight: 600; line-height: .94; }
.notebook-cover p:last-child { margin: 13px 0 0; color: rgba(255,255,255,.54); font-size: 10px; }
.notebook-list { display: grid; gap: 24px; margin-top: 30px; }
.notebook-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.notebook-number { color: var(--coral-dark); font-family: var(--serif); font-size: 19px; }
.notebook-row h2 { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.1; }
.notebook-row > div > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.saved-note { margin-top: 11px; padding: 12px 14px; border-left: 2px solid var(--coral); background: rgba(255,255,255,.42); font-family: var(--serif); font-size: 14px; font-style: italic; white-space: pre-wrap; }
.notebook-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.deck-resource { margin-top: 45px; padding: 21px; border: 1px solid rgba(196,154,67,.3); border-radius: 4px 19px 19px 19px; background: rgba(196,154,67,.075); }
.deck-resource h2 { margin: 7px 0 0; font-size: 28px; font-weight: 600; }
.deck-resource > p { max-width: 610px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.deck-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.deck-gallery img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--ink); }

.empty-state { padding: 35px 20px; text-align: center; }
.empty-state strong { display: block; font-family: var(--serif); font-size: 23px; }
.empty-state p { max-width: 420px; margin: 8px auto 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(11,18,30,.7); backdrop-filter: blur(8px); }
.modal { width: min(440px,100%); padding: 25px; border-radius: 5px 23px 23px 23px; background: var(--paper-bright); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal h2 { margin: 0; font-size: 31px; font-weight: 600; }
.modal p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }

.toast { position: fixed; z-index: 200; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 11px 16px; pointer-events: none; transform: translate(-50%,18px); color: white; border-radius: 99px; opacity: 0; background: #111924; box-shadow: 0 12px 35px rgba(0,0,0,.25); font-size: 10px; font-weight: 700; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
.loading { display: grid; min-height: 65vh; place-items: center; color: var(--muted); font-family: var(--serif); font-size: 20px; }
.spinner { width: 28px; height: 28px; margin: 0 auto 12px; border: 2px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin 750ms linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 720px) {
  .topbar { height: 76px; padding: 0 30px; }
  .page { padding: 44px 28px 110px; }
  .entry-grid { grid-template-columns: 1fr 1fr; }
  .entry-card { min-height: 310px; padding: 28px; }
  .entry-card h2 { margin-top: 70px; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid label:first-child, .meta-grid label:nth-child(2) { grid-column: 1/-1; }
  .block-grid { grid-template-columns: 145px minmax(0,1fr); }
  .block-grid label:nth-child(2), .block-grid label:nth-child(3), .block-grid .block-visual { grid-column: 2; }
  .block-grid label:first-child { grid-row: span 3; }
  .now-card { min-height: 470px; padding: 34px; }
  .present-controls { grid-template-columns: 140px 1fr 140px; }
  .timeline { padding-top: 38px; }
  .point-card { padding: 23px; }
  .deck-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width: 960px) {
  .builder-layout { grid-template-columns: 330px minmax(0,1fr); align-items: start; }
  .builder-layout > aside { position: sticky; top: 96px; }
  .live-layout { grid-template-columns: 280px minmax(0,1fr); align-items: start; }
  .session-sidebar { position: sticky; top: 96px; }
}

@media (min-width: 1050px) {
  .landing { grid-template-columns: minmax(0,1.1fr) minmax(430px,.9fr); align-items: center; gap: 65px; }
  .builder-layout { grid-template-columns: 365px minmax(0,1fr); gap: 28px; }
  .now-card.has-visual { display: grid; grid-template-columns: minmax(0,1fr) 370px; column-gap: 35px; align-items: center; }
  .now-card.has-visual .now-label { grid-column: 1/-1; }
  .now-card.has-visual .now-visual { grid-column: 2; grid-row: 2 / span 2; margin: 48px 0 0; }
}

@media print {
  body { background: white; }
  .paper-grain, .topbar, .audience-nav, .notebook-actions, .deck-resource .btn, .toast { display: none !important; }
  .notebook { width: 100%; padding: 0; }
  .notebook-cover { color: var(--ink); border: 1px solid var(--line); background: white; box-shadow: none; }
  .notebook-cover p:last-child { color: var(--muted); }
  .deck-resource { break-before: page; }
}
