/* Screens of the "tell me" version. Builds on the tokens and the paper look in styles.css. */
section{margin-bottom:8px}
.paper{background:var(--card);border:1px solid var(--line);border-radius:4px;box-shadow:0 1px 1px #0000000a,0 8px 14px -10px #00000040}
.primary.small{padding:8px 14px;min-height:40px;font-size:14px}
.primary:disabled{opacity:.45;cursor:default;box-shadow:none}
.section-actions{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center}
.bar{height:8px;border-radius:8px;background:#ece3d2;overflow:hidden}
.bar i{display:block;height:100%;background:var(--teal);border-radius:8px;transition:width .5s var(--ease)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{font-size:12px;padding:3px 10px;border-radius:20px;background:var(--bg);border:1px solid var(--line);color:var(--muted)}
.chip.urgent{background:#fbe3d9;border-color:#e7b3a0;color:#963622;font-weight:600}
.back-link{display:inline-flex;align-items:center;gap:6px;margin-top:28px;color:var(--teal);font-size:14px;min-height:44px}
.back-link .icon{width:16px;height:16px}
#sheet fieldset{border:0;padding:0;margin:18px 0 4px;min-width:0}
#sheet fieldset legend{font-size:14px;font-weight:600;margin-bottom:10px;padding:0}
#sheet textarea{width:100%;padding:12px;font:inherit;border:1px solid #dce4e8;border-radius:10px;resize:vertical;background:#fafcfc}
.choice-chips{display:flex;flex-wrap:wrap;gap:8px}
.choice-chips label{position:relative;cursor:pointer}
.choice-chips input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.choice-chips span{display:flex;align-items:center;min-height:42px;padding:8px 14px;border:1px solid #ddd2bf;border-radius:14px;font-size:14px;background:var(--card)}
.choice-chips input:checked+span{background:var(--teal-soft);border-color:var(--teal);color:var(--teal);font-weight:600}
.choice-chips input:focus-visible+span{outline:3px solid #dc9a57}

/* Tell me */
.tell{background:var(--card);border:1px solid var(--line);border-radius:4px;padding:18px 20px;box-shadow:0 1px 1px #0000000a,0 8px 14px -10px #00000040}
.tell>label{display:block;font-family:'Amatic SC',Heebo,sans-serif;font-size:30px;font-weight:700;margin-bottom:10px}
.tell-input{position:relative}
.tell-input textarea{width:100%;min-height:92px;padding:14px 16px 14px 60px;font:inherit;font-size:16px;line-height:1.6;border:1.5px solid #ddd2bf;border-radius:12px;background:#fffef9;resize:vertical;color:var(--ink)}
.tell-input textarea:focus{outline:none;border-color:var(--teal);background:#fff}
.tell-mic{position:absolute;left:10px;top:10px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--teal);background:var(--teal-soft)}
.tell-mic.listening{background:var(--teal);color:#fff;animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 10px #b8452f22}}
.tell-foot{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin-top:12px}
.tell-foot .field-help{margin:0;flex:1;min-width:200px}

/* Review card */
.review-card{background:var(--card);border:1.5px solid var(--ink);border-radius:6px;padding:18px 20px}
.review-head h2{font-family:'Amatic SC',Heebo,sans-serif;font-size:32px}
.review-head p{color:var(--muted);font-size:14px;margin:2px 0 14px}
.proposal{border-top:1px dashed var(--line);padding:14px 0}
.proposal-top{display:flex;align-items:center;gap:8px}
.proposal-title{flex:1;font-weight:600;font-size:16px;background:transparent;border-color:transparent}
.proposal-title:hover{border-color:var(--line)}
.proposal-kind{font-size:12px;color:var(--muted);white-space:nowrap}
.proposal-fields{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.proposal-fields select{width:auto;flex:1;min-width:140px}
.time-pair{display:flex;align-items:center;gap:6px;flex:1;min-width:240px}
.time-pair select{min-width:96px;width:auto;flex:1}
select[name=start],select[name=end],select[name=dayStart],select[name=dayEnd],select[data-field=start],select[data-field=end]{direction:ltr;text-align:right}
.time-pair span{font-size:13px;color:var(--muted)}
.proposal-status{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;font-size:14px;margin-top:10px;line-height:1.6}
.proposal-status .icon{width:18px;height:18px;margin-top:2px}
.proposal-status.ok{color:#2f6b43}
.proposal-status.ok small{color:var(--muted)}
.proposal-status.warn{color:#963622}
.proposal-status.warn>span{flex:1;min-width:200px}
.slots{display:flex;gap:8px;flex-wrap:wrap;width:100%}
.slot{border:1.5px solid var(--teal);color:var(--teal);border-radius:20px;padding:6px 14px;font-size:14px;font-weight:600;background:var(--card)}
.slot:hover{background:var(--teal);color:#fff}
.review-foot{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;border-top:1px dashed var(--line);padding-top:14px}
.review-blocked{color:#963622}

/* Today */
.welcome-steps{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:8px;width:min(100%,360px)}
.welcome-steps a,.welcome-steps button{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fffef9;font-size:15px;text-align:start}
.welcome-steps a:hover,.welcome-steps button:hover{border-color:var(--teal);color:var(--teal)}
.alerts{background:var(--warm);border-radius:6px;padding:10px 16px;margin-top:16px;color:var(--warm-ink);font-size:14px}
.alerts p{display:flex;gap:8px;align-items:center;padding:4px 0}
.alerts a{text-decoration:underline}
.alerts .icon{width:16px;height:16px}
.entries{display:grid;gap:8px}
.entry{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start}
.entry .time{padding-top:14px}
.entry-card{background:var(--card);border:1px solid var(--line);border-right:4px solid var(--teal);border-radius:4px;padding:12px 16px;box-shadow:0 1px 1px #0000000a,0 8px 14px -10px #00000040}
.entry.is-class .entry-card{border-right-color:#b5ab9c;background:#faf6ec;box-shadow:none}
.entry.is-goal .entry-card{border-right-color:#e2a33b}
.entry.is-event .entry-card{border-right-color:#5b7fa8}
.entry.is-task .entry-card{border-right-color:#7a8c3a}
.entry.is-done .entry-card{opacity:.6}
.entry.is-done h3{text-decoration:line-through}
.entry-kind{font-size:12px;color:var(--muted)}
.entry-kind a{text-decoration:underline}
.entry-card h3{font-size:16px;font-weight:600;margin:2px 0;overflow-wrap:anywhere}
.entry-card h3 a:hover{color:var(--teal)}
.entry-actions{display:flex;gap:4px 10px;flex-wrap:wrap;align-items:center;margin-top:8px}
.entry-actions .complete-button[aria-pressed=true]{background:var(--teal);color:#fff}
.free-row{margin-inline-start:68px;font-size:13px;color:var(--faint);border:1px dashed #ddd2bf;border-radius:4px;padding:8px 12px}
.free-row span{direction:ltr;display:inline-block;margin-inline-end:6px}
.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.mini-card{display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:var(--card);border:1px solid var(--line);border-top:4px solid var(--teal);border-radius:4px}
.mini-card.is-goal{border-top-color:#e2a33b}
.mini-card.is-goal .bar i{background:#e2a33b}
.mini-card small{font-size:12px;color:var(--muted);line-height:1.5}
.mini-card:hover{box-shadow:0 6px 16px #2d2a261a}

/* Studies, courses, goals */
.empty-actions{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:22px;border:2px dashed #d9cdb5;border-radius:6px;justify-content:center}
.hint-card{background:var(--warm);border-radius:6px;padding:14px 16px;font-size:14px;line-height:1.8;color:var(--warm-ink)}
.hint-card p+p{margin-top:6px}
.timetable{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tt-day{background:var(--card);border:1px solid var(--line);border-radius:4px;padding:10px}
.tt-day h3{font-family:'Amatic SC',Heebo,sans-serif;font-size:24px;margin-bottom:6px}
.tt-class{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:start;padding:8px 10px;margin-bottom:6px;background:#faf6ec;border-right:3px solid var(--teal);border-radius:3px;font-size:14px}
.tt-class bdi{font-size:12px;color:var(--muted)}
.tt-class small{font-size:12px;color:var(--faint)}
.tt-class:hover{background:var(--teal-soft)}
.tt-free{font-size:13px;color:var(--faint);padding:6px 2px}
.mini-list{display:flex;gap:8px;flex-wrap:wrap}.mini-list .tt-class{width:auto;min-width:160px}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.big-card{display:flex;flex-direction:column;gap:10px;padding:16px 18px;background:var(--card);border:1px solid var(--line);border-top:5px solid var(--teal);border-radius:4px;box-shadow:0 1px 1px #0000000a,0 8px 14px -10px #00000040;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.big-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px #2d2a2622}
.big-card.is-goal{border-top-color:#e2a33b}.big-card.is-goal .bar i{background:#e2a33b}
.big-card.is-reached{border-top-color:#2f6b43}.big-card.is-reached .bar i{background:#2f6b43}
.big-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.big-card h3{font-family:'Amatic SC',Heebo,sans-serif;font-size:32px;line-height:1.05}
.big-number{font-size:22px;color:var(--teal)}
.big-card p{font-size:13px;color:var(--muted);line-height:1.6}
.hero{display:grid;grid-template-columns:auto 1fr;gap:14px 22px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:4px;padding:20px;box-shadow:0 1px 1px #0000000a,0 8px 14px -10px #00000040}
.hero-number{display:flex;flex-direction:column;align-items:center;min-width:96px}
.hero-number b{font-size:40px;line-height:1;color:var(--teal)}
.hero-number span{font-size:13px;color:var(--muted);margin-top:4px;text-align:center}
.hero-body{display:grid;gap:8px;font-size:15px}
.hero-actions{grid-column:1/-1;display:flex;gap:8px 14px;flex-wrap:wrap;align-items:center;border-top:1px dashed var(--line);padding-top:14px}
.find-panel{border:1.5px solid var(--ink);border-radius:6px;padding:14px 16px;margin-top:12px;background:#fffef9;display:grid;gap:10px}
.find-head{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.find-head .duration-options{flex:1;min-width:260px;flex-wrap:wrap}
.topics,.deadlines,.log{display:grid;gap:6px}
.topic,.deadline,.log-row{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--card);border:1px solid var(--line);border-radius:4px;font-size:15px}
.topic>span,.deadline>span{flex:1;min-width:0;overflow-wrap:anywhere}
.topic.is-done>span{color:var(--muted);text-decoration:line-through}
.status-chip{display:inline-flex;align-items:center;gap:4px;min-width:118px;justify-content:center;font-size:12px;padding:4px 10px;min-height:32px;border-radius:20px;border:1px solid #ddd2bf;color:var(--muted);white-space:nowrap}
.topic.is-learning .status-chip{border-color:#e2a33b;color:#8a5a12;background:#fdf1db}
.topic.is-done .status-chip{border-color:#2f6b43;color:#2f6b43;background:#e5f1e8}
.status-chip .icon{width:14px;height:14px}
.deadline.is-done>span{text-decoration:line-through;color:var(--muted)}
.log-row span{flex:1;color:var(--muted)}
.inline-form{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.inline-form input[name=title]{flex:2;min-width:180px}
.inline-form input[type=date]{flex:1;min-width:150px}
.pick-list{display:grid;gap:6px;max-height:40vh;overflow:auto}
.pick-row{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.6;padding:6px 0;border-bottom:1px dashed var(--line)}
.pick-row input{width:20px;min-height:20px;margin-top:3px;accent-color:var(--teal);flex-shrink:0}
.help p{line-height:1.8;margin-bottom:10px}

/* Forms open as full pages, on phones and computers alike */
dialog#sheet{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--bg) radial-gradient(#0000000a 1px,transparent 1px) 0 0/22px 22px;overflow-y:auto;overscroll-behavior:contain}
dialog#sheet[open]{animation:page-in .28s var(--ease)}
dialog#sheet::backdrop{background:var(--bg)}
.sheet-page{max-width:600px;margin:0 auto;padding:0 20px calc(40px + env(safe-area-inset-bottom));min-height:100%}
.sheet-page>.sheet-top{position:sticky;top:0;z-index:2;margin:0 -20px 8px;padding:calc(14px + env(safe-area-inset-top)) 20px 10px;background:linear-gradient(var(--bg) 82%,transparent)}
.sheet-page .sheet-top h2{font-size:40px}
.sheet-page .submit-button{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom));box-shadow:0 6px 18px #2d2a2633;margin-top:28px}
@keyframes page-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* Notebook fields instead of boxes: text on a hand-drawn line */
#sheet form>label,#sheet .form-row label,#sheet fieldset legend,#sheet .advanced>label{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.2px;margin:22px 0 4px}
#sheet input:not([type=checkbox]):not([type=radio]):not([type=file]),#sheet select,#sheet textarea{background:transparent;border:0;border-bottom:2px solid #d9cdb5;border-radius:0;padding:10px 2px;font-size:18px;color:var(--ink);box-shadow:none}
#sheet textarea{border:2px dashed #d9cdb5;border-radius:10px;padding:12px;font-size:16px;line-height:1.7}
#sheet input:focus,#sheet select:focus,#sheet textarea:focus{outline:none;border-color:var(--teal);background:#fffdf680}
#sheet input::placeholder{color:#b9ad98}
#sheet select{appearance:none;-webkit-appearance:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f665b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 4px center/16px;padding-left:26px}
#sheet .money-input input{font-size:28px;font-weight:700;padding-left:34px}
#sheet .money-input span{font-size:22px;left:4px}
/* Choices: soft pills; the chosen one is inked in */
#sheet .choice-chips span,#sheet .off-days span{border:0;background:#ebe2cf;color:var(--ink);border-radius:999px;font-weight:500;min-height:44px}
#sheet .choice-chips input:checked+span,#sheet .off-days input:checked+span{background:var(--ink);color:#fff;font-weight:600}
#sheet .off-days{gap:6px}
#sheet .off-days label{min-width:0}
#sheet .off-days span{width:100%;max-width:46px;height:auto;min-height:0;aspect-ratio:1;margin:0 auto}
#sheet .week-row{border:0;border-bottom:2px solid #e6dccb;border-radius:0;padding:8px 2px}
#sheet .week-row.is-on{background:transparent;border-bottom-color:#5b4ea8}
#sheet .week-times select{border-bottom-width:1.5px;font-size:16px}
#sheet .form-tabs{background:#ebe2cf;border-radius:999px;padding:4px}
#sheet .form-tabs button{border-radius:999px}
#sheet .form-tabs button.active{background:var(--ink);color:#fff;box-shadow:none}
#sheet .pick-row{border-bottom:2px solid #e6dccb}
@media(prefers-reduced-motion:reduce){dialog#sheet[open]{animation:none}}

/* Navigation labels: the phone bar uses the short ones */
.label-short{display:none}
@media(max-width:650px){.bottom-nav .label-long{display:none}.bottom-nav .label-short{display:inline}.bottom-nav>button{min-width:52px;font-size:11px}}

/* Work */
.entry.is-shift .entry-card{border-right-color:#5b4ea8;background:#f6f4fb}
.entry.is-shift h3 a:hover{color:#5b4ea8}
.big-card.is-job{border-top-color:#5b4ea8}.big-card.is-job .big-number{color:#5b4ea8}
.mini-card.is-job{border-top-color:#5b4ea8}
.month-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin:-8px 0 14px}
.month-nav b{font-size:16px;min-width:130px;text-align:center}
.shifts{display:grid;gap:6px}
.shift-row{display:grid;grid-template-columns:minmax(140px,1.4fr) minmax(0,1fr) auto 28px;gap:4px 14px;align-items:center;width:100%;text-align:start;padding:11px 16px;background:linear-gradient(var(--soft,#5b4ea81f),var(--soft,#5b4ea81f)),var(--card);border:0;border-radius:16px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,#5b4ea8) 18%,transparent)}
.shift-row:hover{box-shadow:0 4px 12px #2d2a2614}
.shift-row.is-past{background:var(--card);box-shadow:none;outline:1.5px dashed color-mix(in srgb,var(--c,#5b4ea8) 35%,transparent);outline-offset:-1.5px}
.shift-when{display:flex;flex-direction:column;font-size:14px}.shift-when bdi{font-size:13px;color:var(--muted)}
.shift-what{font-size:14px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shift-pay{font-size:16px;color:var(--c,#5b4ea8)}
.shift-row.is-past .shift-pay{color:var(--ink)}
.shift-state{color:#2f6b43;display:grid;place-items:center}
.cal-entry.is-shift{border-right-color:#5b4ea8}
@media(max-width:650px){.shift-row{grid-template-columns:1fr auto 22px}.shift-row .shift-what{display:none}}

/* The money jar */
.jar-card{display:grid;grid-template-columns:minmax(200px,260px) 1fr;gap:20px 28px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:4px;padding:20px 24px;box-shadow:0 1px 1px #0000000a,0 8px 14px -10px #00000040}
.jar{position:relative;display:flex;flex-direction:column;align-items:center}
.jar svg{width:100%;max-width:230px;height:auto;overflow:visible}
.jar-glass{fill:#ffffff55;stroke:var(--ink);stroke-width:3;stroke-linejoin:round}
.jar-shine{stroke:#ffffffcc;stroke-width:6;stroke-linecap:round}
.jar-lid{fill:#b8452f;stroke:var(--ink);stroke-width:3}
.jar-fill{transition:y 1s var(--ease),height 1s var(--ease)}
.coin{fill:url(#jar-gold);stroke:#a77c12;stroke-width:1.4}
.jar-coins .coin{animation:coin-in .45s var(--ease) both;animation-delay:calc(var(--i) * 18ms)}
.jar-drop{opacity:0}
.jar.is-dropping .jar-drop{animation:coin-drop 1s cubic-bezier(.5,0,.7,.4) .1s both}
.jar.is-dropping .jar-amount b{animation:pop .5s var(--ease) 1.1s both}
.jar-amount{position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none;text-align:center}
.jar-amount b{font-size:30px;line-height:1.1;color:var(--ink);background:#fffdf6e6;padding:2px 10px;border-radius:8px;white-space:nowrap}
.jar-amount span{font-size:12px;color:var(--muted);margin-top:4px;background:#fffdf6e6;padding:0 6px;border-radius:6px}
.jar-live{display:flex;align-items:center;gap:8px;font-size:13px;color:#5b4ea8;margin-top:8px;text-align:center}
.jar-live i{width:9px;height:9px;border-radius:50%;background:#5b4ea8;animation:pulse-dot 1.6s ease-in-out infinite}
.jar-side{display:grid;gap:14px;align-content:center}
.jar-stat{display:flex;align-items:baseline;gap:10px;border-bottom:1px dashed var(--line);padding-bottom:10px}
.jar-stat b{font-size:22px}
.jar-stat span{font-size:14px;color:var(--muted)}
.jar-side .primary{justify-self:start}
@keyframes coin-in{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes coin-drop{0%{opacity:1;transform:translateY(-30px)}70%{opacity:1;transform:translateY(170px)}100%{opacity:0;transform:translateY(190px)}}
@keyframes pop{50%{transform:scale(1.12)}}
@keyframes pulse-dot{50%{opacity:.35}}
@media(max-width:650px){.jar-card{grid-template-columns:1fr;padding:16px}.jar svg{max-width:200px}.jar-side .primary{justify-self:stretch}}
@media(prefers-reduced-motion:reduce){.jar-coins .coin,.jar.is-dropping .jar-drop,.jar.is-dropping .jar-amount b,.jar-live i{animation:none}.jar-fill{transition:none}}

/* Quick forms */
.money-input{position:relative}
.money-input input{padding-left:40px;font-size:18px}
.money-input span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:17px}
.week-rows{display:grid;gap:6px;margin-top:6px}
.week-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;transition:background .2s,border-color .2s}
.week-row.is-on{background:#f1eef9;border-color:#5b4ea8}
.day-toggle{position:relative;cursor:pointer;flex:1;min-width:0}
.day-toggle input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.day-toggle span{display:flex;flex-direction:column;padding:4px 6px 4px 6px;padding-inline-start:34px;position:relative;line-height:1.3}
.day-toggle span:before{content:'';position:absolute;inset-inline-start:4px;top:50%;width:20px;height:20px;margin-top:-10px;border:2px solid #b9aee0;border-radius:6px;background:#fff}
.day-toggle input:checked+span:before{background:#5b4ea8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/14px no-repeat;border-color:#5b4ea8}
.day-toggle input:focus-visible+span:before{outline:3px solid #dc9a57}
.day-toggle small{font-size:12px;color:var(--muted)}
.week-times{display:flex;align-items:center;gap:4px;transition:opacity .2s}
.week-times select{width:86px;min-height:40px;padding:6px 8px}
.week-row:not(.is-on) .week-times{opacity:.35}
.week-row.is-past:not(.is-on) .day-toggle b{color:var(--muted)}
@media(max-width:440px){
  .week-row{flex-wrap:wrap;gap:4px}
  .day-toggle span{flex-direction:row;align-items:baseline;gap:8px}
  .week-times{width:100%;padding-inline-start:34px}
  .week-times select{flex:1;width:auto;min-width:0}
}

/* Calendar */
/* One color per kind of thing: --c for the mark, --soft for the fill */
.t-class{--c:#8a7f70;--soft:#ece5d8}
.t-shift{--c:#5b4ea8;--soft:#e7e3f6}
.t-study{--c:#b8452f;--soft:#f7e0d8}
.t-goal{--c:#c27f0e;--soft:#faecc9}
.t-event{--c:#3a6da3;--soft:#dde9f6}
.t-task{--c:#5a7a24;--soft:#e5eed6}
.t-other{--c:#6f665b;--soft:#ece5d8}
.cal-nav{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}
.cal-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 14px;font-size:13px;color:var(--muted)}
.cal-legend span{display:flex;align-items:center;gap:6px}
.cal-legend i{width:12px;height:12px;border-radius:3px;background:var(--c)}


@media(max-width:650px){
  .tell{padding:14px}
  .tell>label{font-size:26px}
  .tell textarea{min-height:76px}
  .tell-foot .field-help{display:none}
  .entry{grid-template-columns:46px minmax(0,1fr);gap:8px}
  .free-row{margin-inline-start:54px}
  .hero{grid-template-columns:1fr;text-align:center}
  .hero-actions{justify-content:center}
  .cal-nav .text-button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.tell-mic.listening{animation:none}.big-card,.bar i{transition:none}}

/* Notes: cards as paper notes taped to the page, each in its own color */
.big-card.note{position:relative;--c:var(--teal);--soft:#b8452f14;border:0;border-radius:3px 3px 14px 3px;background:linear-gradient(var(--soft),var(--soft)),var(--card);box-shadow:0 1px 2px #0000000f,0 12px 18px -14px #00000055;padding:22px 18px 16px;transform:rotate(-.6deg)}
.card-grid>.note:nth-child(2n){transform:rotate(.5deg)}
.card-grid>.note:nth-child(3n){transform:rotate(-.2deg)}
.big-card.note:hover{transform:rotate(0) translateY(-3px)}
.big-card.note h3{color:var(--ink)}
.big-card.note .big-number,.note-amount{color:var(--c)}
.big-card.note .bar{background:#00000010}.big-card.note .bar i{background:var(--c)}
.tape{position:absolute;top:-9px;inset-inline-start:50%;width:74px;height:20px;transform:translateX(50%) rotate(-3deg);background:color-mix(in srgb,var(--c) 22%,#fff8e6c0);border-inline:1px dashed #00000014;opacity:.9}
.note-amount{font-size:30px;font-weight:700;line-height:1}

/* Progress ring, drawn like a pen circle */
.ring{position:relative;display:grid;place-items:center;flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring-track{fill:none;stroke:#00000012;stroke-width:9}
.ring-fill{fill:none;stroke:var(--c,var(--teal));stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .7s var(--ease)}
.ring>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1}
.ring b{color:var(--c,var(--teal));font-weight:700}
.ring small{font-size:12px;color:var(--muted);margin-top:4px;max-width:80%}
.ring-small{width:64px;height:64px}.ring-small b{font-size:22px}
.ring-big{width:150px;height:150px}.ring-big b{font-size:46px}

/* Goals */
.goal-note-body{display:flex;align-items:center;gap:14px}
.goal-note-body p{margin-top:2px}
.goal-note.is-reached .tape::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-weight:700;color:var(--c);font-size:14px}
.goal-streak{color:var(--c)!important;font-weight:600}
.goal-hero{--c:var(--teal);--soft:#b8452f14;display:grid;grid-template-columns:auto 1fr;gap:18px 26px;align-items:center;padding:22px;border-radius:4px 4px 18px 4px;background:linear-gradient(var(--soft),var(--soft)),var(--card);box-shadow:0 1px 2px #0000000f,0 12px 18px -14px #00000055}
.goal-hero-side{display:grid;gap:14px;min-width:0}
.goal-headline{font-family:'Amatic SC',Heebo,sans-serif;font-size:34px;line-height:1.05;font-weight:700}
.week-dots{display:flex;gap:6px;flex-wrap:wrap}
.week-dots span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1.5px dashed color-mix(in srgb,var(--c) 45%,transparent);font-size:13px;color:var(--muted);background:var(--card)}
.week-dots span.is-today{border-style:solid;border-color:var(--c);color:var(--ink);font-weight:700}
.week-dots span.is-done{background:var(--c);border:0;color:#fff}
.week-dots .icon{width:16px;height:16px}
.goal-actions{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.goal-actions .primary{background:var(--c);border-color:var(--c)}
.goal-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:16px}
.goal-stats>div{display:flex;flex-direction:column;gap:2px;padding:10px 4px;border-bottom:2px dotted var(--line);text-align:center}
.goal-stats b{font-size:24px;line-height:1.1;color:var(--c)}
.goal-stats span{font-size:12.5px;color:var(--muted)}
.goal-chart{display:grid;gap:6px;padding:8px 4px 0}
.goal-bars{position:relative;display:grid;grid-template-columns:repeat(8,1fr);align-items:end;gap:10px;height:130px;border-bottom:1.5px solid var(--ink)}
.goal-bars i{display:block;min-height:3px;border-radius:8px 8px 2px 2px;background:#00000014;transition:height .6s var(--ease)}
.goal-bars i.is-hit{background:color-mix(in srgb,var(--c) 55%,#fff)}
.goal-bars i.is-now{background:var(--c)}
.goal-target{position:absolute;inset-inline:0;border-top:1.5px dashed var(--muted);font-size:11px;color:var(--muted);line-height:1;padding-top:2px;text-align:end;pointer-events:none}
.goal-labels{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;text-align:center}
.goal-labels small{font-size:11px;color:var(--muted);white-space:nowrap}
.goal-labels small:last-child{color:var(--ink);font-weight:700}
@media(max-width:650px){
  .goal-hero{grid-template-columns:1fr;justify-items:center;text-align:center}
  .goal-hero-side{justify-items:center}
  .goal-actions{justify-content:center}
  .goal-bars,.goal-labels{gap:5px}
  .goal-labels small{font-size:10px}
}

/* Color choice for a workplace */
.color-picks{display:flex;flex-wrap:wrap;gap:12px;padding:6px 0}
.color-picks label{position:relative;cursor:pointer}
.color-picks input{position:absolute;opacity:0;inset:0;margin:0}
.color-picks span{display:block;width:34px;height:34px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 3px #ffffff80;transition:transform .15s var(--ease)}
.color-picks input:checked+span{transform:scale(1.15);box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--c)}
.color-picks input:focus-visible+span{outline:2px solid var(--ink);outline-offset:4px}

/* Week board: seven columns of cards, nothing cut */
.board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;align-items:start}
.board-day{display:grid;gap:8px;min-width:0;padding:10px 8px 12px;border-radius:14px;background:#ffffff80;border:1px solid var(--line)}
.board-day.is-today{background:#fff8e6;border:2px solid var(--teal)}
.board-day.is-free{border-style:dashed;background:transparent}
.board-day h3{display:flex;flex-direction:column;align-items:center;gap:0;padding-bottom:6px;border-bottom:1.5px dashed var(--line);font-size:13px;font-weight:400;color:var(--muted)}
.board-day h3 b{font-family:'Amatic SC',Heebo,sans-serif;font-size:30px;line-height:1;color:var(--ink)}
.board-day.is-today h3{color:var(--teal);font-weight:600}.board-day.is-today h3 b{color:var(--teal)}
.board-card{display:flex;flex-direction:column;align-items:stretch;gap:3px;width:100%;padding:8px 10px;border-radius:12px;background:var(--soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent);text-align:start;color:var(--ink);font-size:13px;line-height:1.35;transition:transform .15s var(--ease),box-shadow .15s var(--ease)}
.board-card b{font-size:14px;font-weight:600;overflow-wrap:break-word;hyphens:auto}
.board-time{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 5px;font-size:15px;font-weight:700;color:var(--c);line-height:1.2}
.board-time small{font-size:12px;font-weight:400;color:var(--muted)}
.board-time small bdi{font-size:15px;font-weight:700;color:var(--c)}
.board-kind{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:11.5px;color:var(--muted)}
.board-kind .icon{width:13px;height:13px;color:var(--c)}
.board-kind em{display:inline-flex;align-items:center;gap:3px;font-style:normal;font-weight:600;color:#b8452f}
.board-card:not(:disabled):hover{transform:translateY(-1px);box-shadow:inset 0 0 0 1.5px var(--c),0 6px 12px -8px #00000055}
.board-card:disabled{cursor:default;opacity:1}
.board-card.is-done{opacity:.55}.board-card.is-done b{text-decoration:line-through}
.board-free{text-align:center;font-size:11.5px;color:var(--faint);padding:2px 0;border-top:1.5px dashed var(--line);border-bottom:1.5px dashed var(--line);margin:2px 8px}
.board-empty{text-align:center;font-size:13px;color:var(--faint);padding:8px 0}
.board-note{font-size:11.5px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
@media(max-width:1100px){.board{gap:6px}.board-day{padding:8px 5px}.board-card{padding:7px 7px}}
/* Phones: the same seven columns side by side, sliding sideways a few days at a time; free days stay narrow */
@media(max-width:760px){
  .cal-grid.board{display:flex;align-items:flex-start;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    margin-inline:-16px;padding:2px 16px 12px;scroll-padding-inline:16px;scrollbar-width:none}
  .cal-grid.board::-webkit-scrollbar{display:none}
  .board-day{flex:0 0 132px;scroll-snap-align:start}
  .board-day.is-free{flex-basis:64px}
}

/* "How much did it come to?": a shift's pay, line by line, then the month in the workplace's color */
.pay-card{--c:#5b4ea8;display:grid;gap:14px;margin:4px 0 18px;padding:20px 20px 18px;border-radius:22px;background:var(--card);box-shadow:0 0 0 1px var(--line),0 14px 28px -22px #00000066}
.pay-title{font-family:'Amatic SC',Heebo,sans-serif;font-size:38px;line-height:1}
.pay-shift{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:12px 16px;border-radius:14px;background:var(--soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 30%,transparent);font-size:15px}
.pay-shift bdi{font-weight:700;color:var(--c)}
.pay-lines{display:grid;gap:8px;padding:2px 4px}
.pay-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px}
.pay-line b,.pay-total b,.pay-month b{direction:ltr;font-variant-numeric:tabular-nums;white-space:nowrap}
.pay-line.is-note{font-size:13px;color:var(--muted)}
.pay-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 4px 0;border-top:2px dashed var(--line);font-size:16px;font-weight:700}
.pay-total b{font-size:24px;color:var(--c)}
.pay-month{display:grid;gap:2px;padding:14px 18px;border-radius:16px;background:var(--c);color:#fff}
.pay-month small{font-size:13px;opacity:.88}
.pay-month b{font-size:32px;line-height:1.1;text-align:right}
/* Review card questions: a missing day or time is asked, never guessed silently */
.proposal.has-questions{border-color:#e8c6b8}
.proposal-ask{display:grid;gap:12px;margin-top:10px;background:#fdf3ee;border:1px solid #f0d6ca;border-radius:16px;padding:12px 14px}
.ask-row b{display:block;font-size:15px;color:var(--ink)}
.ask-row>span{display:block;font-size:13px;color:var(--muted);margin-top:2px}
.ask-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.ask-chip{border:1.5px solid #e3b3a3;background:#fff;color:#a8452f;border-radius:999px;padding:8px 16px;min-height:44px;font-size:15px;font-weight:600}
.ask-chip:active{transform:scale(.97)}
@media(hover:hover){.ask-chip:hover{background:#f9e3da}}
.ask-chips small{font-size:12px;color:var(--muted)}
.review-blocked{color:#a8452f}
@media(max-width:650px){.ask-chips{gap:6px}.ask-chip{padding:8px 13px;font-size:14px}}

/* On a phone: feels like an installed app */
html{-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
.bottom-nav,.brand,.btn,button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.field-help a{display:inline-block;padding:10px 0}
@media(max-width:760px){.bottom-nav{background:color-mix(in srgb,var(--bg) 88%,transparent)}}
@media(display-mode:standalone){body{-webkit-user-select:none;user-select:none}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}}
.install-card{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:14px 16px;border-radius:18px;background:var(--card);box-shadow:0 0 0 1px var(--line),0 12px 24px -20px #00000066}
.install-card img{border-radius:12px;flex:none}
.install-card>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;min-width:0;font-size:14px;line-height:1.5;color:var(--muted)}
.install-card>div>b{font-size:15px;color:var(--ink)}
/* ── Phones: one column, less chrome, everything within thumb reach ── */
@media(max-width:650px){
  .page-heading{margin:18px 0 14px}
  .page-heading h1{font-size:42px}
  .section-heading{flex-wrap:wrap;align-items:flex-end;margin:22px 0 10px}
  .section-heading>div:first-child{flex:1 1 auto}
  .section-heading .section-actions{flex-wrap:wrap;justify-content:flex-start;gap:4px 14px}
  .section-heading h2{font-size:30px;white-space:nowrap}
  .tell-foot .field-help{font-size:11.5px;line-height:1.4}
  /* Timetable: the class days in one column; free days fold away */
  .timetable{grid-template-columns:1fr;gap:8px}
  .tt-day:has(.tt-free){display:none}
  .tt-day{display:grid;grid-template-columns:70px 1fr;align-items:start;gap:6px 10px;border-radius:14px}
  .tt-day h3{font-size:26px;line-height:1.1;margin:0}
  .tt-day .tt-class{grid-column:2}
  /* Money jar beside its numbers instead of above them */
  .jar-card{grid-template-columns:118px 1fr;gap:10px 16px;padding:14px;border-radius:18px}
  .jar-card .jar svg{max-width:118px}
  .jar-card .jar-stat{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:6px 0}
  .jar-card .jar-stat b{font-size:20px;white-space:nowrap}
  .jar-card .jar-stat span{font-size:12px}
  .jar-card .jar-amount b{font-size:18px}
  .jar-card .jar-amount span{font-size:9.5px}
  .jar-side .primary,.jar-side .text-button{grid-column:1/-1}
  .jar-card>.jar-side{display:contents}
  .jar-card .jar-stat{grid-column:2}
  .jar-card .jar{grid-row:span 3}
  /* Goal page: a smaller ring, the actions in full width */
  .goal-hero{padding:16px;gap:12px;border-radius:4px 4px 18px 4px}
  .ring-big{width:118px;height:118px}.ring-big b{font-size:36px}
  .goal-headline{font-size:28px}
  .week-dots span{width:32px;height:32px;font-size:12px}
  .goal-actions .primary{flex:1 1 100%}
  .goal-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .goal-stats b{font-size:17px}.goal-stats span{font-size:11.5px}
  /* Calendar: the explanation line stays short */
  .cal-nav+.cal-legend+.field-help,.cal-legend+.field-help{font-size:12.5px;line-height:1.5;margin:4px 0 10px}
  /* Notes don't tilt on a small screen */
  .big-card.note,.card-grid>.note:nth-child(n){transform:none}
}
/* Account: optional, a code by email, and where the cloud copy stands */
.account-lead{font-size:16px;line-height:1.7;margin:4px 0 18px}
.account-card{display:flex;align-items:center;gap:14px;padding:16px;margin:6px 0 4px;border-radius:18px;background:var(--card);box-shadow:0 0 0 1px var(--line)}
.account-card>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.account-card b{font-size:16px;direction:ltr;text-align:right;overflow-wrap:anywhere}
.account-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;flex:none;background:color-mix(in srgb,var(--teal) 14%,var(--card));color:var(--teal)}
.account-avatar .icon{width:26px;height:26px}
.sync-line{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.sync-line .icon{width:16px;height:16px;flex:none}
.sync-line.is-bad{color:var(--teal)}
.account-actions{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 6px}
.code-input{font-size:28px!important;letter-spacing:.35em;text-align:center;font-variant-numeric:tabular-nums}
.google-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;border-radius:14px;background:var(--card);box-shadow:0 0 0 1.5px var(--line);font-size:16px;font-weight:600}
.google-button b{font-size:18px;color:#4285f4}
.or-line{display:flex;align-items:center;gap:12px;margin:16px 0 4px;color:var(--muted);font-size:13px}
.or-line::before,.or-line::after{content:'';flex:1;border-top:1px solid var(--line)}
.submit-button.danger{background:var(--teal)}
.sidebar-account .icon,.account-button .icon{width:22px;height:22px}
/* ── The way in: sign-in, then the first-time questions, one full screen at a time ── */
#gate{position:fixed;inset:0;z-index:20;overflow-y:auto;overscroll-behavior:contain;background:var(--bg) radial-gradient(#0000000a 1px,transparent 1px) 0 0/22px 22px;
  padding:calc(28px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
body.gated{overflow:hidden}
.gate-page{max-width:440px;min-height:100%;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;animation:gate-in .35s var(--ease)}
.gate-page.gate-wide{max-width:560px;justify-content:flex-start}
.gate-page h1{font-family:'Amatic SC',Heebo,sans-serif;font-size:46px;line-height:1.05;text-wrap:balance}
.gate-mark{border-radius:22px;box-shadow:0 14px 30px -18px #00000080}
.gate-lead{font-size:16px;line-height:1.7;color:var(--muted);text-wrap:pretty;max-width:36ch}
.gate-lead b{color:var(--ink)}
.gate-form{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:start}
.gate-form input{font-size:18px!important}
.gate-button{width:100%;min-height:54px;font-size:17px;justify-content:center;border-radius:16px}
.secondary.gate-button{background:var(--card);color:var(--ink);box-shadow:0 0 0 1.5px var(--line)}
.google-button.gate-button{display:flex}
.google-g{width:22px;height:22px}
.gate-fine{font-size:13px;color:var(--muted);max-width:34ch}
.gate-links{display:flex;gap:18px;justify-content:center}
.gate-skip{color:var(--muted)}
.gate-steps{display:flex;gap:6px}
.gate-steps i{width:26px;height:5px;border-radius:4px;background:var(--line)}
.gate-steps i.on{background:var(--teal)}
.gate-spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--teal);animation:spin 0.9s linear infinite}
.gate-page .or-line{width:100%}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.area-picks{display:grid;gap:10px}
.area-pick{position:relative;cursor:pointer}
.area-pick input{position:absolute;opacity:0;inset:0;margin:0}
.area-pick span{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px 16px;border-radius:16px;background:var(--card);box-shadow:0 0 0 1.5px var(--line);text-align:start;transition:box-shadow .15s,background .15s}
.area-pick .icon{grid-row:span 2;width:30px;height:30px;color:var(--muted)}
.area-pick b{font-size:17px}.area-pick small{font-size:13px;color:var(--muted)}
.area-pick input:checked+span{box-shadow:0 0 0 2.5px var(--teal);background:color-mix(in srgb,var(--teal) 8%,var(--card))}
.area-pick input:checked+span .icon{color:var(--teal)}
.area-pick input:focus-visible+span{outline:3px solid #dc9a57;outline-offset:2px}
.ob-card{width:100%;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:18px;background:var(--card);box-shadow:0 0 0 1px var(--line);text-align:start}
.ob-card h2{display:flex;align-items:center;gap:8px;font-size:18px}
.ob-card h2 .icon{width:22px;height:22px;color:var(--teal)}
.ob-card p{font-size:14px;color:var(--muted);line-height:1.6}
.ob-actions{display:flex;flex-wrap:wrap;gap:6px 18px}
.ob-inline{display:grid;grid-template-columns:1fr 110px auto;gap:8px;align-items:end}
.ob-presets{display:flex;flex-wrap:wrap;gap:8px}
.ob-preset{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--line);background:var(--card);font-size:14px}
.ob-preset.is-on{box-shadow:none;background:#2f6b43;color:#fff}
.ob-preset .icon{width:16px;height:16px}
.ob-done{display:flex;align-items:center;gap:6px;color:#2f6b43!important;font-weight:600}
.ob-done .icon{width:18px;height:18px}
@media(max-width:420px){.ob-inline{grid-template-columns:1fr 92px}.ob-inline .text-button{grid-column:1/-1;justify-self:start}}
/* The first try of "tell me", and one tip the first time each area opens */
.coach-card,.tip-card{position:relative;display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;margin:0 0 14px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,#f2c14e 22%,var(--card));box-shadow:0 0 0 1.5px color-mix(in srgb,#f2c14e 55%,transparent)}
.coach-card b{display:flex;align-items:center;gap:6px;width:100%;font-size:15px}
.coach-card p,.tip-card p{flex:1 1 220px;font-size:14.5px;line-height:1.6}
.tip-card>.icon,.coach-card b .icon{width:20px;height:20px;flex:none;color:#a77c12}
.coach-card::after{content:'';position:absolute;bottom:-9px;inset-inline-start:34px;width:16px;height:16px;background:inherit;transform:rotate(45deg);box-shadow:1.5px 1.5px 0 0 color-mix(in srgb,#f2c14e 55%,transparent)}
@keyframes gate-in{from{opacity:0;transform:translateY(10px)}}
@keyframes spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.gate-page{animation:none}.gate-spinner{animation-duration:3s}}
/* The guided tour: the rest dimmed, one real part of the screen lit, the explanation beside it */
#tour{position:fixed;inset:0;z-index:40}
.tour-hole{position:fixed;border-radius:16px;box-shadow:0 0 0 3px #f2c14e,0 0 0 9999px rgba(30,24,18,.62);pointer-events:none;transition:top .25s var(--ease),left .25s var(--ease),width .25s var(--ease),height .25s var(--ease)}
.tour-bubble{position:fixed;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 32px));display:grid;gap:8px;padding:18px 20px 14px;border-radius:20px;background:var(--card);box-shadow:0 24px 50px -20px #000000aa;animation:gate-in .25s var(--ease)}
.tour-count{font-size:12px;font-weight:700;color:var(--teal);letter-spacing:.02em}
.tour-bubble h2{font-family:'Amatic SC',Heebo,sans-serif;font-size:34px;line-height:1}
.tour-bubble p{font-size:15.5px;line-height:1.65}
.tour-buttons{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}
.tour-buttons .primary{margin-inline-start:auto;min-width:120px;justify-content:center}
.tour-skip{justify-self:center;font-size:13px;color:var(--muted)}
.tour-again{margin:0 0 16px}
@media(prefers-reduced-motion:reduce){.tour-hole{transition:none}.tour-bubble{animation:none}}
/* Agreeing to the terms on the way in */
.gate-consent{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 14px;border-radius:14px;background:var(--card);box-shadow:0 0 0 1px var(--line);text-align:start;font-size:14px;line-height:1.55;cursor:pointer}
.gate-consent input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--teal)}
.gate-consent a{color:var(--teal);font-weight:600}
.gate-consent.is-missing{box-shadow:0 0 0 2px var(--teal);animation:nudge .3s}
@keyframes nudge{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media(prefers-reduced-motion:reduce){.gate-consent.is-missing{animation:none}}
/* What brings people back, as paper notes: the streak, the month's jar, the next exam, the week */
.boost{margin-top:18px}
.boost-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px 14px;padding-top:6px}
.boost-note{font:inherit;color:inherit;text-align:start;gap:8px}
.boost-note p,.boost-note small{font-size:13px;color:var(--muted);line-height:1.55}
.boost-grid>.boost-note:nth-child(2){transform:rotate(.7deg)}
.boost-grid>.boost-note:nth-child(3){transform:rotate(-.4deg)}
.boost-grid>.boost-note:nth-child(4){transform:rotate(1deg)}
/* The streak: a flame that burns while the run goes on, and the last seven days with today circled in pen */
.streak-head{display:flex;align-items:center;gap:12px}
.flame{width:54px;height:68px;flex:none;overflow:visible}
.flame path{transform-box:fill-box;transform-origin:50% 100%}
.streak-note.is-lit .flame-out{fill:#ef7b2d;animation:burn 1.6s ease-in-out infinite}
.streak-note.is-lit .flame-in{fill:#ffd25e;animation:burn 1.1s ease-in-out infinite reverse}
.streak-note.is-lit .flame{filter:drop-shadow(0 0 10px #ffb34d99);animation:flame-in .6s var(--ease) both}
.streak-note.is-waiting .flame-out{fill:#ef7b2d99;animation:burn 2.8s ease-in-out infinite}
.streak-note.is-waiting .flame-in{fill:#ffd25e88}
.streak-note.is-out .flame path{fill:none;stroke:var(--faint);stroke-width:2.2;stroke-dasharray:4 4}
.streak-note.is-lit{--soft:#ef7b2d1c}
.streak-days{display:flex;justify-content:space-between;gap:4px;margin-top:2px}
.streak-days span{position:relative;display:grid;justify-items:center;gap:3px;flex:1}
.streak-days small{font-size:11px;color:var(--muted)}
.streak-days i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1.5px dashed #ef7b2d66;background:var(--card);color:#fff}
.streak-days .is-done i{background:#ef7b2d;border:0;animation:pop .4s var(--ease) both}
.streak-days i{animation-delay:calc(var(--n,0) * 60ms)}
.streak-days .icon{width:16px;height:16px}
.streak-days .is-today small{color:var(--ink);font-weight:700}
.pen-loop{position:absolute;bottom:-10px;left:50%;width:50px;height:50px;margin-left:-25px;overflow:visible;pointer-events:none}
.pen-loop path{fill:none;stroke:#d63a2f;stroke-width:2.4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:pen-draw .8s cubic-bezier(.45,.05,.4,1) .35s forwards}
.streak-best{font-family:'Amatic SC',Heebo,sans-serif;font-size:21px!important;font-weight:700;color:var(--warm-ink)!important;line-height:1.1!important}
@keyframes burn{0%,100%{transform:scale(1,1) skewX(0)}25%{transform:scale(.96,1.07) skewX(-3deg)}50%{transform:scale(1.03,.95) skewX(2deg)}75%{transform:scale(.98,1.04) skewX(-1deg)}}
@keyframes flame-in{from{transform:scale(.4);opacity:0}}
@keyframes pen-draw{to{stroke-dashoffset:0}}
/* The month's money: the same coin jar as on the work page, small, with the goal beside it */
.money-note{cursor:pointer}
.money-body{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center}
.money-note .jar svg{max-width:96px}
.money-note .jar-amount{display:none}
.money-side{display:grid;gap:4px;justify-items:start}
.money-side>span{font-size:12.5px;color:var(--muted)}
.money-side .bar{width:100%;margin-top:4px}
.note-cta{font-weight:600;color:var(--warm-ink)!important;text-decoration:underline dashed;text-underline-offset:4px}
/* The next exam: a page torn off a desk calendar; the others listed under it */
.exam-top{display:flex;gap:14px;align-items:flex-start}
.exam-page{position:relative;flex:none;display:grid;justify-items:center;width:84px;padding-bottom:10px;background:#fff;box-shadow:0 1px 2px #0000001f,0 6px 10px -6px #00000040;transform:rotate(-2deg);
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 6px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/12px 6px repeat-x;
  mask:linear-gradient(#000 0 0) top/100% calc(100% - 6px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/12px 6px repeat-x}
.exam-page-head{width:100%;padding:3px 0;background:var(--teal);color:#fff;font-size:12px;font-weight:700;text-align:center}
.exam-page b{font-family:'Amatic SC',Heebo,sans-serif;font-size:52px;line-height:1;margin-top:4px;color:var(--ink)}
.exam-page-unit{font-size:12px;color:var(--muted);margin-top:-2px}
.exam-page.is-near{animation:wiggle 2.6s ease-in-out 1s infinite}
.exam-page.is-near b{color:var(--teal)}
.exam-info{display:grid;gap:6px;min-width:0;flex:1}
.exam-info h3 a:hover{text-decoration:underline}
.exam-more{list-style:none;margin:4px 0 0;padding:8px 0 0;border-top:1px dashed #00000022;display:grid;gap:4px}
.exam-more li{display:flex;justify-content:space-between;gap:8px;font-size:13.5px}
.exam-more a{font-weight:600}.exam-more a:hover{text-decoration:underline}
.exam-more span{color:var(--muted);white-space:nowrap}
@keyframes wiggle{0%,86%,100%{transform:rotate(-2deg)}90%{transform:rotate(3deg)}94%{transform:rotate(-5deg)}97%{transform:rotate(1deg)}}
/* The week: a yellow sticky note */
.big-card.note.week-note{--c:#b88a14;--soft:transparent;background:#fbe9a6;border-radius:2px 2px 18px 2px}
.week-lines{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.week-lines li{font-size:14px;padding:3px 0;border-bottom:1px solid #b88a1426}
.week-lines b{font-family:'Amatic SC',Heebo,sans-serif;font-size:24px;line-height:1;margin-inline-end:4px}
@media(max-width:560px){
  /* On a phone the notes slide sideways, one at a time, instead of stacking down the page */
  .boost-grid{display:flex;align-items:stretch;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    margin-inline:-16px;padding:16px 16px 14px;scroll-padding-inline:16px;scrollbar-width:none}
  .boost-grid::-webkit-scrollbar{display:none}
  .boost-grid>.boost-note{flex:0 0 84%;scroll-snap-align:start}
  .boost-grid>.boost-note:only-child{flex-basis:100%}
  /* Progress cards too: a row that slides, not a long column */
  .progress .mini-grid{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    margin-inline:-16px;padding:2px 16px 10px;scroll-padding-inline:16px;scrollbar-width:none}
  .progress .mini-grid::-webkit-scrollbar{display:none}
  .progress .mini-card{flex:0 0 62%;scroll-snap-align:start}
  .money-body{grid-template-columns:1fr;justify-items:center;text-align:center}
  .money-side{justify-items:center}
  .money-note .jar svg{max-width:74px}
  .exam-top{flex-direction:column;align-items:center;text-align:center}
  .exam-page{width:76px}
  .boost-note h3{font-size:26px}
}
/* Things to remember: a ruled notebook page with a red margin. A tick is drawn in red pen and crosses the line out */
.todo{margin-top:18px;padding-top:6px}
.big-card.note.todo-note{--c:#d63a2f;--soft:transparent;padding:20px 18px 12px;padding-inline-start:44px;transform:rotate(-.3deg);
  background:linear-gradient(to left,transparent 33px,#d63a2f55 33px 34px,transparent 34px),var(--card)}
.big-card.note.todo-note:hover{transform:rotate(-.3deg)}
.todo-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;height:30px}
.todo-head h3{font-family:'Amatic SC',Heebo,sans-serif;font-size:30px;line-height:1}
.todo-head small{font-size:13px;color:var(--muted)}
.todo-lines{list-style:none;margin:8px 0 0;padding:0}
.todo-lines li,.todo-add{border-bottom:1px solid #3b6fb42e}
.todo-lines li{display:flex;align-items:center;gap:10px;min-height:40px;padding:2px 0;animation:enter .3s var(--ease) both}
.todo-box{flex:none;display:grid;place-items:center;width:22px;height:22px;min-width:0;min-height:0;padding:0;border:1.8px solid #4a4a4a;border-radius:3px 4px 3px 5px;background:transparent;cursor:pointer}
.todo-box svg{width:26px;height:26px;margin:-6px -4px 0 0;overflow:visible}
.todo-box path{fill:none;stroke:#d63a2f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:pen-draw .35s ease-out forwards}
.todo-text{flex:1;min-width:0;font-size:15.5px;line-height:1.5;overflow-wrap:anywhere}
.todo-text>span{background:linear-gradient(#d63a2f,#d63a2f) right 58%/0 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .35s ease-out,color .35s}
.todo-lines .is-done .todo-text>span{background-size:100% 2px;color:var(--muted)}
.todo-remove{flex:none;display:grid;place-items:center;width:30px;height:30px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:none;color:var(--faint);cursor:pointer;opacity:.55}
.todo-remove:hover,.todo-remove:focus-visible{opacity:1;color:#d63a2f;background:#d63a2f12}
.todo-remove .icon{width:15px;height:15px}
.todo-add input{width:100%;height:38px;padding:0;border:0;border-radius:0;background:transparent;font:inherit;font-size:15.5px;color:var(--ink);box-shadow:none}
.todo-add input::placeholder{color:var(--muted)}
.todo-add input:focus{outline:none;box-shadow:inset 0 -2px 0 #d63a2f66}
@media(hover:hover){.todo-remove{opacity:0}.todo-lines li:hover .todo-remove{opacity:.7}}
@media(prefers-reduced-motion:reduce){.todo-box path{animation:none;stroke-dashoffset:0}.todo-text{transition:none}.todo-lines li{animation:none}}
/* A cancelled class: still in its place, faded and crossed out, with a red stamp; under it, the time it freed */
.cancelled-mark{display:inline-block;margin-inline-end:6px;padding:0 7px;border:1.5px solid #d63a2f;border-radius:4px;color:#d63a2f;font-size:11px;font-weight:800;font-style:normal;letter-spacing:.04em;transform:rotate(-4deg);background:#fff8}
.entry.is-cancelled .time{opacity:.45;text-decoration:line-through}
.entry.is-cancelled .entry-card{background:repeating-linear-gradient(-45deg,transparent 0 9px,#00000006 9px 11px),var(--card);border-right-color:#c9bfae}
.entry.is-cancelled h3,.entry.is-cancelled h3 a{color:var(--muted);text-decoration:line-through;text-decoration-color:#d63a2f88}
.board-card.is-cancelled{opacity:.62}
.board-card.is-cancelled b{text-decoration:line-through;text-decoration-color:#d63a2f99}
.board-card.is-cancelled .cancelled-mark{margin:0 6px}
.freed{margin-top:10px;padding:12px 14px;border-radius:12px;background:#fbe9a6;box-shadow:0 1px 2px #0000000d;display:grid;gap:8px;animation:enter .35s var(--ease) both}
.freed-head{font-size:14.5px;line-height:1.5}
.freed-head b{font-family:'Amatic SC',Heebo,sans-serif;font-size:24px;line-height:1;color:var(--teal)}
.freed-ideas{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.freed-idea{display:flex;align-items:flex-start;gap:9px;padding:9px 11px;border-radius:10px;background:var(--card);box-shadow:0 0 0 1px #b88a1433;text-align:start;font:inherit;color:inherit}
.freed-idea:hover{box-shadow:0 0 0 1.5px var(--teal),0 6px 12px -8px #00000055}
.freed-idea>.icon{width:18px;height:18px;flex:none;margin-top:2px;color:var(--teal)}
.freed-idea.is-goal>.icon{color:#e2a33b}.freed-idea.is-shift>.icon{color:#5b4ea8}
.freed-idea span{display:grid;gap:1px;min-width:0}
.freed-idea b{font-size:14px;line-height:1.35}
.freed-idea small{font-size:12px;color:var(--muted);line-height:1.4}
.freed-other{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
/* The class menu, and the list of classes to mark cancelled */
.menu-list{display:grid;gap:8px;margin-top:8px}
.menu-row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:13px 14px;border-radius:12px;background:var(--card);box-shadow:0 0 0 1px var(--line);text-align:start;font:inherit;color:inherit}
.menu-row:hover{box-shadow:0 0 0 1.5px var(--teal)}
.menu-row>.icon{width:20px;height:20px;flex:none;margin-top:2px;color:var(--teal)}
.menu-row span{display:grid;gap:2px}
.menu-row b{font-size:15.5px}
.menu-row small{font-size:13px;color:var(--muted);line-height:1.45}
.cancel-list{list-style:none;margin:10px 0;padding:0;display:grid;gap:6px}
.cancel-list li{display:flex;gap:10px;align-items:baseline;padding:9px 12px;border-radius:10px;background:var(--card);box-shadow:0 0 0 1px var(--line)}
.cancel-list bdi{color:var(--muted);font-size:13.5px}
/* The calendar's note on where the classes come from: a sticky note with a pen arrow down to the week */
.cal-hint{position:relative;max-width:520px;margin:18px 0 34px;padding:20px 18px 12px;background:#fbe9a6;border-radius:2px 2px 16px 2px;box-shadow:0 1px 2px #0000000f,0 12px 18px -14px #00000055;transform:rotate(-.6deg)}
.cal-hint h3{font-family:'Amatic SC',Heebo,sans-serif;font-size:30px;line-height:1.05;margin-bottom:4px}
.cal-hint p{font-size:14.5px;line-height:1.6;color:#4a4339}
.cal-hint-actions{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;margin-top:8px}
.cal-hint-actions .text-button{font-weight:700}
.cal-hint-arrow{position:absolute;bottom:-30px;inset-inline-end:34px;width:40px;height:46px;overflow:visible}
.cal-hint-arrow path{fill:none;stroke:#d63a2f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:pen-draw .9s cubic-bezier(.45,.05,.4,1) .4s forwards}
/* The money goal next to the jar */
.jar-goal{display:grid;gap:4px;width:100%;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,#d9a12a 12%,var(--card));text-align:start;font-size:13.5px}
.jar-goal .bar i{background:#d9a12a}
.jar-goal small{color:var(--muted);font-size:12.5px}
/* Overlaps the person said yes to, and their notes */
.entry-overlap{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12.5px;font-weight:600;color:var(--warm-ink)}
.entry-overlap .icon{width:14px;height:14px}
.entry-note{margin-top:4px;padding:6px 10px;border-radius:8px;background:var(--bg);font-size:13px;line-height:1.5;color:var(--ink)}
.overlap-ask{display:grid;gap:8px;margin:10px 0 0;padding:12px 14px;border-radius:12px;background:var(--warm);color:var(--warm-ink);font-size:14px;line-height:1.55}
.overlap-ask p{display:flex;gap:8px;align-items:flex-start}
.overlap-ask p .icon{width:18px;height:18px;flex:none;margin-top:2px}
.overlap-ask input{background:var(--card)}
.overlap-ask .primary{justify-self:start}
.slot.overlap-ok{background:var(--warm);color:var(--warm-ink);font-weight:600}
.proposal-status.ok .proposal-note{width:100%;margin-top:8px;padding:8px 12px;border:1.5px solid var(--line);border-radius:10px;font:inherit;font-size:14px;background:#fffef9}

/* A copy kept aside when two copies met, ready to be joined back */
.backup-note{display:grid;gap:4px;margin:12px 0;padding:12px 14px;border-radius:12px;background:var(--warm);color:var(--warm-ink);font-size:14px;line-height:1.55}
.backup-note p{display:flex;gap:8px;align-items:flex-start}
.backup-note .icon{width:18px;height:18px;flex:none;margin-top:2px}
.backup-note .text-button{justify-self:start;font-weight:700}

/* Phone: no accidental zoom (double-tap or tapping into a text box); pinching to zoom still works */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea{font-size:max(16px,1em)}

/* Goal: every free day to choose from, and a clear "goal reached" */
.rest-option.is-selected{background:var(--teal-soft,#f8e6dc);border-color:#e3b3a3;color:var(--teal,#b8452f);font-weight:600}
.rest-option .icon{width:16px;height:16px;margin-inline-end:4px;vertical-align:-3px}
.rest-option:disabled{opacity:.45;cursor:default}
.rest-count{font-size:14px;color:var(--muted);margin:10px 0}
.rest-count.is-full{display:flex;align-items:center;gap:6px;color:#2f7d5b;font-weight:700;background:#e7f3ec;border-radius:12px;padding:8px 12px}
.rest-count .icon{width:18px;height:18px}

/* Free windows can be tapped to add something there */
button.free-row{display:flex;align-items:center;gap:8px;width:calc(100% - 68px);box-sizing:border-box;text-align:start;font:inherit;color:inherit;cursor:pointer;border-radius:12px}
.free-row em{margin-inline-start:auto;font-style:normal;font-size:13px;font-weight:600;color:var(--teal,#b8452f);display:inline-flex;align-items:center;gap:4px}
.free-row em .icon{width:14px;height:14px}
@media(hover:hover){button.free-row:hover{background:var(--hover-fill,#f1e9dc)}}

/* Course card: a big, clear way into topics and progress */
.course-open{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:12px 0 4px;padding:12px 16px;min-height:50px;border-radius:14px;background:var(--ink,#2d2a26);color:#fff;font-weight:700;font-size:16px;text-decoration:none}
.course-open .icon{width:20px;height:20px}
.course-open .icon:last-child{margin-inline-start:auto}
.course-open:active{transform:scale(.99)}
@media(hover:hover){.course-open:hover{background:#4a443d}}
@media(max-width:650px){button.free-row{width:calc(100% - 54px)}}
