.tk-farm-card{position:fixed;left:16px;top:132px;z-index:45;width:min(262px,calc(100vw - 32px));padding:14px 14px 12px;border-radius:16px;background:#fffdf7f2;border:2px solid var(--cw-border-strong);box-shadow:0 10px 30px #4a32121f;color:var(--cw-text-strong);backdrop-filter:blur(6px);display:flex;flex-direction:column;gap:8px}.tk-farm-card header{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:var(--cw-honey-700)}.tk-farm-card header span{display:inline-flex;align-items:center;gap:6px}.tk-from{font-size:12.5px;color:var(--cw-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:-4px}.tk-farm-card h2{font-size:20px;line-height:1.2;color:var(--cw-text-strong)}.tk-scenario{font-size:14px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tk-reader{font-size:13px;color:var(--cw-text-muted)}.tk-hint{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--cw-link);font-weight:700;min-height:0}.tk-hint:empty{display:none}.tk-done{display:flex;gap:6px;color:var(--cw-success)}.tk-done,.tk-farm-pill,.tk-teacher-pill{align-items:center;font-weight:700;font-size:14px}.tk-farm-pill,.tk-teacher-pill{position:fixed;left:16px;top:132px;z-index:45;display:inline-flex;gap:8px;padding:10px 14px;border-radius:999px;border:2px solid var(--cw-border-strong);background:#fffdf7f2;color:var(--cw-text-strong);box-shadow:0 6px 18px #4a321220;max-width:calc(100vw - 32px)}.tk-teacher-link{align-self:flex-start}.tk-more ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}.tk-more li{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;align-items:center}.tk-steps{list-style:none;margin:4px 0 2px;padding:0;display:flex;gap:4px}.tk-steps li{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:700;padding:5px 3px;border-radius:999px;background:var(--cw-surface-panel);color:var(--cw-text-muted);white-space:nowrap}.tk-steps li span{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.45}.tk-steps li.current{background:var(--cw-info-bg);color:var(--cw-link)}.tk-steps li.current span{opacity:1}.tk-steps li.done{background:var(--cw-leaf-100);color:var(--cw-success)}.tk-link{border:0;background:none;padding:2px 0;color:var(--cw-link);font-weight:700;font-size:13.5px;display:inline-flex;align-items:center;gap:5px}.tk-brief{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:22px;max-width:1080px;margin:8px auto 0}.tk-brief-main,.tk-brief-side>section{background:linear-gradient(140deg,var(--cw-surface-raised),var(--cw-surface-panel));border:1px solid var(--cw-border);border-radius:16px;padding:24px}.tk-brief-main{display:flex;flex-direction:column;gap:14px}.tk-eyebrow{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--cw-wood-500);font-size:14px}.tk-brief-main h1{font-size:34px;line-height:1.15;color:var(--cw-link)}.tk-brief-scenario{font-size:19px;line-height:1.55}.tk-brief-main dl{display:flex;gap:28px;margin:0}.tk-brief-main dt{font-size:13px;color:var(--cw-text-muted);font-weight:700}.tk-brief-main dd{margin:2px 0 0;font-weight:700}.tk-note{display:flex;gap:8px;align-items:flex-start;background:var(--cw-info-bg);color:var(--cw-link);border-radius:10px;padding:10px 12px;font-size:15px}.tk-brief-actions{display:flex;gap:10px;margin-top:6px;flex-wrap:wrap}.tk-brief-side{display:flex;flex-direction:column;gap:14px}.tk-brief-side h2{display:flex;align-items:center;gap:8px;font-size:17px;margin-bottom:10px;color:var(--cw-link)}.tk-criteria{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:16px}.tk-criteria li{display:flex;gap:8px;align-items:flex-start;line-height:1.4}.tk-criteria svg{flex:none;margin-top:3px;color:var(--cw-success)}.tk-mentor{font-style:italic;line-height:1.5;border-left:3px solid var(--cw-warning-border);padding-left:12px}.tk-chips{display:flex;flex-wrap:wrap;gap:7px}.tk-chips .cw-chip.used{background:var(--cw-leaf-100);border-color:var(--cw-success-border);color:var(--cw-success)}.tk-banner{margin:0 0 14px;border:1px solid var(--cw-border);border-radius:12px;background:var(--cw-surface-page)}.tk-banner-head{width:100%;display:flex;align-items:center;gap:10px;padding:10px 14px;border:0;background:none;color:var(--cw-text-strong);text-align:left;font-size:15px}.tk-banner-head b{white-space:nowrap}.tk-banner-head span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--cw-text-muted)}.tk-banner.open .tk-banner-head span{white-space:normal}.tk-banner-body{padding:0 16px 14px 40px;display:flex;flex-direction:column;gap:8px;font-size:15px}.tk-banner-body h3{font-size:15px}.tk-support{background:linear-gradient(140deg,var(--cw-info-bg),var(--cw-info-bg));border:1px solid var(--cw-info-border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}.tk-support h3{display:flex;align-items:center;gap:7px;font-size:16px;color:var(--cw-link)}.tk-support-label{font-size:13px;font-weight:700;color:var(--cw-text-muted)}.tk-frames{display:flex;flex-direction:column;gap:6px}.tk-frames button{text-align:left;padding:8px 11px;border-radius:10px;border:1px dashed var(--cw-honey-500);background:var(--cw-surface-raised);color:var(--cw-link);font-size:14.5px;line-height:1.4}.tk-frames button:hover{background:var(--cw-info-bg);border-style:solid}.tk-support-hint{font-size:12.5px;color:var(--cw-text-muted)}.tk-example summary{cursor:pointer;font-size:13.5px;font-weight:700;color:var(--cw-link)}.tk-example p{margin-top:6px;font-style:italic;font-size:14px;line-height:1.45}.tk-success{background:linear-gradient(140deg,var(--cw-surface-raised),var(--cw-leaf-100));border:1px solid var(--cw-success-border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:9px;margin-bottom:14px}.tk-success h3{display:flex;align-items:center;gap:7px;font-size:17px;color:var(--cw-success)}.tk-success label{display:flex;flex-direction:row;font-weight:500;gap:9px;align-items:flex-start;line-height:1.4;font-size:15px;cursor:pointer}.tk-success input{width:18px;height:18px;margin-top:2px;accent-color:var(--cw-success);flex:none}.tk-success p{font-size:13.5px;color:var(--cw-text-muted)}.tk-preview-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:var(--cw-text-strong);color:var(--cw-text-on-dark);font-size:14px}.tk-preview-banner b{background:var(--cw-honey-400);color:var(--cw-text-strong);padding:2px 9px;border-radius:999px}.tk-preview-banner span{flex:1;min-width:200px}.tk-free-hidden{position:absolute;right:24px;bottom:150px;z-index:6;max-width:250px;padding:12px 14px;border-radius:12px;background:#fffdf5ee;border:1px dashed var(--cw-warning-border);font-size:14px;line-height:1.45;color:var(--cw-text-brown);text-align:center}@keyframes tk-flag-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@media (max-width:800px){.tk-brief{grid-template-columns:1fr}.tk-brief-main h1{font-size:27px}.tk-farm-card,.tk-farm-pill,.tk-teacher-pill{top:auto;bottom:66px}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.tk-banner-hint{display:flex;align-items:center;gap:7px;margin:0;padding:8px 14px;border-bottom:1px dashed var(--cw-border);font-size:14px;background:var(--cw-warning-bg);border-radius:12px 12px 0 0}.tk-banner-hint,.tk-task-note{font-weight:700;color:var(--cw-honey-700)}.tk-task-note{display:block;margin-top:6px}.tk-criterion{display:flex;flex-direction:column;gap:3px}.tk-success .tk-found,.tk-success .tk-tip{display:flex;gap:6px;align-items:flex-start;margin:0 0 0 27px;font-size:13px;line-height:1.4}.tk-success .tk-found{color:var(--cw-success)}.tk-success .tk-tip{color:var(--cw-honey-700)}.tk-success .tk-found svg,.tk-success .tk-tip svg{flex:none;margin-top:2px}.tk-error{color:var(--cw-danger);font-size:13px;font-weight:600}.tk-sign{margin:0;padding:7px 14px;text-align:center;font-size:17px;font-weight:800;color:var(--cw-wood-900);background:linear-gradient(var(--cw-honey-200) 0,var(--cw-honey-200) 46%,var(--cw-warning-border) 100%);border:2px solid var(--cw-wood-500);border-radius:9px;box-shadow:0 3px 0 var(--cw-border-input),inset 0 0 0 3px #faeac670;text-shadow:0 1px #fff9}.tk-quest-num{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,var(--cw-honey-100),var(--cw-honey-500) 70%);border:2px solid var(--cw-wood-500);color:var(--cw-wood-700);font-weight:900;font-size:13px;box-shadow:0 2px 0 var(--cw-border-input)}.tk-quest-anchor{position:absolute;z-index:6;transform:translate(-50%,-100%)}.tk-quest{display:flex;flex-direction:column;align-items:center;padding:0;border:0;background:none;cursor:pointer;filter:drop-shadow(0 6px 7px #5a3b1a30);transition:transform .2s ease}.tk-quest:focus-visible,.tk-quest:hover{transform:translateY(-4px)}.tk-quest-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:118px;max-width:168px;padding:10px 13px 8px;background:linear-gradient(var(--cw-surface-panel),var(--cw-honey-100));border:2px solid var(--cw-wood-500);border-radius:10px;box-shadow:0 3px 0 var(--cw-border-input),inset 0 0 0 3px #fff3d966;color:var(--cw-wood-900);text-align:center}.tk-quest-card .tk-quest-num{position:absolute;top:-13px;left:-13px}.tk-quest-card small{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--cw-danger-solid)}.tk-quest-card b{font-size:15px;line-height:1.2}.tk-quest.new .tk-quest-card{animation:tk-sign-glow 2.6s ease-in-out infinite}.tk-quest.challenge .tk-quest-card{background:linear-gradient(var(--cw-honey-50),var(--cw-leaf-100));border-color:var(--cw-leaf-500);box-shadow:0 3px 0 var(--cw-leaf-500),inset 0 0 0 3px #ffffff66}.tk-quest.challenge .tk-quest-card small{color:var(--cw-leaf-600)}.tk-quest-pole{width:8px;height:30px;margin-top:-1px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,var(--cw-wood-700),var(--cw-wood-500) 50%,var(--cw-wood-700))}.tk-quest-base{width:38px;height:9px;margin-top:-4px;border-radius:50%;background:#5a3b1a38}@keyframes tk-sign-glow{0%,to{box-shadow:0 3px 0 var(--cw-border-input),inset 0 0 0 3px #fff3d966,0 0 0 0 #ffd36e00}50%{box-shadow:0 3px 0 var(--cw-border-input),inset 0 0 0 3px #fff3d966,0 0 0 7px #ffd36e8c};}@media (prefers-reduced-motion:reduce){.tk-quest.new .tk-quest-card{animation:none}.tk-quest:hover{transform:none}}.tk-quest-detail{display:flex;flex-direction:column;gap:10px}.tk-quest-detail h3{display:flex;align-items:center;gap:7px;font-size:16px;color:var(--cw-link)}.tk-ribbon{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin:0;padding:4px 11px;border-radius:999px;background:var(--cw-surface-sunken);border:1px solid var(--cw-wood-300);color:var(--cw-honey-700);font-size:13px;font-weight:800}.tk-quest-scenario{font-size:17px;line-height:1.5;color:var(--cw-text-strong)}.tk-start-panel{position:absolute;top:14px;right:14px;z-index:7;width:min(310px,calc(100% - 28px));max-height:calc(100% - 28px);overflow:auto;padding:14px;border-radius:14px;background:linear-gradient(140deg,var(--cw-surface-raised),var(--cw-warning-bg));border:2px solid var(--cw-wood-300);box-shadow:0 4px 0 #ba8d5855,0 12px 26px #4a321222;display:flex;flex-direction:column;gap:12px;color:var(--cw-text-strong)}.tk-start-panel section{display:flex;flex-direction:column;gap:7px}.tk-start-panel h3{display:flex;align-items:center;gap:6px;margin:0;font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--cw-wood-500)}.tk-panel-hint{margin:-3px 0 0;font-size:12.5px;color:var(--cw-text-muted)}.tk-quest-row{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:11px;border:2px solid var(--cw-border);background:linear-gradient(var(--cw-surface-page),var(--cw-surface-sunken));color:var(--cw-wood-900);text-align:left;box-shadow:0 2px 0 var(--cw-wood-300)}.tk-quest-row:hover{background:linear-gradient(var(--cw-surface-panel),var(--cw-honey-100))}.tk-quest-row>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}.tk-quest-row b{font-size:15px;line-height:1.25}.tk-quest-row small{font-size:12.5px;color:var(--cw-wood-700);font-weight:700}.tk-start-card{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;padding:10px 12px;border-radius:11px;border:1px solid var(--cw-border);background:var(--cw-surface-raised);color:var(--cw-text-strong);box-sizing:border-box;box-shadow:0 2px 0 var(--cw-surface-sunken)}.tk-start-card:hover{background:var(--cw-honey-50);border-color:var(--cw-warning-border)}.tk-start-card b{font-size:15px;line-height:1.25}.tk-start-card span{font-size:12.5px;line-height:1.4;color:var(--cw-text-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tk-start-card.draft{flex-direction:row;align-items:center;padding:0}.tk-start-card.draft>button:first-child{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 12px;border:0;background:none;text-align:left;color:inherit}.tk-start-card.draft .tk-icon{margin-right:6px}.tk-own{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tk-start-card.own{gap:5px}.tk-start-card.own svg{color:var(--cw-link)}.tk-locked{display:flex;gap:7px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:10px;background:var(--cw-warning-bg);border:1px dashed var(--cw-warning-border);color:var(--cw-honey-700);font-size:13.5px;line-height:1.4}.tk-locked svg{flex:none;margin-top:2px}@media (max-width:1180px){.tk-quest-card{min-width:92px;max-width:124px;padding:7px 8px 6px}.tk-quest-card small{font-size:9.5px}.tk-quest-card b{font-size:13px}.tk-quest-card .tk-quest-status{font-size:11px;padding:1px 6px}.tk-quest-num{width:22px;height:22px;font-size:11px}.tk-start-panel{width:min(250px,calc(100% - 28px));padding:10px;gap:9px}.tk-quest-row{padding:6px 8px;gap:7px}.tk-quest-row b{font-size:13px}.tk-quest-row small{font-size:11px}}@media (max-width:800px){.tk-start-panel{left:10px;right:10px;width:auto;top:auto;bottom:10px;max-height:52%}}.tk-advice-badge{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;padding:3px 10px;border-radius:999px;border:1px solid var(--cw-border);background:var(--cw-honey-50);color:var(--cw-honey-700);font-size:12.5px;font-weight:800;line-height:1.3}.tk-advice-badge.new{background:var(--cw-warning-bg);border-color:var(--cw-warning-border);color:var(--cw-warning)}button.tk-advice-badge{cursor:pointer}button.tk-advice-badge:hover{background:var(--cw-surface-sunken)}.tk-quest-row .tk-advice-badge{margin-top:4px;font-size:11.5px;padding:2px 8px}.tk-advice{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:12px;border:2px solid var(--cw-border);background:var(--cw-surface-page);color:var(--cw-text-strong)}.tk-advice.new{border-color:var(--cw-warning-border);background:linear-gradient(140deg,var(--cw-surface-page),var(--cw-surface-panel))}.tk-advice h3{display:flex;align-items:center;gap:7px;margin:0;font-size:16px;color:var(--cw-warning)}.tk-advice blockquote{margin:0;padding:8px 12px;border-left:4px solid var(--cw-warning-border);background:var(--cw-surface-raised);border-radius:0 9px 9px 0}.tk-advice blockquote p{margin:0;font-size:15.5px;line-height:1.5;white-space:pre-wrap}.tk-advice blockquote footer{margin-top:4px;font-size:12.5px;color:var(--cw-text-muted);font-weight:700}.tk-advice.compact{padding:9px 10px;gap:6px}.tk-advice.compact h3{font-size:14px}.tk-advice.compact blockquote p{font-size:14px;max-height:9.5em;overflow:auto}.tk-advice-list p{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:800;color:var(--cw-warning);margin:0}.tk-advice-list ul{list-style:none;margin:4px 0 6px;padding:0;display:flex;flex-direction:column;gap:3px;font-size:13.5px}.tk-advice-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--cw-warning);box-shadow:0 0 0 2px var(--cw-surface-raised)}.tk-quest-advice{position:absolute;top:-12px;right:-12px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--cw-warning-bg);border:2px solid var(--cw-warning);color:var(--cw-warning);box-shadow:0 2px 0 #c2410c55}.tk-advice-wait{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;color:var(--cw-warning)}.tk-advice .tk-got-it{align-self:flex-start}.tk-advice.compact .tk-got-it{min-height:var(--cw-control-h-sm)}.tk-farm-card .tk-farm-go{width:100%}body:has(.farm-guide-overlay[data-step=settings]) .tk-farm-card{visibility:hidden}.tk-farm-card header .tk-icon,.tk-start-card.draft .tk-icon{flex:none;color:var(--cw-honey-700)}.tk-header-teacher{margin-right:6px;padding:6px 12px;border:1px solid var(--cw-border-strong);border-radius:var(--cw-radius-pill);background:var(--cw-surface-raised);color:var(--cw-link);font-size:var(--cw-fs-xs);font-weight:var(--cw-weight-control)}.tk-quest-card .tk-quest-status{margin-top:3px}.tk-brief-actions .cw-btn--lg{min-width:200px}.tk-advice-wait{margin:0}.teacher-stage{min-height:calc(100vh - 70px);background:var(--cw-surface-page);padding:0 0 60px}.th-page{max-width:1180px;margin:0 auto;padding:28px 24px 0;color:var(--cw-text-strong);font-family:var(--cw-font);font-size:var(--cw-fs-sm);display:flex;flex-direction:column;gap:28px}.th-page h1,.th-page h2,.th-page h3,.th-page p{margin:0}.th-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--cw-border)}.th-header h1{font-size:var(--cw-fs-2xl);font-weight:var(--cw-weight-heading);letter-spacing:-.01em}.th-header p{color:var(--cw-text-muted);margin-top:6px}.th-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.th-user{font-weight:600;color:var(--cw-text-muted);font-size:var(--cw-fs-sm)}.th-section{display:flex;flex-direction:column;gap:14px}.th-section h2{font-size:var(--cw-fs-lg);font-weight:var(--cw-weight-heading)}.th-section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.th-muted{color:var(--cw-text-muted);font-size:var(--cw-fs-sm)}.th-page .cw-btn--ghost.th-text-btn{align-self:flex-start;min-height:28px;padding:2px 4px;margin-left:-4px;color:var(--cw-link)}.th-page .cw-btn--ghost.th-text-btn.th-quiet{color:var(--cw-text-muted)}.th-page .cw-empty{background:var(--cw-surface-raised)}.th-page .cw-empty__body{max-width:60ch}.th-assignments{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}.th-assignment{background:var(--cw-surface-raised);border:1px solid var(--cw-border);border-radius:var(--cw-radius-md);padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}.th-assignment header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px}.th-assignment header>div:first-child{flex:1 1 200px;min-width:0}.th-assignment h3{font-size:var(--cw-fs-md);font-weight:var(--cw-weight-heading)}.th-assignment header p{color:var(--cw-text-muted);font-size:var(--cw-fs-sm);margin-top:3px}.th-assignment .cw-badge{vertical-align:2px}.th-bar{display:flex;height:10px;border-radius:var(--cw-radius-pill);overflow:hidden;background:var(--cw-surface-sunken)}.th-seg{display:block;height:100%}.th-seg.not-started{background:var(--cw-border-strong)}.th-seg.planning{background:var(--cw-honey-400)}.th-seg.writing{background:var(--cw-lavender-500)}.th-seg.checking{background:var(--cw-info)}.th-seg.done{background:var(--cw-success)}.th-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:var(--cw-fs-xs);color:var(--cw-text-muted)}.th-legend li{display:inline-flex;align-items:center;gap:6px}.th-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}.th-blocked{display:flex;align-items:flex-start;gap:6px;font-size:var(--cw-fs-sm);color:var(--cw-warning);padding:6px 10px;border-radius:var(--cw-radius-sm);background:var(--cw-warning-bg);border:1px solid var(--cw-warning-border)}.th-blocked b{font-weight:var(--cw-weight-control)}.th-blocked .cw-icon{margin-top:2px}.th-closed summary{cursor:pointer;color:var(--cw-text-muted);font-weight:600;margin-bottom:12px}.th-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}.th-theme{background:var(--cw-surface-raised);border:1px solid var(--cw-border);border-radius:var(--cw-radius-md);padding:16px;display:flex;flex-direction:column;gap:10px}.th-theme:hover{border-color:var(--cw-border-strong);box-shadow:var(--cw-shadow-2)}.th-theme-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.th-theme-top>span:last-child{display:inline-flex;align-items:center;gap:2px}.th-theme h3{font-size:var(--cw-fs-md);font-weight:var(--cw-weight-heading)}.th-theme>p{font-size:var(--cw-fs-sm);line-height:1.5;color:var(--cw-text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.th-tags{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:var(--cw-fs-xs);color:var(--cw-text)}.th-tags li{display:grid;grid-template-columns:72px 1fr;gap:6px}.th-tags b{color:var(--cw-text-muted);font-weight:600}.th-theme-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:auto;padding-top:6px}.th-theme-actions .cw-btn--primary{grid-column:1/-1}.th-theme-actions .cw-btn{min-width:0;padding-left:8px;padding-right:8px;white-space:normal;line-height:1.2}.th-classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}.th-class{background:var(--cw-surface-raised);border:1px solid var(--cw-border);border-radius:var(--cw-radius-md);padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}.th-class h3{display:flex;align-items:center;gap:6px;font-size:var(--cw-fs-md);font-weight:var(--cw-weight-heading)}.th-class h3>.th-count{margin-left:auto;font-size:var(--cw-fs-xs);color:var(--cw-text-muted);font-weight:600;white-space:nowrap}.th-new-class{border-style:dashed;background:var(--cw-surface-panel)}.th-members{display:flex;flex-wrap:wrap;gap:6px}.th-members>span{display:inline-flex;align-items:center;gap:2px;padding:2px 2px 2px 10px;border-radius:var(--cw-radius-pill);background:var(--cw-surface-panel);border:1px solid var(--cw-border);font-size:var(--cw-fs-xs)}.th-members .cw-icon-btn{width:26px;min-height:26px;border-radius:50%;color:var(--cw-text-muted)}.th-members .cw-icon-btn:hover{color:var(--cw-text-strong)}.th-members .th-member-name{display:inline;border:0;background:none;border-radius:6px;padding:0 2px;color:var(--cw-text-strong);font:inherit;font-size:var(--cw-fs-xs);cursor:pointer}.th-members .th-member-name:hover{color:var(--cw-link);text-decoration:underline}.th-field{display:flex;flex-direction:column;gap:5px;font-size:var(--cw-fs-sm);font-weight:600}.th-field small{font-weight:400;color:var(--cw-text-muted);margin-left:6px}.th-page input:not([type=checkbox]):not([type=radio]),.th-page select,.th-page textarea{font:inherit;font-size:var(--cw-fs-sm);font-weight:400;min-height:var(--cw-control-h);padding:7px 10px;border:1px solid var(--cw-border-input);border-radius:var(--cw-radius-sm);background:var(--cw-surface-raised);color:var(--cw-text-strong);width:100%;box-sizing:border-box;box-shadow:none}.th-page textarea{resize:vertical;line-height:1.45}.th-page input::placeholder,.th-page textarea::placeholder{color:var(--cw-text-muted);opacity:1}.th-page input:focus,.th-page select:focus,.th-page textarea:focus{outline:var(--cw-focus-width) solid var(--cw-focus);outline-offset:1px;border-color:var(--cw-focus)}.th-page input[aria-invalid=true]{border-color:var(--cw-danger);box-shadow:0 0 0 3px var(--cw-danger-bg)}.th-backdrop{position:fixed;inset:0;z-index:80;background:var(--cw-surface-scrim);display:grid;place-items:center;padding:16px}.th-dialog{width:min(820px,100%);max-height:92vh;overflow:auto;background:var(--cw-surface-raised);border:1px solid var(--cw-border);border-radius:var(--cw-radius-md);box-shadow:var(--cw-shadow-3);padding:22px}.th-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.th-dialog>header h2{display:flex;align-items:center;gap:8px;font-size:var(--cw-fs-lg);font-weight:var(--cw-weight-heading);color:var(--cw-text-strong)}.th-dialog>header h2 .cw-icon{color:var(--cw-honey-700)}.th-form{display:flex;flex-direction:column;gap:14px}.th-grid2{grid-template-columns:1fr 1fr}.th-grid2,.th-grid3{display:grid;gap:12px}.th-grid3{grid-template-columns:repeat(3,1fr)}.th-frames{border:1px solid var(--cw-border);border-radius:var(--cw-radius-sm);padding:12px;display:flex;flex-direction:column;gap:8px;margin:0}.th-frames legend{font-weight:600;font-size:var(--cw-fs-sm);padding:0 4px}.th-frames legend small{font-weight:400;color:var(--cw-text-muted);margin-left:6px}.th-frames>div{display:grid;grid-template-columns:120px 1fr 1fr;gap:8px;align-items:center;font-size:var(--cw-fs-xs);color:var(--cw-text-muted);font-weight:600}.th-frames>.cw-btn{align-self:flex-start}.th-radio{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.th-radio legend{font-weight:600;font-size:var(--cw-fs-sm);margin-bottom:6px}.th-radio label{display:flex;flex-direction:row;font-weight:400;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--cw-border);border-radius:var(--cw-radius-sm);cursor:pointer;font-size:var(--cw-fs-sm)}.th-radio label:has(input:checked){border-color:var(--cw-honey-500);background:var(--cw-honey-50)}.th-radio input{width:auto;margin-top:3px;accent-color:var(--cw-honey-700)}.th-radio b{display:block;margin-bottom:2px}.th-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:4px}@media (max-width:800px){.th-assignments,.th-classes,.th-frames>div,.th-grid2,.th-grid3,.th-themes{grid-template-columns:1fr}.th-page{padding:20px 16px 0}}.th-page .th-field>span{color:var(--cw-text-strong);font-weight:600;font-size:var(--cw-fs-sm)}.th-page .th-muted{font-weight:400}.th-page .th-radio label>span{color:var(--cw-text-muted);font-weight:400}.th-page .th-radio label>span b{color:var(--cw-text-strong);font-weight:600}.th-page .cw-table th{padding:8px 10px;white-space:normal;vertical-align:bottom}.th-page .cw-table .th-name-btn{white-space:nowrap}.th-page .cw-table td{padding:8px 10px}.th-page .cw-table td.th-cell-top{vertical-align:top}.th-scroll{max-height:46vh;overflow:auto}.th-scroll .cw-table th{position:sticky;top:0;z-index:1}.th-dialog.wide{width:min(1060px,100%)}.th-drop{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:26px 18px;border:2px dashed var(--cw-border-strong);border-radius:var(--cw-radius-md);background:var(--cw-surface-panel);color:var(--cw-text-muted);cursor:pointer}.th-drop b{color:var(--cw-text-strong);font-size:var(--cw-fs-md)}.th-drop span{font-size:var(--cw-fs-xs);max-width:560px}.th-drop.over,.th-drop:hover{border-color:var(--cw-honey-500);background:var(--cw-honey-50);color:var(--cw-honey-700)}.th-drop:focus-visible{outline:var(--cw-focus-width) solid var(--cw-focus);outline-offset:var(--cw-focus-offset)}.th-split{justify-content:space-between;align-items:center;flex-wrap:wrap}.th-split>div{display:flex;flex-wrap:wrap;gap:8px}.th-split p{max-width:420px;font-size:var(--cw-fs-xs)}.th-error,.th-ok,.th-warn{display:flex;align-items:center;gap:8px;font-size:var(--cw-fs-sm);font-weight:600;margin:0}.th-error{color:var(--cw-danger)}.th-ok{color:var(--cw-success)}.th-warn{color:var(--cw-warning)}.th-error svg,.th-ok svg,.th-warn svg{flex:none}.th-import-settings{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;align-items:end;padding:12px;border:1px solid var(--cw-border);border-radius:var(--cw-radius-sm);background:var(--cw-surface-panel)}.th-align-end{align-self:end;height:var(--cw-control-h)}.th-match{display:flex;align-items:center;gap:6px;font-size:var(--cw-fs-sm);color:var(--cw-info);margin:0}.th-edit-table td{padding:4px 6px!important;vertical-align:top}.th-edit-table td:first-child{color:var(--cw-text-muted);padding-top:12px!important;width:28px}.th-page .th-edit-table input:not([type=checkbox]){min-height:var(--cw-control-h-sm);padding:5px 8px;font-size:var(--cw-fs-sm)}.th-page .th-edit-table input.th-narrow{width:64px}.th-edit-table tr.bad td{background:var(--cw-danger-bg)}.th-issue{display:block;color:var(--cw-danger);font-size:12px;margin-top:3px}.th-done-actions{display:flex;gap:10px;flex-wrap:wrap}.th-questions>div{grid-template-columns:120px 1fr}.th-cards>div{grid-template-columns:140px 1fr 36px}.th-name-btn{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--cw-link);text-align:left;cursor:pointer}.th-name-btn:hover{text-decoration:underline}.th-work{display:flex;flex-direction:column;gap:14px}.th-work h3{font-size:var(--cw-fs-lg)}.th-work-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:var(--cw-fs-sm);color:var(--cw-text-muted)}.th-work-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;align-items:start}.th-work h4{margin:0 0 4px;font-size:var(--cw-fs-sm);display:flex;align-items:center;flex-wrap:wrap;gap:6px}.th-part{margin-bottom:10px}.th-part p{margin:0;white-space:pre-wrap;font-size:var(--cw-fs-sm);line-height:1.55}.th-part p.empty{color:var(--cw-text-muted);font-style:italic}.th-work-side{gap:14px}.th-work-side,.th-work-side ul{display:flex;flex-direction:column}.th-work-side ul{margin:0;padding-left:18px;font-size:var(--cw-fs-sm);gap:3px}.th-work-side ul.th-ticks{list-style:none;padding-left:0}.th-ticks li{display:flex;gap:6px;align-items:flex-start}.th-ticks .cw-icon{margin-top:2px}.th-words{display:flex;flex-wrap:wrap;gap:5px}.th-feedback-item{border:1px solid var(--cw-border);border-radius:var(--cw-radius-sm);padding:8px 10px;font-size:var(--cw-fs-sm);white-space:pre-wrap;background:var(--cw-surface-raised)}.th-feedback-item small{display:block;color:var(--cw-text-muted);margin-bottom:2px}.th-insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;padding:10px 0;border-top:1px solid var(--cw-border)}.th-insights h4{margin:0 0 6px;font-size:var(--cw-fs-sm)}.th-insights table{width:100%;font-size:var(--cw-fs-xs);border-collapse:collapse}.th-insights td,.th-insights th{padding:3px 6px 3px 0;text-align:left;vertical-align:middle;font-weight:400}.th-insights thead th{color:var(--cw-text-muted);font-weight:600}.th-insights td.n{text-align:right;white-space:nowrap;color:var(--cw-text-muted)}.th-meter{height:7px;background:var(--cw-surface-sunken);min-width:50px}.th-meter,.th-meter i{display:block;border-radius:4px}.th-meter i{height:100%;background:var(--cw-honey-600)}@media (max-width:720px){.th-work-grid{grid-template-columns:1fr}}.th-advice-list{display:flex;flex-direction:column;gap:6px}.th-read{color:var(--cw-success);font-weight:600}.th-unread{color:var(--cw-warning);font-weight:600}.th-page .cw-table tr.th-advice-row td{padding:0 10px 12px;border-top:0;background:var(--cw-surface-panel)}.th-give-advice{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--cw-border);border-radius:var(--cw-radius-sm);background:var(--cw-surface-panel)}.th-page .cw-table td.th-cell-actions{white-space:nowrap}.th-row-actions{display:flex;gap:6px;align-items:center}.th-cell-actions .th-guide{white-space:normal;margin-top:6px}.th-card{background:var(--cw-surface-raised);border:1px solid var(--cw-border);border-radius:var(--cw-radius-md);padding:16px;display:flex;flex-direction:column;gap:12px}.th-row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.th-row>.th-field{flex:1 1 180px;min-width:0}.th-page .cw-table td.th-actions{white-space:nowrap;text-align:right;vertical-align:middle}.th-page .cw-table td.th-actions>*{vertical-align:middle}.th-page .cw-table td.th-actions>*+*{margin-left:6px}.th-page .cw-table tr.is-off td:not(.th-actions){color:var(--cw-text-muted)}.th-secret{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:var(--cw-radius-sm);background:var(--cw-honey-50);border:1px solid var(--cw-honey-200);margin-bottom:10px}.th-secret code{font-size:24px;letter-spacing:.12em;font-weight:700;color:var(--cw-text-strong);user-select:all}.th-confirm{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:var(--cw-fs-xs);color:var(--cw-text-strong);white-space:normal;text-align:left}.th-page .cw-btn.th-danger{color:var(--cw-danger);border-color:var(--cw-danger-border)}.th-page .cw-btn.th-danger:hover{background:var(--cw-danger-bg)}.th-guide{display:flex;align-items:center;gap:6px;margin:4px 0 0;padding:7px 10px;border-radius:var(--cw-radius-sm);background:var(--cw-warning-bg);border:1px solid var(--cw-warning-border);color:var(--cw-warning);font-size:var(--cw-fs-sm);font-weight:600;animation:th-guide-in .18s ease-out}.th-guide svg{flex:none;color:var(--cw-honey-600)}.th-guide-target{outline:3px solid var(--cw-honey-500)!important;outline-offset:2px;border-radius:var(--cw-radius-sm);animation:th-guide-pulse 1.2s ease-in-out 2}@keyframes th-guide-in{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}@keyframes th-guide-pulse{0%,to{outline-color:var(--cw-honey-500)}50%{outline-color:var(--cw-honey-200)}}.th-page code{font-family:var(--cw-font-mono)}.th-pw-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.th-pw-line code{font-size:17px;letter-spacing:.04em}.th-secret .th-pw-line code{font-size:22px}.th-pw-field{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.th-pw-field code{font-size:15px;font-weight:700;letter-spacing:.05em;min-width:70px}.th-page .cw-table code{font-weight:700;letter-spacing:.04em}.th-class.is-archived{background:var(--cw-surface-panel);border-style:dashed}.th-quiet{color:var(--cw-text-muted);font-weight:500;font-size:var(--cw-fs-xs)}.pw-gate{min-height:100vh;background:var(--cw-surface-page);display:flex;align-items:flex-start;justify-content:center}.pw-gate .th-page{width:100%;padding-top:10vh}.pw-gate-card{max-width:440px;margin:0 auto;width:100%;gap:14px;box-shadow:var(--cw-shadow-2)}.pw-gate-card h1{display:flex;align-items:center;gap:10px;font-size:var(--cw-fs-xl);font-weight:var(--cw-weight-heading);margin:0}.pw-gate-card h1 .cw-icon{color:var(--cw-honey-700)}.pw-gate-card .cw-btn--ghost{align-self:flex-start}.canvas-workspace>.node-inspector{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;padding:10px 14px;border-top:0;border-bottom:2px solid var(--cw-border);background:var(--cw-surface-panel);flex-shrink:0}.canvas-workspace>.node-inspector>span{font-weight:var(--cw-weight-control);color:var(--cw-text-brown);white-space:nowrap}.canvas-workspace>.node-inspector>button[aria-label="Remove selected element"]{color:var(--cw-danger)}.canvas-workspace>.node-inspector>button[aria-label="Remove selected element"]:hover:not(:disabled){background:var(--cw-danger-bg)}.th-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.th-admin-grid h2{font-size:var(--cw-fs-lg);font-weight:var(--cw-weight-heading)}.th-admin-search{max-width:280px}.th-page .cw-table td select{min-width:7.5em;min-height:var(--cw-control-h-sm);padding:4px 8px}.th-page .cw-table td .cw-badge{margin-left:4px}.th-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.th-page .th-accounts td:nth-child(2){min-width:7em}.th-page .cw-table.th-accounts td.th-actions{white-space:normal;min-width:14em}.th-page .cw-table.th-accounts td.th-actions>*{margin:2px 0 2px 6px}@layer components{.cw-icon{flex:none;display:inline-block;vertical-align:middle}.cw-icon[width="1em"]{vertical-align:-.14em}.cw-icon--brand{color:var(--cw-honey-700)}.cw-icon--wood{color:var(--cw-wood-700)}.cw-icon--lavender{color:var(--cw-lavender-600)}.cw-icon--leaf{color:var(--cw-leaf-600)}.cw-icon--muted{color:var(--cw-text-muted)}.cw-icon--success{color:var(--cw-success)}.cw-icon--warning{color:var(--cw-warning)}.cw-icon--danger{color:var(--cw-danger)}.cw-icon--info{color:var(--cw-info)}.cw-spin{animation:cw-spin 1s linear infinite}@keyframes cw-spin{to{transform:rotate(1turn)}}.cw-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:var(--cw-control-h);padding:6px var(--cw-control-px);border:1px solid transparent;border-radius:var(--cw-control-radius);font-family:var(--cw-font);font-size:var(--cw-control-fs);font-weight:var(--cw-weight-control);line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s}.cw-btn>.cw-icon{width:var(--cw-icon-inline);height:var(--cw-icon-inline)}.cw-btn:focus-visible{outline:var(--cw-focus-width) solid var(--cw-focus);outline-offset:var(--cw-focus-offset)}.cw-btn:active:not(.is-busy){transform:translateY(1px)}.cw-btn.is-busy{cursor:progress}.cw-btn:disabled{opacity:.55;cursor:not-allowed}.cw-btn--primary{background:var(--cw-primary-bg);border-color:var(--cw-primary-border);color:var(--cw-primary-text);box-shadow:var(--cw-btn-shadow)}.cw-btn--primary:hover:not(:disabled){background:var(--cw-primary-bg-hover)}.cw-btn--secondary{background:var(--cw-surface-raised);border-color:var(--cw-border-strong);color:var(--cw-text-brown)}.cw-btn--secondary:hover:not(:disabled){background:var(--cw-honey-50);border-color:var(--cw-honey-500)}.cw-btn--ghost{background:transparent;color:var(--cw-text)}.cw-btn--ghost:hover:not(:disabled){background:var(--cw-surface-sunken)}.cw-btn--danger{background:var(--cw-danger-solid);border-color:var(--cw-danger-solid);color:var(--cw-text-on-dark)}.cw-btn--danger:hover:not(:disabled){background:var(--cw-danger)}.cw-btn--ai{background:var(--cw-ai-bg);border-color:var(--cw-ai-bg);color:var(--cw-ai-text)}.cw-btn--ai:hover:not(:disabled){background:var(--cw-ai-bg-hover)}.cw-btn--sm{min-height:var(--cw-control-h-sm);padding:4px calc(var(--cw-control-px) * .75);font-size:calc(var(--cw-control-fs) - 2px)}.cw-btn--lg{min-height:calc(var(--cw-control-h) + 8px);padding:8px calc(var(--cw-control-px) * 1.25);font-size:var(--cw-fs-lg)}.cw-icon-btn{padding:0;width:var(--cw-control-h)}.cw-icon-btn.cw-btn--sm{width:var(--cw-control-h-sm)}.cw-dialog-backdrop{position:fixed;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--cw-surface-scrim);backdrop-filter:blur(3px)}.cw-dialog{width:min(480px,100%);max-height:calc(100dvh - 32px);overflow:auto;display:flex;flex-direction:column;gap:var(--cw-space-4);padding:var(--cw-dialog-pad);background:var(--cw-surface-raised);color:var(--cw-text);font-family:var(--cw-font);font-size:var(--cw-fs-md);line-height:var(--cw-line);border:2px solid var(--cw-border-strong);border-radius:var(--cw-radius-lg);box-shadow:var(--cw-shadow-3)}.cw-desk .cw-dialog,.cw-dialog.cw-desk{border-width:1px;border-color:var(--cw-border);border-radius:var(--cw-radius-md)}.cw-dialog--wide{width:min(960px,100%)}.cw-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:var(--cw-space-3);padding-bottom:var(--cw-space-3);border-bottom:1px solid var(--cw-border)}.cw-dialog__header h2{display:flex;align-items:center;gap:var(--cw-space-2);margin:0;font-size:var(--cw-fs-lg);font-weight:var(--cw-weight-heading);color:var(--cw-text-brown)}.cw-desk .cw-dialog__header h2{color:var(--cw-text-strong)}.cw-dialog__header .cw-icon{color:var(--cw-honey-700)}.cw-dialog[role=alertdialog] .cw-dialog__header .lucide-circle-alert{color:var(--cw-danger)}.cw-dialog__message{line-height:1.6}.cw-dialog__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--cw-space-3)}[role=alertdialog][tabindex="-1"]:focus,[role=dialog][tabindex="-1"]:focus{outline:none}.cw-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border:1px solid transparent;border-radius:var(--cw-radius-pill);font-size:var(--cw-fs-xs);font-weight:var(--cw-weight-control);line-height:1.4;white-space:nowrap}.cw-badge--neutral{background:var(--cw-surface-sunken);color:var(--cw-text-brown)}.cw-badge--honey{background:var(--cw-honey-100);border-color:var(--cw-honey-200);color:var(--cw-honey-700)}.cw-badge--lavender{background:var(--cw-lavender-100);color:var(--cw-lavender-700)}.cw-badge--success{background:var(--cw-success-bg);color:var(--cw-success)}.cw-badge--warning{background:var(--cw-warning-bg);color:var(--cw-warning)}.cw-badge--danger{background:var(--cw-danger-bg);color:var(--cw-danger)}.cw-badge--info{background:var(--cw-info-bg);color:var(--cw-info)}.cw-chip{display:inline-flex;align-items:center;gap:6px;min-height:calc(var(--cw-control-h-sm) - 4px);padding:4px 14px;border:1px solid var(--cw-border);border-radius:var(--cw-radius-pill);background:var(--cw-surface-raised);color:var(--cw-text);font-family:var(--cw-font);font-size:var(--cw-fs-sm);font-weight:var(--cw-weight-control);cursor:pointer}.cw-chip:hover{border-color:var(--cw-honey-500)}.cw-chip:focus-visible{outline:var(--cw-focus-width) solid var(--cw-focus);outline-offset:var(--cw-focus-offset)}.cw-chip.is-selected{background:var(--cw-honey-100);border-color:var(--cw-honey-500);color:var(--cw-wood-900)}.cw-chip--info{background:var(--cw-info-bg);border-color:var(--cw-info-border);color:var(--cw-info)}.cw-chip--lavender{background:var(--cw-lavender-50);border-color:var(--cw-lavender-300);color:var(--cw-lavender-700)}.cw-tabs{display:flex;flex-wrap:wrap;gap:var(--cw-space-1);font-family:var(--cw-font)}.cw-tab{display:inline-flex;align-items:center;gap:6px;min-height:var(--cw-control-h-sm);padding:6px 14px;border:0;background:none;color:var(--cw-text-muted);font:inherit;font-size:var(--cw-control-fs);font-weight:var(--cw-weight-control);cursor:pointer}.cw-tab:focus-visible{outline:var(--cw-focus-width) solid var(--cw-focus);outline-offset:-2px;border-radius:var(--cw-radius-sm)}.cw-tab__count{padding:0 7px;border-radius:var(--cw-radius-pill);background:var(--cw-surface-sunken);color:var(--cw-text-brown);font-size:var(--cw-fs-xs)}.cw-tabs--underline{border-bottom:1px solid var(--cw-border)}.cw-tabs--underline .cw-tab{margin-bottom:-1px;border-bottom:3px solid transparent}.cw-tabs--underline .cw-tab.is-active{color:var(--cw-text-strong);border-bottom-color:var(--cw-wood-500)}.cw-tabs--segmented{display:inline-flex;padding:4px;background:var(--cw-surface-sunken)}.cw-tabs--segmented,.cw-tabs--segmented .cw-tab{border-radius:var(--cw-radius-pill)}.cw-tabs--segmented .cw-tab.is-active{background:var(--cw-surface-raised);color:var(--cw-text-strong);box-shadow:var(--cw-shadow-1)}.cw-empty{display:grid;justify-items:center;gap:var(--cw-space-2);padding:var(--cw-space-6);text-align:center;border:1px dashed var(--cw-border-strong);border-radius:var(--cw-radius-lg);background:var(--cw-surface-panel);color:var(--cw-text);font-family:var(--cw-font)}.cw-empty__icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--cw-honey-100);color:var(--cw-honey-700)}.cw-empty__title{margin:0;font-size:var(--cw-fs-md);font-weight:var(--cw-weight-heading);color:var(--cw-text-strong)}.cw-empty__body{max-width:46ch;color:var(--cw-text-muted);font-size:var(--cw-fs-sm);line-height:1.5}.cw-empty__action{margin-top:var(--cw-space-2)}.cw-empty--sm{padding:var(--cw-space-4)}.cw-empty--sm .cw-empty__icon{width:44px;height:44px}.cw-card{padding:var(--cw-card-pad);border:1px solid var(--cw-border);border-radius:var(--cw-radius-lg);background:var(--cw-surface-raised);color:var(--cw-text)}.cw-desk .cw-card{border-radius:var(--cw-radius-md)}.cw-card--panel{background:var(--cw-surface-panel);border-color:var(--cw-border-strong);box-shadow:var(--cw-shadow-1)}.cw-card--sunken{background:var(--cw-surface-sunken)}.cw-field{display:flex;flex-direction:column;gap:6px;font-family:var(--cw-font)}.cw-field__label{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:var(--cw-fs-sm);font-weight:var(--cw-weight-control);color:var(--cw-text-brown)}.cw-desk .cw-field__label{color:var(--cw-text-strong)}.cw-field__hint{font-size:var(--cw-fs-xs);font-weight:400;color:var(--cw-text-muted)}.cw-field__error{font-size:var(--cw-fs-xs);font-weight:var(--cw-weight-control);color:var(--cw-danger)}.cw-input{width:100%;min-width:0;min-height:var(--cw-control-h);padding:8px 12px;border:1px solid var(--cw-border-input);border-radius:var(--cw-radius-sm);background:var(--cw-surface-raised);color:var(--cw-text);font-family:var(--cw-font);font-size:var(--cw-control-fs);font-weight:var(--cw-weight-body)}.cw-input::placeholder{color:var(--cw-text-muted);opacity:1}.cw-input:focus,.cw-input:focus-visible{outline:var(--cw-focus-width) solid var(--cw-focus);outline-offset:1px;border-color:var(--cw-focus)}.cw-input[aria-invalid=true],.has-error .cw-input{border-color:var(--cw-danger)}.cw-textarea{min-height:96px;resize:vertical;line-height:1.5}.cw-table-wrap{overflow-x:auto;border:1px solid var(--cw-border);border-radius:var(--cw-radius-md);background:var(--cw-surface-raised)}.cw-table{width:100%;border-collapse:collapse;font-family:var(--cw-font);font-size:var(--cw-fs-sm);color:var(--cw-text)}.cw-table th{padding:10px 12px;text-align:left;background:var(--cw-surface-panel);color:var(--cw-text-muted);font-size:var(--cw-fs-xs);font-weight:var(--cw-weight-control);white-space:nowrap}.cw-table td{padding:10px 12px;border-top:1px solid var(--cw-border);vertical-align:middle}.cw-table tbody tr:hover td{background:var(--cw-honey-50)}.cw-avatar{display:inline-grid;place-items:center;flex:none;border-radius:50%;background:var(--cw-honey-100);color:var(--cw-wood-700);font-family:var(--cw-font);font-weight:var(--cw-weight-heading)}.cw-avatar--16,.cw-avatar--xs{width:28px;height:28px;font-size:12px}.cw-avatar--20,.cw-avatar--sm{width:36px;height:36px;font-size:14px}.cw-avatar--24,.cw-avatar--md{width:48px;height:48px;font-size:18px}.cw-avatar--32,.cw-avatar--lg{width:64px;height:64px;font-size:24px}.cw-avatar--48,.cw-avatar--xl{width:88px;height:88px;font-size:32px}.cw-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}html [data-sonner-toaster][data-theme]{font-family:var(--cw-font);--normal-bg:var(--cw-surface-raised);--normal-border:var(--cw-border);--normal-text:var(--cw-text);--success-bg:var(--cw-success-bg);--success-border:var(--cw-success-border);--success-text:var(--cw-success);--info-bg:var(--cw-info-bg);--info-border:var(--cw-info-border);--info-text:var(--cw-info);--warning-bg:var(--cw-warning-bg);--warning-border:var(--cw-warning-border);--warning-text:var(--cw-warning);--error-bg:var(--cw-danger-bg);--error-border:var(--cw-danger-border);--error-text:var(--cw-danger)}html [data-sonner-toast].cw-toast{font-family:var(--cw-font);font-size:15px;font-weight:var(--cw-weight-body);line-height:1.45;border-radius:var(--cw-radius-md);box-shadow:var(--cw-shadow-2)}html [data-sonner-toast].cw-toast .cw-toast__title{font-weight:var(--cw-weight-control)}html [data-sonner-toast].cw-toast .cw-toast__action{background:var(--cw-primary-solid);color:var(--cw-primary-text);border-radius:var(--cw-radius-sm);font-weight:var(--cw-weight-control)}.adventure-home{max-width:1480px;margin:auto;padding:8px 18px 28px;color:#354634}.adventure-nav{flex-wrap:wrap;padding:12px 0 18px;border-bottom:1px solid #d9dfcf}.adventure-nav,.adventure-nav-current{display:flex;align-items:center;gap:8px}.adventure-nav-current{font-weight:800;margin-right:auto}.adventure-count{background:#e4ebd7;border-radius:30px;padding:1px 7px}.adventure-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0 18px}.adventure-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#697850}.adventure-heading h1{font-size:clamp(26px,3vw,38px);line-height:1.2;margin:6px 0 8px;font-family:Georgia,serif}.adventure-heading p{margin:0;color:#64705d;font-size:14px}.adventure-chapter-select{display:grid;gap:5px;font-size:12px;font-weight:700;max-width:340px}.adventure-chapter-select select{min-height:48px;border:1px solid #cbd4bf;border-radius:12px;padding:8px 12px;background:#fffdf5;color:#354634;max-width:100%;font-size:14px}.adventure-resume{display:flex;align-items:center;gap:14px;width:100%;padding:14px 18px;margin:0 0 18px;text-align:left;border:1px solid #d9c590;border-radius:14px;background:#fff4d8;color:#4c452e;min-height:64px}.adventure-resume span{display:grid;gap:4px;flex:1}.adventure-resume small{color:#77694b}.adventure-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.adventure-map{position:relative;aspect-ratio:1000/650;background:#c5deac;border:5px solid #fffaf0;border-radius:24px;box-shadow:0 4px 22px #30462b16;overflow:hidden;isolation:isolate;touch-action:pan-y}.theme-ocean .adventure-map{background:#96d0d8}.theme-space .adventure-map{background:#454b70;color:#ebe7fc}.adventure-scenery{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.adventure-map-caption{position:absolute;top:12px;left:14px;background:#fffaf0ed;color:#536247;padding:7px 12px;border-radius:30px;font-size:12px;font-weight:700;max-width:75%}.adventure-node{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;padding:5px;min-width:56px;min-height:56px;touch-action:pan-y;color:#384932}.adventure-node-icon{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:3px solid #fffcf3;background:#f6d278;box-shadow:0 3px 0 #9c8047,0 5px 12px #38493233}.adventure-node-icon small{position:absolute;right:-7px;bottom:-5px;border-radius:50%;background:#fffdf6;min-width:21px;height:21px;font-size:11px;font-weight:800;display:grid;place-items:center}.adventure-node.selected .adventure-node-icon{outline:4px solid #466744;outline-offset:4px}.adventure-node.submitted .adventure-node-icon{background:#b9d7a8}.adventure-node-label{max-width:126px;border-radius:8px;background:#fffcf3f5;border:1px solid #d2c8aa;padding:5px 8px;font-size:12px;font-weight:750;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;box-shadow:0 2px 4px #35463412}.adventure-advice-dot{position:absolute;top:0;right:10px;width:13px;height:13px;border-radius:50%;background:#a34b63;border:2px solid #fffaf0}.adventure-farm-portal{position:absolute;right:13px;top:13px;display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;background:#fffaf0;color:#4f6643;border:1px solid #acb999;font-weight:750;min-height:48px}.adventure-summary{background:#fffdf5;border:1px solid #dce1d0;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:12px;min-height:280px}.adventure-summary h2{font-family:Georgia,serif;font-size:24px;line-height:1.25;margin:0;overflow-wrap:anywhere}.adventure-summary p{margin:0;font-size:14px;line-height:1.6;color:#66725e}.adventure-summary small{font-size:12px;line-height:1.5;color:#68745f}.adventure-status{align-self:flex-start;padding:5px 10px;border-radius:30px;background:#eaf0df;font-size:12px;font-weight:700}.adventure-map-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 4px}.adventure-map-controls p{font-size:12px;color:#63715b;margin:0}.adventure-map-controls>div{display:flex;align-items:center;gap:8px;font-size:12px}.adventure-error{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff0da;padding:12px;border-radius:12px;margin-top:12px;font-size:14px}.adventure-task-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.adventure-task-filters button{min-height:44px;border:1px solid #cbd4bf;border-radius:30px;background:#fffdf5;padding:8px 16px}.adventure-task-filters button[aria-pressed=true]{background:#3e5e42;color:#fff}.adventure-task-list{display:grid;gap:10px}.adventure-task-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #dce1d0;border-radius:14px;background:#fffdf7}.adventure-task-list article>div:last-child{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.adventure-task-list h3{margin:5px 0;font-size:17px;overflow-wrap:anywhere}.adventure-task-list p,.adventure-task-list small{font-size:12px;color:#65735d;margin:0}.adventure-home button:focus-visible,.adventure-home select:focus-visible{outline:3px solid #3c644a;outline-offset:4px}.adventure-home button{-webkit-tap-highlight-color:transparent}.adventure-return{display:flex;flex-wrap:wrap;gap:8px;margin:10px 20px}.th-chapter-fields{margin:12px 0;padding:14px;background:#f6f8f2;border-radius:12px}.th-chapter-fields,.th-chapter-manager{display:grid;gap:12px}.th-chapter-manager form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.th-chapter-manager label{display:grid;gap:5px}.th-chapter-row{display:flex;justify-content:space-between;gap:12px;padding:10px;border-bottom:1px solid #e1e6d9}@media(max-width:1100px){.adventure-layout{grid-template-columns:minmax(0,1fr) 240px}.adventure-summary{padding:18px}.adventure-node-label{max-width:104px;font-size:11px}}@media(max-width:820px){.adventure-layout{grid-template-columns:1fr}.adventure-summary{min-height:0;gap:10px}.adventure-summary h2{font-size:22px}.adventure-heading{align-items:flex-start}.adventure-chapter-select{max-width:45%}.adventure-nav-current{width:100%}.adventure-node-label{max-width:125px;font-size:12px}.adventure-home{padding:4px 10px max(24px,env(safe-area-inset-bottom))}.adventure-map{min-height:360px}.adventure-task-list article{align-items:flex-start}}@media(max-width:480px){.adventure-heading{flex-direction:column;gap:14px}.adventure-chapter-select{max-width:100%;width:100%}.adventure-map{min-height:420px;aspect-ratio:4/5;border-radius:18px}.adventure-node-label{max-width:94px;font-size:11px}.adventure-node-icon{width:46px;height:46px}.adventure-node{gap:3px}.adventure-nav{gap:6px}.adventure-nav .cw-button{font-size:12px}.adventure-task-list article{flex-direction:column}.adventure-task-list article>div:last-child{flex-direction:row;flex-wrap:wrap}.adventure-farm-portal{padding:8px 10px;top:8px;right:8px;font-size:12px}.adventure-map-controls>div{width:100%;justify-content:space-between}}@media(prefers-reduced-motion:reduce){.adventure-home *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.adventure-heading>div,.adventure-home,.adventure-layout,.adventure-layout>div,.adventure-summary{min-width:0;box-sizing:border-box}.adventure-home{width:100%}.adventure-chapter-select select{width:100%;min-width:0}.adventure-map-controls>div{flex-wrap:wrap}main[data-stage=farm]>.adventure-return{position:relative;z-index:51;width:fit-content}main[data-stage=farm] .farm-guide-bulb{top:76px}@media(max-width:480px){.adventure-layout{grid-template-columns:minmax(0,1fr)}.adventure-map-controls .cw-btn{padding:8px;font-size:12px}main[data-stage=map] .header-left{flex:1;min-width:0;gap:8px}main[data-stage=map] .header-title{min-width:0;flex:1;flex-wrap:wrap;gap:4px}main[data-stage=map] .header-title .wood-title{font-size:16px;white-space:normal;padding:8px 12px;overflow-wrap:anywhere}main[data-stage=map] .story-header .lite-logo img{width:100px}main[data-stage=map] .header-brand{flex-shrink:0}main[data-stage=map] .story-header{padding-left:12px;padding-right:12px}main[data-stage=map] .story-header .progress-nav{display:none}main[data-stage=map] .story-header .lite-logo img{width:90px}main[data-stage=map] .header-title{flex-wrap:nowrap}main[data-stage=map] .header-title .wood-title{font-size:15px;overflow-wrap:normal;word-break:normal}html [data-sonner-toaster][data-x-position=center]{left:50%!important;right:auto!important;width:min(356px,calc(100vw - 32px));transform:translateX(-50%)!important}html [data-sonner-toaster] [data-sonner-toast].cw-toast{max-width:100%}}.adventure-art{inset:0;z-index:0;user-select:none;overflow:hidden}.adventure-art,.adventure-sprite{position:absolute;pointer-events:none}.adventure-sprite{display:block;aspect-ratio:1;transform:translate(-50%,-50%)}.adventure-sprite img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 3px #273d2420)}.adventure-map{background:radial-gradient(ellipse at 40% 25%,#edf0c7 0,transparent 60%),linear-gradient(150deg,#caddad,#aacb96)}.theme-ocean .adventure-map{background:radial-gradient(ellipse at 40% 20%,#d0f0e9,transparent 65%),linear-gradient(160deg,#a2dcd8,#71b8c8)}.theme-space .adventure-map{background:radial-gradient(ellipse at 50% 45%,#77739c,transparent 65%),linear-gradient(160deg,#333f64,#545273)}.adventure-node{z-index:2}.adventure-farm-portal,.adventure-map-caption{z-index:3}.adventure-map{min-height:520px}.adventure-node:focus-visible{z-index:4}.adventure-node-label{box-shadow:0 2px 8px #35463426}.adventure-scenery{opacity:.8}@media(max-width:480px){.adventure-map{min-height:570px;aspect-ratio:3/5}.adventure-sprite{width:26%!important}.adventure-sprite:nth-child(n+4){width:17%!important}}.adventure-map{width:100%;box-sizing:border-box;aspect-ratio:16/10;min-height:0;border-width:6px;box-shadow:0 8px 30px #283e3222}.adventure-background,.adventure-background img,.adventure-route{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}.adventure-background{z-index:0;background:transparent}.adventure-background img{object-fit:cover}.adventure-route{z-index:1}.adventure-sprite{z-index:2}.adventure-sprite img{filter:drop-shadow(0 6px 5px #172b2845)}.adventure-node{z-index:3}.adventure-farm-portal,.adventure-map-caption{z-index:4;box-shadow:0 2px 10px #20392b24}.adventure-node-label{background:#fffdf5;border-color:#d6c79b;box-shadow:0 3px 10px #20392b38}.adventure-node-icon{box-shadow:0 3px 0 #94753d,0 5px 14px #20392b55}@media(max-width:1100px){.adventure-layout{grid-template-columns:minmax(0,1fr)}.adventure-summary{min-height:0}}@media(min-width:601px) and (max-width:1100px) and (orientation:portrait){.adventure-map{aspect-ratio:4/5;min-height:0}}@media(max-width:600px) and (orientation:portrait){.adventure-map{aspect-ratio:9/16;min-height:0;border-width:4px}.adventure-art .adventure-sprite{width:24%!important}}@media(max-width:480px) and (orientation:landscape){.adventure-map{aspect-ratio:16/10;min-height:0}}.workspace-panel-body{display:flex;flex-direction:column;gap:12px;min-width:0}.workspace-panel-body>*{flex-shrink:0}.workspace-panel.is-compact.is-open{z-index:1001!important}.workspace-panel-body[hidden]{display:none!important}.workspace-panel.is-compact{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important}.workspace-panel.is-compact>.cw-btn{min-height:44px}.workspace-panel-shade{position:fixed;inset:0;background:#142b3d66;z-index:800}.workspace-panel.is-compact.is-open>.workspace-panel-body{position:fixed;z-index:801;right:max(8px,env(safe-area-inset-right));top:calc(var(--student-top,0px) + 8px);width:min(440px,calc(100vw - 16px));max-height:calc(var(--student-height,100dvh) - 16px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:16px;background:#fffaf0;border:1px solid #d6c79b;border-radius:18px;box-shadow:0 12px 60px #172c3c66;text-align:left}.workspace-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:-16px;background:#fffaf0;z-index:10;padding:8px 0}.workspace-panel-heading h2{font-size:19px;margin:0}.workspace-panel-body .bear-guide{max-height:240px}.workspace-panel-body .cagent-figure{max-height:170px}.workspace-panel-body .cagent-main-pose{max-height:160px;object-fit:contain}.workspace-panel-body .writing-coach-shelf{min-height:0;position:relative;height:auto;display:flex;align-items:center;gap:8px;padding:0;margin:0}.workspace-panel-body .writing-coach-message{position:static;flex:1;margin:0;padding:12px;font-size:16px}.workspace-panel-body .writing-canvas-bear{position:static;width:70px;min-width:70px;height:90px;margin:0}.workspace-panel-body .writing-canvas-bear .bear-guide{height:90px;min-height:0;margin:0}.workspace-panel-body .writing-canvas-bear .cagent-main-pose{height:90px;width:70px;object-fit:contain}.workspace-panel-body .story-paper{overflow:visible}.workspace-panel-body .tk-start-panel{position:static!important;width:auto!important;max-width:none!important;max-height:none!important;transform:none!important}@media screen and (min-width:600px){body:has(main.lite-stage){overflow:hidden}body:has(main.lite-stage)>.site-footer{display:none}main.lite-stage{height:var(--student-height,100dvh);min-height:0!important;box-sizing:border-box;padding:0!important;overflow:hidden;position:relative;top:var(--student-top,0)}.lite-stage .story-shell,.lite-stage .storybook-app{height:100%;min-height:0!important;max-width:none;margin:0;padding:0;box-sizing:border-box}.lite-stage .story-shell{display:flex;flex-direction:column;border-radius:0;border:0}.lite-stage .story-header{flex:0 0 auto;min-height:60px;padding:6px 12px;gap:8px;display:flex;flex-wrap:nowrap}.lite-stage .story-header .lite-logo img{width:92px;max-height:44px;object-fit:contain}.lite-stage .header-left{gap:8px;min-width:0}.lite-stage .header-title{min-width:0;gap:4px}.lite-stage .header-title .wood-title{font-size:16px;padding:7px 10px;white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis;display:block}.lite-stage .header-title .wood-title i{display:none}.lite-stage .progress-nav{flex:1;justify-content:center;flex-wrap:nowrap;gap:0}.lite-stage .progress-nav>span{gap:0}.lite-stage .progress-nav>span>svg{display:none}.lite-stage .progress-nav button{font-size:12px;min-height:44px;padding:7px 8px;white-space:nowrap}.lite-stage .header-user{gap:4px}.lite-stage .header-user>span{display:none}.lite-stage .story-content,.lite-stage .story-shell-body{flex:1;min-height:0;display:flex;overflow:hidden}.lite-stage .story-content{min-width:0;flex-direction:column;padding:10px 14px;gap:8px;font-size:16px}.lite-stage .story-content>.wood-title,.lite-stage .story-content>h1{font-size:22px;margin:0;padding:0;flex:none}.lite-stage .story-content>.page-intro{font-size:14px;margin:0}.lite-stage .shell-save-status{position:absolute;bottom:4px;left:16px;font-size:11px;pointer-events:none;background:#fffaf0e8;z-index:5}.lite-stage .tk-preview-banner{padding:4px 10px;min-height:34px;font-size:12px;flex:none}.lite-stage .tk-preview-banner>span{display:none}.lite-stage .tk-preview-banner .cw-btn{min-height:30px;padding:4px 8px;font-size:12px}.lite-stage .tk-banner{flex:none;margin:0;max-width:100%}.lite-stage .tk-banner-hint{display:none}.lite-stage .tk-banner-head{min-height:40px;padding:5px 10px;font-size:13px}.lite-stage .tk-banner-head>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lite-stage .adventure-home{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 12px 8px;gap:7px}.lite-stage .adventure-nav{padding:4px 0;gap:6px;flex-wrap:nowrap;border:0}.lite-stage .adventure-nav-current{display:none}.lite-stage .adventure-nav .cw-btn{min-height:44px;padding:7px 12px}.lite-stage .adventure-heading{padding:0;gap:10px}.lite-stage .adventure-heading h1{font-size:24px;margin:0}.lite-stage .adventure-eyebrow{display:none}.lite-stage .adventure-heading p{font-size:12px}.lite-stage .adventure-chapter-select{font-size:0;max-width:300px}.lite-stage .adventure-chapter-select select{font-size:13px;min-height:44px;padding:6px}.lite-stage .adventure-resume{padding:6px 12px;margin:0;min-height:44px;gap:8px;font-size:13px}.lite-stage .adventure-resume span{display:flex;gap:12px;align-items:center}.lite-stage .adventure-resume small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lite-stage .adventure-layout{flex:1;min-height:0;position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:6px}.lite-stage .adventure-layout>div{display:flex;flex-direction:column;min-height:0}.lite-stage .adventure-map{flex:1;height:100%;min-height:0!important;aspect-ratio:auto!important;border-width:3px}.lite-stage .adventure-map-caption{font-size:11px;padding:5px 8px;top:7px;left:8px}.lite-stage .adventure-farm-portal{display:none}.lite-stage .adventure-map-controls{flex:none;min-height:20px;padding:0;font-size:11px}.lite-stage .adventure-map-controls p{margin:0;font-size:11px}.lite-stage .adventure-summary.is-compact{position:absolute;right:8px;top:8px;z-index:6}.lite-stage .adventure-summary h2{font-size:22px}.lite-stage .adventure-node-label{max-width:145px;font-size:12px}.lite-stage .adventure-node-icon{width:44px;height:44px}.lite-stage .canvas-page,.lite-stage .finish-page,.lite-stage .mountain-page,.lite-stage .studio-page,.lite-stage .writing-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;position:relative}.lite-stage .canvas-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:0}.lite-stage .canvas-workspace{min-height:0;padding:0}.lite-stage .canvas-toolbar{padding:6px;gap:6px;flex-wrap:nowrap;flex:none;overflow-x:auto;overscroll-behavior-x:contain}.lite-stage .canvas-toolbar .cw-btn{font-size:13px;padding:6px 9px;min-height:44px;flex-shrink:0;white-space:nowrap}.lite-stage .canvas-toolbar .cw-btn svg{width:17px;height:17px}.lite-stage .canvas-view-tools{gap:4px;flex-wrap:nowrap;margin-left:auto}.lite-stage .zoom-controls{display:none}.lite-stage .touch-instruction{font-size:12px;padding:3px 8px;margin:0;flex:none}.lite-stage .canvas-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}.lite-stage .canvas-scroll>div{height:100%}.lite-stage .canvas-scroll .canvas-surface{height:100%;min-height:0;aspect-ratio:auto}.lite-stage .canvas-node{min-height:16%;max-height:42%;width:13%;min-width:60px;overflow:hidden}.lite-stage .canvas-node img{max-height:125px;min-height:0;object-fit:contain}.lite-stage .canvas-node strong{font-size:clamp(11px,1.4vw,16px);padding:4px}.lite-stage .canvas-node small{font-size:11px}.lite-stage .node-symbol{padding:7px 3px}.lite-stage .node-inspector{flex:none;padding:4px 8px;gap:5px;flex-wrap:nowrap;overflow-x:auto}.lite-stage .node-inspector>span{display:none}.lite-stage .node-inspector input{min-width:140px;flex:1;font-size:16px}.lite-stage .connect-help{padding:4px 8px;font-size:13px;flex:none}.lite-stage .canvas-support.is-compact{position:absolute;bottom:0;left:0;z-index:10}.lite-stage .canvas-page .page-bottom{position:static;flex:none;margin:0;padding:0;min-height:48px;justify-content:flex-end;background:none;box-shadow:none;z-index:auto}.lite-stage .writing-top{margin:0;flex:none}.lite-stage .writing-top h1{font-size:20px;margin:0}.lite-stage .writing-progress-board{margin:0;flex:none}.lite-stage .section-tabs{padding:3px;gap:3px}.lite-stage .section-tabs button{padding:5px;min-height:44px;font-size:13px}.lite-stage .writing-layout{flex:1;min-height:0;display:flex;align-items:stretch;gap:0}.lite-stage .writing-editor{flex:1;min-height:0;display:flex;flex-direction:column;padding:12px;gap:6px;overflow:hidden}.lite-stage .writing-editor>.wood-title{font-size:20px;margin:0;padding:0;flex:none}.lite-stage .writing-editor>p{font-size:15px;margin:0;flex:none}.lite-stage .editor-box{flex:1;min-height:80px;display:flex;flex-direction:column;margin:0}.lite-stage .editor-toolbar{padding:3px 8px;flex:none}.lite-stage .editor-toolbar button{min-width:44px;min-height:38px}.lite-stage .editor-box textarea{flex:1;height:100%;min-height:0;resize:none;padding:10px 12px;font-size:18px;overflow:auto}.lite-stage .editor-word-count{padding:2px 8px;font-size:11px;flex:none}.lite-stage .editor-bottom{z-index:auto;position:static;flex:none;padding:0;background:none;min-height:44px;margin:0;gap:8px}.lite-stage .editor-check-msg{max-height:120px;overflow:auto;overscroll-behavior:contain}.lite-stage .writing-back{position:absolute;bottom:12px;left:12px;max-width:45%;font-size:12px;padding:6px;min-height:40px}.lite-stage .writing-sidebar.is-compact{position:absolute;top:0;right:0;z-index:10}.lite-stage .writing-sidebar.is-compact>.cw-btn{font-size:13px}.lite-stage .writing-top{padding-right:160px;min-height:44px;display:flex;align-items:center}.lite-stage .deck-controls{flex:none;margin:0;gap:10px}.lite-stage .deck-controls input{font-size:16px;min-height:44px}.lite-stage .character-deck-layout{flex:1;min-height:0;display:flex;gap:10px;overflow:hidden}.lite-stage .character-deck{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px}.lite-stage .deck-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.lite-stage .deck-pack-corner{width:135px;flex:none}.lite-stage .deck-pack-corner>p{font-size:12px}.lite-stage .deck-idea-pack{width:125px;min-height:170px;max-height:200px;margin:0}.lite-stage .deck-item .character-pack-card{width:100%;height:auto}.lite-stage .new-character-card{min-height:180px;font-size:15px}.lite-stage .deck-next{position:static;flex:none;margin:0;padding:0;align-self:flex-end;min-height:48px;background:none}.lite-stage .deck-bottom.is-compact{position:absolute;bottom:8px;left:14px;z-index:10}.lite-stage .studio-steps{margin:0;padding:0;flex:none}.lite-stage .studio-steps button{font-size:13px;min-height:44px}.lite-stage .studio-instruction{margin:0;font-size:13px;flex:none}.lite-stage .studio-grid{flex:1;min-height:0;display:flex;align-items:stretch;gap:10px}.lite-stage .sketch-section{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}.lite-stage .sketch-section h2{font-size:17px;margin:0;flex:none}.lite-stage .drawing-tools{padding:3px;gap:5px;flex:none}.lite-stage .drawing-tools button{min-width:44px;min-height:44px}.lite-stage .sketch-paper{flex:1;min-height:0;max-height:none;width:auto;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;overflow:hidden}.lite-stage .sketch-paper canvas{height:100%;width:auto;max-width:100%;aspect-ratio:450/550;object-fit:contain;touch-action:none}.lite-stage .studio-details.is-compact{position:absolute;right:0;bottom:168px;z-index:10;max-width:190px}.lite-stage .studio-instruction{padding-right:240px}.lite-stage .studio-character-fields-panel.is-compact,.lite-stage .studio-portrait-section-panel.is-compact{position:absolute;right:0;bottom:64px;z-index:10}.lite-stage .studio-character-fields-panel.is-compact{bottom:116px}.lite-stage .studio-grid .sketch-section{margin-right:190px}.lite-stage .studio-footer{flex:none;padding:0;gap:8px;min-height:48px}.lite-stage .studio-footer .cw-btn{font-size:13px;padding:8px}.lite-stage .studio-save-hint{display:none}.workspace-panel-body .character-input-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.workspace-panel-body .character-input-fields>details{grid-column:1/-1}.workspace-panel-body .species-picker>div{display:grid;grid-template-columns:repeat(4,1fr)}.workspace-panel-body .portrait-preview{max-height:380px}.lite-stage .finish-page>.wood-title{font-size:22px;padding:0;margin:0;flex:none}.lite-stage .finish-layout{flex:1;min-height:0;display:flex;align-items:stretch}.lite-stage .finish-layout>.story-paper{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px}.lite-stage .finish-support.is-compact{position:absolute;top:0;right:0;z-index:10}.lite-stage .finish-page>.wood-title{padding-right:200px;min-height:44px}.lite-stage .stories-grid{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-content:start}.lite-stage .character-detail{flex:1;min-height:0;grid-template-columns:200px minmax(0,1fr);overflow:hidden}.lite-stage .character-facts{min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain}.lite-stage .tk-brief{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 280px;overflow:hidden}.lite-stage .tk-brief-main,.lite-stage .tk-brief-side{min-height:0;overflow:auto;overscroll-behavior:contain}.lite-stage .tk-brief-actions{position:sticky;bottom:0;background:#fffaf0;padding:8px 0}.lite-stage .mountain-card{flex:1;min-height:0;overflow:auto}.lite-stage .mountain-bottom{flex:none;min-height:48px;max-height:none;display:flex;align-items:center;justify-content:space-between;gap:8px}.lite-stage .drama-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;position:relative}.lite-stage .drama-workbench .drama-workspace{flex:1;min-height:0;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:8px}.lite-stage .drama-stage-column{display:flex;flex-direction:column;min-height:0}.lite-stage .drama-scenes-header{flex:none;min-height:44px;max-height:90px;margin:0}.lite-stage .drama-stage{flex:1;height:100%;min-height:0!important;max-height:none!important;aspect-ratio:auto!important}.lite-stage .drama-stage-tools{flex:none;min-height:44px;padding:3px 8px;font-size:12px}.lite-stage .drama-cast{min-height:0;overflow:auto;overscroll-behavior:contain}.lite-stage .drama-support-panel.is-compact{position:absolute;bottom:0;left:0;z-index:10}.lite-stage .drama-page-bottom{flex:none;padding:0;margin:0;min-height:48px;display:flex;justify-content:flex-end;align-items:center;gap:8px}.lite-stage .drama-page-bottom>.cw-btn{display:none}.lite-stage .drama-review-action{margin:0;padding:0}.lite-stage .drama-review-button{min-height:48px;padding:8px 14px;font-size:16px}.lite-stage .finish-primary{flex:none;display:flex;justify-content:flex-end;min-height:48px}.lite-stage .studio-page .drawing-tools{position:static;display:flex;flex-direction:row;align-items:center;width:auto;transform:none;margin:0}.lite-stage .sketch-paper{background:none;border:0;box-shadow:none;padding:0;margin:0}.lite-stage .sketch-paper canvas{background:#fffdf5;border:1px solid #d6c79b;border-radius:8px}.lite-stage .studio-page .pen-mode{position:absolute;right:8px;top:4px;font-size:13px}.lite-stage .studio-page .touch-draft-notice{padding:3px 8px;margin:0;font-size:12px}.lite-stage .drama-workbench-meta{flex:none;margin:0;max-height:50px;padding:0}.lite-stage .drama-title-field{font-size:16px}.lite-stage .drama-title-field input{font-size:16px;min-height:40px}.lite-stage .drama-background-form{max-height:100%;overflow:auto;overscroll-behavior:contain}.lite-stage .drama-background-form h3{font-size:18px;margin:4px}.lite-stage .drama-background-form textarea{min-height:70px;font-size:16px}.lite-stage .cw-dialog-backdrop,.lite-stage .modal-backdrop{position:fixed;top:var(--student-top,0);height:var(--student-height,100dvh);box-sizing:border-box;z-index:2000;padding:12px}.lite-stage :is(.modal,.cw-dialog){max-height:calc(var(--student-height,100dvh) - 24px);overflow:auto;overscroll-behavior:contain}.lite-stage .writing-map-page{flex:1;min-height:0;height:100%;display:flex;flex-direction:column}.lite-stage .writing-map-page .map-drawing-surface{flex:1;min-height:0!important;height:100%!important;max-height:none;aspect-ratio:auto}.lite-stage .adventure-return{flex:none;margin:0;padding:4px 10px;gap:6px}.lite-stage .personal-map-support{position:absolute;right:12px;top:65px;z-index:10}.lite-stage .map-paper-bottom{flex:none;padding:4px 8px;min-height:44px}.lite-stage .map-refresh-button{position:static;align-self:flex-end;flex:none;font-size:12px;min-height:36px}body:has(main.legacy-stage){overflow:hidden;--cwrite-footer-height:36px}main.legacy-stage{height:var(--student-height,100dvh);min-height:0!important;overflow:hidden;padding:0!important}main.legacy-stage>.adventure-return{position:fixed;top:8px;right:12px;left:auto;margin:0;padding:0;z-index:100}.legacy-stage .farm-board-page,.legacy-stage .farm-settings-page{height:calc(var(--student-height,100dvh) - 36px);min-height:0;padding:12px;box-sizing:border-box;overflow:hidden}.legacy-stage .farm-board-wrap,.legacy-stage .farm-settings-wrap{height:100%;min-height:0;padding:0;display:flex;flex-direction:column;gap:8px}.legacy-stage .farm-board-wrap>.cw-btn,.legacy-stage .farm-settings-wrap>.cw-btn{flex:none;align-self:flex-start;position:static}.legacy-stage .farm-board-grid{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(240px,.6fr);align-items:stretch}.legacy-stage .farm-board-aside,.legacy-stage .farm-board-main,.legacy-stage .farm-settings-card{min-height:0;overflow:auto;overscroll-behavior:contain}.legacy-stage .farm-settings-card{flex:1;padding:16px}.legacy-stage .farm-settings-save{position:sticky;bottom:0;background:#fffaf0;padding:8px;z-index:2}.legacy-stage .farm-navigation-page,.legacy-stage .farm-navigation-surface,.legacy-stage .farm-scene-frame{height:calc(var(--student-height,100dvh) - 36px);min-height:0}.legacy-stage .farm-scene-frame{bottom:auto!important}body:has(main.legacy-stage)>.site-footer{position:fixed;bottom:0;height:36px}}@media screen and (min-width:1401px) and (pointer:fine){.lite-stage .adventure-layout{grid-template-columns:minmax(0,1fr) 280px}.lite-stage .canvas-layout{grid-template-columns:minmax(0,1fr) 300px;gap:12px}.lite-stage .canvas-support,.lite-stage .finish-support,.lite-stage .writing-sidebar{min-height:0;overflow:auto;overscroll-behavior:contain}.lite-stage .writing-layout{gap:12px}.lite-stage .writing-sidebar{width:320px;flex:none}.lite-stage .finish-layout{gap:12px}.lite-stage .finish-support{width:300px;flex:none}.lite-stage .studio-details .workspace-panel-body{flex-direction:row}.lite-stage .studio-details .character-input-fields{flex:1}.lite-stage .studio-grid .sketch-section{margin-right:0}.lite-stage .studio-grid>.workspace-panel{width:260px;min-height:0;overflow:auto}.lite-stage .drama-workbench .drama-workspace{grid-template-columns:150px minmax(0,1fr) 300px}.lite-stage .drama-support-panel{min-height:0;overflow:auto}.lite-stage .deck-bottom{max-height:90px;overflow:auto}}@media screen and (min-width:600px) and (max-width:900px){.lite-stage .story-header{flex-wrap:wrap;gap:2px;min-height:52px}.lite-stage .header-left{flex:1}.lite-stage .progress-nav{order:3;flex-basis:100%;justify-content:space-around}.lite-stage .progress-nav button{min-height:36px}.lite-stage .story-content{padding:8px;gap:6px}.lite-stage .adventure-home{padding:0 0 6px}.lite-stage .adventure-nav .cw-btn{font-size:12px;padding:5px 8px}.lite-stage .canvas-toolbar{flex-wrap:wrap}.lite-stage .canvas-view-tools{margin-left:0}.lite-stage .studio-steps button{font-size:11px}.lite-stage .studio-step-sep{display:none}.lite-stage .studio-grid .sketch-section{margin-right:155px}.lite-stage .studio-character-fields-panel .cw-btn,.lite-stage .studio-portrait-section-panel .cw-btn{font-size:12px}.lite-stage .tk-brief{grid-template-columns:minmax(0,1fr) 230px;gap:10px}}@media screen and (min-width:600px) and (max-height:520px){.lite-stage .header-title,.lite-stage .studio-instruction,.lite-stage .studio-steps,.lite-stage .tk-banner,.lite-stage .tk-preview-banner,.lite-stage .writing-top{display:none}.lite-stage .story-header{min-height:44px;padding:0 8px;flex-wrap:nowrap}.lite-stage .progress-nav{order:0;flex-basis:auto}.lite-stage .header-left{flex:0}.lite-stage .story-header .lite-logo img{width:70px}.lite-stage .section-tabs .section-tab-label{font-size:11px}.lite-stage .writing-sidebar.is-compact{top:auto;bottom:14px;right:210px}.lite-stage .writing-back{display:none}.lite-stage .writing-editor>.wood-title{font-size:16px}.lite-stage .writing-editor>p{font-size:12px}.lite-stage .studio-details.is-compact{top:0}}@media print{.workspace-panel.is-compact{display:none!important}.lite-stage,.lite-stage .finish-layout,.lite-stage .story-content,.lite-stage .story-paper,.lite-stage .story-shell,.lite-stage .story-shell-body{overflow:visible!important;height:auto!important}}.workspace-zoom-tools{display:flex;align-items:center;gap:10px}@media screen and (min-width:1401px) and (pointer:fine){.lite-stage .mountain-support{max-height:100px;overflow:auto}}@media screen and (min-width:600px){.legacy-stage:has(.farm-board-page)>.adventure-return{left:auto;right:12px;top:12px}}@media screen and (min-width:600px){.legacy-stage .farm-board-wrap>.farm-back-dock,.legacy-stage .farm-settings-wrap>.farm-back-dock{position:static;transform:none;flex:none;align-self:flex-start;height:48px}.legacy-stage:has(.farm-board-page) .farm-round-button{left:80px;right:auto;top:12px;width:44px!important;height:44px!important;padding:8px!important}.legacy-stage:has(.farm-board-page) .farm-round-button img{width:100%;height:100%}.legacy-stage:has(.farm-board-page) .farm-music-credits{left:134px;right:auto;top:22px}}@media screen and (min-width:1401px) and (pointer:fine){.lite-stage .studio-grid .sketch-section{margin-right:190px}.lite-stage .studio-grid>.workspace-panel.is-compact{width:auto;overflow:visible}.lite-stage .studio-details .workspace-panel-body{flex-direction:column}}