/* Lumin Coach: the screens of its own, on the Lumin design system in app.css (same tokens, buttons, cards, motion).
   Copyright (C) 2026 B7 Collective LLC. All rights reserved.
   Widths follow the window size classes the other Lumin apps use: compact under 600px, medium to 839px, expanded 840px
   and up, where a session shows the passage and the step side by side. */

.eyebrow { margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.small { font-size: var(--t-s); }
.pulse { animation: cpulse 1.4s var(--ease) infinite; }
@keyframes cpulse { 50% { opacity: .45; transform: scale(.96); } }

/* ---- Today ------------------------------------------------------------------------------------------------------ */
.todaycard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow-lift); overflow: hidden; }
.today-art { min-height: 148px; background: var(--scene, none) center / cover no-repeat, var(--navy); position: relative; }
.today-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--card) 70%, transparent)); }
.today-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); min-width: 0; }
.today-body h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(clamp(28px, 6vw, 38px) * var(--scale)); line-height: 1.1; }
.today-src { margin: 0; color: var(--muted); font-style: italic; font-family: var(--serif); }
.today-skills { display: flex; flex-direction: column; gap: var(--s2); }
@media (min-width: 720px) {
  .todaycard { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .today-art { min-height: 100%; }
  .today-art::after { background: linear-gradient(to right, transparent 55%, color-mix(in srgb, var(--card) 60%, transparent)); }
  .today-body { padding: var(--s6); }
}
.todaycard.alldone { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .todaycard.alldone { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding-left: var(--s6); } }
.today-keeper { border-radius: 50%; background: var(--tile); box-shadow: var(--shadow); margin: var(--s5) var(--s5) 0; }
@media (min-width: 720px) { .today-keeper { margin: 0; } }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.size { min-height: 60px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--r-m); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: var(--s2); transition: background-color var(--d2) var(--ease), border-color var(--d2) var(--ease), transform var(--d1) var(--ease); }
.size small { color: var(--muted); font-size: var(--t-xs); }
.size[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size[aria-checked="true"] small { color: inherit; opacity: .8; }
.size:active { transform: scale(.97); }
@media (hover: hover) { .size:hover { border-color: var(--ink); } }
.twoup { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .twoup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.week h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-l); }
.weekdots { display: flex; gap: var(--s2); }
.weekdots i { width: 18px; height: 18px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 2px 2px rgba(0, 0, 0, .06); }
.weekdots i.on { background: var(--accent); box-shadow: 0 2px 0 var(--accent-lip); animation: rightPop .5s var(--spring) both; }
.resume { display: flex; align-items: center; gap: var(--s4); text-decoration: none; color: var(--ink); padding-block: var(--s4); }
.resume .srow-txt { display: flex; flex-direction: column; gap: 2px; }
.resume small { color: var(--muted); }
.howto h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); }
.howsteps { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: var(--s3); }
@media (min-width: 720px) { .howsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.howsteps li { counter-increment: how; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px var(--s3); align-items: start; }
.howsteps li::before { content: counter(how); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 0 var(--accent-lip); }
.howsteps li span { color: var(--muted); }
.kidsoon { flex-direction: row; align-items: center; gap: var(--s5); }
.kidsoon h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); }
@media (max-width: 559px) { .kidsoon { flex-direction: column; text-align: center; } .kidsoon .btn { align-self: center; } }

/* ---- Skills ------------------------------------------------------------------------------------------------------ */
.pips { display: inline-flex; gap: 4px; align-items: center; }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .08); }
.pips i.on { background: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 60%, transparent); }
.goal { gap: var(--s4); }
.goalhead { display: flex; align-items: center; gap: var(--s4); }
.goalhead h2 { margin: 0; }
.goalhead p { margin: 2px 0 0; }
.skillrow, .caserow { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: var(--s3) var(--s4); min-height: var(--row-min); padding: var(--row-py) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.skillrow:last-child, .caserow:last-child { border-bottom: 0; }
.skillrow .grow, .caserow .grow { display: flex; flex-direction: column; gap: 2px; }
.skillrow small, .caserow small { color: var(--muted); font-size: var(--t-s); }
.skillstate { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.skillstate small { font-size: var(--t-xs); }
.skillrow .chev, .caserow .chev { color: var(--muted); display: grid; place-items: center; }
@media (hover: hover) { :is(.skillrow, .caserow):hover strong { color: var(--link); } }
@media (max-width: 459px) { .skillrow { grid-template-columns: minmax(0, 1fr) 24px; } .skillstate { grid-column: 1; grid-row: 2; flex-direction: row; align-items: center; gap: var(--s2); } .skillrow .chev { grid-row: 1 / span 2; grid-column: 2; } }
.caserow { grid-template-columns: 36px minmax(0, 1fr) auto 24px; }
.casemark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.caserow[data-state="started"] .casemark { background: color-mix(in srgb, var(--accent) 30%, var(--card)); color: var(--accent-ink); }
.caserow[data-state="done"] .casemark { background: var(--good-bg); color: var(--good); }
@media (max-width: 459px) { .caserow > .muted { display: none; } .caserow { grid-template-columns: 36px minmax(0, 1fr) 24px; } }
.tipcard { background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.tiptext { margin: 0; font-family: var(--serif); font-size: calc(1.1875rem * var(--scale)); line-height: 1.5; max-width: var(--measure); }

/* ---- Themes ------------------------------------------------------------------------------------------------------ */
.themegrid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.themecard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.themeart { aspect-ratio: 16 / 9; background: var(--scene, none) center / cover no-repeat, var(--navy); }
.themebody { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.themebody strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.15; }
.themebody small { color: var(--muted); font-size: var(--t-s); }
@media (hover: hover) { a.themecard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }
a.themecard:active { transform: translateY(2px); }
.themecard.locked { opacity: .75; }
.themecard.soon { background: none; box-shadow: none; border: 2px dashed var(--line); justify-content: center; min-height: 180px; }
.themehero { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--scene, none) center / cover no-repeat, var(--navy); min-height: 280px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lift); }
.themehero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 20, .88), rgba(10, 14, 20, .25) 70%, transparent); }
.themehero-body { position: relative; color: #F4F1EA; padding: var(--s6) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s2); max-width: 60ch; }
.themehero-body h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-2xl); line-height: 1.1; }
.themehero-body p { margin: 0; }
.themehero-body .eyebrow { color: #F2B544; }
.casebar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .22); overflow: hidden; max-width: 320px; }
.casebar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); border-radius: inherit; transition: width .6s var(--spring); }

/* ---- Commonplace book ----------------------------------------------------------------------------------------- */
.kept { display: grid; gap: var(--s4); }
.keptline blockquote { margin: 0; font-family: var(--serif); font-size: calc(1.1875rem * var(--scale)); line-height: 1.55; border-left: 3px solid var(--accent); padding-left: var(--s4); }
.keptline.mine p:first-child { font-family: var(--serif); font-size: var(--t-m); line-height: 1.55; white-space: pre-wrap; }
.keptnote { margin: 0; font-style: italic; }
.goallist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.goallist li { display: flex; gap: var(--s3); align-items: center; }
.goallist li span { display: flex; flex-direction: column; }
.goallist small { color: var(--muted); }
.goallist img { border-radius: 50%; background: var(--tile); flex-shrink: 0; }
.method .section p { max-width: var(--measure); margin: 0; }

/* ---- A session -------------------------------------------------------------------------------------------------- */
.session { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--s3) + var(--safe-top)) var(--gutter) calc(var(--s7) + var(--safe-bottom)); display: flex; flex-direction: column; gap: var(--s4); min-height: 100dvh; }
.app[data-route="session"] .topbar { display: none; }
.shud { position: sticky; top: 0; z-index: 5; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2) 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.scount { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; color: var(--muted); }
.sgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (min-width: 840px) {
  .sgrid { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: var(--s5); }
  .passage { position: sticky; top: 72px; max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .ptoggle { display: none; }
}
.passage { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); scrollbar-width: thin; }
@media (max-width: 559px) { .passage { padding: var(--s5) var(--s4); } }
.phead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.ptoggle { min-height: 32px; font-size: var(--t-s); }
.ptitle { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(clamp(24px, 5vw, 30px) * var(--scale)); line-height: 1.15; }
.psrc { margin: 0; color: var(--ink); font-size: var(--t-s); }
.ptext { font-family: var(--serif); font-size: calc(1.125rem * var(--scale)); line-height: 1.65; max-width: 62ch; transition: filter var(--d3) var(--ease); }
.ptext p { margin: 0 0 .85em; hyphens: auto; -webkit-hyphens: auto; }
.ptext p:last-child { margin-bottom: 0; }
.dw { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline dotted; text-decoration-color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 2px; cursor: help; min-height: 0; }
@media (hover: hover) { .dw:hover { color: var(--link); } }
.pfootline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); }
.readfrom { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--link); min-height: var(--tap); text-decoration: none; }
.readfrom img { border-radius: 6px; }
@media (hover: hover) { .readfrom:hover { text-decoration: underline; } }
.passage.folded .ptext, .passage.folded .pfootline, .passage.folded .psrc { display: none; }
.passage.veiled .ptext { filter: blur(7px); user-select: none; pointer-events: none; }
.stage { display: flex; flex-direction: column; gap: var(--s4); scroll-margin-top: 72px; min-width: 0; }
.stepcard { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow-lift); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); animation: qIn .45s var(--ease) both; min-width: 0; }
@media (max-width: 559px) { .stepcard { padding: var(--s5) var(--s4); } }
.stepcard .qkind { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0; }
.qskill { color: var(--link); font-weight: 700; text-decoration: none; border-left: 1px solid var(--line); padding-left: var(--s2); }
@media (hover: hover) { .qskill:hover { text-decoration: underline; } }
.stepcard .q { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(clamp(20px, 4.4vw, 25px) * var(--scale)); line-height: 1.3; outline: none; text-wrap: pretty; }
.q2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-l); }
.partlabel { margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stepcard .opt { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: var(--s3); text-align: left; min-height: 56px; padding: var(--s3) var(--s4); }
.okey { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; background: var(--soft); color: var(--muted); }
.opt.right .okey { background: var(--good); color: var(--good-bg); }
.opt.wrong .okey { background: var(--bad); color: var(--bad-bg); }
@media (hover: hover) { .opts:not(.answered) .opt:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 0 var(--lip), 0 0 0 2px var(--line); } }
.gapline { margin: 0; font-family: var(--serif); font-size: calc(1.1875rem * var(--scale)); line-height: 1.6; background: var(--bg); border-radius: var(--r-m); padding: var(--s4); }
.gapline .gap { display: inline-block; min-width: 4.5em; border-bottom: 3px solid var(--accent); text-align: center; }
.gapline .gap.filled { color: var(--good); animation: rightPop .45s var(--spring); }
.sentchips { display: flex; flex-direction: column; gap: var(--s2); }
.schip { text-align: left; font-family: var(--serif); font-size: calc(1.0625rem * var(--scale)); line-height: 1.5; background: var(--bg); color: var(--ink); border: 2px solid transparent; border-radius: var(--r-m); padding: var(--s3) var(--s4); min-height: var(--tap); transition: border-color var(--d1) var(--ease), background-color var(--d2) var(--ease), transform var(--d1) var(--ease); }
.schip[aria-pressed="true"] { border-color: var(--ink); background: var(--card); box-shadow: 0 2px 0 var(--lip); }
.schip.right { border-color: var(--good); background: var(--good-bg); color: var(--good); }
.schip.wrong { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.sentchips.answered .schip:not(.right):not(.wrong) { opacity: .5; }
@media (hover: hover) { .sentchips:not(.answered) .schip:hover { border-color: var(--line); } }
.schip:active { transform: scale(.99); }
.wordchips { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--serif); font-size: calc(1.25rem * var(--scale)); background: var(--bg); border-radius: var(--r-m); padding: var(--s4); }
.wchip { font: inherit; background: var(--card); color: var(--ink); border: 0; border-radius: 8px; padding: 4px 10px; min-height: var(--tap); box-shadow: 0 2px 0 var(--lip); transition: transform var(--d1) var(--ease); }
.wchip:active { transform: translateY(2px); box-shadow: none; }
.wchip.right { background: var(--good-bg); color: var(--good); box-shadow: inset 0 0 0 2px var(--good); animation: rightPop .45s var(--spring); }
.wchip.wrong { background: var(--bad-bg); color: var(--bad); animation: shake .42s var(--ease); }
.wordchips.answered .wchip:not(.right):not(.wrong) { opacity: .55; box-shadow: none; }
.orig { margin: 0; font-family: var(--serif); color: var(--muted); }
.orig q { color: var(--ink); }
.sortrows { display: flex; flex-direction: column; gap: var(--s2); }
.sortrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s3); border-radius: var(--r-m); background: var(--bg); border: 2px solid transparent; }
@media (min-width: 560px) { .sortrow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.sitem { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.sitem small { color: var(--bad); font-weight: 700; font-size: var(--t-xs); }
.sortrow.right { border-color: var(--good); background: var(--good-bg); }
.sortrow.wrong { border-color: var(--bad); background: var(--bad-bg); }
.segbins { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; background: var(--soft); border-radius: var(--r-pill); padding: 3px; }
.segbins button { min-height: 40px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--ink); font-weight: 700; font-size: var(--t-s); white-space: nowrap; transition: background-color var(--d2) var(--ease); }
.segbins button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.segbins button:disabled { cursor: default; }
@media (max-width: 559px) { .segbins { display: grid; } .segbins button { white-space: normal; min-height: var(--tap); } }
.orderlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.orow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); background: var(--bg); border-radius: var(--r-m); border: 2px solid transparent; animation: rightPop .3s var(--spring); }
.onum { width: 32px; height: 32px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 700; font-size: var(--t-s); box-shadow: 0 2px 0 var(--lip); }
.orow .otext { font-family: var(--serif); line-height: 1.45; }
.omoves { display: flex; gap: 4px; }
.iconbtn.small { width: var(--tap); height: var(--tap); }
.iconbtn:disabled { opacity: .3; }
.orow.right { border-color: var(--good); background: var(--good-bg); }
.orow.wrong { border-color: var(--bad); background: var(--bad-bg); }
.rightorder { background: var(--bg); border-radius: var(--r-m); padding: var(--s3) var(--s4); }
.rightorder ol { margin: var(--s2) 0 0; padding-left: 1.4em; font-family: var(--serif); display: grid; gap: var(--s1); }
.models { display: flex; flex-direction: column; gap: var(--s2); }
.models blockquote { margin: 0; font-family: var(--serif); line-height: 1.55; border-left: 3px solid var(--accent); padding: var(--s1) 0 var(--s1) var(--s4); }
.selfcheck { border: 0; padding: 0; margin: 0; }
.selfcheck legend { font-weight: 700; margin-bottom: var(--s2); }
.sfoot { display: flex; flex-direction: column; gap: var(--s3); }
.sfoot:empty { display: none; }
/* The verdict, as in Lumin Vocab's games: the step's foot takes the color, the reason reads in the book's type */
.sfoot:has(.verdict) { margin: 0 calc(-1 * var(--s5)) calc(-1 * var(--s5)); padding: var(--s4) var(--s5) var(--s5); border-radius: 0 0 var(--r-l) var(--r-l); animation: slideUpIn .35s var(--spring) both; }
@media (max-width: 559px) { .sfoot:has(.verdict) { margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); } }
.sfoot:has(.verdict.good) { background: var(--good-bg); }
.sfoot:has(.verdict.bad) { background: var(--bad-bg); }
.sfoot:has(.verdict.soft) { background: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.sfoot:has(.verdict.bad) .btn.vgo { background: var(--bad); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--bad) 60%, #000); }
.sfoot:has(.verdict.good) .btn.vgo { background: var(--good); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--good) 60%, #000); }
[data-theme="dark"] .sfoot:has(.verdict.good) .btn.vgo, [data-theme="dark"] .sfoot:has(.verdict.bad) .btn.vgo { color: var(--bg); }
.verdict.soft .vbadge { background: var(--accent-lip); }
.verdict.soft strong { color: var(--ink); }
.vans b { font-weight: 700; }
.tip { align-items: flex-start; }
.tipart { border-radius: 50%; background: var(--tile); box-shadow: var(--shadow); }
.gate .q { font-size: var(--t-l); }
.endcard2 .lead { color: var(--ink); }
.endskills { padding-block: var(--s1); }
.keepbox { display: flex; flex-direction: column; gap: var(--s2); }
.keepbox h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-l); }
.keepbox p { margin: 0; }
.keeprow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
@media (min-width: 560px) { .keeprow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.keepbox .sentchips { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.readerlink { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border-radius: var(--r-m); background: var(--bg); color: var(--ink); text-decoration: none; }
.readerlink .grow { display: flex; flex-direction: column; }
.readerlink small { color: var(--muted); }
.readerlink img { border-radius: 10px; }
@media (hover: hover) { .readerlink:hover strong { color: var(--link); } }

/* Phones on their side and short windows: a slimmer heading so the step stays in view */
@media (max-height: 520px) and (orientation: landscape) { .today-art { min-height: 96px; } .ptitle { font-size: var(--t-l); } .stepcard .q { font-size: var(--t-l); } }

/* ---- The pages outside the app (privacy, terms, not found) ----------------------------------------------------- */
.notfound .pos { margin: 0; color: var(--muted); font-style: italic; }
.notfound .word { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-2xl); }
.notfound .def { margin: 0; font-size: var(--t-m); line-height: 1.5; max-width: 40ch; }

@media (prefers-reduced-motion: reduce) { .stepcard, .orow, .weekdots i.on, .gapline .gap.filled, .wchip.right { animation: none !important; } }
html.calm :is(.stepcard, .orow, .weekdots i.on, .gapline .gap.filled, .wchip.right) { animation: none !important; }

/* ---- Shell and settings pieces shared with Lumin Lookup's layer (lookup.css) ---------------------------------- */

.skip { position: absolute; left: var(--s3); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: var(--s2) var(--s4); border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: var(--s3); }
.mobile-only { display: inline-flex; }
@media (min-width: 900px) { .mobile-only { display: none !important; } }
.topsearch { flex: 1 1 auto; max-width: 520px; min-width: 0; }
.topsearch:empty { flex: 1 1 auto; }
@media (max-width: 899px) { .topsearch { display: none; } }
.errtext { color: var(--bad); font-weight: 700; }
.danger-text { color: var(--bad) !important; }
.status { display: inline-flex; align-items: center; gap: var(--s2); color: var(--good); font-weight: 700; }
.status .icon { width: 20px; height: 20px; }
.textlink.back { gap: var(--s1); font-weight: 700; color: var(--muted); text-decoration: none; align-self: flex-start; }
.applogo { border-radius: 14px; margin-bottom: var(--s3); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.qrrow { --gap: var(--s5); align-items: center; }
.qrrow .grow { min-width: 200px; flex: 1; }
.app textarea.scrolls, .sheet textarea.scrolls { overflow-y: auto; }
.ios-statusband { position: fixed; left: 0; right: 0; top: 0; height: env(safe-area-inset-top, 0px); z-index: 50; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 14, 20, .55), rgba(10, 14, 20, .25)); }
@media (max-width: 899px) and (orientation: landscape) and (max-height: 540px) {
  .topnav .lbl { display: none; }
  .topnav a { padding: 0 var(--s2); }
  .topbar .getapp .wide-only { display: none; }
}
@media (max-width: 1099px) and (min-width: 900px) { .topnav .lbl { display: none; } }

/* The family code, large enough to copy down by hand (the "Your family code" sheet) */
.codebig { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin: 0; font-family: var(--serif); font-size: calc(1.625rem * var(--scale)); line-height: 1.3; }
.codebig span { background: var(--soft); border-radius: var(--r-s); padding: 2px var(--s3); overflow-wrap: anywhere; }
.app.has-nav .topbar .brand { flex: 0 0 auto; }
.app.has-nav .topbar::after { content: none; }
.topbar { gap: var(--s4); }
/* Top bar on phones: logo, a compact Install button and the profile always fit */
@media (max-width: 599px) {
  .topbar { gap: var(--s2); }
  .topbar .brand span { font-size: 20px; }
  .topbar .btn.getapp { padding: 0 var(--s3); min-height: 44px; }
  .topbar .getapp .wide-only { display: none; }
}
@media (max-width: 379px) { .topbar .brand span { display: none; } }
@media (max-width: 1099px) { .topbar { min-width: 0; } .topnav { flex-shrink: 1; min-width: 0; } }
.topbar .btn.getapp { font-size: min(var(--t-s), 16px); }
.topbar .brand { min-width: 0; }
.topbar .brand span { overflow: hidden; text-overflow: ellipsis; }
@media (display-mode: fullscreen) { .getapp { display: none !important; } }
/* Dual-screen foldables: sheets and the tab bar stay off the hinge */
@media (horizontal-viewport-segments: 2) {
  .sheet { left: env(viewport-segment-left 1 0) !important; right: 0; width: auto; }
  .bottomnav { left: calc(env(viewport-segment-left 1 0) + 10px) !important; }
}
/* Settings controls (the same as Lumin Lookup's) */
.switch > .btn { flex-shrink: 0; white-space: nowrap; }
.switch > .txt { min-width: 0; }
.seg { display: flex; flex-wrap: wrap; border-radius: 24px; }
.seg button { flex: 1 1 0; min-width: max-content; min-height: var(--tap); padding: 0 var(--s3); }
.btn > span { display: inline; text-align: center; }
