
:root{--ink:#21352d;--muted:#7e8781;--green:#244b39;--line:#e1e5de;--bg:#f6f7f2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Arial,sans-serif}button,a,input,textarea{font:inherit}button,a{cursor:pointer}button{border:0;background:none;color:inherit}aside{width:242px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:40px 24px;display:flex;flex-direction:column}.brand{font-size:40px;font-weight:800;letter-spacing:-3px;text-decoration:none;color:var(--ink)}.brand span{font-size:18px;color:#adc875;margin-left:5px}aside>small{font-size:9px;letter-spacing:2px;margin:6px 0 48px}nav{display:grid;gap:9px}nav button{text-align:left;padding:15px 13px;border-radius:9px;color:#7b847e}nav button.active{background:#edf2e9;color:var(--green);font-weight:800}.aside-bottom{margin-top:auto}.help{background:#f6f7f2;padding:18px;border-radius:12px;font-size:12px;font-weight:700}.help p{line-height:1.8;color:var(--muted);font-weight:400}.help button{padding:0}.profile{display:flex;align-items:center;gap:10px;margin-top:28px;font-size:11px}.profile>b{background:#e9eadc;border-radius:50%;padding:12px 16px}.profile small{display:block;font-size:8px;margin-top:4px;color:var(--muted)}main{margin-left:242px;padding:0 48px}header{height:98px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}header b{color:var(--ink);font-weight:500}i{margin:0 15px}.outline{border:1px solid #ccd4c9;padding:11px 17px;border-radius:7px;background:#fff}.intro{display:flex;justify-content:space-between;align-items:end;margin:36px 0 26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7a886c;font-weight:800}h1{font-size:34px;letter-spacing:-1.2px;margin:12px 0}p{line-height:1.8;color:var(--muted)}.intro p{margin:0}.date{font-size:11px;color:var(--muted)}.hero{background:#e9eddf;border-radius:15px;min-height:245px;display:flex;overflow:hidden;position:relative;padding:30px 34px;align-items:center}.hero h2{font-size:29px;max-width:420px;line-height:1.35;letter-spacing:-.7px;margin:10px 0}.hero p{max-width:400px;font-size:12px;color:#697662}.primary{background:var(--green);color:white;border-radius:7px;padding:13px 21px;font-weight:700;font-size:12px}.hero-art{margin-left:auto;position:relative;width:270px;height:200px;transform:rotate(-8deg)}.bot{position:absolute;border-radius:26px;width:170px;height:125px;background:#faffeb;top:40px;left:40px;box-shadow:12px 15px 0 #c3cda9;display:flex;align-items:center;justify-content:center;gap:25px;border:1px solid #b7c79e}.bot:before{content:'';position:absolute;width:3px;height:30px;background:#3c5c40;top:-30px}.eye{width:16px;height:22px;background:#315340;border-radius:9px}.bubble{position:absolute;background:var(--green);color:#e8f3cc;padding:12px 17px;border-radius:13px;font:20px monospace;right:0;bottom:0}.spark{position:absolute;font-size:45px;color:#89a05e;top:0;right:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0 35px}.stat{border:1px solid var(--line);border-radius:10px;padding:17px 20px;background:#fff;display:flex;align-items:center;gap:14px}.stat strong{font-size:26px}.stat span{font-size:11px;color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-head h2{font-size:20px;margin:0}.badge{background:#edf1e7;font-size:10px;padding:6px 10px;border-radius:20px}.course{display:grid;grid-template-columns:280px 1fr;background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.cover{background:#dce6cf;padding:30px;position:relative;min-height:245px;display:flex;flex-direction:column;justify-content:space-between}.cover:after{content:'{ ↗ }';font-size:68px;font-weight:800;color:#446b45;letter-spacing:-10px;align-self:center}.cover span{font-size:10px;letter-spacing:2px}.course-info{padding:26px 30px}.course-info h3{font-size:23px;margin:12px 0}.course-info p{font-size:12px}.progress{height:5px;border-radius:8px;background:#edf0e9;margin:16px 0 9px}.progress>div{background:#8ca668;height:100%;border-radius:8px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.muted{font-size:11px;color:var(--muted)}footer{display:flex;justify-content:space-between;font-size:9px;color:#929a8e;border-top:1px solid var(--line);padding:24px 0;margin-top:40px}footer span{font-size:9px}.workspace{display:grid;grid-template-columns:250px 1fr;gap:24px;margin-top:25px}.lesson-list,.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.lesson-list button{display:block;width:100%;text-align:left;padding:14px 10px;line-height:1.6;border-radius:8px;font-size:12px}.lesson-list button.selected{background:#edf2e5}.panel h2{font-size:25px}.lesson-text{white-space:pre-wrap;line-height:1.9;color:#657165}.video{display:block;background:#e8eddf;padding:22px;border-radius:8px;text-decoration:none;color:var(--green);margin:20px 0}.task-box{background:#f5f6ef;padding:22px;border-radius:10px;margin:24px 0}.task-box p{white-space:pre-wrap;color:#657165}textarea,input{width:100%;padding:12px;border:1px solid #d7dfd1;border-radius:7px;background:white;color:var(--ink);margin:8px 0 16px}textarea{resize:vertical}.task-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin:15px 0}.task-card h3{margin-top:0}.saved{color:#527340;font-size:12px}dialog{border:0;border-radius:16px;width:560px;max-width:92vw;padding:26px}dialog::backdrop{background:#19332270}.dialog-head{display:flex;align-items:center;justify-content:space-between}label{display:block;font-size:12px}.empty{padding:30px;background:#fff;border-radius:12px}#toast{position:fixed;bottom:25px;right:25px;background:#244b39;color:white;border-radius:8px;padding:16px;display:none}@media(min-width:1500px){main{max-width:1500px;margin:auto;padding-left:290px}}@media(max-width:1000px){main{padding:0 25px;margin-left:195px}aside{width:195px;padding:25px 16px}.hero-art{width:210px;transform:scale(.8)}.course{grid-template-columns:210px 1fr}.workspace{grid-template-columns:1fr}.hero h2{font-size:24px}}@media(max-width:700px){aside{position:static;width:auto;padding:16px 20px}.brand{font-size:30px}aside>small,.aside-bottom{display:none}nav{display:flex;margin-top:16px}nav button{font-size:11px;padding:10px}main{margin:0;padding:0 20px}header{height:75px}.intro{margin-top:25px}.date,.hero-art{display:none}h1{font-size:28px}.hero{padding:25px}.stats{gap:8px}.stat{padding:12px;display:grid;gap:3px}.stat span{font-size:9px}.course{grid-template-columns:1fr}.cover{min-height:150px}.cover:after{font-size:45px}.course-info{padding:22px}footer span{max-width:140px;text-align:right}header>span{font-size:9px}.outline{padding:9px;font-size:10px}}
/* Visual direction adapted from the supplied course reference. */
:root{--ink:#f5f5f3;--muted:#a3a3a0;--green:#ff6b00;--line:#343432;--bg:#111112}body{background-color:var(--bg);background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:40px 40px}aside{background:#151515}.brand{color:#fff}.brand span{color:#ff6b00}aside>small{color:#989895}nav button{color:#aaa}nav button.active{background:#ff6b00;color:#131313}.help{background:#202020;border:1px solid #363636}.help button{color:#ff8126}.profile>b{background:#ff6b00;color:#111}.outline{border-color:#555;background:transparent;color:#f4f4f0}.outline:hover{border-color:#ff6b00;color:#ff8e3d}.eyebrow{color:#ff8126}h1{font-weight:800}header{color:#999}.hero{background-color:#121212;background-image:linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px);background-size:32px 32px;border:1px solid #575754;border-radius:10px;min-height:285px}.hero h2{font-size:34px;font-weight:800;letter-spacing:-1px}.hero p{color:#b6b6b0}.primary{background:#ff6b00;color:#111;font-weight:800}.primary:hover{background:#ff8b36}.stat{background:#181818;border-color:#454542;border-radius:8px}.stat strong{color:#ff7a18}.stat span{color:#aaa}.badge{background:#ff6b00;color:#131313;font-weight:800;border-radius:4px}.course{background:#181818;border-color:#5a5a56;border-radius:9px}.cover{background-color:#ff6b00;background-image:linear-gradient(#00000010 1px,transparent 1px),linear-gradient(90deg,#00000010 1px,transparent 1px);background-size:28px 28px;color:#161616}.cover:after{content:'BOT_01';font-size:46px;letter-spacing:-3px;color:#141414}.cover span{font-weight:800}.progress{background:#363633}.progress>div{background:#ff6b00}.lesson-list,.panel,.task-card{background:#181818;border-color:#50504c;border-radius:9px}.lesson-list button{color:#b6b6b2}.lesson-list button.selected{background:#ff6b00;color:#121212;font-weight:800}.lesson-list button:hover{outline:1px solid #ff6b00}.lesson-text{color:#d0d0c9}.video{background:#242421;border:1px solid #ff6b00;color:#ff8b36}.task-box{background:#20201e;border:1px solid #595951}.task-box p{color:#c5c5bf}textarea,input{background:#141414;border-color:#50504a;color:#fff}textarea:focus,input:focus{outline:2px solid #ff6b00;outline-offset:2px}.saved{color:#ff9a53}.empty{background:#181818}dialog{background:#1b1b1a;color:#fff;border:1px solid #777}dialog::backdrop{background:#000a}#toast{background:#ff6b00;color:#111}.hero-art{transform:none;width:280px;min-width:230px;height:220px}.bot{width:172px;height:94px;border-radius:12px;top:58px;left:45px;background:#ff6b00;box-shadow:8px 8px 0 #833b08;border:1px solid #ffae71;gap:24px}.bot:before{width:1px;height:42px;background:#ff6b00;top:-43px}.eye{background:#171717;width:15px;height:23px}.bubble{border:1px solid #787871;background:#191919;color:#fff;border-radius:5px;font-size:13px;bottom:3px;right:0;padding:12px 20px}.spark{font-size:48px;color:#ff6b00;top:-8px;right:10px}.hero-art:before{content:'01 / СЦЕНАРИЙ';position:absolute;top:0;left:0;border:1px solid #70706a;border-radius:4px;background:#181818;padding:10px 14px;font-size:10px;letter-spacing:1px}.hero-art:after{content:'↓';position:absolute;bottom:17px;left:81px;color:#ff6b00;font-size:34px}.course-info h3{font-weight:800}footer{color:#91918c}@media(max-width:1000px){.hero h2{font-size:28px}.hero-art{min-width:180px;transform:scale(.85);transform-origin:right center}}@media(max-width:700px){.hero{min-height:270px}.hero h2{font-size:28px}.course-info h3{font-size:22px}.stat strong{font-size:23px}aside{border-bottom:1px solid var(--line)}}

/* Green communicates completed learning. */
:root{--success:#32bf83;--success-bg:#163a2b}
.progress>div{background:var(--success)}
.lesson-list button.completed{background:var(--success-bg);color:#81e4b6;border:1px solid #2b7551;margin:4px 0}
.lesson-list button.completed.selected{background:#1d5139;border-color:var(--success);color:#a2f4ce;box-shadow:inset 3px 0 0 var(--success)}
.lesson-list button.completed:hover{outline-color:var(--success)}
.outline.completed{background:var(--success-bg);color:#81e4b6;border-color:#2b7551}
.stat.learning-progress strong{color:var(--success)}
a.outline{text-decoration:none}a[hidden]{display:none}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-shell{max-width:1140px;margin:0 auto;padding:30px}.admin-shell header{height:65px}.admin-tabs{display:flex;gap:10px;margin:25px 0;flex-wrap:wrap}.admin-tabs button.active{background:#ff6b00;color:#111}.admin-note{padding:15px 20px;background:#24221d;border:1px solid #655037;border-radius:8px;color:#d4c1a7;line-height:1.7;font-size:12px}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.admin-grid .stat{display:block}.admin-grid strong,.admin-grid span{display:block}.admin-grid span{margin-top:8px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;padding:16px 12px;border-bottom:1px solid #333;white-space:nowrap}th{color:#999;font-size:10px;letter-spacing:1px}td button{font-size:11px}.admin-form{max-width:640px}.admin-actions{display:flex;gap:10px;align-items:center}.admin-empty{padding:45px 20px;text-align:center;color:#aaa}.status-ok{color:#81e4b6}.status-off{color:#aaa}.answer-text{white-space:pre-wrap;color:#ccc;overflow-wrap:anywhere}.admin-shell .panel{margin-bottom:20px}.auth-card{max-width:480px;margin:12vh auto;padding:35px;background:#181818;border:1px solid #555;border-radius:12px}.auth-card h1{font-size:28px}.auth-card a.primary{display:inline-block;text-decoration:none}.auth-card p{font-size:13px}@media(max-width:700px){.admin-shell{padding:20px}.admin-grid{grid-template-columns:repeat(2,1fr)}.admin-header h1{font-size:25px}.admin-actions{flex-wrap:wrap}}

.brand{display:inline-block;flex-shrink:0;font-size:18px;line-height:1.15;letter-spacing:-.35px}.brand span{margin-left:3px}header{gap:16px}aside .brand{font-size:19px}@media(max-width:700px){.brand{font-size:14px;letter-spacing:-.2px}.landing nav{gap:10px}.landing nav .outline{font-size:10px;padding:10px}.landing header{height:auto;min-height:80px;flex-wrap:wrap;padding-block:12px}.admin-shell header{flex-wrap:wrap}}

.upload-box{padding:16px;border:1px solid #555;border-radius:9px;margin:14px 0}.upload-box h3{margin-top:0}.upload-box input[type=file]{padding:12px;width:100%;box-sizing:border-box}.attachment-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid #393939;padding:12px 0;overflow-wrap:anywhere}.attachment-row>div,.attachment-row>a:first-child{flex:1;min-width:110px}.attachment-row small{display:block;color:#999;margin-top:5px}.attachment-row a{color:#ffad70}.attachment-row .outline{font-size:11px;white-space:nowrap}.lesson-video video{display:block;width:100%;max-height:65vh;background:#080808;border-radius:9px;margin:16px 0}.lesson-attachments{margin:20px 0}.lesson-attachments h3{font-size:16px}#upload-progress{width:100%;accent-color:#ff7923}#upload-status{font-size:12px;color:#ffbf8e}.upload-box .muted{font-size:12px}dialog#editor{max-height:90dvh;overflow:auto;box-sizing:border-box;width:680px;max-width:calc(100vw - 30px)}

.auth-card .auth-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}

.learning-light {
  color-scheme: light;
  --ink: #26231f;
  --muted: #625b53;
  --line: #e0d8ce;
  --bg: #f8f5ef;
  --success: #24704a;
  --success-bg: #e8f4ec;
  background-image: linear-gradient(#36271608 1px, transparent 1px),
    linear-gradient(90deg, #36271608 1px, transparent 1px);
}
.learning-light :is(aside,.stat,.course,.lesson-list,.panel,.task-card) {
  background: #fffdf9;
  border-color: var(--line);
}
.learning-light :is(.brand,header,nav button,.lesson-list button,.outline) { color: var(--ink); }
.learning-light :is(.help,.task-box,.video) { background: #f4eee5; border-color: var(--line); }
.learning-light :is(.stat span,.task-box p,.help p,header span,.attachment-row small) { color: var(--muted); }
.learning-light :is(.eyebrow,.stat strong,.help button,.video,.attachment-row a) { color: #9c410b; }
.learning-light .outline { border-color: #a79b8f; }
.learning-light .hero {
  background-color: var(--bg);
  background-image: linear-gradient(#36271608 1px, transparent 1px),
    linear-gradient(90deg, #36271608 1px, transparent 1px);
  border-color: var(--line);
}
.learning-light .hero-art::before { background: #fffaf2; border-color: #b6987d; }
.learning-light .hero .primary { margin-top: 16px; }
.learning-light .progress { background: #e8e1d7; }
.learning-light textarea { background: #fffdf9; border-color: #b8aa9b; color: var(--ink); }
.learning-light .lesson-list button.selected { background: #ffdcc1; }
.learning-light :is(.lesson-list button.completed,.outline.completed) { color: #185b3a; border-color: #66a985; }
.learning-light .lesson-list button.completed.selected { background: #d4eddd; }
.learning-light .hero-subtitle { color: var(--muted); }

.learning-light .learning-hero {
  min-height: 300px;
  padding: clamp(24px, 5vw, 54px);
}
.learning-hero-copy { position: relative; z-index: 1; }
.learning-light .learning-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 5.2vw, 68px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.learning-light .learning-hero .hero-subtitle {
  display: inline-block;
  margin: 12px 0 0;
  padding: .55em .85em;
  border-radius: 7px;
  background: #237347;
  color: #fff;
  font-size: clamp(15px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(-3deg);
  transform-origin: left center;
}
@media (max-width: 700px) {
  .learning-light .learning-hero { min-height: 0; }
  .learning-hero .hero-art { display: none; }
}

.learning-light .learning-hero {
  justify-content: space-between;
  gap: 12px;
}
.learning-robot {
  display: block;
  width: min(42%, 380px);
  min-width: 0;
  height: auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  .learning-light .learning-hero { flex-wrap: wrap; }
  .learning-robot { width: min(70%, 250px); margin-inline: auto; }
}

.learning-robot-scene { position: relative; width: min(46%, 420px); flex-shrink: 0; }
.learning-robot-scene .learning-robot { width: 100%; }
.robot-note {
  position: absolute;
  padding: .35em .55em;
  border-radius: 5px;
  background: #fff9ef;
  color: #963b08;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
}
.robot-note-questions { top: 16%; left: 0; transform: rotate(-5deg); }
.robot-note-leads { top: 5%; right: 0; transform: rotate(5deg); }
.robot-note-rest { bottom: 3%; right: 0; transform: rotate(-4deg); }
@media (max-width: 700px) {
  .learning-robot-scene { width: min(100%, 300px); margin-inline: auto; }
}

.learning-robot-scene.robot-payment { margin-block: 0; }
.robot-payment figcaption {
  margin-top: 8px;
  text-align: right;
  color: #21603d;
  font-size: clamp(14px, 1.7vw, 20px);
  font-weight: 800;
}

.learning-light .lesson-text { color: var(--ink); }

.admin-light :is(dialog,input,select,textarea) {
  background: #fffdf9;
  color: var(--ink);
  border-color: #a79b8f;
}
.admin-light :is(th,td,.attachment-row,.upload-box) { border-color: var(--line); }
.admin-light :is(th,.admin-empty,.status-off) { color: var(--muted); }
.admin-light .answer-text { color: var(--ink); }
.admin-light .status-ok { color: #185b3a; }
.admin-light .admin-note { background: #f7eddb; border-color: #dcc9a6; color: #694e26; }
.admin-light .admin-tabs .active { border-color: #a84600; }

.admin-light .admin-shell { max-width: 1320px; }
.admin-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 32px; margin-top: 25px; }
.admin-light .admin-tabs { display: flex; flex-direction: column; align-self: start; gap: 6px; margin: 0; }
.admin-light .admin-tabs button { text-align: left; border-color: transparent; padding: 13px 14px; }
.admin-light .admin-tabs button.active { color: #fff; background: #216043; }
.dashboard-heading h1 { margin: 0; }
.dashboard-heading p, .dashboard-sales p, .dashboard-visits small { color: var(--muted); }
.dashboard-heading p { margin: 9px 0 22px; }
.dashboard-visits, .dashboard-sales > div { background: #fffdf9; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.dashboard-visits { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: start; }
.dashboard-visits small { margin-left: auto; }
.dashboard-visits span, .dashboard-sales-values span { display: block; color: var(--muted); }
.dashboard-visits strong, .dashboard-sales-values strong { display: block; margin-top: 6px; font-size: 29px; color: #216043; }
.dashboard-sales { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.dashboard-sales h2 { margin: 0 0 18px; font-size: 18px; }
.dashboard-plan-body, .dashboard-sales-values { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.dashboard-ring { display: grid; place-items: center; width: 106px; aspect-ratio: 1; border: 10px solid #e2e9df; border-radius: 50%; font-size: 24px; color: var(--muted); }
@media(max-width: 860px) {
  .admin-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .admin-light .admin-tabs { flex-direction: row; }
}
@media(max-width: 560px) {
  .dashboard-sales { grid-template-columns: 1fr; }
  .dashboard-visits small { margin-left: 0; }
}

.learning-light .lesson-workspace { grid-template-columns: minmax(0,1fr); gap: 16px; }
.learning-light .lesson-tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.learning-light .lesson-tabs button {
  flex: 0 0 auto;
  width: auto;
  max-width: 240px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.learning-light .lesson-tabs button.selected {
  background: transparent;
  border-bottom-color: #216043;
  color: #216043;
}
.learning-light .lesson-tabs button:hover { outline: none; background: #eee9df; }
.learning-light .lesson-tabs button:focus-visible { outline: 2px solid #216043; outline-offset: -3px; }
.learning-light .lesson-tabs button:disabled { color: var(--muted); cursor: default; }

.landing-light .landing :is(.lead,.hero-facts,.program-item p,.benefits p,.price-panel p,footer) {
  color: var(--muted);
}
.landing-light .landing .price-panel { border-color: #dba680; }
.landing-light .landing nav a.outline { color: var(--ink); }

.landing-light .secret-kicker > span {
  color: #873a10;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}
.landing-light .secret-caption {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.learning-light .learning-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 14px;
}
.learning-next p { margin: 0; }
.learning-next h2 { margin: 6px 0 0; font-size: clamp(20px, 3vw, 28px); }
.learning-next .learning-review { margin-top: 8px; font-weight: 700; color: #84501e; }
.learning-light .learning-hero {
  min-height: 0;
  padding: clamp(16px, 3vw, 28px);
}
.learning-light .learning-hero h2 { font-size: clamp(24px, 3.6vw, 44px); }
.learning-light .learning-hero .hero-subtitle { font-size: clamp(13px, 1.6vw, 17px); }
.learning-light .learning-hero .learning-robot-scene { max-width: 280px; }

.assignment-modules { display: grid; gap: 10px; }
.learning-light .assignment-module { padding: 0; }
.assignment-row { display: flex; align-items: baseline; gap: 10px; padding: 13px 16px; }
summary.assignment-row { cursor: pointer; list-style: none; }
summary.assignment-row::-webkit-details-marker { display: none; }
summary.assignment-row::before { content: '›'; color: #216043; font-weight: 700; }
details[open] > summary.assignment-row::before { transform: rotate(90deg); }
.assignment-row small { margin-inline-start: auto; color: var(--muted); text-align: right; }
.assignment-module > :is(.assignment-lesson,.assignment-locked) { border-top: 1px solid var(--line); }
.assignment-locked { color: var(--muted); }
.assignment-body { padding: 0 16px 8px 28px; }
.assignment-body summary { cursor: pointer; }

.admin-light .outline.module-danger {
  background: #b4232b;
  border-color: #b4232b;
  color: #fff;
}
.admin-light .outline.module-danger:hover { background: #8f1920; border-color: #8f1920; }
.admin-light .module-delete-dialog { width: min(460px, calc(100% - 32px)); padding: 24px; }
.module-delete-dialog h2 { margin-top: 0; }
.module-delete-dialog .admin-actions { justify-content: flex-end; margin-top: 20px; }

.learning-light #dialog { background: #fffdf9; color: var(--ink); border-color: var(--line); max-height: 90dvh; }
.learning-light #dialog input { background: #fffdf9; color: var(--ink); border-color: #b8aa9b; }
.learning-light #dialog .lesson-edit-error { color: #a41e27; font-weight: 700; }

.learning-light .lesson-intro-message {
  width: fit-content;
  max-width: min(100%, 620px);
  padding: 12px 16px;
  margin: 12px 0 16px;
  border-inline-start: 3px solid #347550;
  border-radius: 10px;
  background: #eaf3e9;
  color: #243d2e;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.learning-light .bot-process { margin: 16px 0; }
.bot-process h2 { margin: 0 0 16px; font-size: 20px; }
.bot-process ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: bot-step;
}
.bot-process li { counter-increment: bot-step; }
.bot-process details {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f4f0e7;
  padding: 10px;
}
.bot-process summary { cursor: pointer; font-weight: 700; }
.bot-process summary::before { content: counter(bot-step) ". "; color: #216043; }
.bot-process p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.learning-light .learning-hero .learning-phone-guide {
  display: block;
  width: min(44%, 370px);
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}
.learning-phone-guide img { display: block; width: 100%; height: auto; }
.learning-phone-guide:focus-visible { outline: 2px solid #216043; outline-offset: 4px; }
@media (max-width: 700px) {
  .learning-light .learning-hero .learning-phone-guide { width: min(100%, 370px); margin-inline: auto; }
}

/* Crop the transparent margins in the inline preview; the link opens the full diagram. */
.learning-light .hero.learning-hero {
  justify-content: center;
  gap: clamp(16px, 4vw, 52px);
  padding-block: 14px;
}
.learning-light .learning-hero .learning-phone-guide {
  width: min(55%, 445px);
}
@media (max-width: 700px) {
  .learning-light .learning-hero .learning-phone-guide {
    width: min(100%, 445px);
  }
}

@media (min-width: 901px) {
  .learning-light .learning-hero-copy {
    inset-inline-start: calc(-1 * clamp(28px, 5vw, 80px));
  }
}

.landing-bot-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
}
.landing-demo-copy h2 { margin: 0 0 12px; }
.landing-demo-guide { display: block; width: min(100%, 460px); justify-self: center; }
.landing-demo-guide img { display: block; width: 100%; height: auto; }
.landing-demo-example summary { width: fit-content; cursor: pointer; }
.landing-demo-chat { display: grid; gap: 10px; list-style: none; padding: 0; }
.landing .landing-demo-chat li {
  width: fit-content;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fffdf9;
  color: var(--ink);
  border: 1px solid var(--line);
  line-height: 1.45;
}
.landing .landing-demo-chat .landing-demo-client { justify-self: end; background: #e3f0e6; }
@media (max-width: 700px) {
  .landing-bot-demo { grid-template-columns: minmax(0, 1fr); }
}

.article-page { width: min(100% - 36px, 760px); margin: 32px auto 64px; }
.article-page a { color: #216043; }
.article-body { line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width:700px) { .landing nav a.landing-articles-link { display: inline-block; } }

.learning-light .article-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: min(100% - 36px, 1060px);
  height: auto;
  margin-inline: auto;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.article-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.article-header nav a { color: var(--ink); text-decoration: none; }
.article-header nav a[aria-current="page"] { color: #216043; font-weight: 700; }

.admin-light .student-progress-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 88dvh;
  padding: clamp(16px, 4vw, 28px);
}
.student-progress-dialog .dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.student-progress-dialog h2 { margin: 0; }
.student-progress-body details { border-top: 1px solid var(--line); padding: 12px 0; }
.student-progress-body summary { cursor: pointer; }
.student-progress-body .table-wrap { margin-top: 10px; }
.admin-light .student-delete-button { color: #a6242c; border-color: #c48084; }
.admin-light .student-delete-button:hover { color: #fff; background: #a6242c; border-color: #a6242c; }

.auth-card .auth-actions .outline{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;font-size:16px;line-height:1.4}
@media(max-width:600px){.auth-card .auth-actions{gap:12px}.auth-card .auth-actions .outline{flex:1 1 auto}.auth-card :is(input,select,textarea){font-size:16px}}
