:root {
  --ink:#1d2924; --muted:#52645b; --forest:#123e35; --brand:#106148;
  --paper:#f8f7f1; --line:#d5dcd0; --white:#fff; --yellow:#f7e9a5; --mint:#cce4d4;
  font:16px/1.5 "DM Sans","Segoe UI",sans-serif;
  color:var(--ink); background:var(--paper); color-scheme:light;
}
* {box-sizing:border-box}
body {margin:0}
a {color:var(--brand);text-underline-offset:3px}
button,summary,a,input,select,textarea {touch-action:manipulation}
button,input,select,textarea {font:inherit}
button,summary {cursor:pointer}
button {border:0;background:none;color:inherit}
button:disabled {opacity:.5;cursor:default}
.wrap {width:min(1120px,calc(100% - 64px));margin:auto}
.top {border-bottom:1px solid var(--line);background:#fffdf7}
.topin,.line,.actions,.searchrow,footer {display:flex;align-items:center;gap:.75rem}
.topin,.line,footer {justify-content:space-between}
.topin {min-height:66px}
.brand {display:flex;align-items:baseline;gap:6px;color:var(--forest);text-decoration:none}
.brand b {font:700 34px/.95 Georgia,serif;letter-spacing:-2px}
.brand span {font-size:.84rem}
.top nav {display:flex;align-items:center;gap:22px}
.top nav a {display:flex;align-items:center;min-height:42px;color:var(--ink);font-size:.9rem}
.current {font-weight:750}
main {padding:32px 0 26px}
.intro {max-width:780px;padding:10px 0 20px}
.value-pills {display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.value-pills span {background:#eaf2ea;border:1px solid #cddccc;color:var(--forest);padding:5px 11px;border-radius:999px;font-size:.81rem;font-weight:650}
.over {color:var(--brand);font-weight:750;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;margin:0 0 8px;overflow-wrap:anywhere}
h1,h2,h3,p {margin-top:0}
h1 {font:500 clamp(2.5rem,5.2vw,4.4rem)/1.02 Georgia,serif;letter-spacing:-.05em;margin-bottom:.28em;color:var(--forest)}
h2 {font:600 clamp(1.35rem,2.3vw,2rem)/1.12 Georgia,serif;letter-spacing:-.035em;margin-bottom:.48em}
h3 {font-size:1.04rem}
.lede {max-width:62ch;color:var(--muted);font-size:1rem;margin-bottom:0}
.searchrow {align-items:end;max-width:890px}
.searchlabel {flex:1;margin:0}
.searchrow input,.searchrow button {min-height:50px}
.search-meta {max-width:890px;align-items:flex-start;margin:10px 0 18px}
.search-meta>span {padding-top:.65rem}
.results-title {margin-bottom:.7rem}
.explore-links {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 14px;font-size:.9rem}
.explore-links a {min-height:40px;display:inline-flex;align-items:center;text-decoration:none}
.demo-cta {background:#fff;border-color:#98b8a4}
.quick-chips {display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px}
.chip {border:1px solid #cbd7cb;background:#fff;color:var(--forest);border-radius:999px;padding:6px 13px;min-height:36px;font-size:.83rem;font-weight:650;transition:background .15s,border-color .15s}
.chip:hover {background:#eef4ed;border-color:#8eb09b}
.chip[aria-pressed=true] {background:var(--forest);color:#fff;border-color:var(--forest)}
.plan-working {display:flex;align-items:center;gap:10px;margin:0 0 10px;color:var(--forest);font-weight:650}
.plan-working progress {width:65px;accent-color:var(--brand)}
.primary,.outline {border-radius:9px;padding:.65rem 1rem;min-height:44px;font-weight:680;line-height:1.25;white-space:normal}
.primary {background:var(--forest);color:#fff}
.primary:hover:not(:disabled) {background:var(--brand)}
.outline {border:1px solid #aab9ac;background:var(--white);color:var(--forest)}
.outline:hover:not(:disabled) {background:#ecf3eb}
.text {color:var(--brand);padding:.45rem 0;min-height:40px;text-align:left;font-weight:650;text-decoration:underline;text-underline-offset:3px}
input,select,textarea {border:1px solid #aeb9af;border-radius:8px;padding:.65rem .75rem;background:white;color:var(--ink);width:100%;min-width:0;min-height:44px}
textarea {resize:vertical}
label {display:block;font-size:.88rem;font-weight:650;margin:.55rem 0}
label input,label select,label textarea {display:block;margin-top:4px;font-weight:450}
.inline-check {display:inline;width:auto;min-height:auto}
details {border-block-start:1px solid var(--line);padding:.65rem 0}
summary {font-weight:660;color:var(--forest);min-height:32px}
.filters {border:0;width:min(100%,689px)}
.filters summary {font-size:.88rem}
#filters,.formgrid,.routine {display:grid;gap:.65rem}
#filters {grid-template-columns:repeat(auto-fit,minmax(124px,1fr))}
.formgrid {grid-template-columns:1fr 1fr}
.routine {grid-template-columns:repeat(7,minmax(0,1fr))}
.results {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.result {display:flex;flex-direction:column;padding:17px;background:white;border:1px solid var(--line);border-radius:12px;gap:8px;align-items:start;box-shadow:0 1px 2px #123e350d}
.result-top {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;flex-wrap:wrap}
.badge-ready,.badge-pdf {font-size:.71rem;font-weight:700;padding:2px 8px;border-radius:999px;line-height:1.4}
.badge-ready {background:#dff1e5;color:#12563c}
.badge-pdf {background:#f1f3ee;color:#4f6057}
.result h3 {line-height:1.25;margin:0;text-wrap:pretty}
.result p,.result small,.result a,.muted,#count,#syncLabel {color:var(--muted);font-size:.87rem}
.result p {margin:0}
.result-links {display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin-top:auto;padding-top:6px}
.result-links a {min-height:44px;display:inline-flex;align-items:center}
.tag,.kind {color:var(--forest);font-size:.72rem;font-weight:700;letter-spacing:.025em}
#more {margin-block:8px}
#setup,#board {padding-top:4px}
#setup h1,#board h1 {font-size:clamp(2.3rem,4.5vw,3.9rem)}
#setupForm {max-width:640px;margin-top:14px}
#roleList > label {margin-bottom:16px}
.setup-sheet {padding:20px;border:1px solid var(--line);background:var(--white);border-radius:13px;margin-bottom:16px}
.setup-sheet h2 {font-size:1.5rem;margin-bottom:.35rem}
.program-preview {background:#f0f5ed;border:1px solid #cddccc;border-radius:10px;padding:12px 14px;margin:0 0 14px}
.program-preview h2 {font-size:1.25rem;margin:0 0 .35rem}
.program-preview p {margin:0 0 .38rem;font-size:.86rem;overflow-wrap:anywhere}
.program-preview p:last-child {margin:0}
.setup-sheet .primary {margin-top:.25rem}
#syllabus ul {max-height:300px;overflow:auto;padding-inline-start:22px}
#setup #back {margin-bottom:5px}
#setupOver:empty,.error:empty,#progress:empty,#offerStatus:empty {display:none}
.offer {margin:28px 0 8px;border-radius:16px;background:linear-gradient(135deg,#e5ede3 0%,#dce9de 100%);border:1px solid #c3d5c5;color:var(--forest);padding:26px;display:grid;grid-template-columns:1.55fr 1fr;gap:24px}
.offer h2 {font-size:1.68rem;margin-bottom:.5rem}
.offer p {max-width:58ch}
.offer-list {margin:0 0 12px;padding-inline-start:18px;display:grid;gap:6px;font-size:.94rem;color:var(--ink)}
.offer-trust {font-size:.84rem;color:var(--muted);margin:0}
.offer-cta {display:grid;align-content:center;justify-items:start;gap:6px;background:#ffffffb8;border:1px solid #c5d6c7;border-radius:12px;padding:18px}
.offer-badge {margin:0;font-size:.74rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:var(--brand)}
.offer strong {font-size:1.85rem}
.offer-list strong {font-size:inherit}
.offer small {font-size:.9rem}
.offer p:last-child {margin-bottom:0}
.error {color:#8c2832;margin:.65rem 0}
.actions,.line {flex-wrap:wrap}
.line h2 {margin:0}
.board-heading {align-items:center;gap:12px 24px;margin-bottom:18px}
.board-heading h1 {margin:0 0 6px}
#boardOver {font-weight:700;line-height:1.3;margin:0 0 3px;overflow-wrap:anywhere}
#boardSub {font-size:.91rem}
.board-heading .actions {gap:12px}
.preview-banner {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#eff5ee;border:1px solid #c5d8c8;border-radius:12px;padding:10px 14px;margin-bottom:12px;font-size:.88rem;color:var(--forest)}
.preview-banner .outline {min-height:38px;padding:.4rem .85rem}
.board-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.stat-card {background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:grid;gap:2px;min-width:0;box-shadow:0 1px 2px #123e350a}
.stat-card span {font-size:.73rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.stat-card strong {font-size:1.15rem;color:var(--forest);line-height:1.2;overflow-wrap:anywhere}
.stat-card small {font-size:.79rem;color:var(--muted);overflow-wrap:anywhere}
.stat-bar {height:6px;background:#e7ece4;border-radius:999px;overflow:hidden;margin-top:5px}
.stat-bar i {display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .25s ease}
.planner {min-width:0;border:1px solid var(--line);background:#fffdf9;border-radius:16px;padding:18px 20px 20px;box-shadow:0 2px 8px #123e350a}
#calendar {contain:layout style}
#board .overview,#coverage,#history,.offer,footer {content-visibility:auto;contain-intrinsic-size:auto 120px}
.planner-tools,.period-heading,.day-agenda-head {display:flex;align-items:center;justify-content:space-between;gap:12px}
.view-switch {display:inline-flex;background:#edf1e9;border:1px solid #d5ded4;padding:3px;border-radius:10px}
.view-switch button {min-width:72px;min-height:36px;font-weight:680;font-size:.88rem;border-radius:7px}
.view-switch button[aria-pressed=true] {background:var(--forest);color:white}
.period-nav {display:flex;gap:3px}
.period-nav button {min-height:40px;min-width:40px;border:1px solid var(--line);background:#fff;border-radius:8px;font-weight:650;line-height:1}
.period-nav button:not(#now) {font:500 1.65rem/1 "Segoe UI",sans-serif}
#now {padding:0 13px}
.period-heading {margin:18px 0 14px;align-items:flex-end;flex-wrap:wrap}
#periodTitle {font-size:clamp(1.35rem,2.7vw,2rem);margin:0;line-height:1.15}
#periodTitle:first-letter,.day-agenda h3:first-letter,.card-status:first-letter {text-transform:uppercase}
#periodSummary,.day-agenda-head p {margin:4px 0 0;font-size:.84rem;color:var(--muted)}
.legend {display:flex;flex-wrap:wrap;gap:5px 8px;color:var(--muted);font-size:.76rem}
[data-kind=estudo] {--accent:#285e94;--tint:#e8f1fc;--edge:#c0d5ec}
[data-kind=revisao] {--accent:#18705a;--tint:#e4f2e8;--edge:#b7d7c5}
[data-kind=questoes] {--accent:#875013;--tint:#fff1ce;--edge:#e9d39d}
[data-kind=simulado] {--accent:#6f448a;--tint:#f2eaf8;--edge:#d9c6e5}
.legend button,.tile-kind {display:inline-flex;align-items:center;gap:5px}
.legend-btn {border:1px solid #dbe2d6;background:#fff;border-radius:999px;padding:4px 10px;min-height:30px;font-size:.76rem;font-weight:650;color:var(--muted)}
.legend-btn:hover {border-color:var(--accent);color:var(--ink)}
.legend-btn[aria-pressed=true] {background:var(--tint);border-color:var(--accent);color:var(--ink)}
.legend button::before,.tile-kind i,.markers i {content:"";display:inline-block;width:7px;height:7px;border-radius:2px;background:var(--accent)}
.next {display:flex;align-items:center;justify-content:space-between;gap:12px 20px;padding:13px 17px;border-radius:11px;background:var(--forest);color:#fff;margin-bottom:13px}
.next-main {min-width:0}
.next-label {display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px;font-size:.76rem;color:#d5e9de}
.next-label span:first-child {font-weight:700}
.next h2 {font:700 clamp(1.01rem,1.7vw,1.22rem)/1.2 "DM Sans","Segoe UI",sans-serif;letter-spacing:0;margin:4px 0 2px;color:white;overflow-wrap:anywhere}
.topic {font-weight:600;line-height:1.36;overflow-wrap:anywhere}
.next .topic {font-size:.88rem;font-weight:450;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.next .actions {flex-shrink:0;gap:6px;justify-content:flex-end}
.next .outline {border-color:#88b49d;background:transparent;color:white}
.next .outline:hover {background:#214e43}
.next-detail {color:#f4f9ef;text-decoration:underline;text-underline-offset:3px}
.next-detail:hover {color:#ffe9a0}
.active-controls {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.active-controls strong {font-size:1.45rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.primary-on-dark,.primary-on-dark:hover:not(:disabled) {background:#f3e4a6;color:#1c362b}
.card-link {color:#f9eca8;display:inline-flex;align-items:center;min-height:40px;font-weight:650}
.completion,.focus-empty {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border:1px solid #bddac8;background:#edf6ef;color:#174730;border-radius:9px;padding:7px 12px;margin:0 0 10px;font-size:.88rem}
.completion .text,.focus-empty .text {min-height:36px}
.overview {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0;align-items:start}
.overview-panel {background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px}
.overview-panel h2 {font-size:1.36rem;margin-bottom:.35rem}
.overview-panel p:last-child {margin:0}
.timeline {margin:0;padding:0;list-style:none}
.timeline>li {display:grid;grid-template-columns:minmax(48px,6.4rem) 1fr auto;align-items:start;gap:8px;padding:8px 0;border-bottom:1px solid #ecf0e9;font-size:.85rem}
.timeline>li:last-child {border-bottom:0}
.timeline :is(time,span) {color:var(--muted);font-size:.79rem;line-height:1.4}
.timeline li div span {display:block;margin-top:3px;overflow-wrap:anywhere}
.timeline li strong {display:block;line-height:1.33;overflow-wrap:anywhere}
.timeline .text {min-height:32px;padding:3px 0}
.overview-panel details {padding-bottom:0;margin-top:3px}
.desktop-week,.week-strip,.month-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.desktop-week {gap:6px}
.week-strip {display:none}
.week-col {border:1px solid #e2e6df;background:#f7f8f3;border-radius:8px;padding:5px;min-width:0;min-height:185px}
.week-col.is-today {border-color:#78a38d;background:#f2f6ef}
.column-head {display:grid;grid-template-columns:auto 1fr;gap:2px 4px;align-items:center;width:100%;text-align:left;color:var(--forest);padding:6px 5px 8px}
.column-head span {font-size:.74rem;font-weight:700;grid-column:1/-1}
.column-head b {font-size:1.18rem;line-height:1.2}
.column-head small {font-size:.68rem;color:var(--muted);text-align:right}
.is-today .column-head b,.month-day.is-today b {background:var(--forest);color:white;border-radius:6px;padding:2px 5px}
.study-tile {display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;min-width:0;color:var(--ink);background:var(--tint);border:1px solid var(--edge);border-inline-start:3px solid var(--accent);border-radius:7px;padding:8px;overflow-wrap:anywhere;transition:box-shadow .12s,opacity .12s}
.study-tile:hover,.month-day:hover,.week-choice:hover,.column-head:hover {box-shadow:inset 0 0 0 1px var(--accent,#759b88)}
.study-tile[draggable=true] {cursor:grab}
.study-tile[draggable=true]:active {cursor:grabbing}
.study-tile.is-dragging {opacity:.45}
.study-tile.is-done {opacity:.78;background:#f4f7f3}
.study-tile.is-fixed {box-shadow:inset 0 0 0 1px var(--accent)}
.week-col.is-drop-target,.month-day.is-drop-target {outline:2px dashed var(--brand);outline-offset:-2px;background:#e6f2ea}
.week-col .study-tile {margin-bottom:5px}
.tile-kind {font-size:.7rem;font-weight:750;color:var(--accent);line-height:1.3}
.study-tile strong {font-size:.83rem;line-height:1.24;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tile-topic {font-size:.8rem;line-height:1.32;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tile-meta {font-size:.73rem;color:#3e5048;margin-top:2px}
.study-tile.is-done .tile-kind::after {content:"✓";font-weight:800}
.more-day {width:100%;min-height:36px;font-size:.77rem;text-decoration:underline;color:var(--brand)}
.compact-week {display:none}
.markers {display:flex;align-items:center;gap:2px;min-height:6px}
.markers i {height:4px;width:10px}
.day-agenda {min-width:0}
.day-agenda-head {margin:4px 0 10px}
.day-agenda-head h3 {font-size:1.05rem;line-height:1.3;margin:0}
.day-agenda-head .day-adjust {white-space:nowrap}
.day-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));gap:8px}
.day-list .study-tile {padding:11px 13px}
.day-list .study-tile strong {font-size:.99rem}
.day-list .tile-topic {-webkit-line-clamp:4}
.day-list:has(.timed-row) {grid-template-columns:minmax(0,1fr)}
.timed-row {display:grid;grid-template-columns:4.1rem minmax(0,1fr);gap:8px;align-items:start}
.timed-row > time,.timed-row > span {padding-top:12px;color:var(--forest);font-weight:700;font-size:.82rem;font-variant-numeric:tabular-nums}
.timed-row .study-tile {width:100%}
.empty-day {padding:18px;border:1px dashed #ccd7cc;border-radius:8px;margin:0;color:var(--muted)}
.month-grid {gap:4px}
.month-head {color:var(--muted);text-align:center;font-size:.76rem;padding:4px}
.month-head abbr {text-decoration:none}
.month-day {min-width:0;min-height:67px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;justify-content:flex-start;text-align:left;color:var(--forest);padding:7px 9px;border:1px solid #dce3d8;background:#f8f9f5;border-radius:7px}
.month-day b {font-size:.94rem;line-height:1.25}
.month-caption {font-size:.71rem;color:var(--muted)}
.month-count {display:none}
.month-day .markers {margin-top:auto}
.month-day.adjacent {background:#fff;color:#657469;border-style:dashed}
.month-day.is-complete {background:#e8f4ea;border-color:#a5cbb0}
.month-day.is-deadline {border-color:#875013;background:#fff5dd}
.month-day.is-today {border-color:var(--brand);background:#eff5ee}
.subject-panel {margin-bottom:14px;border-block-start:1px solid var(--line)}
.subject-panel summary {font:600 1.25rem/1.2 Georgia,serif;color:var(--ink);padding-bottom:6px}
.subject-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:10px;margin-top:8px}
.subject-row {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e6ebe2;border-radius:10px;background:#fcfcf9}
.subject-info {min-width:0;flex:1;display:grid;gap:2px}
.subject-info strong {font-size:.88rem;line-height:1.25;overflow-wrap:anywhere}
.subject-info span {font-size:.78rem;color:var(--muted)}
.subject-log {min-height:36px;padding:.35rem .75rem;font-size:.82rem;flex-shrink:0}
.study-timer {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:#eef5ee;border:1px solid #c5d9c8;margin:8px 0 10px}
.timer-readout {display:flex;align-items:baseline;gap:8px}
.timer-readout strong {font-size:1.35rem;font-variant-numeric:tabular-nums;color:var(--forest)}
.timer-readout span {font-size:.8rem}
.floating-timer {position:fixed;right:16px;bottom:16px;z-index:7;background:var(--forest);color:#fff;border-radius:999px;padding:9px 15px;font-size:.86rem;font-weight:700;font-variant-numeric:tabular-nums;box-shadow:0 6px 20px #123e3540}
.floating-timer:hover {background:var(--brand)}
.practice-counts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.55rem 0}
.practice-counts input {width:100%;min-width:0}
#practiceSettings > .error:empty {display:none}
#practiceSettings label,#timingSettings label {overflow-wrap:anywhere}
#cardDialog {max-width:490px}
#logDialog {max-width:540px}
#logTopics {display:grid;gap:5px}
.log-topic {display:grid;gap:2px;text-align:left;background:white;border:1px solid var(--line);border-radius:7px;padding:9px 11px;overflow-wrap:anywhere}
.log-topic span {font-size:.85rem;line-height:1.3}
.log-topic:hover {border-color:var(--brand)}
#cardDialog h2 {font-size:clamp(1.45rem,3vw,2rem);line-height:1.15;overflow-wrap:anywhere}
#cardKind {font-size:.84rem;margin:0;font-weight:700}
#cardDetails p {margin:0 0 10px}
.card-status {padding:10px 12px;margin:12px 0 8px;border-radius:8px;background:#e9f0e6;color:var(--forest);font-size:.9rem}
#cardActions:not([hidden]),#reviewActions:not([hidden]) {margin-bottom:8px}
.form-hint {font-size:.84rem;color:#72421c;margin:6px 0}
.form-hint:empty {display:none}
#gradeLabel {grid-column:1/-1}
#coverage {margin-top:13px}
#capacityInfo {max-height:340px;overflow:auto}
.board-footer {margin-top:.75rem}
.sourcebox {border-left:3px solid var(--brand);padding:.65rem 1rem;background:#edf1e9;margin:12px 0;overflow-wrap:anywhere}
dialog {width:min(650px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:20px;color:var(--ink)}
dialog::backdrop {background:#172c2480}
dialog .line {flex-wrap:nowrap}
dialog .close {font-size:1.7rem;min-width:44px;min-height:44px}
dialog details>summary {min-height:35px}
dialog .document-text {max-height:220px;overflow:auto;white-space:pre-wrap;font:inherit;font-size:.83rem}
.file-label {border:1px dashed #9bad9e;border-radius:10px;padding:10px 12px;background:#fff}
.file-label input {border:0;padding:.4rem 0}
.file-label input::file-selector-button {border:0;background:#e6eee3;color:var(--forest);font:inherit;padding:7px 10px;margin-right:6px;border-radius:6px}
#links button {display:block}
.sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
[hidden] {display:none!important}
#notice:not(:empty) {position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:8;border-radius:10px;background:var(--forest);color:#fff;padding:10px 17px;width:max-content;max-width:92vw}
footer {border-top:1px solid var(--line);padding-block:15px;color:var(--muted);font-size:.8rem}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #ad671d;outline-offset:3px}
li {overflow-wrap:anywhere}
@media(max-width:850px) {
  .wrap {width:calc(100% - 32px)}
  .desktop-week {display:none}
  .compact-week {display:block}
  .week-strip {display:grid;gap:4px;margin-bottom:12px}
  .week-choice {display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;border:1px solid #d5dfd5;background:#f5f7f2;padding:5px 2px;border-radius:7px}
  .week-choice>span:first-child {font-size:.73rem}
  .week-choice>b {font-size:1rem;line-height:1}
  .week-choice[aria-current=date] {border-color:var(--brand)}
  .week-choice[aria-pressed=true] {background:var(--forest);color:#fff}
  .week-choice[aria-pressed=true] .markers i {background:#ebdfaa}
  .results {grid-template-columns:repeat(2,minmax(0,1fr))}
  .routine {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:600px) {
  .wrap {width:calc(100% - 28px)}
  .topin {min-height:55px}
  .brand span {display:none}
  .top nav {gap:13px}
  .top nav a {font-size:.83rem}
  main {padding-top:20px}
  .intro {padding-top:4px}
  .searchrow {align-items:stretch;flex-direction:column;gap:7px}
  .searchrow button {align-self:start;min-height:44px}
  .search-meta {flex-wrap:nowrap;margin:6px 0 12px}
  .search-meta>span {white-space:nowrap}
  .results,.overview,.offer {grid-template-columns:1fr}
  .board-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat-card {padding:10px 11px}
  .board-heading {margin-bottom:10px}
  #board h1 {font-size:2.35rem;margin-bottom:4px}
  #boardOver {font-size:.9rem}
  #boardSub {font-size:.82rem}
  .board-heading .actions {gap:9px}
  .board-heading .actions button {font-size:.85rem}
  .planner {padding:12px 10px;border-radius:12px}
  .planner-tools {gap:4px}
  .view-switch {padding:2px}
  .view-switch button {min-width:40px;padding:0 8px;min-height:40px;font-size:.83rem}
  .period-nav {gap:2px}
  .period-nav button {min-width:34px;min-height:42px}
  #now {padding:0 8px;font-size:.84rem}
  .period-heading {margin:12px 0 10px;gap:8px}
  #periodTitle {font-size:1.38rem}
  .legend {gap:4px 5px;font-size:.69rem}
  .legend-btn {padding:3px 7px;min-height:28px;font-size:.7rem}
  .next {padding:11px;flex-wrap:wrap;gap:9px;margin-bottom:9px}
  .next .actions {justify-content:flex-start;flex-wrap:wrap;flex-shrink:1}
  .next .actions button {min-height:40px;font-size:.83rem}
  .week-strip {gap:3px}
  .markers i {width:6px}
  .month-grid {gap:2px}
  .month-day {position:relative;min-height:49px;padding:5px 3px;gap:1px}
  .month-day b {font-size:.84rem}
  .month-caption {display:none}
  .month-count {display:block;position:absolute;right:3px;top:3px;font-size:.59rem;color:#506457}
  .month-day .markers {gap:1px}
  .day-list {grid-template-columns:1fr}
  .overview {gap:10px}
  .setup-sheet,.offer {padding:15px}
  .setup-sheet .primary {width:100%}
  .result {padding:14px}
  .routine {gap:6px}
  dialog {padding:15px}
}
@media(max-width:375px) {
  .top nav {gap:9px}
  .search-meta {flex-wrap:wrap;gap:0}
  .search-meta>span {padding-top:0}
  .formgrid {gap:.4rem}
  .timeline>li {grid-template-columns:minmax(48px,5rem) 1fr auto}
}
