/* Center Zeero book – large like the folder */
.book {
  position: absolute;
  left: 650px;
  top: 10px;
  width: 1200px;
  height: 1100px;
  pointer-events: none;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.book__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* If you want the book itself to be clickable later, you'd add pointer-events: auto here */
}

/* Main content container */
.folder {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 140%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  pointer-events: none; /* Add this so the container doesn't block the header */
}

/* Ensure the specific things INSIDE the folder can still be clicked if needed */
.latest-brief {
  position: absolute;
  left: 140px;
  top: 140px;
  width: 425px;
  height: 780px;
  pointer-events: auto;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.latest-brief__image {
  width: 120%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* --- LATEST BRIEF MODE SWITCH (GLOBAL/LOCAL) --- */
.latest-brief__mode-switch {
  position: absolute;
  left: 18px;
  top: -42px;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: auto;
  z-index: 2;
}

.latest-brief__mode-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(25, 25, 25, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.latest-brief__mode-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.latest-brief__mode-btn--active {
  background: rgba(255, 215, 140, 0.95);
  border-color: rgba(90, 55, 20, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* --- LATEST BRIEF FEED OVERLAY --- */
.latest-brief__feed {
  position: absolute;
  left: 60px;
  top: 150px;
  width: calc(100% - 52px);
  height: calc(100% - 170px);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}

.latest-brief__feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.latest-brief__feed-title {
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: rgba(40, 40, 40, 0.85);
  text-transform: uppercase;
  font-size: 12px;
}

.latest-brief__feed-refresh {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.35);
  color: rgba(25, 25, 25, 0.85);
  border-radius: 8px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
}

.latest-brief__feed-refresh:hover {
  background: rgba(255, 255, 255, 0.5);
}

.latest-brief__feed-body {
  flex: 1;
  overflow: auto;
  padding: 10px 8px 8px;
}

.latest-brief__feed-loading,
.latest-brief__feed-empty {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: rgba(25, 25, 25, 0.7);
}

.latest-brief__item {
  display: block;
  text-decoration: none;
  padding: 10px 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.latest-brief__item--no-thumb {
  grid-template-columns: 1fr;
}

.latest-brief__thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.08);
  flex: none;
}

.latest-brief__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-brief__item-main {
  min-width: 0;
}

.latest-brief__item:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(0, 0, 0, 0.18);
}

.latest-brief__item-title {
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  font-size: 16px;   /* ← TUNE: news item headline size */
  color: rgba(15, 15, 15, 0.9);
  line-height: 1.3;
}

.latest-brief__item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.latest-brief__source {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;   /* ← TUNE: source name size */
  color: rgba(25, 25, 25, 0.65);
}

.latest-brief__tag {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;   /* ← TUNE: tag badge size */
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.35);
  color: rgba(25, 25, 25, 0.78);
}

.latest-brief__date {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;   /* ← TUNE: date size */
  color: rgba(25, 25, 25, 0.65);
}

.latest-brief__item-excerpt {
  margin-top: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;   /* ← TUNE: news item excerpt size */
  line-height: 1.45;
  color: rgba(25, 25, 25, 0.78);
}

.latest-brief__feed-body::-webkit-scrollbar {
  width: 10px;
}
.latest-brief__feed-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
}
.latest-brief__feed-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.14);
}

/* Header (profile, logo, help) */
.frame__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 10; /* Give the header a high z-index to stay on top */
}

/* Reset & base */  
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #000; 
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

.frame {
  position: absolute;
  width: 1891px;
  height: 1024px;
  transform-origin: top left;
}

.frame__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.frame__background-image {
  position: absolute;
  left: -268px;
  top: 0;
  width: 2427px;
  height: 1024px;
  object-fit: cover;
}

.frame__background-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.icon-button {
  position: absolute;
  top: 40px;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.icon-button__image {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  object-fit: cover;
}

.icon-button--profile {
  left: 99px;
}

.icon-button--faqs {
  right: 99px;
}

.logo-button {
  position: absolute;
  left: 721px;
  top: 26px;
  width: 450px;
  height: 92px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.frame__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* ==========================================================
   BOOK PAGES — FINE TUNE THESE VALUES TO HIT THE PAPER AREA
   Left page : adjust left / top / width / height
   Right page: adjust left / top / width / height
   ========================================================== */
.book__page {
  position: absolute;
  overflow: hidden;
  pointer-events: auto;
}

/* ↓ TUNE: left-page paper area inside the book image */
.book__page--left {
  left: 68px;
  top: 112px;
  width: 502px;
  height: 760px;
  display: flex;
  flex-direction: column;
}

/* ↓ TUNE: right-page paper area inside the book image */
.book__page--right {
  left: 628px;
  top: 180px;
  width: 502px;
  height: 760px;
}

/* ---- ARTICLE VIEWER (left page) ---- */
/* ↓ TUNE: these four values = inset from page edges (top / right / bottom / left) */
.book-article {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top:    60px;   /* ← TUNE: space from top edge of page     */
  padding-right:  18px;   /* ← TUNE: space from right edge of page   */
  padding-bottom: 20px;   /* ← TUNE: space at the very bottom        */
  padding-left:   16px;   /* ← TUNE: space from left edge of page    */
  font-family: 'Courier New', Courier, monospace;
  color: #3b2912;
  scrollbar-width: thin;
  scrollbar-color: rgba(90,55,20,0.3) transparent;
}
.book-article::-webkit-scrollbar { width: 6px; }
.book-article::-webkit-scrollbar-thumb { background: rgba(90,55,20,0.3); border-radius: 99px; }

.book-article__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.35;
  gap: 12px;
  text-align: center;
}
.book-article__glyph { font-size: 48px; }
.book-article__placeholder p { font-size: 13px; line-height: 1.6; font-style: italic; }

.book-article__content {
  display: flex;
  flex-direction: column;
  gap: 11px;  /* ← TUNE: vertical space between every section (thumbnail → meta → title → coverage → link) */
}

/* ↓ TUNE: thumbnail image */
.book-article__img {
  width: 100%;
  max-height: 200px;   /* ← TUNE: how tall the thumbnail is */
  object-fit: fill;
  border-radius: 6px;
  border: 1px solid rgba(90,55,20,0.18);
  margin-top:    0px;  /* ← TUNE: push thumbnail down from top padding */
  margin-bottom: 0px;  /* ← TUNE: extra gap after thumbnail */
}

.book-article__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top:    0px;  /* ← TUNE: extra space above the source badge + date row */
  margin-left:   0px;  /* ← TUNE: nudge the whole meta row rightward */
}

.book-article__source {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(90,55,20,0.1);
  border: 1px solid rgba(90,55,20,0.2);
  padding: 2px 8px;
  border-radius: 99px;
}
.book-article__date { font-size: 11px; opacity: 0.65; }

/* ↓ TUNE: main article headline */
.book-article__title {
  font-size: 17px;     /* ← TUNE: headline text size          */
  font-weight: 900;
  line-height: 1.35;
  color: #180c01;
  margin-top:    0px;  /* ← TUNE: extra space above headline  */
  margin-left:   0px;  /* ← TUNE: indent headline from left   */
}

.book-article__excerpt {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(30,15,2,0.88);
  border-top: 1px dashed rgba(90,55,20,0.22);
  padding-top: 10px;
}

/* ↓ TUNE: related coverage list container */
.book-article__coverage {
  border-top: 1px dashed rgba(90,55,20,0.22);
  padding-top:  10px;  /* ← TUNE: space between the divider line and first coverage row */
  display: flex;
  flex-direction: column;
  gap: 7px;            /* ← TUNE: vertical space between coverage rows                 */
  margin-top:   0px;   /* ← TUNE: extra space above the whole coverage section         */
  margin-left:  0px;   /* ← TUNE: indent coverage block from left                      */
  margin-right: 0px;   /* ← TUNE: inset coverage block from right                      */
}
.book-article__coverage-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(58,35,12,0.5);
  margin-bottom: 2px;
}
.book-article__coverage-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top:    6px;   /* ← TUNE: inner top space inside each coverage row    */
  padding-bottom: 6px;   /* ← TUNE: inner bottom space inside each coverage row */
  padding-left:   8px;   /* ← TUNE: inner left space inside each coverage row   */
  padding-right:  8px;   /* ← TUNE: inner right space inside each coverage row  */
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(90,55,20,0.12);
  border-radius: 5px;
}
/* ↓ TUNE: font-size for coverage article titles */
.book-article__coverage-title {
  font-size: 14px;
  font-weight: 600;
  color: #180c01;
  line-height: 1.4;
  font-family: system-ui, -apple-system, sans-serif;
}
.book-article__coverage-src {
  font-size: 11px;
  font-weight: 800;
  color: rgba(58,35,12,0.55);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3px;
}

/* ↓ TUNE: "Read Full Article →" link */
.book-article__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #5a3714;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top:  6px;   /* ← TUNE: space above the link (from the last coverage row) */
  margin-left: 0px;   /* ← TUNE: indent the link from left                         */
  padding: 0;
}
.book-article__link:hover { color: #1e0f02; }

/* ---- ZEERO STAGE (left page, below article) ---- */
/* ↓ TUNE: height controls how tall the sprite/video box is */
.book-article__zeero-stage {
  flex-shrink: 0;
  height: 280px;     
  width:  470px;     /* ← TUNE: stage box height (portrait images need more room) */
  padding: 6px 10px 8px;
  border-top: 1px dashed rgba(90,55,20,0.22);
  background: rgba(0,0,0,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.5s ease;
  position: relative;
  z-index: 0;
}

/* ↓ TUNE: border color / radius of the containing frame */
.zeero-stage__border {
  width: 200%;
  height: 170%;
  border: 2px solid rgba(0, 0, 0, 0.75);   /* ← TUNE: border (black suits transparent PNGs) */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;     /* ← TUNE: background behind transparent sprite */
  pointer-events: none; /* lets skip button receive clicks through the overflow area */
}

.zeero-stage__border img,
.zeero-stage__border video {
  height: 120%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ---- IDLE DIM ---- */
/* Elements that dim when user is idle; stage stays bright */
.latest-brief,
#book-article,
.book__page--right,
.book__image,
.frame__header {
  transition: opacity 0.7s ease, filter 0.7s ease;
}

body.ui-dimmed .latest-brief     { opacity: 0.07; pointer-events: none; }
body.ui-dimmed #book-article     { opacity: 0.07; }
body.ui-dimmed .book__page--right { opacity: 0.07; pointer-events: none; }
body.ui-dimmed .book__image      { opacity: 0.07; }
body.ui-dimmed .frame__header    { opacity: 0.07; pointer-events: none; }
/* Stage stays at full brightness */
body.ui-dimmed .book-article__zeero-stage { opacity: 1 !important; }

/* ---- ZEERO GLOW TEXT (used via {g}, {b}, {p} tags in responses) ---- */
/* ↓ TUNE: change text-shadow spread (the 3rd number) to control glow radius */
.z-gold   { color: #c8960a; text-shadow: 0 0 6px rgba(200,150,10,0.6);  font-weight: 800; }
.z-blue   { color: #0099cc; text-shadow: 0 0 6px rgba(0,153,204,0.5);   font-weight: 700; font-style: italic; }
.z-purple { color: #9933cc; text-shadow: 0 0 6px rgba(153,51,204,0.5);  font-weight: 700; font-style: italic; }

/* ---- ZEERO CHAT (right page) ---- */
.book-chat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', Courier, monospace;
  color: #2d1a08;
}

.book-chat__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0 0 12px;
  border-bottom: 1.5px solid rgba(90,55,20,0.3);
  flex-shrink: 0;
  overflow: hidden;
}
.book-chat__header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0 10px 0;
}
.book-chat__name {
  font-size: 24px;       /* ← TUNE: "ZEERO" title size */
  font-weight: 900;
  letter-spacing: 2px;
  color: #2a1a08;
}
.book-chat__role {
  font-size: 13px;       /* ← TUNE: "Legal Analyst · Compendium Archive" size */
  opacity: 0.65;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* ─── SKIP BUTTON (below Zeero stage on left page) ─────────────────────── */
.stage-skip-wrap {
  display: none; /* shown via JS while Zeero is typing */
  justify-content: center;
  padding: 6px 0 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;       /* sits above any overflow from the stage border */
  pointer-events: auto;
}
#chat-skip-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(90,55,20,0.35);
  background: rgba(240,228,210,0.88);
  color: rgba(58,35,12,0.8);
  padding: 4px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
#chat-skip-btn:hover { background: rgba(210,185,155,0.96); transform: translateY(-1px); }

/* ─── QUICK-ACTION TOOLBAR ─────────────────────────────────────────────── */
.book-chat__toolbar {
  display: flex;
  gap: 7px;
  padding: 7px 12px;
  border-top: 1px solid rgba(90,55,20,0.18);
  border-bottom: 1px solid rgba(90,55,20,0.18);
  flex-shrink: 0;
  background: rgba(255,245,235,0.3);
}
.chat-tool-btn {
  flex: 1;
  font-size: 15px;
  padding: 5px 0;
  border: 1px solid rgba(200,100,130,0.4);
  background: rgba(255,220,230,0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
  position: relative;
}
.chat-tool-btn:hover {
  background: rgba(255,180,200,0.55);
  transform: translateY(-1px);
}
.book-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;     /* ← TUNE: "ACTIVE / STANDBY" badge size */
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border: 1px solid rgba(90,55,20,0.3);
  border-radius: 99px;
  background: rgba(255,255,255,0.35);
  opacity: 0.7;
  width: fit-content;
}
.book-chat__status--active { opacity: 1; background: rgba(255,215,100,0.45); border-color: rgba(90,55,20,0.4); }
.book-chat__status--thinking { opacity: 1; background: rgba(180,190,255,0.35); border-color: rgba(60,60,140,0.2); }

.book-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90,55,20,0.2) transparent;
}
.book-chat__messages::-webkit-scrollbar { width: 5px; }
.book-chat__messages::-webkit-scrollbar-thumb { background: rgba(90,55,20,0.2); border-radius: 99px; }

.book-chat__system-msg {
  font-size: 13px;
  font-style: italic;
  color: rgba(58,35,12,0.6);
  text-align: center;
  padding: 10px 6px;
  border-bottom: 1px dashed rgba(90,55,20,0.2);
  margin-bottom: 4px;
}

/* ↓ TUNE: font-size, line-height, padding */
.book-chat__msg {
  max-width: 94%;
  font-size: 15px;
  line-height: 1.65;
  padding: 10px 13px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
/* ↓ TUNE: background, color, border-left for Zeero's bubbles */
.book-chat__msg--zeero {
  align-self: flex-start;
  background: rgba(240, 228, 210, 0.88);
  border: 1px solid rgba(90,55,20,0.22);
  border-left: 3px solid rgba(90,55,20,0.55);
  color: #180c01;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;   /* ← TUNE: boldness of Zeero's text (400=normal, 600=semibold, 700=bold) */
}
.book-chat__msg--zeero::before {
  content: 'ZEERO';
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: rgba(90,55,20,0.8);
  display: block;
  margin-bottom: 6px;
}
/* ↓ TUNE: background, color for user bubbles */
.book-chat__msg--user {
  align-self: flex-end;
  background: rgba(90,55,20,0.15);
  border: 1px solid rgba(90,55,20,0.28);
  color: #180c01;
  font-family: 'Courier New', monospace;
  font-size: 14.5px;
}

.book-chat__dots span {
  animation: blink 1.2s infinite;
  opacity: 0;
}
.book-chat__dots span:nth-child(2) { animation-delay: 0.2s; }
.book-chat__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0; } 40% { opacity: 1; } }

.book-chat__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1.5px solid rgba(90,55,20,0.25);
  flex-shrink: 0;
}
/* ↓ TUNE: font-size for the chat input field */
.book-chat__input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(90,55,20,0.45);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #1e0f02;
  outline: none;
  padding: 4px 0;
}
.book-chat__input::placeholder { opacity: 0.4; }
.book-chat__send {
  appearance: none;
  border: 1px solid rgba(90,55,20,0.4);
  background: rgba(90,55,20,0.12);
  color: #1e0f02;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 12px;
  border-radius: 4px;
  line-height: 1.6;
}
.book-chat__send:hover { background: rgba(90,55,20,0.22); }

/* Iuno mode tint on right page */
.book-chat.iuno-mode .book-chat__header { border-bottom-color: rgba(200,60,60,0.4); }
.book-chat.iuno-mode .book-chat__name { color: #9b1a1a; }
.book-chat.iuno-mode .book-chat__msg--zeero::before { content: 'ZEERO ♥'; color: #9b1a1a; opacity: 0.75; }

/* ==========================================================================
   CASUAL MODE — folder hidden, left page becomes Zeero's full portrait stage
   ========================================================================== */

/* Slide the news folder out to the left */
body.casual-mode .latest-brief {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-40px);
}

/* Slide the book to center of the 1891px frame (1200px book → (1891-1200)/2 ≈ 346px) */
body.casual-mode .book {
  left: 346px;
}

/* Collapse the article viewer completely */
body.casual-mode #book-article {
  display: none;
}

/* Stage expands to fill the left page — capped so it can't overflow */
body.casual-mode .book-article__zeero-stage {
  flex: 1;
  height: auto;
  max-height: 1200  px;   /* ← TUNE: prevent overflow past book's parchment area */
  border-top: none;
  padding: 70px 10px 20px;
  align-items: stretch;
}

/* Border fills the expanded stage exactly */
body.casual-mode .zeero-stage__border {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Image/video fits within the border without overflowing */
body.casual-mode .zeero-stage__border img,
body.casual-mode .zeero-stage__border video {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* Skip button stays visible and centred below */
body.casual-mode .stage-skip-wrap {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  padding: 0;
  z-index: 20;
  pointer-events: auto;
}

/* Soft warm tint on right page to signal the mode shift */
body.casual-mode .book__page--right {
  background: rgba(255, 240, 220, 0.08);
}

/* ==========================================================================
   DEBATE MODE — same layout as casual mode (folder hidden, book centered)
   ========================================================================== */
body.debate-mode .latest-brief {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-40px);
}
body.debate-mode .book {
  left: 346px;
}
body.debate-mode #book-article {
  display: none;
}
body.debate-mode .book-article__zeero-stage {
  flex: 1;
  height: auto;
  max-height: 1200px;
  border-top: none;
  padding: 70px 10px 20px;
  align-items: stretch;
}
body.debate-mode .zeero-stage__border {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
body.debate-mode .zeero-stage__border img,
body.debate-mode .zeero-stage__border video {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}
body.debate-mode .stage-skip-wrap {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  padding: 0;
  z-index: 20;
  pointer-events: auto;
}
/* Cool blue tint on right page for debate mode */
body.debate-mode .book__page--right {
  background: rgba(220, 230, 255, 0.06);
}