/* Shared sea-blue workspace. Calendar and care colours are set by the views. */
:root {
  --glass-edge: #bdd5df;
  --glass-surface: linear-gradient(145deg, #fff 20%, #edf6f8 100%);
  --glass-quiet: linear-gradient(155deg, #fff, #e3f0f4);
  --glass-action: linear-gradient(150deg, #186886, var(--sea-deep) 90%);
  --glass-mast: radial-gradient(ellipse at top right, rgba(112, 211, 226, .24), transparent 59%),
    linear-gradient(132deg, var(--sea-deep), var(--sea) 100%);
  --glass-lift: 0 10px 24px rgba(11, 47, 69, .09), inset 0 1px rgba(255, 255, 255, .9);
  --glass-press: 0 3px 9px rgba(11, 47, 69, .18), inset 0 1px rgba(255, 255, 255, .28);
  --glass-ease: cubic-bezier(.2, .7, .25, 1);
  --workspace-heading: "Plus Jakarta Sans", system-ui, sans-serif;
}
body {
  background: radial-gradient(ellipse at top right, #f9efd9, transparent 42rem),
    linear-gradient(145deg, #e1edf2, var(--paper) 38rem) fixed;
}
.brand-mark { display: block; border-radius: 11px; flex: none; box-shadow: 0 3px 12px #081f3347; }
:is(.osian-planner, .osian-entry) .mast, .osian-tablet .hello {
  color: #fff; background: var(--glass-mast);
  box-shadow: inset 0 1px rgba(255, 255, 255, .22);
}
.osian-planner .mast { padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
.osian-planner .mast-in {
  display: grid; align-items: center; gap: 6px 12px;
  grid-template: "mark title gear" auto ". status status" auto / auto minmax(0, 1fr) auto;
}
.mast-mark { grid-area: mark; }
.osian-planner .a-title {
  grid-area: title; margin: 0; min-width: 0;
  font: 800 clamp(1.3rem, 3.4vw, 2.35rem)/1.16 var(--workspace-heading); letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.osian-planner .gear {
  grid-area: gear; width: 44px; height: 44px;
  border: 1px solid rgba(193, 235, 245, .44); background: rgba(215, 246, 251, .13);
  box-shadow: inset 0 1px rgba(255, 255, 255, .21);
}
@media (hover: hover) {
  .osian-planner .gear:hover { background: rgba(215, 246, 251, .25); }
}
.osian-planner .gear[aria-pressed="true"] { background: #edf7fa; color: var(--sea-deep); }
.a-status { grid-area: status; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; min-width: 0; }
.a-status #words:empty { display: none; }
.a-status:has(#badges:empty):has(#words:empty) { display: none; }
.osian-planner .a-line { margin-top: 0; min-width: 0; }
.osian-planner .a-line .bd { max-width: 100%; overflow-wrap: anywhere; }
.rail-brand { display: none; }

.osian-workspace .tabs {
  max-width: 780px; margin: 10px auto; padding: 5px; gap: 4px;
  background: var(--glass-surface); border-radius: 18px; border-color: var(--glass-edge); box-shadow: var(--glass-lift);
}
.osian-workspace .tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; color: var(--sea-ink); padding: 4px 8px;
  transition: background-color 160ms var(--glass-ease), box-shadow 160ms var(--glass-ease), color 160ms;
}
.osian-workspace .tab svg { width: 16px; height: 16px; }
.osian-workspace .tabs .tab[aria-selected="true"] { background: var(--glass-action); color: #fff; box-shadow: var(--glass-press); }
@media (hover: hover) {
  .osian-workspace .tab:not([aria-selected="true"]):hover { background-color: var(--sea-soft); }
}

.osian-workspace main { min-width: 0; }
.osian-workspace :is(.card:not(.ill), .calbar), .osian-entry .card, .osian-tablet .card:not(.hero) {
  background-image: var(--glass-surface); border-color: var(--glass-edge); box-shadow: var(--glass-lift);
}
.osian-workspace .card.hi { border-color: var(--sea); }
.osian-workspace .calbar {
  padding: 8px; border: 1px solid var(--glass-edge); border-radius: 16px; background-color: #fff;
}
.osian-workspace .calbar b { font-family: var(--workspace-heading); font-size: clamp(1rem, 3.7vw, 1.24rem); font-weight: 800; }
.osian-workspace .calbar .monthactions { justify-content: flex-end; }
.osian-workspace .monthwrap { margin-top: 10px; }
:is(.osian-planner, .osian-entry, .osian-tablet) :is(.card h2, .sheet-top h2, .two h2),
.osian-workspace .story-agenda h2 {
  font-family: var(--workspace-heading); font-weight: 750; letter-spacing: -.022em;
}
.osian-planner dialog.sheet {
  background-color: #fff; background-image: var(--glass-surface);
  border: 1px solid var(--glass-edge);
}

:is(.osian-planner, .osian-entry) .btn,
.osian-planner :is(.calbar .nav, .sheet .xbtn, .bigpick),
.osian-tablet :is(.back, .open, .turn, .shut, .peek) {
  min-height: 44px; border-radius: 999px;
  transition: translate 160ms var(--glass-ease), box-shadow 160ms var(--glass-ease), border-color 160ms;
}
.osian-planner :is(.sheet .xbtn, .viewer .xbtn) { width: 44px; height: 44px; flex: none; }
.osian-planner .btn:not(.go, .quiet, .vw .btn),
.osian-planner :is(.calbar .nav, .sheet .xbtn, .bigpick), .osian-tablet .turn {
  border-color: var(--glass-edge); background-image: var(--glass-quiet);
  box-shadow: 0 2px 5px rgba(11, 47, 69, .08), inset 0 1px #fff;
}
.osian-planner .bigpick {
  border: 1px solid var(--glass-edge); color: var(--sea-ink);
}
.osian-planner .bigpick .ic { color: var(--sea); }
.osian-planner .bigpick:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }
.osian-planner .btn.go, .osian-entry .btn, .osian-tablet :is(.back, .open) {
  background-image: var(--glass-action); color: #fff; box-shadow: var(--glass-press);
}
.osian-planner .seg {
  padding: 4px; border: 1px solid var(--glass-edge); border-radius: 16px;
  background: var(--glass-surface); box-shadow: inset 0 1px #fff;
}
.osian-planner .seg > button { min-height: 44px; border-radius: 11px; color: var(--sea-ink); }
.osian-planner .seg > button[aria-pressed="true"] {
  color: #fff; background: var(--glass-action); box-shadow: var(--glass-press);
}
:is(.osian-planner, .osian-entry, .osian-tablet) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--sea); outline-offset: 2px;
}
:is(.osian-planner .mast, .osian-planner .viewer, .osian-tablet .bookview, .osian-tablet .night) :focus-visible {
  outline-color: var(--sun);
}
@media (hover: hover) {
  :is(.osian-planner, .osian-entry) .btn:not(.quiet, :disabled):hover,
  .osian-tablet :is(.back, .open):hover {
    box-shadow: var(--glass-press);
  }
  .osian-planner .seg > button:not([aria-pressed="true"], :disabled):hover { background-color: var(--sea-soft); }
}

.osian-entry .mast { padding: max(14px, env(safe-area-inset-top)) 16px 16px; }
.osian-entry .in {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px 12px;
}
.osian-entry :is(h1, h2) { font-family: var(--workspace-heading); font-weight: 800; letter-spacing: -.027em; }
.osian-entry h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 2.05rem); }
.osian-entry .in > p { grid-column: 2; }

.osian-tablet .hello { padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
.osian-tablet .hello-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px;
}
.osian-tablet .hi { margin: 0; font-family: var(--workspace-heading); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.osian-tablet .date { margin: 0; text-align: right; }
.osian-tablet .night .peek { color: #e6edf9; }

@media (max-width: 630px) {
  .osian-planner .mast-in { gap: 6px 8px; }
  .osian-planner .a-status { grid-column: 1 / -1; }
  .osian-workspace .tabs.seven { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .osian-workspace .tabs .tab { flex-direction: column; gap: 2px; padding: 3px 1px; font-size: .74rem; }
  .osian-workspace .tab svg { width: 15px; height: 15px; }
  .osian-tablet .hello-in { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
  .osian-tablet .hello-in .brand-mark { grid-row: span 2; }
  .osian-tablet .date { text-align: left; }
}

@media (min-width: 1280px) {
  @supports selector(:has(*)) {
    .osian-workspace {
      display: grid; grid-template: "rail mast" auto "rail content" 1fr / var(--planner-rail, 174px) minmax(0, 1fr);
      align-items: start; gap: 16px; max-width: 1600px; margin: 0 auto; padding: 18px;
    }
    .osian-workspace .mast { grid-area: mast; padding: 13px 21px; border-radius: 22px; }
    .osian-workspace .mast-in { grid-template: "title gear" auto "status status" auto / minmax(0, 1fr) auto; }
    .osian-workspace .mast-mark { display: none; }
    .osian-workspace .tabs-wrap {
      grid-area: rail; position: sticky; top: 18px; padding: 11px; max-height: calc(100vh - 36px); overflow-y: auto;
      border: 1px solid #285e74; border-radius: 22px; background: var(--glass-mast);
      box-shadow: 0 14px 30px #0b2f4530; color: #fff;
    }
    .osian-workspace .tabs-wrap:has(.tabs:empty) { visibility: hidden; }
    .osian-workspace:has(#v-out:not([hidden])) {
      grid-template: "mast" auto "content" 1fr / minmax(0, 1fr);
    }
    .osian-workspace:has(#v-out:not([hidden])) .tabs-wrap { display: none; }
    .rail-brand {
      display: flex; align-items: center; gap: 8px; padding: 3px 1px 12px;
      border-bottom: 1px solid #b9e6f43d; font-size: .8rem; font-weight: 800; white-space: nowrap;
    }
    .osian-workspace .tabs { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .osian-workspace .tabs .tab { justify-content: flex-start; gap: 9px; padding: 4px 10px; color: #e8f6fc; }
    .osian-workspace .tabs .tab[aria-selected="true"] {
      background: linear-gradient(145deg, #b4e8f74a, #97ced324);
      box-shadow: inset 0 0 0 1px #a8dbedd6, 0 4px 14px #081f3345;
    }
    @media (hover: hover) {
      .osian-workspace .tabs .tab:hover { background-color: #c6eaf124; }
    }
    .osian-workspace .tabs .tab:focus-visible { outline-color: var(--sun); outline-offset: -3px; }
    .osian-workspace main {
      grid-area: content; width: 100%; margin: 0; padding: 15px 18px 30px;
      border-radius: 22px; border: 1px solid #ffffffd9; background: #fafbf8ce; box-shadow: var(--glass-lift);
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    :is(.osian-planner, .osian-entry) .btn:not(.quiet, :disabled):hover,
    .osian-tablet :is(.back, .open):hover { translate: 0 -1px; }
  }
  :is(.osian-planner, .osian-entry) .btn:not(:disabled):active { translate: 0 1px; }
  @keyframes osian-view-in { from { opacity: .78; translate: 0 5px; } to { opacity: 1; translate: 0; } }
  .osian-workspace main > section:not([hidden]) { animation: osian-view-in 210ms var(--glass-ease) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.osian-planner, .osian-entry, .osian-tablet) :is(.btn, .tab, .nav, .xbtn, .back, .open, .turn, .shut, .peek) {
    transition: none; translate: none;
  }
}

/* Illustrated planner and shared story colours. */
.osian-planner, .osian-tablet .story-library {
  --story-ink: #102e36;
  --story-night: #092b32;
  --story-teal: #134b51;
  --story-forest: #183e33;
  --story-paper: #fff5df;
  --story-sun: #ffd274;
  --story-space: clamp(10px, .9vw, 16px);
  --story-radius: 16px;
  --story-line: #ddcfae;
  --story-light: #fffaf0;
  --chapter-glass: linear-gradient(146deg, #fffffff2, #f6fbf9c9 58%, #e3f1eff0);
  --chapter-aqua: linear-gradient(145deg, #f9fffaf2, #e0f1ecdf 65%, #cfe8e6e8);
  --chapter-honey: linear-gradient(145deg, #fffdf4f5, #fff2d5df 65%, #f0e9d1e8);
  --chapter-rim: #bed4d1;
  --chapter-depth: 0 8px 24px #1a4d5314, inset 0 1px #fff;
  --date-sheen: radial-gradient(ellipse at 9% 0%, #ffffffbd, #ffffff38 38%, transparent 72%);
  --date-depth: 0 2px 6px #143f6122, inset 0 1px #ffffffd9;
  --date-neutral: linear-gradient(155deg, #fafffef7, #e0eee9ed);
  --dark-glass-depth: 0 6px 16px #112b3b29, inset 0 1px #ffffff55;
}
:is(#v-today, #v-month, .swap-nights, .daychips) {
  --dad: #285eb5;
  --dad-soft: #e1efff;
  --dad-line: #b1cef2;
  --dad-ink: #164383;
  --dad-tint: #b1d4ff;
  --dad-edge: #7ba8e3;
  --mum: #aa3571;
  --mum-soft: #ffecf4;
  --mum-line: #f0bed5;
  --mum-ink: #842457;
  --mum-tint: #ffc3dc;
  --mum-edge: #df8ab3;
}
:where(.story-day, .story-agenda-day .tile, #v-month :is(.mc, .yd, .sw)).d {
  --date-fill: var(--dad-tint);
  --date-glass: linear-gradient(155deg, var(--dad-soft), var(--dad-tint));
  --date-edge: var(--dad-edge);
  --date-mark: var(--dad);
  --date-ink: var(--dad-ink);
}
:where(.story-day, .story-agenda-day .tile, #v-month :is(.mc, .yd, .sw)).m {
  --date-fill: var(--mum-tint);
  --date-glass: linear-gradient(155deg, var(--mum-soft), var(--mum-tint));
  --date-edge: var(--mum-edge);
  --date-mark: var(--mum);
  --date-ink: var(--mum-ink);
}
:where(.story-day, .story-agenda-day .tile, #v-month :is(.mc, .yd, .sw)).m2d {
  --date-glass: linear-gradient(143deg, var(--mum-tint) 46%, var(--dad-soft) 52%, var(--dad-tint));
  --date-mark: linear-gradient(90deg, var(--mum) 50%, var(--dad) 50%);
}
:where(.story-day, .story-agenda-day .tile, #v-month :is(.mc, .yd)).d2m {
  --date-glass: linear-gradient(143deg, var(--dad-tint) 46%, var(--mum-soft) 52%, var(--mum-tint));
  --date-mark: linear-gradient(90deg, var(--dad) 50%, var(--mum) 50%);
}
.osian-planner:has(#v-today:not([hidden]) .story-hero, main > section:not([hidden]) .story-page-head) .mast { display: none; }
#v-today {
  display: grid;
  min-width: 0;
  gap: var(--story-space);
}
#v-today :is(h2, p) { overflow-wrap: anywhere; }
.story-hero, .story-next, .story-school, .story-decisions, .story-bedtime { position: relative; isolation: isolate; overflow: hidden; }
.story-hero {
  --hero-inset: clamp(16px, 2vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, min(52%, 640px));
  align-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  min-height: clamp(248px, 16vw, 330px);
  padding: clamp(16px, 1.6vw, 26px) var(--hero-inset);
  border-radius: var(--story-radius);
  background: linear-gradient(115deg, #0d3039, #204247);
  color: var(--story-paper);
}
.story-hero > .story-art {
  position: absolute; z-index: -2; inset: 0 0 0 auto;
  width: min(56%, 1050px); height: 100%;
  object-fit: cover; object-position: center top;
  mask-image: linear-gradient(90deg, transparent, #000 29%);
}
.story-hero::after {
  position: absolute; z-index: -1; inset: 0; content: "";
  background: linear-gradient(0deg, #092b32a6, transparent 44%);
}
.osian-planner .story-hero .gear {
  position: absolute; z-index: 1; grid-area: auto; inset: 12px 12px auto auto;
  border-color: #fff5df9e; color: #fff5df; background: #102e36;
}
.osian-planner .story-hero .gear:hover { background: #205058; }
.osian-planner .story-hero .gear:focus-visible { outline-color: var(--story-sun); }
.story-hero-date {
  display: block; margin-bottom: 8px;
  color: var(--story-sun); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.story-hero h1 {
  margin: 0;
  font: 760 clamp(2rem, 3.7vw, 4rem)/1.06 var(--font-display);
  letter-spacing: -.035em;
}
.story-hero-foot { display: grid; gap: 9px; min-width: 0; }
.story-hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.story-hero-status:empty { display: none; }
.story-hero-status span {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
  border: 1px solid #ffffff52; border-radius: 999px; background: #123b42;
  color: #fff5df; font-size: .74rem; font-weight: 750;
}
.story-hero-status .nights { color: #f1defa; background: #2e1f3a; }
.story-hero-status .story-countdown { color: var(--story-night); background: var(--story-sun); border-color: var(--story-sun); }
.story-journey {
  display: grid;
  grid-template: "label label label" auto "tonight trail next" auto / minmax(0, 1fr) minmax(25px, .36fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #f3d69e75;
  border-radius: 13px;
  background: linear-gradient(150deg, #225457f5, #0b3039f0);
  box-shadow: var(--dark-glass-depth);
  color: var(--story-paper);
}
.story-journey h2 { grid-area: label; margin: 0; font: 800 .76rem/1.25 var(--workspace-heading); }
.story-journey:has(.story-trail-detail) { grid-template-areas: "label label label" "tonight trail next" "detail detail detail"; }
.story-stop { grid-area: tonight; display: flex; align-items: center; gap: 9px; min-width: 0; }
.story-stop-next { grid-area: next; justify-self: end; }
.story-stop-icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: #255552; color: var(--story-sun); font-size: 1.27rem;
}
.story-stop-next .story-stop-icon { background: var(--story-sun); color: var(--story-night); }
.story-stop div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.story-stop div > span { color: #f4ddb5; font-size: .78rem; font-weight: 650; }
.story-stop strong { font-size: .9rem; line-height: 1.25; }
.story-stop time { display: inline-block; white-space: nowrap; }
.story-trail { grid-area: trail; width: 100%; height: 17px; overflow: visible; fill: none; stroke: var(--story-sun); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.story-trail-detail {
  grid-area: detail; margin: 0; padding-top: 5px;
  border-top: 1px solid #e8dbbd3f; color: #fff4de; font-size: .76rem;
}
.story-trail-detail strong { margin-inline-start: 4px; color: var(--story-sun); }
.story-attention {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: 12px; background: linear-gradient(155deg, #fff9f4, #fbe4d9);
  box-shadow: var(--date-depth); color: #792c1b; font-size: .84rem;
}
.story-attention .story-action { margin-inline-start: auto; color: #792c1b; }
#thisWeek { scroll-margin-block-start: 10px; }
.story-notifications {
  display: grid; align-content: center; gap: 4px;
  padding: clamp(12px, 1.2vw, 20px); border-radius: var(--story-radius);
  background: var(--chapter-aqua); border: 1px solid var(--chapter-rim);
  box-shadow: var(--chapter-depth); color: var(--story-ink);
}
.story-notifications h2 { margin: 0; font: 720 1.1rem/1.2 var(--font-display); }
.story-notifications p { margin: 0; font-size: .86rem; }
.story-notifications .btns { margin: 4px 0 0; }
.story-needs {
  display: grid; gap: 8px; min-width: 0; padding: clamp(12px, 1.2vw, 20px); color: var(--story-ink);
  border: 1px solid var(--chapter-rim); border-left: 4px solid var(--story-sun, #d99a00); border-radius: var(--story-radius);
  background: var(--chapter-aqua); box-shadow: var(--chapter-depth);
}
.story-needs-head { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.story-needs h2 { margin: 0; font: 720 1.2rem/1.2 var(--font-display); letter-spacing: -.02em; }
.story-needs-count {
  min-width: 28px; padding: 2px 9px; border-radius: 999px; background: #123a40; color: #fff4de;
  font-size: .82rem; font-weight: 800; text-align: center;
}
.story-needs-calm { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; border-left-width: 1px; }
.story-needs-calm > .ic { color: #14554b; }
.story-needs-calm p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.story-needs-calm p small { display: block; margin-top: 2px; font-size: .78rem; }
.nyou-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
@media (min-width: 700px) {
  .nyou-list:not([data-n="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nyou-list[data-n="2"] { align-items: start; }          /* two tiles of very different height: each as tall as its own words */
  .nyou-list[data-n="1"] { max-width: 620px; }
}
@media (min-width: 1000px) {
  .nyou-list:is([data-n="3"], [data-n="5"], [data-n="6"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1700px) {
  .nyou-list[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.nyou-item {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; overflow-wrap: anywhere;
  border: 1px solid var(--chapter-rim); border-radius: 12px; background: #ffffffb8; box-shadow: var(--date-depth);
}
.nyou-eb { display: flex; align-items: center; gap: 6px; color: #174d46; font-size: .8rem; font-weight: 800; }
.nyou-item p { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--ink-soft); }
.nyou-item p.nyou-title { font-size: .98rem; font-weight: 750; color: var(--story-ink); }
.nyou-item .btns { margin-top: auto; padding-top: 6px; }
.nyou-item .kv { margin: 2px 0 0; font-size: .82rem; }
.nyou-item .kv li { grid-template-columns: 5.4rem minmax(0, 1fr); gap: 8px; padding: 5px 0; }
.nyou-item .swl { display: flex; flex: 1; margin: 0; }
.nyou-item .swl li { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 0; background: none; box-shadow: none; }
.nyou-item .swl .btns { margin-top: auto; }
.story-needs-head { margin-bottom: 4px; }
.nyou-item .btn { min-height: 44px; }
.nyou-item .btn.go { background: var(--glass-action); color: #fff; box-shadow: var(--glass-press); }
.story-features, .story-feature-stack { display: grid; min-width: 0; gap: var(--story-space); }
.story-features { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, 1fr); }
.story-features:not(:has(.story-feature-stack)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-feature-stack { gap: 8px; }
.story-features h2, .story-memories h2 {
  margin: 0; font: 720 clamp(1.22rem, 2vw, 1.6rem)/1.2 var(--font-display);
  letter-spacing: -.022em;
}
.story-features p, .story-memories p { margin: 0; font-size: .86rem; }
.story-features :is(.story-feature-title, .story-feature-copy .story-next-when strong) { font-weight: 800; }
.story-features .story-feature-title { font-size: clamp(1rem, 1.65vw, 1.38rem); line-height: 1.22; }
.story-next, .story-school, .story-decisions, .story-bedtime, .story-memories {
  border-radius: var(--story-radius);
  background: var(--chapter-glass);
  box-shadow: var(--chapter-depth);
  color: var(--story-ink);
}
.story-memories { border: 1px solid var(--chapter-rim); }
.story-school { background: var(--chapter-honey); }
.story-next {
  min-height: 166px;
  background: linear-gradient(145deg, #21575f, var(--story-night));
  box-shadow: var(--dark-glass-depth); color: var(--story-paper);
}
.story-feature-copy {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 100%; gap: 5px; padding: clamp(12px, 1.2vw, 20px);
}
.story-next .story-feature-copy { width: 68%; }
.story-school .story-feature-copy { width: 61%; }
.story-feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.story-next-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.story-next-when strong { color: var(--story-sun); }
.story-next .story-art, .story-school .story-art, .story-decisions .story-art, .story-bedtime .story-art {
  position: absolute; height: 100%; top: 0; right: 0; object-fit: cover;
}
.story-next .story-art { width: 54%; object-position: 57% 43%; mask-image: linear-gradient(90deg, transparent, #000 51%); }
.story-school .story-art { width: 52%; object-position: 51% 19%; mask-image: linear-gradient(90deg, transparent, #000 44%); }
.story-decisions .story-feature-copy { width: 62%; min-width: min(155px, 100%); }
.story-decisions .story-art {
  width: 49%; object-position: 58% 60%; mask-image: linear-gradient(90deg, transparent, #000 43%);
  pointer-events: none;
}
.story-decisions dl { display: flex; flex-wrap: wrap; gap: 0 clamp(8px, 1.5vw, 24px); margin: 0; }
.story-decisions dl div { display: flex; flex-wrap: wrap; align-items: baseline; flex-direction: row-reverse; justify-content: flex-end; gap: 0 6px; }
.story-decisions dt { font-size: .78rem; font-weight: 700; }
.story-decisions dd { margin: 0; color: var(--story-forest); font-weight: 800; font-size: 1.23rem; font-variant-numeric: tabular-nums; }
.story-bedtime {
  background: linear-gradient(145deg, #304a64, #142b44);
  box-shadow: var(--dark-glass-depth); color: var(--story-paper); min-height: 104px;
}
.story-bedtime .story-art { width: 48%; object-position: 61% 18%; mask-image: linear-gradient(90deg, transparent, #000 53%); }
.osian-workspace .story-bedtime #goodnightCard {
  z-index: 1; width: 68%; display: grid; gap: 4px; background: transparent; color: inherit;
  box-shadow: none; border: 0; padding: 9px 12px; border-radius: 0;
}
.story-bedtime #goodnightCard p { color: var(--story-paper); }
.story-bedtime #goodnightCard h2 { font-size: 1.15rem; }
.story-bedtime #goodnightCard p { font-size: .76rem; }
.story-bedtime #goodnightCard .btns { margin-top: 2px; }
.story-bedtime #goodnightCard .btn.go { background: var(--story-sun); color: var(--story-night); }
.story-memories { padding: clamp(12px, 1.2vw, 20px); min-width: 0; }
.story-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-bottom: 9px; }
.story-action {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; min-height: 44px; min-width: 44px;
  padding: 6px 9px; border: 0; border-radius: 10px; background: transparent; color: #154c46;
  font-size: .8rem; font-weight: 800; text-align: left; cursor: pointer;
}
.story-next .story-action { padding-inline: 12px; background: var(--story-sun); color: var(--story-night); }
.story-next :focus-visible { outline-color: #fff9e9; }
.story-spread {
  container-type: inline-size; border: 1px solid var(--chapter-rim);
  border-radius: var(--story-radius); background: var(--chapter-glass); box-shadow: var(--chapter-depth);
}
.story-week {
  position: relative; isolation: isolate; overflow: hidden;
  min-width: 0; padding: clamp(12px, 1.8vw, 28px);
  border-radius: calc(var(--story-radius) - 1px) calc(var(--story-radius) - 1px) 0 0;
  background: var(--story-night); color: var(--story-paper);
}
.story-week > .story-art {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 64% 56%;
}
.story-week::after {
  position: absolute; z-index: -1; inset: 0; content: "";
  background: linear-gradient(90deg, #092b32f2, #092b327a 42%, transparent 72%),
              linear-gradient(0deg, #092b32c9, transparent 58%);
}
.story-week .story-section-head {
  align-items: start; margin-bottom: clamp(18px, 2.6vw, 42px);
}
.story-week h2 {
  margin: 0; font: 720 clamp(1.7rem, 3.1vw, 3rem)/1.05 var(--font-display); letter-spacing: -.03em;
}
.story-week p { margin: 5px 0 0; color: #ffe7ae; font-size: .85rem; font-weight: 720; }
.story-week .story-section-head .story-action {
  padding-inline: 11px; border: 1px solid #fff5df74;
  background: linear-gradient(150deg, #26595def, #092b32f0); color: var(--story-paper);
  box-shadow: var(--dark-glass-depth);
}
.story-week :focus-visible { outline: 2px solid var(--story-sun); outline-offset: 2px; }
.story-days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.story-days li { display: grid; min-width: 0; }
.story-day {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-width: 0; min-height: 96px;
  padding: 8px 10px; border: 1px solid var(--date-edge, var(--chapter-rim)); border-radius: 10px;
  background: var(--date-sheen), var(--date-glass, var(--date-neutral));
  box-shadow: var(--week-day-shadow, var(--date-depth)); color: var(--story-ink);
  font-size: .72rem; font-weight: 750; line-height: 1.24; text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
.story-day time { color: var(--date-ink, var(--story-ink)); }
.story-day[aria-current="date"] {
  border: 2px solid #9b6508;
  --week-day-shadow: var(--date-depth), 0 0 0 1px #ffe8b3;
}
.story-day time, .story-day-plan { display: grid; gap: 3px; }
.story-day strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.story-day small { font-size: .66rem; font-weight: 650; }
@container (max-width: 620px) {
  .story-week > .story-art { object-position: 71% center; }
  .story-week::after {
    background: linear-gradient(90deg, #092b32ed, #092b3294 59%, #092b3233),
                linear-gradient(0deg, #092b32 14%, transparent 92%);
  }
  .story-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-days .story-day-today { grid-column: 1 / -1; }
  .story-day-today .story-day {
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    min-height: 52px; padding: 8px 12px;
  }
  .story-day-today time { display: flex; align-items: center; gap: 6px; }
  .story-day-today .story-day-plan { flex: 1; text-align: right; }
}
.story-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 6rem)); gap: 6px; }
.story-thumbs .phthumb { width: 100%; aspect-ratio: 1; min-height: 44px; min-width: 0; }
.story-thumbs .phthumb img { width: 100%; height: 100%; object-fit: cover; }
.story-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.story-empty > .ic { color: #14554b; }
.story-details, .story-support, .story-agenda, .story-family-plans, .story-finish {
  display: grid; min-width: 0; gap: var(--story-space); align-items: start;
}
.story-agenda { padding: clamp(12px, 1.6vw, 28px); color: var(--story-ink); }
.story-agenda-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
}
.story-details :is(.story-agenda h2, .story-panel h2, .story-family-plans > .card > h2) {
  margin: 0; font: 720 clamp(1.2rem, 1.9vw, 1.55rem)/1.2 var(--font-display); letter-spacing: -.02em;
}
.story-agenda .wk {
  display: grid; align-items: start; gap: 8px 12px; min-width: 0; margin: 0; padding: 0; list-style: none;
}
.story-agenda .wk > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 6px 8px; min-width: 0; align-content: start;
  padding: 8px clamp(8px, 1vw, 14px); border: 1px solid var(--chapter-rim); border-radius: 12px;
  background: linear-gradient(155deg, #ffffffeb, var(--agenda-tint, #e9f3ef));
  box-shadow: var(--date-depth); scroll-margin-top: 12px;
}
.story-agenda .wk > li:has(.tile.d) { --agenda-tint: var(--dad-soft); }
.story-agenda .wk > li:has(.tile.m) { --agenda-tint: var(--mum-soft); }
.story-agenda .wk > li[aria-current="date"] {
  border-color: #bf9e54;
  background: linear-gradient(155deg, #fffaf0, var(--agenda-tint, #e6f3ed));
}
.story-agenda .wk > li:focus { outline: 2px solid var(--sea); outline-offset: 2px; }
.story-agenda-open { padding-inline: 6px; }
.story-agenda-day { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story-agenda-day .tile {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--date-edge, var(--chapter-rim)); border-radius: 10px;
  background: var(--date-sheen), var(--date-glass, var(--date-neutral));
  box-shadow: var(--date-depth); color: var(--date-ink, var(--story-ink));
  font: 700 1.38rem/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.story-agenda-day h3 { margin: 0; font: 800 .98rem/1.25 var(--workspace-heading); }
.story-agenda-day .wwho {
  display: flex; align-items: center; gap: 5px; margin: 3px 0 0;
  font-size: .77rem; font-weight: 750; color: var(--dad-ink);
}
.story-agenda-day .wwho.mum { color: var(--mum-ink); }
.story-agenda .wmain { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.story-agenda .wmain > :first-child { margin-top: 0; }
.story-agenda .wl { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.story-agenda .wl li { display: flex; gap: 7px; font-size: .86rem; color: var(--ink-soft); }
.story-agenda .wl .t { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.story-agenda .wl .t:empty { display: none; }
.story-agenda .wl li.ok { color: var(--ok); }
.story-agenda .wl li.ok .ic { margin-right: 4px; }
.story-agenda .wl li.agree { color: var(--wait); }
.story-agenda .probs { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; }
.story-agenda .pb {
  grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 10px;
  border-radius: 10px; border-color: #e9c4b6; box-shadow: none; background: #f9e6db;
}
.story-agenda .pb.soft { border-color: #e7cc8e; background: #fff3d7; }
.story-agenda .pbi { width: 26px; height: 26px; }
.story-agenda .pb h4 { color: #782c1c; margin: 2px 0 0; font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.story-agenda .pb.soft h4 { color: #694406; }
.story-agenda .pb p { line-height: 1.4; }
.story-agenda .wkalert {
  display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px;
  color: #782c1c; background: #f9e6db; font-size: .86rem;
}
.story-agenda .wkalert.soft { color: #694406; background: #fff3d7; }
.story-agenda .wkalert > b { display: flex; align-items: center; gap: 6px; }
.story-agenda .jump, .story-agenda .wkfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.story-agenda .jump button {
  min-height: 44px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 10px;
  background: var(--glass-quiet); color: inherit; font: 750 .76rem/1.2 var(--workspace-heading); cursor: pointer;
}
.story-agenda .wkfoot { justify-content: space-between; font-size: .83rem; }
.story-details .tagc { background-image: linear-gradient(155deg, #ffffff45, transparent 70%); }
.story-details .tagc:is(button) { min-height: 44px; }
.story-support, .story-family-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.story-panel, .osian-workspace .story-family-plans > .card {
  display: grid; min-width: 0; gap: 0; color: var(--story-ink);
  border: 1px solid var(--chapter-rim); border-radius: var(--story-radius);
  background: var(--chapter-glass); box-shadow: var(--chapter-depth);
}
.story-panel { container-type: inline-size; }
.story-panel-head {
  position: relative; isolation: isolate; overflow: hidden; display: flex; gap: 12px;
  min-height: 90px; align-items: end; justify-content: space-between;
  padding: 14px clamp(12px, 1.3vw, 20px);
  border-radius: calc(var(--story-radius) - 1px) calc(var(--story-radius) - 1px) 0 0;
}
.story-panel-head:has(#storySchoolUpdates) {
  background: linear-gradient(145deg, #23535a, #092b32); color: var(--story-paper);
}
.story-panel-head:has(#storySchoolUpdates) h2 { max-width: 60%; }
.story-panel-head > .story-art {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 78%; height: 100%;
  object-fit: cover; object-position: center 42%; mask-image: linear-gradient(90deg, transparent, #000 31%);
}
.story-panel-head:has(#storyWeekend) {
  background: var(--chapter-aqua); color: #24463e; align-items: center;
}
.story-panel-head:has(#storyUpcoming) {
  background: var(--chapter-honey); color: #55422a;
}
.story-panel-head:has(#storyWeekend, #storyUpcoming) { border-bottom: 1px solid var(--chapter-rim); }
.story-panel-route, .story-panel-mark { color: inherit; flex: none; }
.story-panel-route { display: flex; align-items: center; gap: 5px; font-size: .94rem; }
.story-panel-route i { width: 14px; border-bottom: 1px dashed currentColor; }
.story-panel-mark { font-size: 1.7rem; }
.story-panel-body, .osian-workspace .story-family-plans > .card { padding: clamp(12px, 1.25vw, 20px); }
.story-panel-body { display: grid; gap: 8px; }
.osian-workspace .story-family-plans > .card { gap: 8px; background: var(--chapter-aqua); }
.story-panel p, .story-family-plans > .card p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.story-panel p.story-panel-note { font-size: .78rem; }
.story-panel .rows { margin: 0; }
.story-panel .rows li {
  grid-template-columns: 51px minmax(0, 1fr) auto;
  align-items: center; gap: 4px 8px; padding: 8px 0; border-color: var(--story-line);
}
.story-panel .rows .d {
  padding: 4px; border-radius: 7px; background: var(--chapter-aqua); box-shadow: var(--date-depth);
  color: #294b45; font-variant-numeric: tabular-nums;
}
.story-panel .rows .d small { white-space: nowrap; }
.story-panel .rows .w { min-width: 0; overflow-wrap: anywhere; }
.story-panel .rows .pill { white-space: normal; }
.story-panel .rows li > :last-child:empty { display: none; }
.story-panel .mini { margin: 0; padding: 8px 0; border-color: var(--story-line); }
.story-panel-body > .eb.story-school-more { margin-top: 12px; }        /* a family helper's From school: their days, then the rest */
.story-panel .mini small.mine-when { color: var(--story-ink); }
.story-panel .mini small.mine-needs { color: var(--story-ink); font-size: .86rem; font-weight: 700; }
.story-school-jump { display: flex; margin: 0; }
.story-panel-body > .btns, .story-family-plans > .card > .btns { margin-top: 2px; }
.story-details .btn.go {
  background: var(--glass-action); color: #fff; box-shadow: var(--glass-press);
}
.story-family-plans > .card > .eb { font-size: .8rem; letter-spacing: 0; text-transform: none; color: #174d46; }

@container (min-width: 850px) {
  .story-agenda .wk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-agenda .wk > li[aria-current="date"] {
    grid-column: 1 / -1;
    grid-template-columns: minmax(170px, .35fr) minmax(0, 1fr) auto;
  }
  .story-agenda .wk > li[aria-current="date"] .story-agenda-open { grid-column: 3; grid-row: 1; }
  .story-agenda .wk > li[aria-current="date"] .wmain { grid-column: 2; grid-row: 1; }
}
@media (min-width: 768px) {
  .story-memories:not(:has(.story-thumbs)) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
  .story-memories:not(:has(.story-thumbs)) .story-section-head { margin: 0; }
}
@container (max-width: 370px) {
  .story-panel .rows li { grid-template-columns: 55px minmax(0, 1fr); }
  .story-panel .rows li > :last-child:has(button) { grid-column: 2; }
}
#v-today :focus-visible { scroll-margin: 8px; }

@media (hover: hover) {
  .story-action:hover { box-shadow: inset 0 0 0 2px currentColor; }
  .story-day:hover { box-shadow: var(--week-day-shadow, var(--date-depth)), inset 0 0 0 1px currentColor; }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.story-action, .story-day) { transition: box-shadow 150ms, translate 150ms; }
  :is(.story-action, .story-day):active { translate: 0 1px; }
}
@media (min-width: 1280px) {
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) {
    max-width: none; padding: 10px 16px; gap: 0 14px;
  }
  .osian-workspace:has(#v-today:not([hidden]) .story-hero, main > section:not([hidden]) .story-page-head) {
    grid-template: "rail content" 1fr / var(--planner-rail, 174px) minmax(0, 1fr);
  }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) main { max-width: none; padding: 0 0 24px; border: 0; background: transparent; box-shadow: none; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs-wrap {
    top: 12px; border-color: #7b9d8c69; background: linear-gradient(160deg, #154a48, #092b32 92%);
  }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tab[aria-selected="true"] {
    color: #1c3022; background: #e8ee9e; box-shadow: none;
  }
}
@media (max-width: 1039px) {
  .story-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-features:has(.story-feature-stack) .story-school { grid-column: 1 / -1; min-height: 132px; }
  .story-school .story-art { width: min(52%, 320px); object-position: center top; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs { margin-block: 6px; border-color: #7b9d8c69; background: #123a40; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tab { color: #fff4de; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tab[aria-selected="true"] { color: #1c3022; background: #e8ee9e; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tab:focus-visible { outline-color: var(--story-sun); }
}
@media (hover: hover) {
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs .tab:not([aria-selected="true"]):hover {
    background: #225056;
  }
}
@media (max-width: 767px) {
  .osian-planner:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) { --story-phone-gutter: 12px; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs-wrap {
    position: fixed; z-index: 4; inset: auto 0 0;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom)); background: #0a3038;
    border-top: 1px solid #52796a;
  }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs {
    display: flex; width: min(100%, 600px); gap: 0; padding: 0; margin: 0 auto; border: 0;
    box-shadow: none; background: none;
  }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs .tab {
    min-height: 48px; flex-direction: column; gap: 3px; padding: 3px 0; border-radius: 11px;
    color: #fff4de; font-size: .66rem;
  }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs .tab[aria-selected="true"] {
    color: #1c3022; background: #e8ee9e; box-shadow: none;
  }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .tabs .tab:focus-visible { outline-color: var(--story-sun); outline-offset: -2px; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) main {
    padding-inline: var(--story-phone-gutter);
    padding-bottom: calc(74px + var(--story-extra-dock, 0px) + env(safe-area-inset-bottom));
  }
  .osian-planner:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) .toast { bottom: calc(66px + var(--story-extra-dock, 0px) + env(safe-area-inset-bottom)); }
  html:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) { scroll-padding-bottom: calc(64px + var(--story-extra-dock, 0px) + env(safe-area-inset-bottom)); }
  .osian-workspace:has(#v-today:not([hidden]) .story-hero, main > section:not([hidden]) .story-page-head) main {
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .story-hero {
    --portrait-top: 96px; grid-template-columns: minmax(0, 1fr);
    align-content: space-between; min-height: 382px; gap: 120px; padding-bottom: 12px;
  }
  .story-hero > .story-art {
    top: var(--portrait-top); width: 100%; height: calc(100% - var(--portrait-top));
    mask-image: linear-gradient(180deg, transparent, #000 7%);
  }
  .story-hero::after { background: linear-gradient(0deg, #092b32b8, transparent 36%); }
  .story-hero h1 { font-size: clamp(1.9rem, 7.7vw, 3.2rem); }
  .story-hero-date { max-width: calc(100% - 48px); font-size: .68rem; }
  .story-hero-foot { display: grid; gap: 9px; }
  .story-journey { padding: 8px 9px; gap: 5px 7px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.15fr); }
  .story-stop { gap: 6px; }
  .story-stop-icon { width: 27px; height: 27px; font-size: .95rem; }
  .story-stop div > span { font-size: .68rem; }
  .story-features, .story-features:not(:has(.story-feature-stack)) { grid-template-columns: minmax(0, 1fr); }
  .story-features:has(.story-feature-stack) .story-school { grid-column: auto; }
  .story-next { min-height: 138px; }
  .story-next .story-feature-copy { width: 68%; }
}
@media (max-width: 767px) and (min-width: 540px) {
  .story-feature-stack:has(.story-bedtime) { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  .osian-workspace .story-bedtime #goodnightCard { width: 100%; }
  .story-bedtime .story-art { width: 61%; mask-image: linear-gradient(90deg, transparent, #0009 62%, #000); }
}

@media (min-width: 540px) and (max-width: 767px) {
  .story-hero {
    align-content: center; grid-template-columns: minmax(0, 52%);
    min-height: 258px; gap: 12px;
  }
  .story-hero h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
  .story-hero > .story-art {
    top: 0; width: 58%; height: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 29%);
  }
}

/* Shared heading, surfaces and controls for the signed-in planner chapters. */
@media (min-width: 1280px) {
  .osian-workspace:has(main > section:not([hidden]) .story-page-head) main {
    max-inline-size: 1540px; justify-self: center;
  }
}
@media screen {
  .osian-planner:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) {
    background:
      radial-gradient(ellipse at 89% 18%, #cfe5e2, transparent 54rem),
      radial-gradient(ellipse at 24% 4%, #f6e6c9, transparent 43rem),
      linear-gradient(155deg, #f9f4e8, #edf5f2 72%) fixed;
  }
}
.story-page-head {
  isolation: isolate; position: relative; display: flex; align-items: end; flex-wrap: wrap;
  gap: 8px 20px; min-height: 108px; min-width: 0;
  padding: clamp(14px, 1.6vw, 24px); padding-inline-end: clamp(62px, 4.6vw, 82px);
  margin-block-end: var(--story-space);
  overflow: hidden; border-radius: var(--story-radius); color: var(--story-paper);
  background: linear-gradient(90deg, #092b32f0, #092b32bc 44%, #092b3240 80%),
    var(--story-page-art, linear-gradient(125deg, #154851, #102d34)) 65% var(--story-page-art-y, 54%) / cover no-repeat;
}
.story-page-head--month { --story-page-art-y: 33%; min-height: clamp(134px, 11vw, 182px); margin-block-end: 0; }
.story-page-head--help, .story-page-head--holiday { --story-page-art: url("/api/storybook/art/week-landscape.webp"); }
.story-page-head h1 {
  margin: 0;
  font: 760 clamp(1.8rem, 2.6vw, 2.8rem)/1.07 var(--font-display);
  letter-spacing: -.032em; overflow-wrap: anywhere;
}
.story-page-head p { max-width: 55ch; margin: 5px 0 0; color: var(--story-paper); font-size: .9rem; }
.story-page-copy { min-width: 0; flex: 1 1 245px; }
.story-page-head :is(.story-page-actions, .story-page-status) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.osian-planner .story-page-head .story-page-actions .btn {
  border-color: #fff5df75; background: var(--story-night); box-shadow: none; color: var(--story-paper);
}
.osian-planner .story-page-head .story-page-actions .btn.go {
  border-color: var(--story-sun); background: var(--story-sun); color: var(--story-night);
}
.story-page-head .gear {
  position: absolute; z-index: 2; grid-area: auto; inset: 12px 12px auto auto; color: var(--story-paper);
  border-color: #fff5df9e; background: var(--story-night); box-shadow: none;
}
.story-page-head .gear:hover { background: #205058; color: var(--story-paper); }
.story-page-head .gear[aria-pressed="true"] { background: var(--story-sun); color: var(--story-night); }
.story-page-head :focus-visible { outline-color: var(--story-sun); }

.osian-workspace main > section:where(:has(.story-page-head)) :is(.card:not(.ill), .calbar) {
  background: var(--chapter-glass); border-color: var(--chapter-rim); box-shadow: var(--chapter-depth);
}
.osian-workspace main > section:where(:has(.story-page-head)) :is(.card:not(.ill) h2, .chapter-heading) {
  color: var(--story-ink);
  font: 720 clamp(1.14rem, 1.65vw, 1.48rem)/1.18 var(--font-display);
  letter-spacing: -.02em;
}
.osian-planner main > section:has(.story-page-head) .card .btn:not(.go, .quiet) {
  background: var(--glass-quiet); border-color: var(--chapter-rim); color: var(--sea-ink);
  box-shadow: 0 2px 5px #1a4d5312, inset 0 1px #fff;
}
.osian-planner main > section:has(.story-page-head) .card .btn.go {
  background: var(--glass-action); border-color: transparent; color: #fff; box-shadow: var(--glass-press);
}
@media (hover: hover) {
  .osian-planner main > section:has(.story-page-head) .card .btn:not(.go, .quiet, :disabled):hover {
    border-color: var(--sea); box-shadow: var(--glass-lift);
  }
  .osian-planner main > section:has(.story-page-head) .card .btn.go:not(:disabled):hover {
    background: linear-gradient(150deg, var(--sea), var(--story-night)); box-shadow: var(--glass-press);
  }
}
.osian-planner:has(main > section:not([hidden]) .story-page-head) dialog.sheet {
  background: var(--story-light); border-color: var(--story-line);
}
.osian-planner:has(main > section:not([hidden]) .story-page-head) dialog.sheet .btn.go {
  background: #174b46; border-color: transparent; color: #fff5df; box-shadow: none;
}
@media (max-width: 767px) {
  .story-page-head { min-height: 106px; padding-inline-end: 59px; }
  .story-page-head--month { min-height: 138px; }
}

.story-page-head--settings { min-height: 92px; align-items: center; }
.story-settings-title { display: flex; align-items: center; gap: 12px; }
.story-settings-mark { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 3px 10px #092b3266; }

#v-trips .story-page-head { min-height: 144px; }
#v-trips .story-page-actions { margin-block-start: 10px; }
#v-trips .trip-portrait {
  position: absolute; z-index: -1; inset: 0 0 0 auto;
  width: min(56%, 630px); height: 100%; object-fit: cover; object-position: 47% 19%;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.story-trip-layout { display: grid; gap: var(--story-space); align-items: start; }
.story-trip-layout > .card { margin: 0; }
#v-trips .story-trip-layout > .card:last-child { background: var(--chapter-aqua); }
#v-trips .trip-list .rows li { gap: 8px 14px; }
#v-trips .trip-list .rows li:last-child { margin-block-end: 10px; }
@media (min-width: 900px) {
  .story-trip-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
@media (max-width: 550px) {
  #v-trips .trip-portrait { width: 53%; object-position: 45% 12%; }
  #v-trips .trip-list .rows li { grid-template-columns: 48px minmax(0, 1fr); }
  #v-trips .trip-list .rows li > :last-child { grid-column: 2; }
}
.story-settings, .story-settings-column {
  display: grid; align-items: start; gap: var(--story-space); min-width: 0;
}
.story-settings section {
  padding: clamp(14px, 1.75vw, 24px);
  border: 1px solid var(--chapter-rim); border-radius: var(--story-radius);
  background: var(--chapter-glass); box-shadow: var(--chapter-depth);
}
.story-settings section > .chapter-heading { margin: 0 0 10px; }
#v-settings .story-settings section > .card {
  margin: 0; padding: 13px 0;
  border: 0; border-top: 1px solid var(--chapter-rim); border-radius: 0;
  background: transparent; box-shadow: none;
}
.story-settings section > .card:last-child { padding-block-end: 0; }
.story-settings .eb { font-size: .9rem; color: var(--story-forest); text-transform: none; letter-spacing: 0; }
.story-settings .linkbox { overflow-wrap: anywhere; }
.story-settings .sub { background: var(--chapter-aqua); }
@media (min-width: 940px) {
  .story-settings:has(.story-settings-column + .story-settings-column) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Month pairs the family calendar with the plan for the selected day. */
#v-month:not([hidden]) {
  --month-line: var(--chapter-rim, #bed4d1);
  --month-teal: var(--story-night, #092b32);
  --month-inset: clamp(10px, 1.2vw, 17px);
  display: grid;
  gap: var(--story-space, 16px);
  min-width: 0;
}

#v-month .story-page-head--month {
  --story-page-art: url("/scenery/month-valley.webp");
  --story-page-art-y: 39%;
  align-items: center;
  min-height: clamp(110px, 7vw, 132px);
  padding-block: 12px;
  margin-block-end: 0;
}
#v-month .story-page-head--month-mum { padding-inline-end: clamp(152px, 32vw, 360px); }
#v-month .story-month-portrait {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: clamp(150px, 25vw, 360px);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(90deg, transparent, #000 33%);
}
#v-month .story-month-copy { min-width: 0; }
#v-month .story-month-copy h1 { font-size: clamp(1.65rem, 2.55vw, 2.5rem); }
#v-month .story-month-date {
  margin: 4px 0 0;
  color: #ffdf9b;
  font-size: .81rem;
  font-weight: 730;
  line-height: 1.35;
}
#v-month .story-month-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 7px;
  color: #fff6e1;
  font-size: .82rem;
  line-height: 1.35;
}
#v-month .story-month-status > div { display: flex; flex-wrap: wrap; gap: 1px 6px; min-width: 0; }
#v-month .story-month-status-label { color: #ffe2a6; font-size: .74rem; align-self: center; }
#v-month .story-month-status strong { overflow-wrap: anywhere; }

#v-month .story-month-toolbar {
  justify-content: space-between;
  width: 100%;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--month-line);
  border-radius: 13px;
  background: var(--chapter-glass);
  box-shadow: inset 0 1px #fff, 0 2px 6px #2049530c;
}
#v-month .story-month-toolbar :is(.nav, .btn),
#v-month :where(.story-month-detail, .story-month-support) .btn:not(.go, .quiet) {
  border: 1px solid var(--month-line);
  border-radius: 9px;
  background: var(--glass-quiet);
  box-shadow: var(--date-depth);
  color: var(--sea-ink);
}
#v-month .story-month-toolbar .story-month-today {
  border-color: transparent;
  background: var(--glass-action);
  color: #fff;
}
#v-month .story-month-toolbar :is(.monthnav, .monthactions) { flex-wrap: wrap; gap: 5px; margin: 0; }
#v-month :is(.story-month-toolbar, .story-month-detail, .story-month-support) :is(.nav, .btn):focus-visible {
  outline: 2px solid #155453;
  outline-offset: 2px;
}
@media (hover: hover) {
  #v-month :is(.story-month-toolbar, .story-month-detail, .story-month-support) :is(.nav, .btn):hover {
    box-shadow: inset 0 0 0 1px currentColor, var(--date-depth);
  }
}

#v-month .monthwrap { margin: 0; gap: var(--story-space, 16px); }
#v-month .card:not(.ill) {
  border: 1px solid var(--month-line);
  border-radius: 16px;
  background: var(--chapter-glass);
  box-shadow: var(--chapter-depth);
}
#v-month .card.story-month-calendar {
  padding: var(--month-inset);
  background: radial-gradient(ellipse at 13% 9%, #fff8e7, transparent 54%), var(--chapter-glass);
}
#v-month .mgrid { gap: 6px; }
#v-month .mhead { color: #405b56; }
#v-month .mc {
  min-height: 47px;
  padding-bottom: 8px;
  border-radius: 9px;
  background-color: var(--date-fill, #fffdf8);
  background-image: var(--date-sheen), var(--date-glass, var(--date-neutral));
  box-shadow: inset 0 0 0 1px var(--date-edge, var(--chapter-rim)), var(--date-depth);
}
#v-month :is(.mc, .yd):is(.d, .m, .m2d, .d2m)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--date-mark);
}
#v-month .mc.out {
  background: linear-gradient(155deg, #f0f1e9, #e9ede7);
  box-shadow: inset 0 0 0 1px #d7dfd9;
  color: #56645b;
}
#v-month .mc.out .mh .n { font-weight: 620; font-size: inherit; }
#v-month .mc.today { box-shadow: inset 0 0 0 2px #b57918, var(--date-depth); }
#v-month :is(.mc.sel, .mc:focus-visible, .yd:focus-visible) { outline: 2px solid #155453; outline-offset: 0; }
#v-month :is(.mc:focus-visible, .yd:focus-visible) { outline-offset: 2px; z-index: 1; }
@media (hover: hover) {
  #v-month button.mc:not(.today, .sel):hover { box-shadow: inset 0 0 0 1px #357478, var(--date-depth); }
}
#v-month .legend {
  gap: 6px 14px;
  margin-top: 10px;
  padding: 9px 0 0;
  border-top: 1px solid var(--month-line);
  color: #3f504e;
}
#v-month .legend .sw:is(.d, .m, .m2d) {
  height: 11px;
  border-radius: 4px;
  border-top: 3px solid transparent;
  background: var(--date-glass) padding-box, var(--date-mark) border-box;
  box-shadow: inset 0 0 0 1px var(--date-edge, var(--chapter-rim));
}

#v-month .story-month-detail { scroll-margin-block-start: 12px; }
#v-month .story-month-day { padding: var(--month-inset); }
#v-month .story-month-day-head {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: calc(-1 * var(--month-inset)) calc(-1 * var(--month-inset)) 10px;
  padding: 12px var(--month-inset);
  border-bottom: 1px solid var(--month-line);
  border-radius: 15px 15px 0 0;
  background: var(--chapter-honey);
  color: var(--month-teal);
}
#v-month .story-month-day-head h2 {
  margin: 0;
  font: 720 clamp(1.28rem, 1.65vw, 1.6rem)/1.15 var(--font-display);
  letter-spacing: -.02em;
}
#v-month .story-month-empty { margin: 0; }
#v-month .story-month-day .tl { margin-top: 0; }
#v-month .story-month-day .tl > li {
  grid-template-columns: 70px 9px minmax(0, 1fr);
  grid-template-areas: "time marker words";
  gap: 6px;
  padding-block: 7px;
}
#v-month .story-month-day .tl .t { grid-area: time; white-space: nowrap; }
#v-month .story-month-day .tl .dot { grid-area: marker; }
#v-month .story-month-plan-text { grid-area: words; overflow-wrap: anywhere; }
#v-month .story-month-day .tl .wh {
  margin-inline: 0;
  padding-inline: 8px;
  border-radius: 7px;
  box-shadow: none;
}
#v-month .story-month-day .tl .wh.dad { background: var(--dad-soft); }
#v-month .story-month-day .tl .wh.mum { background: var(--mum-soft); }
#v-month .story-month-day-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
  gap: 5px;
  margin-top: 10px;
}
#v-month .story-month-day-actions .btn {
  min-width: 0;
  min-height: 44px;
  justify-content: start;
  text-align: start;
  overflow-wrap: anywhere;
}
#v-month .story-month-day-actions .btn.go { grid-column: 1 / -1; }
#v-month .story-month-day-actions .ic { flex: none; }
#v-month .story-month-day .bigpick {
  background: var(--glass-quiet); color: var(--sea-ink); border-color: var(--month-line); box-shadow: var(--date-depth);
}
#v-month .story-month-day .bigpick .ic { color: inherit; }
#v-month .story-month-day .bigpick:focus-within { outline-color: #155453; }


#v-month .story-month-support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
  align-items: start;
  gap: var(--story-space, 16px);
}
#v-month .story-month-support > .card { min-width: 0; }
#v-month .story-month-support > .card > .eb {
  color: #153e3b;
  font: 700 1.18rem/1.2 var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}

#v-month .story-year-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px var(--month-inset);
}
#v-month .story-year-intro .story-month-toolbar { width: auto; margin: 0; flex: none; }
#v-month .story-year-intro .ylegend { margin: 0; }
#v-month .years { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 10px; }
#v-month .years .ym { padding: 12px; }
#v-month .years .ym h2 { margin: 0 0 4px; font-size: 1.16rem; }
#v-month .years .ym .sum { min-height: 2.6em; }
#v-month .yd {
  aspect-ratio: auto;
  min-height: 24px;
  background-color: var(--date-fill, #f3f1ec);
  background-image: var(--date-glass, var(--date-neutral));
}
#v-month .yd.unknown { background: #eff0e9; }
#v-month .ylegend .yd { min-height: 0; height: 16px; }
#v-month .yd::before { inset: 0 3px auto; height: 2px; border-radius: 2px; }
#v-month .yd.trip {
  background-image: repeating-linear-gradient(135deg, #153e3b26 0 2px, transparent 2px 5px),
    var(--date-glass, var(--date-neutral));
}

@media (min-width: 540px) {
  #v-month .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  #v-month .mgrid { gap: 7px; }
  #v-month .mc { min-height: clamp(61px, 4.05vw, 76px); padding-bottom: 10px; }
  #v-month .mc:has(.mb) { padding-bottom: 8px; }
  #v-month .mc:is(.tm, .td) { padding-bottom: 14px; }
  #v-month .mh { padding: 6px 7px 3px; }
  #v-month .years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1050px) {
  #v-month .monthwrap { grid-template-columns: minmax(0, 1fr) minmax(310px, 29%); }
  #v-month .years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1590px) {
  #v-month .years { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  #v-month .card.story-month-calendar { padding: 9px 8px; }
  #v-month .mgrid { gap: 4px; }
  #v-month .story-month-status > div { width: 100%; }
}

/* Help and Holiday cover */
:is(#v-help, #v-holiday) {
  container-type: inline-size;
  display: grid;
  gap: var(--story-space, 14px);
}
:is(#v-help, #v-holiday) .story-help-panel {
  min-width: 0;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid var(--chapter-rim, var(--story-line));
  border-radius: var(--story-radius, 16px);
  background: var(--chapter-glass, var(--story-light));
  box-shadow: var(--chapter-depth, none);
}
:is(#v-help, #v-holiday) .story-help-panel h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--story-ink, #102e36);
  font: 700 clamp(1.22rem, 1.65vw, 1.55rem)/1.2 var(--font-display);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
#v-help .story-help-panel h2 .ic { color: #365f51; font-size: .8em; }
#v-help .story-help-panel h2 .story-help-count {
  margin-inline-start: auto;
  font: 750 .86rem/1.35 var(--font-body);
  font-variant-numeric: tabular-nums;
}
#v-help :is(.story-help-board, .story-help-responses, .story-help-routines),
#v-holiday :is(.story-holiday-body, .story-holiday-periods) {
  display: grid;
  gap: var(--story-space, 14px);
  align-items: start;
}
#v-help .story-help-attention { background: var(--chapter-honey, var(--story-paper)); }
#v-help .story-help-queue {
  margin-top: 12px;
  border-top: 1px solid var(--story-line, #ddcfae);
  padding-top: 10px;
}
#v-help .story-help-queue h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--story-ink, #102e36);
  font: 750 .91rem/1.35 var(--font-body);
}
#v-help .story-help-queue h3 span { font-variant-numeric: tabular-nums; }
#v-help .story-help-sorted { background: var(--chapter-aqua, var(--story-light)); }
#v-help .story-help-list { list-style: none; margin: 0; padding: 0; }
#v-help .story-help-panel .gap {
  padding: 11px 0;
  border-color: var(--story-line, #ddcfae);
}
#v-help .story-help-panel .gap:last-child { padding-bottom: 2px; }
#v-help .story-help-panel .when { flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; }
#v-help .story-help-panel .when time { color: #4c5b52; font-size: .77rem; }
#v-help .story-help-panel .who { margin-block: 6px 4px; }
:is(#v-help, #v-holiday) .story-help-panel :is(.when, .what, p) { overflow-wrap: anywhere; }
:is(#v-help, #v-holiday) .story-help-panel .btns { margin-top: 8px; }
:is(#v-help, #v-holiday) .story-help-panel .btn {
  color: var(--story-ink, #102e36);
  background: #fffaf0;
  border-color: var(--story-line, #ddcfae);
  box-shadow: none;
}
:is(#v-help, #v-holiday) .story-help-panel .btn.go { color: #fff5df; background: #164c49; border-color: #164c49; }
@media (hover: hover) {
  :is(#v-help, #v-holiday) .story-help-panel .btn:hover { border-color: #164c49; }
  :is(#v-help, #v-holiday) .story-help-panel .btn.go:hover { background: #123f3c; }
}
#v-help .story-help-routines {
  padding-top: var(--story-space, 14px);
  border-top: 1px solid var(--story-line, #ddcfae);
}

#v-holiday :is(.story-holiday-guide, .story-holiday-message) {
  margin: 0;
  padding: 2px clamp(12px, 1.3vw, 20px);
  border: 1px solid var(--story-line, #ddcfae);
  border-radius: var(--story-radius, 16px);
  color: var(--story-ink, #102e36);
  background: #e9efe4;
}
#v-holiday .story-holiday-message {
  padding-block: 12px;
  border-color: var(--chapter-rim, var(--story-line));
  background: var(--chapter-glass, var(--story-light));
  box-shadow: var(--chapter-depth, none);
}
#v-holiday .story-holiday-guide { width: min(100%, 72ch); }
#v-holiday .story-holiday-guide summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 750;
}
#v-holiday .story-holiday-guide p { margin: 0 0 12px; font-size: .85rem; }
#v-holiday .story-holiday-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
#v-holiday .story-holiday-date :is(h2, p) { margin: 0; }
#v-holiday .story-holiday-date p { color: #4c5b52; font-size: .78rem; font-weight: 750; }
#v-holiday .hol {
  margin-top: 12px;
  border-top: 1px solid var(--story-line, #ddcfae);
}
#v-holiday .hol > li {
  grid-template-columns: minmax(48px, auto) minmax(0, 1fr);
  gap: 8px 11px;
  border-color: var(--story-line, #ddcfae);
}
#v-holiday .hol .d { max-width: 62px; }
#v-holiday .hol .w { min-width: 0; overflow-wrap: anywhere; }
#v-holiday .hol .need { gap: 2px 8px; }
#v-holiday .hol .need .st { display: inline-flex; margin: 0; }
#v-holiday .hol .need .st.ok { color: var(--ok); }
#v-holiday .hol .need .st.wait { color: var(--wait); }
#v-holiday .hol .need .st.ask { color: var(--sea-ink); }
#v-holiday .hol .story-holiday-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  color: var(--story-ink, #102e36);
  cursor: pointer;
  font-weight: 700;
}
#v-holiday .hol .story-holiday-choice input {
  margin: 0;
  flex: none;
  accent-color: #164c49;
}
#v-holiday .hol .story-holiday-choice span { color: inherit; }

@container (min-width: 700px) {
  #v-help .story-help-board { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  #v-holiday .story-holiday-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 850px) {
  #v-help .story-help-routines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* School's diary and correspondence share the illustrated workspace. */
#v-school .story-page-head--school {
  --school-art-width: min(45%, clamp(320px, 26vw, 420px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: clamp(156px, 11vw, 210px);
  padding-inline-end: calc(var(--school-art-width) + 14px);
  margin-block-end: 0;
}

#v-school .school-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: var(--school-art-width);
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

#v-school :is(.school-story, .school-layout, .school-plans, .school-correspondence) {
  display: grid;
  gap: var(--story-space);
  min-width: 0;
}

#v-school .school-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
}

#v-school .school-layout .card {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 1.55vw, 23px);
  background: var(--chapter-glass, var(--story-light));
  border: 1px solid var(--chapter-rim, var(--story-line));
  border-radius: var(--story-radius);
  box-shadow: var(--chapter-depth, none);
  color: var(--story-ink);
}

#v-school .school-layout .school-agenda {
  container-type: inline-size;
  background: var(--chapter-honey, var(--story-paper));
}

#v-school .school-agenda-head,
#v-people .people-link-head,
#v-osian .story-sizes-head {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: end;
  min-height: clamp(78px, 8vw, 115px);
  padding: 12px 52% 12px 14px;
  overflow: hidden;
  border-radius: 10px;
  color: var(--story-paper);
  background: linear-gradient(115deg, #10343a, #235852);
}

#v-school .school-agenda-art,
#v-people .people-link-art,
#v-osian .story-sizes-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 69%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  mask-image: linear-gradient(90deg, transparent, #000 50%);
}

#v-school .school-agenda-art[src$="/forest.webp"],
#v-people .people-link-art,
#v-osian .story-sizes-art { object-position: center 19%; }

#v-school .school-layout .school-website { background: var(--chapter-aqua, var(--story-light)); }

#v-school .school-layout :is(.card h2, .card > .eb) {
  display: block;
  margin: 0;
  color: inherit;
  font: 700 clamp(1.2rem, 1.6vw, 1.62rem)/1.16 var(--font-display);
  letter-spacing: -.02em;
  text-transform: none;
}

#v-school .school-layout .card > .eb .ic {
  margin-inline-end: .28em;
  color: var(--story-teal);
}

#v-school .school-layout :is(a, b, button, h3, small, p) {
  overflow-wrap: anywhere;
}

#v-school .school-layout :is(p.fine, p.empty, .posted, .by) {
  color: #525f55;
}

#v-school .school-layout .card > p.fine {
  margin-block: 13px 0;
}

#v-school .school-agenda-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#v-school .school-agenda-list li {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--story-line);
  border-radius: 11px;
  background: var(--story-light);
  min-width: 0;
}

#v-school .school-date {
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: stretch;
  padding: 7px 0;
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
  border-inline-end: 1px solid var(--story-line);
  background: var(--chapter-honey, #f8e7c7);
  color: #61451f;
  line-height: 1.04;
}

#v-school .school-date span,
#v-school .school-date small {
  font-size: .68rem;
  font-weight: 760;
  text-transform: uppercase;
}

#v-school .school-date b {
  padding-block: 1px 2px;
  font: 700 1.28rem/1 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
}

#v-school .school-date-items {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 9px;
}

#v-school .school-date-items .tagc {
  padding: 3px 0;
  border-radius: 5px;
  background: transparent;
  font-size: .82rem;
  white-space: normal;
}

#v-school .school-date-items .tagc.cash {
  width: fit-content;
  padding-inline: 5px 8px;
  background: #fff0bf;
}

#v-school .school-date-items button.tagc {
  min-height: 44px;
  align-items: center;
}

#v-school .school-date-items button.tagc .ic {
  margin-top: 0;
}

#v-school .school-date-items button.tagc:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#v-school .school-layout :is(.rows li, .letter, .post, .clist li, .hwl li) {
  border-color: var(--story-line);
}

#v-school .school-correspondence :is(.letter, .post) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--story-line);
}

#v-school .school-correspondence h2 + :is(.letter, .post) {
  margin-top: 10px;
}

#v-school .school-correspondence .letter:has(.school-letter-media) {
  grid-template-columns: clamp(68px, 8vw, 112px) minmax(0, 1fr);
}

#v-school .school-correspondence .post:has(.thumb) {
  grid-template-columns: clamp(54px, 6vw, 91px) minmax(0, 1fr);
}

#v-school .school-letter-media {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#v-school .school-correspondence :is(.school-letter-media .thumb, .post .thumb) {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 9px;
}

#v-school .school-letter-media .thumb:first-child {
  aspect-ratio: 4 / 5;
}

#v-school .school-letter-media .thumb + .thumb {
  width: 44px;
  justify-self: start;
}

#v-school .school-correspondence :is(.letter h3, .post h3) {
  margin: 0;
  font: 750 1.04rem/1.22 var(--font-body);
  letter-spacing: -.012em;
}

#v-school .school-post-copy .posted {
  margin-top: 4px;
}

#v-school .school-post-copy p {
  margin: 7px 0 0;
}

#v-school .school-correspondence .btns {
  margin-top: 8px;
}

#v-school .school-layout .btn {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
}

#v-school .school-layout .btn.go {
  color: var(--story-light);
  background: var(--story-teal);
  border-color: var(--story-teal);
  box-shadow: none;
}

#v-school .school-layout .btn:not(.go, .quiet) {
  background: var(--story-light);
  color: var(--story-teal);
  border-color: var(--story-line);
  box-shadow: none;
}

#v-school #schoolMealsCard {
  container-type: inline-size;
}

#v-school .meal-week {
  border-block: 1px solid var(--story-line);
  padding: 6px 0;
}

@container (min-width: 550px) {
  #v-school .school-agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #v-school .meal-rows {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  #v-school .meal-rows li {
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 10px;
    padding: 10px 8px;
    background: #f4ecd8;
    align-content: start;
    gap: 5px;
  }
}

@media (hover: hover) {
  #v-school .school-layout .btn.go:hover { background: #13443f; }
  #v-school .school-layout .btn:not(.go, .quiet, :disabled):hover { background: #f2e9d3; }
}

@media (max-width: 930px) {
  #v-school .school-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  #v-school .story-page-head--school {
    --school-art-width: max(52%, 155px);
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: 144px;
    padding-inline-end: calc(var(--school-art-width) - 3px);
  }
}
/* Osian’s care details, household information and everyday actions. */
#v-osian .story-page-head--osian {
  align-items: center;
  min-height: clamp(110px, 8.2vw, 144px);
  padding-inline-end: clamp(152px, 29vw, 370px);
}
#v-osian .story-osian-portrait {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: clamp(150px, 29vw, 370px);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(90deg, transparent, #000 34%);
}

#v-osian .story-osian-main,
#v-osian .story-osian-columns,
#v-osian .story-osian-stack {
  display: grid;
  align-items: start;
  min-width: 0;
  gap: var(--story-space);
}
#v-osian .story-osian-main .card { min-width: 0; }
#v-osian .story-osian-profile { container-type: inline-size; }
#v-osian .story-osian-main #sizesCard {
  background: var(--chapter-aqua, var(--story-light));
}
#v-osian .story-sizes-head { padding-inline-end: 42%; }
#v-osian .story-sizes-head h2 { margin: 0; color: inherit; }
#v-osian .story-sizes-head h2 .ic { margin-inline-end: 6px; }
#v-osian .story-osian-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
}
#v-osian .story-osian-panel-head h2 { margin: 0; }
#v-osian .story-osian-groups {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
#v-osian .story-osian-facts {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--chapter-rim, var(--story-line));
  border-radius: 10px;
  background: var(--chapter-honey, #f7f0e0);
}
#v-osian .story-osian-facts:nth-child(even) { background: var(--chapter-aqua, #e9f2ed); }
#v-osian .story-osian-facts h3 {
  margin: 0;
  color: #174b46;
  font: 700 1rem/1.3 var(--font-display);
}
#v-osian .story-osian-facts dl { margin: 4px 0 0; }
#v-osian .story-osian-facts dl > div {
  padding: 5px 0;
  border-bottom: 1px solid var(--story-line);
}
#v-osian .story-osian-facts dl > div:last-child { padding-bottom: 0; border: 0; }
#v-osian .story-osian-facts dt {
  margin: 0 0 2px;
  color: #365852;
  font-size: .76rem;
  font-weight: 800;
}
#v-osian .story-osian-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--story-ink);
  font-size: .87rem;
  line-height: 1.4;
}
#v-osian .story-osian-unfilled { margin-top: 8px; }
#v-osian .story-osian-unfilled p {
  margin: 0 0 5px;
  color: #53594d;
  font-size: .76rem;
  font-weight: 750;
}
#v-osian .story-osian-unfilled ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#v-osian .story-osian-unfilled li {
  min-width: 0;
  padding: 3px 7px;
  border: 1px solid var(--story-line);
  border-radius: 6px;
  background: var(--story-light);
  color: #565b51;
  font-size: .73rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#v-osian .story-osian-main .card:not(.ill) > .eb {
  color: #174b46;
  font: 720 clamp(1.12rem, 1.7vw, 1.43rem)/1.18 var(--font-display);
  letter-spacing: -.02em;
  text-transform: none;
}
#v-osian .story-osian-main .btn {
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  box-shadow: none;
}
#v-osian .story-osian-main .btn:not(.go, .quiet),
#v-osian .story-osian-main .seg {
  border: 1px solid var(--story-line);
  border-radius: 8px;
  background: #f7efdd;
  color: #214a45;
  box-shadow: none;
}
#v-osian .story-osian-main :is(.btn.go, #poorlyCard:not(.ill) [data-ill="mark"], .seg button[aria-pressed="true"]) {
  background: #174b46;
  border-color: transparent;
  color: #fff5df;
  box-shadow: none;
}
#v-osian .story-osian-main .seg button {
  min-width: 0;
  border-radius: 6px;
  color: #214a45;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#v-osian .story-osian-main :is(.btn, .thingb, .seg button):focus-visible { outline-color: #155453; }
@media (hover: hover) {
  #v-osian .story-osian-main .btn:not(.go, .quiet, :disabled):hover,
  #v-osian .story-osian-main .seg button:not([aria-pressed="true"], :disabled):hover {
    box-shadow: inset 0 0 0 1px currentColor;
    background: #efe4cc;
  }
  #v-osian .story-osian-main :is(.btn.go, #poorlyCard:not(.ill) [data-ill="mark"]):not(:disabled):hover {
    background: #225d54;
  }
}

#v-osian .story-osian-main :is(.kv, .rows, .gifts, .whgrid, .meds) { overflow-wrap: anywhere; }
#v-osian .story-osian-main .sizes li {
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  padding-block: 6px;
}
#v-osian .story-osian-main .whgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#v-osian .story-osian-main .whc {
  min-width: 0;
  border-radius: 8px;
  background: #f1f2fc;
}
#v-osian .story-osian-main .whc.mum { background: #fff2e6; }
#v-osian .story-osian-main .thingb {
  min-height: 44px;
  border: 1px solid var(--story-line);
  border-radius: 7px;
  background: var(--story-light);
}

@container (min-width: 530px) {
  #v-osian .story-osian-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  #v-osian .story-osian-columns { grid-template-columns: minmax(0, 1fr) minmax(304px, 37%); }
}

/* Household access and device controls on the People page. */
#v-people .story-page-head--people {
  --story-page-art: url("/api/storybook/art/week-landscape.webp");
  --story-page-art-y: 63%;
  align-items: center;
}

#v-people .people-layout,
#v-people .people-column {
  display: grid;
  min-width: 0;
  gap: var(--story-space);
  align-items: start;
}

#v-people .people-layout {
  grid-template-columns: minmax(0, 1fr);
}

#v-people .people-layout .card {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 1.55vw, 24px);
  border-radius: var(--story-radius);
  background: var(--chapter-glass, var(--story-light));
  border-color: var(--chapter-rim, var(--story-line));
  box-shadow: var(--chapter-depth, none);
}

#v-people .people-group {
  --people-icon-tint: #dcebe0;
  --people-icon-ink: #235a50;
}

#v-people .people-group--mum {
  --people-icon-tint: #f7e6cd;
  --people-icon-ink: #77431d;
}

#v-people .people-layout .people-group--family { background: var(--chapter-aqua, var(--story-light)); }
#v-people .people-layout .people-link-info { background: var(--chapter-honey, var(--story-light)); }
#v-people .people-link-head { padding-inline-end: 39%; }
#v-people .people-link-head h2 { color: inherit; }

#v-people .people-group--owner {
  --people-icon-tint: #e1ecee;
  --people-icon-ink: #164d5c;
}

#v-people .people-layout h2 {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  overflow-wrap: anywhere;
}

#v-people .people-layout h2 .ic {
  width: 31px;
  height: 31px;
  padding: 7px;
  flex: none;
  border-radius: 9px;
  background: var(--people-icon-tint, #f7e6cd);
  color: var(--people-icon-ink, #77431d);
}

#v-people .people-group .people {
  margin-top: 11px;
}

#v-people .people-group .people li {
  display: block;
  padding: 0;
  border-color: var(--story-line);
}

#v-people .person-summary,
#v-people .people-access summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--story-ink);
  list-style: none;
  cursor: pointer;
}

#v-people summary::-webkit-details-marker { display: none; }

#v-people .person-summary {
  min-height: 58px;
  padding-block: 8px;
  border-radius: 8px;
}

#v-people .person-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

#v-people .person-identity .av {
  width: 38px;
  height: 38px;
}

#v-people .person-identity b {
  font-size: .96rem;
  line-height: 1.35;
}

#v-people .person-identity small {
  margin-top: 3px;
  line-height: 1.36;
}

#v-people .person-identity :is(small, .meta),
#v-people .people-access dd {
  color: #485e55;
}

#v-people .person-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--chapter-rim, var(--story-line));
  border-radius: 8px;
  color: var(--story-teal);
  background: var(--chapter-glass, var(--story-light));
  font-size: .76rem;
  font-weight: 750;
}

#v-people :is(.person-manage, .people-access)[open] summary > :last-child .ic,
#v-people .people-access[open] summary > .ic {
  transform: rotate(90deg);
}

#v-people .person-controls {
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid var(--story-line);
  border-radius: 9px;
  background: var(--chapter-honey, var(--story-paper));
}

#v-people .person-controls .btns {
  gap: 6px;
  margin: 0;
}

#v-people .person-controls .btn {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: start;
  overflow-wrap: anywhere;
  box-shadow: none;
}

#v-people .person-controls .btn:not(.quiet) {
  background: var(--story-light);
  color: var(--story-teal);
  border-color: var(--story-line);
}

#v-people .person-controls .person-revoke {
  margin-top: 7px;
  padding-top: 3px;
  border-top: 1px solid var(--story-line);
}

#v-people .person-revoke .btn {
  padding-inline: 6px;
  color: #8a332b;
}

#v-people .person-revoke .btn:hover { text-decoration: underline; }

#v-people .people-link-info p {
  margin: 8px 0;
  max-width: 56ch;
  color: #485e55;
}

#v-people .people-access {
  border-top: 1px solid var(--story-line);
}

#v-people .people-access summary {
  justify-content: start;
  padding: 2px 0;
  color: var(--story-teal);
  font-size: .87rem;
  font-weight: 760;
}

#v-people .people-access dl {
  margin: 0;
  font-size: .84rem;
  line-height: 1.48;
}

#v-people .people-access dt { font-weight: 750; }
#v-people .people-access dd { margin: 0; }
#v-people .people-access dd + dt { margin-top: 8px; }

@media (hover: hover) {
  #v-people .person-summary:hover .person-toggle,
  #v-people .person-controls .btn:not(.quiet):hover { background: #f2ead7; }

  #v-people .people-access summary:hover { text-decoration: underline; }
}

@media (min-width: 760px) {
  #v-people .people-layout,
  #v-people .people-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #v-people .people-column { grid-column: 1 / -1; }
}

@media (min-width: 1260px) {
  #v-people .people-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .78fr);
  }

  #v-people .people-column {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Photos and its print-book workshop */
:is(#v-photos, #v-book) { container-type: inline-size; }
#v-photos #photosAdd .bigpick {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #fff5df75;
  border-radius: 999px;
  color: var(--story-paper);
  background: var(--story-night);
  box-shadow: none;
  font-size: .86rem;
}
#v-photos #photosAdd .bigpick .ic { color: inherit; }
#v-photos #photosAdd .bigpick:focus-within { outline-color: var(--story-sun); }

#v-photos .story-photos-layout,
#v-book :is(.story-book-layout, .story-book-edit) {
  display: grid;
  gap: var(--story-space);
  align-items: start;
  min-width: 0;
}
#v-photos :is(.story-photos-book, #photosList), #v-book .story-book-layout > * { min-width: 0; }

#v-photos #bookCard {
  padding: 0;
  background: #f4e8cc;
  overflow: hidden;
}
#v-photos #bookCard > div { padding: clamp(12px, 1.45vw, 20px); }
#v-photos #bookCard h2 { margin-top: 0; }
#v-photos .story-photos-cover {
  display: block;
  width: 100%;
  height: clamp(130px, 13vw, 220px);
  object-fit: cover;
}
#v-photos .story-photos-list { padding: clamp(12px, 1.7vw, 24px); }
#v-photos .story-photos-list h2 { margin: 0; }
#v-photos .story-photos-list .phday {
  padding-top: 13px;
  margin-top: 14px;
  border-color: var(--story-line);
}
#v-photos .story-photos-list .phh h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #184743;
  font: 750 .95rem/1.4 var(--font-body);
}
#v-photos .story-photos-list .phh small { color: #4c5b52; overflow-wrap: anywhere; }
#v-photos .story-photos-list .phgrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr));
  gap: 8px;
}
#v-photos .story-photos-list .did {
  background: #f5ead0;
  box-shadow: inset 0 0 0 1px var(--story-line);
}
#v-photos .story-photos-list .didh { flex-wrap: wrap; }
#v-photos .story-photos-list .didh button { min-height: 44px; }

#v-book .story-book-layout .card { padding: clamp(12px, 1.5vw, 22px); }
#v-book .story-book-layout h2 { margin: 0 0 8px; }
#v-book .story-book-edit .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#v-book .story-book-edit select { min-width: 0; }
#v-book .story-book-edit .bk-pick {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 90px), 1fr));
}
#v-book .story-book-edit .phthumb { width: 100%; }
#v-book .story-book-edit .linkish {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  width: 100%;
  padding-inline: 4px;
  text-align: center;
}
#v-book .story-book-layout .story-book-preview { background: var(--chapter-aqua, #f3ead5); }
#v-book .bk-prevs {
  --book-preview-size: 140px;
  --book-preview-scale: .17639;
  grid-template-columns: repeat(auto-fill, minmax(var(--book-preview-size), max-content));
  justify-content: start;
  gap: clamp(8px, 1.2vw, 16px);
}
#v-book .bk-slot {
  width: var(--book-preview-size);
  height: var(--book-preview-size);
  border-radius: 4px;
  box-shadow: 0 4px 9px #21362d29;
}
#v-book .bk-slot .bk-page { transform: scale(var(--book-preview-scale)); }

@container (max-width: 719px) {
  #v-photos #bookCard:has(.story-photos-cover) {
    display: grid;
    grid-template-columns: minmax(72px, .7fr) minmax(0, 1.4fr);
    align-items: stretch;
  }
  #v-photos #bookCard .story-photos-cover { height: 100%; }
}
@container (min-width: 720px) {
  #v-photos .story-photos-layout { grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr); }
  #v-photos .story-photos-list .phgrid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  #v-book .story-book-layout { grid-template-columns: minmax(260px, .67fr) minmax(0, 1fr); }
  #v-book .bk-prevs {
    --book-preview-size: 180px;
    --book-preview-scale: .2268;
  }
}

/* Help and holiday cover */
#v-help :is(.story-help-actions, .story-help-responses) {
  display: grid;
  align-content: start;
  gap: var(--story-space, 14px);
  min-width: 0;
}
#v-help .story-help-panel h2 .story-help-count {
  margin-inline-start: 2px;
  padding: 2px 7px;
  border-radius: 6px;
  color: #24514b;
  background: #fffbef;
}
#v-help .story-help-panel .when {
  justify-content: flex-start;
  align-items: baseline;
  column-gap: 9px;
}
#v-help .story-help-panel .when time {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f3e8cd;
  color: #594725;
  font-weight: 700;
  white-space: nowrap;
}
#v-help .story-help-sorted .when time { background: #dce8dc; color: #35584c; }

#v-help .story-help-routines {
  display: block;
  padding: clamp(14px, 1.4vw, 22px);
  overflow: clip;
}
#v-help .story-help-routine-head {
  --routine-padding: clamp(14px, 1.4vw, 22px);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  align-content: end;
  min-height: clamp(94px, 9vw, 148px);
  margin: calc(-1 * var(--routine-padding)) calc(-1 * var(--routine-padding)) 0;
  padding: 12px var(--routine-padding);
  background: linear-gradient(90deg, #0f393bf7, #103a3d9e 48%, #103a3d0d 82%), #174044;
}
#v-help .story-help-routine-head .story-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(85%, 540px);
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}
#v-help .story-help-routine-head h2 {
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #fff4d85c;
  border-radius: 10px;
  color: #fff6de;
  background: linear-gradient(145deg, #285456e8, #12393bd9);
  box-shadow: 0 3px 10px #102f364d;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#v-help .story-help-routine {
  padding-block: 12px;
  border-top: 1px solid var(--story-line, #ddcfae);
}
#v-help .story-help-routine:last-child { padding-bottom: 0; }
#v-help .story-help-routine h3 {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  font: 800 .92rem/1.35 var(--font-body);
}
#v-help .story-help-routine h3 .ic { color: #365f51; }
#v-help .story-help-routine p { margin: 5px 0 0; }
#v-help .story-help-routine .btn { min-height: 44px; }

#v-help .story-help-waiting .story-help-list { margin-block-start: 10px; }
#v-help .story-help-waiting .gap { padding: 0; }
#v-help .story-help-request > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
}
#v-help .story-help-request > summary::-webkit-details-marker { display: none; }
#v-help .story-help-request > summary:focus-visible {
  outline: 2px solid #286861;
  outline-offset: 3px;
  border-radius: 5px;
}
#v-help .story-help-request-copy { min-width: 0; }
#v-help .story-help-request-copy .what { display: block; color: #504c40; }
#v-help .story-help-request > summary > .ic { flex: none; color: #34605b; }
#v-help .story-help-request[open] > summary > .ic { transform: rotate(90deg); }
#v-help .story-help-request-body {
  margin: 0 0 10px;
  padding: 8px 10px 10px;
  border: 1px solid var(--chapter-rim, var(--story-line));
  border-radius: 10px;
  background: #fffaf0a8;
}
#v-help .story-help-request-body .who { margin: 2px 0 0; }
#v-help .story-help-request-body .btn { min-height: 44px; }

#v-holiday .story-holiday-guide {
  width: 100%;
  color: #fff7e5;
  border-color: #386160;
  box-shadow: var(--chapter-depth, none);
  background: linear-gradient(90deg, #102f36 18%, #12383de8 50%, #12383d26),
    #173b3c url("/scenery/month-valley.webp") 68% 62% / cover no-repeat;
}
#v-holiday .story-holiday-guide summary {
  align-content: center;
  min-height: 58px;
  padding-inline: 3px;
}
#v-holiday .story-holiday-guide summary:focus-visible {
  outline: 2px solid var(--story-sun, #ffd27f);
  outline-offset: -2px;
  border-radius: 6px;
}
#v-holiday .story-holiday-guide p {
  max-width: 68ch;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff7e5;
  background: #102f36f0;
}
#v-holiday .story-holiday-date { justify-content: flex-start; }
#v-holiday .story-holiday-date p { padding: 3px 7px; border-radius: 5px; color: #594725; background: #f3e8cd; }
#v-holiday .story-holiday-summary { margin: 9px 0 0; }

@container (min-width: 700px) {
  #v-help .story-help-board { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}

/* Photo diary and photo book */
#v-photos .story-page-head--photos {
  --story-page-art: url("/api/storybook/art/week-landscape.webp");
  --story-page-art-y: 58%;
}

#v-book .story-page-head--book {
  --book-art-width: clamp(164px, 31vw, 390px);
  --story-page-art: linear-gradient(120deg, #102f36 25%, #256057);
  align-items: center;
  min-height: clamp(124px, 10vw, 166px);
  padding-inline-end: calc(var(--book-art-width) + 12px);
}

#v-book .story-book-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: var(--book-art-width);
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  mask-image: linear-gradient(90deg, transparent, #000 48%);
}

#v-photos #photosList { padding: 0; overflow: clip; }
#v-photos .story-photos-entry {
  padding: clamp(16px, 2.4vw, 34px);
  background: var(--chapter-honey, #f8edd5);
}
#v-photos .story-photos-entry:has(#photoDiaryEmpty[hidden]) {
  background:
    linear-gradient(90deg, #fcf3df 38%, #fcf3dff5 66%, #fcf3df31 100%),
    url("/api/storybook/art/forest.webp") right 20% / max(51%, 176px) auto no-repeat,
    var(--chapter-honey, #fcf3df);
}
#v-photos .story-photos-entry-copy { min-width: 0; }
#v-photos .story-photos-entry:has(#photoDiaryEmpty[hidden]) .story-photos-entry-copy {
  max-inline-size: 58%;
}
#v-photos #photosAdd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-start: 12px;
}
#v-photos #photosAdd .btn { min-height: 44px; }
#v-photos #photosAdd .bigpick,
#v-book .story-book-empty .bigpick {
  width: fit-content;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--story-line, #ddcfae);
  border-radius: 999px;
  color: var(--story-ink, #102e36);
  background: #fffaf0;
  box-shadow: none;
  font-size: .86rem;
}
#v-photos #photosAdd .bigpick:focus-within { outline: 2px solid #226a60; outline-offset: 2px; }
#v-photos .story-photos-entry:has(#photoDiaryEmpty:not([hidden])) {
  display: grid;
  align-items: end;
  min-height: clamp(272px, 25vw, 374px);
  background:
    linear-gradient(90deg, #103638 4%, #103638e8 32%, transparent 78%) left center / 100% 100%,
    linear-gradient(0deg, #103638 4%, #10363833 58%, transparent) left center / 100% 100%,
    #103638 url("/api/storybook/art/forest.webp") right 25% / max(62%, 300px) auto no-repeat;
  color: #fff5df;
}
#v-photos .story-photos-entry:has(#photoDiaryEmpty:not([hidden])) h2 {
  color: inherit;
  font-size: clamp(1.48rem, 2.3vw, 2rem);
}
#v-photos #photoDiaryEmpty { margin: 5px 0 0; color: inherit; }
#v-photos .story-photos-entry:has(#photoDiaryEmpty:not([hidden])) #photosAdd .btn.go {
  color: #103638;
  border-color: #ffd37c;
  background: #ffd37c;
}
#v-photos .story-photos-entry:has(#photoDiaryEmpty:not([hidden])) #photosAdd .bigpick {
  color: #fff5df;
  border-color: #fff5df8c;
  background: #11373b;
}
#v-photos .story-photos-entry:has(#photoDiaryEmpty:not([hidden])) #photosAdd :is(.btn:focus-visible, .bigpick:focus-within) {
  outline: 2px solid #ffd37c;
  outline-offset: 2px;
}
#v-photos .story-photos-entries { padding: 0 clamp(16px, 2.4vw, 34px) clamp(16px, 2.4vw, 34px); }
#v-photos .story-photos-entries > .phday:first-child { border-top: 0; margin-top: 0; }

#v-photos #bookCard {
  display: grid;
  align-content: start;
  background: var(--chapter-aqua, #f7ecd4);
}
#v-photos #bookCard > div { padding: clamp(14px, 1.45vw, 22px); }
#v-photos #bookCard p { max-width: 36ch; margin: 4px 0 0; }
#v-photos #bookCard .story-photos-book-action { padding-top: 9px; }
#v-photos .story-photos-book-action .btn { min-height: 44px; }
:is(#v-photos, #v-book) .story-book-jacket {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 2px 16px 9px;
}
:is(#v-photos, #v-book) .story-book-jacket-cover {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: end;
  width: min(100%, 178px);
  aspect-ratio: 1;
  border-radius: 4px 8px 8px 4px;
  overflow: hidden;
  border-inline-start: 6px solid #17464a;
  border-block-end: 4px solid #d9ccaf;
  color: #fff5df;
  background: #16484a url("/api/storybook/art/week-landscape.webp") 68% 56% / cover no-repeat;
  box-shadow: 0 9px 14px #2e483d35;
}
:is(#v-photos, #v-book) .story-book-jacket-cover img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
:is(#v-photos, #v-book) .story-book-jacket-cover span {
  padding: 10px 10px 12px;
  background: #113d41;
  color: #fff1d3;
  font: 700 1.06rem/1.1 var(--font-display);
  text-align: center;
}
:is(#v-photos, #v-book) .story-book-jacket figcaption {
  color: #5e4d2d;
  font-size: .77rem;
  font-weight: 750;
}
#v-book .story-book-empty {
  display: grid;
  justify-items: start;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 2.4vw, 34px);
  background: var(--chapter-honey, #f7ecd4);
}
#v-book .story-book-empty p { margin: 6px 0 12px; }
#v-book .story-book-empty .bigpick { color: #fff5df; background: #164c49; border-color: #164c49; }
#v-book .story-book-empty .bigpick .ic { color: inherit; }
#v-book .story-book-empty .story-book-jacket { width: 100%; padding: 7px 0; }
#v-book .story-book-empty .story-book-jacket-cover { width: min(100%, 220px); }

@container (min-width: 520px) {
  #v-book .story-book-empty { grid-template-columns: minmax(0, 1fr) minmax(190px, .65fr); }
}
@container (min-width: 720px) {
  #v-photos .story-photos-layout { grid-template-columns: minmax(0, 1.7fr) minmax(238px, 1fr); }
}
@container (max-width: 719px) {
  #v-photos .story-photos-entry:has(#photoDiaryEmpty:not([hidden])) {
    background-size: 100% 100%, 100% 100%, max(80%, 290px) auto;
    background-position: left center, left center, right top;
  }
}

@container (max-width: 500px) {
  #v-book .story-page-head--book {
    --book-art-width: max(49%, 154px);
    align-content: center;
    padding-inline-end: max(41%, 121px);
  }
  #v-book .story-page-head--book .btn { white-space: normal; }
}

#v-month > :is(.story-needs, .card.hi) { margin-block: var(--story-space); }
#v-month > .card.hi { margin-top: 0; }

.story-needs:has(> .nyou-list[data-n="1"]) { max-width: 680px; }
.story-needs-note {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 10px;
  background: #e3f2ef; box-shadow: inset 0 0 0 1px #b5dcd5; color: #0f4f49; font-size: .86rem; font-weight: 700;
}
.story-needs-calm .story-needs-note { grid-column: 1 / -1; }
.story-needs-note b { display: block; }

/* Needs you on a wide screen takes only the room its words need (Adam, 22 Nov 2026: "these two bits do not need to be that big").
   An item that only points to another page is one slim row; with one such item the title sits beside it on a laptop or desktop. */
@media (min-width: 700px) {
  .story-needs-calm { width: fit-content; max-width: 100%; justify-self: start; }
  .story-needs:has(> .nyou-list[data-n="1"] > .nyou-slim) { width: fit-content; max-width: min(100%, 1160px); justify-self: start; }
  .nyou-list[data-n="1"] > .nyou-slim { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px; padding: 8px 12px; }
  .nyou-list[data-n="1"] > .nyou-slim .nyou-eb { flex: none; }
  .nyou-list[data-n="1"] > .nyou-slim p { flex: 0 1 auto; }
  .nyou-list[data-n="1"] > .nyou-slim .btns { margin: 0 0 0 auto; padding: 0; }
  .nyou-list[data-n="1"] > .nyou-slim .nyou-title + .nyou-title::before { content: "\00b7"; margin-right: 12px; font-weight: 400; }
}
@media (min-width: 1000px) {
  .story-needs:has(> .nyou-list[data-n="1"] > .nyou-slim) { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 8px 12px; }
  .story-needs:has(> .nyou-list[data-n="1"] > .nyou-slim) .story-needs-head { margin: 0; flex: none; }
  .story-needs:has(> .nyou-list[data-n="1"] > .nyou-slim) .nyou-list { flex: 1 1 auto; min-width: 0; max-width: none; }
  .story-needs:has(> .nyou-list[data-n="1"] > .nyou-slim) .nyou-item { border: 0; box-shadow: none; background: none; padding: 0; }
}
@media (min-width: 1000px) {
  .story-needs:has(> .nyou-list[data-n="1"] > .nyou-slim) > .story-needs-note { flex: 1 0 100%; order: 3; }
}

/* Story Time shares the chapter shell. Only the open book uses the full screen. */
.osian-workspace:has(#tabs [data-go="storytime"]) { --planner-rail: 202px; }
.tab[data-go="storytime"] { white-space: nowrap; }
.tab[data-go="storytime"] svg { flex: none; }
.tab .story-nav-short { display: none; }
@media (min-width: 901px) and (max-width: 1279px) {
  .osian-workspace .tab[data-go="storytime"] { flex: 0 0 auto; }
}
@media (max-width: 900px) {
  .tab .story-nav-full { display: none; }
  .tab .story-nav-short { display: inline; }
}
@media (max-width: 359px) {
  html:has(.osian-workspace #tabs [data-go="storytime"]):has(#tabs.seven:not(.story-family)) { --story-extra-dock: 48px; }
  .osian-workspace:has(#v-today:not([hidden]), main > section:not([hidden]) .story-page-head) #tabs.seven:not(.story-family):has([data-go="storytime"]) {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.story-library-head { align-items: start; }
.story-library-head .story-page-copy { flex-basis: 220px; }
.story-shelf {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: var(--story-space);
}
.story-shelf-card {
  display: grid; grid-template: "cover copy" 1fr "cover actions" auto / clamp(90px, 19vw, 156px) minmax(0, 1fr);
  align-items: start; gap: 12px 16px;
}
.story-shelf-cover {
  grid-area: cover; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid var(--story-line); border-radius: 9px; background: var(--story-light); cursor: pointer;
}
.story-shelf-cover img { display: block; width: 100%; aspect-ratio: 1280 / 1240; object-fit: contain; }
.story-shelf-copy { grid-area: copy; min-width: 0; }
.story-library .story-shelf-copy h2 { margin-block: 0; }
.story-shelf-copy p { margin: 6px 0 0; }
.story-shelf-card .story-shelf-actions { grid-area: actions; }
.story-shelf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.story-shelf-add, .story-shelf-status { margin: 0 0 var(--story-space); }
.story-shelf-status:empty, #story-uploadStatus:empty { display: none; }
.story-shelf-add input[type="file"] { max-width: 100%; min-height: 44px; font: inherit; }
.osian-tablet:has(#tablet-storytime:not([hidden])) main > :not(#tablet-storytime) { display: none; }
.osian-tablet .story-library .card { background: var(--chapter-glass); }
.osian-tablet .story-library .btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px;
  border: 1px solid var(--story-line); border-radius: 12px; background: var(--story-light);
  color: var(--story-ink); font: 750 .86rem var(--workspace-heading); text-decoration: none; cursor: pointer;
}
.osian-tablet .story-library .story-page-actions .btn { min-height: 44px; }
.osian-tablet .story-library .story-shelf-copy h2 { font-family: var(--font-display); }

/* Opening a book keeps the chapter frame. The explicit full-screen control expands the same reader. */
.story-library :is(#story-shelf-view, #story-library-actions, .story-reader)[hidden] { display: none; }
.story-reader {
  display: grid; min-inline-size: 0; padding: var(--story-space); gap: 12px;
  border: 1px solid var(--chapter-rim); border-radius: var(--story-radius);
  background: var(--chapter-glass); color: var(--story-ink);
}
.story-reader-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
}
.story-reader-bar h2 { flex: 1 1 16rem; margin: 0; font: 700 clamp(1.12rem, 2vw, 1.56rem)/1.2 var(--font-display); }
.story-reader-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.story-reader .btn { min-height: 44px; }
.story-reader button:disabled { opacity: .46; cursor: default; }
.story-reader-page {
  --story-page-gesture: pan-y pinch-zoom;
  position: relative; display: grid; place-items: center; min-inline-size: 0; block-size: min(63vh, 44rem); block-size: min(63svh, 44rem);
  margin: 0; padding: 12px 18px; border-radius: 12px; overflow: hidden; touch-action: var(--story-page-gesture);
  background: radial-gradient(ellipse at 50% 45%, var(--story-teal), var(--story-night) 76%);
}
.story-reader-page.is-zoomed { --story-page-gesture: pan-x pan-y pinch-zoom; }
@media (orientation: landscape) {
  .osian-tablet .story-reader-page {
    block-size: min(63svh, max(14rem, calc(100svh - 24rem)));
  }
}
.story-reader-fullscreen {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: auto;
  background: var(--story-night);
}
html:has(.story-reader-fullscreen[open]) { overflow: hidden; }
.story-reader-fullscreen .story-reader {
  grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100%; height: 100%; gap: 0;
  padding: 0; border: 0; border-radius: 0; background: var(--story-night); color: var(--story-paper);
}
.story-reader-fullscreen .story-reader-bar {
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
}
.story-library .story-reader-fullscreen .story-reader-page {
  block-size: auto; min-block-size: 0; aspect-ratio: auto; border-radius: 0;
  padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
}
.story-reader-fullscreen .btn { background: var(--story-light); color: var(--story-ink); }
.story-reader-fullscreen .btn.go { background: var(--story-sun); color: var(--story-night); }
.story-reader-fullscreen :focus-visible { outline: 3px solid var(--story-sun); outline-offset: 2px; }
.story-book-binding {
  position: relative; max-width: 100%; max-height: 100%; padding: 10px 15px 10px 22px;
  border-radius: 5px 14px 14px 5px; background: #783d34;
  box-shadow: 0 14px 32px #02181b99, inset 2px 0 1px #c98661, inset -2px 0 2px #462a26;
}
.story-book-binding::before, .story-book-binding::after { content: ""; position: absolute; }
.story-book-binding::before {
  inset: 0 auto 0 7px; width: 8px; background: linear-gradient(90deg, #542b27, #a15d45, #63382d);
}
.story-book-binding::after {
  inset: 15px 7px 15px auto; width: 7px; border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(90deg, #eddfc7 0 1px, #b6aa96 1px 2px);
}
.story-book-paper { width: 100%; height: 100%; overflow: hidden; background: var(--story-paper); border-radius: 2px 6px 6px 2px; transform-origin: left center; }
.story-book-paper img { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: var(--story-page-gesture); }
.story-reader-message {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--story-light); color: var(--story-ink); padding: 12px 16px;
  border-radius: 12px; text-align: center; max-width: 84%;
}
.story-reader-message button { margin: 8px auto 0; }
.story-reader-turns {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.story-reader-fullscreen .story-reader-turns {
  padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.story-reader-turns p { margin: 0; text-align: center; font-variant-numeric: tabular-nums; font-size: .86rem; }
.story-reader-turns .btn { min-width: 7rem; }
@media (pointer: coarse) and (min-width: 650px) {
  .story-reader-turns { gap: 20px; }
  .story-reader-turns .btn { min-width: 9rem; min-height: 54px; }
}
@media (max-width: 767px) and (orientation: portrait) {
  .story-reader-page { block-size: auto; aspect-ratio: 1; }
}
@media (max-width: 520px) {
  .story-library-head h1 { font-size: clamp(1.42rem, 6vw, 1.8rem); }
  .story-shelf-card { grid-template: "title title" auto "cover copy" auto "actions actions" auto / 90px minmax(0, 1fr); }
  .story-shelf-copy { display: contents; }
  .story-shelf-copy h2 { grid-area: title; }
  .story-shelf-description { grid-area: copy; }
  .story-reader-bar { gap: 8px; }
  .story-reader-actions a { display: none; }
  .story-reader-page { padding: 8px; }
  .story-reader-turns { gap: 8px; }
  .story-book-binding { padding: 7px 10px 7px 17px; }
  .story-book-binding::before { left: 4px; }
  .story-book-binding::after { right: 4px; width: 5px; }
  .story-reader-turns .btn { min-width: 5.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .story-book-paper.turn-forward { animation: story-page-forward .2s ease-out; }
  .story-book-paper.turn-back { animation: story-page-back .2s ease-out; }
}
@keyframes story-page-forward { from { transform: perspective(1300px) rotateY(-6deg); opacity: .65; } }
@keyframes story-page-back { from { transform: perspective(1300px) rotateY(6deg); opacity: .65; } }
