.story-summary { min-width: 0; min-height: 0; padding: 32px 40px; background: #eff8ff; border-left: 5px solid #9be15d; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.story-summary h3 { margin: 0; color: #063d91; font-size: 30px; line-height: 1.25; max-width: 850px; }
.summary-copy { max-width: 960px; }
.story-summary p { margin: 0; font-size: 23px; line-height: 1.55; color: #23486a; }
.story-summary p + p { margin-top: 16px; }
.face-switch { align-self: flex-start; margin-top: 4px; min-height: 42px; padding: 8px 16px; border: 1px solid #0876df; border-radius: 6px; color: #0862c6; background: white; font-size: 16px; font-weight: 700; cursor: pointer; }
.face-switch:hover { background: #deefff; }
.face-switch:focus-visible { outline: 3px solid #0876df; outline-offset: 3px; }
.reading-heading { position: relative; padding-right: 190px; }
.reading-heading .face-switch { position: absolute; right: 0; top: 0; margin: 0; }
.story-summary, .story-reading-card { animation: reveal-face 220ms ease-out; }
@keyframes reveal-face { from { opacity: .35; transform: perspective(1400px) rotateY(-7deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .story-summary, .story-reading-card { animation: none; } }
@media (min-width: 1000px) and (min-height: 650px) {
  .story-reading-card { --reading-font-size: 16px; }
  .story-section p { font-size: 16px; }
  .fuller-account { grid-template-columns: minmax(0, 76%) minmax(0, 1fr); }
}
@media (min-width: 1000px) and (max-height: 800px) { .story-summary { padding: 22px 28px; gap: 14px; } .story-summary h3 { font-size: 26px; } .story-summary p { font-size: 20px; line-height: 1.45; } .story-summary p + p { margin-top: 12px; } }
@media (min-width: 1000px) and (max-width: 1366px) and (min-height: 650px) and (max-height: 800px) {
  .app-shell { width: calc(100% - 32px); }
  .focused-story { height: calc(100dvh - 140px); }
  .reading-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 8px 12px; }
  .portrait { width: 160px; height: 160px; flex-basis: 160px; }
  .story-reading-card { padding: 6px; gap: 6px; }
  .story-section { padding: 6px 8px; }
  .story-section p { line-height: 1.38; }
  .story-section p + p { margin-top: 6px; }
  .fuller-account { grid-template-columns: minmax(0, 78%) minmax(0, 1fr); }
  .fuller-account .story-section p { line-height: 1.3; }
  .fuller-account .story-section p + p { margin-top: 4px; }
}
@media (max-width: 999px) {
  .story-summary { padding: 24px 20px; }
  .story-summary h3 { font-size: 26px; }
  .story-summary p { font-size: 20px; }
  .reading-heading { padding-right: 0; }
  .reading-heading .face-switch { position: static; margin: 12px 0; }
}

/* Visual refresh stays inside the offline preview; reading and voting behavior are unchanged. */
body { background: #f4f7fa; }
body::before, .brand-header::before, .brand-header::after, .brand-watermark { display: none; }
.brand-header { background: #0f2c59; }
.focused-story, #story-dialog { background: #fff; border: 0; border-radius: 12px; box-shadow: 0 4px 24px rgba(15,44,89,.06); }
.focused-story { padding: 16px; }
.glm-intro { border-left-color: #1e5bb8; box-shadow: 0 4px 24px rgba(15,44,89,.06); }
.top10-grid { gap: 16px; }
.person-story { padding: 10px 8px 6px; border: 1.5px solid transparent; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(15,44,89,.04); gap: 8px; }
.person-story[aria-current="true"] { border-color: #1e5bb8; background: #f4f8fd; }
.person-story:hover { background: #f4f8fd; }
.person-story strong { min-height: 24px; color: #0f2c59; font-size: 16px; }
.overview-check { background: #1e5bb8; color: #fff; }
.story-summary { background: #f8fafc; border: 0; border-left: 4px solid #1e5bb8; padding: 32px 40px; gap: 22px; }
.story-summary h3 { font-size: 22px; font-weight: 700; color: #0f2c59; line-height: 1.4; max-width: 900px; }
.summary-copy { max-width: 900px; }
.story-summary p { color: #334155; font-size: 20px; line-height: 1.7; }
.story-summary p + p { margin-top: 12px; }
.story-summary .face-switch, .vote-button, .primary-button { color: #fff; background: #1e5bb8; border: 1px solid transparent; border-radius: 6px; box-shadow: none; }
.story-summary .face-switch:hover, .vote-button:not(:disabled):hover, .primary-button:not(:disabled):hover { background: #174a97; }
.vote-button.is-selected { background: #eaf2fc; border-color: #1e5bb8; color: #174a97; }
.vote-button.is-selected:hover { background: #dce9f9; }
.primary-button:disabled, .vote-button:disabled { background: #e2e8f0; color: #64748b; border-color: transparent; opacity: 1; }
.expand-button, .reading-heading .face-switch, .secondary-button { background: #fff; border: 1px solid #cbd5e1; color: #1e293b; border-radius: 6px; box-shadow: none; }
.expand-button:hover, .reading-heading .face-switch:hover, .secondary-button:hover { background: #f1f5f9; }
.overview-link { color: #1e5bb8; }
.story-reading-card { background: transparent; border: 0; padding: 0; gap: 16px; }
.story-section, .story-section.is-background { padding: 24px; border-radius: 8px; }
.story-section.is-background { background: #f2f9f1; }
.story-section.is-action { background: #f0f6fc; }
.story-section.is-result { background: #fef9ec; }
.story-section h3, .story-section.is-background h3, .story-section.is-action h3 { margin-bottom: 10px; padding: 5px 10px; border-radius: 16px; color: #fff; font-size: 14px; }
/* Darker label shades keep small white lettering readable. */
.story-section.is-background h3 { background: #347b31; }
.story-section.is-action h3 { background: #276bb5; }
.story-section.is-result h3 { background: #956013; color: #fff; }
.story-section p, .fuller-account .story-section p { color: #334155; font-size: 16px; line-height: 1.65; }
.story-section p + p, .fuller-account .story-section p + p { margin-top: 12px; }
.story-identity strong, .reading-heading h2 { color: #0f2c59; }
.identity-copy span, .reading-heading .story-author { color: #475569; }
.reading-heading .story-author strong { color: #0f2c59; }
.submit-bar { border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 4px 24px rgba(15,44,89,.06); background: #fff; }
.story-step-button { background: #1e5bb8; box-shadow: 0 2px 8px rgba(15,44,89,.12); }
.story-summary, .story-reading-card { animation: none; }
@media (min-width: 1000px) {
  .brand-copy { left: max(32px, calc((100vw - 1800px) / 2 + 16px)); }
}
@media (min-width: 1200px) {
  .brand-watermark { display: block; right: 32px; top: 28px; font-size: 60px; pointer-events: none; }
}
@media (min-width: 1500px) {
  .brand-watermark { font-size: 80px; }
}
@media (min-width: 1000px) and (max-height: 950px) {
  .focused-story { padding: 10px; }
  .story-reading-card { gap: 10px; }
  .story-section, .story-section.is-background { padding: 10px 12px; }
  .story-section h3, .story-section.is-background h3, .story-section.is-action h3 { margin-bottom: 6px; }
  .story-section p, .fuller-account .story-section p { line-height: 1.42; }
  .story-section p + p, .fuller-account .story-section p + p { margin-top: 8px; }
  .story-summary { padding: 24px 32px; gap: 16px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .story-summary { padding: 18px 24px; gap: 12px; }
  .story-summary p { line-height: 1.5; }
  .story-reading-card { gap: 6px; }
  .story-section, .story-section.is-background { padding: 6px 8px; }
  .story-section p, .fuller-account .story-section p { line-height: 1.3; }
  .story-section p + p, .fuller-account .story-section p + p { margin-top: 4px; }
}
@media (max-width: 999px) {
  .story-summary { padding: 24px 20px; }
  .story-section, .story-section.is-background { padding: 20px; }
  .focused-story { padding: 12px; }
}
