/* Pixel garden: cream paper, moss branches, sakura, pond blue and koi orange. */
:root{--garden-moss:#7f985c;--garden-pink:#dc9bb8;--garden-water:#dbe9e7;--garden-ink:#304a3a}
.branch-legend{display:flex;flex-wrap:wrap;gap:18px;margin:25px 0 18px;font-size:10px;color:#607252}
.branch-legend>span{display:flex;align-items:center;gap:10px}.branch-legend .garden-bloom{position:relative;flex:none;width:16px;height:16px;--bud-size:12px!important;left:0;top:0}
.branch-scroll{overflow:auto;overscroll-behavior-inline:contain;padding:5px 15px 18px 0;max-height:650px;scrollbar-color:#a3b38e transparent}
.branch-week{min-width:920px;position:relative;background:transparent}
.branch-week::before{content:'';position:absolute;left:70px;top:42px;bottom:30px;width:5px;background:#8d9d72;clip-path:polygon(30% 0,100% 5%,70% 25%,100% 45%,60% 65%,90% 85%,30% 100%,0 75%,20% 45%,0 20%)}
.branch-hours{display:grid;grid-template-columns:90px 1fr;gap:6px;height:30px;font-size:10px;color:#68775d}.branch-hours>div{position:relative;margin-right:150px}.branch-hours small{position:absolute;transform:translateX(-50%);white-space:nowrap}
.day-branch{display:grid;grid-template-columns:90px 1fr;gap:6px;position:relative;min-height:var(--branch-height)}
.branch-date{align-self:end;padding:0 20px 20px 0;display:flex;flex-direction:column;gap:5px;font-size:11px}.branch-date b{font-weight:500}.branch-date span{font-size:10px;opacity:.7}.is-today>.branch-date b{color:#456830}
.branch-track{position:relative;margin-right:150px;min-height:var(--branch-height)}
.branch-wood{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#8c9a73;stroke-width:4;stroke-linecap:square;stroke-dasharray:7 1;pointer-events:none}.branch-wood .twig{stroke-width:2;stroke:#9dad7f}.branch-wood .branch-leaves{stroke:#aabb82;stroke-width:5;stroke-dasharray:3 3}
.branch-empty{position:absolute;left:5%;bottom:39px;font-size:11px;color:#869278;margin:0}
.branch-session{position:absolute;display:flex;gap:13px;align-items:flex-start;width:172px;min-height:66px;text-align:left;padding:9px 11px;border-radius:12px;border:1px solid #ffffffc9;background:#f9fbf5ed;color:#304a3a;box-shadow:inset 0 1px #fff;z-index:2;font-size:11px}
.branch-session:hover{background:#fff!important;box-shadow:0 4px 12px #40543912;transform:translateY(-2px)}
.branch-session>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.branch-session strong{font-size:11px;line-height:1.45;overflow-wrap:anywhere;font-weight:600}.branch-session time{font-size:10px;white-space:nowrap}.branch-session small{font-size:9px;opacity:.7}.branch-session.done{background:#f4f5e9ed}.branch-session.skipped{color:#7a8065;background:#efeee6ed}.branch-session.is-deadline{border-color:#dfb3c3;background:#fcf6eded}
.garden-bloom{--bud-size:15px;display:inline-block;position:relative;flex:0 0 var(--bud-size);width:var(--bud-size);height:var(--bud-size);margin:7px 0 0;image-rendering:pixelated}.garden-bloom i{display:none}.garden-bloom::before{content:'';position:absolute;inset:15% 25%;background:#a5b983;clip-path:polygon(50% 0,100% 35%,80% 80%,50% 100%,20% 80%,0 35%);box-shadow:2px 2px #7b915d}
.garden-bloom.done::before{inset:35%;background:#ead6a2;clip-path:none;z-index:2}.garden-bloom.done i{display:block;position:absolute;width:42%;height:42%;background:#dda5bc;box-shadow:2px 2px #d18ca9}.garden-bloom.done i:nth-child(1){left:29%;top:0}.garden-bloom.done i:nth-child(2){left:0;top:30%}.garden-bloom.done i:nth-child(3){right:0;top:30%}.garden-bloom.done i:nth-child(4){left:12%;bottom:0}.garden-bloom.done i:nth-child(5){right:12%;bottom:0}
.garden-bloom.skipped::before{background:#9b9477;transform:rotate(30deg)}.garden-bloom.skipped::after{content:'';position:absolute;left:90%;top:100%;width:5px;height:3px;background:#bda2a0;transform:rotate(25deg)}.garden-bloom.deadline-bloom::before{background:#dc9bb8}
.branch-now{position:absolute;z-index:3;width:46px;pointer-events:none;transform:translateX(-50%)}.branch-now>span{display:block;animation:now-koi-swim 6s ease-in-out infinite}.branch-now svg{display:block;width:46px;height:22px;transform:rotate(180deg)}.branch-now small{display:block;text-align:center;font-size:9px;color:#4e766a;background:#f6f8efcf;border-radius:4px}
@keyframes now-koi-swim{50%{transform:translateX(5px) rotate(-4deg)}}
.calendar-event-detail{scroll-margin:25px;padding:24px!important;border:1px solid #fff!important;background:#f5f8f0ef!important;border-radius:20px!important}.calendar-event-detail h3{font-size:17px!important;margin:8px 0}.calendar-event-detail p{font-size:12px!important}.event-close{float:right}.event-status-options{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.event-status-options [aria-pressed=true]{outline:1px solid #7f985c;outline-offset:2px}
.glyph-week-labels,.glyph-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.glyph-week-labels{text-align:center;font-size:11px;margin-bottom:10px}.glyph-day{min-height:95px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid #e2e8d5;border-radius:8px;padding:10px;color:#3d543f;background:#f8faf3;text-align:left}.glyph-day>b{font-size:14px;font-weight:500}.glyph-day>span{font-size:12px;letter-spacing:3px}.glyph-day small{font-size:9px}.level-1{background:#e9eedb!important}.level-2{background:#dbdfbd!important}.level-3{background:#eac79d!important}.level-4{background:#e49a63!important;color:#463c2b!important}
.garden-note{font-size:10px!important;line-height:1.8;color:#7f8d74!important;margin:18px 0 0}
/* The profile is a garden, not another table of statistics. */
#profile-view .profile-progress-panel{padding:24px 30px 30px}.profile-progress-panel>summary{margin-bottom:22px}
#profile-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#profile-progress>section{min-width:0;border:1px solid #ffffffdf;border-radius:24px;background:#fbfcf5b3;padding:24px;box-shadow:inset 0 1px #fff}
#profile-progress .garden-profile-tree,#profile-progress .pond-conditions,#profile-progress .garden-weak{grid-column:1/-1}
.garden-section-head h2,#profile-progress h2{font-size:19px!important;font-weight:500;line-height:1.45;margin:0 0 8px;letter-spacing:-.5px}.garden-section-head p{font-size:10px!important;line-height:1.8;margin:0;color:#798870!important}
.profile-tree{display:block;width:100%;height:auto;min-height:170px;max-height:300px;fill:none;overflow:visible}.profile-tree .profile-trunk{stroke:#839267;stroke-width:10;stroke-dasharray:8 1;stroke-linecap:square}.profile-tree .profile-limb{stroke:#96a779;stroke-width:5;stroke-dasharray:6 1}.profile-tree text{fill:#3b523c;font:14px 'IBM Plex Mono',monospace}.profile-tree .tree-percent{font-size:12px;fill:#849273}
.garden-objects{display:flex;gap:22px;align-items:center;padding:0 0 4px;min-height:26px}.garden-objects small{font-size:10px;color:#7d8b70}.pixel-stone{display:block;width:18px;height:10px;background:#afb5a1;clip-path:polygon(20% 0,80% 0,100% 60%,80% 100%,0 100%,0 50%)}.pixel-flower{width:7px;height:7px;background:#e6b887;box-shadow:0 -6px #dda5bc,6px 0 #dda5bc,0 6px #dda5bc,-6px 0 #dda5bc}.pixel-lantern{width:12px;height:16px;background:#d7b27c;border:3px solid #7c8a65;box-shadow:0 -3px #7c8a65,0 3px #7c8a65}
.profile-pond{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px;padding:20px 12px;border-radius:18px;background:#dbe8e2;background-image:url('assets/calm-water.svg');background-size:600px;color:#304a3a}
.subject-koi{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}.subject-koi h3{font-size:11px!important;margin:12px 0 4px}.subject-koi p{font-size:10px!important;margin:0 0 12px}.subject-koi button{font-size:10px;padding:8px 12px;min-height:36px}.koi-habitat{width:120px;height:90px;display:grid;place-items:center;transform:scale(var(--koi-growth));transition:transform .5s ease}.koi-habitat svg{width:115px}.only-swimmer svg{animation:profile-koi-swim 16s ease-in-out infinite}@keyframes profile-koi-swim{0%,100%{transform:translate(-4px,-2px) rotate(-6deg)}50%{transform:translate(8px,4px) rotate(4deg)}}
.garden-food{font-size:10px!important;line-height:1.8;margin:16px 0 0!important;color:#7a8870!important}
.history-layout{display:flex;gap:20px;align-items:center;margin-top:20px}.history-layout>svg{width:120px;flex:0 0 120px}.history-ring{fill:none;stroke:#a6b88a;stroke-width:5;stroke-linecap:square;transform:rotate(-90deg);transform-origin:90px 90px}.history-layout text{font:13px 'IBM Plex Mono',monospace;fill:#697d56}.history-glyphs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;flex:1;min-width:0}.history-day{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:13px;background:#eef1e5;padding:4px 2px;border-radius:2px}.history-day small{font-size:7px;opacity:.65}.garden-weak .dash-weak{margin-top:12px;width:100%;border-radius:12px;padding:14px;font-size:12px}
.condition-options{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin:20px 0 0;font-size:11px}.condition-options>label{display:flex;align-items:center;gap:10px}.condition-options select{padding:9px 12px;border-radius:99px}.condition-toggle input{accent-color:#7f985c;width:16px;height:16px}
/* Calm mode is site-wide; system reduced motion always takes precedence. */
body.calm-mode *,body.calm-mode *::before,body.calm-mode *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.branch-now>span,.only-swimmer svg{animation:none!important}.koi-habitat{transition:none}}
/* Pond conditions change the study surfaces, while the landing retains its pond. */
body[data-pond-mode=pond]:not(:has(#landing-view:not([hidden]))){--liquid-shadow:inset 0 1px #ffffff30,0 12px 30px #09192e20;background:#1b3c54!important;color:#f1eddf!important}
body[data-pond-mode=pond] :is(#profile-view,#schedule-view,#quiz-app,#home-view){background:#1b3c54!important}
body[data-pond-mode=pond] :is(.profile-progress-panel,#profile-progress>section,.schedule-panel,.question-card,.learning-card,.navigation){background:#dce9e5e8!important;color:#304a3a!important}
body[data-pond-mode=pond] #schedule-lightfall{opacity:.15}
body[data-pond-mode=pond] .app-shell-nav .space-wordmark{color:#f1eddf!important}
body[data-pond-mode=pond] .app-shell-nav .space-mark i{background:#d8e3c5!important}
body[data-pond-mode=pond] .profile-page-heading{color:#f1eddf!important}
body[data-pond-mode=pond] .tree-node{color:#f1eddf!important}
@media(max-width:750px){#profile-progress{grid-template-columns:minmax(0,1fr);gap:18px}#profile-progress>section{grid-column:auto!important;padding:20px 16px}#profile-view .profile-progress-panel{padding:22px 16px}.history-layout{gap:10px}.history-layout>svg{width:90px;flex-basis:90px}.condition-options{align-items:flex-start;flex-direction:column;gap:16px}.glyph-week-labels,.glyph-month{gap:4px}.glyph-day{padding:8px 5px;min-height:80px}.glyph-day>span{letter-spacing:0;font-size:10px}.glyph-day small{font-size:8px}.branch-legend{font-size:9px;gap:14px}.garden-objects small{font-size:9px}}
body[data-pond-mode=pond] .study-tree .tree-node{background:#24455de8!important;color:#f1eddf!important}body[data-pond-mode=pond] .study-tree .tree-node small{color:#d8e3c5!important}
#schedule-view .schedule-panel{margin-top:0!important}
#schedule-view #schedule-status:not(:empty){font-size:11px;margin:0 0 12px}
@media(max-width:600px){.garden-bloom.deadline-bloom{--bud-size:22px!important}.glyph-calendar .garden-note{font-size:9px!important}}
@media(max-width:650px){.garden-profile-tree{overflow-x:auto}.profile-tree{min-width:660px;max-width:none;min-height:0}.profile-pond{padding-inline:6px}.koi-habitat{width:100px}.koi-habitat svg{width:95px}.history-layout{flex-wrap:wrap}.history-layout>svg{width:100px;flex-basis:100px}.history-glyphs{flex:1;min-width:170px}}
.branch-track::before{content:'';position:absolute;bottom:30px;left:-26px;width:28px;height:4px;background:#8c9a73;pointer-events:none}
.branch-scroll{max-height:min(560px,62svh)}
.branch-hours{position:sticky;top:0;z-index:5;background:#f8faf3ed;padding-top:5px}
.branch-wood{stroke:none;fill:none;shape-rendering:crispEdges}.branch-wood rect{stroke:none}.branch-empty,.branch-now{display:none}
#schedule-view .calendar-modes{display:grid;grid-template-columns:repeat(3,minmax(58px,1fr));padding:4px;gap:4px!important;isolation:isolate;overflow:hidden;min-width:240px;background:#e6ede5b0!important;border:1px solid #ffffffdb!important;box-shadow:inset 0 1px 2px #66785626,inset 0 -1px #fff!important}
body #schedule-view .calendar-modes button{position:relative;padding:10px 16px;margin:0;min-height:40px;line-height:1.2;border:1px solid transparent!important;box-shadow:none!important;background:transparent!important;font-size:11px;font-weight:400;border-radius:99px;color:#596b50!important}
body #schedule-view .calendar-modes button[aria-pressed=true]{background:#fafff7ed!important;border-color:#ffffffed!important;box-shadow:0 2px 4px #566c4e25,inset 0 1px #fff!important;color:#334b30!important;font-weight:600}
@media(max-width:600px){#schedule-view .calendar-modes{min-width:0;width:220px}body #schedule-view .calendar-modes button{padding:10px 12px}}
