
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:#faf8ff;color:#251c37;font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}
button{font:inherit;cursor:pointer}
a{color:#6238c4}
.header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #e9e3f6;background:white}
.header a{font-weight:800;text-decoration:none;font-size:14px}
.brand{display:flex;gap:12px;align-items:center}.brand b{letter-spacing:.12em;display:block}.brand small{display:block;font-weight:600;color:#695582;font-size:12px}
.logo{border-radius:14px;color:white;background:linear-gradient(135deg,#9561ff,#542aba);font-size:23px;font-weight:900;width:46px;height:46px;display:grid;place-items:center;box-shadow:0 10px 24px #8a62d64a}
.layout{max-width:1520px;width:100%;margin:0 auto;display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;padding:14px 18px 10px;min-height:0;height:100%}
.sidebar{background:#312052;color:white;padding:20px;border-radius:22px;display:flex;flex-direction:column;min-height:0;box-shadow:0 20px 46px #3420551b}
.eyebrow{color:#7443d5;font-weight:900;letter-spacing:.1em;font-size:11px}.sidebar .eyebrow{color:#c3a4ff}
.sidebar h1{font-size:30px;line-height:1.08;margin:12px 0 8px}.sidebar .intro{color:#dbd0ed;font-size:13px;margin:0 0 6px}
.progress-label{display:flex;justify-content:space-between;margin:16px 0 8px;font-size:12px}.track{height:7px;background:#624985;border-radius:50px;overflow:hidden}.track>div{height:100%;background:#ba98ff;width:14%;transition:width .2s}
.steps{display:grid;gap:7px;margin-top:15px;overflow:auto;padding-right:2px}
.stepbtn{background:transparent;border:1px solid transparent;border-radius:12px;color:#eee5fc;text-align:left;display:flex;align-items:center;gap:10px;padding:10px;font-size:12px;font-weight:700;width:100%}
.stepbtn.current{background:#6b40bb;border-color:#a77cee;color:white}.stepbtn:hover{background:#4a326e}.num{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#655082}.current .num{background:white;color:#50289f}
.side-note{background:#ffffff12;border:1px solid #ffffff20;border-radius:14px;margin:14px 0 10px;padding:12px;font-size:12px;line-height:1.55;color:#eee6fc}.reset{margin-top:auto;color:#e5d4ff;background:none;border:0;text-decoration:underline;padding:8px 0 0;text-align:left}
.content{min-width:0;min-height:0;display:grid;grid-template-rows:auto 1fr;gap:10px}
.content-head{padding:2px 4px 0}
.topline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}.pill{font-size:10px;white-space:nowrap;border:1px solid #e5d8fc;border-radius:50px;background:white;padding:6px 10px;color:#7651bd;font-weight:800}
.content h2{font-size:clamp(24px,2.4vw,34px);line-height:1.12;margin:0 0 6px}.lead{max-width:920px;color:#675a77;font-size:14px;margin:0}
.workspace{display:grid;grid-template-columns:minmax(0,1.25fr) 355px;gap:16px;min-height:0}
.image-shell{border:1px solid #e9e0f6;border-radius:18px;box-shadow:0 20px 40px #3e236112;background:white;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.image-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;font-size:12px;font-weight:800;color:#6a537d;border-bottom:1px solid #eee8f7}
.quiet{background:#f6f1ff;color:#56319f;border:0;border-radius:9px;font-weight:800;padding:7px 11px}
.image-stage{flex:1;min-height:0;background:#f8f5fa;display:grid;place-items:center;padding:10px}
.image-canvas{position:relative;display:inline-block;max-width:100%;max-height:100%}
.image-canvas img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:10px}
.cursor-layer{position:absolute;inset:0;pointer-events:none;overflow:visible}
.guide-cursor{position:absolute;left:0;top:0;display:block;width:24px;height:32px;padding:0;border:0;background:transparent;transform:translate(-35%,-12%);pointer-events:auto;filter:drop-shadow(0 4px 7px rgba(81,54,121,.22));transition:left .45s ease,top .45s ease,transform .18s ease}
.guide-cursor:hover,.guide-cursor:focus-visible{transform:translate(-35%,-12%) scale(1.05)}
.guide-cursor:active{transform:translate(-35%,-12%) scale(.94)}
.guide-cursor::after{content:"";position:absolute;inset:-4px;border-radius:999px;box-shadow:0 0 0 1px rgba(111,67,209,.18),0 0 0 8px rgba(255,255,255,.10);opacity:.9;pointer-events:none}
.guide-cursor svg{display:block;width:100%;height:100%}
.info-panel{display:flex;flex-direction:column;gap:12px;min-height:0}
.selection{padding:18px 18px 16px;border:1px solid #e6d9ff;border-radius:18px;background:#fff}.selection-head{display:flex;align-items:center;gap:12px}.selected-number{border-radius:50%;background:#efe7ff;color:#6d3cca;font-weight:900;min-width:34px;height:34px;display:grid;place-items:center}.selection h3{margin:3px 0 0;font-size:21px;line-height:1.15}.selection p{margin:12px 0 15px;color:#5b4f6a;font-size:14px}
.spot-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}.spot-nav span{font-size:12px;color:#7b6c88}
.audio-actions{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-top:14px}.audio-hint{color:#80718c;font-size:12px;max-width:270px;line-height:1.45}
.btn{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;gap:6px;padding:10px 14px;border-radius:11px;font-weight:850;border:1px solid transparent;font-size:13px}.btn.primary{background:#7041d8;color:white;box-shadow:0 8px 18px #7041d823}.btn.outline{background:white;border-color:#dbccef;color:#6238b3}.btn:disabled{opacity:.4;cursor:not-allowed}
.tip{border-radius:15px;background:#f0eaff;padding:14px 16px;color:#40315a}.tip strong{color:#5e34b4}.tip p{margin:5px 0 0;font-size:13px;line-height:1.45}
.footer-nav{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:auto}.footer-nav span{font-size:12px;color:#786b8a}
.done{border-radius:16px;background:#eee7fc;padding:16px}.done h3{margin:0 0 7px}.done p{margin:0 0 10px;font-size:14px}.done[hidden]{display:none}
.site-footer{text-align:center;padding:8px 12px;color:#887b97;font-size:11px}
.lightbox{position:fixed;inset:0;background:#190f26e8;z-index:50;display:grid;place-items:center;padding:55px 20px 25px;overflow:auto}.lightbox[hidden]{display:none}.lightbox img{max-width:100%;max-height:85vh;object-fit:contain}.lightbox button{position:fixed;right:20px;top:15px;border:0;background:white;border-radius:50%;width:40px;height:40px;font-weight:bold}
@media (max-width:1250px){body{overflow:auto}.layout{height:auto;grid-template-columns:280px 1fr}.workspace{grid-template-columns:1fr}.image-stage{min-height:380px}.footer-nav{margin-top:0}}
@media (max-width:980px){body{overflow:auto}.layout{grid-template-columns:1fr;height:auto}.sidebar{order:2}.content{order:1}.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:1fr}.header{padding:0 16px}.site-footer{padding-bottom:18px}}
@media (max-width:650px){.header{height:auto;padding:12px 16px;gap:10px;flex-wrap:wrap}.layout{padding:12px;gap:12px}.sidebar,.selection,.tip,.done{padding-left:15px;padding-right:15px}.steps{grid-template-columns:1fr}.content h2{font-size:26px}.workspace{gap:12px}.image-stage{min-height:260px}.guide-cursor{width:22px;height:29px}.footer-nav .btn{font-size:12px;padding:9px 10px}.audio-hint{max-width:none}}

/* V4: standardize screenshot fit, never crop by intrinsic image dimensions. */
html,body{min-height:0}
body{grid-template-rows:68px minmax(0,1fr) 22px}
.layout{min-height:0;min-width:0;height:100%;overflow:hidden}
.sidebar{overflow:hidden}
.steps{min-height:0;flex:1 1 auto;overflow:auto;align-content:start;margin-top:12px;gap:5px}
.stepbtn{padding:7px 8px;min-height:38px}
.side-note{flex:0 0 auto;margin:10px 0 6px;padding:9px 11px;font-size:11px;line-height:1.4}
.reset{flex:0 0 auto;margin-top:0}
.content,.workspace,.image-shell,.image-stage{min-width:0;min-height:0}
.workspace{grid-template-columns:minmax(0,1fr) minmax(320px,355px)}
.image-stage{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px}
.image-canvas{position:relative;display:block;flex:none;max-width:none;max-height:none;width:1px;height:1px;line-height:0}
.image-canvas img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:8px}
.info-panel{display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-height:0;overflow:hidden;gap:10px}
.selection{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:15px}
.selection h3{font-size:19px}
.selection p{margin:10px 0 12px;font-size:13px}
.spot-nav .quiet{font-size:12px;padding:8px}
.audio-actions{margin-top:10px}
.tip{padding:11px 13px}
.tip p{font-size:12px;line-height:1.35}
.footer-nav{margin-top:0;min-height:39px}
.site-footer{line-height:14px;padding:4px}
@media(max-width:1250px){
 body{display:block;overflow:auto;height:auto;min-height:100vh}
 .layout{display:grid;height:auto;overflow:visible}
 .sidebar,.info-panel,.selection{overflow:visible}
 .workspace{grid-template-columns:minmax(0,1fr)}
 .image-stage{height:min(60vh,580px);min-height:260px}
 .info-panel{display:flex}
 .steps{overflow:visible}
 .side-note{margin-top:12px}
}
@media(max-width:650px){.image-stage{height:min(50vh,390px)}.sidebar{order:2}.content{order:1}}
@media(prefers-reduced-motion:reduce){.guide-cursor{transition:none}}

/* V5: o singură navigare pentru elemente și pagini */
.spot-counter{font-size:12px;color:#7b6c88;font-weight:700;margin:8px 0}
.footer-nav{gap:8px}
.footer-nav .btn{white-space:nowrap}
.footer-nav #stepCounter{font-size:11px;text-align:center}

/* V7: audio automat cu un singur comutator, fără buton de redare */
.audio-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sound-toggle{border:1px solid #dcccf5;border-radius:10px;background:#f4edff;color:#5833a8;padding:9px 12px;font-size:13px;font-weight:800;white-space:nowrap}
.sound-toggle.off{background:#f3f1f5;color:#685f72;border-color:#ded9e4}
.sound-toggle:focus-visible{outline:3px solid #835ad1;outline-offset:2px}
.audio-hint{flex:1;min-width:125px;font-size:11px;line-height:1.35}


/* V10 - biblioteca compactă + mod prezentare fără scroll pe desktop */
[hidden]{display:none!important}
.home-brand{border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer}
body.home-mode{overflow:hidden}
body.home-mode .layout{display:none!important}
body.tutorial-mode #homeView{display:none!important}
body.tutorial-mode .layout{display:grid!important}
.home-view{min-width:0;min-height:0;max-width:1370px;width:100%;margin:auto;padding:18px 26px 14px;display:flex;flex-direction:column;gap:16px;overflow:hidden}
.home-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center;background:linear-gradient(116deg,#f6f0ff 0%,#fbfaff 63%,#eee5ff 100%);border:1px solid #ece4fc;border-radius:23px;padding:22px 34px;min-height:0;flex:0 0 auto}
.home-kicker{font-size:10px;letter-spacing:.14em;font-weight:900;color:#8152ca}
.home-hero h1{font-size:clamp(29px,3vw,43px);line-height:1.08;letter-spacing:-.04em;margin:8px 0 9px;color:#32234e}
.home-hero h1 em{font-style:normal;color:#8152ca}
.home-hero p{max-width:530px;color:#6c607a;font-size:13px;margin:0 0 15px;line-height:1.5}
.home-hero-actions{display:flex;gap:16px;align-items:center}.home-hero-actions>span{font-size:11px;color:#806e90}
.home-feature{height:156px;max-width:420px;justify-self:end;width:100%;position:relative;background:white;border:1px solid #e4d8f5;border-radius:13px;box-shadow:0 15px 35px #57348b16;padding:6px 8px 8px;overflow:visible}
.feature-top{height:21px;display:flex;justify-content:space-between;font-size:10px;color:#846f9c;line-height:20px}
.feature-dots{color:#a48bc6;letter-spacing:3px}
.home-feature img{width:100%;height:calc(100% - 21px);object-fit:cover;object-position:top;border-radius:6px;border:1px solid #f0eaf9}
.feature-label{position:absolute;right:-8px;bottom:-7px;background:#fff;box-shadow:0 7px 24px #5e398424;border:1px solid #eae1f7;border-radius:11px;display:flex;gap:9px;align-items:center;padding:8px 12px}
.feature-label>span{color:#8056c6;font-size:22px}.feature-label strong,.feature-label small{display:block}.feature-label strong{font-size:12px}.feature-label small{font-size:10px;color:#877b94}
.home-modules{min-height:0;display:flex;flex-direction:column;gap:10px;flex:1}
.modules-heading{display:flex;justify-content:space-between;align-items:end}.modules-heading h2{font-size:22px;line-height:1.15;margin:4px 0 0;letter-spacing:-.025em}.modules-count{font-size:11px;font-weight:900;color:#8463b5;background:#f0e9ff;border-radius:100px;padding:6px 11px}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:11px;flex:1;min-height:0}
.module-card{background:#fff;border:1px solid #e8e1f4;border-radius:16px;padding:15px 17px;min-width:0;min-height:0;display:flex;flex-direction:column;gap:5px;align-items:stretch;text-align:left;box-shadow:0 4px 12px #4b2d702b}
button.module-card{cursor:pointer}.module-card.available{border-color:#cdb6f0;background:linear-gradient(130deg,#fff,#faf6ff)}.module-card.available:hover,.module-card.available:focus-visible{border-color:#9156df;box-shadow:0 9px 22px #8053cf25;outline:none}
.module-card.soon{background:#fbfaff}
.module-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.module-icon{display:grid;place-items:center;width:33px;height:33px;background:#efe7ff;color:#7547bb;border-radius:10px;font-weight:800;font-size:21px}
.module-badge{font-size:9px;font-weight:900;letter-spacing:.035em;color:#8b80a0;background:#f0edf5;border-radius:99px;padding:5px 8px}.module-badge.available{background:#e9f6ee;color:#287a51}
.module-card strong{font-size:16px;color:#392653;line-height:1.2}.module-card small{font-size:11px;color:#80748d}.module-bottom{font-size:10px;color:#7b6695;margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding-top:6px}.module-arrow{font-size:20px;color:#7944c3}
.back-modules{display:block;border:1px solid #846bb0;background:#ffffff10;border-radius:9px;color:#fff;text-align:left;font-size:12px;font-weight:800;padding:7px 10px;margin-bottom:12px}
.back-modules:hover{background:#ffffff25}
.tutorial-mode .sidebar h1{font-size:27px;margin-top:8px}
.tutorial-mode .sidebar .intro{font-size:12px}
.tutorial-mode .side-note{font-size:10px}
.tutorial-mode .done{margin-top:0;padding:12px}
.tutorial-mode .done .btn{padding:8px 11px;margin:2px}
/* scroll prevent: dashboard is bounded, images fit both axes from JS; mobile falls back to natural document scroll */
@media(max-width:1250px){
 body.home-mode{display:block;overflow:auto;height:auto;min-height:100vh}
 .home-view{overflow:visible;height:auto;padding:18px}
 .module-grid{grid-template-rows:none;grid-auto-rows:minmax(142px,auto)}
 .home-hero{grid-template-columns:1fr 0.85fr}
}
@media(max-width:850px){
 .home-hero{grid-template-columns:1fr}.home-feature{display:none}
 .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
 .home-view{padding:12px;gap:16px}.home-hero{padding:23px 18px}.module-grid{grid-template-columns:1fr}
 .module-card{min-height:135px}
}
@media(max-height:740px) and (min-width:1251px){
 .home-view{padding:11px 22px 8px;gap:10px}.home-hero{padding:15px 26px}.home-feature{height:130px}
 .module-card{padding:10px 14px}.module-grid{gap:8px}.modules-heading h2{font-size:20px}
 .tutorial-mode .side-note{display:none}
}

/* V11 · Editorial refresh. The library is a normal scrollable webpage, never a clipped slideshow. */
body.home-mode{display:block!important;height:auto!important;min-height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important;background:#fcfaf6;color:#242836}
body.home-mode .header{height:76px;background:#fcfaf6;border-color:#eae6dd;padding:0 clamp(20px,5vw,88px)}
body.home-mode .logo{background:#26374c;box-shadow:none;border-radius:12px}
body.home-mode .brand small{color:#767b85}
body.home-mode .header a{color:#26374c;border:1px solid #d9d8d2;border-radius:9px;padding:10px 14px;font-size:12px;background:white}
.home-view{display:block!important;max-width:1300px;width:100%;min-height:auto!important;height:auto!important;margin:0 auto;padding:44px clamp(20px,4.2vw,58px) 64px!important;overflow:visible!important;flex:none!important;gap:0!important}
.home-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px;align-items:center;overflow:hidden;background:#eef3f0;border:1px solid #e2e9e3;border-radius:22px;padding:clamp(30px,5vw,62px)!important;min-height:310px;margin:0 0 46px!important;box-shadow:none}
.home-hero::before{content:"";position:absolute;right:-110px;top:-125px;border:1px solid #a8beb4;border-radius:50%;width:440px;height:440px;opacity:.45;pointer-events:none}
.home-hero::after{content:"";position:absolute;right:-55px;top:-65px;border:1px solid #a8beb4;border-radius:50%;width:320px;height:320px;opacity:.45;pointer-events:none}
.home-hero-copy{z-index:1;position:relative}
.home-kicker{color:#536c65;font-size:11px;letter-spacing:.14em;font-weight:850}
.little-mark{color:#d26d4e;font-size:18px;vertical-align:-1px;margin-right:4px}
.home-hero h1{font-size:clamp(37px,4.45vw,66px);line-height:1.05;letter-spacing:-.058em;margin:20px 0;color:#203344;font-weight:850}
.home-hero h1 em{font-style:normal;color:#d26d4e}
.home-hero p{font-size:16px;line-height:1.7;max-width:600px;color:#52616b;margin:0 0 27px}
.home-hero-actions{flex-wrap:wrap;gap:18px}
.home-hero-actions .btn.primary{background:#24394c;color:white;border-radius:11px;padding:14px 19px;font-size:14px;box-shadow:none}
.home-hero-actions>span{color:#687771;font-size:12px}
.hero-type{position:relative;z-index:1;justify-self:center;display:flex;flex-direction:column;transform:rotate(-6deg);font-weight:900;font-size:clamp(33px,3vw,46px);letter-spacing:-.065em;line-height:1.1;color:#537769;opacity:.9}
.hero-type span:nth-child(2){margin-left:34px;color:#243b4f}.hero-type span:nth-child(3){margin-left:10px;color:#d26d4e}.hero-type .asterisk{font-size:22px;vertical-align:top;margin-left:6px;color:#243b4f}
.home-modules{display:block!important;flex:none!important;min-height:auto!important;overflow:visible!important}
.modules-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:24px}
.modules-heading h2{color:#233344;font-size:clamp(27px,3vw,38px);letter-spacing:-.045em;margin:8px 0 6px}
.modules-heading p{font-size:14px;color:#77808b;margin:0}
.modules-count{background:#eeeae3;color:#5e6570;border-radius:7px;padding:8px 12px}
.module-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(205px,auto)!important;gap:18px!important;min-height:auto!important;flex:none!important}
.module-card{position:relative;min-height:205px!important;display:flex;flex-direction:column;gap:10px;padding:24px!important;border:1px solid #e9e6df;border-radius:17px;background:white;box-shadow:0 3px 9px rgba(38,43,50,.025);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.module-card strong{font-size:20px;color:#223244;letter-spacing:-.025em;line-height:1.2}
.module-card small{font-size:13px;line-height:1.4;color:#697682}
.module-top{margin-bottom:9px}
.module-icon{background:#f1f3ed!important;color:#466657!important;border-radius:10px;width:43px;height:43px;font:800 15px/1 system-ui;display:grid;place-items:center}
.module-card:nth-child(2) .module-icon{background:#fbefe7!important;color:#bf704b!important}
.module-card:nth-child(3) .module-icon{background:#edf1f8!important;color:#4f719e!important}
.module-card:nth-child(4) .module-icon{background:#f4f0ed!important;color:#907363!important}
.module-card:nth-child(5) .module-icon{background:#f0eff8!important;color:#7965a0!important}
.module-card:nth-child(6) .module-icon{background:#edf3f3!important;color:#4d7881!important}
.module-card.available{background:#fff!important;border-color:#bfcfc5!important;box-shadow:0 9px 25px rgba(30,55,51,.06)}
.module-card.available:hover,.module-card.available:focus-visible{transform:translateY(-3px);box-shadow:0 15px 26px rgba(30,55,51,.11);border-color:#5a8b78;outline:none}
.module-card.soon{background:#fff;opacity:.79}
.module-badge{font-size:10px;background:#f2f1ed;color:#737780}.module-badge.available{background:#e6f3e8;color:#32694d}
.module-bottom{font-size:11px;color:#74817d;margin-top:auto;border-top:1px solid #f0eee9;padding-top:13px}
.module-arrow{color:#d26d4e;font-size:24px}
body.home-mode .site-footer{background:#fcfaf6;color:#858a90;padding:14px 18px 28px}
/* The tutorial itself keeps its own media workspace. Allow safe document scroll if the viewport is too short. */
body.tutorial-mode{background:#faf9fc}
@media(max-width:1100px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-hero{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:760px){.home-hero{grid-template-columns:1fr!important;padding:32px 24px!important}.hero-type{display:none}.home-view{padding:22px 16px 36px!important}.home-hero{margin-bottom:32px!important}.modules-heading{align-items:start}.modules-count{white-space:nowrap}}
@media(max-width:570px){.module-grid{grid-template-columns:1fr!important;grid-auto-rows:minmax(160px,auto)!important}.module-card{min-height:170px!important}.home-hero h1{font-size:38px}.home-hero p{font-size:14px}.modules-heading h2{font-size:27px}}
@media(max-height:740px) and (min-width:1251px){body.tutorial-mode{display:block;overflow-y:auto;height:auto;min-height:100vh}body.tutorial-mode .layout{height:auto;min-height:690px}body.tutorial-mode .image-stage{height:500px}body.tutorial-mode .sidebar{overflow:visible}body.tutorial-mode .steps{overflow:visible}body.tutorial-mode .selection{overflow:visible}}
@media(prefers-reduced-motion:reduce){.module-card{transition:none}}


/* V12 · ANCHA premium identity · HOME ONLY; tutorial V9 behavior and colors unchanged */
body.home-mode{background:#fbfaff!important;color:#281a40!important}
body.home-mode .header{height:70px!important;background:#ffffff!important;border-bottom:1px solid #eee9f8!important;padding:0 clamp(18px,4vw,64px)!important}
body.home-mode .logo{background:linear-gradient(145deg,#9f77ed,#58309f)!important;color:white!important;box-shadow:0 6px 15px #5a329c20!important;border-radius:12px!important}
body.home-mode .brand small{color:#826b9c!important}
body.home-mode .header a{color:#56338d!important;background:#fff!important;border:1px solid #e6dcf6!important;padding:9px 13px!important;box-shadow:none!important}
body.home-mode .header a:hover{border-color:#b79be4!important;background:#f8f4ff!important}
.home-view{max-width:1280px!important;padding:26px clamp(20px,4vw,56px) 48px!important}
.home-hero{min-height:275px!important;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)!important;gap:24px!important;align-items:center!important;margin-bottom:34px!important;padding:clamp(30px,3.9vw,52px)!important;border-radius:23px!important;border:1px solid #35204e!important;box-shadow:0 18px 45px #3019561b!important;background:radial-gradient(ellipse at 100% 0%,#5a3b8b 0%,transparent 47%),linear-gradient(118deg,#2d1a4d,#432867 69%,#4e2f7a)!important;color:white!important}
.home-hero::before{width:490px!important;height:490px!important;border-color:#cdb0ff!important;opacity:.10!important;right:-150px!important;top:-175px!important}
.home-hero::after{width:360px!important;height:360px!important;border-color:#d5c0f8!important;opacity:.10!important;right:-105px!important;top:-105px!important}
.home-hero .home-kicker{color:#d4b9ff!important;font-size:10px!important;letter-spacing:.18em!important}
.home-hero .little-mark{color:#dec9ff}
.home-hero h1{color:#fff!important;font-size:clamp(40px,4.5vw,62px)!important;font-weight:780!important;letter-spacing:-.055em!important;margin:16px 0 17px!important;line-height:1.04!important}
.home-hero h1 em{font-style:normal!important;color:#d7bcff!important}
.home-hero p{font-size:15px!important;line-height:1.6!important;color:#e5d9f1!important;max-width:555px!important;margin:0 0 23px!important}
.home-hero-actions .btn.primary{background:#fff!important;color:#452572!important;border:1px solid white!important;box-shadow:0 8px 18px #1d0c3733!important;font-weight:800!important;padding:12px 18px!important}
.home-hero-actions .btn.primary:hover{background:#f4ebff!important}
.home-hero-actions>span{color:#d8c5ed!important;font-size:12px!important}
.hero-guide{position:relative;z-index:1;border:1px solid #ffffff30;background:#ffffff12;backdrop-filter:blur(5px);border-radius:17px;padding:19px;box-shadow:0 10px 30px #180d2830;transform:rotate(2deg)}
.hero-guide-top{display:flex;justify-content:space-between;color:#e3d0fb;font-size:10px;font-weight:800;letter-spacing:.12em;border-bottom:1px solid #ffffff27;padding-bottom:12px;margin-bottom:8px}
.hero-guide-line{display:flex;align-items:center;gap:10px;color:#fff;font-size:12px;font-weight:650;padding:9px 0}
.hero-guide-dot{width:8px;height:8px;flex:none;background:#d4b7ff;border-radius:50%;box-shadow:0 0 0 4px #d4b7ff22}
.hero-guide-dot.muted{background:transparent;border:1px solid #d4b7ff}
.hero-guide-check,.hero-guide-last{margin-left:auto;color:#e2cfff;font-size:14px}
.hero-guide-bottom{color:#bfa8e2;font-size:8px;font-weight:800;letter-spacing:.13em;margin-top:9px;border-top:1px solid #ffffff27;padding-top:12px}
.home-modules{margin:0!important}
.modules-heading{margin-bottom:17px!important;align-items:end!important}
.modules-heading .home-kicker{color:#7545bd!important}
.modules-heading h2{color:#32204f!important;font-size:clamp(27px,3vw,35px)!important;letter-spacing:-.04em!important}
.modules-heading p{color:#796a8c!important;font-size:13px!important}
.modules-count{background:#f0e9fa!important;color:#68409f!important;border:1px solid #e6d7f8!important;font-size:10px!important;letter-spacing:.08em!important;border-radius:8px!important}
.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(185px,auto)!important;gap:14px!important}
.module-card{padding:22px!important;min-height:185px!important;gap:8px!important;border:1px solid #e7e0f1!important;border-radius:17px!important;background:white!important;box-shadow:0 4px 14px #37204f0a!important}
.module-card strong{font-size:18px!important;letter-spacing:-.027em!important;color:#32204f!important}
.module-card small{font-size:12px!important;color:#81718f!important}
.module-top{margin-bottom:7px!important}
.module-icon,.module-card:nth-child(n) .module-icon{width:39px!important;height:39px!important;background:#f0e9fb!important;color:#6e41aa!important;font-size:13px!important;border-radius:10px!important;font-weight:850!important}
.module-badge{font-size:9px!important;letter-spacing:.055em!important;background:#f4f1f8!important;color:#8b7b9f!important;border-radius:99px!important;padding:6px 8px!important}
.module-badge.available{color:#6134a0!important;background:#efe5ff!important}
.module-card.available{background:linear-gradient(140deg,#fff 60%,#f9f5ff)!important;border-color:#ba9be6!important;box-shadow:0 10px 27px #54327d16!important}
.module-card.available:hover,.module-card.available:focus-visible{transform:translateY(-3px)!important;box-shadow:0 16px 32px #54327d26!important;border-color:#8d57cb!important}
.module-card.soon{opacity:1!important;background:#fff!important}
.module-card.soon strong{color:#4f4062!important}
.module-bottom{color:#837193!important;border-top:1px solid #efe9f7!important;padding-top:11px!important;font-size:11px!important}
.module-arrow{color:#7344b3!important}
body.home-mode .site-footer{background:#fbfaff!important;color:#a092b0!important;padding:12px 16px 22px!important}
@media(max-width:1080px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-hero{grid-template-columns:minmax(0,1fr) 235px!important}.hero-guide{padding:14px!important}}
@media(max-width:740px){.home-hero{grid-template-columns:1fr!important;min-height:0!important;padding:28px 22px!important}.hero-guide{display:none!important}.home-view{padding:20px 15px 36px!important}.module-grid{grid-template-columns:1fr!important}.home-hero h1{font-size:40px!important}.home-hero-actions{align-items:start!important}.module-card{min-height:150px!important}.modules-heading{align-items:flex-start!important}}
@media(prefers-reduced-motion:reduce){.module-card{transition:none!important}}

/* V13 — presentation workspace: no document scrolling on desktop.
   Home library retains normal scrolling; very small/mobile screens remain accessible. */
@media (min-width:900px) and (min-height:650px) {
  html:has(body.tutorial-mode){height:100%;overflow:hidden}
  body.tutorial-mode {
    display:grid!important;
    grid-template-rows:68px minmax(0,1fr) 22px!important;
    height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.tutorial-mode .layout {
    display:grid!important;
    grid-template-columns:clamp(218px,20vw,300px) minmax(0,1fr)!important;
    width:100%;height:100%!important;min-height:0!important;
    max-width:1520px;overflow:hidden!important;
    gap:clamp(10px,1.3vw,18px);
    padding:10px 12px 8px;
  }
  body.tutorial-mode .sidebar {
    min-width:0;min-height:0;overflow:auto!important;scrollbar-width:thin;
    padding:clamp(10px,1.25vw,17px);
  }
  body.tutorial-mode .sidebar h1 {font-size:clamp(21px,2vw,27px);margin:8px 0}
  body.tutorial-mode .sidebar .intro {font-size:11px;line-height:1.3}
  body.tutorial-mode .progress-label {margin:10px 0 6px}
  body.tutorial-mode .steps {overflow:visible!important;gap:3px;margin-top:10px;flex:0 0 auto;min-height:0;padding-right:2px}
  body.tutorial-mode .stepbtn {padding:5px 7px;min-height:29px;font-size:11px;gap:7px}
  body.tutorial-mode .num {width:21px;height:21px;font-size:11px}
  body.tutorial-mode .side-note {display:none}
  body.tutorial-mode .reset {font-size:11px;padding-top:5px}
  body.tutorial-mode .content {min-height:0!important;min-width:0;grid-template-rows:auto minmax(0,1fr);gap:8px}
  body.tutorial-mode .content-head {padding:0 2px}
  body.tutorial-mode .content h2 {font-size:clamp(22px,2.2vw,30px);margin:0 0 3px}
  body.tutorial-mode .lead {font-size:12px;line-height:1.34}
  body.tutorial-mode .workspace {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) clamp(290px,25vw,355px)!important;
    min-width:0;min-height:0!important;height:100%!important;gap:10px;
  }
  body.tutorial-mode .image-shell {min-height:0!important;min-width:0;overflow:hidden}
  body.tutorial-mode .image-stage {height:auto!important;min-height:0!important;flex:1 1 auto;padding:8px;overflow:hidden}
  body.tutorial-mode .info-panel {
    display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;
    min-height:0!important;overflow:hidden!important;gap:7px;
  }
  body.tutorial-mode .selection {min-height:0;overflow:auto;scrollbar-width:thin;padding:12px}
  body.tutorial-mode .selection h3 {font-size:17px}
  body.tutorial-mode .selection p {font-size:12px;margin:8px 0}
  body.tutorial-mode .tip {padding:9px 11px}
  body.tutorial-mode .tip p {font-size:11px;line-height:1.3}
  body.tutorial-mode .footer-nav {min-height:35px;margin:0}
  body.tutorial-mode .footer-nav .btn {padding:7px 10px;font-size:12px}
  body.tutorial-mode .site-footer {padding:3px}
}
/* Narrow windows and shorter displays: allow natural document scroll instead of clipping controls. */
@media (max-width:899px), (max-height:649px) {
  body.tutorial-mode {display:block!important;height:auto!important;min-height:100vh!important;overflow-y:auto!important}
  body.tutorial-mode .layout {height:auto!important;min-height:0!important;overflow:visible!important;grid-template-columns:1fr!important}
  body.tutorial-mode .sidebar {overflow:visible!important;order:2}
  body.tutorial-mode .content {order:1}
  body.tutorial-mode .workspace {grid-template-columns:1fr!important;height:auto!important}
  body.tutorial-mode .image-stage {min-height:250px;height:min(58vh,540px)!important}
  body.tutorial-mode .info-panel {display:flex!important;overflow:visible!important}
  body.tutorial-mode .selection {overflow:visible!important}
  body.tutorial-mode .steps {overflow:visible!important}
}

/* V16 — two modules share a compact presentation, no scroll in desktop tutorial. */
body.tutorial-mode .phasebtn{min-height:41px!important;padding:9px 8px!important}
body.tutorial-mode #steps{align-content:start}
body.tutorial-mode .module-card.available{cursor:pointer}
@media (min-width:900px) and (min-height:650px){body.tutorial-mode .phasebtn{min-height:42px!important}}


/* V23 — home dashboard: six modules beside the introduction, no desktop page scroll. */
@media (min-width: 900px) and (min-height: 620px) {
  html:has(body.home-mode) {height:100%;overflow:hidden}
  body.home-mode {display:grid!important;grid-template-rows:70px minmax(0,1fr) 24px!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
  body.home-mode .home-view {width:100%!important;max-width:1580px!important;min-height:0!important;height:100%!important;overflow:hidden!important;margin:0 auto!important;padding:clamp(12px,1.5vw,22px)!important;display:block!important}
  body.home-mode .home-dashboard {display:grid;grid-template-columns:clamp(285px,27vw,380px) minmax(0,1fr);gap:clamp(12px,1.6vw,24px);height:100%;min-height:0;align-items:stretch}
  body.home-mode .home-hero {display:flex!important;flex-direction:column;justify-content:space-between;align-items:stretch!important;grid-template-columns:none!important;min-height:0!important;height:100%;margin:0!important;padding:clamp(22px,2.5vw,36px)!important;gap:18px!important}
  body.home-mode .home-hero h1 {font-size:clamp(32px,3.1vw,46px)!important;line-height:1.07!important;margin:15px 0 14px!important}
  body.home-mode .home-hero p {font-size:clamp(12px,1.04vw,14px)!important;line-height:1.55!important;margin:0 0 18px!important}
  body.home-mode .home-hero-actions {display:flex;flex-direction:column;align-items:flex-start!important;gap:10px!important}
  body.home-mode .home-hero-actions .btn.primary {padding:11px 14px!important;font-size:12px!important}
  body.home-mode .hero-guide {display:block!important;transform:none!important;padding:13px!important;margin-top:auto!important}
  body.home-mode .hero-guide-line {font-size:11px!important;padding:6px 0!important}
  body.home-mode .home-modules {margin:0!important;min-height:0!important;height:100%;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:12px!important}
  body.home-mode .modules-heading {display:flex!important;flex:0 0 auto;margin:0!important;align-items:flex-end!important;gap:8px!important}
  body.home-mode .modules-heading h2 {font-size:clamp(23px,2.3vw,31px)!important;margin:3px 0 2px!important}
  body.home-mode .modules-heading p {font-size:11px!important;margin:0!important}
  body.home-mode .modules-count {font-size:9px!important;white-space:nowrap;flex:none}
  body.home-mode .module-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;grid-auto-rows:unset!important;flex:1 1 auto;min-height:0!important;gap:clamp(9px,1vw,14px)!important}
  body.home-mode .module-card {min-height:0!important;height:100%!important;overflow:hidden!important;padding:clamp(12px,1.2vw,19px)!important;gap:clamp(5px,.65vw,9px)!important}
  body.home-mode .module-icon {width:34px!important;height:34px!important;font-size:12px!important}
  body.home-mode .module-card strong {font-size:clamp(14px,1.3vw,18px)!important;line-height:1.2!important}
  body.home-mode .module-card small {font-size:clamp(10px,.9vw,12px)!important;line-height:1.3!important}
  body.home-mode .module-top {margin-bottom:2px!important}
  body.home-mode .module-badge {font-size:8px!important;padding:5px 7px!important}
  body.home-mode .module-bottom {padding-top:7px!important;font-size:10px!important;line-height:1.2!important}
  body.home-mode .site-footer {padding:3px 12px!important;line-height:16px!important}
}
@media (min-width:900px) and (max-width:1180px) and (min-height:620px){
 body.home-mode .home-dashboard {grid-template-columns:270px minmax(0,1fr)}
 body.home-mode .module-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important}
 body.home-mode .modules-count {display:none}
}
@media (max-width:899px), (max-height:619px) {
 body.home-mode {display:block!important;height:auto!important;min-height:100vh!important;overflow-y:auto!important}
 body.home-mode .home-view {height:auto!important;min-height:0!important;overflow:visible!important}
 body.home-mode .home-dashboard {display:flex;flex-direction:column;gap:22px}
 body.home-mode .home-hero {margin:0!important}
}


/* V24 · home sidebar refinements */
body.home-mode .home-hero {padding:clamp(20px,2.2vw,30px)!important;gap:14px!important}
body.home-mode .home-hero-copy {display:flex;flex-direction:column;gap:0;min-height:0}
body.home-mode .home-hero h1 {font-size:clamp(30px,2.95vw,44px)!important;line-height:1.06!important;margin:12px 0 12px!important}
body.home-mode .home-hero p {font-size:clamp(12px,1vw,14px)!important;line-height:1.5!important;margin:0 0 12px!important}
body.home-mode .home-hero-actions.compact {display:block!important;margin:0 0 8px!important}
body.home-mode .home-hero-actions.compact > span {display:inline-flex;align-items:center;gap:8px;color:#d8c5ed!important;font-size:12px!important;font-weight:700}
body.home-mode .hero-guide {display:block!important;transform:none!important;padding:12px!important 13px!important;margin-top:auto!important;border-radius:16px!important}
body.home-mode .hero-guide-top {padding-bottom:10px!important;margin-bottom:6px!important}
body.home-mode .hero-guide-line {font-size:11px!important;padding:5px 0!important;gap:8px!important}
body.home-mode .hero-guide-bottom {font-size:7px!important;padding-top:10px!important;margin-top:7px!important}
@media (min-width: 1200px){body.home-mode .home-dashboard{grid-template-columns:clamp(285px,26vw,360px) minmax(0,1fr)}}

/* V24.5 — navigation grouped by chapters, full steps remain in the tutorial */
body.tutorial-mode .steps .phasebtn{display:flex;align-items:center;gap:7px;text-align:left;}
body.tutorial-mode .steps .phase-label{flex:1;min-width:0;}
body.tutorial-mode .steps .phase-count{font-size:9px;opacity:.72;white-space:nowrap;}
@media(max-width:650px){body.tutorial-mode .steps .phasebtn{min-height:38px;}}
