/* Shared navigation and the construction edition. */
.modes-view{max-width:960px;margin:auto}
.modes-view.hidden{display:none}
.modes-head{margin:4px 0 18px}
.modes-head h1{margin:0;font-size:clamp(28px,4vw,43px)}
.modes-head p{margin:6px 0 0;color:#536e9b}
.app:has(#modesView:not(.hidden))>.rail{display:none}
.app:has(#modesView:not(.hidden))>.main{grid-column:2/-1}
.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mode-card{--mode-bg:#e5f3ff;display:flex;flex-direction:column;text-align:left;position:relative;min-width:0;border:1px solid #d5e4f4;border-radius:24px;background:white;color:#102b53;text-decoration:none;padding:0;overflow:hidden;box-shadow:0 8px 24px #173d6a0c;transition:transform .18s,box-shadow .18s;font:inherit;cursor:pointer}
.mode-card:hover{transform:translateY(-3px);box-shadow:0 11px 27px #173d6a20}
.mode-card:focus-visible{outline:3px solid #2379f0;outline-offset:3px}
.mode-card--work{--mode-bg:#fff9ea}
.mode-card--edu{--mode-bg:#eaefff}
.mode-illustration{height:clamp(230px,26vw,340px);width:100%;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;padding:14px;background:var(--mode-bg)}
.mode-illustration img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.mode-copy{width:100%;flex:1;display:grid;align-content:center;justify-items:center;gap:7px;text-align:center;padding:16px 12px 18px;background:#fff}
.mode-copy strong{font-size:clamp(15px,1.34vw,20px);line-height:1.18;overflow-wrap:anywhere}
.mode-copy small{color:#536e8c;font-size:.83rem;line-height:1.35}
.mode-notice{border:1px solid #d4e5fc;border-radius:24px;max-width:min(410px,90vw);padding:24px;color:#102b53;box-shadow:0 18px 60px #132f5b3a}
.mode-notice::backdrop{background:#0929506b}
.mode-notice h2{font-size:1.35rem;margin:0 0 16px}
.work-theme .course-head{background:linear-gradient(120deg,#123a77,#1e62ac);border-bottom:5px solid #ffc34b}
.work-theme .trail{background-image:url('work-assets/construction-landscape.svg')}
.work-theme .path-line{stroke:#f3e2b8}
.work-theme .path-progress{stroke:#ba7c13}
.work-theme .trail-footer #continueBtn{background:#123C7A}

.work-theme .ring{background:conic-gradient(#F3E2B8 calc(var(--value)*1%),#e2ecf7 0)}
.work-theme #wordBadge{background:#F3E2B8;color:#123C7A;box-shadow:0 8px 16px #123c7a14}
.work-theme .goal__icon img{filter:drop-shadow(0 7px 12px #123c7a14)}
.work-theme .meter i{background:#F3E2B8}

.work-theme .trail .lesson--intro .lesson__button{background:#123C7A}
.work-theme .trail .lesson__button:not([data-lesson="0"]){color:#123C7A}
.work-theme .review-launch__icon{background:#123C7A}
.work-theme .review-launch__icon svg rect{fill:#F3E2B8}
.work-theme .review-launch__icon svg path{stroke:#123C7A}
.work-theme .review-launch__count{background:#F3E2B8;border-color:#F3E2B8;color:#123C7A}
.work-course-card{max-width:390px}
.work-task-art{width:120px;height:112px;display:block;margin:0 auto}
.work-task-art--barrier{width:180px;height:168px}
.work-audio{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;margin:4px 0 16px}
.work-audio-player{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:0 14px 0 2px;border-radius:15px;background:#edf7ff;color:#0875ef}
.work-audio-button{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:11px;background:transparent;color:inherit;cursor:pointer}
.work-audio-button:focus-visible,.work-transcript:focus-visible{outline:3px solid #6fbaff;outline-offset:2px}
.work-audio-button svg{width:24px;height:24px;fill:currentColor}
.work-audio-button__wave{display:block;width:112px;height:28px;min-width:0;pointer-events:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.work-audio-button__track{opacity:.35}
.work-audio-button__progress{clip-path:inset(0 100% 0 0)}
.work-audio-button__pause,.work-audio-button.is-playing .work-audio-button__play{display:none}
.work-audio-button.is-playing .work-audio-button__pause{display:inline}
.work-transcript{max-width:100%;padding:0;border:0;border-radius:13px;background:transparent;color:#163b68;font:inherit;text-align:left;cursor:pointer;perspective:650px}
.work-transcript__faces{display:grid;transform-style:preserve-3d;transition:transform .42s cubic-bezier(.25,.7,.25,1)}
.work-transcript[aria-expanded="true"] .work-transcript__faces{transform:rotateX(180deg)}
.work-transcript__front,.work-transcript__back{grid-area:1/1;display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px;border:1px solid #c8e2ff;border-radius:13px;background:#f5faff;backface-visibility:hidden;overflow-wrap:anywhere}
.work-transcript__front{font-size:.86rem;font-weight:700}
.work-transcript__front svg{width:17px;height:17px;flex:none;fill:none;stroke:#0875ef;stroke-width:2;stroke-linecap:round}
.work-transcript__back{align-items:flex-start;justify-content:center;flex-direction:column;gap:3px;transform:rotateX(180deg);background:#eaf5ff}
.work-theme .chat-line .chat-bubble{width:fit-content;min-width:0;padding:5px 7px}
.work-theme #taskHost .chat-bubble .work-audio{gap:4px 6px;margin:0}
.work-theme .chat-bubble .work-audio-player{gap:2px;padding:0 8px 0 1px;border-radius:10px}
.work-theme .chat-bubble .work-audio-button{width:36px;height:36px;border-radius:8px}
.work-theme .chat-bubble .work-audio-button svg{width:19px;height:19px}
.work-theme .chat-bubble .work-audio-button__wave{width:56px;height:18px}
.work-theme .chat-bubble .work-transcript{min-width:0;font-size:.8rem;line-height:1.3}
.work-theme .chat-bubble .work-transcript__faces{position:relative}
.work-theme .chat-bubble .work-transcript__front,.work-theme .chat-bubble .work-transcript__back{min-height:36px;padding:5px 8px;border-radius:9px}
.work-theme .chat-bubble .work-transcript__front{gap:4px;font-size:inherit}
.work-theme .chat-bubble .work-transcript__front svg{width:13px;height:13px}
.work-theme .chat-bubble .work-transcript[aria-expanded="false"] .work-transcript__back,
.work-theme .chat-bubble .work-transcript[aria-expanded="true"] .work-transcript__front{position:absolute;inset:0}
.work-theme .chat-bubble .work-transcript__back .chat-translation{margin:0;color:#47618a;font-size:.74rem}
@media(prefers-reduced-motion:reduce){.work-transcript__faces{transition:none}}
.work-reply{background:#eaf3ff;color:#173d6a;border-radius:13px;padding:10px 13px;margin:14px 0 0}
@media(max-width:860px){
 .nav{grid-template-columns:repeat(5,minmax(0,1fr))}
 .app:has(#modesView:not(.hidden))>.main{grid-column:auto}
 .mode-grid{gap:12px}
 .modes-view{padding-bottom:12px}
}

@media(max-width:640px){
 .mode-grid{grid-template-columns:minmax(0,1fr);max-width:400px;margin-inline:auto}
 .mode-illustration{height:clamp(235px,68vw,300px)}
}

.mode-card[aria-current="true"]{border-color:#8fbbf0}

.work-theme #taskHost .task-title{margin-bottom:clamp(16px,4vw,22px);line-height:1.35}
.work-theme #taskHost .work-audio{margin-top:0;margin-bottom:18px}
.work-theme #taskHost .work-task-art{margin:0 auto 16px}
.work-theme #taskHost .chat-composer{padding:clamp(12px,4vw,18px)}
.work-theme #taskHost :is(.choice-list,.picture-choices,.fill-choices,.match-grid,.token-bank){row-gap:10px}
.work-theme #taskHost .fill-sentence{margin-bottom:16px}
