/* iShtaig: the look of a Shas on the shelf (leather, gold stamping, parchment pages) in the collage style of
   co-existence.ai (gold labels, black monospace, paper cards, offset buttons). No figures anywhere: only the
   things of the beis medrash, the gemara, the daf and the yad. One stylesheet for the front page and the app. */

:root {
  --text: #1b1610;
  --ink: #111111;
  --gold: #f5c84c;
  --foil: #e0b14e;
  --foil-light: #f8e2a0;
  --on-leather: #f2e6ca;
  --leather-1: #55291b;
  --leather-2: #2a130c;
  --paper: #fbf6ea;
  --paper-edge: #e3d6bb;
  --muted: #625849;
  --line: #ddd0b6;
  --here: #fff0bb;
  --night: #120d0a;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --hebrew: "Frank Ruhl Libre", "Taamey Frank CLM", FrankRuehl, "Times New Roman", serif;
  --shadow: 4px 4px 0 var(--ink);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1e9da;
    --paper: #262019;
    --paper-edge: #3a3128;
    --muted: #bcae97;
    --line: #41372c;
    --here: #3d321d;
    --leather-1: #3a1c12;
    --leather-2: #170a06;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--text);
  font: 17px/1.55 var(--serif);
  background:
    radial-gradient(120% 70% at 50% -10%, rgb(255 214 170 / 0.12), transparent 60%),
    radial-gradient(140% 90% at 50% 125%, rgb(0 0 0 / 0.5), transparent 60%),
    linear-gradient(165deg, var(--leather-1), var(--leather-2));
  background-attachment: fixed;
}
/* The leather's grain, under everything (never over the text). */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  opacity: 0.35;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

a { color: inherit; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* The pieces */
.tag { display: inline-block; margin: 0; padding: 0.15em 0.5em; background: var(--gold); color: #111; font: 600 0.8rem/1.35 var(--mono); text-decoration: none; }
.tag.light { background: var(--paper); color: var(--text); }
.chip { display: inline-block; padding: 0.3em 0.6em; background: var(--paper); color: var(--text); border: 1px solid #111; font: 500 0.76rem/1.2 var(--mono); text-decoration: none; }
.box-title { display: block; width: fit-content; margin: 0; padding: 0.06em 0.3em 0.1em; background: var(--gold); color: #111; font: 700 clamp(3.2rem, 10vw, 7.2rem)/1.02 var(--mono); letter-spacing: -0.03em; }
.box-title.medium { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.highlight { padding: 0.04em 0.28em; background: var(--gold); color: #111; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.foil {
  color: var(--foil);
  background: linear-gradient(115deg, var(--foil-light), var(--foil) 35%, #fff0b8 55%, #b3822a 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.1em;
  background: var(--paper);
  color: var(--text);
  border: 2px solid #111;
  box-shadow: var(--shadow);
  font: 600 0.9rem/1 var(--mono);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #111; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.btn.gold { background: var(--gold); color: #111; }
.btn.small { padding: 0.5em 0.75em; font-size: 0.8rem; box-shadow: 3px 3px 0 #111; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 2px 2px 0 #111; }
.paper { background: var(--paper); color: var(--text); box-shadow: 0 22px 46px -22px rgb(0 0 0 / 0.75), 0 1px 0 var(--paper-edge); }
.bsd { position: absolute; top: 4px; right: 14px; z-index: 6; margin: 0; font: 500 0.85rem/1.3 var(--hebrew); }
.note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.error { margin: 0; min-height: 1.3em; color: #b23a26; font: 500 0.85rem var(--mono); }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: auto; accent-color: #111; }

/* ---- The front page: the cover of a gemara ---- */
.landing .nav { position: absolute; top: 34px; left: 34px; right: 34px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.landing .nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.landing .brand { font-size: 0.95rem; padding: 0.25em 0.6em; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 112px 44px 56px; overflow: hidden; }
/* The gold-stamped double frame, with its corners */
.hero::before { content: ""; position: absolute; inset: 16px; z-index: 1; border: 2px solid var(--foil); outline: 1px solid var(--foil); outline-offset: -9px; pointer-events: none; }
.corner { position: absolute; z-index: 1; width: 34px; height: 34px; color: var(--foil); pointer-events: none; }
.corner svg { display: block; width: 100%; height: 100%; }
.corner.tl { top: 5px; left: 5px; }
.corner.tr { top: 5px; right: 5px; transform: scaleX(-1); }
.corner.bl { bottom: 5px; left: 5px; transform: scaleY(-1); }
.corner.br { bottom: 5px; right: 5px; transform: scale(-1, -1); }
.cover-title { position: relative; z-index: 3; margin: 0 0 6px; text-align: center; font: 700 clamp(1.2rem, 2.6vw, 1.9rem)/1.2 var(--hebrew); letter-spacing: 0.04em; }
.kicker, .kicker-light { display: table; }
.hero .kicker { position: relative; z-index: 3; }
.hero h1 { position: relative; z-index: 3; margin-top: 14px; }
.side-box { position: absolute; z-index: 3; left: 44px; bottom: 13vh; max-width: 200px; margin: 0; padding: 14px 16px; background: var(--gold); color: #111; font: 700 1.45rem/1.3 var(--mono); }
.hero-card { position: relative; z-index: 3; max-width: 450px; margin: 22vh auto 0; padding: 18px 20px; font-size: 1.06rem; }
.hero-card p { margin: 0; }
.hero-actions { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.quote-box { position: absolute; z-index: 3; right: 44px; bottom: 13vh; margin: 0; padding: 10px 16px 8px; background: var(--gold); color: #111; text-align: right; font: 700 1.7rem/1.2 var(--hebrew); }
.quote-box small { display: block; margin-top: 2px; font: 500 0.72rem var(--mono); }
.art { position: absolute; z-index: 2; margin: 0; pointer-events: none; filter: drop-shadow(0 20px 24px rgb(0 0 0 / 0.5)); }
.art svg { display: block; width: 100%; height: auto; }
.art.daf { left: -30px; top: 44vh; width: min(25vw, 300px); transform: translateY(calc(var(--scroll, 0) * -0.12px)) rotate(-9deg); }
.art.pointer { right: -70px; top: 21vh; width: min(50vw, 700px); transform: translateX(calc(var(--scroll, 0) * -0.2px)) rotate(-7deg); }

.idea, .statement, .how, .open { position: relative; max-width: 1100px; margin: 0 auto; padding: 72px 24px; }
.kicker-light { margin: 0 0 14px; }
.lines { margin: 0; font: 700 clamp(1.6rem, 4.4vw, 3rem)/1.18 var(--mono); }
.lines span { display: table; margin: 0 0 0.14em; padding: 0.05em 0.3em 0.08em; background: var(--gold); color: #111; }
.card { max-width: 560px; margin: 40px 0 0 5%; padding: 22px 26px; transform: rotate(-1.4deg); }
.card p { margin: 0 0 0.8em; }
.card p:last-child { margin-bottom: 0; }
.drop::first-letter { float: left; margin: 0.06em 0.14em 0 0; padding: 0.02em 0.12em; background: var(--gold); color: #111; font: 700 2.3em/0.92 var(--mono); }
.asks { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin: -40px 0 0; padding: 0; list-style: none; }
.asks .tag { padding: 0.35em 0.65em; font-size: 0.95rem; }
.asks li:nth-child(2) { margin-inline-end: 9%; }
.asks li:nth-child(3) { margin-inline-end: 3%; }
.asks li:nth-child(4) { margin-inline-end: 14%; }
.night-card { max-width: 780px; margin: 0 0 0 auto; padding: 36px 40px; background: var(--night); color: #f4efe4; border: 1px solid #3a2a1c; font: 400 clamp(1.35rem, 3.1vw, 2.05rem)/1.42 var(--serif); }
.night-card p { margin: 0; }
.night-card footer { margin-top: 18px; color: #cfc4b0; font: 500 0.8rem var(--mono); }
.how h2 { margin: 0; font: 700 clamp(1.6rem, 4vw, 2.6rem)/1.2 var(--mono); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.steps li { padding: 18px 20px 22px; }
.steps li:nth-child(odd) { transform: rotate(-1deg); }
.steps li:nth-child(even) { transform: rotate(1deg); }
.steps h3 { margin: 12px 0 6px; font: 700 1.12rem/1.3 var(--mono); }
.steps p { margin: 0; }
/* Open your gemara: the sign-in, with the volume itself beside it */
.open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 40px; align-items: center; padding-bottom: 40px; }
.open .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.open .note, .credit { max-width: 520px; margin: 20px 0 0; color: var(--on-leather); }
.volume { margin: 0; filter: drop-shadow(0 26px 30px rgb(0 0 0 / 0.6)); transform: rotate(3deg); }
.volume svg { display: block; width: 100%; height: auto; }
.credit { margin: 0 auto; padding: 0 24px 40px; max-width: 1100px; font: 500 0.74rem var(--mono); }

@media (max-width: 760px) {
  .landing .nav { top: 30px; left: 28px; right: 28px; }
  .landing .nav .chip { display: none; }
  .hero { padding: 100px 28px 48px; }
  .art.daf { top: auto; bottom: 24vh; left: -50px; width: 46vw; opacity: 0.92; }
  .art.pointer { top: 34vh; right: -130px; width: 92vw; }
  .hero-card { margin-top: 30vh; }
  .side-box, .quote-box { position: relative; left: auto; right: auto; bottom: auto; display: inline-block; margin-top: 18px; }
  .side-box { max-width: none; font-size: 1.1rem; }
  .quote-box { display: table; margin-left: auto; }
  .card { margin: 32px 0 0; }
  .asks { margin-top: 24px; align-items: flex-start; }
  .asks li { margin: 0 !important; }
  .night-card { padding: 26px 24px; }
  .open { grid-template-columns: 1fr; }
  .volume { max-width: 260px; margin: 0 auto; }
}

/* ---- The app ---- */
.app-page { height: 100%; overflow: hidden; }
.app-page .bsd { color: var(--on-leather); font-size: 0.75rem; top: 2px; }
#app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
.bar { display: flex; align-items: center; gap: 12px; padding: 20px 18px 12px; }
.bar .brand { font-size: 0.95rem; padding: 0.25em 0.6em; }
.daf { display: flex; align-items: center; gap: 8px; margin-inline: auto; }
.daf select { appearance: none; padding: 0.45em 0.9em; background: var(--paper); color: var(--text); border: 2px solid #111; border-radius: 0; box-shadow: 3px 3px 0 #111; font: 600 0.95rem var(--mono); cursor: pointer; }
.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 36px; background: var(--paper); color: var(--text); border: 2px solid #111; box-shadow: 3px 3px 0 #111; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 10;
  display: grid;
  gap: 8px;
  min-width: 250px;
  padding: 14px;
  background: var(--paper);
  border: 2px solid #111;
  box-shadow: var(--shadow);
}
.menu-list .btn { justify-content: flex-start; width: 100%; }
.menu-list a.signout { padding: 6px 2px; color: var(--muted); font: 500 0.8rem var(--mono); }
.menu-list .note { font: 500 0.78rem var(--mono); overflow-wrap: anywhere; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); gap: 20px; min-height: 0; padding: 4px 18px 18px; }

/* The amud, on its page */
.text { overflow-y: auto; padding: 22px 30px 48px; overscroll-behavior: contain; }
.lines-wrap { position: relative; max-width: 780px; margin: 0 auto; }
#lines { margin: 0; padding: 0; list-style: none; }
.line { padding: 10px 14px 12px; border-inline-start: 4px solid transparent; }
.line + .line { margin-top: 4px; }
.line.done { border-inline-start-color: var(--line); }
.line.here { background: var(--here); border-inline-start-color: #111; }
.he { margin: 0; font: 500 1.6rem/2.2 var(--hebrew); text-align: right; }
.w { padding: 0.04em 0.08em; transition: background 0.2s; }
.w.at { background: var(--gold); color: #111; }
.en { margin: 6px 0 0; color: var(--muted); font: 400 1.02rem/1.6 var(--serif); }
.en b { color: var(--text); font-weight: 600; }
body.no-english .en { display: none; }
.source { max-width: 780px; margin: 28px auto 0; color: var(--muted); font: 500 0.74rem var(--mono); text-align: center; }

/* The yad: a small hand on a rod, under the word being read. */
.yad { position: absolute; left: 0; top: 0; width: 15px; height: 25px; color: var(--text); pointer-events: none; transition: transform 0.25s ease; }
.yad svg { display: block; width: 100%; height: 100%; }

/* The chevrusa */
.talk { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.stage { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "orb info" "orb actions"; gap: 6px 16px; align-items: center; padding: 16px; }
.stage-info { grid-area: info; }
.stage-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }
.view-toggle { display: none !important; }
#status { display: inline-block; margin: 0 0 4px; padding: 0.2em 0.55em; background: var(--gold); color: #111; font: 600 0.85rem/1.3 var(--mono); }
.stage-info .note { font-size: 0.85rem; }

#orb {
  grid-area: orb;
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  background: var(--gold);
  color: #111;
  border: 2px solid #111;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, background 0.2s;
}
#orb:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
#orb svg { width: 36%; height: 36%; }
#orb::after { content: ""; position: absolute; inset: -9px; border: 2px solid var(--text); border-radius: 50%; opacity: 0; pointer-events: none; }
body[data-state="connecting"] #orb::after,
body[data-state="initializing"] #orb::after { animation: pulse 1.6s ease-in-out infinite; }
body[data-state="listening"] #orb::after { opacity: 0.4; animation: breathe 3.2s ease-in-out infinite; }
body[data-state="thinking"] #orb::after { opacity: 0.9; border-style: dashed; animation: spin 3s linear infinite; }
body[data-state="speaking"] #orb::after { animation: speak 0.9s ease-in-out infinite; }
#orb .mic-off,
body[data-muted="true"] #orb .mic { display: none; }
body[data-muted="true"] #orb .mic-off { display: block; }
body[data-muted="true"] #orb { background: var(--paper); color: var(--muted); }
@keyframes pulse { 0%, 100% { opacity: 0.15; transform: scale(0.96); } 50% { opacity: 0.6; transform: scale(1.04); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes speak { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 0.95; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  #orb::after { animation: none !important; }
  .yad { transition: none; }
  .art { transform: none !important; }
}

#transcript { display: flex; flex-direction: column; gap: 12px; min-height: 0; margin: 0; padding: 4px 8px 4px 2px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
#transcript li { max-width: 92%; padding: 10px 14px; background: var(--paper); box-shadow: 0 12px 26px -18px rgb(0 0 0 / 0.8); }
#transcript li:has(p:empty) { display: none; }
#transcript li.me { align-self: flex-end; background: var(--gold); color: #111; }
#transcript .who { display: block; margin-bottom: 2px; color: var(--muted); font: 600 0.68rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
#transcript li.me .who { color: #3d3420; }
#transcript p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#transcript .chevrusa p { font: 400 1.02rem/1.55 var(--serif); }
#type { display: flex; gap: 10px; }
#type input { flex: 1; min-width: 0; padding: 0.6em 0.8em; background: var(--paper); color: var(--text); border: 2px solid #111; border-radius: 0; }

/* Sheets */
dialog { width: min(660px, calc(100vw - 24px)); max-height: min(86dvh, 900px); padding: 0; background: var(--paper); color: var(--text); border: 2px solid #111; border-radius: 0; box-shadow: 8px 8px 0 #111; }
dialog::backdrop { background: rgb(20 8 4 / 0.55); }
.sheet { padding: 18px 22px 24px; }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet h2 { margin: 0; padding: 0.08em 0.4em; background: var(--gold); color: #111; font: 700 1.2rem/1.3 var(--mono); }
.sheet h3 { margin: 24px 0 10px; font: 700 0.95rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.sheet .close { width: 36px; height: 34px; padding: 0; font-size: 1.3rem; }
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.presets button[aria-pressed="true"] { background: var(--gold); color: #111; }
.dial { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.dial label { font: 600 0.9rem var(--mono); }
.dial input[type="range"] { width: 100%; accent-color: #111; }
.ends { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 500 0.72rem var(--mono); }
.level { margin: 0; font-size: 0.95rem; }
.field { display: grid; gap: 4px; margin-top: 14px; font: 600 0.85rem var(--mono); }
.field textarea, .invite input { width: 100%; padding: 0.6em 0.8em; background: #fff; color: #111; border: 2px solid #111; border-radius: 0; font: 400 0.98rem var(--serif); resize: vertical; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 10px 6px; background: #fff; color: #111; border: 2px solid #111; box-shadow: 3px 3px 0 #111; text-align: center; }
.stat strong { display: block; font: 700 1.6rem/1.15 var(--mono); }
.stat span { font: 500 0.72rem var(--mono); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.grid button { padding: 7px 0; background: #fff; color: #111; border: 1px solid #111; border-radius: 0; font: 600 0.82rem var(--mono); cursor: pointer; }
.grid .started { background: var(--gold); }
.grid .current { outline: 3px solid var(--text); outline-offset: 1px; }
.history, .members { margin: 0; padding: 0; list-style: none; }
.history li, .members li { padding: 12px 0; border-top: 1px solid var(--line); }
.history .when { font: 600 0.8rem var(--mono); }
.history p { margin: 6px 0 0; white-space: pre-wrap; font-size: 0.95rem; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.members .note { font-size: 0.8rem; }
.invite { display: flex; gap: 10px; margin-top: 12px; }

/* Signing in */
.center { max-width: 400px; margin: 16vh auto 0; padding: 0 16px; }
.center.card { display: grid; gap: 12px; padding: 26px; transform: none; }
.center.card h1 { justify-self: start; margin: 0 0 6px; font-size: 2.2rem; }
.center.card label { font: 600 0.85rem var(--mono); }
.center.card input { padding: 0.6em 0.8em; background: #fff; color: #111; border: 2px solid #111; border-radius: 0; }
#loading { display: table; margin: 30vh auto 0; color: var(--on-leather); }

/* A phone: the amud fills the screen, with the chevrusa in a bar under it; "Conversation" swaps them. */
@media (max-width: 899px) {
  .bar { gap: 8px; padding: 16px 10px 8px; }
  .bar .brand { display: none; }
  .daf { margin-inline-start: 0; }
  .split { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .text { flex: 1; padding: 14px 12px 24px; box-shadow: none; }
  .he { font-size: 1.45rem; }
  .talk { flex: none; grid-template-rows: auto; gap: 10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid #111; }
  .stage { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "orb info actions"; padding: 0; background: none; box-shadow: none; }
  #orb { width: 56px; height: 56px; box-shadow: 3px 3px 0 #111; }
  #orb::after { inset: -6px; }
  .stage-info .note { font-size: 0.78rem; }
  .view-toggle { display: inline-flex !important; }
  #transcript, #type { display: none !important; }
  body[data-view="talk"] .text { display: none; }
  body[data-view="talk"] .talk { flex: 1; grid-template-rows: auto minmax(0, 1fr) auto; }
  body[data-view="talk"] #transcript { display: flex !important; }
  body[data-view="talk"] #type:not([hidden]) { display: flex !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
