.tech-app{background:transparent;min-height:100dvh}
:root:not([data-theme="night"]) .tech-app .workspace{background-image:linear-gradient(#efeee9e8,#efeee9ef),url('/assets/tech/tech_background.png')}
:root[data-theme="night"] .tech-app .workspace{background-image:linear-gradient(#162b24e8,#162b24f0),url('/assets/tech/tech_background.png')}
.tech-app .sidebar{inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom);border:0;border-top:1px solid var(--line);background:var(--day-surface,#f6f5f0);backdrop-filter:blur(14px)}
.tech-app .sidebar nav{display:grid;grid-template-columns:repeat(3,1fr);gap:0;width:min(720px,100%);margin:auto;height:72px}
.tech-app .sidebar nav button{flex-direction:column;gap:4px;justify-content:center;font-size:11px;border-radius:0;padding:8px;background:transparent;color:var(--muted)}
.tech-app .sidebar nav button.active{border-top:2px solid var(--green);color:var(--green);background:transparent}
.tech-app .workspace{margin-left:0;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.tech-app .topbar{height:64px;background:transparent;padding-inline:max(20px,calc((100% - 980px)/2));gap:12px}
.tech-app .topbar .brand>span{font-size:23px}.tech-app .topbar .brand{gap:8px}
.tech-app .topbar .top-actions{flex-wrap:nowrap;gap:10px}
.tech-app .topbar .top-actions:has(#account-button:not([hidden])) .breadcrumb{display:none}
.tech-app .course-story{animation:none}
.tech-app main{max-width:980px;padding-top:20px;min-height:calc(100dvh - 190px)}
.tech-app .course-story>.course-story-copy{flex-basis:50%;max-width:400px}.tech-app .course-story .story-theme{font-size:14px;color:white;line-height:1.7;margin-bottom:12px;text-shadow:0 1px 4px #000}
.tech-app .course-story>.story-scenery{object-position:center 55%}
.tech-app .course-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tech-app .course-heading{margin-bottom:10px}
.tech-app .theme-selector{max-width:540px;margin:12px 0 20px}.tech-app .theme-selector select{height:44px;font-size:14px;text-overflow:ellipsis}.tech-app .theme-library{margin-bottom:20px;border-bottom:1px solid var(--line)}.tech-app .theme-library .tech-actions{margin-top:0}.tech-app #theme-prompt{display:block;width:100%;height:240px;font-size:14px;line-height:1.6}.tech-app #theme-file{font-size:14px}.tech-app #theme-preview{overflow-wrap:anywhere}.tech-app #theme-preview p{white-space:pre-wrap;line-height:1.8}.tech-app #theme-preview dt{font-size:12px;color:var(--muted)}.tech-app #theme-preview dd{margin:4px 0 14px}
.tech-app .day-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center;margin:16px 0}
.tech-app .day-controls select{width:100%;min-width:0;font-size:14px}
.tech-app .learning-path{display:flex;flex-direction:column;width:min(100%,410px);max-width:410px;margin-inline:auto}
.tech-app .learning-path li{min-width:0}.tech-app .course-goal{min-width:0}.tech-app .course-goal small{display:block}
.tech-app .learning-path progress{width:100%;max-width:140px;height:6px;accent-color:var(--green)}
.tech-app .practice-surface{max-width:760px;margin:24px auto;overflow-wrap:anywhere}
.tech-app .practice-surface h1{font-size:25px;margin:16px 0}.tech-app .practice-surface h2{margin:20px 0 12px}.tech-app .practice-surface p{line-height:1.9;margin:12px 0}
.tech-app .tech-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.tech-app .tech-actions button{min-height:44px}
.tech-app label{display:block;font-size:13px;line-height:1.8;margin:14px 0}.tech-app label>input,.tech-app label>textarea,.tech-app label>select{margin-top:6px;width:100%;min-width:0;font-size:16px}
.tech-app textarea{min-height:110px;resize:vertical}.tech-app .check-line{display:flex;align-items:center;gap:10px}.tech-app .check-line input{width:18px;height:18px;margin:0;flex:0 0 18px}
.tech-app details{margin:18px 0;border-block:1px solid var(--line);padding:12px 0}.tech-app summary{cursor:pointer;min-height:32px;line-height:1.8}
.tech-app .feedback{padding:16px 0;white-space:pre-wrap;line-height:1.9;border-top:1px solid var(--line)}.tech-app .feedback:empty{display:none}
.tech-app .stack-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:16px 0}.tech-app .stack-palette label{margin:0;border-bottom:1px solid var(--line);padding:9px 0}.tech-app .stack-palette small{display:block;color:var(--muted)}
.tech-app #architecture{height:360px;width:100%;border:1px solid var(--line);background:#f8faf5;border-radius:4px}
.tech-app .graph-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;font-size:12px;margin:12px 0}.tech-app .graph-legend span{display:inline-flex;align-items:center;gap:8px}.tech-app .graph-legend i{width:22px;border-top:3px solid #075444}.tech-app .graph-legend .reference-key{border-color:#9b2146;border-top-style:dashed}:root[data-theme="night"] .tech-app .graph-legend i{border-color:#b9e1c9}:root[data-theme="night"] .tech-app .graph-legend .reference-key{border-color:#e18aab}
.tech-app .edge-tools{display:grid;grid-template-columns:1fr 30px 1fr 44px;align-items:center;gap:8px}.tech-app .edge-tools label{min-width:0}.tech-app .edge-tools>span{padding-top:24px;text-align:center}.tech-app .edge-tools>button{margin-top:25px}
.tech-app .edge-list{list-style:none;padding:0}.tech-app .edge-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}
.tech-app .timer{font-size:32px;font-variant-numeric:tabular-nums;min-width:85px}.tech-app audio{width:100%;max-width:100%;height:44px}.tech-app .source-link{text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere;color:var(--green)}
.tech-app .video-reference{border-block:1px solid var(--line);padding:12px 0;margin:20px 0;min-width:0}.tech-app #youtube-player iframe{display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0;background:#111;border-radius:4px}.tech-app #youtube-fallback small{display:block;margin-top:6px}
.tech-app .news-list{list-style:none;padding:0}.tech-app .news-list li{padding:18px 0;border-bottom:1px solid var(--line)}.tech-app .news-list h3{font-size:17px;line-height:1.6}.tech-app .news-list small{display:block;margin:8px 0}
.tech-app .material-row{align-items:flex-start}.tech-app .material-row h3{font-family:inherit;font-size:17px}.tech-app .material-row .row-actions{flex-wrap:wrap}.tech-app .material-row p{white-space:pre-wrap}
.tech-app .library-toolbar{gap:12px}.tech-app .library-toolbar .search{margin:0;min-height:44px;flex:none}.tech-app .library-toolbar .search input{height:44px;margin:0;padding-block:10px;border-radius:6px;font-size:16px}.tech-app .library-toolbar .segmented{flex-wrap:wrap}.tech-app .library-toolbar .segmented button{flex:0 0 auto;height:44px;min-height:44px}.tech-app .material-row .material-body{flex:1;min-width:0}
.tech-app[data-view="library"] .page-heading{padding-right:0;min-height:0}
.tech-app .library-toolbar .search>svg{top:50%;transform:translateY(-50%)}
.tech-app .material-entry-modes{margin-bottom:18px}.tech-app #markdown-prompt{display:block;width:100%;height:240px;min-height:160px;max-height:360px;line-height:1.6;font-size:14px;white-space:pre-wrap}.tech-app #markdown-file{max-width:100%;font-size:14px}.tech-app #markdown-preview h3{font-size:16px;margin-top:20px}.tech-app .markdown-candidate{border-top:1px solid var(--line);padding:10px 0}.tech-app .markdown-candidate small{display:block;color:var(--muted)}.tech-app .markdown-candidate details{border:0;margin:4px 0;padding:0}.tech-app .markdown-candidate p{font-size:13px;line-height:1.8;overflow-wrap:anywhere;margin:8px 0}.tech-app .markdown-body{white-space:pre-wrap}.tech-app #markdown-error{white-space:pre-wrap;overflow-wrap:anywhere}.tech-app #markdown-save-row{padding:12px 0}
.tech-app .record-list{list-style:none;padding:0}.tech-app .record-list li{border-bottom:1px solid var(--line);padding:14px 0}.tech-app .record-list h3{font-size:15px;line-height:1.7}.tech-app .record-list p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin-top:6px}
.tech-app .record-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line);gap:14px;padding:20px 0;margin:20px 0}.tech-app .record-metrics strong{display:block;font-size:27px;margin-top:8px}.tech-app .record-metrics small{font-size:11px}
.tech-app .reading-questions legend{font-size:16px}.tech-app .reading-questions label{margin:5px 0}.tech-app .reading-questions input{margin-top:7px}
.tech-app .question-result{line-height:1.8;font-size:14px;white-space:pre-wrap;margin:10px 0}.tech-app .consent-payload{white-space:pre-wrap;max-height:240px;overflow:auto;font-size:12px;line-height:1.8;overflow-wrap:anywhere;border-block:1px solid var(--line);padding:12px 0}
.tech-app #toast{bottom:95px}.tech-app .page-footer{max-width:980px;margin:auto}.tech-app #tech-dialog label{margin-block:10px}.tech-app #tech-dialog textarea{min-height:90px}
:root[data-theme="night"] .tech-app .sidebar{background:#1c332bf5}:root[data-theme="night"] .tech-app #architecture{background:#203930}:root[data-theme="night"] .tech-app dialog{background:#1c332b}
@media(max-width:700px){.tech-app .learning-path{display:flex;flex-direction:column;max-width:410px}.tech-app .stack-palette{grid-template-columns:1fr}.tech-app .course-story>.course-story-copy{flex-basis:60%}.tech-app .course-story .story-theme{font-size:12px}.tech-app .edge-tools{grid-template-columns:1fr 20px 1fr 40px;gap:4px}.tech-app #architecture{height:320px}.tech-app .practice-surface h1{font-size:22px}.tech-app .topbar .brand>span{font-size:20px}.tech-app .breadcrumb b{font-size:10px}.tech-app .material-row{flex-wrap:wrap}.tech-app .material-row .row-actions{margin-left:0;width:100%}.tech-app .record-metrics strong{font-size:22px}}