:root {
  color-scheme: light;
  --ink: #1c2927;
  --muted: #78827f;
  --paper: #f5f7f4;
  --white: #fff;
  --green: #376d57;
  --green-dark: #285541;
  --mint: #e3f0e8;
  --lime: #d3ef74;
  --line: #e6ebe7;
  --shadow: 0 18px 50px #18372a14;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #89b950; outline-offset: 3px; }
.robo-splash-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 100; transition: opacity .45s ease, visibility .45s ease; }
.robo-splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.robo-splash-mark { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 28px; background: linear-gradient(145deg, var(--green), var(--green-dark)); box-shadow: 0 18px 40px rgba(55, 109, 87, 0.35); }
.robo-splash-mark .robo-icon { width: 70px; height: 74px; }
.robo-splash-text { margin-top: 18px; color: var(--green-dark); font: 800 clamp(38px, 6vw, 78px) "Manrope", sans-serif; letter-spacing: -0.08em; text-transform: uppercase; }
.app-shell { max-width: 1440px; margin: auto; padding: 0 6.1%; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8ece8; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 17px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 25px; height: 25px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--green), var(--green-dark)); border-radius: 8px; transform: rotate(-5deg); box-shadow: 0 8px 16px rgba(55, 109, 87, .16); }
.robo-icon { display: block; width: 100%; height: 100%; object-fit: contain; }
.topbar-center { display: flex; gap: 9px; align-items: center; color: #64716c; font-size: 13px; }
.online-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; background: #81ad5f; border-radius: 50%; box-shadow: 0 0 0 3px #81ad5f20; }
.profile-button { padding: 0; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.profile-button > span:first-child { width: 31px; height: 31px; border-radius: 50%; background: #e8e2d4; color: #74684e; display: grid; place-items: center; font-weight: 700; }
.profile-name { font-weight: 600; }.chevron { color: var(--muted); font-size: 18px; }
.welcome { min-height: 322px; margin-top: 37px; border-radius: 22px; background: #e9f1e8; overflow: hidden; position: relative; display: flex; align-items: center; padding: 42px 5.2%; }
.featured-wetland { background: linear-gradient(110deg, #e6f0df 0%, #e6f0df 55%, #cbdcca 100%); }
.featured-wetland .welcome-art { overflow: hidden; border-radius: 48% 52% 43% 57%; background: linear-gradient(180deg, #dcebd8 0 42%, #91b79a 43% 54%, #6f9b85 55% 71%, #579497 72% 100%); box-shadow: inset 0 -18px 34px #315f5530, 0 15px 32px #244e331c; }
.featured-wetland .welcome-art::before { content: ""; position: absolute; inset: 20% 5% 18%; background: repeating-linear-gradient(78deg, transparent 0 26px, #527a5450 27px 29px, transparent 30px 45px); clip-path: polygon(0 60%, 10% 12%, 20% 69%, 31% 5%, 41% 68%, 55% 9%, 66% 70%, 79% 4%, 92% 64%, 100% 20%, 100% 100%, 0 100%); }
.featured-wetland .welcome-art::after { content: "FRESHWATER WETLAND  ·  LIVING ECOSYSTEM"; position: absolute; right: 12px; bottom: 13px; border-radius: 8px; padding: 7px 10px; background: #ffffffc9; color: #426d58; font: 700 9px "DM Sans", sans-serif; letter-spacing: .7px; }
.featured-wetland .welcome-art > * { display: none; }
.welcome-copy { max-width: 520px; position: relative; z-index: 1; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 0; color: var(--green); }
.sparkle { font-size: 14px; vertical-align: -1px; margin-right: 5px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Manrope, sans-serif; letter-spacing: -1.2px; }
h1 { max-width: 500px; margin: 15px 0 10px; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; font-weight: 700; }
h1 span { color: var(--green); }
.welcome-subtitle { max-width: 430px; margin-bottom: 23px; color: #697771; font-size: 14px; line-height: 1.7; }
.robo-prompt { width: min(390px, 100%); background: #ffffffc9; border: 1px solid #fff; padding: 11px 14px; border-radius: 12px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; box-shadow: 0 6px 18px #3a624315; transition: transform .18s, box-shadow .18s; }
.robo-prompt:hover { transform: translateY(-2px); box-shadow: 0 9px 23px #3a624320; }
.robo-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: var(--green); }
.robo-prompt strong, .robo-prompt small { display: block; }.robo-prompt strong { font-size: 12px; }.robo-prompt small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.prompt-arrow { margin-left: auto; color: var(--green); font-size: 19px; }
.welcome-art { width: 410px; height: 300px; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); }
.art-orbit { position: absolute; width: 245px; height: 245px; border: 1px solid #bad2be; border-radius: 50%; left: 91px; top: 27px; transform: scaleX(1.38) rotate(-23deg); }
.orbit-two { width: 315px; height: 195px; left: 49px; top: 51px; transform: rotate(38deg); border-color: #c9dbc6; }
.art-sun { position: absolute; top: 76px; left: 139px; width: 163px; height: 163px; border-radius: 45% 55% 52% 48%; display: grid; place-items: center; background: radial-gradient(circle at 34% 30%, #fff8c6 0 5%, #e6ed9c 25%, #abc97e 77%, #71946f 100%); box-shadow: inset -15px -17px 30px #446f4733, 0 17px 30px #52745c24; transform: rotate(-13deg); }
.art-sun span { color: #739257; font-size: 38px; opacity: .8; }
.art-planet { position: absolute; border-radius: 50%; box-shadow: inset -8px -7px 12px #203b3230, 0 7px 12px #26463118; }
.planet-a { width: 41px; height: 41px; background: #e9a978; top: 30px; right: 69px; }.planet-b { width: 24px; height: 24px; background: #83b9aa; left: 49px; bottom: 56px; }
.art-spark { position: absolute; color: #8ca966; }.spark-a { right: 56px; top: 115px; font-size: 23px; }.spark-b { left: 59px; top: 68px; font-size: 28px; }
.explore-section { padding: 46px 0 33px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.muted { color: #89938e; }
h2 { font-size: 24px; line-height: 1.25; margin: 5px 0 0; font-weight: 700; }
.result-count { color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.category-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 3px; }.category-list::-webkit-scrollbar { display: none; }
.category-button { border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 8px 13px; white-space: nowrap; color: #707b76; font-size: 12px; font-weight: 600; cursor: pointer; }
.category-button:hover { background: #e9eeea; color: var(--ink); }.category-button[aria-pressed="true"] { color: #fff; background: var(--green); }
.search-box { flex: 0 0 225px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 12px; border: 1px solid #e5e9e6; border-radius: 9px; background: #fff; }
.search-icon { font-size: 23px; color: #8b9690; line-height: 1; transform: rotate(-20deg); }.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; background: transparent; }.search-box input:focus-visible { outline: none; }.search-box kbd { border: 1px solid #e8ece9; color: #99a09d; background: #f8faf8; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
[hidden] { display: none !important; }
.exploration-card { min-width: 0; border: 1px solid #e8ece8; border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.exploration-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3e2d5; }
.card-art { height: 162px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--scene-tint); }
.card-art::before, .card-art::after { content: ""; position: absolute; border-radius: 50%; width: 145px; height: 145px; border: 1px solid color-mix(in srgb, var(--scene-accent) 15%, transparent); }
.card-art::after { width: 190px; height: 190px; }
.card-symbol { z-index: 1; width: 103px; height: 103px; border-radius: 50%; display: grid; place-items: center; color: var(--scene-accent); font-size: 51px; background: radial-gradient(circle at 34% 27%, color-mix(in srgb, white 86%, var(--scene-tint)), var(--scene-tint) 70%); box-shadow: 0 10px 24px color-mix(in srgb, var(--scene-accent) 15%, transparent), inset -9px -10px 20px color-mix(in srgb, var(--scene-accent) 10%, transparent); }
.card-art .mini-land { position: absolute; width: 135%; height: 52px; bottom: -5px; left: -17%; border-radius: 50% 50% 0 0; background: color-mix(in srgb, var(--scene-accent) 21%, var(--scene-tint)); transform: rotate(-5deg); }
.card-category { position: absolute; top: 12px; left: 13px; padding: 5px 8px; border-radius: 6px; background: #ffffffe0; color: #5d6e63; font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.card-play { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: #fff; font-size: 10px; box-shadow: 0 2px 7px #2038261b; }
.card-info { padding: 14px 15px 15px; }
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }.card-title { font: 700 14px Manrope, sans-serif; letter-spacing: -.2px; }.card-level { color: #89948d; font-size: 9px; white-space: nowrap; padding-top: 3px; }
.card-description { min-height: 32px; margin: 6px 0 11px; color: #78827d; font-size: 11px; line-height: 1.5; }
.card-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef0ed; padding-top: 10px; color: #8b938f; font-size: 10px; }.card-meta span:last-child { color: var(--green); font-weight: 700; }
.empty-state { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }.empty-state > span { font-size: 32px; margin-bottom: 10px; color: #9cbb9c; }.empty-state strong { color: var(--ink); }.empty-state p { margin: 5px 0 0; font-size: 12px; }
.footer { display: flex; justify-content: space-between; border-top: 1px solid #e6eae7; color: #87918c; font-size: 10px; padding: 18px 0 24px; }.footer > span:last-child { display: flex; align-items: center; gap: 7px; }
.explore-dialog, .robo-dialog { border: 0; padding: 0; color: var(--ink); background: #f7f8f5; box-shadow: 0 25px 100px #10231d50; }
.explore-dialog { width: min(1180px, calc(100vw - 36px)); height: min(760px, calc(100dvh - 36px)); border-radius: 17px; overflow: hidden; }.explore-dialog::backdrop, .robo-dialog::backdrop { background: #18231fbd; backdrop-filter: blur(7px); }
.dialog-shell { height: 100%; display: flex; flex-direction: column; }.dialog-header { min-height: 62px; display: flex; align-items: center; gap: 25px; padding: 0 24px; background: #fff; border-bottom: 1px solid #e9ece9; }.compact { font-size: 14px; gap: 7px; }.compact .brand-mark { width: 22px; height: 22px; padding: 4px; border-radius: 6px; }.dialog-topic { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #86918a; }.dialog-topic strong { color: var(--ink); font-weight: 700; }.breadcrumb-divider { color: #c0c8c0; }.icon-button { flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; color: #7d8881; font-size: 24px; width: 34px; height: 34px; border-radius: 9px; }.icon-button:hover { background: #eff3ef; color: var(--ink); }.close-button { margin-left: auto; font-size: 26px; }
.scene-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 0; }.scene-column { min-width: 0; display: flex; flex-direction: column; padding: 21px 23px 15px; }.scene-topline { display: flex; align-items: center; justify-content: space-between; margin: 0 1px 11px; }.live-label { display: flex; align-items: center; gap: 8px; color: #728078; font-size: 9px; letter-spacing: 1px; font-weight: 700; }.drag-hint { color: #95a09a; font-size: 10px; }.drag-hint span { font-size: 15px; margin-left: 4px; }
.scene-frame { flex: 1; min-height: 320px; position: relative; overflow: hidden; border-radius: 14px; perspective: 900px; background: var(--scene-tint, #dcebe3); isolation: isolate; touch-action: none; }.scene-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 68% 32%, #ffffff80 0, transparent 30%), linear-gradient(180deg, color-mix(in srgb, var(--scene-tint, #cfe3da) 75%, white) 0%, var(--scene-tint, #e3ebe2) 57%, color-mix(in srgb, var(--scene-accent, #c0d5c1) 23%, var(--scene-tint, #c0d5c1)) 58%, color-mix(in srgb, var(--scene-accent, #b4cfb6) 35%, var(--scene-tint, #b4cfb6)) 100%); transition: filter .3s; }.scene-art { position: absolute; inset: 4% 5% 8%; transform-style: preserve-3d; transform: rotateX(7deg) rotateY(-8deg) scale(.96); transition: transform .18s ease-out; cursor: grab; }.scene-art:active { cursor: grabbing; }.scene-art svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 13px 10px #3353451c); }.scene-grid-overlay { position: absolute; inset: 50% -5% -19%; z-index: -1; opacity: .3; transform: perspective(350px) rotateX(58deg); transform-origin: top; background-image: linear-gradient(#ffffff6b 1px, transparent 1px), linear-gradient(90deg, #ffffff6b 1px, transparent 1px); background-size: 30px 30px; }
.scene-pins { position: absolute; inset: 0; pointer-events: none; }.scene-pin { pointer-events: auto; position: absolute; transform: translate(-50%,-50%); border: 0; cursor: pointer; background: transparent; color: #fff; }.pin-dot { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: var(--green); box-shadow: 0 2px 0 #204731, 0 0 0 5px #fff5; font: 700 11px Manrope, sans-serif; transition: transform .16s, background .16s; }.scene-pin:hover .pin-dot, .scene-pin[aria-pressed="true"] .pin-dot { transform: scale(1.17); background: #a46d38; }.scene-pin-label { position: absolute; left: 35px; top: 4px; white-space: nowrap; color: #31463a; padding: 5px 8px; border-radius: 6px; background: #ffffffdc; font-size: 9px; font-weight: 700; box-shadow: 0 2px 10px #283e2c14; }.scene-pin[data-label-anchor="left"] .scene-pin-label { left: auto; top: -25px; right: 35px; }.scene-caption { position: absolute; left: 17px; bottom: 14px; border-radius: 7px; padding: 7px 10px; background: #ffffffc9; color: #607066; font-size: 9px; backdrop-filter: blur(5px); }.scene-controls { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; }.scene-control { width: 28px; height: 28px; border-radius: 7px; border: 1px solid #ffffffd1; background: #ffffffe3; color: #5b7365; cursor: pointer; font-size: 17px; }.scene-control:hover { background: #fff; color: var(--green); }.scene-scale { padding: 0 5px; color: #6f7d73; font: 600 9px Manrope, sans-serif; }
.scene-stepper { display: flex; align-items: center; justify-content: center; gap: 15px; padding-top: 12px; }.scene-stepper > button { border: 1px solid #e4e9e4; border-radius: 8px; width: 30px; height: 28px; background: #fff; color: #657369; cursor: pointer; }.scene-stepper > button:hover { border-color: #bfd1c3; color: var(--green); }.step-dots { display: flex; align-items: center; gap: 7px; }.step-dot { width: 6px; height: 6px; border: 0; padding: 0; border-radius: 50%; background: #cbd4cb; cursor: pointer; }.step-dot[aria-current="step"] { width: 19px; border-radius: 5px; background: var(--green); }
.lesson-panel { display: flex; flex-direction: column; padding: 42px 29px 20px; background: #fff; border-left: 1px solid #e9ece9; }.lesson-panel h2 { margin: 15px 0 10px; font-size: 24px; letter-spacing: -.8px; }.lesson-progress { height: 4px; margin: 9px 0 17px; border-radius: 9px; background: #edf1ed; overflow: hidden; }.lesson-progress span { height: 100%; width: 25%; display: block; background: #82a973; border-radius: inherit; transition: width .3s; }.lesson-step { margin: 0; color: #99a29c; font-size: 9px; letter-spacing: .8px; font-weight: 700; }.lesson-copy { color: #737e77; font-size: 12px; line-height: 1.75; }.robo-note { margin-top: 16px; border: 1px solid #e5ede5; border-radius: 10px; background: #f5f8f3; padding: 11px; display: flex; gap: 9px; align-items: start; }.robo-avatar.small { width: 25px; height: 25px; border-radius: 8px; font-size: 11px; }.robo-note p { margin: 0; font-size: 10px; line-height: 1.5; color: #718077; }.robo-note p strong, .robo-note p span { display: block; }.robo-note p strong { margin-bottom: 3px; color: var(--green); font-size: 10px; }.lesson-footer { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #edf0ed; color: #97a099; font-size: 9px; }.key-icon { border: 1px solid #e3e8e3; border-radius: 4px; padding: 2px 5px; margin-right: 4px; }.lesson-footer button { flex: 0 0 auto; border: 0; border-radius: 7px; padding: 9px 11px; background: var(--green); color: #fff; font-size: 10px; font-weight: 600; cursor: pointer; }.lesson-footer button:hover { background: var(--green-dark); }
.water-flow { stroke-dasharray: 9 10; animation: flow 2s linear infinite; }.paused .water-flow { animation-play-state: paused; }.scene-art .flow-arrow { animation: bob 1.6s ease-in-out infinite alternate; }.paused .scene-art .flow-arrow { animation-play-state: paused; }
@keyframes flow { to { stroke-dashoffset: -38; } }@keyframes bob { to { transform: translateY(-4px); } }
.scene-pin { width: 28px; height: 28px; padding: 0; }
.scene-pin[data-label-anchor="left"][data-label-vertical="below"] .scene-pin-label { top: 30px; }
.robo-dialog { width: min(430px, calc(100vw - 28px)); border-radius: 17px; overflow: hidden; }.robo-chat { min-height: 490px; height: min(620px, calc(100dvh - 36px)); display: flex; flex-direction: column; background: #fff; }.chat-header { display: flex; align-items: center; gap: 11px; padding: 17px; border-bottom: 1px solid var(--line); }.chat-header h2 { margin: 0; font-size: 15px; letter-spacing: -.3px; }.chat-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.chat-header .online-dot { width: 6px; height: 6px; margin-right: 4px; }.chat-header .icon-button { margin-left: auto; }.chat-messages { flex: 1; overflow-y: auto; padding: 18px; background: #fafbf9; }.chat-bubble { max-width: 90%; border-radius: 12px; padding: 12px 13px; font-size: 12px; line-height: 1.65; }.robo-bubble { background: #edf4ed; color: #4a5d50; border-bottom-left-radius: 3px; }.user-bubble { width: fit-content; margin: 10px 0 10px auto; color: #fff; background: var(--green); border-bottom-right-radius: 3px; }.suggestion-row { display: flex; flex-direction: column; align-items: start; gap: 6px; margin-top: 11px; }.suggestion-row button, .chat-launch { padding: 6px 9px; background: #fff; border: 1px solid #e2eae1; border-radius: 7px; color: var(--green); font-size: 10px; cursor: pointer; }.suggestion-row button:hover, .chat-launch:hover { border-color: #a9c5ad; }.chat-launch { display: block; margin-top: 9px; font-weight: 700; }.chat-form { display: flex; gap: 8px; margin: 14px; border: 1px solid #dfe7df; border-radius: 10px; padding: 5px; }.chat-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 7px; font-size: 12px; }.chat-form input:focus-visible { outline: none; }.chat-form button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: var(--green); color: white; font-size: 18px; cursor: pointer; }.chat-disclaimer { margin: -7px 15px 11px; color: #9aa39d; font-size: 9px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  .app-shell { padding: 0 4%; }.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.welcome-art { right: -9%; opacity: .75; }.welcome-copy { max-width: 60%; }.toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }.category-list { width: 100%; }.search-box { flex: 0 0 auto; width: 100%; }
  .scene-layout { grid-template-columns: minmax(0, 1fr) minmax(255px, .72fr); }.scene-column { padding: 18px 14px 12px; }.lesson-panel { padding: 32px 20px 17px; }.scene-frame { min-height: 280px; }
}
@media (max-width: 600px) {
  .app-shell { padding: 0 17px; }.topbar { height: 64px; }.topbar-center { display: none; }.welcome { min-height: 350px; margin-top: 18px; padding: 28px 22px; align-items: start; }.welcome-copy { max-width: 100%; }.welcome-art { width: 220px; height: 150px; opacity: .43; top: auto; bottom: -10px; right: -47px; transform: scale(.7); transform-origin: bottom right; }.welcome-subtitle { max-width: 320px; font-size: 13px; }.explore-section { padding-top: 34px; }.section-heading { align-items: start; flex-direction: column; gap: 8px; }.section-heading h2 { font-size: 22px; }.card-grid { grid-template-columns: 1fr; gap: 13px; }.card-art { height: 152px; }.profile-name { display: none; }.footer { gap: 12px; flex-wrap: wrap; }
  .explore-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 12px; }.dialog-header { min-height: 54px; padding: 0 12px; gap: 12px; }.dialog-topic { font-size: 10px; gap: 6px; }.scene-layout { display: flex; flex-direction: column; overflow-y: auto; }.scene-column { flex: 0 0 48vh; min-height: 330px; padding: 13px 12px 8px; }.scene-frame { min-height: 240px; }.scene-topline { margin-bottom: 8px; }.lesson-panel { flex: 1; min-height: 290px; border-left: 0; border-top: 1px solid var(--line); padding: 20px 17px 14px; }.lesson-panel h2 { font-size: 21px; margin: 10px 0 7px; }.lesson-copy { font-size: 11px; }.robo-note { margin-top: 8px; }.lesson-footer { padding-top: 12px; margin-top: 12px; }.scene-pin-label { font-size: 8px; }.drag-hint { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ROBO chat workspace */
.app-shell { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; min-height: 540px; padding: 21px 14px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--white); z-index: 5; }
.sidebar-brand { padding: 0 8px; margin-bottom: 24px; }
.new-chat-button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; font-size: 12px; font-weight: 600; cursor: pointer; }
.new-chat-button:hover { border-color: #b7cbb9; background: var(--mint); }
.new-chat-button > span { font-size: 20px; font-weight: 400; color: var(--green); }
.sidebar-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 16px 0 12px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: var(--paper); color: var(--muted); }
.sidebar-search:focus-within { border-color: #9ab99e; }
.sidebar-search > span:first-child { font-size: 20px; }
.sidebar-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.sidebar-search input:focus-visible { outline: 0; }
.sidebar-search kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 10px; }
.side-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 37px; border: 0; border-radius: 8px; padding: 0 10px; background: transparent; text-align: left; color: #67736d; font-size: 11px; cursor: pointer; }
.nav-item > span { width: 17px; color: #75867b; font-size: 15px; text-align: center; }
.nav-item:hover { background: var(--paper); color: var(--ink); }
.nav-item.active { background: var(--mint); color: var(--green-dark); font-weight: 700; }
.nav-item.active > span { color: var(--green); }
.history-section { flex: 1; min-height: 0; margin-top: 23px; overflow: hidden; }
.history-title { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 8px; }
.history-title h2 { margin: 0; font: 700 10px "DM Sans", sans-serif; letter-spacing: .3px; color: var(--muted); }
.history-title > span { color: var(--muted); font-size: 9px; }
.chat-history { height: calc(100% - 26px); overflow-y: auto; }
.chat-history:empty { height: 0; }
.history-entry { position: relative; display: flex; align-items: center; gap: 2px; }
.history-item { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 0; border-radius: 7px; padding: 8px; background: transparent; color: #6f7a74; text-align: left; font-size: 11px; line-height: 1.4; cursor: pointer; }
.history-item:hover, .history-item.selected { background: var(--paper); color: var(--ink); }
.history-menu-toggle { flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer; opacity: 0; }
.history-entry:hover .history-menu-toggle, .history-menu-toggle:focus-visible, .history-menu-toggle[aria-expanded="true"] { opacity: 1; }
.history-menu { position: absolute; z-index: 20; top: calc(100% - 2px); right: 3px; min-width: 145px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: var(--shadow); }
.history-menu[hidden] { display: none; }
.history-menu button { display: block; width: 100%; border: 0; border-radius: 6px; padding: 8px 9px; background: transparent; color: var(--ink); text-align: left; font-size: 10px; cursor: pointer; }
.history-menu button:hover { background: var(--paper); }
.history-menu button[data-chat-action="delete"] { color: #b24c48; }
.history-empty { padding: 0 8px; color: #919b95; font-size: 10px; line-height: 1.5; }
.sidebar-bottom { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; }
.theme-toggle { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: #67736d; text-align: left; font-size: 11px; cursor: pointer; }
.theme-toggle:hover { background: var(--paper); }
.toggle-track { width: 27px; height: 15px; margin-left: auto; padding: 2px; border-radius: 10px; background: #d3dbd4; }
.toggle-track > span { display: block; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .18s; }
:root[data-theme="dark"] .toggle-track { background: var(--green); }
:root[data-theme="dark"] .toggle-track > span { transform: translateX(12px); }
.google-signin { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); text-align: left; cursor: pointer; }
.google-signin:hover { border-color: #b7cbb9; }
.google-g { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #4285f4; font: 800 16px Arial, sans-serif; }
.google-signin strong, .google-signin small { display: block; }
.google-signin strong { font-size: 10px; }.google-signin small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.signin-arrow { margin-left: auto; color: var(--muted); }
.workspace { min-width: 0; min-height: 100vh; background: var(--paper); }
.workspace .topbar { height: 59px; padding: 0 25px; border-bottom-color: var(--line); background: var(--white); }
.workspace .topbar-center { margin-right: auto; margin-left: 9px; font-size: 11px; }
.workspace .profile-button > span:first-child { display: grid; background: var(--mint); color: var(--green-dark); }
.mobile-menu { display: none; border: 0; border-radius: 7px; padding: 6px 8px; background: transparent; color: var(--ink); font-size: 17px; cursor: pointer; }
.app-view[hidden] { display: none !important; }
.chat-view { height: calc(100vh - 59px); min-height: 480px; display: flex; justify-content: center; overflow: hidden; }
.chat-content { width: min(850px, 100%); display: flex; flex-direction: column; min-height: 0; padding: 20px 34px 16px; }
.dashboard-preview { display: none; width: min(860px, 100%); margin: 0 auto 24px; padding: 20px 20px 16px; border: 1px solid #e0e7e2; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(232,239,232,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.chat-content.has-messages .dashboard-preview { display: none; }
.dashboard-hero { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dashboard-hero h2 { margin: 0; font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.8px; }
.dashboard-hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-tile { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 14px; border: 1px solid #dfe7e2; border-radius: 14px; background: var(--white); }
.tile-label { color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.dashboard-tile strong { font-size: 15px; line-height: 1.4; }
.dashboard-tile small { color: var(--muted); font-size: 11px; }
.dashboard-actions { display: flex; justify-content: flex-start; gap: 10px; margin-top: 16px; }
.dashboard-action { border: 1px solid var(--line); border-radius: 9px; background: var(--white); padding: 9px 12px; cursor: pointer; }
.dashboard-action.primary { background: var(--green); color: #fff; border-color: var(--green); }
.chat-welcome { margin: auto auto 18px; width: 100%; text-align: center; }
.chat-content.has-messages .chat-welcome { display: none; }
.welcome-avatar { width: 43px; height: 43px; margin: 0 auto 17px; border-radius: 14px; font-size: 17px; box-shadow: 0 5px 16px #376d5725; }
.chat-welcome .eyebrow { font-size: 9px; }
.chat-welcome h1 { max-width: none; margin: 10px 0 8px; color: var(--ink); font-size: clamp(26px, 3vw, 36px); letter-spacing: -1.3px; }
.chat-intro { margin: 0; color: var(--muted); font-size: 12px; }
.starter-prompts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 23px; }
.starter-prompts button { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: #68756d; font-size: 10px; cursor: pointer; }
.starter-prompts button:hover { border-color: #aec4b1; color: var(--green); }
.starter-prompts button span { color: var(--green); }
.conversation-messages { width: 100%; flex: 1; min-height: 0; overflow-y: auto; padding: 5px 0 18px; }
.message-row { width: min(100%, 720px); margin: 0 auto 23px; }
.message-row.user-message { display: grid; justify-items: end; }
.message-row.assistant-message { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; }
.message-avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
.message-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; line-height: 1.75; }
.user-message .message-text { max-width: min(85%, 510px); padding: 11px 15px; border-radius: 17px 17px 4px 17px; background: var(--mint); color: var(--ink); }
.message-attachments { max-width: 85%; margin-top: 5px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.assistant-message .message-text { padding-top: 3px; }
.chat-launch { width: fit-content; grid-column: 2; }
.generated-artwork { grid-column: 2; width: min(100%, 520px); margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 26px #18372a12; }
.generated-artwork img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.artwork-download { display: block; margin: 0 12px 12px auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--green-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
.artwork-download:hover { border-color: #aec4b1; background: var(--paper); }
.chat-composer-wrap { width: min(100%, 760px); margin: 0 auto; }
.workspace-composer { padding: 10px 13px 9px; border: 1px solid #dfe6df; border-radius: 17px; background: var(--white); box-shadow: 0 7px 25px #223a2910; }
.workspace-composer:focus-within { border-color: #aec5b1; box-shadow: 0 7px 25px #223a2914, 0 0 0 2px #c5dccb55; }
.workspace-composer textarea { display: block; width: 100%; min-height: 45px; max-height: 160px; resize: vertical; border: 0; outline: 0; padding: 6px 4px; background: transparent; color: var(--ink); font-size: 13px; }
.workspace-composer textarea:focus-visible { outline: 0; }
.workspace-composer textarea::placeholder { color: #929d96; }
.composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 5px; }
.composer-actions button { width: 31px; height: 31px; border: 0; border-radius: 10px; background: var(--green); color: white; font-size: 18px; cursor: pointer; }
.composer-actions .attach-files-button { margin-right: auto; border: 1px solid var(--line); background: transparent; color: var(--green-dark); font-size: 22px; }
.composer-actions button:hover { background: var(--green-dark); }
.composer-actions .attach-files-button:hover { background: var(--paper); }
.composer-actions button:disabled { opacity: .55; cursor: wait; }
.selected-files { display: flex; flex-wrap: wrap; gap: 7px; padding: 5px 3px 8px; }
.selected-files[hidden] { display: none; }
.selected-file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 7px 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 10px; }
.selected-file span { overflow: hidden; max-width: 210px; white-space: nowrap; text-overflow: ellipsis; }
.selected-file button { width: 19px; height: 19px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.selected-file button:hover { background: var(--line); color: var(--ink); }
.chat-status { width: min(100%, 720px); margin: 0 auto 15px 40px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.chat-error { color: #a64b45; }
.chat-status button { border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; background: var(--white); color: var(--ink); font-size: 10px; cursor: pointer; }
.message-sources { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.message-sources > span { width: 100%; color: var(--muted); font-size: 9px; font-weight: 700; }
.message-sources a { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--green-dark); font-size: 9px; text-decoration: none; }
.message-sources a:hover { border-color: #aec4b1; text-decoration: underline; }
.students-view { width: min(1120px, 100%); height: calc(100vh - 59px); overflow-y: auto; margin: 0 auto; padding: 1px 32px 20px; }
.student-profile-panel { margin: 24px auto 0; }
.students-view .welcome { margin-top: 24px; min-height: 260px; }
.students-view .explore-section { padding-top: 32px; }
.students-view .footer { margin-top: 26px; }
.utility-view { height: calc(100vh - 59px); overflow-y: auto; padding: 55px 30px; }
.utility-card { width: min(700px, 100%); margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.utility-card > .eyebrow { font-size: 9px; }
.utility-card > h1 { margin: 9px 0; font-size: 30px; }
.image-generator-launch { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 26px; padding: 15px 20px; border: 1px solid #2f7048; border-radius: 11px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px #2f704822; transition: background .18s, transform .18s, box-shadow .18s; }
.image-generator-launch:hover { transform: translateY(-2px); background: var(--green-dark); box-shadow: 0 9px 20px #2f704833; }
.image-generator-launch:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.image-generator-arrow { margin-left: 4px; }
.utility-description { color: var(--muted); font-size: 12px; line-height: 1.6; }
.utility-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.utility-header h1 { margin: 8px 0 0; }
.student-form { display: grid; gap: 8px; margin-top: 23px; }
.student-form label, .preference-group legend { color: var(--ink); font-size: 11px; font-weight: 700; }
.student-form input, .student-form select { min-height: 39px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--white); color: var(--ink); font-size: 12px; }
.student-form button { min-height: 39px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.student-list { display: grid; gap: 8px; margin-top: 17px; }
.student-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.student-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 700; }
.student-card strong, .student-card small { display: block; }.student-card strong { font-size: 11px; }.student-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.remove-student { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.preference-group { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; border: 0; }
.preference-group legend { margin-bottom: 8px; }
.preference-group label { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 11px; cursor: pointer; }
.preference-group input { accent-color: var(--green); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.setting-row > label { flex: 1; }
.setting-row select.setting-action { width: min(230px, 42%); max-width: 100%; text-overflow: ellipsis; }
.setting-row #language-translation-status { overflow-wrap: anywhere; }
.custom-language-control { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.custom-language-control input { width: min(220px, 48vw); cursor: text; }
.setting-row strong, .setting-row small { display: block; }.setting-row strong { color: var(--ink); font-size: 11px; }.setting-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.setting-action { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: var(--white); color: var(--ink); font-size: 10px; cursor: pointer; }.setting-action:hover { border-color: #aec4b1; }.primary-action { background: var(--green); color: white; border-color: var(--green); }.secondary-action { background: transparent; }.danger-action { color: #b24c48; }
.schedule-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.schedule-tab { border: 1px solid #dfe8e2; border-radius: 9px; background: transparent; color: #68766f; padding: 8px 12px; font-size: 10px; font-weight: 700; cursor: pointer; }
.schedule-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.schedule-module { margin-top: 18px; }
.timetable-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.timetable-grid { display: grid; gap: 8px; border: 1px solid #dfe8e2; border-radius: 16px; overflow-x: auto; overflow-y: hidden; }
.timetable-header, .timetable-row { display: grid; grid-template-columns: 72px repeat(7, minmax(100px, 1fr)); min-width: 772px; }
.timetable-header { background: linear-gradient(135deg, #e7f3ef, #dfece7); }
.timetable-header-cell, .timetable-time, .timetable-cell { min-height: 60px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #dfe8e2; border-bottom: 1px solid #dfe8e2; padding: 10px 8px; text-align: center; }
.timetable-header-cell { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); }
.timetable-time { display: block; min-width: 0; width: 100%; min-height: 60px; padding: 10px 6px; border: 0; background: rgba(255,255,255,.8); font-weight: 800; color: var(--green-dark); text-align: center; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; resize: none; }
.timetable-cell { display: block; border: 0; border-right: 1px solid #dfe8e2; border-bottom: 1px solid #dfe8e2; color: var(--ink); background: rgba(255,255,255,.5); width: 100%; min-width: 0; min-height: 60px; padding: 10px 8px; text-align: left; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; resize: none; }
.add-timetable-row { margin-top: 12px; border: 1px dashed #bfd0c2; border-radius: 10px; background: rgba(255,255,255,.6); color: var(--green-dark); padding: 10px 14px; font-weight: 700; cursor: pointer; }
.add-timetable-row:hover { background: #edf5ef; border-style: solid; }
.timetable-cell:focus { outline: 2px solid rgba(51, 129, 112, .4); outline-offset: -2px; }
.clock-shell { display: grid; gap: 12px; }
.clock-card { width: 100%; display: grid; place-items: center; gap: 10px; min-height: 210px; border: 1px solid #dfe8e1; border-radius: 18px; background: linear-gradient(135deg, #edf4ea, #dfece0); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.clock-card:hover { transform: translateY(-1px); border-color: #bfd7c8; box-shadow: 0 8px 18px rgba(47, 92, 73, 0.08); }
.clock-card[aria-expanded="true"] { box-shadow: 0 12px 22px rgba(47, 92, 73, 0.13); }
.clock-label { color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 9px; }
.digital-clock { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.08em; font-family: "Manrope", sans-serif; color: var(--green-dark); }
.clock-subtitle { color: var(--muted); font-size: 10px; }
.clock-tools-panel { display: none; }
.clock-shell.expanded .clock-tools-panel { display: block; }
.clock-mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.clock-mode { border: 1px solid #dfe8e2; border-radius: 9px; background: transparent; color: var(--muted); padding: 9px 12px; font-size: 10px; font-weight: 700; cursor: pointer; }
.clock-mode.active { background: var(--green); color: #fff; border-color: var(--green); }
.clock-section { margin-top: 12px; }
.alarm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.alarm-form label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700; color: var(--muted); }
.alarm-form input { border: 1px solid #dfe8e1; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 12px; }
.alarm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.alarm-item { display: flex; justify-content: space-between; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #dfe8e2; border-radius: 12px; background: #fff; }
.alarm-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.alarm-item small { color: var(--muted); font-size: 10px; }
.alarm-item.ringing { background: #fff7d8; border-color: #f1d26a; }
.remove-alarm { border: 0; background: transparent; color: #7b8c88; font-size: 18px; cursor: pointer; }
.empty-item { padding: 14px 16px; border: 1px dashed #d6ddd7; border-radius: 12px; background: rgba(255,255,255,.7); color: var(--muted); }
.stopwatch-box, .timer-box { display: grid; gap: 14px; justify-items: center; padding: 20px; border: 1px solid #e5ece7; border-radius: 16px; background: linear-gradient(135deg, rgba(246,249,246,.9), rgba(226,236,230,.8)); }
.stopwatch-display, .timer-display { font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: var(--green-dark); letter-spacing: -0.06em; font-family: "Manrope", sans-serif; }
.stopwatch-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.timer-inputs { display: grid; grid-template-columns: repeat(3, minmax(78px, 120px)); gap: 12px; width: min(100%, 420px); }
.timer-inputs label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.timer-inputs input { width: 100%; min-height: 58px; border: 1px solid #dfe8e1; border-radius: 10px; background: #fff; padding: 10px; color: var(--ink); text-align: center; font: 700 22px "Manrope", sans-serif; }
.timer-inputs input:focus-visible { outline: 2px solid rgba(51, 129, 112, .45); outline-offset: 2px; }
.timer-limit-note { margin: -5px 0 0; color: var(--muted); font-size: 10px; }
.alarm-sound-settings { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.alarm-sound-settings h2 { margin: 0 0 6px; color: var(--ink); font-size: 16px; }
.alarm-sound-settings .utility-description { margin: 0 0 14px; }
.alarm-sound-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.alarm-sound-option { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); text-align: left; font-size: 11px; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.alarm-sound-option:hover { transform: translateY(-1px); border-color: #9dbcaa; }
.alarm-sound-option[aria-pressed="true"] { border-color: var(--green); background: var(--mint); font-weight: 700; }
.alarm-sound-number { color: var(--green-dark); font-size: 9px; font-weight: 800; }
.alarm-sound-preview { margin-left: auto; color: var(--green-dark); font-size: 10px; }
.alarm-sound-status { min-height: 16px; margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.calendar-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.calendar-controls label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.calendar-controls select { border: 1px solid #dfe8e1; background: #fff; color: var(--ink); border-radius: 9px; padding: 8px 10px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 6px 0 8px; }
.calendar-weekdays span { display: flex; justify-content: center; align-items: center; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-day { position: relative; display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px solid #e0e8e2; border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.calendar-day.muted { opacity: .45; cursor: default; }
.calendar-day.selected { border-color: var(--green); background: var(--mint); }
.calendar-day.has-note::after { content: ""; position: absolute; right: 12px; bottom: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.calendar-day strong { font-size: 18px; }
.day-note-panel { margin-top: 18px; padding: 16px; border: 1px solid #e3e9e4; border-radius: 12px; background: #fafcf9; }
.day-note-panel label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.day-note-panel textarea { width: 100%; min-height: 90px; resize: vertical; padding: 10px 12px; border: 1px solid #dfe8e1; border-radius: 9px; background: #fff; color: var(--ink); }
.schedule-form-shell { margin: 16px 0 18px; padding: 16px; border: 1px solid #e4ebe5; border-radius: 14px; background: #f7f9f6; }
.schedule-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.schedule-form label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 700; color: #53615c; }
.schedule-form input, .schedule-form textarea { width: 100%; border: 1px solid #dfe8e1; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 11px; font-size: 12px; }
.schedule-form textarea { min-height: 70px; resize: vertical; }
.schedule-note-field { grid-column: 1 / -1; }
.schedule-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.schedule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.schedule-item { display: flex; gap: 12px; padding: 14px; border: 1px solid #e8eee7; border-radius: 14px; background: #fbfcfa; }
.schedule-badge { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--green); font-weight: 800; }
.schedule-copy { flex: 1; min-width: 0; }
.schedule-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.schedule-title-row strong { font-size: 14px; line-height: 1.4; }
.schedule-meta { margin-top: 6px; color: var(--muted); font-size: 11px; }
.schedule-copy p { margin: 10px 0 0; color: #67756f; font-size: 12px; line-height: 1.6; }
.remove-schedule { border: 0; background: transparent; color: #9aa6a0; font-size: 20px; cursor: pointer; }
.schedule-empty { margin-top: 18px; }
.robo-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(360px, calc(100vw - 32px)); background: rgba(35, 58, 49, 0.97); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 18px 30px rgba(0,0,0,.15); opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.robo-toast.visible { opacity: 1; transform: translateY(0); }
.signin-dialog { width: min(390px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 16px; padding: 27px; background: var(--white); color: var(--ink); box-shadow: 0 20px 90px #0004; text-align: center; }
.signin-dialog::backdrop { background: #17231dbb; backdrop-filter: blur(4px); }
.signin-dialog-content { position: relative; }
.signin-close { position: absolute; top: -19px; right: -17px; }
.signin-header { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.signin-large { width: 38px; height: 38px; margin: 0 auto 0; font-size: 21px; }
.signin-dialog h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.signin-dialog p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.signin-provider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.signin-provider { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbf9; color: var(--ink); font-size: 11px; font-weight: 600; cursor: pointer; }
.signin-provider:hover { border-color: #b7cbb9; background: #f1f7f2; }
.signin-provider:active { transform: translateY(1px); }
.signin-provider-status { min-height: 32px; }
.provider-mark { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 800; }
.google-mark { background: #eaf2ff; color: #2f6fe5; }
.microsoft-mark { background: #ebf5ff; color: #0f6cbd; }
.apple-mark { background: #f1f1f1; color: #1d1d1f; }
.signin-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: #98a29c; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.signin-link { border: 0; background: transparent; padding: 0; color: var(--green-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
.signin-link.danger { color: #a9594a; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #e6ece8; --muted: #9ca9a2; --paper: #171c1b; --white: #202725; --green: #83b99a; --green-dark: #a4d2b2; --mint: #293b32; --line: #333d38; --shadow: 0 18px 50px #0004; }
:root[data-theme="dark"] body, :root[data-theme="dark"] .workspace { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .workspace .topbar, :root[data-theme="dark"] .sidebar, :root[data-theme="dark"] .utility-card, :root[data-theme="dark"] .google-signin { background: var(--white); }
:root[data-theme="dark"] .welcome { background: #25332e; }
:root[data-theme="dark"] .welcome-subtitle, :root[data-theme="dark"] .card-description, :root[data-theme="dark"] .chat-intro, :root[data-theme="dark"] .lesson-copy { color: #aab6af; }
:root[data-theme="dark"] .robo-prompt, :root[data-theme="dark"] .search-box, :root[data-theme="dark"] .exploration-card, :root[data-theme="dark"] .workspace-composer, :root[data-theme="dark"] .starter-prompts button, :root[data-theme="dark"] .setting-action { background: var(--white); color: var(--ink); }
:root[data-theme="dark"] .category-button { color: #b1bdb5; }
:root[data-theme="dark"] .category-button:hover { background: #29332f; }
:root[data-theme="dark"] .category-button[aria-pressed="true"] { color: #18251d; background: #83b99a; }
:root[data-theme="dark"] .card-meta, :root[data-theme="dark"] .lesson-footer { border-color: var(--line); }
:root[data-theme="dark"] .message-text { color: var(--ink); }
:root[data-theme="dark"] .chat-error { color: #ffaaa1; }
:root[data-theme="dark"] .message-sources a { color: #b6e0c3; }
:root[data-theme="dark"] .user-message .message-text { background: #30463a; }
:root[data-theme="dark"] .nav-item, :root[data-theme="dark"] .theme-toggle, :root[data-theme="dark"] .history-item { color: #b1bdb5; }
:root[data-theme="dark"] .image-generator-launch { color: #15241b; }
:root[data-theme="dark"] .nav-item:hover, :root[data-theme="dark"] .history-item:hover, :root[data-theme="dark"] .history-item.selected, :root[data-theme="dark"] .theme-toggle:hover { background: #29332f; }
:root[data-theme="dark"] .nav-item.active { color: #c4e6d0; background: #293b32; }
:root[data-theme="dark"] .utility-card > h1, :root[data-theme="dark"] .student-form label, :root[data-theme="dark"] .preference-group label { color: var(--ink); }
:root[data-theme="dark"] .student-form input, :root[data-theme="dark"] .student-form select, :root[data-theme="dark"] .preference-group label { background: #202725; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .signin-dialog { background: var(--white); color: var(--ink); }
:root[data-theme="dark"] .history-item { color: #b1bdb5; }
:root[data-theme="dark"] .topbar-center,
:root[data-theme="dark"] .history-empty,
:root[data-theme="dark"] .welcome-subtitle,
:root[data-theme="dark"] .card-level,
:root[data-theme="dark"] .card-description,
:root[data-theme="dark"] .card-meta,
:root[data-theme="dark"] .chat-intro,
:root[data-theme="dark"] .starter-prompts button,
:root[data-theme="dark"] .result-count,
:root[data-theme="dark"] .utility-description,
:root[data-theme="dark"] .student-card small,
:root[data-theme="dark"] .setting-row small,
:root[data-theme="dark"] .schedule-tab,
:root[data-theme="dark"] .alarm-form label,
:root[data-theme="dark"] .alarm-item small,
:root[data-theme="dark"] .timer-inputs label,
:root[data-theme="dark"] .timer-limit-note,
:root[data-theme="dark"] .alarm-sound-status,
:root[data-theme="dark"] .calendar-controls label,
:root[data-theme="dark"] .schedule-form label,
:root[data-theme="dark"] .schedule-meta,
:root[data-theme="dark"] .schedule-copy p,
:root[data-theme="dark"] .lesson-copy,
:root[data-theme="dark"] .lesson-step,
:root[data-theme="dark"] .lesson-footer,
:root[data-theme="dark"] .robo-note p,
:root[data-theme="dark"] .signin-dialog p { color: #b7c3bc; }
:root[data-theme="dark"] input:not([type="radio"]),
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select { background-color: var(--white); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .sidebar-search input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .workspace-composer textarea { background: transparent; }
:root[data-theme="dark"] .explore-dialog,
:root[data-theme="dark"] .robo-dialog,
:root[data-theme="dark"] .dialog-header,
:root[data-theme="dark"] .lesson-panel,
:root[data-theme="dark"] .robo-chat { background: var(--white); color: var(--ink); }
:root[data-theme="dark"] .dialog-header,
:root[data-theme="dark"] .lesson-panel,
:root[data-theme="dark"] .lesson-footer { border-color: var(--line); }
:root[data-theme="dark"] .robo-prompt,
:root[data-theme="dark"] .signin-provider,
:root[data-theme="dark"] .alarm-item,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .day-note-panel,
:root[data-theme="dark"] .schedule-item,
:root[data-theme="dark"] .student-card,
:root[data-theme="dark"] .dashboard-preview,
:root[data-theme="dark"] .dashboard-tile { background: var(--white); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .stopwatch-box,
:root[data-theme="dark"] .timer-box,
:root[data-theme="dark"] .schedule-form-shell { background: #202725; border-color: var(--line); }
:root[data-theme="dark"] .robo-bubble,
:root[data-theme="dark"] .chat-messages { background: #252e2a; color: var(--ink); }
:root[data-theme="dark"] .schedule-tab.active,
:root[data-theme="dark"] .clock-mode.active { color: #14251b; }
:root[data-theme="dark"] .alarm-sound-option[aria-pressed="true"] { color: var(--ink); }
:root[data-theme="dark"] .signin-provider:hover,
:root[data-theme="dark"] .suggestion-row button,
:root[data-theme="dark"] .chat-launch { background: #29332f; color: #c4e6d0; border-color: var(--line); }
:root[data-theme="dark"] .robo-splash-text { color: var(--green-dark); }
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(290px, 85vw); height: 100dvh; min-height: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 15px 0 40px #0001; }
  .sidebar.mobile-open { transform: translateX(0); }
  .workspace .topbar { height: 55px; padding: 0 14px; }
  .mobile-menu { display: inline-block; }
  .workspace .topbar-center { margin-left: 2px; font-size: 10px; }
  .workspace .profile-button .profile-name { display: none; }
  .chat-view { height: calc(100dvh - 55px); min-height: 440px; }
}
@media (max-height: 650px) {
  .sidebar { padding-top: 13px; }
  .sidebar-brand { margin-bottom: 12px; }
  .new-chat-button { height: 36px; }
  .sidebar-search { margin-top: 10px; margin-bottom: 8px; }
  .side-nav { gap: 2px; }
  .nav-item { min-height: 31px; }
  .history-section { min-height: 120px; margin-top: 12px; }
  .sidebar-bottom { gap: 6px; }
  .chat-content { padding: 14px 16px 13px; }
  .chat-welcome { margin-bottom: 14px; }
  .starter-prompts { gap: 6px; margin-top: 16px; }
  .starter-prompts button { font-size: 9px; padding: 8px; }
  .students-view { height: calc(100dvh - 55px); padding: 1px 17px 18px; }
  .students-view .welcome { min-height: 300px; margin-top: 16px; }
  .students-view .toolbar { flex-direction: column; align-items: stretch; }
  .utility-view { height: calc(100dvh - 55px); padding: 22px 15px; }
  .utility-card { padding: 22px 17px; }
}
@media (max-width: 480px) {
  .chat-content { padding: 10px 12px; }
  .chat-welcome h1 { font-size: 25px; }
  .chat-intro { font-size: 11px; }
  .starter-prompts button { width: 100%; justify-content: center; }
  .workspace .topbar-center { display: none; }
}

.learner-view { padding: 24px clamp(14px, 3vw, 36px); background: #070914; color: #eef0ff; }
.learner-shell { width: min(1120px, 100%); height: 100%; min-height: 0; margin: 0 auto; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 12px; }
.learner-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.learner-header .eyebrow { color: #b4a2ff; }
.learner-header h1 { margin: 5px 0; color: #f4f2ff; font-size: clamp(25px, 3vw, 34px); }
.learner-intro { max-width: 570px; margin: 0; color: #b0b3cd; font-size: 12px; line-height: 1.6; }
.learner-header-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.learner-tool-button { min-width: 42px; min-height: 36px; border: 1px solid #44436a; border-radius: 10px; padding: 7px 12px; background: linear-gradient(135deg, #191b35, #242044); color: #eeeaff; font-size: 11px; font-weight: 700; cursor: pointer; }
.learner-tool-button:hover { border-color: #9c83ff; background: linear-gradient(135deg, #24264a, #34265c); }
.learner-add-files { width: 38px; min-width: 38px; height: 38px; padding: 0; color: #e4d8ff; font-size: 24px; line-height: 1; }
.learner-tool-button:disabled { cursor: wait; opacity: .6; }
.learner-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.learner-selected-files { display: flex; flex-wrap: wrap; gap: 7px; }
.learner-selected-files[hidden] { display: none; }
.learner-file-chip { max-width: min(260px, 80vw); display: inline-flex; align-items: center; gap: 8px; padding: 5px 7px 5px 10px; border: 1px solid #48466a; border-radius: 9px; background: #141629; color: #d7d4ee; font-size: 10px; }
.learner-file-chip > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.learner-file-chip button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: #282540; color: #ded8f8; cursor: pointer; }
.learner-change-tutor { flex: 0 0 auto; border: 0; background: transparent; color: #b9b2df; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.learner-main { min-height: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.learner-stage { min-height: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #33334f; border-radius: 22px; background: radial-gradient(ellipse at 50% 35%, #241d4d 0, #11152c 39%, #090b18 78%), linear-gradient(135deg, #090a17, #17132f 55%, #080b17); }
.learner-stage::before { content: ""; position: absolute; z-index: -1; inset: auto -12% -61%; height: 84%; border-radius: 50%; background: radial-gradient(ellipse, #50408b45, transparent 70%); }
.learner-orbit { position: absolute; top: 50%; left: 50%; width: min(62%, 450px); aspect-ratio: 1; border: 1px solid #8e7ae322; border-radius: 50%; transform: translate(-50%, -57%); pointer-events: none; }
.learner-orbit-one { transform: translate(-50%, -57%) scaleX(1.34) rotate(-17deg); }
.learner-orbit-two { width: min(76%, 520px); transform: translate(-50%, -57%) scaleY(.66) rotate(25deg); border-color: #5da7d218; }
.learner-portrait { position: relative; z-index: 1; width: clamp(190px, 32vh, 360px); max-width: 72%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #8271c766; border-radius: 34%; background: radial-gradient(circle at 50% 42%, #302556 0, #19182f 58%, #101225 100%); box-shadow: 0 0 0 9px #8a75e60d, 0 20px 70px #03040dbb, inset 0 0 38px #ad98ff18; }
.learner-portrait img { width: 100%; height: 100%; object-fit: contain; }
.learner-portrait:not(.has-portrait) img { width: 42%; height: 42%; object-fit: contain; filter: drop-shadow(0 0 22px #9a7aff80); }
.learner-mouth { position: absolute; top: 40%; left: 50%; width: 7%; height: .4%; border: 0; border-radius: 50%; background: transparent; opacity: 0; transform: translate(-50%, -50%) scaleY(.5); box-shadow: none; }
.learner-portrait[data-tutor-gender="female"] .learner-mouth { top: 52%; width: 9.1%; --learner-mouth-round-width: 7.8%; --learner-lip-color: #d7708e; --learner-lip-highlight: #f294b0; --learner-mouth-inner: #700d2d; }
.learner-portrait[data-tutor-gender="male"] .learner-mouth { top: 41.5%; width: 7.4%; --learner-mouth-round-width: 6.5%; --learner-lip-color: #c67b65; --learner-lip-highlight: #e58c79; --learner-mouth-inner: #873d30; }
.learner-stage.is-speaking .learner-portrait:is([data-tutor-gender="female"], [data-tutor-gender="male"]) .learner-mouth { opacity: .9; transition: width .1s ease, height .1s ease, background-color .1s ease, border-radius .1s ease, transform .1s ease; }
.learner-stage.is-speaking[data-viseme="closed"] .learner-portrait:is([data-tutor-gender="female"], [data-tutor-gender="male"]) .learner-mouth { height: .9%; background: var(--learner-lip-color); transform: translate(-50%, -50%) scaleY(.8); }
.learner-stage.is-speaking[data-viseme="wide"] .learner-portrait:is([data-tutor-gender="female"], [data-tutor-gender="male"]) .learner-mouth { height: .9%; background: var(--learner-lip-color); transform: translate(-50%, -50%) scaleY(.8); }
.learner-stage.is-speaking[data-viseme="open"] .learner-portrait:is([data-tutor-gender="female"], [data-tutor-gender="male"]) .learner-mouth { height: 2.2%; border-radius: 45%; background: linear-gradient(180deg, var(--learner-lip-highlight) 0 22%, var(--learner-lip-color) 24% 43%, var(--learner-mouth-inner) 48% 72%, var(--learner-lip-color) 78% 100%); transform: translate(-50%, -50%) scaleY(1); }
.learner-stage.is-speaking[data-viseme="round"] .learner-portrait:is([data-tutor-gender="female"], [data-tutor-gender="male"]) .learner-mouth { width: var(--learner-mouth-round-width); height: 3%; border-radius: 50%; background: linear-gradient(180deg, var(--learner-lip-highlight) 0 20%, var(--learner-mouth-inner) 35% 78%, var(--learner-lip-color) 80%); transform: translate(-50%, -50%) scaleY(1); }
.learner-equalizer { height: 18px; display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 13px; }
.learner-equalizer i { width: 3px; height: 4px; border-radius: 3px; background: #ae98ff; opacity: .65; }
.learner-tutor-name { margin: 7px 0 3px; color: #f1edff; font: 700 17px Manrope, sans-serif; letter-spacing: -.3px; }
.learner-speaking-status { min-height: 18px; max-width: min(90%, 520px); margin: 0; color: #a4a4c5; font-size: 10px; line-height: 1.5; text-align: center; }
.learner-transcript { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #34334f; border-radius: 18px; background: linear-gradient(155deg, #111326, #0b0d1b 80%); }
.learner-main.has-transcript .learner-transcript { position: absolute; z-index: 3; inset: 0 0 0 auto; width: min(400px, 48%); height: 100%; box-shadow: -16px 0 40px #03040dbb; animation: learner-panel-in .2s ease-out; }
.learner-transcript-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; padding: 16px 16px 11px; border-bottom: 1px solid #2a2a43; }
.learner-transcript-heading h2 { margin: 0; color: #f2efff; font-size: 15px; }
.learner-transcript-heading span { color: #9292b2; font-size: 9px; }
.learner-transcript-list { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; margin: 0; padding: 13px; list-style: none; }
.learner-transcript-entry { padding: 10px 11px; border: 1px solid #34334f; border-radius: 11px; background: #17192e; }
.learner-transcript-entry strong { display: block; margin-bottom: 5px; color: #c0adff; font-size: 10px; }
.learner-transcript-entry p { margin: 0; color: #d7d8e9; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.learner-transcript-empty { margin: 0; padding: 0 16px 14px; color: #8e91ae; font-size: 10px; }
.learner-composer { display: flex; align-items: end; gap: 10px; padding: 9px; border: 1px solid #383752; border-radius: 15px; background: linear-gradient(120deg, #15172b, #1d1935); box-shadow: 0 10px 35px #02030a40; }
.learner-composer textarea { flex: 1; min-height: 40px; max-height: 130px; resize: vertical; border: 0; outline: 0; padding: 11px 9px; background: transparent; color: #f0efff; font: 12px "DM Sans", sans-serif; }
.learner-composer textarea::placeholder { color: #9293b1; }
.learner-composer textarea:focus-visible { outline: none; }
.learner-composer textarea:disabled { opacity: .6; }
.learner-composer button { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 11px; background: linear-gradient(140deg, #8b70f3, #6447c4); color: #fff; font-size: 22px; cursor: pointer; }
.learner-composer button:disabled { cursor: wait; opacity: .6; }
.learner-disclaimer { margin: 0; color: #777993; font-size: 9px; line-height: 1.5; text-align: center; }
.learner-gender-dialog { width: min(430px, calc(100vw - 28px)); border: 1px solid #484365; border-radius: 20px; padding: 0; background: #0c0e1e; color: #f2efff; box-shadow: 0 28px 100px #02030bba; }
.learner-gender-dialog::backdrop { background: #03040bd9; backdrop-filter: blur(8px); }
.learner-gender-card { position: relative; padding: 29px; }
.learner-gender-close { position: absolute; top: 14px; right: 14px; width: 31px; height: 31px; border: 1px solid #393750; border-radius: 9px; background: #17192e; color: #d4d1e8; font-size: 20px; cursor: pointer; }
.learner-gender-card .eyebrow { color: #b4a2ff; }
.learner-gender-card h2 { margin: 12px 30px 8px 0; color: #f2efff; font-size: 22px; }
.learner-gender-card > p:not(.eyebrow) { margin: 0; color: #a9abc7; font-size: 11px; line-height: 1.6; }
.learner-gender-options { display: grid; gap: 8px; margin-top: 21px; }
.learner-gender-options button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border: 1px solid #3c395c; border-radius: 11px; padding: 0 13px; background: linear-gradient(110deg, #17192e, #201a38); color: #f0edff; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.learner-gender-options button:hover { border-color: #9b83ff; background: linear-gradient(110deg, #232442, #32224e); }
.learner-gender-options button span { color: #bdaaff; font-size: 17px; }
.learner-gender-card .learner-gender-note { margin-top: 14px; color: #777993; font-size: 9px; }
@keyframes learner-wave { to { height: 16px; opacity: 1; } }
@keyframes learner-float { to { transform: translateY(-4px) scale(1.012); } }
@keyframes learner-panel-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 760px) {
  .learner-view { height: calc(100dvh - 55px); padding: 14px 12px; }
  .learner-shell { gap: 9px; }
  .learner-header h1 { font-size: 25px; }
  .learner-intro { max-width: 300px; font-size: 10px; }
  .learner-main.has-transcript .learner-transcript { width: min(390px, calc(100% - 12px)); }
  .learner-portrait { width: clamp(155px, 27vh, 270px); }
  .learner-orbit { width: min(72%, 370px); }
  .learner-orbit-two { width: min(90%, 440px); }
  .learner-disclaimer { font-size: 8px; }
}
@media (max-width: 420px) {
  .learner-header { align-items: start; }
  .learner-header-actions { gap: 6px; }
  .learner-tool-button { min-height: 33px; padding: 6px 9px; }
  .learner-add-files { width: 35px; min-width: 35px; height: 35px; }
  .learner-gender-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .learner-main.has-transcript .learner-transcript { animation: none; }
}
