/* Lesson phones look like the real apps on someone's phone. No app name, and only what that person would see. */
.ph-screen.real-phone{padding:0;gap:0;display:flex;flex-direction:column}
.app-status{flex:none;display:flex;justify-content:space-between;align-items:center;height:58px;padding:16px 28px 0;font-size:17px;font-weight:600;color:#1d1d1f}
.app-status svg{width:62px;height:16px}
.app-nav{flex:none;display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px;align-items:center;padding:8px 14px 12px}
.app-nav>svg{width:30px;height:30px;color:#007aff;transform:rotate(180deg)}
.app-nav h3{margin:0;font-size:24px;line-height:1.15;font-weight:700;letter-spacing:-.016em;color:#1d1d1f}
.app-nav small{display:block;font-size:22px;line-height:1.2;color:#6e6e73}
.app-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:0 14px;overflow:hidden}
.app-tabs{flex:none;display:grid;grid-template-columns:repeat(3,1fr);padding:8px 8px 22px;border-top:1px solid #0000001a;background:#f9f9fb}
.app-tabs span{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px;color:#6e6e73}
.app-tabs span.on{color:#007aff;font-weight:600}
.app-tabs svg{width:26px;height:26px}
.msg-head{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0 12px;border-bottom:1px solid #0000001a;background:#f9f9fb}
.msg-head i{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#b6bcc6;color:#fff;font-style:normal;font-size:25px;font-weight:600}
.msg-head b{font-size:22px;font-weight:500;color:#1d1d1f}
.msg-thread{flex:1;display:flex;flex-direction:column;justify-content:flex-start;gap:7px;padding:16px 14px;background:#fff}
.msg-input{flex:none;padding:8px 14px 24px;background:#fff}
.msg-input span{display:block;padding:9px 16px;border-radius:20px;box-shadow:inset 0 0 0 1px #0000001f;font-size:22px;color:#6e6e73}
.ph-screen.real-phone{background:#f2f2f7}

/* No yellow text */
.ph-card li.hi{background:#ff3b301a}
.ph-card li.hi span,.ph-card li small{color:#1d1d1f}

/* Lesson navigation: Back and the main action stay in one fixed place */
.learn-nav{flex:none;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;margin-top:auto}
.learn-nav .learn-primary{margin:0;width:100%;min-height:88px}
.learn-back{min-height:88px;padding:0 32px;border-radius:28px;background:#0000000a;color:var(--ink);font-size:27px;font-weight:600;transition:transform .16s ease-out}
.learn-back:active{transform:scale(.96)}
/* Lesson start */
.education[data-step="0"] .learn-intro{position:absolute;left:196px;top:176px;width:696px;margin:0;font-size:36px;line-height:1.22;font-weight:600;letter-spacing:-.016em;color:var(--ink)}
.education[data-step="0"] .learn-path{left:196px;top:326px;width:696px;gap:32px}
.education[data-step="0"] .learn-primary{min-height:96px;margin:0;font-size:30px}

/* Shorter, calmer headings */
/* Check boxes with the learning right underneath */
.quiz{display:flex;flex-direction:column;gap:10px}
.quiz-item button{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-items:center;width:100%;min-height:84px;padding:10px 20px;border-radius:24px;background:#fff;text-align:left;font-size:27px;line-height:1.2;color:var(--ink);box-shadow:0 1px 2px #27354a14,0 8px 22px #27354a10}
.quiz-item i{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;box-shadow:inset 0 0 0 3px #c7cad1;color:#fff}
.quiz-item i svg{width:28px;height:28px}
.quiz-item [aria-checked=true] i{background:var(--accent);box-shadow:none}
.quiz-item.right button{background:#e5f7ea}.quiz-item.right [aria-checked=true] i{background:#34c759}
/* Progress you can feel */
.points{padding:8px 18px;border-radius:24px;background:#0a84ff14;color:var(--accent);font-size:25px;font-weight:600}
@keyframes badge-pop{from{transform:scale(0)}}
.education[data-step="0"] .learn-path{top:300px;gap:20px}
.win{position:absolute;left:196px;right:196px;top:190px;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
@keyframes burst{0%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(-210px)}}
@media(prefers-reduced-motion:reduce){.badge-row i.pop,.quiz-item p{animation:none}}

/* Layout system for every lesson screen.
   Grid: 60px margins (60 to 1028). Two columns: 60-520 and 568-1028, 48px gutter.
   Content runs from 176 to 1028. Spacing: 8, 16, 24. Cards: radius 24, padding 24, no shadow. Buttons: 88 tall. */
.education[data-kind] h1{top:70px;left:60px}
.education[data-kind=hub] h1{left:172px}
.education[data-kind] .education-back{left:60px;top:48px}
.education[data-kind] .education-exit{top:54px;right:60px;left:auto;width:auto;min-width:0;min-height:76px;padding:0;text-align:right}

.education[data-kind] .learn-left{left:60px;top:176px;width:460px;height:852px}
.education[data-kind] .learn-side{left:568px;top:176px;width:460px;height:852px;gap:24px}
.education[data-kind=about] .learn-side,.education[data-kind=keep] .learn-side,.education[data-kind=end] .learn-side{left:60px;width:968px}

.education[data-kind] .learn-nav{display:flex;align-items:center;gap:24px;margin-top:auto}
.education[data-kind] .learn-nav .learn-primary{flex:1;min-height:88px;margin:0;border-radius:24px;box-shadow:none}
.education[data-kind] .learn-nav .learn-back{flex:none;min-width:72px;min-height:88px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent);font-size:29px;font-weight:500;text-align:left}
.education[data-kind] .learn-nav .learn-back:active{opacity:.5;background:none}
.education[data-kind] .learn-nav .learn-yn{flex:1;gap:16px}
.education[data-kind] .learn-nav .learn-yn button{min-height:88px;border-radius:24px;box-shadow:none}

.education[data-kind] .choose-list,.education[data-kind] .quiz-item button,.education[data-kind] .guide p{border-radius:24px;box-shadow:none}
.education[data-kind] .choose-list,.education[data-kind] .quiz{margin:0}
.education[data-kind] .choose-list button{min-height:80px;padding:0 24px}

.education[data-kind] .flashcard{height:320px;border-radius:24px}
.education[data-kind] .fc-face{padding:24px;border-radius:24px;box-shadow:none}

.education[data-kind=hub] .learn-intro{left:172px;top:176px;width:744px}
.education[data-kind=hub] .learn-path{left:172px;top:316px;width:744px;height:712px;gap:24px}
.education[data-kind=hub] .learn-path .learn-primary{min-height:88px;margin:0;border-radius:24px;box-shadow:none}

.education[data-kind] .guide{gap:24px}
.education[data-kind] .guide p{padding:24px}

.education[data-kind] .flow{margin:0}
.education[data-kind=keep] .flow,.education[data-kind=about] .flow{--node:128px;--link:96px}
.education[data-kind] .flow-end{padding-left:24px;padding-right:24px}
.education[data-kind] .flow-end.you{padding-top:20px}
.education[data-kind] .flow-end.them{padding-top:20px}
.education[data-kind] .tl-side{width:460px}
.education[data-kind] .tl-side .flow{--node:60px;--link:40px}
.education[data-kind] .learn-side{padding:0}

/* The path: milestones hold lessons, and later lessons stay visible */
.education[data-kind=hub] .learn-path{gap:24px}
.miles{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y}
.miles::-webkit-scrollbar{display:none}
.miles.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}
.mile{flex:none;padding:0 24px;border-radius:24px;background:#fff}
.mile ol{margin:0;padding:0;list-style:none}
.fold{display:grid;grid-template-rows:0fr;transition:grid-template-rows .34s cubic-bezier(.32,.72,0,1)}
.fold>div{min-height:0;overflow:hidden}
.open>.fold{grid-template-rows:1fr}
.mile-head,.lesson-head,.steps button{display:flex;align-items:center;gap:16px;width:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink);line-height:1.2;text-align:left}
.mile-head{min-height:80px;font-size:27px}
.mile-head b{flex:1;min-width:0;font-weight:600}
.lesson{border-top:1px solid var(--line)}
.lesson-head{min-height:72px;font-size:27px}
.lesson-head>span{flex:1;min-width:0}
.mile small{flex:none;font-size:24px;color:var(--ink-2)}
.miles .chev{flex:none;width:26px;height:26px;color:#8e8e93}
.mile-head>.chev,.lesson-head>.chev{rotate:90deg;transition:rotate .34s cubic-bezier(.32,.72,0,1)}
.open>.mile-head>.chev,.open>.lesson-head>.chev{rotate:-90deg}
.lesson-head>i{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#0000000a;color:#8e8e93;font-style:normal;font-size:23px;font-weight:600}
.lesson-head>i svg{width:24px;height:24px}
.lesson.now .lesson-head>i{background:var(--accent);color:#fff}
.lesson.done .lesson-head>i{background:#34c759;color:#fff}
.lesson.later .lesson-head{color:var(--ink-2)}
/* Inside a lesson: its steps, hanging under the lesson's circle with the words under its title */
.mile .steps{padding:0 0 12px 8px}
.steps li{position:relative}
.steps button{min-height:56px;gap:24px;font-size:24px}
.steps span{flex:1;min-width:0}
.steps i{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2px #d1d1d6;color:#fff}
.steps i svg{width:18px;height:18px}
.steps .done i{background:#34c759;box-shadow:none}
.steps .now i{box-shadow:inset 0 0 0 9px var(--accent)}
.steps .next button{color:var(--ink-2);cursor:default}
.steps li+li::before{content:"";position:absolute;left:13px;top:-14px;width:2px;height:28px;background:#e5e5ea}
.steps li.done+li::before{background:#34c759}
.mile-head:active,.lesson-head:active,.steps button:not([aria-disabled=true]):active{opacity:.55}
.mile-head:focus-visible,.lesson-head:focus-visible,.steps button:focus-visible{outline-offset:-2px;border-radius:12px}
@media(prefers-reduced-motion:reduce){.fold,.mile-head>.chev,.lesson-head>.chev{transition:none}}
.education[data-kind=hub] .points{position:absolute;right:60px;top:70px;display:flex;align-items:center;height:44px;padding:0;background:none;color:var(--ink-2);font-size:27px;font-weight:500}
.win-rule{display:flex;flex-direction:column;gap:8px;align-self:stretch;padding:24px;border-radius:24px;background:#fff}
.win-rule small{font-size:24px;color:var(--ink-2)}
.win-rule b{font-size:32px;line-height:1.2;font-weight:600;color:var(--ink)}
.win-next{margin:0;font-size:27px;color:var(--ink-2)}
.education h2[tabindex="-1"]:focus{outline:0}
.education[data-kind=hub] .guide p{display:flex;align-items:center;min-height:116px;padding:0 24px}

/* Lesson words that sit under a choice */
.education[data-kind=everyone] .learn-side,.education[data-kind=changed] .learn-side{left:172px;width:744px}

/* A company's records or a chart beside a lesson: no device around them */
.education[data-kind] .learn-left:has(.lesson-panel){place-items:start}
.lesson-panel{width:460px}
.lesson-panel .db-note{margin:0 0 16px}
.lesson-panel .db-table{margin:0;padding:20px 24px;border-radius:24px;box-shadow:none}
.lesson-panel .db-table h3{margin-bottom:12px;font-size:18px}
.lesson-panel .db-table table{font-size:17px}
.lesson-panel .db-table :is(th,td){padding-top:10px;padding-bottom:10px}
/* Where recordings go */
.flow.route{height:476px}
.education[data-kind] .flow.route .flow-end.you{height:140px;padding-top:20px;align-items:stretch;justify-content:flex-start}
.flow.route .flow-end.them{height:320px}
.flow.route .to-you,.flow.route .to-them{stroke:#d1d4da}
.flow.route.to-home .to-you,.flow.route.to-cloud .to-them{stroke:var(--accent);stroke-width:6;stroke-linecap:round;stroke-dasharray:.1 14;animation:flow-go .7s linear infinite}
.clips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.clips i{height:52px;border-radius:12px;background:#f2f2f7}
.to-home .clips i{background:#0a84ff33}
.flow.route .db-table{margin:16px 0 0;padding:0;border-radius:0;background:none;box-shadow:none}
.flow.route .db-table h3{font-size:17px}
.flow.route .db-table table{font-size:17px}
.tl-side .flow.route .db-table table{font-size:15px}
/* A year of nights */
.year{padding:20px 24px 24px;border-radius:24px;background:#fff}
.year-bars{display:grid;grid-template-columns:repeat(12,1fr);align-items:end;gap:6px;height:320px;margin-top:24px;border-bottom:1px solid var(--line)}
.year-bars i{display:block;border-radius:4px 4px 0 0;background:var(--accent);transform-origin:bottom;animation:tl-in .35s both cubic-bezier(.32,.72,0,1)}
.year-bars i.gone{background:#e5e5ea}
.year-bars i.none{height:6px!important;background:#d1d4da}
.year-axis{display:grid;grid-template-columns:repeat(4,1fr);margin-top:8px;font-size:20px;color:var(--ink-2)}
/* A privacy policy: small print with one readable line */
.policy-line{flex:none;display:block;height:10px;border-radius:5px;background:#e5e5ea}
.policy-hi{margin:6px 0;padding:12px 14px;border-radius:14px;background:#0a84ff1f;color:#1d1d1f;font-size:19px;line-height:1.3}
.lesson-rule{margin:0 0 16px;padding-left:60px;font-size:24px;line-height:1.25;color:var(--ink)}
/* Settings: a row that shows its value */
#settings-page .keep-row{grid-template-columns:minmax(0,1fr) auto 24px}
#keep-value{font-size:24px;color:var(--ink-2)}
@media(prefers-reduced-motion:reduce){.flow.route.to-home .to-you,.flow.route.to-cloud .to-them,.year-bars i{animation:none}}

/* Phone rows: the event reads first, the time second */
.ph-card.rows li{font-size:19px;color:var(--ink)}
.ph-card.rows li span{font-size:19px;font-weight:400;color:var(--ink-2);white-space:nowrap}
/* Who hears from whom */
.chain{display:flex;align-items:flex-start;justify-content:center;padding:40px 24px;border-radius:24px;background:#fff}
.chain-node{flex:none;width:176px;display:flex;flex-direction:column;align-items:center;gap:12px;font-size:24px;line-height:1.2;color:var(--ink);text-align:center}
.chain-node i{display:grid;place-items:center;width:104px;height:104px;border-radius:50%;background:#f2f2f7;color:#1d1d1f;font-style:normal;font-size:44px;font-weight:600}
.chain-node i svg{width:56px;height:56px}
.chain-node img{width:104px;height:104px;border-radius:50%}
.chain-node.ask i{background:#0a84ff14;color:var(--accent)}
.chain-link{flex:1;max-width:200px;height:6px;margin-top:49px;background:radial-gradient(circle at 3px 3px,var(--accent) 3px,#0000 3.5px) 0 0/14px 6px repeat-x;animation:chain-go .7s linear infinite}
@keyframes chain-go{to{background-position-x:14px}}
/* The past stays after you switch off */
.year.stopped{padding:24px}
.stopped .year-bars{position:relative;gap:16px;height:220px;margin-top:0}
.stopped .year-bars b{grid-column:10/13;align-self:stretch;display:flex;align-items:center;justify-content:center;border-left:2px dashed #c7c7cc;margin-left:-8px;font-size:24px;font-weight:400;color:var(--ink-2)}
.stop-axis{display:grid;grid-template-columns:3fr 1fr;margin-top:12px;font-size:24px;color:var(--ink)}
.stop-axis span+span{margin-left:-8px;color:var(--ink-2);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.chain-link{animation:none}}
#dialog-body .choose-list{margin-top:8px;border-radius:0}
#dialog-body .choose-list button{padding:0}

/* Typing your own answer */
#name-page.answer .kb-glyph{display:none}
#name-page.answer .kb-hints{visibility:hidden}
#name-page.answer #name-field{overflow:hidden;font-size:32px}
#name-page.answer #name-suggest p{margin:0;font-size:34px;line-height:1.2;font-weight:600;color:var(--ink)}

/* Round 2: what reaches the other end comes first, and the learner meets it */
.education[data-kind] .card-after[hidden]{display:none}
.ph-card p,.ph-card li,.ph-card.rows li,.ph-card.rows li span{font-size:20px}
.msg-head i{overflow:hidden}.msg-head i img{display:block;width:100%;height:100%;object-fit:cover}
.ph-stamp{align-self:center;margin:6px 0 0;font-size:16px;color:#6e6e73}
.ph-quiet{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;flex:1;font-size:22px;color:#6e6e73}
.ph-quiet svg{width:48px;height:48px;color:#c7c7cc}
/* The chart: today stays put, only tomorrow changes */
/* Bedroom sensor: one sensor, two ends */
.flow.two-ends .flow-end.them{padding-top:18px}
.flow.two-ends .mini-title{font-size:22px}
.mini-row{display:flex;flex-direction:column;gap:2px;margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff;font-size:18px;color:var(--ink-2)}
.mini-row b{font-weight:600;color:var(--ink)}
/* A company's records, in plain words */
.lesson-panel .db-table,.flow-end .db-table{box-shadow:none}
.lesson-panel .db-table h3,.lesson-panel .db-table table,.flow-end .db-table h3,.flow-end .db-table table{font-family:inherit}
.lesson-panel .db-table h3{font-size:22px}
.lesson-panel .db-table table,.flow-end .db-table table{font-size:20px;white-space:nowrap}
.flow-end .db-table{margin:12px 0 0;padding:0;background:none}
.flow-end .db-table table{font-size:19px}
.flow-end .db-table :is(th,td){padding:8px 10px 8px 0}
.db-table h3:empty{display:none}
.policy-card{display:flex;flex-direction:column;gap:12px;padding:24px;border-radius:24px;background:#fff}
.policy-card .policy-hi{font-size:26px;line-height:1.25;margin:8px 0}
.ask-card{display:flex;flex-direction:column;gap:10px;padding:24px;border-radius:24px;background:#fff}
.ask-card small{font-size:24px;color:var(--ink-2)}.ask-card b{font-size:27px;line-height:1.25;font-weight:600;color:var(--ink)}
.ask-card.words b{font-weight:400}.ask-card.reply{padding:16px 24px;gap:6px}
/* The people list and what reaches each one */
.who-list,.changed-list{border-radius:24px;background:#fff;padding:0 24px}
.who-list button{display:grid;grid-template-columns:52px minmax(0,1fr) auto 26px;gap:14px;align-items:center;width:100%;min-height:72px;padding:0;border:0;background:none;text-align:left;box-shadow:none}
.who-list button+button,.changed-list button+button{border-top:1px solid var(--line)}
.who-list img,.who-list .avatar-placeholder{width:52px;height:52px;border-radius:50%}
.who-list button>span:not(.avatar-placeholder){display:flex;align-items:baseline;gap:12px;min-width:0;white-space:nowrap}
.who-list b{font-size:26px;font-weight:500;color:var(--ink)}
.who-list small{overflow:hidden;font-size:22px;color:var(--ink-2);text-overflow:ellipsis}
.who-list em{font-size:22px;font-style:normal;color:var(--ink-2);white-space:nowrap}
.who-list .chev,.changed-list .chev{width:26px;height:26px;color:#8e8e93}
.who-role{margin:0 0 12px;font-size:26px;color:var(--ink-2)}
.who-devices{margin:0}.who-devices div{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-top:1px solid var(--line);font-size:24px}
.who-devices dt{color:var(--ink)}.who-devices dd{margin:0;color:var(--ink-2);text-align:right}
.changed-list b{font-weight:600;color:var(--ink)}.changed-list span{color:var(--ink-2)}
/* Reward cards show what you found and chose */
.label-rows{margin:0;width:100%}
.label-rows div{display:flex;justify-content:space-between;gap:24px;padding:10px 0;font-size:26px;line-height:1.2}
.label-rows div+div,.win-rule>b+.label-rows div:first-child{border-top:1px solid var(--line)}
.label-rows dt{flex:none;color:var(--ink-2)}.label-rows dd{margin:0;font-weight:500;color:var(--ink);text-align:right}
.win.calm .guide-art .eye{animation:none}
/* The list screen and the sheet */
.path-note{margin:0;font-size:24px;line-height:1.25;color:var(--ink-2)}
.education[data-kind=hub] .learn-path{gap:16px}
.education[data-kind=sheet] .learn-side{left:60px;width:968px}
.sheet section{padding:20px 24px;border-radius:24px;background:#fff}
.sheet h3{margin:0 0 8px;font-size:26px;font-weight:600;color:var(--ink)}
.sheet h3:not(:first-child){margin-top:20px}
.sheet-rows{margin:0}.sheet-rows div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:24px;line-height:1.2}
.sheet-rows div+div{border-top:1px solid var(--line)}
.sheet-rows dt{flex:none;max-width:48%;color:var(--ink-2)}.sheet-rows dd{margin:0;color:var(--ink);text-align:right}
.sheet-asks,.sheet-qs{margin:0;padding:0;list-style:none}
.sheet-asks li,.sheet-qs li{padding:6px 0;font-size:24px;line-height:1.2;color:var(--ink)}
/* Outside the lessons */
.kb-private{margin:8px 0 0!important;font-size:24px!important;font-weight:400!important;color:var(--ink-2)!important}
.quick-note{margin:8px 0 0;font-size:24px;line-height:1.25;color:var(--ink-2)}
.education[data-kind=hub] .mile-head{min-height:72px}
.education[data-kind=hub] .lesson-head{min-height:64px}
.year .tl-head{flex-wrap:wrap;gap:0 12px;white-space:normal}

/* Round 3: three kinds of answer, and every choice shows a gain and a price */
.quiz-item.open button{background:#fff}
.changed-list span{color:var(--ink)}
.ask-card.words{gap:14px}.ask-card.words b{font-size:26px}
.sheet-so-far h3{margin:0 0 4px}
.sheet-so-far .sheet-asks{max-height:none}
.sheet-so-far p{margin:16px 0 0}
/* A tick never moves the words on two-line rows */
.stopped .year-bars b{padding-left:8px;text-align:center}

/* lead */
.sheet .sheet-ask{margin:0 0 10px;font-size:26px;line-height:1.2;font-weight:600;color:var(--ink)}
.sheet-asks li,.sheet-qs li{padding:2px 0}
.sheet-asks{max-height:264px}
.sheet-so-far{display:grid;grid-template-columns:5fr 6fr;gap:0 32px;align-items:start}
.sheet-so-far .so-far-find{grid-column:1/-1;margin:0 0 12px}
.sheet-so-far h3{margin:0 0 6px}
#dialog-body .sheet-so-far p{margin:12px 0 0;font-size:24px;line-height:1.25}
/* What Sarah says, under both days */
.two-days .day-say{margin:0;font-size:24px;line-height:1.2;color:var(--ink);text-align:center}
.lesson-panel .db-table :is(th,td){white-space:nowrap}

/* Lesson 1 opening: the screen goes dark with the house, and morning brings it back. */
#screen::before{content:"";position:absolute;inset:0;z-index:-1;background:#141a26;opacity:0;transition:opacity .9s ease;pointer-events:none}
#screen:has(.education.night-dark:not([hidden]))::before{opacity:1}
#screen:has(.education[data-kind=night]:not([hidden])) #stage-markers .marker span{max-width:240px;opacity:1;margin-left:8px}
.education h1,.education .learn-side h2,.education .learn-side>p,.education .learn-back{transition:color .9s ease}
.education.night-dark .learn-side h2{color:#fff}
.night-clock{position:absolute;left:60px;top:176px;margin:0;font-size:48px;font-weight:600;letter-spacing:-.02em;color:var(--ink);transition:color .9s ease;pointer-events:none}
.night-dark .night-clock{color:#fff}
.night-phone.mini-phone{position:absolute;left:80px;top:196px;width:300px;height:440px;margin:0;box-shadow:0 0 0 2px #3a3a3e;clip-path:inset(-3px -3px 0 -3px)}
.night-phone .mini-screen{display:flex;flex-direction:column;padding:0 10px;overflow:hidden}
.night-phone .app-status{margin:0 -10px;padding:6px 18px 0}
.night-phone .mini-title{padding:6px 6px 8px;margin:0}
.night-phone li{opacity:0;justify-content:flex-start}
.night-phone li.on{opacity:1;transition:opacity .3s ease}

/* Each answer and its reason sit in one card, with the reason lined up under the answer. */
.education[data-kind] .quiz-item{border-radius:24px;background:#fff;overflow:hidden}
.education[data-kind] .quiz-item button,.quiz-item.right button,.quiz-item.wrong button,.quiz-item.open button{background:none;box-shadow:none;border-radius:0}
.education[data-kind] .quiz-item.right{background:#e5f7ea}
.education[data-kind] .quiz-item.wrong{background:#ffe9e7}

/* Whose phone this is. */
.phone-wrap{display:grid;justify-items:center;gap:16px}
.learn-side .night-label{position:absolute;left:80px;top:652px;width:300px;text-align:center;color:var(--ink-2)}

/* Real-feeling messages. */
.msg-thread .ph-bubble{border-bottom-left-radius:7px;transform-origin:0 100%;animation:none}
.msg-thread .ph-bubble.me{border-bottom-left-radius:22px;border-bottom-right-radius:7px;transform-origin:100% 100%}
.msg-thread .queued{display:none}
.msg-thread .arrive{animation:msg-in .38s cubic-bezier(.34,1.3,.64,1) both}
.msg-thread .ph-bubble.me.arrive{animation:msg-send .42s cubic-bezier(.32,.72,0,1) both}
@keyframes msg-in{from{opacity:0;scale:.82;translate:0 8px}}
@keyframes msg-send{from{opacity:.4;scale:.9;translate:0 90px}}
.ph-typing{display:flex;gap:6px;align-self:flex-start;margin:0;padding:14px 16px;border-radius:22px 22px 22px 7px;background:#e5e5ea;animation:msg-in .28s cubic-bezier(.34,1.3,.64,1) both}
.ph-typing i{width:10px;height:10px;border-radius:50%;background:#8e8e93;animation:typing 1.1s ease-in-out infinite}
.ph-typing i:nth-child(2){animation-delay:.16s}.ph-typing i:nth-child(3){animation-delay:.32s}
@keyframes typing{0%,60%,100%{opacity:.35;translate:0 0}30%{opacity:1;translate:0 -4px}}

/* What the company keeps, for the option being looked at. */
.kept-chart{position:relative;margin-top:14px}
.kept-chart .day-bars i{animation:none;background:var(--accent)}
.kept-chart .day-bars i.none{background:var(--line)}
.kept-chart.off .day-bars i{background:var(--line)}
.kept-chart em{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;font-style:normal;font-weight:500;color:var(--ink)}

.panel-device{display:block;width:250px;margin:0 auto 12px}
.kept-chart .day-bars{height:190px}

.off-grid{border-radius:24px;background:#fff;padding:0 24px}
.off-grid div{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:12px 0;border-top:1px solid var(--line);font-size:26px;line-height:1.25;color:var(--ink)}
.off-grid div:first-child{border-top:0}
.off-grid b{flex:none;max-width:150px;text-align:right;font-weight:600}
.off-grid b.yes{color:var(--ink)}
.off-grid b.no{color:var(--ink-2)}

.toggle-list button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left}
.toggle-list .switch{pointer-events:none}
.toggle-list button[aria-checked=true],.toggle-list button[aria-checked=true] span{font-weight:400}
.app-body:has(.ph-card.rows) .ph-card.ok{flex-direction:row;justify-content:flex-start;gap:10px;padding:12px 14px}
.app-body:has(.ph-card.rows) .ph-card.ok i{width:32px;height:32px;font-size:18px}
.app-body:has(.ph-card.rows) .ph-card.ok b{font-size:22px}

/* ==========================================================================
   SHARED LESSON SCALE. The last word on every lesson screen.
   Change sizes and spacing here, not in the layers above.

   GRID     Margins 60. Columns 60-520 and 568-1028 (460 wide, 48 gutter).
            Centre 172-916. Full 60-1028. Content y176-1028. Nav y940-1028.
   SPACING  Only 8, 16, 24. 8 between stacked cards. 16 from a heading to its
            line, and between paired text lines. 24 between blocks and as the
            minimum above the nav. One tested exception: 4 from a row title to
            its explanation, so the explanation reads as part of the row.
   CARDS    Radius 24, nested items 12. Padding 24. List cards have no vertical
            padding because their rows carry it.
   ROWS     Min-height 72, padding 12 24, checkbox 44.
   TYPE     44/700 lesson-done title.   32/700 heading, flashcard title.
            28/400 line under a heading.   28/600 buttons, lesson-done line.
            26/400 list rows, cost and reply lines.
            24/400 all small text.   24/600 card titles.
   COLOUR   var(--ink), var(--ink-2) and var(--accent). Dark values are set in
            dark_tail.css, which feeds dark.css. Do not edit dark.css.
   Exception: the sheet is a dense read-only list, so its rows stay tighter.
   ========================================================================== */

/* Top bar */
.education[data-step="0"] h1{font-weight:600}
.education[data-step]:not([data-step="0"]) h1{font-size:24px;line-height:44px;font-weight:400;letter-spacing:0;color:var(--ink-2)}
.education[data-kind] .education-exit{font-size:24px;font-weight:400;color:var(--ink-2)}

/* Columns */
.education[data-kind] .learn-left{left:60px;top:176px;width:460px;height:852px;display:grid;place-items:start center;align-content:start}
.education[data-kind] .learn-left:has(.tl-side),.education[data-kind] .learn-left:has(.two-days){place-items:start}
.education[data-kind] .learn-side{left:568px;top:176px;width:460px;height:852px;gap:0;padding:0;font-size:28px;line-height:1.3}
.education:is([data-kind=about],[data-kind=keep],[data-kind=end],[data-kind=changed],[data-kind=sheet],[data-kind=everyone]) .learn-side{left:60px;width:968px}

/* The stack in the right column */
.education[data-kind] .learn-side>*{margin-top:24px}
.education[data-kind] .learn-side>:first-child{margin-top:0}
.education[data-kind] .learn-side>h2+p,.education[data-kind] .learn-side>p+p{margin-top:16px}
.education[data-kind] .learn-side>:is(.night-phone,.night-label){margin:0}
.education[data-kind] .learn-side h2{margin-bottom:0;font-size:32px;line-height:1.2;font-weight:700}
.education[data-kind] .learn-side>p{font-size:28px;line-height:1.3;font-weight:400;color:var(--ink-2);text-wrap:pretty}
.education[data-kind] .learn-side>:is(.choose-cost,.choose-reply,.card-after){font-size:26px;color:var(--ink)}
.education[data-kind] .learn-side>.keep-note{font-size:24px;color:var(--ink-2)}
.education[data-kind] .learn-side>p.you-chose{display:grid;gap:8px;margin-top:16px;font-size:26px;line-height:1.25}
.education[data-kind] .you-chose small{font-size:24px;color:var(--ink-2)}
.education[data-kind] .you-chose strong{font-weight:600;color:var(--ink)}

/* Nav: the same place on every screen */
.education[data-kind] .learn-side>.learn-nav{margin-top:auto;padding-top:24px}
.education[data-kind] .learn-nav{gap:24px}
.education[data-kind] .learn-primary,.education[data-kind] .learn-nav .learn-back{font-size:28px;font-weight:600}
.education:is([data-kind=keep],[data-kind=changed],[data-kind=sheet],[data-kind=everyone]) .learn-nav{align-self:flex-end;width:460px}

/* Rows */
.education[data-kind] :is(.choose-list,.quiz,.who-list,.changed-list,.off-grid){flex:none}
.education[data-kind] .choose-list button{min-height:72px;padding:12px 24px;font-size:26px;line-height:1.25;font-weight:400;text-wrap:pretty}
.education[data-kind] .choose-list [aria-checked=true]{font-weight:400}
.education[data-kind] .now-tag{display:inline-block;margin:0 0 0 8px;font-size:24px;font-weight:400;color:var(--ink-2);white-space:nowrap}
.education[data-kind] .choose-list.two button{position:relative}
.education[data-kind] .choose-list.two button>span{flex:1;min-width:0}
.education[data-kind] .choose-list.two b{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;padding-right:42px;font-weight:400}
.education[data-kind] .choose-list.two .now-tag{margin:0}
.education[data-kind] .choose-list.two button>span>small{display:block;margin-top:4px;font-size:24px;line-height:1.25;font-weight:400;color:var(--ink-2)}
.education[data-kind] .choose-list.two svg{position:absolute;right:24px;top:14px}
.education[data-kind] .choose-list.two button:not(:has(small)) svg{top:21px}

/* Check boxes, with each reason lined up under its answer */
.education[data-kind] .quiz{display:flex;flex-direction:column;gap:8px}
.education[data-kind] .quiz-item button{gap:16px;min-height:72px;padding:12px 24px;font-size:26px;line-height:1.25;text-wrap:pretty}
.education[data-kind] .quiz-item:has(p) button{align-items:start;min-height:0;padding:18px 24px 0}
.education[data-kind] .quiz-item:has(p) i{margin-block:-6px}
.education[data-kind] .quiz-item p{margin:0;padding:4px 24px 12px 84px;font-size:24px;line-height:1.25;color:var(--ink-2);text-wrap:pretty}
.education[data-kind] .quiz-item.right p{color:var(--ink)}
.education[data-kind] .quiz-item.wrong p{color:#c9271d}
.education[data-kind] .quiz-item.open [aria-checked=true] i{background:none;box-shadow:inset 0 0 0 3px #c7cad1}
.education[data-kind] .quiz-item.missed{box-shadow:inset 0 0 0 3px #34c759}

/* Cards beside a lesson */
.education[data-kind] .lesson-panel{display:flex;flex-direction:column;gap:16px}
.education[data-kind] .panel-device{margin:0 auto}
.education[data-kind] .panel-title{margin:0;font-size:24px;line-height:1.3;font-weight:400;color:var(--ink-2)}
.education[data-kind] .lesson-panel .db-table{padding:24px}
.education[data-kind] .db-table h3:not(:empty){display:flex;justify-content:space-between;gap:16px;margin:0 0 8px;font-size:24px;line-height:1.3;font-weight:600;color:var(--ink)}
.education[data-kind] .db-table h3 span{font-weight:400;color:var(--ink-2)}
.education[data-kind] .db-table table{font-size:24px;line-height:1.3;white-space:nowrap}
.education[data-kind] .db-table th{font-weight:400}
.education[data-kind] .db-table :is(th,td){padding:8px 18px 8px 0}
.education[data-kind] .db-table :is(th,td):last-child{padding-right:0}
.education[data-kind] .flow-end .db-table{margin:8px 0 0;padding:0;background:none}
.education[data-kind] :is(.tl-head,.tl-head b,.flow-title,.flow-node b){font-size:24px;line-height:1.3}
.education[data-kind] :is(.tl-head b,.flow-title){font-weight:600}
.education[data-kind] .flow-node b{font-weight:400}
.education[data-kind] :is(.day-axis,.year-axis,.stop-axis,.day-cap){font-size:24px;line-height:1.3}
.education[data-kind] .day-cap{margin-top:8px;color:var(--ink-2)}
.education[data-kind] .year{padding:24px}
.education[data-kind] .stopped .year-bars{margin-top:24px}
.education[data-kind] .kept-chart{margin-top:16px}
.education[data-kind] .kept-chart em{font-size:24px;font-weight:400}
.education[data-kind] .kept-chart .day-bars{height:190px;gap:3px}
.education[data-kind] .tl-side .flow{height:auto}
.education[data-kind] .tl-side .flow-end.them{height:auto;padding-bottom:24px}
.education[data-kind=keep] .flow{height:568px}
.education[data-kind=keep] .flow-end.them{height:296px}
.education[data-kind=keep] .flow-end.them .day-bars{height:170px}
.education[data-kind=keep] .flow-end.them .day-chart{margin-top:16px}
.education[data-kind=keep] .learn-side>.keep-note{margin-block:auto}
.education[data-kind=keep] .learn-side>.learn-nav{margin-top:0;padding-top:0}
.education[data-kind] .policy-card .policy-hi{margin:8px 0;font-size:24px;line-height:1.3}
.policy-hi mark{background:none;color:var(--accent);font-weight:700}
.education[data-kind] .ask-card{gap:8px}
.education[data-kind] .ask-card.words{gap:16px}
.education[data-kind] .ask-card small{font-size:24px;line-height:1.3}
.education[data-kind] .ask-card b{font-size:26px;line-height:1.25}
.education[data-kind] .ask-card.reply{padding:16px 24px}
.education[data-kind] .ask-card.reply p{margin:0;font-size:24px;line-height:1.25;color:var(--ink)}
.education[data-kind] .flashcard{height:320px;border-radius:24px}
.education[data-kind] .fc-face{gap:16px;padding:24px;border-radius:24px}
.education[data-kind] .fc-face b{font-size:32px;line-height:1.2;font-weight:700}
.education[data-kind] .fc-face small{font-size:24px;line-height:1.3}

/* The people list */
.education[data-kind] .who-list{padding:0}
.education[data-kind] .who-list button{grid-template-columns:48px minmax(0,1fr) auto 26px;gap:16px;padding:12px 24px}
.education[data-kind] .who-list :is(img,.avatar-placeholder){width:48px;height:48px;font-size:24px}
.education[data-kind] .who-list b{font-weight:400}
.education[data-kind] .who-list :is(small,em){font-size:24px}

/* A month from now */
.education[data-kind] .changed-list{padding:0}
.education[data-kind] .changed-list button{display:grid;grid-template-columns:230px minmax(0,1fr) 26px;gap:4px 16px;align-items:baseline;width:100%;min-height:72px;padding:12px 24px;background:none;text-align:left;box-shadow:none;font-size:24px;line-height:1.25}
.education[data-kind] .changed-list button>.chev{grid-row:1/3;grid-column:3;align-self:center}
.education[data-kind] .changed-list span{color:var(--ink)}
.education[data-kind] .changed-list small{grid-column:1/3;font-size:24px;line-height:1.25;color:var(--ink-2)}

/* The sheet */
.education[data-kind] .sheet{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);gap:48px;min-height:0}
.education[data-kind] .sheet section{min-height:0;padding:16px;border-radius:24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.education[data-kind] .sheet .sheet-asks{max-height:none;overflow:visible}
.education[data-kind] .sheet h3{margin:0 0 8px;font-size:24px;line-height:1.3;font-weight:600}
.education[data-kind] .sheet h3:not(:first-child){margin-top:16px}
.education[data-kind] .sheet .sheet-rows dt{max-width:184px}
.education[data-kind] .sheet .sheet-rows dd{flex:1;min-width:0;text-wrap:balance}
.education[data-kind] .sheet .sheet-ask{margin:0 0 8px;font-size:24px;line-height:1.3;font-weight:600;color:var(--ink)}
.education[data-kind] .sheet-last{margin:8px 0 0;font-size:24px;line-height:1.25;color:var(--ink)}

/* Lesson done: same geometry each time, action row pinned to the nav line */
.education[data-kind] .win{left:172px;right:172px;top:176px;bottom:60px;gap:24px;justify-content:flex-start}
.education[data-kind] .win-guide{width:96px;height:96px}
.education[data-kind] .win h2{font-size:44px;line-height:1.1;font-weight:700}
.education[data-kind] .win-rule{gap:16px;padding:24px;text-align:left}
.education[data-kind] .win-rule>b{font-size:28px;line-height:1.3;font-weight:600;text-wrap:balance}
.education[data-kind] .win .label-rows{display:grid;gap:8px}
.education[data-kind] .win .label-rows div{padding:0;border:0;font-size:24px;line-height:1.3}
.education[data-kind] .win .label-rows dd{font-weight:400}
.education[data-kind] :is(.win-line,.win-next){margin:0;font-size:24px;line-height:1.3;color:var(--ink-2)}
.education[data-kind] .win .learn-nav{align-self:stretch;margin-top:auto;padding-top:24px}
.education[data-kind] .win .learn-text{flex:none;min-height:88px;font-size:28px;font-weight:600}

/* Phones: size only, and the label always goes under the phone */
.phone-wrap{gap:16px}
.education[data-kind] .phone-label,.education[data-kind] .learn-side>.night-label{font-size:24px;line-height:1.3;font-weight:400;color:var(--ink-2)}
.two-days{display:grid;grid-template-columns:222px 222px;gap:16px;width:460px}
.two-days figure{display:flex;flex-direction:column;align-items:center;gap:16px;margin:0}
.two-days figcaption{font-size:24px;line-height:1.3;font-weight:400;color:var(--ink-2)}
.two-days .day-say{margin:0;font-size:24px;line-height:1.2;color:var(--ink);text-align:center}
.two-days .mini-phone{width:222px;height:470px;margin:0;padding:8px;border-radius:40px;box-shadow:0 20px 36px #27354a38,0 0 0 2px #3a3a3e}
.two-days .mini-screen{display:flex;flex-direction:column;padding:0 10px;overflow:hidden;border-radius:32px}
.two-days .mini-screen .app-status{margin:0 -10px;padding:6px 14px 0}
.two-days .mini-screen .ph-island{top:9px;width:60px;height:22px;margin-left:-30px;border-radius:11px}
.two-days .mini-title{padding:6px 6px 10px}
.two-days .app-body{padding:0}
.two-days .ph-card{padding:14px 12px;text-align:center}
.two-days .ph-card b{font-size:24px;line-height:1.15}
.two-days .ph-card.ok{padding:22px 8px}
.education[data-kind] .ph-bubble{font-size:24px;line-height:1.22}
.education[data-kind] :is(.ph-stamp,.ph-empty,.ph-hidden,.ph-quiet,.mini-empty,.mini-title,.mini-row,.ph-card b){font-size:24px}
.education[data-kind] :is(.ph-card p,.ph-card li,.ph-card.rows li,.ph-card.rows li span){font-size:24px}
.education[data-kind] .app-body:has(.ph-card.rows) .ph-card.ok b{font-size:22px}
.ph-card.one b{line-height:1.2}
.ph-card.one p{margin-top:10px;font-size:24px;line-height:1.25;color:var(--ink)}
.night-spark{position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:#ffc98a;box-shadow:0 0 0 6px #ffc98a44,0 0 24px #ffc98a;pointer-events:none;z-index:5;offset-rotate:0deg}
.night-spark.trail{width:14px;height:14px;box-shadow:0 0 14px #ffc98a}

/* Sheet so far: one simple list. See your sheet is a real button beside Next lesson. */
.education[data-kind] .win .learn-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.education[data-kind] .win .learn-nav>.learn-text{min-height:88px;border-radius:24px;background:#ffffff14;color:var(--ink);font-size:28px;font-weight:600}
.education[data-kind] .win .learn-nav>.learn-primary:only-child{grid-column:1/-1}
.sheet-panel:has(.sheet-so-far){width:720px;padding:32px 40px 40px;border-radius:40px}
.sheet-so-far{display:block}
.sheet-so-far .sheet-rows{display:grid;gap:16px;margin:8px 0 0}
.sheet-so-far .sheet-rows div{display:flex;justify-content:space-between;gap:32px;padding:0;border:0;font-size:26px;line-height:1.3}
.sheet-so-far .sheet-rows dt{flex:none;color:var(--ink-2)}
.sheet-so-far .sheet-rows dd{margin:0;text-align:right;color:var(--ink)}
.sheet-so-far h3{margin:32px 0 12px}
.sheet-so-far .sheet-asks{display:grid;gap:8px;margin:0;padding:0;list-style:none;font-size:26px;line-height:1.3}
