:root{color-scheme:dark;--bg:#101816;--panel:#18231f;--panel-2:#1c2924;--line:#2b3932;--text:#f2f5ef;--muted:#93a59a;--green:#b5ef69;--green-deep:#21a038;--yellow:#e3c97d;--red:#efaaa1;--sidebar:234px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.22;letter-spacing:-.035em}h1{font-size:clamp(28px,2.6vw,38px);font-weight:650}h2{font-size:22px;font-weight:620}h3{font-size:16px;font-weight:600;letter-spacing:-.02em}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button .icon{pointer-events:none}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.amber{color:var(--yellow)!important}.muted{color:var(--muted)}.fine{font-size:11px;color:var(--muted);line-height:1.65}.centered{text-align:center}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:650;color:var(--muted);display:block;margin-bottom:8px}.app-shell{max-width:1900px;margin:auto}.sidebar{position:fixed;inset:0 auto 0 max(0px,calc((100vw - 1900px)/2));width:var(--sidebar);background:#121d18;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:32px 22px;z-index:20}.brand{display:flex;gap:10px;align-items:center;margin-bottom:58px;font-weight:750;font-size:23px;letter-spacing:-1px;line-height:1.1}.brand small{display:block;font-size:7px;letter-spacing:1.3px;color:var(--muted);margin-top:9px;font-weight:550}.brand-light{font-weight:400;color:#cbd8ce;margin-left:4px}.brand-mark{height:35px;width:35px;flex-shrink:0;border:2px solid var(--green);border-radius:50%;display:grid;place-items:center;color:var(--green);transform:rotate(-10deg)}.brand-mark .icon{width:25px;height:25px;stroke-width:2.4}.side-caption{font-size:9px;letter-spacing:1.35px;color:#708579;font-weight:650;margin:0 8px 15px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;color:#a5b6ab;padding:14px 15px;border-radius:10px;text-align:left;margin-bottom:7px;font-weight:530}.nav-item.active{background:#243825;color:var(--green)}.nav-item:hover{background:#233026}.nav-item .icon{width:19px}.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--green);margin-left:auto}.nav-count{margin-left:auto;border-radius:5px;min-width:21px;height:21px;background:#364a2a;color:var(--green);text-align:center;font-size:11px;padding:1px}.side-story{margin-top:48px;padding:0 8px}.side-story .side-caption{margin-left:0}.side-story h3{font-size:17px;color:#c1d0c4;line-height:1.45;letter-spacing:-.03em}.chapter-dots{display:flex;align-items:center;gap:19px;margin:21px 0 9px}.chapter-dots>span{position:relative;border:1px solid #3a493b;border-radius:50%;height:28px;width:28px;display:grid;place-items:center;font-size:11px;color:#7e9182}.chapter-dots>span:not(:last-child):after{content:'';position:absolute;left:27px;width:19px;height:1px;background:#3a493b}.chapter-dots>span.current{color:var(--green);border-color:var(--green)}.chapter-dots>span.done{background:var(--green);color:#172b12}.chapter-dots .icon{width:14px}.side-story p{font-size:11px;color:var(--muted)}.sidebar-bottom{margin-top:auto;padding-top:35px}.sidebar-bottom .nav-item{font-size:12px;padding-left:8px}.prototype{display:flex;align-items:center;gap:6px;font-size:9px;color:#779282;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.prototype i{width:5px;height:5px;background:#78b47d;border-radius:50%}.prototype span{margin-left:auto;font-family:monospace}.workspace{margin-left:var(--sidebar)}.topbar{height:82px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb b{color:#d9e2d8;font-weight:500}.breadcrumb span{margin:0 12px;color:#516b58}.top-actions{display:flex;align-items:center;gap:18px}.save-status{border:0;background:transparent;display:flex;align-items:center;gap:6px;color:#869e8c;font-size:10px}.save-status .icon{width:13px;height:13px}.icon-button{border:1px solid var(--line);background:#1c2a21;width:36px;height:36px;border-radius:10px;display:grid;place-items:center}.icon-button:hover{background:#2b3b2e}.icon-button .icon{width:17px;height:17px}.profile-mini{border:1px solid #658a5a;background:#365b3d;color:#ddf9c8;width:34px;height:34px;border-radius:50%;font-size:13px}.mobile-brand{display:none}main{max-width:1450px;margin:auto;padding:26px 40px 0}.resource-strip{display:flex;align-items:center;gap:0;margin-bottom:35px;padding-bottom:24px;border-bottom:1px solid var(--line)}.resource{border:0;background:none;display:flex;align-items:center;gap:12px;min-width:200px;text-align:left;padding:0 25px;margin-right:25px;border-right:1px solid var(--line)}.resource:first-child{padding-left:0}.resource:last-child{border:0;margin-right:0}.resource-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center}.green{color:var(--green);background:#273a25}.yellow{color:var(--yellow);background:#353321}.purple{color:#bfb0ec;background:#302c3f}.resource small{display:block;font-size:10px;color:var(--muted);margin-bottom:1px}.resource strong{font-size:20px;letter-spacing:-.035em;font-weight:600;display:block;line-height:1.4}.resource strong em{font-size:11px;color:var(--muted);font-style:normal}.tiny-plus{width:19px;height:19px;display:grid;place-items:center;font-size:15px;border-radius:6px;background:#2c3b2d;color:var(--green);margin-left:10px}.mini-progress{height:3px;display:block;width:105px;background:#313b3a;margin-top:3px;border-radius:5px;overflow:hidden}.mini-progress i{background:#b7a6df;height:100%;display:block}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px}.page-heading p{margin-top:11px;color:var(--muted);font-size:13px;max-width:650px}.btn{border:1px solid transparent;border-radius:9px;display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:12px 17px;font-size:12px;font-weight:650;line-height:1.45;transition:background .15s,transform .15s;min-height:42px}.btn:active:not(:disabled){transform:translateY(1px)}.btn .icon{width:16px;height:16px}.primary{background:var(--green);color:#1c2b13}.primary:hover:not(:disabled){background:#c5fb83}.secondary{background:#27372c;border-color:#40523e;color:#d0e4c5}.secondary:hover:not(:disabled){background:#354a33}.ghost{background:transparent;border-color:#34463a;color:#b3c7b7}.ghost:hover:not(:disabled){background:#243127}.text{background:transparent;color:var(--green);padding-left:0;padding-right:0;text-align:left;justify-content:flex-start;border:0;min-height:38px}.danger{background:#432b27;color:#f3b6ac;border-color:#69453d}.small{font-size:11px;min-height:36px;padding:9px 13px}.wide{width:100%}.button-row{display:flex;gap:10px;flex-wrap:wrap}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 8px;background:#293d26;color:var(--green);font-size:9px;font-weight:700;letter-spacing:.065em;white-space:normal;line-height:1.4}.badge.neutral{background:#29352d;color:#aebdaf}.badge.warning{background:#433d26;color:var(--yellow)}.hero{border:1px solid #35533c;background:linear-gradient(110deg,#233c2b 0%,#1b3527 58%,#183425 100%);border-radius:16px;position:relative;display:flex;overflow:hidden;margin-bottom:32px;min-height:245px}.hero-copy{padding:29px 31px;position:relative;z-index:2;width:62%}.hero-badge{background:transparent;color:#b7cfa9;padding:0;font-size:8px;letter-spacing:.12em}.hero h2{font-size:30px;font-weight:550;letter-spacing:-.04em;line-height:1.2;margin:14px 0 12px}.hero p{font-size:12px;color:#a5b9a6;line-height:1.65}.hero-chapters{display:flex;gap:20px;font-size:9px;color:#9fbb9b;margin-top:25px}.hero-chapters>span{display:flex;gap:5px;align-items:center}.hero-chapters .icon{width:12px;height:12px;color:var(--green)}.workspace-art{position:absolute;right:3%;top:0;height:100%;width:37%;perspective:600px}.monitor{background:#12291d;border:5px solid #7e9970;border-radius:11px;position:absolute;width:228px;height:152px;top:41px;right:26px;transform:rotate(-7deg) rotateY(-16deg);box-shadow:10px 14px 0 #0c251bb5,0 0 50px #a2eb7240}.monitor-bar{height:24px;display:flex;align-items:center;padding:0 9px;gap:4px;background:#2d4230;border-bottom:1px solid #567149}.monitor-bar i{height:4px;width:4px;border-radius:50%;background:#a9c791}.monitor-bar span{font-family:monospace;font-size:7px;color:#a9be9f;margin-left:13px}.code-lines{font-family:monospace;padding:15px 14px;font-size:9px;color:#cde1c2;line-height:1.9}.code-lines span{display:block;white-space:pre}.code-lines em{color:#bba9dd;font-style:normal}.code-lines strong{color:var(--green);font-weight:500}.code-lines .faint{color:#718e6c}.monitor-foot{position:absolute;top:147px;left:90px;width:33px;height:24px;background:#64865b;transform:skewX(-8deg)}.monitor-foot:after{content:'';position:absolute;bottom:-5px;left:-23px;width:85px;height:10px;border-radius:50%;background:#7fa36c}.art-orbit{position:absolute;right:0;top:30px;width:290px;height:215px;border:1px solid #426543;border-radius:50%;transform:rotate(-20deg)}.orbit-b{transform:rotate(25deg);width:320px;right:-18px;top:5px;height:260px;border-style:dashed;opacity:.3}.art-chip{position:absolute;display:flex;align-items:center;gap:6px;border:1px solid #486f45;z-index:3;box-shadow:0 8px 20px #0b281955;backdrop-filter:blur(8px);font-size:9px;color:#c3e5af;background:#223d2de6;border-radius:7px}.chip-a{padding:7px 10px;right:7px;top:24px;transform:rotate(6deg)}.chip-a .icon{color:var(--green)}.chip-b{padding:8px 10px;right:4px;bottom:35px;transform:rotate(4deg);font-family:monospace}.chip-b .icon{width:14px;height:14px;color:var(--green)}.art-disc{position:absolute;width:275px;height:30px;bottom:29px;right:-3px;background:#0b211b70;border-radius:50%;z-index:-1}.art-plant{position:absolute;left:-13px;bottom:53px;width:44px;height:60px}.art-plant i{position:absolute;height:42px;width:16px;background:#8dc458;border-radius:90% 0;transform:rotate(-40deg);top:1px;left:5px}.art-plant i:nth-child(2){transform:rotate(15deg);left:22px;top:6px;background:#608c4d}.art-plant i:nth-child(3){transform:rotate(-8deg);left:17px;top:-10px;background:#a3d06c}.art-plant b{position:absolute;bottom:0;width:34px;height:25px;left:5px;background:linear-gradient(90deg,#bcbd94,#7d986b);border-radius:2px 2px 12px 12px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px;align-items:start}.content-grid>section,.content-grid>aside{min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.section-heading h2{font-size:19px}.section-heading>.icon{color:var(--muted);width:18px}.counter{background:#26342a;color:#a0b197;border-radius:5px;font-size:10px;vertical-align:middle;padding:3px 7px;margin-left:5px;font-weight:500}.segmented{display:flex;padding:3px;border-radius:8px;border:1px solid #2a3a30;background:#17221b}.segmented button{border:0;background:none;padding:6px 10px;color:#8b9d8e;border-radius:5px;font-size:10px;white-space:nowrap;min-height:29px}.segmented button.active{background:#32432e;color:#d7e9c9}.order-list{display:grid;gap:15px}.order-card{padding:23px 23px 0;border:1px solid var(--line);border-radius:13px;background:var(--panel);transition:border-color .2s}.order-card:hover{border-color:#536e48}.order-card.featured{border-color:#506941;background:linear-gradient(120deg,#202e22,#19271e)}.order-top{display:flex;gap:13px;align-items:center}.order-symbol{height:41px;width:41px;display:grid;place-items:center;border-radius:11px;flex-shrink:0}.mint{background:#32533d;color:#c0eeb3}.slate{background:#2c3635;color:#b6c2bd}.order-label{font-size:8px;letter-spacing:.11em;color:#91b275;font-weight:650;margin-bottom:5px}.order-top h3{font-size:19px;letter-spacing:-.03em}.star-small{font-size:23px;color:#99be77;margin-left:auto}.order-description{font-size:12px;color:#a3b2a5;line-height:1.7;margin:16px 0 13px}.tag-list{display:flex;flex-wrap:wrap;gap:5px}.tag-list>span{font-size:9px;color:#aabdaf;background:#22332b;border:1px solid #34463b;border-radius:5px;padding:3px 7px;line-height:1.4}.order-meta{display:flex;align-items:center;gap:23px;margin:20px 0;color:#adbdad;font-size:11px}.order-meta span{display:flex;align-items:center;gap:6px}.order-meta .icon{width:14px;height:14px;color:#879c81}.order-meta b{font-size:16px;color:#e4eed9;font-weight:600;letter-spacing:-.02em}.order-bottom{border-top:1px solid #30402f;display:flex;justify-content:space-between;align-items:center;padding:15px 0;gap:10px}.order-bottom>span{display:flex;gap:6px;align-items:center;font-size:9px;color:#819480}.order-bottom>span .icon{width:12px;height:12px}.right-column{display:grid;gap:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:22px}.career-card{padding:20px}.career-card>.section-heading h3{font-size:14px}.career-card>.section-heading{margin-bottom:22px}.career-level{display:flex;align-items:center;gap:11px;margin-bottom:20px}.career-level h3{font-size:12px;line-height:1.4;letter-spacing:-.01em}.career-level p{color:var(--muted);font-size:10px;margin-top:4px}.avatar{height:43px;width:43px;display:grid;place-items:center;border-radius:12px;flex-shrink:0;font-weight:550;font-size:15px;position:relative;border:1px solid #ffffff1c}.avatar:before{content:'';position:absolute;inset:5px;border:1px solid #ffffff0f;border-radius:8px}.avatar>span{height:7px;width:7px;position:absolute;bottom:-2px;right:3px;border-radius:50%;background:var(--green);border:2px solid var(--panel)}.avatar.large{width:65px;height:65px;font-size:23px;border-radius:18px}.peach{background:#594737;color:#f5c39b}.blue{background:#304c5a;color:#b0d8ee}.lilac{background:#4d3f58;color:#d1b7e9}.pink{background:#563d49;color:#e7aec9}.gold{background:#555137;color:#e3db97}.progress{height:5px;width:100%;background:#2c3a2f;border-radius:6px;overflow:hidden}.progress>i{display:block;height:100%;background:var(--green);border-radius:6px;transition:width .3s}.progress.amber>i{background:var(--yellow)}.progress-caption{display:flex;justify-content:space-between;font-size:9px;color:#7f9680;margin-top:9px}.progress-caption b{color:#aebea5;font-weight:500}.journey{margin-top:25px;display:grid;gap:22px}.journey-item{display:flex;gap:11px;position:relative}.journey-item:not(:last-child):after{content:'';position:absolute;left:11px;top:24px;bottom:-23px;width:1px;background:#334235}.journey-item>span{display:grid;place-items:center;border:1px solid #3d4d3e;border-radius:50%;width:24px;height:24px;flex-shrink:0;font-size:9px;color:#68816b;background:var(--panel);z-index:1}.journey-item.current>span{border-color:#87b660;color:var(--green)}.journey-item.done>span{background:var(--green);color:#1b3214}.journey-item .icon{width:12px;height:12px}.journey-item b{font-size:10px;color:#8f9f8c;display:block;font-weight:550;line-height:1.4;padding-top:3px}.journey-item.current b{color:#dcebcf}.journey-item small{display:block;font-size:8px;color:#6c856e;margin-top:3px}.journey-item.current small{color:#9cc778}.tip-card{background:linear-gradient(135deg,#263724,#1c2a1e);border:1px solid #384d31;border-radius:13px;padding:22px}.tip-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;border:1px solid #516443;color:var(--green);margin-bottom:19px}.tip-card .eyebrow{font-size:8px;color:#8fa17f}.tip-card h3{font-size:19px;line-height:1.3;letter-spacing:-.03em;margin:10px 0}.tip-card p{font-size:11px;color:#9cad93;line-height:1.8;margin:10px 0}.tip-card .text{font-size:10px;margin-top:8px}.prototype-note{display:flex;gap:10px;align-items:flex-start;padding:0 4px;color:#7c927f}.prototype-note .icon{width:14px;height:14px;margin-top:3px}.prototype-note p{font-size:10px;line-height:1.8}.page-footer{border-top:1px solid #27372b;display:flex;justify-content:space-between;padding:23px 0;margin-top:40px;gap:15px;color:#6c8271;font-size:9px}.mobile-nav{display:none}.history-section{margin:25px 0;background:var(--panel);border:1px solid var(--line);border-radius:11px}.history-section summary{padding:18px 20px;cursor:pointer;font-size:13px}.history-section summary>span{font-size:10px;color:var(--muted);margin-left:8px}.history-row{display:flex;align-items:center;width:100%;background:none;border:0;border-top:1px solid var(--line);padding:15px 18px;gap:10px;text-align:left}.small-icon{color:var(--green)}.small-icon .icon{width:17px}.history-row b{display:block;font-size:11px}.history-row small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.history-row strong{margin-left:auto;white-space:nowrap;font-size:11px}.history-row>.icon{width:13px;color:var(--muted)}.empty{color:var(--muted)}.stepper{display:flex;list-style:none;padding:0;margin:0 0 30px;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.stepper li{display:flex;gap:9px;align-items:center;flex:1;padding:14px 10px 14px 16px;color:#698172;position:relative;font-size:11px;white-space:nowrap}.stepper li>span{height:23px;width:23px;border:1px solid #3d5042;border-radius:50%;display:grid;place-items:center;font-size:9px;flex-shrink:0}.stepper li>span .icon{width:13px}.stepper li.active{color:var(--green);background:#263925}.stepper li.active>span{background:var(--green);color:#24351a;border-color:var(--green)}.stepper li.done{color:#b0c4a2}.stepper li.done>span{color:var(--green);border-color:#688757}.stepper li b{font-weight:550}.section-intro{color:var(--muted);font-size:12px;margin:-6px 0 20px}.task-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:21px;margin-bottom:16px}.task-header{display:flex;align-items:center;gap:13px}.task-number{font-family:monospace;color:#6d856f;font-size:15px}.task-header .eyebrow{font-size:8px;margin-bottom:5px}.task-header h3{font-size:17px}.effort{margin-left:auto;font-size:10px;color:#a0b39e;white-space:nowrap}.mode-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:22px 0 16px}.mode{border:1px solid #364a3b;border-radius:8px;background:#1c2b22;padding:12px 6px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;white-space:nowrap}.mode>.icon{width:15px;height:15px}.mode .icon:last-child:not(:first-child){width:10px}.mode.selected{background:#2d4228;border-color:#9cc16c;color:#d0edae}.mode.selected i{height:4px;width:4px;background:var(--green);border-radius:50%}.task-stats{display:flex;gap:20px;font-size:10px;color:var(--muted)}.task-stats>span{display:flex;gap:5px;align-items:center}.task-stats .icon{width:13px;height:13px}.task-check{display:flex;gap:7px;font-size:10px;color:#91a890;margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}.task-check .icon{height:14px;width:14px;color:#779a6b}.forecast{position:sticky;top:20px}.forecast-profit{padding:20px 0 25px;border-bottom:1px solid var(--line);margin-bottom:17px}.forecast-profit small{display:block;color:var(--muted);font-size:11px}.forecast-profit strong{font-size:34px;letter-spacing:-.055em;display:block;margin:3px 0;line-height:1.3;font-weight:550}.forecast-profit>span{font-size:9px;color:#819b7b}.facts{margin:18px 0;font-size:11px}.facts>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0}.facts dt{color:var(--muted);display:flex;align-items:center;gap:5px}.facts dt .icon{width:13px;height:13px}.facts dd{margin:0;text-align:right;white-space:nowrap;font-weight:550}.facts .divider{padding-top:14px;border-top:1px solid var(--line)}.risk-meter{margin-top:22px}.risk-meter>div:first-child{display:flex;justify-content:space-between;font-size:10px;margin-bottom:8px;color:#acb69c}.risk-meter b{color:var(--yellow)}.risk-meter small{display:block;font-size:9px;line-height:1.6;color:#7b927b;margin-top:9px}.forecast-launch{margin-top:23px}.forecast-launch p{display:flex;align-items:flex-start;gap:5px;font-size:9px;color:#87a17e;line-height:1.6;margin:12px 0}.forecast-launch p .icon{height:12px;width:12px;margin-top:2px}.forecast>.fine{border-top:1px solid var(--line);padding-top:12px;margin-top:16px;font-size:9px}.context-card{padding:30px}.context-heading{display:flex;gap:22px;align-items:flex-start;margin-bottom:25px}.big-icon{height:58px;width:58px;border-radius:16px;background:#2c4329;color:var(--green);display:grid;place-items:center;flex-shrink:0;margin-bottom:20px}.big-icon .icon{height:27px;width:27px}.context-heading h2{font-size:27px}.context-heading p{margin-top:12px;color:var(--muted);font-size:12px}.context-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.context-option{background:#1d2b22;border:1px solid #36483a;border-radius:11px;display:flex;text-align:left;align-items:center;gap:12px;padding:19px 16px;min-height:108px}.context-option.selected{border-color:#9cc572;background:#2b4028}.context-option-icon{color:#a0bb8d;flex-shrink:0}.context-option b{display:block;font-size:12px}.context-option small{display:block;font-size:10px;color:#91a589;line-height:1.7;margin-top:6px}.checkbox{border:1px solid #526a47;border-radius:5px;height:19px;width:19px;flex-shrink:0;margin-left:auto;display:grid;place-items:center}.checkbox .icon{width:13px;height:13px}.selected .checkbox{background:var(--green);color:#1a2915;border-color:var(--green)}.context-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}.context-footer b{font-size:12px}.context-footer p{color:var(--muted);font-size:10px;max-width:350px;margin-top:5px}.context-card>.text{margin-top:10px;font-size:10px}.notice{display:flex;align-items:center;gap:10px;border:1px solid #3c5237;background:#243423;color:#b8cdae;border-radius:9px;padding:13px 14px;font-size:11px;line-height:1.65;margin:15px 0}.notice .icon{width:17px;height:17px}.notice.warn{background:#352f20;border-color:#554b2c;color:#d6c28e}.notice .text{font-size:11px;min-height:0;padding:0;white-space:nowrap}.execution-card h2{font-size:22px}.execution-card>.section-heading{align-items:flex-start;margin-bottom:24px}.status-orb{height:41px;width:41px;background:#2a3d27;color:var(--green);border-radius:12px;display:grid;place-items:center;flex-shrink:0}.production-list{margin-top:22px}.production-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:17px 0}.production-row>span:first-child{height:30px;width:30px;display:grid;place-items:center;background:#243129;border:1px solid #384e3d;border-radius:9px;font-size:10px;color:#8ea88e;flex-shrink:0}.production-row>span:first-child .icon{width:16px;height:16px}.production-row.done>span:first-child{color:var(--green);background:#2b4028}.production-row b{font-size:12px;display:block}.production-row small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.production-state{margin-left:auto;font-size:9px;color:#849880}.production-row.done .production-state{color:#b7d494}.production-progress{margin:24px 0}.production-progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:8px}.production-progress b{color:var(--green)}.action-panel{padding-top:7px}.action-panel h3{margin-bottom:10px}.action-panel p{font-size:12px;color:var(--muted);margin-bottom:18px}.event-card{background:#273629;border:1px solid #49613f;border-radius:11px;padding:22px}.event-card h3{font-size:20px;margin-bottom:11px}.event-card p{font-size:12px;color:#aaba9e;margin-bottom:22px}.event-card .button-row .btn{font-size:10px;flex:1}.log-card h3{margin-bottom:22px}.log-line{display:flex;gap:10px;margin-top:14px;color:#99ad93;font-size:10px;line-height:1.65}.log-line i{width:5px;height:5px;background:#749064;border-radius:50%;margin-top:6px;flex-shrink:0}.defects h3{margin-bottom:18px}.defect{display:flex;gap:10px;padding:13px;border-radius:9px;background:#3b3021;border:1px solid #5c4c2d;margin-bottom:10px}.defect .icon{color:var(--yellow);height:17px;width:17px;margin-top:3px}.defect b{font-size:12px}.defect p{font-size:10px;margin-top:5px;color:#c1b393}.repair-options{display:flex;gap:12px;margin:24px 0 12px}.repair-option{flex:1;min-width:0;background:#23352a;border:1px solid #49643d;border-radius:10px;padding:18px 10px;text-align:center}.repair-option>.icon{display:block;margin:0 auto 12px;color:var(--green)}.repair-option b{font-size:12px;display:block}.repair-option span{display:block;font-size:10px;color:#b9cdac;margin:8px 0}.repair-option small{display:block;font-size:9px;color:var(--muted);line-height:1.7}.success-panel{text-align:center;padding:14px 0}.success-panel>.icon{height:43px;width:43px;color:var(--green);padding:9px;border:1px solid #6d9551;border-radius:50%;margin-bottom:16px}.success-panel h3{font-size:21px;margin-bottom:10px}.success-panel p{font-size:12px;color:var(--muted);margin-bottom:25px}.report-card{text-align:center;padding:32px}.report-medal{width:76px;height:76px;margin:0 auto 21px;display:grid;place-items:center;background:radial-gradient(circle,#536f35,#2a4125);border:1px solid #81a25c;border-radius:50%;box-shadow:0 0 40px #b5ef6910}.report-medal .icon{width:39px;height:39px;color:var(--green)}.report-card h2{font-size:31px;margin:15px 0 10px}.report-sub{font-size:12px;color:var(--muted);max-width:370px;margin:auto}.report-numbers{display:flex;justify-content:space-around;gap:14px;padding:25px 0;margin:21px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.report-numbers small{font-size:10px;color:var(--muted);display:block;margin-bottom:7px}.report-numbers strong{font-size:23px;letter-spacing:-.04em;font-weight:550}.client-feedback{display:flex;text-align:left;gap:13px;background:#243626;border:1px solid #3c5035;border-radius:11px;padding:20px;margin:25px 0}.feedback-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#3c5232;flex-shrink:0;color:#b5d799}.client-feedback .eyebrow{font-size:8px;color:#94b37e}.client-feedback blockquote{font-size:12px;color:#c5d5bb;margin:0;line-height:1.8}.report-facts{text-align:left;margin:25px 0 12px}.report-card>.button-row{margin-top:27px;justify-content:center}.report-card>.fine{text-align:left}.tip-divider{height:1px;background:#42563a;margin:20px 0}.tip-card>b{font-size:28px;font-weight:550;color:#d3e4c7;letter-spacing:-.04em}.unlock-card>.icon{color:var(--green);margin-bottom:16px}.unlock-card p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}.unlock-card .text{font-size:11px;margin-top:10px}.player-card{margin-bottom:28px}.player-intro{display:flex;align-items:center;gap:17px}.player-intro h2{margin:8px 0 5px}.player-intro p{font-size:11px;color:var(--muted)}.skill-bars{display:grid;gap:14px;margin:24px 0 14px}.skill-bars>div{display:flex;gap:15px;align-items:center;font-size:11px}.skill-bars>div>span{min-width:70px;color:#a1b79c}.skill-bars .progress{max-width:250px}.skill-bars b{font-weight:500;font-size:10px;color:#a1b79c}.department{border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-bottom:13px}.department summary{list-style:none;display:flex;align-items:center;gap:10px;padding:18px 20px;cursor:pointer}.department summary::-webkit-details-marker{display:none}.department-icon{color:#98b688}.department-icon .icon{width:18px;height:18px}.department summary b{font-size:13px}.department summary>span:not(:first-child){margin-left:auto;font-size:10px;color:var(--muted)}.department summary>.icon{height:13px;width:13px;color:#91a585;transform:rotate(90deg)}.department[open] summary>.icon{transform:rotate(-90deg)}.department-body{padding:0 20px 20px}.department-body>.muted{font-size:12px;padding:10px 0 20px}.department-body>p{font-size:12px;color:var(--muted);margin:10px 0 20px}.locked{background:#162019}.employee-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 17px}.employee-card{background:#223129;border:1px solid #374e3d;border-radius:11px;padding:19px 15px;text-align:left}.employee-card .avatar{margin-bottom:14px}.employee-card h3{margin-bottom:6px}.employee-card p{font-size:10px;color:var(--muted);margin-bottom:13px}.employee-card>small{font-size:9px;color:#82997e;display:block;margin-top:14px}.dashed{background:transparent;border:1px dashed #57824c;color:#b6d29c}.worker-label{margin-top:15px;display:flex;align-items:center;gap:10px;font-size:10px;color:var(--muted)}select{background:#223629;color:#d3e5c5;border:1px solid #45633c;border-radius:6px;padding:8px;width:100%;font-size:11px;max-width:270px}.ai-overview{display:grid;grid-template-columns:.8fr 1.2fr;gap:15px;margin-bottom:30px}.token-card>small,.model-card>small{display:block;margin-top:20px;font-size:10px;color:var(--muted)}.token-card>strong{font-size:40px;font-weight:550;letter-spacing:-.055em;display:block;margin:7px 0}.token-card>p,.model-card>p{font-size:11px;color:var(--muted);line-height:1.8;margin:10px 0 18px}.model-card h2{font-size:23px;margin:10px 0}.model-card .badge{font-size:7px}.ai-skills{display:grid;gap:13px}.ai-skill{display:flex;gap:16px;align-items:flex-start;padding:21px}.skill-symbol{background:#2f402b;border-radius:11px;padding:10px;color:#bcdb9b}.skill-copy{flex:1}.skill-copy .eyebrow{font-size:8px;margin:1px 0 7px}.skill-copy h3{font-size:17px}.skill-copy p{font-size:11px;color:var(--muted);margin:9px 0 13px;line-height:1.8}.skill-levels{display:flex;gap:5px;align-items:center}.skill-levels i{width:17px;height:4px;background:#384735;border-radius:5px}.skill-levels i.filled{background:var(--green)}.skill-levels span{font-size:9px;margin-left:6px;color:#8b9e81}.ai-skill .btn{margin-top:12px;white-space:nowrap}.domain-context{display:grid;gap:16px;margin-top:24px}.domain-context>div{display:grid;grid-template-columns:65px 1fr 25px;align-items:center;gap:10px;font-size:10px;color:#a6b89e}.domain-context b{font-size:9px;font-weight:500}.right-column>.card>p.muted{font-size:11px;margin-top:13px;line-height:1.8}.right-column>.card>.btn{margin-top:18px}.gameover{text-align:center;max-width:650px;margin:40px auto;padding:45px}.gameover>.big-icon{margin:0 auto 20px}.gameover>p{color:var(--muted);margin:20px auto;max-width:450px}.modal-open{overflow:hidden}.modal-backdrop{position:fixed;inset:0;background:#08130ed9;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:25px;z-index:100;animation:fadeIn .18s}.modal{width:560px;max-width:100%;max-height:90vh;max-height:90dvh;overflow:auto;border:1px solid #466046;border-radius:19px;background:#1a2820;box-shadow:0 30px 120px #0008;animation:modalIn .2s;scrollbar-color:#415d3d transparent;scrollbar-width:thin}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#1a2820;z-index:2}.modal-header h2{font-size:21px;line-height:1.3}.modal-header .icon-button{flex-shrink:0}.modal-body{padding:25px}.modal-body>p{color:#a9bda6;font-size:12px;line-height:1.9;margin:15px 0}.modal-body>p.modal-intro{margin:0 0 23px;color:#adbfaa;font-size:13px}.modal-body>.badge{margin-bottom:16px}.modal-body h3{font-size:15px}.modal-body>.big-icon{margin:0 auto 22px}.modal-body>.btn+.btn{margin-top:10px}.modal-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:#25372a;border:1px solid #3d5339;border-radius:10px;padding:16px;margin:22px 0 26px}.modal-metrics small{display:block;font-size:9px;color:#a1b397;margin-bottom:6px}.modal-metrics b{font-size:17px;font-weight:550}.brief-tasks{margin:14px 0 23px}.brief-tasks>div{display:flex;gap:11px;padding:16px 0;border-bottom:1px solid var(--line);align-items:flex-start}.brief-tasks>div>span:first-child{font-family:monospace;color:#77976f;font-size:11px;margin-top:3px}.brief-tasks b{font-size:12px}.brief-tasks p{color:var(--muted);font-size:10px;line-height:1.8;margin-top:5px}.brief-tasks .badge{margin-left:auto;font-size:8px;white-space:nowrap}.purchase-box{display:flex;justify-content:space-between;padding:23px;border:1px solid #58754b;border-radius:11px;background:#2a3c27;margin:24px 0}.purchase-box>span{font-size:10px;color:#a9c199}.purchase-box strong{display:block;font-size:29px;color:#d9ecc8;letter-spacing:-.04em;margin-top:7px;font-weight:550}.wallet-big{font-size:45px;font-weight:550;color:var(--green);text-align:center;margin:15px 0 30px;letter-spacing:-.05em}.profile-skills{margin:10px 0 20px}.profile-skills>div{display:flex;gap:15px;align-items:center;border-bottom:1px solid var(--line);padding:15px 0}.profile-skills>div>span{width:100px;flex-shrink:0}.profile-skills b{display:block;font-size:12px}.profile-skills small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.profile-skills .btn{width:32px;min-height:32px;padding:8px;flex-shrink:0}.candidate-list{display:grid;gap:15px}.candidate{background:#223129;border:1px solid #3b503e;border-radius:12px;padding:20px}.candidate-top{display:flex;align-items:center;gap:13px;margin-bottom:17px}.candidate-top h3{font-size:18px}.candidate-top p{font-size:10px;color:var(--muted);margin-top:5px}.candidate-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.candidate-footer b{display:block;font-size:19px;font-weight:550}.candidate-footer small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.person-heading{text-align:center}.person-heading .avatar{margin:0 auto 22px}.person-heading h2{font-size:22px;margin-bottom:15px}.help-steps{list-style:none;padding:0;margin:0;display:grid;gap:21px}.help-steps li{display:flex;gap:15px}.help-steps li>span{width:28px;height:28px;border-radius:8px;background:#354d2d;color:#c9e5b0;display:grid;place-items:center;font-size:12px;flex-shrink:0}.help-steps b{font-size:13px}.help-steps p{color:var(--muted);font-size:11px;line-height:1.75;margin-top:5px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 0;border-block:1px solid var(--line)}.settings-row b{display:block;font-size:12px}.settings-row small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.switch{border:1px solid #476140;border-radius:25px;width:42px;height:25px;background:#2f3e31;position:relative;padding:3px}.switch>span{position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#a0b694;transition:left .2s}.switch.on{background:#5d8b3e;border-color:#8eb867}.switch.on>span{left:20px;background:#e1f5c9}.settings-note{display:flex;gap:12px;margin:25px 0;color:#96b28a}.settings-note>.icon{flex-shrink:0;margin-top:2px}.settings-note b{font-size:12px}.settings-note p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}.settings-bottom{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:23px;margin-top:25px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);max-width:90vw;width:max-content;background:#c5e4b0;color:#203418;border:1px solid #e0f4ce;box-shadow:0 8px 40px #0005;border-radius:11px;padding:13px 20px;z-index:200;font-size:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#ead5b3;color:#463621;border-color:#ecd6b1}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes modalIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.no-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1500px){.hero{min-height:270px}.hero-copy{padding:35px 38px}.hero h2{font-size:35px}.monitor{width:255px;height:170px;top:40px;right:50px}.code-lines{font-size:11px}.monitor-foot{top:165px;left:100px}.workspace-art{right:5%}.chip-b{bottom:40px;right:20px}.content-grid{grid-template-columns:minmax(0,1fr) 310px;gap:28px}.order-description{max-width:600px}}
@media(max-width:1200px){:root{--sidebar:205px}.sidebar{padding:29px 15px}.brand{font-size:21px;gap:8px}.brand-mark{width:30px;height:30px}.brand small{font-size:6px}main{padding:25px 25px 0}.topbar{padding:0 25px}.content-grid{grid-template-columns:minmax(0,1fr) 250px;gap:19px}.resource{min-width:175px;padding:0 20px;margin-right:10px}.hero-copy{width:65%;padding:25px}.hero h2{font-size:28px}.hero-chapters{gap:12px;font-size:8px}.workspace-art{transform:scale(.9);transform-origin:right center;right:1%}.segmented button{padding:5px 7px}.section-heading h2{font-size:17px}.task-header{flex-wrap:wrap}.effort{margin-left:35px}.mode-selector{gap:5px}.mode{flex-direction:column;gap:7px;font-size:9px}.ai-skill{flex-wrap:wrap}.ai-skill>.btn{margin:0 0 0 56px}.stepper li{padding:12px 6px;font-size:10px;gap:5px}.order-bottom{flex-wrap:wrap}.order-bottom>span{font-size:9px}.order-bottom .btn{margin-left:auto}.report-numbers strong{font-size:19px}}
@media(max-width:1000px) and (min-width:761px){:root{--sidebar:180px}.brand{font-size:18px;gap:7px}.brand-mark{width:27px;height:27px}.brand small{font-size:5px}.sidebar .side-caption{font-size:8px}.nav-item{padding:13px 10px;font-size:12px}.content-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.right-column>.prototype-note{grid-column:1/-1}.career-card .journey{gap:17px}.hero-copy{width:60%}.hero h2{font-size:26px}.hero-chapters>span:last-child{display:none}.resource{min-width:0;flex:1;padding:0 15px;margin:0}.resource strong{font-size:17px}.resource-icon{width:32px;height:32px}.save-status{display:none}.forecast{position:static}.mode{flex-direction:row}.effort{margin-left:auto}.ai-skills .ai-skill{flex-wrap:nowrap}.ai-skill>.btn{margin:12px 0 0}.stepper li{padding:12px}.report-numbers strong{font-size:23px}}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){:root{--sidebar:0px}.sidebar{display:none}.workspace{margin-left:0}.topbar{height:65px;padding:0 20px;gap:12px;background:#142019}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:17px;letter-spacing:-.6px}.mobile-brand .brand-mark{width:26px;height:26px}.mobile-brand .brand-mark .icon{width:21px;height:21px}.top-actions{gap:12px}.save-status{display:none}.profile-mini{width:30px;height:30px}.top-actions .icon-button{height:32px;width:32px;border:0;background:transparent}main{padding:18px 18px 85px}.resource-strip{gap:0;padding-bottom:20px;margin-bottom:26px;justify-content:space-between}.resource{min-width:0;margin:0;padding:0 11px;gap:7px;flex:1;justify-content:center}.resource:first-child{justify-content:flex-start}.resource:last-child{padding-right:0;justify-content:flex-end}.resource-icon{width:27px;height:30px;border-radius:8px;background:transparent}.resource-icon .icon{width:19px;height:19px}.resource small{font-size:8px;white-space:nowrap}.resource strong{font-size:17px;white-space:nowrap}.resource strong em{font-size:9px}.resource .tiny-plus{display:none}.mini-progress{width:65px;height:2px}.resource.xp-resource .resource-icon{display:none}.page-heading{gap:12px;margin-bottom:21px;align-items:flex-start}.page-heading>.btn.ghost{font-size:0;padding:0;width:32px;height:32px;min-height:32px;flex-shrink:0}.page-heading>.btn.ghost .icon{width:16px}.page-heading>.badge{font-size:8px;padding:5px 7px;flex-shrink:0}.page-heading .eyebrow{font-size:8px;margin-bottom:9px;letter-spacing:.09em}.page-heading h1{font-size:28px;line-height:1.18;letter-spacing:-.04em}.page-heading p{font-size:11px;line-height:1.75;margin-top:10px}.hero{min-height:204px;margin-bottom:26px;border-radius:13px}.hero-copy{padding:22px 19px;width:100%}.hero-badge{font-size:6px;letter-spacing:.07em}.hero h2{font-size:23px;max-width:255px;margin:13px 0 11px;line-height:1.25}.hero p{font-size:10px;max-width:215px;line-height:1.8}.hero-chapters{margin-top:18px;font-size:8px}.hero-chapters>span:last-child{display:none}.workspace-art{opacity:.6;transform:scale(.5);transform-origin:right bottom;right:-24px;top:auto;bottom:7px;width:320px;height:245px;pointer-events:none}.hero-copy{z-index:2}.hero-copy p{position:relative;z-index:2}.hero-copy h2{position:relative;z-index:3}.hero .art-chip{display:none}.hero .art-plant{left:5px}.hero .monitor{right:30px}.hero .art-orbit{opacity:.4}.content-grid{grid-template-columns:1fr;gap:25px}.section-heading{gap:8px;margin-bottom:16px}.section-heading h2{font-size:17px}.section-heading .counter{font-size:8px;padding:2px 5px}.segmented{padding:2px;border-radius:7px}.segmented button{font-size:9px;padding:5px 7px;min-height:28px}.order-card{padding:20px 17px 0;border-radius:12px}.order-top{gap:10px}.order-symbol{width:36px;height:36px;border-radius:10px}.order-symbol .icon{width:18px;height:18px}.order-label{font-size:7px;margin-bottom:5px}.order-top h3{font-size:18px;line-height:1.25}.star-small{font-size:18px}.order-description{font-size:11px;line-height:1.8;margin:15px 0 13px}.tag-list>span{font-size:8px}.order-meta{gap:18px;font-size:10px;margin:18px 0}.order-meta b{font-size:16px}.order-meta .icon{width:13px;height:13px}.order-bottom{flex-wrap:nowrap;padding:14px 0;gap:8px}.order-bottom>span{font-size:8px;max-width:135px;line-height:1.5}.order-bottom .btn{font-size:10px;padding:10px 11px;min-height:38px}.right-column{grid-template-columns:1fr}.career-card{padding:22px}.career-level h3{font-size:13px}.career-level p{font-size:11px}.journey{gap:21px}.journey-item b{font-size:11px}.journey-item small{font-size:9px}.tip-card h3{font-size:22px}.tip-card p{font-size:12px}.prototype-note{display:none}.page-footer{font-size:8px;margin-top:30px;gap:15px;line-height:1.7;padding-bottom:5px}.page-footer span:first-child{max-width:190px}.page-footer span:last-child{text-align:right}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#15221af2;backdrop-filter:blur(18px);border-top:1px solid #3a4f3b;padding:8px 20px max(10px,env(safe-area-inset-bottom));gap:10px;justify-content:space-around}.mobile-nav button{border:0;background:transparent;color:#819883;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:42px;min-width:85px;padding:6px 20px;border-radius:9px;font-size:9px}.mobile-nav button .icon{width:20px;height:20px}.mobile-nav button.active{color:var(--green);background:#2b4024}.stepper{gap:0;margin-bottom:24px;border-radius:10px}.stepper li{flex-direction:column;gap:6px;padding:10px 3px;font-size:8px;min-width:0}.stepper li>span{width:22px;height:22px;font-size:9px}.section-intro{font-size:11px;line-height:1.8}.task-card{padding:18px 15px}.task-header{gap:10px;align-items:flex-start;flex-wrap:nowrap}.task-number{font-size:12px;margin-top:5px}.task-header .eyebrow{font-size:7px}.task-header h3{font-size:16px}.effort{margin-left:auto;font-size:8px;max-width:40px;white-space:normal;text-align:right;line-height:1.7}.mode-selector{gap:5px;margin:20px 0 16px}.mode{font-size:9px;padding:11px 4px;flex-direction:column;min-height:62px;position:relative}.mode.selected i{position:absolute;right:5px;top:5px}.mode .icon:last-child:not(:first-child){position:absolute;right:5px;top:5px}.task-stats{gap:12px;font-size:9px;justify-content:space-between}.task-stats .icon{width:12px}.task-check{font-size:10px;line-height:1.75}.forecast{position:static;padding:22px}.forecast-profit{padding-top:10px}.forecast-profit strong{font-size:37px}.forecast .facts{font-size:12px}.forecast-launch .btn{min-height:48px}.forecast-launch p{font-size:10px}.context-card{padding:22px 17px}.context-heading{gap:12px}.context-heading>.big-icon{width:34px;height:34px;border-radius:9px;margin-top:3px}.context-heading>.big-icon .icon{width:19px;height:19px}.context-heading .eyebrow{font-size:7px}.context-heading h2{font-size:21px}.context-heading p{font-size:11px;line-height:1.8}.context-grid{grid-template-columns:1fr;gap:10px}.context-option{min-height:90px;padding:15px 13px;gap:12px}.context-option b{font-size:12px}.context-option small{font-size:10px}.context-footer{flex-direction:column;align-items:stretch;gap:16px;margin-top:21px;padding-top:19px}.context-footer>.btn{min-height:46px}.context-footer p{font-size:10px}.execution-card{padding:20px 16px}.execution-card h2{font-size:22px}.execution-card .eyebrow{font-size:8px}.execution-card>.section-heading{gap:12px}.status-orb{width:34px;height:34px}.notice{font-size:10px;padding:12px;flex-wrap:wrap;gap:7px}.notice>.icon{flex-shrink:0}.production-row{gap:10px}.production-row b{font-size:11px}.production-state{font-size:8px;text-align:right;max-width:55px}.production-row small{font-size:8px}.event-card{padding:19px 16px}.event-card h3{font-size:19px}.event-card p{font-size:11px;line-height:1.8}.event-card .button-row{flex-direction:column}.event-card .button-row .btn{font-size:11px}.repair-options{gap:8px}.repair-option{padding:16px 8px}.repair-option b{font-size:11px}.repair-option span{font-size:9px;line-height:1.8}.repair-option small{font-size:9px}.execution-card .facts{font-size:11px}.report-card{padding:25px 17px}.report-card h2{font-size:27px}.report-numbers{gap:12px;padding:22px 0}.report-numbers strong{font-size:20px}.report-numbers small{font-size:8px;white-space:nowrap}.report-sub{font-size:11px;line-height:1.8}.client-feedback{padding:17px 13px;gap:10px}.client-feedback blockquote{font-size:11px}.client-feedback .eyebrow{font-size:7px}.report-card .facts{font-size:10px}.report-card>.button-row{flex-direction:column}.report-card>.button-row .btn{width:100%;min-height:44px}.player-card{padding:22px 18px}.player-intro .large{width:56px;height:56px}.player-intro h2{font-size:22px}.player-intro p{font-size:10px}.department summary{padding:18px 15px;gap:9px}.department summary b{font-size:13px}.department summary>span:not(:first-child){font-size:9px}.department-body{padding:0 15px 17px}.employee-grid{gap:9px}.employee-card{padding:16px 12px}.employee-card h3{font-size:15px}.employee-card p{font-size:9px}.employee-card>small{font-size:8px}.employee-card .tag-list>span{font-size:7px;padding:3px 4px}.ai-overview{gap:10px;grid-template-columns:.85fr 1.15fr}.ai-overview .card{padding:18px 14px}.ai-overview .resource-icon{background:#2d4029;width:34px;height:34px}.ai-overview .resource-icon.yellow{background:#383821}.token-card>strong{font-size:32px}.model-card h2{font-size:20px}.model-card>p,.token-card>p{font-size:10px}.model-card>.badge{font-size:6px}.ai-overview .btn{font-size:9px;padding:9px 7px;white-space:nowrap}.ai-skill{padding:19px 15px;gap:12px}.skill-symbol{padding:8px;border-radius:9px}.skill-symbol .icon{width:17px;height:17px}.skill-copy .eyebrow{font-size:7px}.skill-copy h3{font-size:16px}.skill-copy p{font-size:10px}.ai-skill>.btn{margin:0 0 0 45px;font-size:10px}.skill-levels span{font-size:8px}.modal-backdrop{padding:14px;align-items:center}.modal{border-radius:17px;max-height:calc(100dvh - 28px)}.modal-header{padding:20px 18px;gap:12px}.modal-header h2{font-size:20px}.modal-body{padding:21px 18px}.modal-body>p.modal-intro{font-size:12px;line-height:1.85}.modal-metrics{padding:14px 12px}.modal-metrics small{font-size:8px}.modal-metrics b{font-size:16px}.brief-tasks .badge{font-size:7px}.brief-tasks b{font-size:11px}.modal-body .notice{font-size:10px}.modal-body>.btn{min-height:46px}.modal-body .fine{font-size:10px}.modal-header .icon-button{width:31px;height:31px}.candidate{padding:17px 14px}.candidate-footer b{font-size:18px}.candidate-footer small{font-size:8px}.profile-skills>div>span{width:85px}.profile-skills>div{gap:10px}.help-steps{gap:19px}.help-steps p{font-size:10px}.help-steps b{font-size:12px}.help-steps li>span{width:25px;height:25px}.settings-note p{font-size:10px}.settings-bottom .btn{font-size:11px}.settings-row small{font-size:9px}.gameover{padding:28px 20px;margin:20px 0}.gameover h1{font-size:28px}#toast{bottom:95px;font-size:11px;padding:12px 15px;max-width:calc(100vw - 30px)}.desktop-only{display:none}}
@media(max-width:380px){main{padding-inline:13px}.topbar{padding-inline:16px}.resource{padding-inline:8px;gap:4px}.resource strong{font-size:15px}.resource-icon{width:21px}.resource small{font-size:7px}.resource-strip{gap:0}.page-heading h1{font-size:26px}.section-heading{flex-wrap:wrap}.section-heading .segmented{margin-left:auto}.order-top h3{font-size:16px}.order-meta{gap:13px}.order-bottom>span{max-width:108px}.order-bottom .btn{font-size:9px}.report-numbers strong{font-size:18px}.hero-copy{padding-inline:17px}.hero h2{font-size:21px}.hero p{max-width:190px}.workspace-art{right:-40px;opacity:.4}.ai-overview{grid-template-columns:1fr 1fr}.model-card h2{font-size:18px}.ai-overview .btn{font-size:8px}.mode{font-size:8px}.skill-copy h3{font-size:15px}}

@media(min-width:761px) and (max-width:1200px){.nav-item{font-size:12px;gap:10px}.nav-item>span:not(.nav-count){white-space:nowrap}}

/* GDD 3.1 / first tutorial order. Existing palette is retained for this web slice. */
.locked-nav{color:#afafaf!important}.locked-nav>.icon:last-child{width:15px;margin-left:auto}.resource-locked{opacity:.65}.resource-locked>.icon{width:15px}.prologue-status{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--green);margin-top:22px}.side-story>p{font-size:12px;color:var(--muted);margin-top:14px}.story-intro{max-width:1040px;padding:34px}.story-art{height:160px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:16px;background:radial-gradient(ellipse at center,#304e27,#18251e);margin-bottom:28px;overflow:hidden}.story-art>.icon{width:72px;height:72px;color:var(--green);z-index:1}.story-orbit{position:absolute;border:1px solid #4c633b;border-radius:50%;height:250px;width:420px;transform:rotate(-18deg)}.story-code{position:absolute;right:25px;bottom:18px;color:#9cab8e;font:12px monospace}.chat-thread{max-width:710px;margin:auto;display:flex;flex-direction:column;gap:16px}.chat-message{border:1px solid var(--line);background:var(--panel-2);padding:18px 22px;border-radius:16px 16px 16px 3px;max-width:88%;font-size:16px}.chat-message.outgoing{align-self:flex-end;background:#293e23;border-radius:16px 16px 3px 16px}.chat-message .eyebrow{font-size:10px;margin-bottom:7px}.intro-footer{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:30px}.intro-footer>span{font-size:13px;color:var(--muted)}.specialization{padding:28px}.nickname-label{display:block;font-size:14px;margin-bottom:25px;color:var(--muted)}.nickname-label input{display:block;max-width:430px;width:100%;background:#111d17;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:13px 16px;margin-top:8px;min-height:48px}.memories{display:grid;grid-template-columns:1fr 1fr;gap:14px}.memory{display:flex;gap:15px;text-align:left;padding:20px 18px;border-radius:12px;border:1px solid var(--line);background:var(--panel-2);align-items:flex-start;min-height:140px}.memory.selected{border-color:var(--green);background:#2a3f24}.memory-icon{color:var(--green);height:40px;width:40px;display:grid;place-items:center;background:#31462b;border-radius:10px;flex-shrink:0}.memory>span:nth-child(2){display:flex;flex-direction:column;gap:8px}.memory b{font-size:16px}.memory small{font-size:12px;color:var(--green)}.memory>span>span{font-size:14px;color:var(--muted)}.memory i{margin-left:auto;color:var(--muted)}.memory i .icon{width:17px}.memory.selected i{color:var(--green)}.orders-accordion{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.accordion-heading{display:flex;justify-content:space-between;align-items:center;padding:20px;width:100%;min-height:72px;background:none;border:0;font-size:18px;font-weight:600}.accordion-heading>span{display:flex;gap:12px;align-items:center}.rotated{transform:rotate(90deg)}.orders-body{padding:0 20px 20px;display:grid;gap:16px}.orders-body .order-card{margin:0}.order-open{display:block;width:100%;text-align:left;background:none;border:0;padding:0}.order-open .order-top>svg{margin-left:auto}.tutorial-order-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.tutorial-order-metrics span{display:flex;flex-direction:column;gap:4px}.tutorial-order-metrics small{font-size:12px;color:var(--muted)}.tutorial-order-metrics b{font-size:18px}.order-meta{flex-wrap:wrap}.client-message{display:flex;gap:16px;margin-bottom:24px;padding:23px;border:1px solid var(--line);border-radius:14px;background:#1a2b20;max-width:1050px}.client-message p{font-size:15px;line-height:1.7}.message-avatar{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;background:#354a2a;color:var(--green)}.planning-header{display:flex;justify-content:space-between;gap:10px;margin-bottom:24px;align-items:center}.planning-header>span{display:flex;gap:8px;flex-wrap:wrap}.task-list>h2{font-size:20px;margin-bottom:20px}.task-card{scroll-margin-top:100px}.task-properties{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0;padding-bottom:15px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}.task-properties>span{display:flex;align-items:center;gap:7px}.difficulty-indicator{border-radius:7px;padding:4px 7px;background:#243126}.difficulty-indicator i{height:6px;width:6px;border-radius:50%;background:currentColor}.difficulty-indicator.green{color:var(--green)}.difficulty-indicator.yellow{color:var(--yellow);background:#343123}.difficulty-indicator.red{color:var(--red);background:#382b27}.difficulty-indicator small{font-size:12px;color:var(--muted)}.worker-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.worker-line>span{font-size:14px;color:var(--muted)}.worker-line .btn{min-height:48px;font-size:14px}.tutorial-modes{grid-template-columns:repeat(4,1fr);gap:6px}.tutorial-modes .mode{min-height:54px;gap:5px;font-size:13px;padding:10px 5px}.tutorial-modes .mode .icon{width:15px;height:15px}.tutorial-modes .locked-mode{color:#afafaf;background:#202b25}.forecast-note{font-size:13px;margin:12px 0}.tutorial-forecast>div{min-height:56px;padding:16px 0;font-size:15px}.tutorial-forecast dd{font-size:18px}.forecast .btn{min-height:52px}.forecast>.fine{margin-top:14px;font-size:12px}.production-card{padding:28px}.cycle-dashboard{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.cycle-dashboard>div{background:var(--panel-2);border-radius:10px;padding:14px 12px}.cycle-dashboard small{font-size:12px;display:block;color:var(--muted);margin-bottom:8px}.cycle-dashboard strong{font-size:17px}.production-overall>div:first-child{display:flex;justify-content:space-between;gap:12px;color:var(--muted);margin-bottom:10px}.production-overall .progress{height:8px}.task-progress-list{margin-top:28px}.task-progress-row{display:flex;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.task-progress-row>div{flex:1;min-width:0}.task-progress-row h3{font-size:15px}.task-progress-row small{color:var(--muted);font-size:12px;display:block;margin-top:5px}.task-progress-row .progress{margin-top:13px;height:4px}.task-progress-row>b{font-size:13px;color:var(--muted)}.validation-track{margin-top:23px;padding:18px;border-radius:10px;background:#263b25}.validation-track>span{font-size:14px}.validation-track .progress{margin-top:12px}.production-actions{margin-top:25px}.self-skills .section-heading{margin-bottom:22px}.skill-points{display:flex;gap:10px;align-items:center;color:var(--muted);padding:16px 18px;background:#293e23;border-radius:10px;font-size:16px}.skill-points strong{color:var(--green);margin-left:auto;font-size:22px}.self-skills .profile-skills{margin-top:12px}.self-skills .profile-skills>div{min-height:64px}.self-skills .profile-skills b{font-size:14px}.self-skills .profile-skills small{font-size:12px}.self-skills .profile-skills .btn{min-width:48px;min-height:48px}.self-skills>.fine{font-size:12px;margin-top:18px}.locked-accordion{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:12px;color:#afafaf;margin:14px 0;min-height:72px;background:#19231e}.locked-accordion span{display:flex;gap:9px;align-items:center;font-size:16px}.locked-accordion small{font-size:12px;color:#8c988e}.team-view .btn{margin-top:15px}.tutorial-done{margin-bottom:24px;font-size:14px}.guide-shade{position:fixed;background:rgba(28,28,28,.92);z-index:80;pointer-events:auto}.guide-outline{position:fixed;z-index:81;border:2px solid var(--green);border-radius:10px;pointer-events:none;box-shadow:0 0 0 4px #b5ef6920}.guide-tip{position:fixed;z-index:82;background:#263b25;border:1px solid #b5ef6990;border-radius:14px;padding:20px;box-shadow:0 16px 70px #0009;font-size:15px;line-height:1.6}.guide-tip .eyebrow{color:var(--green);font-size:10px}.guide-tip>p{font-size:15px}.guide-tip>small{display:block;color:#bbcab8;margin-top:12px;font-size:12px}.guide-tip .btn{margin-top:15px;min-height:48px;padding:10px 18px}.training-sheet{max-width:660px}.training-sheet .modal-body{padding-top:8px}.sheet-handle{display:none}.modal-body .modal-intro{font-size:15px}.assign-person{display:flex;gap:14px;align-items:center;min-height:82px;width:100%;border:1px solid var(--green);background:#294023;border-radius:12px;padding:18px;text-align:left}.assign-person>span:nth-child(2){display:flex;flex-direction:column;gap:5px}.assign-person>span>small{color:var(--muted);font-size:13px}.assign-person>svg{margin-left:auto}.activity-context{font-size:12px;color:var(--muted);margin:0 0 20px}.outcome-rules{display:grid;gap:10px;margin:24px 0}.outcome-rules>div{display:flex;justify-content:space-between;gap:10px;padding:14px 16px;background:var(--panel-2);border:1px solid var(--line);border-radius:10px;font-size:14px}.outcome-rules>div>span{color:var(--muted)}.page-preview{border:1px solid #425840;border-radius:14px;overflow:hidden;margin:22px 0}.preview-browser{display:flex;align-items:center;gap:5px;padding:13px;background:#26382a}.preview-browser>i{width:7px;height:7px;border-radius:50%;background:#91a48d}.preview-browser span{font:11px monospace;color:var(--muted);margin-left:auto}.layout-block{display:flex;gap:12px;align-items:center;padding:18px 12px;border-top:1px solid var(--line);background:#18241c}.layout-number{color:var(--green);font-weight:700;width:20px}.layout-block>div:nth-child(2){flex:1}.layout-block b{font-size:15px}.layout-block small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.reorder{display:flex;gap:6px}.reorder button{display:grid;place-items:center;height:48px;width:48px;background:#2b4028;border:1px solid #425840;border-radius:9px}.up{transform:rotate(-90deg)}.down{transform:rotate(90deg)}.outcome-scale{display:flex;gap:5px;margin:25px 0}.outcome-scale span{flex:1;padding:12px 8px;text-align:center;background:var(--panel-2);border-radius:8px;color:var(--muted);font-size:14px}.outcome-scale .active{background:var(--green);color:#15280d;font-weight:700}.activity-result{text-align:center}.activity-result>.big-icon{margin:0 auto 20px}.activity-result>p{color:var(--muted);font-size:15px}.activity-result dl{text-align:left;margin:22px 0}.activity-result .fine{font-size:12px}.backend-progress{display:flex;justify-content:space-between;color:var(--green);font-size:12px;margin-bottom:14px}.request-payload{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 monospace;padding:18px;border-radius:10px;border:1px solid var(--line);background:#111c16;margin:22px 0}.backend-choices{display:grid;gap:12px}.backend-choices .btn{font-size:14px;min-height:52px}.cycle-setting{display:flex;flex-direction:column;gap:10px;color:var(--muted);margin:22px 0}.cycle-setting select{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;color:var(--text);padding:12px;min-height:48px}.comparison{margin:26px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.comparison>div{display:grid;grid-template-columns:1.1fr 1fr 1fr;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);font-size:14px}.comparison>div:last-child{border-bottom:0;background:#293e23}.comparison-header{color:var(--muted);background:var(--panel-2);font-size:12px!important}.comparison b{font-weight:550}.result-heading{text-align:center}.result-heading .report-medal{display:grid;margin:0 auto 14px;width:65px;height:65px}.result-heading>p{color:var(--muted);margin-top:8px}.result-explanation{font-size:14px;color:var(--muted);padding:0 5px}.training-sheet .report-numbers{margin:22px 0}.training-sheet .report-numbers strong{font-size:22px}.training-sheet .report-numbers{grid-template-columns:1fr 1fr}.training-sheet .client-feedback{margin:24px 0;padding:20px}.training-sheet .client-feedback p{font-size:14px}.training-sheet .fine{font-size:12px}
@media(max-width:1100px){.cycle-dashboard{gap:8px}.cycle-dashboard>div{padding:12px 10px}.cycle-dashboard strong{font-size:15px}}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){body{font-size:14px}.page-heading h1{font-size:28px}.page-heading p{font-size:14px}.mobile-nav .nav-item{margin:0;padding:10px 8px;justify-content:center;border-radius:0;flex-direction:column;gap:4px;height:64px;background:none}.mobile-nav .nav-item>.icon:last-child:not(:first-child){position:absolute;right:16%;top:11px;width:12px;margin:0}.mobile-nav .nav-item{position:relative}.mobile-nav .nav-item>span{font-size:11px}.story-intro,.specialization{padding:20px}.story-art{height:110px}.chat-message{padding:16px;font-size:15px;max-width:94%}.intro-footer{flex-direction:column;align-items:stretch;gap:16px}.intro-footer>.btn{width:100%;min-height:52px}.memories{grid-template-columns:1fr}.memory{min-height:112px;padding:17px 14px}.memory-icon{height:35px;width:35px}.orders-body{padding:0 12px 12px}.accordion-heading{padding:18px 15px;font-size:17px}.tutorial-order-metrics b{font-size:16px}.tutorial-order-metrics small{font-size:12px}.client-message{padding:18px 15px;gap:10px}.client-message .message-avatar{height:32px;width:32px}.client-message p{font-size:14px;line-height:1.65}.planning-header{align-items:flex-start;flex-direction:column}.planning-header .badge{font-size:11px}.task-properties{gap:10px;font-size:13px;flex-direction:column;align-items:flex-start}.tutorial-modes{gap:4px}.tutorial-modes .mode{padding:8px 3px;min-height:54px;font-size:11px;flex-direction:column}.task-card .task-header h3{font-size:17px}.task-card .task-check{font-size:13px}.worker-line .btn{font-size:13px;min-height:48px}.task-list>h2{font-size:19px}.forecast{position:static}.forecast .fine{font-size:12px}.production-card{padding:20px 16px}.cycle-dashboard{grid-template-columns:1fr 1fr;gap:8px}.cycle-dashboard>div:first-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.cycle-dashboard small{font-size:12px}.cycle-dashboard strong{font-size:17px}.production-overall{font-size:13px}.task-progress-row h3{font-size:14px}.task-progress-row>.small-icon{display:none}.task-progress-row{gap:8px}.locked-accordion{padding:18px 15px;flex-wrap:wrap}.locked-accordion small{font-size:12px}.self-skills{padding:20px 16px}.self-skills .profile-skills>div{gap:8px;grid-template-columns:minmax(0,1fr) 60px 48px;min-height:62px}.self-skills .profile-skills b{font-size:13px}.guide-tip{font-size:14px;padding:16px}.guide-tip>p{font-size:14px;line-height:1.55}.modal-backdrop{align-items:flex-end;padding:0}.training-sheet{max-width:none;width:100%;border-radius:24px 24px 0 0;max-height:calc(100dvh - 20px);margin:0;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom)}.sheet-handle{display:block;height:4px;width:38px;border-radius:5px;background:#61775f;margin:12px auto 2px}.training-sheet .modal-header{padding:20px 20px 14px}.training-sheet .modal-header h2{font-size:19px}.training-sheet .modal-body{padding:10px 20px 24px}.comparison>div{padding:12px 10px;gap:7px;font-size:12px;grid-template-columns:.9fr 1fr 1fr}.comparison b{font-size:12px}.comparison-header{font-size:11px!important}.layout-block{gap:8px;padding:15px 10px}.layout-block b{font-size:14px}.layout-block small{font-size:11px}.reorder{flex-direction:column;gap:3px}.reorder button{width:48px;height:48px}.outcome-rules>div{padding:13px 10px;font-size:12px}.outcome-rules>div>span{text-align:right}.activity-context{font-size:12px}.modal-body .modal-intro{font-size:14px}.training-sheet .client-feedback{padding:16px}.training-sheet .client-feedback .message-avatar{display:none}.self-skills .fine{font-size:12px}.resource-strip .resource strong{font-size:16px}.resource-strip .resource small{font-size:10px}.resource-locked>.icon{display:none}}
@media(prefers-reduced-motion:reduce){.story-orbit{transform:none}}

.guide-active main{padding-bottom:calc(var(--guide-space,280px) + 40px)}
.guide-active .mobile-nav{display:none}
.guide-safe-area{position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.guide-shade{background:rgba(9,18,13,.86);touch-action:none}
.guide-outline{border-width:2px;box-shadow:0 0 0 3px #b5ef6914}
.guide-outline[hidden]{display:none}
.guide-scroll-target{max-height:var(--guide-target-height);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#546c46 transparent}
.guide-scroll-target.profile-skills{padding-right:8px}
.guide-tip{display:flex;flex-direction:column;overflow:hidden;font-size:16px;line-height:1.55}
.guide-tip>.eyebrow,.guide-footer{flex-shrink:0}
.guide-copy{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6d8756 transparent}
.guide-copy p{font-size:16px;line-height:1.55}
.guide-footer small{display:block;color:#bbcab8;margin-top:12px;font-size:13px;line-height:1.5}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
  main{padding-bottom:calc(90px + env(safe-area-inset-bottom));padding-left:max(18px,calc(env(safe-area-inset-left) + 12px));padding-right:max(18px,calc(env(safe-area-inset-right) + 12px))}
  .topbar{height:calc(65px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .top-actions .icon-button,.modal-header .icon-button{width:44px;height:44px;min-width:44px}
  input,select{font-size:16px}
  .btn{min-height:48px}
  .self-skills .profile-skills .btn{width:48px;min-height:48px}
  .guide-tip{padding:18px;border-radius:16px}
  .guide-tip .btn{width:100%;font-size:14px}
  .settings-row .switch{width:52px;height:44px;border:0;background:transparent;flex-shrink:0}
  .settings-row .switch:before{content:'';position:absolute;inset:9px 3px;border:1px solid #476140;border-radius:25px;background:#2f3e31}
  .settings-row .switch>span{top:13px;left:7px}
  .settings-row .switch.on:before{background:#5d8b3e;border-color:#8eb867}
  .settings-row .switch.on>span{left:28px}
  .training-sheet{scroll-padding-top:90px;scroll-padding-bottom:max(24px,env(safe-area-inset-bottom))}
}

/* Opening scene: a deliberate start, then one playable line at a time. */
.intro-screen .resource-strip,.intro-screen .mobile-nav{display:none}
.intro-screen main{padding-bottom:32px}
.story-launch{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center}
.story-launch .story-art{margin:0;min-height:230px}
.story-invitation h2{font-size:28px;margin:12px 0}
.story-invitation p{font-size:16px;color:var(--muted);line-height:1.65;margin-bottom:24px}
.story-invitation .btn{min-height:52px;font-size:15px}
.story-caption{text-align:center;color:var(--muted);font-size:13px;margin-top:24px}
.dialogue-backdrop{background:#08130ee8;backdrop-filter:blur(10px)}
.dialogue-sheet{position:relative;display:flex;flex-direction:column;width:720px;max-height:calc(100dvh - 32px);padding:28px;background:radial-gradient(ellipse at top,#2b432a,#18251e 65%);border-color:#698754;animation:dialogueIn .3s ease-out;scroll-padding:24px;overflow:hidden}
.dialogue-heading,.dialogue-cast,.dialogue-controls{flex-shrink:0}
.dialogue-heading{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}
.dialogue-heading .eyebrow{margin:0;color:var(--green)}
.dialogue-heading h2{grid-column:1/-1;font-size:23px;margin-top:8px}
.dialogue-step{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.dialogue-cast{display:flex;align-items:center;justify-content:center;gap:28px;padding:26px 0 24px}
.dialogue-character{display:flex;flex-direction:column;align-items:center;gap:8px;color:#839480;font-size:12px;opacity:.5;transition:opacity .2s}
.dialogue-character.speaking{color:var(--green);opacity:1}
.character-avatar{display:grid;place-items:center;width:70px;height:70px;border:1px solid #496143;border-radius:22px;background:#243426;box-shadow:inset 0 0 25px #ffffff05}
.character-avatar .icon{width:30px;height:30px}
.dialogue-character.speaking .character-avatar{border-color:var(--green);background:#314926;box-shadow:0 0 25px #b5ef6915}
.dialogue-character.player .character-avatar{background:#293544;border-color:#485d6f}
.dialogue-character.player.speaking{color:#d3e8ff}
.dialogue-character.player.speaking .character-avatar{border-color:#b1d5ed}
.dialogue-connection{display:flex;gap:7px;padding-bottom:20px}
.dialogue-connection i{height:4px;width:4px;background:#62785b;border-radius:50%}
.dialogue-body{position:relative;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#587044 transparent}
.dialogue-speaker{display:inline-block;margin:0 0 10px 2px;font-size:13px;font-weight:650;color:var(--green)}
.dialogue-message{width:100%;display:block;min-height:132px;background:#1b2b21;border:1px solid #506647;border-radius:14px;padding:22px;text-align:left;font-size:18px;line-height:1.65;color:var(--text);animation:lineIn .22s ease-out;touch-action:manipulation}
.dialogue-message.player{background:#283b2b;border-color:#709557}
.dialogue-message:hover{border-color:#a0c279}
.dialogue-cursor{display:inline-block;width:2px;height:1em;background:var(--green);margin-left:3px;vertical-align:-.1em;animation:cursorBlink .75s steps(2) infinite}
.dialogue-sheet:not(.is-typing) .dialogue-cursor{display:none}
.dialogue-tap-hint{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 24px;min-height:18px}
.dialogue-controls{display:flex;align-items:center;gap:16px}
.dialogue-controls .btn{min-height:48px;font-size:14px}
.dialogue-controls [data-dialogue-next]{margin-left:auto}
.dialogue-controls .back-arrow{transform:rotate(180deg)}
.dialogue-dots{display:flex;gap:6px}
.dialogue-dots i{width:5px;height:5px;border-radius:50%;background:#40533c}
.dialogue-dots .current{width:18px;border-radius:4px;background:var(--green)}
.dialogue-dots .read{background:#7c9b5d}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes dialogueIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes lineIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes cursorBlink{50%{opacity:0}}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .story-launch{grid-template-columns:1fr;gap:20px}
 .story-launch .story-art{min-height:130px;height:130px}
 .story-intro{padding:20px}
 .story-invitation h2{font-size:24px;margin:8px 0}
 .story-invitation p{font-size:15px;margin-bottom:18px}
 .story-invitation{display:flex;flex-direction:column}
 .story-invitation>.btn{order:-1;margin-bottom:22px}
 .story-caption{font-size:12px;margin-top:18px}
 .intro-screen .page-heading{margin-bottom:20px}
 .intro-screen .page-heading h1{font-size:27px}
 .dialogue-backdrop{padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));align-items:center}
 .dialogue-sheet{width:100%;max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - env(safe-area-inset-bottom));padding:20px;border-radius:22px}
 .dialogue-heading h2{font-size:20px}
 .dialogue-heading .eyebrow{font-size:9px;letter-spacing:.08em}
 .dialogue-cast{padding:20px 0;gap:22px}
 .character-avatar{width:58px;height:58px;border-radius:18px}
 .dialogue-message{font-size:16px;line-height:1.65;padding:18px;min-height:158px}
 .dialogue-controls{flex-wrap:wrap;gap:12px}
 .dialogue-controls [data-dialogue-next]{order:-1;flex:1 0 100%;font-size:15px}
 .dialogue-controls>.ghost{min-height:44px;padding:8px 14px;font-size:13px}
 .dialogue-dots{margin-left:auto}
 .dialogue-tap-hint{margin-bottom:18px}
}
@media(max-width:1000px) and (max-height:500px){
 .story-launch{grid-template-columns:1fr 1fr}
 .dialogue-sheet{max-width:760px;padding:18px 24px}
 .dialogue-heading h2{font-size:18px;margin-top:3px}
 .dialogue-cast{display:none}
 .dialogue-character{font-size:10px;gap:4px}
 .character-avatar{height:42px;width:42px;border-radius:13px}
 .character-avatar .icon{height:22px;width:22px}
 .dialogue-connection{gap:4px}
 .dialogue-body{margin-top:18px}
 .dialogue-speaker{margin-bottom:8px}
 .dialogue-message{min-height:100px;padding:14px 18px}
 .dialogue-tap-hint{margin:8px 0 12px}
 .dialogue-controls{flex-wrap:nowrap}
 .dialogue-controls [data-dialogue-next]{order:0;flex:0 1 auto}
}
/* ===== FIRST ORDER — clean cinematic onboarding ===== */
body.intro-screen{min-height:100vh;background:#09140f}
body.intro-screen #app{min-height:100vh}
.onboarding-shell{min-height:100vh;color:var(--text);background:radial-gradient(circle at 22% 35%,rgba(181,239,105,.055),transparent 34%),#09140f}
.onboarding-header{height:72px;padding:0 clamp(22px,4vw,56px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(181,239,105,.1)}
.onboarding-logo{display:flex;align-items:center;gap:11px}.onboarding-logo>span:last-child{display:flex;flex-direction:column}.onboarding-logo .brand-mark{width:34px;height:34px}.onboarding-logo b{font-size:20px;letter-spacing:-.04em}.onboarding-logo b i{color:#c7d1cb;font-style:normal;font-weight:400}.onboarding-logo small{margin-top:4px;color:#71867a;font-size:7px;letter-spacing:.18em}.onboarding-step{padding:7px 12px;border:1px solid #30483a;border-radius:999px;color:#91a399;font-size:10px}
.onboarding-main{width:min(1080px,calc(100% - 48px));min-height:calc(100vh - 72px);margin:0 auto;padding:28px 0;display:grid;place-items:center}
.first-order-card{width:100%;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);overflow:hidden;border:1px solid #35513f;border-radius:26px;background:#102019;box-shadow:0 32px 100px rgba(0,0,0,.28)}
.first-order-visual{position:relative;min-height:500px;display:grid;place-items:center;overflow:hidden;background:#14271e}
.first-order-photo-bg{position:absolute;inset:-24px;background:url("spitsa-workshop.webp?r=ab1a4acadd") center/cover no-repeat;filter:blur(24px) brightness(.55) saturate(.8);transform:scale(1.08);opacity:.7}
.first-order-photo{position:relative;z-index:1;width:100%;height:100%;max-height:560px;display:block;object-fit:contain}
.first-order-visual:after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(5,15,10,.16),transparent 35%,rgba(5,15,10,.22))}
.first-order-photo-label{position:absolute;z-index:3;top:22px;left:24px;display:flex;flex-direction:column;text-shadow:0 2px 18px rgba(0,0,0,.55)}.first-order-photo-label span{color:#d8e3dc;font-size:8px;font-weight:800;letter-spacing:.18em}.first-order-photo-label strong{margin-top:3px;color:#fff;font-size:26px;line-height:1;letter-spacing:-.045em}
.first-order-content{min-width:0;padding:clamp(30px,4vw,52px);display:flex;flex-direction:column;justify-content:center}.onboarding-eyebrow{display:block;margin-bottom:14px;color:var(--green);font-size:9px;font-weight:800;letter-spacing:.18em}.first-order-content h1{max-width:470px;margin:0 0 26px;font-size:clamp(38px,4vw,56px);line-height:1.02;letter-spacing:-.055em}
.client-card{display:flex;align-items:center;gap:11px;margin-bottom:13px}.client-photo{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#172610;font-weight:800}.client-card>div:last-child{display:flex;flex-direction:column}.client-card strong{font-size:13px}.client-card span{margin-top:2px;color:#82968a;font-size:10px}
.client-quote{margin:0 0 20px;padding:17px 18px;border:1px solid #31483a;border-radius:14px;background:rgba(255,255,255,.025);color:#dce5df;font-size:14px;font-style:normal;line-height:1.6}
.first-order-bottom{display:grid;gap:12px}.order-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px}.order-summary>div{min-height:64px;padding:11px 13px;display:flex;align-items:center;gap:10px;border:1px solid #2e4236;border-radius:13px;background:rgba(255,255,255,.02)}.order-summary>div>.icon{width:18px;color:var(--green)}.order-summary span{display:flex;flex-direction:column}.order-summary small{color:#788d81;font-size:9px}.order-summary strong{margin-top:2px;font-size:15px}.onboarding-cta{width:100%;min-height:52px;border-radius:13px;font-size:14px}
@media(min-width:901px) and (max-height:760px){.onboarding-header{height:62px}.onboarding-main{min-height:calc(100vh - 62px);padding:18px 0}.first-order-visual{min-height:420px}.first-order-photo{max-height:470px}.first-order-content{padding:30px 34px}.first-order-content h1{margin-bottom:20px;font-size:43px}}
@media(max-width:900px){.onboarding-main{width:min(680px,calc(100% - 32px));padding:22px 0 38px}.first-order-card{grid-template-columns:1fr}.first-order-visual{min-height:0}.first-order-photo{width:100%;height:auto;max-height:none;object-fit:contain}.first-order-content{padding:30px}.first-order-content h1{max-width:none}}
@media(max-width:600px){.onboarding-header{height:62px;padding:0 15px}.onboarding-logo small{display:none}.onboarding-logo b{font-size:16px}.onboarding-logo .brand-mark{width:29px;height:29px}.onboarding-step{padding:5px 8px;font-size:8px}.onboarding-main{width:auto;min-height:auto;margin:0;padding:14px 12px calc(28px + env(safe-area-inset-bottom))}.first-order-card{border-radius:19px}.first-order-photo-label{top:15px;left:16px}.first-order-photo-label strong{font-size:21px}.first-order-content{padding:22px 17px 18px}.onboarding-eyebrow{margin-bottom:9px;font-size:8px}.first-order-content h1{margin-bottom:18px;font-size:32px}.client-quote{padding:14px;margin-bottom:14px;font-size:13px}.order-summary>div{min-height:58px;padding:9px 10px}.order-summary strong{font-size:14px}.onboarding-cta{min-height:50px}}
@media(max-width:370px){.onboarding-step{display:none}.order-summary{grid-template-columns:1fr}}

/* ===== START SCREEN FINAL SIZE ===== */

body.intro-screen {
  overflow: hidden;
}

body.intro-screen .onboarding-main {
  width: 1180px;
  max-width: calc(100vw - 48px);
  min-height: calc(100vh - 72px);
  padding: 24px 0;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

body.intro-screen .first-order-card {
  width: 100%;
  height: 520px;

  display: grid;
  grid-template-columns: 57% 43%;

  overflow: hidden;
  border-radius: 24px;
}

/* ЛЕВАЯ ЧАСТЬ */

body.intro-screen .first-order-visual {
  position: relative;

  width: 100%;
  height: 520px;
  min-height: 0;

  overflow: hidden;
}

/* никакого размытого дубля */

body.intro-screen .first-order-photo-bg {
  display: none;
}

/* картинка ограничена размером контейнера */

body.intro-screen .first-order-photo {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;
}

/* ПРАВАЯ ЧАСТЬ */

body.intro-screen .first-order-content {
  height: 480px;

  padding: 34px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.intro-screen .first-order-content h1 {
  margin: 0 0 18px;

  font-size: 42px;
  line-height: 1.02;
}

body.intro-screen .client-card {
  margin-bottom: 10px;
}

body.intro-screen .client-quote {
  margin: 0 0 12px;
  padding: 13px 15px;

  font-size: 13px;
}

body.intro-screen .order-summary > div {
  min-height: 56px;
}

body.intro-screen .onboarding-cta {
  min-height: 48px;
}

/* На узких экранах уже разрешаем вертикальный layout */

@media (max-width: 900px) {
  body.intro-screen {
    overflow: auto;
  }

  body.intro-screen .onboarding-main {
    width: calc(100% - 28px);
    max-width: 620px;
    min-height: auto;
  }

  body.intro-screen .first-order-card {
    height: auto;
    grid-template-columns: 1fr;
  }

  body.intro-screen .first-order-visual {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  body.intro-screen .first-order-content {
    height: auto;
    padding: 24px 20px;
  }
}

/* ==================================================
   GEN Z GUIDE — LERA
   ================================================== */

/* Старое затемнение больше не используется */

.guide-active main {
  padding-bottom: inherit;
}


/* Мягко подсвечиваем нужное действие */

.guide-highlight {
  outline: 2px solid #b5ef69 !important;
  outline-offset: 5px;

  box-shadow:
    0 0 0 6px rgba(181, 239, 105, .08),
    0 0 28px rgba(181, 239, 105, .10);

  transition:
    outline .2s ease,
    box-shadow .2s ease;
}


/* ЛЕРА */

.guide-coach {
  position: fixed;

  top: var(--coach-top, 120px);
  bottom: auto;

  z-index: 90;

  width: 370px;

  display: flex;
  align-items: flex-end;
  gap: 10px;

  padding: 0;

  background: transparent;
  border: 0;
  box-shadow: none;

  pointer-events: none;
}

/* ЭТО УЖЕ ОТДЕЛЬНЫЙ БЛОК */
.guide-coach.coach-right {
  right: 24px;
  left: auto;
}

/* И ЭТО ОТДЕЛЬНЫЙ БЛОК */
.guide-coach.coach-left {
  left: 290px;
  right: auto;
}

.guide-bubble {
  width: 280px;

  padding: 15px 16px;

  border: 1px solid rgba(181, 239, 105, .35);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(31, 57, 42, .98),
      rgba(17, 35, 26, .98)
    );

  box-shadow:
    0 20px 55px rgba(0, 0, 0, .36);

  backdrop-filter: blur(16px);

  transform-origin: bottom left;

  animation:
    sberBubbleIn .28s ease-out .2s both;
}

.guide-coach.coach-left .guide-bubble {
  transform-origin: bottom right;
}

.guide-bubble > p {
  margin: 10px 0 0;

  color: #dce6df;

  font-size: 13px;
  line-height: 1.5;
}

.guide-bot-pop {
  flex: 0 0 62px;

  animation:
    sberBotArrive .48s cubic-bezier(.18, 1.5, .4, 1) both;
}

@keyframes sberBotArrive {
  0% {
    opacity: 0;

    transform:
      translateY(30px)
      scale(.55)
      rotate(-12deg);
  }

  65% {
    opacity: 1;

    transform:
      translateY(-7px)
      scale(1.08)
      rotate(3deg);
  }

  100% {
    opacity: 1;

    transform:
      translateY(0)
      scale(1)
      rotate(0);
  }
}

@keyframes sberBubbleIn {
  from {
    opacity: 0;

    transform:
      translateY(8px)
      scale(.94);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

.guide-bubble .btn {
  pointer-events: auto;
}

/* И ЭТО ТОЖЕ ОТДЕЛЬНЫЙ БЛОК */
.guide-coach .btn {
  pointer-events: auto;
}


/* персонаж */

.guide-coach-person {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 11px;
}

.guide-coach-avatar {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: rgba(181, 239, 105, .12);

  font-size: 21px;
}

.guide-coach-person > div {
  display: flex;
  flex-direction: column;
}

.guide-coach-person strong {
  color: #f2f5ef;

  font-size: 13px;
}

.guide-coach-person small {
  margin-top: 1px;

  color: #789184;

  font-size: 9px;
}


/* реплика */

.guide-coach > p {
  margin: 0;

  color: #dce6df;

  font-size: 14px;
  line-height: 1.5;
}


/* низ */

.guide-coach-footer {
  margin-top: 13px;

  display: flex;
  align-items: center;
}

.guide-coach-footer > span {
  color: #789184;

  font-size: 10px;
}

.guide-coach-footer .btn {
  margin: 0;

  min-height: 36px;

  padding: 8px 12px;

  font-size: 11px;
}


/* чуть-чуть жизни */

@keyframes coachIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.guide-coach {
  animation: coachIn .22s ease-out;
}


/* MOBILE */

@media (max-width: 760px) {

  .guide-coach {
    right: 12px;
    bottom: calc(
      82px + env(safe-area-inset-bottom)
    );

    width: calc(100vw - 24px);

    padding: 14px;

    border-radius: 16px;
  }

  .guide-coach > p {
    font-size: 13px;
  }

  .guide-active .mobile-nav {
    display: flex;
  }

}

/* ==================================================
   SBER BOT
   ================================================== */

.guide-coach-person {
  position: relative;

  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 64px;
  margin-bottom: 10px;
}


/* BOT WRAPPER */

.sber-bot {
  position: relative;

  width: 58px;
  height: 66px;

  flex: 0 0 58px;

  animation:
    botPop .48s cubic-bezier(.2,1.5,.45,1) both,
    botFloat 3s ease-in-out .5s infinite;
}


/* ANTENNA */

.bot-antenna {
  position: absolute;

  left: 50%;
  top: 0;

  width: 2px;
  height: 13px;

  transform: translateX(-50%);

  background: #7e9d87;

  border-radius: 3px;
}

.bot-antenna i {
  position: absolute;

  left: 50%;
  top: -4px;

  width: 8px;
  height: 8px;

  transform: translateX(-50%);

  border-radius: 50%;

  background: #b5ef69;

  box-shadow:
    0 0 10px rgba(181,239,105,.6);

  animation: botAntenna 1.8s ease-in-out infinite;
}


/* HEAD */

.bot-head {
  position: absolute;

  top: 10px;
  left: 5px;

  width: 48px;
  height: 40px;

  padding: 5px;

  border: 1px solid rgba(181,239,105,.5);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #294738,
      #132b21
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.06),
    0 7px 18px rgba(0,0,0,.3);
}


/* FACE */

.bot-face {
  position: relative;

  width: 100%;
  height: 100%;

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      #081b14,
      #10261c
    );

  overflow: hidden;
}


/* EYES */

.bot-eye {
  position: absolute;

  top: 10px;

  width: 6px;
  height: 7px;

  border-radius: 50%;

  background: #b5ef69;

  box-shadow:
    0 0 8px rgba(181,239,105,.5);

  animation: botBlink 4.5s infinite;
}

.bot-eye-left {
  left: 9px;
}

.bot-eye-right {
  right: 9px;
}


/* MOUTH */

.bot-mouth {
  position: absolute;

  left: 50%;
  bottom: 7px;

  width: 12px;
  height: 5px;

  transform: translateX(-50%);

  border-bottom:
    2px solid rgba(181,239,105,.8);

  border-radius: 50%;
}


/* BODY */

.bot-body {
  position: absolute;

  left: 14px;
  bottom: 0;

  width: 30px;
  height: 23px;

  display: grid;
  place-items: center;

  border: 1px solid #3d5a48;
  border-radius: 8px 8px 11px 11px;

  background:
    linear-gradient(
      145deg,
      #254233,
      #142b21
    );
}

.bot-logo {
  display: grid;
  place-items: center;

  color: #b5ef69;
}

.bot-logo .icon {
  width: 13px;
  height: 13px;
}


/* NAME */

.guide-coach-name {
  display: flex;
  flex-direction: column;
}

.guide-coach-name strong {
  font-size: 14px;
  color: #f2f5ef;
}

.guide-coach-name small {
  margin-top: 2px;

  font-size: 9px;
  color: #789184;
}


/* ==================================================
   ANIMATION
   ================================================== */

@keyframes botPop {

  0% {
    opacity: 0;

    transform:
      translateY(28px)
      scale(.65)
      rotate(-8deg);
  }

  65% {
    opacity: 1;

    transform:
      translateY(-5px)
      scale(1.07)
      rotate(2deg);
  }

  100% {
    opacity: 1;

    transform:
      translateY(0)
      scale(1)
      rotate(0);
  }

}


@keyframes botFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

}


@keyframes botBlink {

  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }

  46% {
    transform: scaleY(.08);
  }

}


@keyframes botAntenna {

  0%,
  100% {
    opacity: .65;
    transform: translateX(-50%) scale(.8);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }

}

/* ===== LIGHT FIRST PROJECT ===== */

.lite-client-message {
  display: flex;
  align-items: center;
  gap: 12px;

  max-width: 680px;

  margin-bottom: 22px;
  padding: 14px 16px;

  border: 1px solid #304438;
  border-radius: 14px;

  background: #14241c;
}

.lite-client-message p {
  margin-top: 3px;

  color: #91a399;

  font-size: 12px;
}


.lite-planning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;

  align-items: start;
}


.lite-tasks {
  display: grid;
  gap: 14px;
}


.lite-task {
  padding: 20px;

  border: 1px solid #304438;
  border-radius: 16px;

  background: #16251e;

  transition:
    border-color .2s,
    background .2s;
}

.lite-task.done {
  border-color: #466341;
  background: #192a20;
}


.lite-task-top {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.lite-task-emoji {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background: #21372a;

  font-size: 22px;
}

.lite-task-domain {
  color: #789184;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lite-task h3 {
  margin-top: 3px;

  font-size: 18px;
}

.lite-task p {
  margin-top: 7px;

  color: #91a399;

  font-size: 12px;
}


.lite-task-actions {
  margin-top: 18px;

  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


.lite-choice {
  min-height: 42px;

  padding: 10px 14px;

  display: inline-flex;
  align-items: center;

  border-radius: 9px;

  font-size: 12px;
}

.lite-choice.ready {
  color: #c9eab4;
  background: #203426;
  border: 1px solid #3c573e;
}


/* FORECAST */

.lite-forecast {
  position: sticky;
  top: 20px;

  padding: 20px;

  border: 1px solid #304438;
  border-radius: 16px;

  background: #14231c;
}


.lite-metrics {
  display: grid;
  gap: 8px;

  margin: 16px 0;
}

.lite-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px;

  border-radius: 10px;

  background: #1a2c22;
}

.lite-metrics small {
  color: #789184;
}

.lite-metrics strong {
  font-size: 14px;
}


.lite-profit {
  display: flex;
  justify-content: space-between;

  margin: 8px 0 16px;

  padding-top: 14px;

  border-top: 1px solid #304438;
}

.lite-profit span {
  color: #789184;

  font-size: 11px;
}

.lite-profit strong {
  color: #b5ef69;
}


.lite-empty {
  margin: 15px 0;

  color: #789184;

  font-size: 12px;
  line-height: 1.6;
}


/* MOBILE */

@media (max-width: 900px) {

  .lite-planning {
    grid-template-columns: 1fr;
  }

  .lite-forecast {
    position: static;
  }

}

/* =========================================================
   RESULT CELEBRATION
   ========================================================= */

.result-celebration {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 8px 4px 4px;

  text-align: center;
}

.result-kicker {
  margin-top: 6px;

  color: #b5ef69;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.result-title {
  margin: 8px 0 4px;

  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;

  color: #f5f8f5;
}

.result-project {
  margin: 0;

  color: rgba(230, 241, 233, .62);
  font-size: 14px;
}


/* Сберик */

.result-sberik {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin: 28px 0 24px;
}

.result-sberik .sber-bot {
  transform: scale(1.15);

  animation:
    resultBotJump .75s cubic-bezier(.2, 1.5, .4, 1) both,
    botHappyFloat 2.4s ease-in-out .8s infinite;
}

.result-sberik-bubble {
  min-width: 180px;

  padding: 12px 16px;

  text-align: left;

  border: 1px solid rgba(181, 239, 105, .28);
  border-radius: 16px 16px 16px 5px;

  background:
    linear-gradient(
      145deg,
      rgba(35, 64, 46, .98),
      rgba(20, 39, 29, .98)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .28);

  animation:
    resultBubbleIn .35s ease-out .35s both;
}

.result-sberik-bubble strong {
  display: block;

  color: #b5ef69;

  font-size: 12px;
}

.result-sberik-bubble p {
  margin: 3px 0 0;

  color: #f5f8f5;

  font-size: 15px;
  font-weight: 700;
}


/* Награды */

.result-rewards {
  width: 100%;

  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
}

.result-reward {
  padding: 17px 12px;

  border: 1px solid rgba(181, 239, 105, .13);
  border-radius: 16px;

  background:
    rgba(255, 255, 255, .035);

  animation:
    resultRewardIn .45s ease-out both;
}

.result-reward:nth-child(2) {
  animation-delay: .08s;
}

.result-reward:nth-child(3) {
  animation-delay: .16s;
}

.result-reward.main {
  background:
    linear-gradient(
      135deg,
      rgba(181, 239, 105, .16),
      rgba(181, 239, 105, .05)
    );

  border-color:
    rgba(181, 239, 105, .32);
}

.result-reward small {
  display: block;

  margin-bottom: 7px;

  color: rgba(226, 238, 229, .55);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.result-reward strong {
  color: #f5f8f5;

  font-size: 22px;
}

.result-reward.main strong {
  color: #b5ef69;

  font-size: 27px;
}


/* Клиент */

.result-client {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 18px;
  padding: 15px 17px;

  text-align: left;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, .04);
}

.result-client .client-photo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.result-client span {
  display: block;

  margin-bottom: 3px;

  color: #b5ef69;

  font-size: 12px;
  font-weight: 800;
}

.result-client p {
  margin: 0;

  color: #edf3ee;

  line-height: 1.45;
}


/* Мемная строка */

.result-meme {
  margin: 16px 0;

  color: rgba(223, 236, 227, .68);

  font-size: 13px;
}


/* Подробнее */

.result-details {
  width: 100%;

  margin-bottom: 18px;

  text-align: left;

  border-top:
    1px solid rgba(190, 224, 199, .12);
}

.result-details summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 15px 0;

  cursor: pointer;

  color: rgba(225, 238, 229, .64);

  font-size: 12px;
  font-weight: 700;

  list-style: none;
}

.result-details summary::-webkit-details-marker {
  display: none;
}

.result-details summary .icon {
  width: 14px;

  transition: transform .2s ease;
}

.result-details[open] summary .icon {
  transform: rotate(90deg);
}

.result-details-body {
  padding-bottom: 12px;
}

.result-compare {
  display: grid;
  gap: 8px;
}

.result-compare > div {
  display: grid;
  grid-template-columns:
    1.2fr .7fr .8fr .7fr .8fr;

  align-items: center;
  gap: 8px;

  padding: 10px 12px;

  border-radius: 12px;

  background:
    rgba(255, 255, 255, .035);
}

.result-compare span {
  color: #eef4ef;

  font-size: 12px;
  font-weight: 700;
}

.result-compare small {
  color: rgba(220, 235, 224, .42);

  font-size: 10px;
}

.result-compare b,
.result-compare strong {
  font-size: 12px;
}

.result-compare strong {
  color: #b5ef69;
}


/* Конфетти */

.result-confetti i {
  position: absolute;

  color: #b5ef69;

  font-style: normal;

  opacity: 0;

  animation:
    resultConfetti 1.6s ease-out forwards;
}

.result-confetti i:nth-child(1) {
  left: 10%;
  top: 15%;
}

.result-confetti i:nth-child(2) {
  left: 24%;
  top: 8%;

  animation-delay: .12s;
}

.result-confetti i:nth-child(3) {
  right: 12%;
  top: 12%;

  animation-delay: .06s;
}

.result-confetti i:nth-child(4) {
  right: 28%;
  top: 5%;

  animation-delay: .18s;
}

.result-confetti i:nth-child(5) {
  left: 48%;
  top: 2%;

  animation-delay: .1s;
}


@keyframes resultBotJump {
  0% {
    opacity: 0;
    transform:
      translateY(35px)
      scale(.6)
      rotate(-10deg);
  }

  65% {
    opacity: 1;
    transform:
      translateY(-9px)
      scale(1.22)
      rotate(4deg);
  }

  100% {
    transform:
      translateY(0)
      scale(1.15)
      rotate(0);
  }
}

@keyframes resultBubbleIn {
  from {
    opacity: 0;
    transform:
      translateX(-8px)
      scale(.94);
  }

  to {
    opacity: 1;
    transform:
      translateX(0)
      scale(1);
  }
}

@keyframes resultRewardIn {
  from {
    opacity: 0;
    transform:
      translateY(15px)
      scale(.96);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes resultConfetti {
  0% {
    opacity: 0;
    transform:
      translateY(-20px)
      rotate(0);
  }

  25% {
    opacity: .9;
  }

  100% {
    opacity: 0;
    transform:
      translateY(110px)
      rotate(180deg);
  }
}


@media (max-width: 640px) {
  .result-rewards {
    grid-template-columns: 1fr;
  }

  .result-sberik {
    flex-direction: column;
  }

  .result-sberik-bubble {
    text-align: center;
  }

  .result-compare > div {
    grid-template-columns: 1fr 1fr;
  }

  .result-compare > div > span {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   RESULT — GAME FEEL
   ========================================================= */

/* Главная награда: +100 мон. */

.result-reward.main strong {
  display: inline-block;

  animation:
    rewardMoneyPop .7s cubic-bezier(.18, 1.55, .4, 1) .45s both,
    rewardMoneyGlow 1.8s ease-in-out 1.1s infinite;
}

@keyframes rewardMoneyPop {
  0% {
    opacity: 0;
    transform: scale(.55) translateY(12px);
  }

  65% {
    opacity: 1;
    transform: scale(1.14) translateY(-3px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes rewardMoneyGlow {
  0%,
  100% {
    text-shadow:
      0 0 0 rgba(181, 239, 105, 0);
  }

  50% {
    text-shadow:
      0 0 22px rgba(181, 239, 105, .42);
  }
}


/* Карточки наград появляются по очереди */

.result-reward {
  opacity: 0;
  animation:
    resultCardPop .5s cubic-bezier(.2, 1.25, .4, 1) forwards;
}

.result-reward:nth-child(1) {
  animation-delay: .30s;
}

.result-reward:nth-child(2) {
  animation-delay: .52s;
}

.result-reward:nth-child(3) {
  animation-delay: .70s;
}

@keyframes resultCardPop {
  from {
    opacity: 0;
    transform:
      translateY(16px)
      scale(.96);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* XP и навык чуть подпрыгивают */

.result-reward:nth-child(2) strong {
  display: inline-block;

  animation:
    rewardSmallPop .45s ease-out .75s both;
}

.result-reward:nth-child(3) strong {
  display: inline-block;

  animation:
    rewardSmallPop .45s ease-out .92s both;
}

@keyframes rewardSmallPop {
  from {
    opacity: 0;
    transform:
      translateY(8px)
      scale(.8);
  }

  70% {
    opacity: 1;
    transform:
      translateY(-2px)
      scale(1.08);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* Алексей появляется после наград */

.result-client {
  opacity: 0;

  animation:
    resultClientIn .5s ease-out 1.05s forwards;
}

@keyframes resultClientIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Мемная строка появляется последней */

.result-meme {
  opacity: 0;

  animation:
    resultTextIn .4s ease-out 1.3s forwards;
}

@keyframes resultTextIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Кнопка награды слегка оживает */

.result-celebration > .btn.primary {
  position: relative;
  overflow: hidden;

  animation:
    rewardButtonIn .5s ease-out 1.45s both;
}

.result-celebration > .btn.primary::after {
  content: '';

  position: absolute;
  top: 0;
  left: -45%;

  width: 30%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, .25),
      transparent
    );

  transform: skewX(-18deg);

  animation:
    rewardButtonShine 2.8s ease-in-out 2s infinite;
}

@keyframes rewardButtonIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rewardButtonShine {
  0%,
  65% {
    left: -45%;
  }

  100% {
    left: 120%;
  }
}


/* Если в настройках отключены анимации */

body.no-motion .result-reward,
body.no-motion .result-reward strong,
body.no-motion .result-client,
body.no-motion .result-meme,
body.no-motion .result-celebration > .btn.primary,
body.no-motion .result-celebration > .btn.primary::after {
  animation: none !important;
  opacity: 1;
  transform: none;
}

/* =========================================================
   CLAIM REWARD
   ========================================================= */

.reward-burst {
  position: fixed;
  left: 50%;
  top: 50%;

  z-index: 300;

  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: none;

  transform:
    translate(-50%, -50%)
    scale(.7);

  animation:
    rewardBurstFly .85s
    cubic-bezier(.18, 1.3, .4, 1)
    forwards;
}

.reward-burst span {
  color: #b5ef69;

  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;

  font-weight: 900;

  text-shadow:
    0 0 18px rgba(181, 239, 105, .35),
    0 0 50px rgba(181, 239, 105, .18);
}

.reward-burst small {
  margin-top: 8px;

  color: #f4f8f4;

  font-size: 13px;
  font-weight: 700;

  opacity: .8;
}

@keyframes rewardBurstFly {
  0% {
    opacity: 0;

    transform:
      translate(-50%, -25%)
      scale(.65);
  }

  30% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1.12);
  }

  65% {
    opacity: 1;

    transform:
      translate(-50%, -75%)
      scale(1);
  }

  100% {
    opacity: 0;

    transform:
      translate(-50%, -135%)
      scale(.95);
  }
}


/* Лёгкая вспышка всего финала */

.result-celebration.reward-claiming {
  animation:
    rewardScreenPulse .6s ease-out both;
}

@keyframes rewardScreenPulse {
  0% {
    filter: brightness(1);
  }

  35% {
    filter: brightness(1.18);
  }

  100% {
    filter: brightness(1);
  }
}


body.no-motion .reward-burst,
body.no-motion
.result-celebration.reward-claiming {
  animation-duration: .01ms !important;
}

/* =========================================================
   BACKEND MINI GAME
   ========================================================= */

.backend-game {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.backend-game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.backend-game-top > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backend-game-step {
  color: #b5ef69;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.backend-game-tag {
  padding: 5px 9px;

  border-radius: 999px;

  background:
    rgba(181, 239, 105, .08);

  color:
    rgba(210, 238, 215, .7);

  font-size: 11px;
}


/* Сберик */

.backend-mini-bot {
  display: flex;
  align-items: center;
  gap: 10px;

  animation:
    backendBotIn .4s ease-out both;
}

.backend-mini-bot .sber-bot {
  transform: scale(.72);
  transform-origin: right center;

  margin:
    -12px
    -7px
    -12px
    -14px;
}

.backend-bot-copy {
  display: flex;
  flex-direction: column;

  max-width: 190px;

  text-align: left;
}

.backend-bot-copy strong {
  color: #b5ef69;

  font-size: 12px;
}

.backend-bot-copy span {
  margin-top: 2px;

  color:
    rgba(230, 240, 232, .7);

  font-size: 12px;
  line-height: 1.35;
}


/* Карточка входящей заявки */

.incoming-request {
  position: relative;
  overflow: hidden;

  padding: 22px;

  border:
    1px solid rgba(181, 239, 105, .18);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .045),
      rgba(181, 239, 105, .035)
    );

  animation:
    backendRequestIn .45s
    cubic-bezier(.2, 1.1, .4, 1)
    both;
}

.incoming-request::before {
  content: '';

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #b5ef69,
      transparent
    );

  opacity: .55;
}

.incoming-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;

  color:
    rgba(218, 235, 223, .58);

  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.incoming-request-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.incoming-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #b5ef69;

  box-shadow:
    0 0 12px rgba(181, 239, 105, .5);

  animation:
    incomingDot 1.6s ease-in-out infinite;
}

.incoming-request h2 {
  margin: 0 0 7px;

  color: #f4f7f4;

  font-size: 27px;
}

.incoming-request > p {
  margin: 0;

  color:
    rgba(225, 237, 228, .68);

  line-height: 1.5;
}


/* Payload */

.incoming-payload {
  margin-top: 18px;
  padding: 14px 16px;

  border:
    1px solid rgba(170, 214, 182, .13);

  border-radius: 13px;

  background:
    rgba(4, 16, 10, .6);
}

.incoming-payload-label {
  display: block;

  margin-bottom: 8px;

  color:
    rgba(181, 239, 105, .48);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.incoming-payload pre {
  margin: 0;

  overflow-x: auto;

  color: #eef6ef;

  font-size: 13px;
  line-height: 1.55;

  white-space: pre-wrap;
}


/* Выбор действия */

.backend-question {
  margin-top: 2px;

  color:
    rgba(229, 241, 232, .72);

  font-size: 13px;
  font-weight: 700;
}

.backend-game-choices {
  display: grid;
  gap: 9px;
}

.backend-action {
  width: 100%;

  display: grid;
  grid-template-columns:
    42px 1fr 18px;

  align-items: center;
  gap: 12px;

  padding: 13px 15px;

  border:
    1px solid rgba(180, 220, 190, .14);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, .035);

  color: #eef4ef;

  text-align: left;

  cursor: pointer;

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.backend-action:hover {
  transform:
    translateX(4px);

  border-color:
    rgba(181, 239, 105, .34);

  background:
    rgba(181, 239, 105, .07);
}

.backend-action:active {
  transform:
    translateX(2px)
    scale(.99);
}

.backend-action-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    rgba(181, 239, 105, .09);

  color: #b5ef69;
}

.backend-action-icon .icon {
  width: 19px;
  height: 19px;
}

.backend-action-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.backend-action-copy strong {
  font-size: 13px;
}

.backend-action-copy small {
  color:
    rgba(220, 235, 224, .42);

  font-size: 10px;
}

.backend-action > .icon {
  width: 16px;

  opacity: .45;
}


/* Анимации */

@keyframes backendBotIn {
  from {
    opacity: 0;
    transform:
      translateX(10px)
      scale(.95);
  }

  to {
    opacity: 1;
    transform:
      translateX(0)
      scale(1);
  }
}

@keyframes backendRequestIn {
  from {
    opacity: 0;
    transform:
      translateY(12px)
      scale(.985);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes incomingDot {
  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;

    box-shadow:
      0 0 18px
      rgba(181, 239, 105, .7);
  }
}


body.no-motion .backend-mini-bot,
body.no-motion .incoming-request,
body.no-motion .incoming-dot {
  animation: none !important;
}


@media (max-width: 640px) {

  .backend-game-top {
    flex-direction: column;
  }

  .backend-mini-bot {
    align-self: flex-start;
  }

  .incoming-request {
    padding: 17px;
  }

  .backend-action {
    grid-template-columns:
      38px 1fr 16px;
  }
}

/* =========================================================
   LIVE PROJECT MOMENTS
   ========================================================= */

.project-moment {
  position: fixed;

  top: 92px;
  right: 26px;

  z-index: 220;

  width: min(330px, calc(100vw - 32px));

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;

  border:
    1px solid rgba(181, 239, 105, .28);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(28, 52, 38, .98),
      rgba(14, 30, 22, .98)
    );

  box-shadow:
    0 20px 55px rgba(0, 0, 0, .4);

  backdrop-filter: blur(18px);

  pointer-events: none;

  animation:
    projectMomentIn .42s
    cubic-bezier(.18, 1.35, .4, 1)
    both;
}


.project-moment-avatar {
  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    rgba(181, 239, 105, .1);

  font-size: 23px;

  animation:
    projectMomentBot .55s
    cubic-bezier(.2, 1.5, .4, 1)
    both;
}


.project-moment-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;

  text-align: left;
}

.project-moment-copy strong {
  color: #b5ef69;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.project-moment-copy span {
  color: #f2f6f3;

  font-size: 13px;
  line-height: 1.4;
}


/* Happy */

.project-moment.happy {
  border-color:
    rgba(181, 239, 105, .48);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, .4),
    0 0 30px rgba(181, 239, 105, .08);
}


/* Oops */

.project-moment.oops {
  border-color:
    rgba(239, 193, 105, .32);
}

.project-moment.oops
.project-moment-avatar {
  animation:
    projectMomentOops .38s ease-out both;
}


/* Исчезновение */

.project-moment.leaving {
  animation:
    projectMomentOut .24s ease-in forwards;
}


@keyframes projectMomentIn {
  from {
    opacity: 0;

    transform:
      translateX(28px)
      scale(.94);
  }

  to {
    opacity: 1;

    transform:
      translateX(0)
      scale(1);
  }
}


@keyframes projectMomentOut {
  to {
    opacity: 0;

    transform:
      translateX(20px)
      scale(.97);
  }
}


@keyframes projectMomentBot {
  0% {
    transform:
      scale(.5)
      rotate(-12deg);
  }

  65% {
    transform:
      scale(1.12)
      rotate(5deg);
  }

  100% {
    transform:
      scale(1)
      rotate(0);
  }
}


@keyframes projectMomentOops {
  0%,
  100% {
    transform: translateX(0);
  }

  30% {
    transform:
      translateX(-3px)
      rotate(-4deg);
  }

  60% {
    transform:
      translateX(3px)
      rotate(4deg);
  }
}


body.no-motion .project-moment,
body.no-motion .project-moment-avatar {
  animation: none !important;
}


@media (max-width: 640px) {
  .project-moment {
    top: auto;
    right: 16px;
    bottom: 18px;
    left: 16px;

    width: auto;
  }
}

/* =========================================================
   LIVE PROJECT SCREEN
   ========================================================= */

.game-project-grid {
  grid-template-columns:
    minmax(0, 1fr)
    320px;

  gap: 18px;
}

.game-production-card {
  overflow: hidden;
}


/* Большой игровой прогресс */

.project-live-hero {
  position: relative;
  overflow: hidden;

  padding: 22px;

  margin-bottom: 24px;

  border:
    1px solid rgba(181, 239, 105, .18);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(181, 239, 105, .1),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(26, 49, 36, .9),
      rgba(14, 29, 21, .94)
    );

  animation:
    liveHeroIn .45s ease-out both;
}


.project-live-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}


.project-vibe {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}


.project-vibe-emoji {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  flex: 0 0 46px;

  border-radius: 14px;

  background:
    rgba(181, 239, 105, .1);

  font-size: 23px;
}


.project-vibe small {
  display: block;

  margin-bottom: 4px;

  color: #b5ef69;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}


.project-vibe strong {
  display: block;

  color: #f4f7f4;

  font-size: 18px;
}


.project-vibe p {
  margin: 4px 0 0;

  color:
    rgba(224, 237, 228, .58);

  font-size: 12px;
}


.project-big-progress {
  text-align: right;
}


.project-big-progress strong {
  display: block;

  color: #b5ef69;

  font-size: 42px;
  line-height: .9;

  letter-spacing: -.04em;

  text-shadow:
    0 0 25px
    rgba(181, 239, 105, .12);
}


.project-big-progress span {
  display: block;

  margin-top: 7px;

  color:
    rgba(220, 235, 224, .45);

  font-size: 10px;
}


/* Большой progress */

.project-live-progress {
  height: 9px;

  margin: 23px 0 18px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, .07);
}


.project-live-progress i {
  display: block;

  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #7fd54b,
      #b5ef69
    );

  box-shadow:
    0 0 18px
    rgba(181, 239, 105, .22);

  transition:
    width .45s ease;
}


/* 3 основных показателя */

.project-live-stats {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);

  gap: 8px;
}


.project-live-stats > div {
  display: grid;

  grid-template-columns:
    auto 1fr;

  column-gap: 8px;

  padding: 11px;

  border-radius: 12px;

  background:
    rgba(255, 255, 255, .035);
}


.project-live-stats > div > span {
  grid-row: 1 / 3;

  align-self: center;

  font-size: 17px;
}


.project-live-stats small {
  color:
    rgba(220, 235, 224, .42);

  font-size: 9px;
}


.project-live-stats strong {
  color: #eef5ef;

  font-size: 12px;
}


/* Задачи */

.live-task-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;

  color:
    rgba(230, 240, 233, .6);

  font-size: 11px;
  font-weight: 700;
}


.live-task-heading b {
  padding: 4px 8px;

  border-radius: 999px;

  background:
    rgba(181, 239, 105, .08);

  color: #b5ef69;

  font-size: 10px;
}


.live-task-list {
  display: grid;
  gap: 9px;
}


.live-task {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 13px 14px;

  border:
    1px solid rgba(183, 219, 193, .1);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, .025);
}


.live-task-icon {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  flex: 0 0 39px;

  border-radius: 11px;

  background:
    rgba(181, 239, 105, .07);

  font-size: 18px;
}


.live-task-main {
  flex: 1;
}


.live-task-main > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;
}


.live-task-main strong {
  color: #eef4ef;

  font-size: 12px;
}


.live-task-main span {
  color:
    rgba(225, 237, 228, .52);

  font-size: 11px;
}


.live-task-bar {
  height: 5px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, .06);
}


.live-task-bar i {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: #b5ef69;

  transition:
    width .4s ease;
}


/* Валидация */

.live-validation {
  display: grid;
  grid-template-columns:
    42px 1fr;

  gap: 12px;

  margin-top: 10px;
  padding: 14px;

  border:
    1px solid rgba(181, 239, 105, .16);

  border-radius: 14px;

  background:
    rgba(181, 239, 105, .045);
}


.live-validation-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    rgba(181, 239, 105, .09);
}


.live-validation strong {
  display: block;

  margin-bottom: 2px;

  color: #eef4ef;

  font-size: 12px;
}


.live-validation small {
  display: block;

  margin-bottom: 9px;

  color:
    rgba(220, 235, 224, .45);

  font-size: 10px;
}


/* Live события */

.project-live-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.project-events-card {
  padding: 17px;
}


.project-events-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 13px;
}


.project-events-title > div {
  display: flex;
  align-items: center;
  gap: 7px;
}


.project-events-title strong {
  color: #eef5ef;

  font-size: 13px;
}


.project-events-title small {
  color:
    rgba(220, 235, 224, .35);

  font-size: 9px;
}


.live-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #b5ef69;

  box-shadow:
    0 0 12px
    rgba(181, 239, 105, .6);

  animation:
    liveDotPulse 1.8s ease-in-out infinite;
}


.project-event {
  display: grid;
  grid-template-columns:
    18px 1fr;

  gap: 7px;

  padding: 11px 0;

  border-bottom:
    1px solid rgba(190, 220, 198, .08);
}


.project-event:last-child {
  border-bottom: 0;
}


.project-event > span {
  color:
    rgba(181, 239, 105, .55);
}


.project-event.fresh > span {
  color: #b5ef69;
}


.project-event p {
  margin: 0;

  color:
    rgba(227, 239, 230, .62);

  font-size: 11px;
  line-height: 1.45;
}


.project-event.fresh p {
  color:
    rgba(240, 247, 242, .9);
}


.project-event-empty {
  padding: 18px 4px;

  text-align: center;

  color:
    rgba(220, 235, 224, .4);

  font-size: 11px;
  line-height: 1.6;
}


/* маленький мем */

.project-side-meme {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 13px 15px;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, .025);

  color:
    rgba(222, 236, 226, .45);
}


.project-side-meme p {
  margin: 0;

  font-size: 10px;
  line-height: 1.45;
}


.project-side-meme strong {
  color:
    rgba(225, 240, 230, .72);
}


@keyframes liveHeroIn {
  from {
    opacity: 0;
    transform:
      translateY(10px)
      scale(.99);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


@keyframes liveDotPulse {
  0%,
  100% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }
}


body.no-motion .project-live-hero,
body.no-motion .live-dot {
  animation: none !important;
}


@media (max-width: 900px) {

  .game-project-grid {
    grid-template-columns: 1fr;
  }

  .project-live-stats {
    grid-template-columns: 1fr;
  }

  .project-live-top {
    flex-direction: column;
  }

  .project-big-progress {
    text-align: left;
  }
}

/* =========================================================
   DAY TRANSITION
   ========================================================= */

.day-transition {
  position: fixed;
  inset: 0;

  z-index: 260;

  display: grid;
  place-items: center;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(181, 239, 105, .08),
      transparent 35%
    );

  animation:
    dayOverlayIn .28s ease-out both;
}

.day-transition-inner {
  min-width: 270px;

  padding: 28px 34px;

  text-align: center;

  border:
    1px solid rgba(181, 239, 105, .26);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(25, 50, 35, .96),
      rgba(11, 25, 18, .97)
    );

  box-shadow:
    0 28px 80px rgba(0, 0, 0, .46),
    0 0 50px rgba(181, 239, 105, .06);

  backdrop-filter: blur(18px);

  animation:
    dayCardIn .48s
    cubic-bezier(.18, 1.45, .4, 1)
    both;
}

.day-transition-inner > span {
  display: block;

  color: #b5ef69;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .25em;
}

.day-transition-inner > strong {
  display: block;

  margin: 7px 0 5px;

  color: #f5f8f5;

  font-size: 72px;
  line-height: .95;

  letter-spacing: -.06em;

  text-shadow:
    0 0 30px rgba(181, 239, 105, .15);
}

.day-transition-inner p {
  margin: 10px 0 0;

  color:
    rgba(230, 241, 233, .7);

  font-size: 13px;
  font-weight: 600;
}

.day-transition.leaving {
  animation:
    dayOverlayOut .28s ease-in forwards;
}

.day-transition.leaving
.day-transition-inner {
  animation:
    dayCardOut .28s ease-in forwards;
}


@keyframes dayOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dayOverlayOut {
  to {
    opacity: 0;
  }
}

@keyframes dayCardIn {
  from {
    opacity: 0;

    transform:
      translateY(16px)
      scale(.82);
  }

  65% {
    opacity: 1;

    transform:
      translateY(-4px)
      scale(1.04);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes dayCardOut {
  to {
    opacity: 0;

    transform:
      translateY(-8px)
      scale(.96);
  }
}


body.no-motion .day-transition,
body.no-motion .day-transition-inner {
  animation-duration: .01ms !important;
}

/* =========================================================
   TASK COMPLETE
   ========================================================= */

.live-task {
  position: relative;
  overflow: hidden;

  transition:
    border-color .3s ease,
    background .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}


.live-task.done {
  border-color:
    rgba(181, 239, 105, .28);

  background:
    linear-gradient(
      135deg,
      rgba(181, 239, 105, .08),
      rgba(181, 239, 105, .025)
    );
}


.live-task.done
.live-task-icon {
  background:
    rgba(181, 239, 105, .15);

  transform:
    scale(1.04);
}


.live-task-status {
  transition:
    color .25s ease,
    transform .25s ease;
}


.live-task.done
.live-task-status {
  color: #b5ef69;

  font-weight: 800;
}


/* Момент завершения */

.live-task.just-completed {
  animation:
    taskCompletePop .65s
    cubic-bezier(.18, 1.3, .4, 1)
    both;

  box-shadow:
    0 0 0 1px
      rgba(181, 239, 105, .22),
    0 0 35px
      rgba(181, 239, 105, .13);
}


.live-task.just-completed::after {
  content: '✓';

  position: absolute;

  top: 50%;
  right: 20px;

  color: #b5ef69;

  font-size: 38px;
  font-weight: 900;

  pointer-events: none;

  animation:
    taskCheckPop .7s
    cubic-bezier(.18, 1.4, .4, 1)
    both;
}


@keyframes taskCompletePop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.018);
  }

  100% {
    transform: scale(1);
  }
}


@keyframes taskCheckPop {
  0% {
    opacity: 0;

    transform:
      translateY(-50%)
      scale(.3)
      rotate(-18deg);
  }

  55% {
    opacity: .9;

    transform:
      translateY(-50%)
      scale(1.18)
      rotate(4deg);
  }

  100% {
    opacity: 0;

    transform:
      translateY(-50%)
      scale(1)
      rotate(0);
  }
}


body.no-motion
.live-task.just-completed,
body.no-motion
.live-task.just-completed::after {
  animation: none !important;
}

/* =========================================================
   LEVEL UP
   ========================================================= */

.level-up-screen {
  width: min(920px, 100%);
  margin: 0 auto;

  animation:
    levelUpScreenIn .45s ease-out both;
}


.level-up-hero {
  position: relative;
  overflow: hidden;

  padding: 30px;

  text-align: center;

  border:
    1px solid rgba(181, 239, 105, .2);

  border-radius: 24px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(181, 239, 105, .13),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(28, 53, 39, .96),
      rgba(13, 29, 21, .98)
    );

  box-shadow:
    0 24px 70px rgba(0, 0, 0, .22);
}


.level-up-kicker {
  color: #b5ef69;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
}


.level-up-hero h1 {
  margin: 9px 0 7px;

  color: #f5f8f5;

  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
}


.level-up-hero > p {
  margin: 0;

  color:
    rgba(229, 240, 232, .62);

  font-size: 14px;
}


/* Сберик */

.level-up-sberik {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin: 28px 0 22px;
}


.level-up-sberik .sber-bot {
  transform: scale(1.08);

  animation:
    levelUpBot .65s
    cubic-bezier(.18, 1.5, .4, 1)
    both;
}


.level-up-bubble {
  padding: 12px 15px;

  text-align: left;

  border:
    1px solid rgba(181, 239, 105, .25);

  border-radius:
    15px 15px 15px 5px;

  background:
    rgba(18, 38, 27, .9);

  animation:
    levelUpBubble .3s
    ease-out .25s both;
}


.level-up-bubble strong {
  display: block;

  color: #b5ef69;

  font-size: 11px;
}


.level-up-bubble span {
  display: block;

  margin-top: 3px;

  color: #f1f6f2;

  font-size: 13px;
  font-weight: 700;
}


/* Очко */

.level-up-points {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 auto;

  padding: 11px 18px;

  border-radius: 15px;

  background:
    rgba(181, 239, 105, .09);

  border:
    1px solid rgba(181, 239, 105, .18);
}


.level-up-points > span {
  color: #b5ef69;
}


.level-up-points small {
  display: block;

  color:
    rgba(220, 235, 224, .42);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}


.level-up-points strong {
  color: #f5f8f5;

  font-size: 14px;
}


/* Навыки */

.level-up-skills {
  margin-top: 18px;
}


.level-up-skills-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;

  color:
    rgba(230, 241, 233, .65);

  font-size: 12px;
  font-weight: 700;
}


.level-up-skills-title small {
  color: #b5ef69;
}


.level-up-grid {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;
}


.level-up-card {
  display: grid;

  grid-template-columns:
    48px 1fr auto;

  align-items: center;
  gap: 13px;

  min-height: 86px;

  padding: 15px 17px;

  border:
    1px solid rgba(185, 220, 194, .12);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, .03);

  color: #eef4ef;

  text-align: left;

  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}


.level-up-card:not(:disabled):hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(181, 239, 105, .4);

  background:
    rgba(181, 239, 105, .07);

  box-shadow:
    0 14px 35px
    rgba(0, 0, 0, .18);
}


.level-up-card:not(:disabled):active {
  transform:
    translateY(0)
    scale(.985);
}


.level-up-card:disabled {
  opacity: .42;

  cursor: default;
}


.level-up-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    rgba(181, 239, 105, .08);

  font-size: 22px;
}


.level-up-card-main {
  min-width: 0;
}


.level-up-card-main strong {
  display: block;

  margin-bottom: 3px;

  font-size: 13px;
}


.level-up-card-main small {
  display: block;

  color:
    rgba(220, 235, 224, .46);

  font-size: 10px;
}


.level-up-bar {
  display: block;

  height: 4px;

  margin-top: 9px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, .06);
}


.level-up-bar i {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: #b5ef69;
}


.level-up-plus {
  display: grid;
  place-items: center;

  min-width: 38px;
  height: 38px;

  padding: 0 7px;

  border-radius: 11px;

  background:
    rgba(181, 239, 105, .1);

  color: #b5ef69;

  font-size: 12px;
  font-weight: 900;
}


/* Burst */

.skill-upgrade-burst {
  position: fixed;

  top: 50%;
  left: 50%;

  z-index: 400;

  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: none;

  transform:
    translate(-50%, -50%);

  animation:
    skillBurstIn .65s
    cubic-bezier(.18, 1.45, .4, 1)
    both;
}


.skill-upgrade-burst span {
  color: #b5ef69;

  font-size: 74px;
  line-height: .9;

  font-weight: 900;

  text-shadow:
    0 0 35px
    rgba(181, 239, 105, .35);
}


.skill-upgrade-burst strong {
  margin-top: 9px;

  color: #f5f8f5;

  font-size: 20px;
}


.skill-upgrade-burst small {
  margin-top: 4px;

  color:
    rgba(229, 240, 232, .65);

  font-size: 11px;
}


.skill-upgrade-burst.leaving {
  animation:
    skillBurstOut .28s
    ease-in forwards;
}


@keyframes levelUpScreenIn {
  from {
    opacity: 0;
    transform:
      translateY(12px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}


@keyframes levelUpBot {
  from {
    opacity: 0;
    transform:
      translateY(25px)
      scale(.55)
      rotate(-10deg);
  }

  65% {
    opacity: 1;
    transform:
      translateY(-6px)
      scale(1.14)
      rotate(4deg);
  }

  to {
    transform:
      translateY(0)
      scale(1.08)
      rotate(0);
  }
}


@keyframes levelUpBubble {
  from {
    opacity: 0;
    transform:
      translateX(-8px)
      scale(.95);
  }

  to {
    opacity: 1;
    transform:
      translateX(0)
      scale(1);
  }
}


@keyframes skillBurstIn {
  from {
    opacity: 0;

    transform:
      translate(-50%, -35%)
      scale(.55);
  }

  65% {
    opacity: 1;

    transform:
      translate(-50%, -55%)
      scale(1.15);
  }

  to {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1);
  }
}


@keyframes skillBurstOut {
  to {
    opacity: 0;

    transform:
      translate(-50%, -80%)
      scale(.9);
  }
}


body.no-motion .level-up-screen,
body.no-motion .level-up-sberik .sber-bot,
body.no-motion .level-up-bubble,
body.no-motion .skill-upgrade-burst {
  animation: none !important;
}


@media (max-width: 700px) {

  .level-up-grid {
    grid-template-columns: 1fr;
  }

  .level-up-sberik {
    flex-direction: column;
  }

  .level-up-bubble {
    text-align: center;
  }

}
/* Story onboarding: readable type, large touch controls, ordinary page scrolling. */
body.intro-screen { overflow: auto; }
body.intro-screen .entry-main { width: min(1120px, calc(100% - 40px)); max-width: none; min-height: calc(100svh - 72px); padding: 28px 0 40px; }
.entry-card { width: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid #395444; border-radius: 28px; overflow: hidden; background: #13231b; box-shadow: 0 24px 80px #0003; }
.entry-copy { padding: clamp(24px, 4vw, 52px); min-width: 0; }
.entry-eyebrow { display: block; color: #c0ef8b; font-size: 12px; font-weight: 800; letter-spacing: .09em; margin-bottom: 12px; }
.entry-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin: 0 0 18px; overflow-wrap: anywhere; }
.entry-title:focus { outline: none; }
.entry-lead { font-size: 20px; line-height: 1.5; color: #e1eadf; margin: 0 0 24px; }
.entry-features { display: grid; gap: 16px; margin: 24px 0; }
.entry-features > div { display: flex; gap: 14px; align-items: center; font-size: 17px; line-height: 1.45; }
.entry-features .icon { flex: 0 0 28px; width: 28px; height: 28px; color: #b5ef69; }
.entry-note { color: #b9c9bd; font-size: 15px; line-height: 1.55; margin: 20px 0; }
.entry-cta { min-height: 54px; font-size: 17px; white-space: normal; }
.entry-art, .entry-speaker-art { min-width: 0; position: relative; min-height: 420px; background: radial-gradient(ellipse at 50% 35%, #497d46 0, #213c29 50%, #15241b 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; }
.entry-workshop { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.entry-art-label { position: absolute; bottom: 20px; left: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px); margin: auto; padding: 10px 16px; border-radius: 12px; background: #0d1b15e8; color: #f3f5eb; font-size: 16px; font-weight: 700; text-align: center; }
.entry-bot { display: flex; justify-content: center; align-items: center; min-height: 250px; padding: 45px; }
.entry-bot .sber-bot { scale: 2; transform-origin: center; }
.player-portrait { display: inline-flex; width: 100%; height: 100%; overflow: hidden; align-items: center; justify-content: center; vertical-align: middle; }
.player-portrait img { width: 100%; height: 100%; object-fit: contain; }
.player-portrait.large { height: 420px; max-width: 380px; }
.player-portrait.compact { flex: 0 0 54px; width: 54px; height: 60px; border-radius: 12px; background: #314d37; }
.player-portrait.compact img { object-fit: cover; object-position: top; }
.entry-avatar-preview { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 32px 24px; background: radial-gradient(ellipse at top, #4a7245, #1d3325 70%); }
.entry-avatar-preview > div { display: grid; text-align: center; gap: 8px; width: 100%; margin-top: 20px; }
.entry-avatar-preview strong { color: #f5f5e9; font-size: 26px; overflow-wrap: anywhere; }
.entry-avatar-preview > div > span:last-child { color: #d2e3c9; font-size: 17px; }
.entry-name-label, .entry-fieldset legend { display: block; font-weight: 750; font-size: 17px; margin-bottom: 12px; }
.entry-name-input { width: 100%; min-height: 54px; border: 1px solid #70947a; border-radius: 12px; padding: 12px 15px; background: #0d1a13; color: #faf9ed; font: inherit; font-size: 18px; box-sizing: border-box; }
.entry-name-input:focus { outline: 2px solid #b5ef69; outline-offset: 2px; }
.entry-name-input[aria-invalid="true"] { border-color: #ffab96; }
.entry-field-hint { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: #b7c8bc; }
.entry-fieldset { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.entry-genders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entry-choice, .entry-role { font: inherit; color: #e5ece2; background: #1b3022; border: 1px solid #46634e; border-radius: 12px; cursor: pointer; text-align: left; }
.entry-choice { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 16px; }
.entry-choice.selected, .entry-role.selected { background: #2b472b; border-color: #b5ef69; box-shadow: inset 0 0 0 1px #b5ef69; }
.entry-roles { display: grid; gap: 10px; }
.entry-role { min-height: 74px; display: flex; gap: 12px; align-items: center; padding: 12px; }
.entry-role > span:nth-child(2) { flex: 1; min-width: 0; }
.entry-role strong { display: block; font-size: 16px; line-height: 1.3; }
.entry-role small { display: block; margin-top: 5px; font-size: 14px; line-height: 1.45; color: #c1d0c1; }
.entry-role-icon { flex: 0 0 32px; color: #b5ef69; }
.entry-role > .icon { flex: 0 0 20px; color: #b5ef69; }
.entry-client-portrait { width: 100%; height: 420px; object-fit: contain; }
.entry-speaker-art .player-portrait { align-self: center; }
.entry-cast { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.entry-cast > span { padding: 8px 12px; border: 1px solid #47614d; border-radius: 20px; color: #aab7a9; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; max-width: 100%; }
.entry-cast > .speaking { background: #b5ef69; color: #172313; border-color: #b5ef69; font-weight: 800; }
.entry-dialogue { border-left: 3px solid #b5ef69; padding: 16px 18px; border-radius: 0 12px 12px 0; background: #213927; min-height: 150px; }
.entry-dialogue strong { font-size: 15px; color: #caf29c; overflow-wrap: anywhere; }
.entry-dialogue p { font-size: 21px; line-height: 1.5; margin: 12px 0 0; }
.entry-dots { display: flex; gap: 7px; padding: 22px 0; }
.entry-dots i { width: 8px; height: 8px; border-radius: 50%; background: #57735a; }
.entry-dots i.active { width: 24px; border-radius: 8px; background: #b5ef69; }
.client-photo { overflow: hidden; }
.client-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
body.intro-screen .client-card strong { font-size: 18px; }
body.intro-screen .client-card span { font-size: 14px; }
body.intro-screen .client-card .client-photo { width: 76px; height: 82px; flex-basis: 76px; border-radius: 14px; background: #365139; }
body.intro-screen .client-quote { font-size: 17px; line-height: 1.5; }
body.intro-screen .first-order-card, body.intro-screen .first-order-content { height: auto; }
body.intro-screen .first-order-content { min-width: 0; }
body.intro-screen .first-order-content h1 { font-size: clamp(30px, 3.4vw, 42px); }
body.intro-screen .first-order-visual { height: auto; min-height: 440px; }
body.intro-screen .first-order-bottom { gap: 18px; }
body.intro-screen .onboarding-step { font-size: 12px; white-space: normal; text-align: center; }
.self-skills h2 { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  body.intro-screen .entry-main { width: calc(100% - 24px); min-height: auto; padding: 12px 0 calc(28px + env(safe-area-inset-bottom)); }
  .entry-card { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .entry-copy { padding: 24px 20px; }
  .entry-art, .entry-speaker-art { min-height: 230px; height: 230px; }
  .entry-title { font-size: 30px; }
  .entry-lead { font-size: 18px; }
  .entry-features > div { font-size: 16px; }
  .entry-bot { min-height: 210px; }
  .entry-bot .sber-bot { scale: 1.8; }
  .entry-avatar-preview { padding: 16px 20px 20px; }
  .player-portrait.large, .entry-client-portrait { height: 230px; max-width: 210px; }
  .entry-avatar-preview > div { margin-top: 12px; }
  .entry-avatar-preview strong { font-size: 22px; }
  .entry-art-label { bottom: 12px; font-size: 14px; padding: 8px 12px; }
  .entry-dialogue { min-height: 0; }
  .entry-dialogue p { font-size: 19px; }
  body.intro-screen .first-order-visual { min-height: 0; height: 210px; aspect-ratio: auto; }
  body.intro-screen .first-order-photo { object-fit: cover; }
  body.intro-screen .first-order-content { padding: 24px 20px; }
  body.intro-screen .first-order-content h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .entry-card, .entry-role, .entry-choice, .entry-bot .sber-bot { animation: none; transition: none; } }

/* Welcome reveal uses CSS only; heading is announced once in its complete form. */
.welcome-word { display: inline-block; opacity: 0; transform: translateY(12px); animation: welcomeReveal .4s ease-out var(--word-delay) forwards; }
.welcome-entry .entry-lead { animation: welcomeReveal .45s ease-out .7s both; }
.welcome-entry .entry-features { animation: welcomeReveal .45s ease-out .9s both; }
@keyframes welcomeReveal { to { opacity: 1; transform: translateY(0); } }
body.no-motion .welcome-word, body.no-motion .welcome-entry .entry-lead, body.no-motion .welcome-entry .entry-features { animation: none; opacity: 1; transform: none; }
.welcome-entry .entry-workshop { object-position: center; }
.lesson-coach { background: #263e29; border: 1px solid #56744c; border-radius: 14px; padding: 16px; margin: 14px 0 20px; }
.lesson-coach strong { color: #c4f08d; font-size: 16px; }
.lesson-coach p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; }
.lesson-steps { display: grid; gap: 16px; margin: 24px 0; }
.lesson-steps > div { display: flex; align-items: center; gap: 14px; font-size: 18px; line-height: 1.45; }
.lesson-steps b { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #b5ef69; color: #172311; }
.builder-progress { display: grid; gap: 10px; margin: 16px 0; font-size: 16px; }
.lesson-bar { height: 8px; background: #314932; border-radius: 8px; overflow: hidden; }
.lesson-bar i { display: block; height: 100%; background: #b5ef69; transition: width .25s; }
.builder-bank { display: grid; gap: 10px; margin: 20px 0 24px; }
.builder-add { min-width: 0; min-height: 82px; font: inherit; display: flex; align-items: center; gap: 14px; padding: 14px; background: #213624; border: 1px solid #688152; border-radius: 14px; text-align: left; color: #f2f5e9; cursor: pointer; }
.builder-add > span:first-child { font-size: 26px; }
.builder-add > span:nth-child(2) { flex: 1; min-width: 0; }
.builder-add strong { font-size: 18px; line-height: 1.3; display: block; }
.builder-add small { display: block; font-size: 14px; line-height: 1.4; margin-top: 5px; color: #c2d0b8; }
.builder-add > b { font-size: 28px; color: #b5ef69; }
.builder-add.added { opacity: .6; cursor: default; border-color: #466041; }
.demo-caption { display: grid; gap: 5px; font-size: 16px; margin-bottom: 12px; }
.demo-caption span { color: #becdb6; font-size: 14px; line-height: 1.4; }
.demo-site { background: #fbf8e9; color: #203826; border: 1px solid #799064; border-radius: 16px; overflow: hidden; margin: 12px 0 22px; }
.demo-browser { padding: 10px 12px; background: #dae4cc; display: flex; align-items: center; gap: 5px; font-size: 12px; color: #49613f; }
.demo-browser i { width: 6px; height: 6px; border-radius: 50%; background: #91a482; }
.demo-browser span { margin-left: 8px; }
.demo-site-brand { font-size: 23px; font-weight: 900; padding: 18px 16px; color: #25542a; background: #e8efdb; }
.demo-site-brand small { display: block; font-weight: 500; font-size: 13px; margin-top: 6px; }
.demo-site-block { border-top: 1px dashed #afba9c; padding: 16px; animation: siteBlockIn .25s ease-out; }
.demo-block-label { color: #637456; font-size: 11px; font-weight: 750; }
.demo-site-block h3 { color: #234d28; font-size: 21px; line-height: 1.3; margin: 10px 0 14px; }
.demo-services { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-services span { background: #e5edd6; padding: 8px; border-radius: 9px; font-size: 14px; }
.demo-prices { display: grid; gap: 10px; }
.demo-prices span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; font-size: 15px; }
.demo-field { margin: 8px 0; padding: 11px; border: 1px solid #a4b48e; border-radius: 8px; color: #5c6e4e; font-size: 15px; background: #fffef7; }
.demo-submit { text-align: center; padding: 12px; margin-top: 12px; border-radius: 8px; background: #568331; color: #fff; font-size: 15px; font-weight: 750; }
.demo-block-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.demo-block-controls .btn { min-width: 46px; min-height: 46px; font-size: 15px; border-color: #8b9e78; color: #304823; background: #e4edd5; }
.demo-empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 35px 22px; font-size: 18px; }
.demo-empty span { font-size: 15px; line-height: 1.5; color: #687455; }
.lesson-note { font-size: 14px; line-height: 1.5; color: #bbc9b2; }
.lesson-feedback { border-radius: 14px; padding: 16px; margin: 18px 0; border: 1px solid #8dad60; background: #294629; }
.lesson-feedback strong { font-size: 18px; display: block; }
.lesson-feedback p { font-size: 17px; line-height: 1.5; margin: 10px 0 0; }
.lesson-feedback.retry { background: #4a3c24; border-color: #b49b61; }
.lesson-feedback.retry strong { color: #ffe2a3; }
.request-card { border-radius: 16px; border: 1px solid #638355; background: #243923; padding: 18px; margin: 20px 0; }
.request-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 22px; font-weight: 800; }
.request-card-top small { font-size: 13px; font-weight: 500; color: #bcd0a5; }
.request-card h3 { font-size: 21px; margin: 18px 0; }
.request-card dl { margin: 0; display: grid; gap: 12px; }
.request-card dl > div { padding: 12px; border-radius: 10px; background: #172d1b; }
.request-card dt { font-size: 13px; color: #b9cda8; }
.request-card dd { font-size: 18px; font-weight: 700; margin: 7px 0 0; }
.request-card .missing-contact { background: #523b29; border: 1px solid #bf9c71; color: #ffe0b0; }
.existing-ticket { border: 1px dashed #a5bf76; background: #304927; margin-top: 16px; padding: 12px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.lesson-question { font-size: 20px; margin: 24px 0 14px; }
.request-choices { display: grid; gap: 10px; }
.request-choice { font: inherit; display: flex; align-items: center; gap: 14px; text-align: left; min-height: 84px; padding: 14px; border: 1px solid #5f7a51; border-radius: 14px; background: #203623; color: #eff4e5; cursor: pointer; }
.request-choice .icon { width: 24px; height: 24px; flex: 0 0 24px; color: #b5ef69; }
.request-choice strong { display: block; font-size: 17px; line-height: 1.4; }
.request-choice small { display: block; font-size: 14px; line-height: 1.4; color: #c0cfb2; margin-top: 5px; }
.request-choice.chosen { border-color: #c4ec83; }
.request-choice:disabled { cursor: default; opacity: .55; }
.request-choice.chosen:disabled { opacity: 1; background: #36572d; }
.request-effect { font-size: 16px; font-weight: 750; color: #d0f0a3; line-height: 1.5; padding-top: 15px; }
.client-screen { border-radius: 10px; padding: 13px; background: #f5f1de; color: #283924; margin-top: 14px; }
.client-screen small { color: #5c7250; font-size: 11px; font-weight: 800; }
.client-screen p { font-size: 16px; margin-top: 6px; }
.request-json { margin: 24px 0 5px; font-size: 14px; color: #b7caa6; }
.request-json summary { cursor: pointer; padding: 12px 0; min-height: 44px; line-height: 1.5; }
.request-json p { font-size: 14px; line-height: 1.5; }
.request-json pre { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.5; background: #102018; padding: 14px; border-radius: 10px; }
.lesson-finish { text-align: center; padding: 15px 5px; }
.lesson-finish > span { font-size: 40px; }
.lesson-finish h2 { font-size: 28px; line-height: 1.25; margin: 16px 0; }
.lesson-finish p { font-size: 18px; line-height: 1.55; color: #d1dfc6; }
.request-done-list { display: grid; gap: 10px; margin: 18px 0; }
.request-done-list > div { padding: 14px; border-radius: 12px; background: #2c4829; font-size: 17px; line-height: 1.45; }
@keyframes siteBlockIn { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) { .demo-site-block { padding: 13px; } .builder-add { gap: 10px; padding: 12px; } .builder-add strong { font-size: 17px; } .request-choice { gap: 10px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .welcome-word, .welcome-entry .entry-lead, .welcome-entry .entry-features { animation: none; opacity: 1; transform: none; } .demo-site-block, .lesson-bar i { animation: none; transition: none; } }
body.no-motion .demo-site-block { animation: none; }

/* A short staged entrance; all elements retain their final layout while revealing. */
.splash-screen .onboarding-header { animation: splashRise .55s ease-out both; }
.splash-screen .onboarding-logo .brand-mark { animation: splashIcon .65s cubic-bezier(.2,.8,.3,1.1) .08s both; }
.splash-screen .onboarding-step { animation: splashRise .5s ease-out .15s both; }
.welcome-entry { animation: splashCard .7s ease-out .06s both; }
.welcome-entry .entry-art { animation: splashArt .85s ease-out .12s both; }
.welcome-entry .entry-workshop { animation: splashImage 1.5s cubic-bezier(.2,.7,.2,1) .12s both; }
.welcome-entry .entry-art-label { animation: splashRise .6s ease-out .55s both; }
.welcome-entry .entry-eyebrow { animation: splashRise .5s ease-out .3s both; }
.welcome-entry .entry-lead, .welcome-entry .entry-features { animation: none; }
.welcome-token { display: inline-block; animation: splashWord .42s ease-out var(--reveal-delay,0s) both; }
.welcome-entry .entry-features > div { animation: splashRise .5s ease-out var(--feature-delay) both; }
.entry-feature-icon { display: inline-flex; flex: 0 0 28px; }
.welcome-entry .entry-feature-icon { animation: splashIcon .55s cubic-bezier(.2,.8,.3,1.1) var(--feature-delay) both; }
.welcome-entry .entry-cta { animation: splashButton .6s ease-out 2.75s both; }
.welcome-entry .entry-cta:focus-visible { animation: none; opacity: 1; transform: none; }
.splash-skip { font-size: 13px; min-height: 44px; margin-left: auto; }
@keyframes splashRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes splashWord { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes splashCard { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes splashArt { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashImage { from { transform: scale(1.06); filter: brightness(.8); } to { transform: scale(1); filter: brightness(1); } }
@keyframes splashIcon { from { opacity: 0; transform: scale(.75) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes splashButton { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
/* Reserve the entire line's height to keep controls still while the text prints. */
.progressive-speech { position: relative; cursor: pointer; touch-action: manipulation; }
.speech-reserve { display: block; visibility: hidden; }
.speech-print { position: absolute; inset: 0; display: block; }
.progressive-speech.is-typing .speech-print::after { content: ''; display: inline-block; height: .9em; width: 2px; background: currentColor; margin-left: 3px; vertical-align: -.08em; animation: speechCaret .8s steps(1) infinite; }
.progressive-speech:focus-visible { outline: 2px solid #b5ef69; outline-offset: 5px; border-radius: 4px; }
.entry-speech-hint { display: block; color: #b9c9bd; font-size: 13px; line-height: 1.5; padding-top: 12px; }
.entry-dialogue { animation: splashRise .35s ease-out both; }
@keyframes speechCaret { 50% { opacity: 0; } }
body.no-motion .welcome-entry, body.no-motion .welcome-entry *, body.no-motion.splash-screen .onboarding-header, body.no-motion.splash-screen .onboarding-header *,
body.splash-complete .welcome-entry, body.splash-complete .welcome-entry *, body.splash-complete.splash-screen .onboarding-header, body.splash-complete.splash-screen .onboarding-header * { animation: none; opacity: 1; transform: none; filter: none; }
body.no-motion .entry-dialogue { animation: none; }
@media (max-width: 400px) { .splash-screen .onboarding-step { display: none; } .splash-skip { padding: 8px; } }
@media (prefers-reduced-motion: reduce) {
 .welcome-entry, .welcome-entry *, .splash-screen .onboarding-header, .splash-screen .onboarding-header *, .entry-dialogue { animation: none; opacity: 1; transform: none; filter: none; }
 .progressive-speech.is-typing .speech-print::after { animation: none; }
}

.speech-stack { position: relative; display: block; }
.level-up-bubble .speech-stack, .level-up-bubble .speech-reserve, .level-up-bubble .speech-print { margin: 0; font: inherit; color: inherit; }

/* Player identity and the inline skill coach stay readable at phone widths. */
.xp-resource .player-resource-summary { min-width: 0; }
.resource-strip .xp-resource .player-resource-name { white-space: normal; overflow-wrap: anywhere; font-size: 12px; color: #eef5e8; line-height: 1.4; }
.player-resource-role { display: block; font-size: 12px; color: #c0d3b7; line-height: 1.4; overflow-wrap: anywhere; margin: 4px 0; }
.level-up-bubble { max-width: 100%; min-width: 0; }
.level-up-bubble strong { font-size: 16px; }
.level-up-bubble .progressive-speech { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: #f2f6ec; }
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
 .resource-strip { flex-wrap: wrap; }
 .resource-strip .xp-resource { flex: 0 0 100%; border: 0; border-top: 1px solid #354838; padding: 12px 0 0; margin-top: 12px; justify-content: flex-start; }
 .xp-resource .player-resource-summary { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; }
 .player-resource-name, .player-resource-role { grid-column: 1; }
 .player-resource-role { margin: 0; }
 .xp-resource .player-resource-summary > strong { grid-column: 2; grid-row: 1 / 3; }
 .level-up-sberik { min-width: 0; }
 .level-up-bubble { width: 100%; }
}

/* Order title: dark layer sits above the photo and below its label. */
.first-order-visual::after { z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.48) 23%, rgba(0,0,0,.12) 48%, transparent 72%); }
.first-order-photo-label { z-index: 3; }
/* Popover stays inside the mini-game's scroll area, with room for its mascot. */
.builder-coach { margin: 12px 0 22px; }
.builder-help-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #5a7c4d; border-radius: 12px; color: #d1edae; background: #203624; font: inherit; font-weight: 700; }
.builder-help-trigger > .icon:last-child { margin-left: auto; transform: rotate(90deg); }
.builder-coach-popover { position: relative; display: flex; align-items: flex-end; gap: 12px; padding-top: 18px; width: 100%; min-width: 0; }
.builder-coach-popover::before { content: ''; position: absolute; top: 10px; left: 100px; width: 14px; height: 14px; border-left: 1px solid #729a56; border-top: 1px solid #729a56; background: #203b28; transform: rotate(45deg); z-index: 1; }
.builder-coach-popover .guide-bubble { flex: 1; width: auto; min-width: 0; max-width: 100%; border-color: #729a56; background: #203b28; box-shadow: 0 10px 24px #0002; }
.builder-coach-popover .guide-bubble > p { font-size: 17px; line-height: 1.5; }
.builder-coach-popover .guide-bubble .btn { margin-top: 14px; min-height: 44px; }
.builder-coach-bot { flex: 0 0 58px; padding-bottom: 8px; }
.builder-coach-bot .sber-bot { animation: botPop .4s ease-out both; }
.orders-overview { margin: 0 0 28px; padding: 20px; border: 1px solid #426044; border-radius: 18px; background: #182b1e; }
.orders-overview > p { font-size: 15px; line-height: 1.5; }
.active-orders { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.active-order { min-width: 0; padding: 16px; display: grid; gap: 10px; border: 1px solid #4a6948; border-radius: 14px; background: #1f3425; color: #eff4e8; text-align: left; font: inherit; }
.active-order.selected { border-color: #b5ef69; background: #29422b; }
.active-order strong { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.active-order-status { color: #b8df91; font-size: 13px; font-weight: 750; }
.active-order small { font-size: 13px; color: #bdd0b7; }
.active-order-progress { display: grid; gap: 8px; font-size: 14px; }
.orders-capacity { color: #f2dfac; margin: 16px 0 10px; }
.orders-funds { display: block; margin-top: 16px; color: #bfd0b7; font-size: 13px; line-height: 1.5; }
.team-roster { margin: 20px 0; }
.team-roster > summary { cursor: pointer; font-size: 20px; font-weight: 750; min-height: 48px; }
.team-members { display: grid; gap: 12px; margin-top: 16px; }
.team-member { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 14px; border: 1px solid #486746; background: #1e3525; color: #f1f5eb; font: inherit; text-align: left; }
.team-member > span:nth-child(2) { flex: 1; min-width: 0; }
.team-member strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.team-member small { display: block; margin-top: 5px; color: #c0d1b8; font-size: 14px; }
.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.member-tags > span { padding: 4px 7px; font-size: 12px; background: #2d492d; border-radius: 6px; }
.team-roster > p { margin-top: 16px; font-size: 15px; line-height: 1.5; }
.member-avatar { display: grid; place-items: center; width: 54px; height: 60px; border-radius: 12px; background: #365538; flex: 0 0 54px; }
.member-detail { display: grid; gap: 20px; }
.member-detail .player-portrait { height: 220px; }
.member-detail dl { margin: 0; display: grid; gap: 12px; }
.member-detail dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 10px; background: #253d29; font-size: 16px; }
.member-detail dd { margin: 0; white-space: nowrap; font-weight: 750; }
@media (max-width: 760px) {
 .active-orders { grid-template-columns: minmax(0,1fr); }
 .orders-overview { padding: 16px; }
 .orders-overview .section-heading { flex-wrap: wrap; }
 .builder-coach-popover { gap: 8px; }
 .builder-coach-bot { flex-basis: 44px; transform: scale(.8); transform-origin: bottom left; margin-right: -8px; }
 .builder-coach-popover .guide-bubble { padding: 14px; }
 .builder-coach-popover .guide-bubble > p { font-size: 16px; }
 .team-member { padding: 12px; gap: 10px; }
 .member-tags > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .builder-coach-popover .guide-bubble, .builder-coach-bot .sber-bot { animation: none; } }

.orders-overview.focused > p.muted, .orders-overview.focused > .orders-capacity, .orders-overview.focused > .orders-funds { display: none; }
@media (max-width: 760px) {
 .orders-overview.focused .active-orders { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
 .orders-overview.focused .active-order { flex: 0 0 min(230px, 78vw); scroll-snap-align: start; padding: 12px; gap: 7px; }
 .orders-overview.focused .active-order strong { font-size: 15px; }
}

/* Distinct employee portraits remain readable on narrow phone screens. */
.staff-avatar { width:64px; height:72px; object-fit:cover; object-position:50% 12%; border-radius:18px; background:linear-gradient(145deg,#e6edce,#607666); flex-shrink:0; }
.staff-avatar.large { width:112px; height:128px; border-radius:22px; }
.member-detail .staff-avatar.large { width:160px; height:180px; }
.hiring { margin-block:20px; }
.hiring-candidates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.candidate { min-width:0; padding:18px; border:1px solid var(--border,#405044); border-radius:20px; background:rgba(255,255,255,.025); }
.candidate-heading { display:flex; align-items:center; gap:14px; }
.candidate h3 { margin:0 0 6px; font-size:23px; }
.candidate p { font-size:16px; line-height:1.5; }
.candidate .member-tags { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.candidate .member-tags span { padding:6px 8px; background:rgba(255,255,255,.07); border-radius:8px; font-size:12px; }
.candidate .button { margin-top:12px; }
.assign-person { width:100%; min-height:88px; margin-block:10px; text-align:left; }
.assign-person > span { min-width:0; }
.assign-person small { display:block; white-space:normal; }
.assign-person:disabled { opacity:.55; cursor:not-allowed; }
.task-risk,.launch-issue { font-size:15px; line-height:1.5; }
.task-risk { color:var(--muted,#c2cec5); margin:14px 0; }
.launch-issue { padding:12px; border-radius:12px; background:rgba(212,192,99,.12); color:var(--text,#f0f4e9); }
@media(max-width:600px) { .hiring-candidates { grid-template-columns:1fr; } .staff-avatar.large { width:92px; height:108px; } .worker-line { flex-wrap:wrap; gap:10px; } .worker-line button { max-width:100%; white-space:normal; } }

/* Sound preferences are reachable before the first interaction with the story. */
.onboarding-header { height:auto; min-height:72px; flex-wrap:wrap; gap:12px; padding-block:12px; }
.entry-audio-controls { display:flex; align-items:center; gap:8px; margin-left:auto; }
.entry-audio-button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 12px; border:1px solid #567257; border-radius:12px; background:#21382a; color:#eff6e9; font:inherit; font-size:14px; cursor:pointer; }
.entry-audio-button > span:first-child { font-size:21px; line-height:1; }
.entry-audio-button[aria-pressed="false"] { color:#bdcbbf; background:#17271e; border-color:#3f5344; }
.entry-audio-button:focus-visible { outline:3px solid #b9ef6b; outline-offset:3px; }
.entry-audio-button:hover { border-color:#b9ef6b; }
@media(max-width:760px) {
 .onboarding-header { padding:12px 15px; gap:10px; }
 .entry-audio-controls { flex-basis:100%; margin-left:0; }
 .entry-audio-button { flex:1; font-size:14px; }
 .onboarding-header .onboarding-step { margin-left:auto; }
}

/* Three connected chapters and touch-first story activities. */
.campaign-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
.campaign-chapter { display:flex; align-items:center; gap:12px; padding:14px; border-radius:16px; border:1px solid #394d3c; background:#17291e; min-width:0; }
.campaign-chapter > span:first-child { display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:#2c4231; font-size:21px; flex-shrink:0; }
.campaign-chapter small,.campaign-chapter strong { display:block; overflow-wrap:anywhere; }
.campaign-chapter small { color:#a5b8a7; font-size:12px; margin-bottom:4px; }
.campaign-chapter strong { font-size:17px; }
.campaign-chapter.current { border-color:#b9ed71; background:#2c3d22; }
.campaign-chapter.done > span:first-child { color:#bfef78; }
.campaign-chapter.locked { opacity:.7; }
.campaign-progress > p { grid-column:1/-1; margin:0; color:#afc3ad; font-size:14px; }
.chapter-kicker { font-size:13px; color:#b4e47d; font-weight:800; letter-spacing:.1em; margin-block:20px; }
.story-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); margin-top:22px; border:1px solid #476443; border-radius:26px; overflow:hidden; background:#192d20; }
.story-scene { position:relative; min-height:420px; display:flex; flex-direction:column; align-items:flex-start; padding:32px; background:radial-gradient(circle at 50% 55%,#465367,#172626 74%); }
.story-intro.festival .story-scene { background:radial-gradient(circle at 50% 55%,#5b5631,#20332a 74%); }
.story-scene h1 { font-size:clamp(30px,4vw,48px); line-height:1.1; margin:14px 0; }
.story-scene-art { flex:1; display:grid; place-items:center; align-self:center; width:100%; min-height:160px; }
.story-scene-art .player-portrait { max-height:240px; max-width:240px; }
.story-client-symbol { font-size:120px; filter:drop-shadow(0 15px 30px #08170c); }
.story-scene-caption { font-size:16px; color:#d6e5cd; margin-top:20px; }
.story-coach-art { transform:scale(1.5); }
.story-conversation { display:flex; flex-direction:column; padding:32px; gap:14px; }
.story-conversation h2 { font-size:28px; margin:0; }
.story-conversation .story-message { font-size:20px; line-height:1.65; margin:0; }
.story-conversation .primary { margin-top:auto; }
.story-cast { display:flex; flex-wrap:wrap; gap:8px; }
.story-cast span { border:1px solid #4a5e49; border-radius:20px; padding:6px 10px; color:#b3c0ad; font-size:13px; }
.story-cast .speaking { background:#c1ef77; color:#1a301e; border-color:#c1ef77; }
.story-puzzle-intro h2,.load-wave-heading h2 { font-size:26px; line-height:1.25; margin-block:12px; }
.story-puzzle-intro p,.story-puzzle-intro li,.load-wave-heading p { font-size:17px; line-height:1.6; }
.story-puzzle-intro ol { padding-left:24px; display:grid; gap:12px; }
.puzzle-emblem { font-size:54px; }
.schedule-status { padding:14px; border-radius:14px; background:#39432c; color:#e6e8bf; margin-block:16px; font-size:16px; line-height:1.5; }
.schedule-status.success { background:#294b2c; color:#d2f5b0; }
.match-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.match-choice { display:flex; flex-direction:column; gap:7px; border-radius:14px; padding:14px; text-align:left; min-height:85px; background:#243b2b; border:2px solid #496149; color:#f0f5e9; font:inherit; }
.match-choice small { font-size:12px; color:#c7d0bd; }
.match-choice strong { font-size:16px; overflow-wrap:anywhere; }
.match-choice > span { font-size:12px; color:#d4f7aa; }
.match-choice.selected { outline:3px solid #c2ef7b; outline-offset:1px; background:#354f31; }
.schedule-board { display:grid; gap:8px; margin:18px 0; }
.schedule-head,.schedule-row { display:grid; grid-template-columns:54px minmax(0,1fr) minmax(0,1fr); gap:8px; }
.schedule-head { color:#bdcfb8; font-size:12px; align-items:center; text-align:center; }
.schedule-time { font-size:14px; display:grid; align-content:center; }
.schedule-slot { min-width:0; display:flex; flex-direction:column; gap:8px; padding:14px 10px; border:2px solid #5b7352; border-radius:14px; background:#253a2b; color:#f1f7e7; text-align:left; font:inherit; }
.schedule-slot:disabled { opacity:1; cursor:default; }
.schedule-slot small { font-size:11px; color:#c4d2bc; }
.schedule-slot strong { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.schedule-slot strong > span { color:#afc1a6; }
.schedule-slot.conflict { border-color:#d9a272; }
.schedule-slot.can-place { cursor:pointer; box-shadow:0 0 0 1px #bfe980; }
.schedule-slot.can-place:hover { background:#3f5732; }
.conflict-label,.slot-ok { font-size:11px; line-height:1.4; }
.conflict-label { color:#ffc2a2; }
.slot-ok { color:#c1ef8a; }
.match-choice.lime,.schedule-slot.lime { border-left:5px solid #b1df68; }
.match-choice.blue,.schedule-slot.blue { border-left:5px solid #80bfda; }
.match-choice.pink,.schedule-slot.pink { border-left:5px solid #d49aba; }
.match-choice.amber,.schedule-slot.amber { border-left:5px solid #e3bf75; }
.load-wave-heading > span { display:inline-block; color:#c5ef87; font-size:13px; font-weight:800; }
.load-simulation { padding:16px; border:1px solid #496b46; background:#14271b; border-radius:18px; margin-block:20px; }
.load-flow { display:flex; align-items:center; justify-content:space-between; font-size:14px; gap:8px; color:#d6e8cd; margin-bottom:16px; }
.load-flow i { font-size:23px; color:#c4f084; font-style:normal; animation:loadPulse 1.3s ease-in-out infinite; }
.load-nodes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.load-node { display:flex; flex-direction:column; align-items:center; padding:14px 8px; gap:9px; border-radius:14px; border:1px solid #5a8651; background:#273f29; text-align:center; }
.load-node.overloaded { border-color:#dd9b81; background:#4a332b; }
.load-node-icon .icon { width:28px; height:28px; }
.load-node > strong { font-size:16px; }
.load-node-status { font-size:12px; color:#c9eea4; }
.overloaded .load-node-status { color:#ffccb7; }
.load-node small { font-size:12px; line-height:1.6; color:#d6dfce; }
.load-meter { width:100%; height:8px; background:#17271c; border-radius:8px; overflow:hidden; }
.load-meter i { display:block; height:100%; background:#b9e578; transition:width .3s; }
.overloaded .load-meter i { background:#e8a07e; }
.load-options { display:grid; gap:10px; margin:14px 0; }
.load-option { display:flex; align-items:flex-start; gap:12px; border:2px solid #496549; border-radius:14px; padding:16px; background:#203b27; color:#f4f8ee; font:inherit; text-align:left; }
.load-option .icon { flex-shrink:0; margin-top:3px; }
.load-option > span { display:grid; gap:6px; }
.load-option strong { font-size:17px; }
.load-option small { font-size:15px; line-height:1.5; color:#c5d7be; }
.load-option.selected { border-color:#c6ef80; background:#364b2b; }
.load-option.installed { opacity:.55; }
.load-option b { font-size:12px; color:#c5ee91; }
.installed-upgrades { font-size:13px; line-height:1.6; color:#c6deaf; }
.recruitment-intro { text-align:center; }
.recruitment-intro > .entry-bot { min-height:120px; height:130px; }
.recruitment-intro > p { font-size:19px; line-height:1.6; text-align:left; }
.recruitment-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0; }
.recruitment-preview > div { display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px; background:#263c29; border-radius:18px; }
.recruitment-preview strong { font-size:20px; }
.recruitment-preview small { font-size:14px; color:#d2dec5; }
@keyframes loadPulse { 50% { transform:translateX(4px); opacity:.5; } }
@media(max-width:760px) {
 .campaign-progress { gap:6px; }
 .campaign-chapter { flex-direction:column; align-items:flex-start; padding:10px; gap:8px; }
 .campaign-chapter strong { font-size:14px; }
 .campaign-chapter small { font-size:11px; }
 .story-intro { grid-template-columns:1fr; }
 .story-scene { min-height:220px; padding:22px; }
 .story-scene h1 { font-size:32px; }
 .story-client-symbol { font-size:64px; }
 .story-scene-art { min-height:100px; }
 .story-scene-art .player-portrait { height:130px; }
 .story-coach-art { transform:scale(1); }
 .story-scene-caption { font-size:14px; }
 .story-conversation { padding:22px; gap:12px; }
 .story-conversation .story-message { font-size:18px; }
 .schedule-head,.schedule-row { grid-template-columns:42px minmax(0,1fr) minmax(0,1fr); gap:6px; }
 .schedule-slot { padding:10px 7px; }
 .schedule-slot strong { font-size:14px; }
 .schedule-time { font-size:12px; }
 .load-simulation { padding:12px; }
 .load-node { padding:12px 5px; gap:7px; }
 .load-node > strong { font-size:14px; }
 .load-node-status { font-size:11px; }
 .load-node small { font-size:11px; }
 .load-flow { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .load-flow i { animation:none; } .load-meter i { transition:none; } }
.no-motion .load-flow i { animation:none; }
.no-motion .load-meter i { transition:none; }
@media(max-width:370px) { .campaign-chapter { padding:8px; } .campaign-chapter strong { font-size:13px; } .campaign-chapter small { font-size:10px; } }

/* Order clients share the cast's illustration style and keep distinct silhouettes. */
.client-portrait { display:block; object-fit:cover; object-position:center 14%; border-radius:15px; background:linear-gradient(145deg,#526645,#263c31); flex-shrink:0; }
.client-portrait.compact { width:64px; height:72px; }
.client-portrait.tiny { width:28px; height:30px; border-radius:8px; }
.story-scene-art .client-portrait.hero { width:100%; max-width:320px; height:300px; object-fit:contain; object-position:center bottom; border-radius:0; background:transparent; filter:drop-shadow(0 12px 16px #08170c55); }
.story-cast > span { display:inline-flex; align-items:center; gap:7px; }
.order-top > .client-portrait { align-self:center; }
.client-feedback > .client-portrait,.client-message > .client-portrait { align-self:flex-start; }
@media(max-width:760px) {
 .story-scene-art .client-portrait.hero { height:210px; max-width:260px; }
 .client-portrait.compact { width:56px; height:64px; }
 .client-feedback > .client-portrait { width:48px; height:56px; }
}
/* Sprint 4: clear order hierarchy and shared mobile planning. */
.orders-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 24px}
.orders-summary>div{display:flex;flex-direction:column;gap:6px;padding:18px;background:var(--card,#19291f);border:1px solid #354c3d;border-radius:18px;min-width:0}
.orders-summary strong{font-size:clamp(20px,4vw,28px);color:#d1f59f}
.orders-summary small{font-size:14px;color:#b5c6b7}
.orders-overview{margin-bottom:24px}
.orders-accordion{margin-top:24px}
.campaign-details{margin:24px 0;color:#b5c6b7}.campaign-details summary{cursor:pointer;padding:14px}
.planning-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.planning-title-row>.btn{flex-shrink:0;min-height:44px;margin-top:24px}
.negative{color:#ffad9c!important}
.launch-issue{font-size:15px;line-height:1.5;color:#f1c59d}
.activity-notice{display:flex;align-items:center;gap:12px;margin:0 0 22px;padding:16px;border:1px solid #9ad35d;background:#243820;border-radius:18px}
.activity-notice>div{flex:1;min-width:0}.activity-notice strong,.activity-notice span{display:block}.activity-notice>div>span{font-size:14px;line-height:1.4;margin-top:4px;color:#c2d0bf}.activity-notice .btn{flex-shrink:0}
.activity-notice-icon{color:#b9ef78}.workshop-step{display:flex;align-items:center;gap:12px;color:#c2ed9e;margin-bottom:18px}.workshop-step>span{font-size:36px}.workshop-question{font-size:22px;line-height:1.4;margin-bottom:20px}
.empty-slot{font-size:13px;color:#a9bcac;line-height:1.4}.schedule-slot.empty{border-style:dashed;background:#122118}.schedule-slot.can-place.empty{border-color:#b8f573}
.xp-next{display:block;color:#b7cbb9;font-size:12px;font-weight:400;margin-top:3px}
@media(max-width:600px){.planning-title-row{display:block}.planning-title-row>.btn{margin:0 0 16px;width:100%}.activity-notice{gap:8px;padding:12px;flex-wrap:wrap}.activity-notice-icon{display:none}.activity-notice>div{min-width:160px}.orders-summary>div{padding:14px}.task-properties{flex-wrap:wrap}.task-properties>span{max-width:100%}.forecast .facts dd{overflow-wrap:anywhere}.workshop-question{font-size:20px}}
/* Utility controls keep their exact hit boxes during the welcome entrance. */
.splash-screen .onboarding-header { animation-name:splashArt; }
@media(prefers-reduced-motion:reduce){.splash-screen .onboarding-header{animation:none}}
body.no-motion.splash-screen .onboarding-header,body.splash-complete.splash-screen .onboarding-header{animation:none}

/* Office: scenery and readable labels live in separate, flowing layout areas. */
.office-summary{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px;color:#d7e5cd;font-size:14px}
.office-summary>span{padding:9px 12px;border:1px solid #42583e;border-radius:12px;background:#1e3023;display:flex;align-items:center;gap:8px}
.office-layout{display:grid;gap:30px;min-width:0}
.office-room-card{min-width:0;container:office / inline-size}
.office-scene{border:1px solid #4e654c;border-radius:24px;overflow:hidden;background:#263f32;isolation:isolate}
.office-room-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px;background:#20382d;border-bottom:1px solid #58735466}
.office-room-eyebrow{display:block;color:#b3c89a;font-size:11px;font-weight:800;letter-spacing:.14em;margin-bottom:7px}
.office-room-top h2{font-size:23px;line-height:1.3;margin:0;color:#f2f5e6}
.office-room-caption{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;max-width:100%;padding:9px 12px;border-radius:12px;background:#10291c8c;font-size:13px;line-height:1.4;color:#d1dfc7}
.office-room-caption>i,.office-seat-state>i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#8fa18c}
.office-room-caption.working>i,.is-working .office-seat-state>i,.is-checking .office-seat-state>i,.is-ready .office-seat-state>i{background:#c2ee7e;box-shadow:0 0 9px #b1e97266}
.office-room-caption.attention>i,.is-attention .office-seat-state>i{background:#f2ca85}
.office-interior{background:linear-gradient(110deg,#698c64 0%,#3e6048 36%,#304c3b 100%)}
.office-backdrop{position:relative;height:120px;overflow:hidden;border-bottom:8px solid #b09b716b;background:linear-gradient(110deg,#a0b78018,transparent 60%)}
.office-window{position:absolute;left:6%;bottom:16px;width:180px;height:92px;border:7px solid #1d382b;border-radius:8px;background:linear-gradient(145deg,#e0e9ab,#89bfa2);overflow:hidden;box-shadow:14px 10px 50px #c8ea9b17}
.office-window::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 47%,#284b36 47% 51%,transparent 51%)}
.office-window i{position:absolute;background:#558471;bottom:0;width:23%;height:28%}
.office-window i:nth-child(1){left:6%;height:28%}
.office-window i:nth-child(2){left:34%;height:45%}
.office-window i:nth-child(3){left:68%;height:35%}
.office-window>span{position:absolute;right:18px;top:12px;background:#f8e6a2;width:20px;height:20px;border-radius:50%}
.office-shelf{position:absolute;left:38%;top:22px;height:34px;width:100px;border-bottom:6px solid #b6a17c;display:flex;gap:5px;align-items:flex-end}
.office-shelf i{width:11px;height:24px;background:#b4d884;border-radius:2px 2px 0 0}
.office-shelf i:nth-child(2){height:30px;background:#d3ad7c}
.office-shelf i:nth-child(3){height:20px;background:#90b7c7}
.office-shelf>span{width:15px;height:17px;background:#e4d6b8;border-radius:3px 3px 7px 7px;margin-left:7px}
.office-board{position:absolute;right:18%;top:18px;width:110px;height:66px;background:#d4dcc0;border:5px solid #958769;border-radius:3px;display:flex;gap:8px;padding:11px;box-shadow:0 4px 7px #10261b33}
.office-board i{width:20px;height:23px;background:#9dbd72;transform:rotate(-6deg)}
.office-board i:nth-child(2){background:#d6b37a;transform:rotate(5deg)}
.office-board i:nth-child(3){background:#82b5af}
.office-plant{position:absolute;right:5%;bottom:12px;width:40px;height:65px}
.office-plant>b{position:absolute;bottom:0;left:8px;width:26px;height:25px;border-radius:3px 3px 9px 9px;background:linear-gradient(90deg,#c58c60,#e3b47e);border-top:5px solid #ecc691}
.office-plant::before{content:'';position:absolute;left:20px;top:6px;bottom:16px;width:3px;background:#789e54}
.office-plant i{position:absolute;left:1px;top:13px;width:24px;height:12px;background:#9cbe62;border-radius:0 80% 0 80%;transform:rotate(25deg)}
.office-plant i:nth-child(2){left:19px;top:2px;transform:rotate(-48deg);background:#b0cc76}
.office-plant i:nth-child(3){left:17px;top:26px;transform:rotate(-30deg);background:#85aa56}
.office-coffee{position:absolute;left:55%;bottom:15px;width:62px;height:42px;background:#af9774;border-radius:4px;box-shadow:0 6px 0 #796b51}
.office-coffee>i{position:absolute;width:30px;height:32px;left:5px;bottom:7px;border-radius:4px;background:#243d32;border-top:5px solid #3a5546}
.office-coffee>i::after{content:'';position:absolute;width:12px;height:8px;bottom:3px;left:8px;border-radius:1px 1px 4px 4px;background:#dfd1b4}
.office-coffee>span{position:absolute;width:12px;height:13px;right:6px;bottom:8px;background:#e7d7b7;border-radius:2px 2px 5px 5px}
.office-floor{position:relative;padding:24px 28px 28px;background:repeating-linear-gradient(0deg,transparent 0 69px,#d0d8a509 70px 71px),repeating-linear-gradient(90deg,transparent 0 119px,#d0d8a509 120px 121px),linear-gradient(115deg,#576c4b,#344d38 72%);box-shadow:inset 0 12px 20px #142c2422}
.office-workstations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;position:relative;align-items:start}
.office-station,.office-empty-seat{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:16px;background:transparent;color:#f3f5e8;font:inherit;text-align:center;cursor:pointer;transition:none}
.office-station:hover,.office-empty-seat:hover{background:transparent;transform:none}
.office-station:focus-visible,.office-empty-seat:focus-visible{outline:3px solid #c2ef80;outline-offset:5px}
.office-station-art,.office-empty-art{display:block;position:relative;height:180px;width:100%;max-width:230px;margin:0 auto;isolation:isolate}
.office-station-art::after,.office-empty-art::after{content:'';position:absolute;bottom:4px;left:10%;right:10%;height:22px;background:#102b2470;filter:blur(8px);border-radius:50%;z-index:-1}
.office-chair{position:absolute;top:48px;left:calc(50% - 40px);width:80px;height:88px;background:#203c32;border:5px solid #2c4a3a;border-radius:28px 28px 14px 14px;box-shadow:0 8px 0 #233d31}
.office-person{position:absolute;bottom:69px;left:calc(50% - 43px);width:86px;height:104px;z-index:2}
.office-person .staff-avatar,.office-person .player-portrait,.office-person .player-portrait img{width:86px!important;height:104px!important;object-fit:cover;object-position:top;border:0!important;border-radius:24px 24px 8px 8px!important;max-width:none!important;max-height:none!important;display:block;background:transparent}
.office-desk{position:absolute;left:calc(50% - 86px);bottom:20px;width:172px;height:50px;border-radius:10px;background:linear-gradient(180deg,#cab387,#b69d72);box-shadow:0 7px 0 #8b7958,0 13px 10px #142b2433;z-index:3;border-top:2px solid #dfcca1}
.office-desk::before,.office-desk::after{content:'';position:absolute;top:54px;width:8px;height:14px;background:#7a6b50;border-radius:0 0 2px 2px}
.office-desk::before{left:13px}
.office-desk::after{right:13px}
.office-monitor{position:absolute;left:29px;top:-30px;width:83px;height:49px;border:5px solid #1a3027;border-bottom-width:8px;border-radius:6px;background:#14271e;display:flex;flex-direction:column;gap:4px;padding:5px;box-shadow:0 2px 0 #d7c398}
.office-monitor::after{content:'';position:absolute;left:27px;bottom:-17px;width:22px;height:9px;border-bottom:4px solid #2c4032;border-left:7px solid transparent;border-right:7px solid transparent}
.office-monitor>b{position:absolute;right:4px;bottom:2px;color:#c5f487;font-size:12px;font-weight:700}
.office-monitor i{height:2px;width:60%;background:#659a64;border-radius:2px}
.office-monitor i:nth-child(2){width:37%;background:#91a3b1}
.office-monitor i:nth-child(3){width:50%;background:#b0b67b}
.office-keyboard{position:absolute;left:40px;bottom:5px;width:63px;height:10px;background:repeating-linear-gradient(90deg,#425844 0 5px,#819078 6px 7px);border:2px solid #425844;border-radius:3px}
.office-mug{position:absolute;right:22px;top:11px;width:15px;height:17px;border-radius:3px 3px 6px 6px;background:#f3e6c9;box-shadow:0 2px 0 #8d7c5b}
.office-mug::after{content:'';position:absolute;right:-6px;top:3px;width:8px;height:9px;border:2px solid #f3e6c9;border-radius:50%}
.office-seat-label{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:14px 6px 2px}
.office-seat-name{display:block;font-size:18px;font-weight:800;line-height:1.35;overflow-wrap:anywhere;max-width:100%}
.office-seat-state{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;line-height:1.4;color:#d3dfc9;background:#19362799;border-radius:9px;padding:6px 10px;max-width:100%;overflow-wrap:anywhere}
.office-station:hover .office-desk{filter:brightness(1.08)}
.office-station.is-working .office-monitor,.office-station.is-checking .office-monitor{background:#335432;box-shadow:0 0 20px #b0ed7555}
.office-station.is-working .office-monitor i{animation:officeCode 1.6s ease-in-out infinite alternate}
.office-station.is-working .office-monitor i:nth-child(2){animation-delay:.4s}
.office-station.is-checking .office-monitor i{animation:officeCode 2s ease-in-out infinite alternate}
.office-station.is-attention .office-monitor{background:#795933;border-color:#413a27}
.office-station.is-attention .office-monitor b{color:#ffe2a5}
.office-station.is-ready .office-monitor{background:#4b7136}
.office-station.is-attention .office-seat-state{color:#ffe0a6;background:#4b3d2799}
.office-work-dots{position:absolute;right:calc(50% - 70px);top:30px;display:flex;gap:3px}
.office-work-dots i{width:5px;height:5px;border-radius:50%;background:#cef091;animation:officeDot 1.4s ease-in-out infinite}
.office-work-dots i:nth-child(2){animation-delay:.2s}
.office-work-dots i:nth-child(3){animation-delay:.4s}
.office-empty-art{opacity:.6}
.office-empty-art::before{content:'';position:absolute;top:50px;bottom:38px;left:calc(50% - 36px);width:72px;border:2px dashed #b4c29e;border-radius:24px}
.office-empty-desk{position:absolute;bottom:20px;left:calc(50% - 86px);width:172px;height:50px;border:2px dashed #bfcca8;border-radius:10px;background:#bfd19a0c}
.office-empty-plus{position:absolute;top:28px;left:calc(50% - 22px);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#2d4936;border:1px solid #b8ca9677;color:#d0e7ab}
.office-empty-seat .office-seat-name{font-size:16px;font-weight:600;color:#c2d0b2}
.office-empty-seat .office-seat-state{color:#afc29e;background:transparent;padding-left:0;padding-right:0}
.office-empty-seat:hover .office-empty-art{opacity:1}
.office-scene-hint{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.6;color:#b9cbb0;margin:12px 4px 0}
.office-scene-hint .icon{width:16px;height:16px;flex:0 0 16px;margin-top:3px}
.office-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:16px}
.office-section-heading h2{font-size:23px;margin:0}
.office-section-heading>span{font-size:13px;color:#9fb39b}
.office-assignment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.office-worker-row{display:flex;flex-direction:column;min-width:0;padding:22px;background:#182b22;border:1px solid #354c3c;border-radius:18px}
.office-worker-heading{display:flex;align-items:center;gap:12px;min-width:0}
.office-worker-heading>span{min-width:0}
.office-worker-heading>.staff-avatar,.office-worker-heading>.player-portrait{flex:0 0 48px;width:48px;height:56px;object-fit:cover;object-position:top;border-radius:12px}
.office-worker-row strong{display:block;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.office-worker-row p{margin:16px 0 12px;color:#d3dfc9;font-size:15px;line-height:1.5}
.office-worker-row .office-order-title{font-size:17px;font-weight:700}
.office-worker-row ul{padding-left:18px;margin:0 0 18px;font-size:14px;line-height:1.6;color:#acbfa5}
.office-worker-row .progress{margin-top:auto;margin-bottom:14px}
.office-worker-row .btn{align-self:flex-start;min-height:44px}
.office-state{display:block;font-size:13px;line-height:1.5;color:#b0c4a6;margin-top:4px}
.office-state.working,.office-state.ready{color:#c4ef86}
.office-state.attention{color:#f1d494}
.office-hiring-note{color:#afc29e;font-size:14px;line-height:1.6;margin:16px 0 0}
.office-hiring-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:18px 22px;border:1px dashed #586f49;border-radius:16px}
.office-hiring-footer p{color:#c8d9bd;font-size:15px;line-height:1.5;margin:0}
.office-leadership{margin-top:28px}
.office-leadership p{font-size:16px;line-height:1.6;color:#bed0b5;margin-top:10px}
@media(max-width:1150px){
  .office-workstations{gap:12px}
  .office-floor{padding:22px 18px}
  .office-assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .office-worker-row{padding:18px}
}
@container office (max-width:700px){
  .office-room-top{padding:18px;align-items:flex-start;flex-direction:column;gap:12px}
  .office-room-top h2{font-size:21px}
  .office-room-caption{font-size:12px;padding:7px 10px}
  .office-backdrop{height:90px;border-bottom-width:6px}
  .office-window{left:6%;width:105px;height:64px;bottom:10px;border-width:5px}
  .office-window>span{width:14px;height:14px;right:10px;top:8px}
  .office-shelf{left:48%;width:68px;top:15px;height:27px;gap:4px}
  .office-shelf i{width:9px;height:17px}
  .office-shelf i:nth-child(2){height:24px}
  .office-shelf i:nth-child(3){height:19px}
  .office-shelf>span{display:none}
  .office-board{left:48%;right:auto;width:65px;height:31px;top:auto;bottom:7px;padding:5px;gap:5px;border-width:3px}
  .office-board i{width:12px;height:14px}
  .office-plant{right:6%;bottom:7px;transform:scale(.8);transform-origin:bottom right}
  .office-coffee{left:auto;right:3%;bottom:6px;transform:scale(.7);transform-origin:bottom right}
  .level-3 .office-plant{display:none}
  .office-floor{padding:22px 12px 24px}
  .office-workstations{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px;row-gap:22px}
  .office-station:last-child,.office-empty-seat:last-child{grid-column:1/-1;width:calc((100% - 10px)/2);justify-self:center}
  .office-station-art,.office-empty-art{height:140px}
  .office-chair{top:35px;left:calc(50% - 31px);width:62px;height:68px;border-width:4px}
  .office-person{bottom:58px;left:calc(50% - 33px);width:66px;height:82px}
  .office-person .staff-avatar,.office-person .player-portrait,.office-person .player-portrait img{width:66px!important;height:82px!important;border-radius:18px 18px 6px 6px!important}
  .office-desk,.office-empty-desk{left:calc(50% - 57px);width:114px;height:40px;bottom:18px;border-radius:7px}
  .office-desk::before,.office-desk::after{top:44px;width:6px;height:12px}
  .office-monitor{left:13px;top:-26px;width:66px;height:42px;border-width:4px;border-bottom-width:7px;padding:4px;gap:3px}
  .office-monitor::after{left:20px;bottom:-13px;width:18px;height:7px;border-bottom-width:3px;border-left-width:6px;border-right-width:6px}
  .office-monitor>b{font-size:10px}
  .office-keyboard{width:47px;height:8px;left:22px;bottom:4px}
  .office-mug{width:11px;height:13px;right:13px;top:8px}
  .office-mug::after{right:-5px;width:6px;height:7px;border-width:2px}
  .office-seat-label{gap:7px;padding:12px 0 0}
  .office-seat-name{font-size:16px}
  .office-seat-state{font-size:12px;padding:5px 7px;gap:5px}
  .office-empty-seat .office-seat-name{font-size:14px}
  .office-empty-art::before{top:36px;bottom:32px;left:calc(50% - 28px);width:56px}
  .office-empty-plus{width:36px;height:36px;left:calc(50% - 18px);top:20px}
  .office-work-dots{right:calc(50% - 49px);top:16px}

}
@container office (max-width:300px){
  .office-floor{padding-left:8px;padding-right:8px}
  .office-workstations{column-gap:6px}
  .office-seat-name{font-size:15px}
  .office-seat-state{font-size:11px;padding:5px 6px}
  .office-station:last-child,.office-empty-seat:last-child{width:calc((100% - 6px)/2)}
}


@media(max-width:700px){
  .office-section-heading{align-items:flex-start;flex-direction:column;gap:5px}
  .office-section-heading h2{font-size:22px}
  .office-assignment-grid{grid-template-columns:1fr}
  .office-worker-row{padding:18px}
  .office-hiring-footer{align-items:stretch;flex-direction:column;padding:16px}
}

.leadership-invite{display:flex;gap:16px;align-items:center;border:1px solid #7f9a5d;border-radius:20px;background:#243c27;padding:18px;margin:0 0 22px}.leadership-invite>div{flex:1;min-width:0}.leadership-invite strong{font-size:17px}.leadership-invite p{color:#c0d1b4;font-size:14px;margin-top:5px}.small-bot{width:55px;height:58px;overflow:hidden;flex:0 0 55px}.small-bot>.sber-bot{transform:scale(.55);transform-origin:top left}.leadership-dialogue{font-size:18px;line-height:1.65}.leadership-cast{display:flex;align-items:center;gap:25px;margin:14px 0}.leadership-cast>div{height:100px;width:105px;overflow:hidden}.leadership-cast .sber-bot{transform:scale(.8);transform-origin:top left}.leadership-cast>.player-portrait{width:90px;height:100px}.leadership-line{margin:20px 0!important}
.activity-notice{flex-wrap:wrap}.activity-queue-list{flex:1 0 100%;width:100%;font-size:14px;border-top:1px solid #52783f;padding-top:10px}.activity-queue-list summary{cursor:pointer;min-height:32px;padding:5px 0}.activity-queue-list ol{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:9px}.activity-queue-list li{padding:10px;border-radius:10px;background:#14281a}.activity-queue-list small{display:block;font-size:13px;color:#b2c8a9}
.review-person{display:flex;align-items:center;gap:12px;margin:5px 0 22px}.review-person strong{font-size:18px;display:block}.review-person small{color:#b9ccb2;font-size:14px}.review-artifact{border:1px solid #718664;background:#17281f;border-radius:18px;padding:18px;margin-bottom:22px}.review-artifact-top span{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#b6c8a8;display:block}.review-artifact-top strong{font-size:22px;display:block;margin:8px 0}.review-artifact>p{font-size:15px;line-height:1.6;color:#bfd0b5;margin-bottom:16px}.review-comparison-head{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:13px;color:#aabe9d;padding:8px 12px}.review-check{display:grid;grid-template-columns:1fr 1fr 20px;gap:12px;align-items:center;width:100%;border:2px solid transparent;border-top-color:#42563d;background:#233b29;color:#f0f4e8;text-align:left;padding:16px 12px;font:inherit;font-size:16px;min-height:84px;border-radius:10px;margin-top:6px}.review-check>span{min-width:0;overflow-wrap:anywhere}.review-check strong{display:block;font-size:15px;margin-bottom:5px}.review-check small{font-size:13px;color:#c0cfb1;line-height:1.4}.review-check>b{color:#aec68d;font-size:20px}.review-check.marked{border-color:#e5bd80;background:#4a4029}.review-check.marked>b{color:#f8d99b}.review-check:disabled{opacity:1;cursor:default}.review-artifact.is-fixed{border-color:#99c86c}.review-feedback-picker h3{font-size:20px;margin:18px 0}.review-verdicts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.review-verdicts .btn{flex:1;min-width:170px}.ai-coach{display:flex;gap:28px;align-items:center;margin-bottom:22px}.ai-coach>div{flex:1;min-width:0}.ai-coach-art{width:110px;height:125px;overflow:hidden;flex:0 0 110px}.ai-coach-art .sber-bot{transform:scale(.9);transform-origin:top left}.ai-coach h2{font-size:24px;margin-bottom:14px}.ai-coach p,.ai-learning p,.ai-unlocked p{font-size:17px;line-height:1.65;margin:14px 0;color:#d2e1c7}.ai-learning h2,.ai-unlocked h2{font-size:24px;margin-bottom:14px}.ai-unlock-list{display:grid;gap:12px;list-style:none;padding:0;margin:20px 0 28px}.ai-unlock-list li{display:flex;align-items:center;gap:12px;font-size:16px;color:#b6c7ac}.ai-unlock-list li>span{width:28px;height:28px;border-radius:50%;background:#2c4231;display:grid;place-items:center}.ai-unlock-list .done{color:#d5f3ab}.ai-unlock-list .done>span{background:#3b5e33}.ai-lesson{border-top:1px solid #40563a;padding-top:22px}.ai-lesson h2{line-height:1.5}.ai-unlocked .btn{margin:10px 10px 0 0}.ai-token-balance{background:#213b2c;border:1px solid #6a8653;border-radius:16px;padding:20px;display:flex;justify-content:space-between;align-items:center;margin:18px 0}.ai-token-balance strong{font-size:36px;color:#bcec79}.ai-unlocked .fine{font-size:14px}
@keyframes officeCode{from{width:30%;opacity:.5}to{width:80%;opacity:1}}@keyframes officeDot{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}
body.no-motion .office-scene *{animation:none!important}
@media(prefers-reduced-motion:reduce){.office-scene *{animation:none!important}}
@media(max-width:600px){.mobile-nav .nav-item{flex:1;min-width:0;padding:10px 3px}.mobile-nav .nav-item .icon{width:21px}.office-summary{gap:7px}.office-summary>span{font-size:13px;padding:8px 10px}.leadership-invite{gap:10px;padding:14px;flex-wrap:wrap}.leadership-invite .small-bot{display:none}.leadership-invite .btn{min-height:44px}.review-artifact{padding:12px}.review-check{gap:9px;padding:13px 9px;font-size:15px;grid-template-columns:1fr 1fr 16px}.review-check small{font-size:12px}.review-check strong{font-size:14px}.review-verdicts .btn{min-width:100%;width:100%}.ai-coach{display:block}.ai-coach-art{display:block;height:100px;width:100px;margin-bottom:15px}.ai-coach-art .sber-bot{transform:scale(.75)}.ai-lesson .request-choice{font-size:16px}.ai-unlocked .btn{width:100%;margin-right:0}}

/* Technical UI fixes (0.5): feedback has its own place, never above controls. */
.project-feedback-slot:empty{display:none}
.project-feedback-slot .project-moment{position:relative;inset:auto;width:100%;max-width:none;z-index:auto;margin:0 0 18px;display:flex;align-items:center;gap:14px;padding:16px 18px;pointer-events:auto;animation:fadeIn .2s ease;transform:none;box-shadow:none}
.project-moment-bot{flex:0 0 52px;width:52px;height:63px;overflow:hidden}
.project-moment-bot .sber-bot{transform:scale(.5);transform-origin:top left}
.project-moment-copy{min-width:0;line-height:1.5}
.project-moment-copy strong{display:block;font-size:13px;color:#c9eea2;margin-bottom:4px}
.project-moment-copy span{font-size:16px;color:#ebf2e7;overflow-wrap:anywhere}
.project-live-hero>.day-transition{position:relative;inset:auto;z-index:auto;width:100%;height:auto;min-height:0;display:block;margin:0 0 16px;padding:0;background:none;backdrop-filter:none;pointer-events:none;animation:fadeIn .15s;transform:none}
.project-live-hero>.day-transition .day-transition-inner{position:relative;inset:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;width:100%;max-width:none;border:1px solid #6b8854;border-radius:12px;background:#243d2c;box-shadow:none;animation:none;text-align:left;transform:none}
.project-live-hero>.day-transition .day-transition-inner>span{font-size:11px;letter-spacing:.1em;color:#c2d5b0}
.project-live-hero>.day-transition .day-transition-inner>strong{font-size:24px;line-height:1.2;margin:0;letter-spacing:0;text-shadow:none}
.project-live-hero>.day-transition .day-transition-inner>p{font-size:13px;line-height:1.4;margin:0;color:#d5e3cb}
body.modal-open #app .sber-bot{visibility:hidden}
.guide-active .leadership-invite{display:none}
.report-coach{display:flex;align-items:center;gap:12px;border:1px solid #4c683e;background:#21382a;border-radius:16px;padding:16px;margin:18px 0}
.report-coach-bot{display:block;flex:0 0 52px;width:52px;height:63px;overflow:hidden}
.report-coach-bot .sber-bot{transform:scale(.5);transform-origin:top left}
.report-coach>div{min-width:0}
.report-coach strong{font-size:13px;color:#c8e99f}
.report-coach p{font-size:16px;line-height:1.5;margin:6px 0 0}
/* Netlify injects this exact iframe on the public site. Keep its external frame
   in normal page flow, above the mobile safe area, without touching frame content. */
iframe#nl-badge-frame{position:relative!important;inset:auto!important;display:block!important;margin:16px 16px 24px auto!important;z-index:1!important;max-width:calc(100vw - 32px)!important}
.orientation-guard[hidden]{display:none!important}
.orientation-guard{position:fixed;inset:0;z-index:2200;display:grid;place-items:center;padding:18px max(18px,env(safe-area-inset-right)) 18px max(18px,env(safe-area-inset-left));background:#101e17;overflow:auto;overscroll-behavior:contain;outline:none}
.orientation-card{width:min(580px,100%);padding:22px;text-align:center;border:1px solid #4a663c;border-radius:22px;background:radial-gradient(ellipse at top,#2d4d30,#192d21 75%)}
.orientation-phone{display:inline-grid;place-items:center;width:36px;height:52px;border:2px solid #bcf176;border-radius:9px;color:#bcf176;margin-bottom:12px}
.orientation-phone .icon{width:20px;height:20px}
.orientation-card h2{font-size:26px;line-height:1.2;margin:0 0 10px}
.orientation-card p{font-size:16px;line-height:1.5;color:#c6d7bc;max-width:420px;margin:0 auto 16px}
.orientation-card .entry-audio-controls{display:flex;justify-content:center;flex-wrap:wrap;margin:0;position:static}
body.orientation-blocked{overflow:hidden}
.orientation-blocked iframe#nl-badge-frame{visibility:hidden!important}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
  iframe#nl-badge-frame{margin-bottom:calc(100px + env(safe-area-inset-bottom))!important}
}
@media(max-width:400px){
  .project-feedback-slot .project-moment{gap:10px;padding:12px}
  .project-moment-copy span,.report-coach p{font-size:15px}
  .report-coach{padding:12px;gap:10px}
}
@media(prefers-reduced-motion:reduce){.project-feedback-slot .project-moment,.project-live-hero>.day-transition{animation:none}}
/* A single measured tutorial dock leaves the highlighted control reachable. */
.guide-coach.coach-left,.guide-coach.coach-right{top:auto;bottom:var(--guide-bottom,16px);left:auto;right:16px;width:min(370px,calc(100vw - 32px));padding:0;border:0;display:flex;gap:10px;align-items:flex-end;animation:fadeIn .15s ease;transform:none}
.guide-coach .guide-bot-pop{width:58px;height:72px;flex:0 0 58px;position:relative;overflow:hidden;transform:none;animation:none}
.guide-coach .guide-bot-pop .sber-bot{transform:scale(.55);transform-origin:top left;animation:none}
.guide-coach .guide-bubble{flex:1;min-width:0;width:auto;max-height:var(--guide-max-height,300px);overflow:auto;overscroll-behavior:contain;pointer-events:auto;padding:14px;animation:none;transform:none}
.guide-coach .guide-bubble>p{font-size:16px;line-height:1.5;margin:10px 0}
.guide-coach-footer{min-height:36px;line-height:1.4}
.guide-coach-footer>span{font-size:12px;color:#c4d9b6}
@media(max-width:1000px){.guide-coach.coach-left,.guide-coach.coach-right{left:12px;right:12px;width:auto}}
@media(max-width:360px){.guide-coach.coach-left,.guide-coach.coach-right{gap:8px}.guide-coach .guide-bubble{padding:12px}.guide-coach .guide-bubble>p{font-size:15px}}
.guide-active .app-shell main{padding-bottom:calc(var(--guide-space,280px) + 80px)!important}

/* Experimental office hub: original isometric game scene with touch controls. */
.office-home{max-width:1100px;margin:0 auto;min-width:0}
.office-home-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
.office-home-heading h1{font-size:30px;line-height:1.15;letter-spacing:-.035em;margin:7px 0 0;color:#f1f4e8}
.office-level-pill{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #55714d;background:#253d2b;border-radius:12px;white-space:nowrap;font-size:14px;color:#cde6b6}
.office-stage{position:relative;isolation:isolate;width:100%;height:clamp(380px,55vw,590px);border:1px solid #4c6855;border-radius:24px;overflow:hidden;background:#203b31;box-shadow:0 14px 45px #051e1624;touch-action:pan-y}
.office-stage canvas{display:block;width:100%;height:100%}
.office-scene-targets{position:absolute;inset:0;pointer-events:none}
.office-hotspot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;min-width:44px;min-height:44px;border:2px solid transparent;border-radius:15px;background:transparent;color:#eaf5dc;padding:0;cursor:pointer;pointer-events:auto;touch-action:manipulation;font:inherit;box-shadow:none;transition:background .15s,border-color .15s}
.office-hotspot:hover,.office-hotspot:focus-visible{background:#c7f58c22;border-color:#ddf6aa;outline:3px solid #0f2a234d;outline-offset:3px}
.office-person-name{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);font-size:12px;line-height:1.4;font-weight:700;white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis;background:#1a392be6;padding:3px 7px;border:1px solid #71936966;border-radius:7px;color:#f1f6df}
.office-person-indicator:empty{display:none}
.office-person-indicator{position:absolute;top:-18px;right:-4px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f5cb78;color:#293a27;border:2px solid #fff0ba;font-size:17px;font-weight:900;box-shadow:0 3px 8px #1b352c55}
.office-hotspot.status-attention{animation:officeCall 1.5s ease-in-out infinite}
.office-hotspot.status-ready .office-person-indicator{background:#b7ec7d;border-color:#e3fac1}
.office-hotspot[data-animation="walking"] .office-person-name,.office-hotspot[data-animation="discussing"] .office-person-name{opacity:0}
.office-hotspot[data-animation="walking"]:focus .office-person-name{opacity:1}
.office-hotspot.board,.office-hotspot.vacant{display:flex;align-items:center;justify-content:center;border:1px solid #dbedc27a;background:#264a3dd9;box-shadow:0 4px 12px #122e2744}
.office-hotspot.board{width:60px;height:46px;border-radius:12px;color:#e7f5c6}
.office-hotspot.board .icon{width:24px;height:24px}
.office-hotspot.board>span{position:absolute;left:50%;top:50px;transform:translateX(-50%);font-size:12px;font-weight:700;white-space:nowrap;padding:3px 7px;border-radius:7px;background:#1c3c2fe6}
.office-hotspot.board.suggested{border-color:#d6ef95;box-shadow:0 0 0 5px #c1e58222,0 4px 12px #122e2744}
.office-hotspot.vacant{background:#49604d99;border:1px dashed #e1e8bf88;border-radius:50%;color:#ecf1dc}
.office-hotspot.vacant>span{display:none}
.office-stage-notice{position:absolute;z-index:2;top:12px;left:12px;display:flex;align-items:center;gap:9px;border:1px solid #e0bd7b;border-radius:12px;background:#3f4d2deF;color:#fff0c3;padding:10px 13px;min-height:44px;font:inherit;font-size:14px;font-weight:700;box-shadow:0 3px 16px #0b271a44;cursor:pointer;max-width:calc(100% - 24px)}
.office-stage-notice.success{background:#325037ed;border-color:#afdc76;color:#e8f9c7}
.office-stage-notice b{display:inline-grid;place-items:center;width:21px;height:21px;background:#eed18e;color:#34402a;border-radius:50%;margin-left:4px}
.office-room-tag{position:absolute;bottom:12px;left:12px;right:12px;text-align:center;font-size:12px;line-height:1.4;color:#e1e9d1;text-shadow:0 1px 2px #173e2e;pointer-events:none}
.office-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.office-toolbar .btn{min-width:0;min-height:46px;display:flex;justify-content:center;gap:8px;font-size:14px;padding:10px}
.office-next-step{display:flex;align-items:flex-start;gap:18px;padding:22px;border:1px solid #526b42;border-radius:20px;background:linear-gradient(125deg,#29452d,#1b3024);margin-bottom:24px}
.office-next-bot{flex:0 0 54px;width:54px;height:70px;overflow:hidden;margin-top:3px}
.office-next-bot .sber-bot{transform:scale(.52);transform-origin:top left}
.office-next-copy{min-width:0;flex:1}
.office-next-copy h2{font-size:22px;line-height:1.25;margin:8px 0 10px;color:#f0f4e5}
.office-next-copy p{font-size:16px;line-height:1.5;color:#c9dbbf;margin:0 0 16px}
.office-next-copy .btn{min-height:46px}
.office-next-step.kind-activity{border-color:#b6a268;background:linear-gradient(125deg,#3d4830,#253b2b)}
.office-projects{margin:24px 0}
.office-project-row{display:flex;align-items:center;gap:16px;background:#182b22;border:1px solid #36513e;border-radius:15px;padding:17px;margin-top:10px}
.office-project-row>div:first-child{flex:1;min-width:0}
.office-project-row strong{display:block;font-size:17px;line-height:1.35;color:#e9f0e0}
.office-project-row small,.office-executor-names{display:block;font-size:13px;line-height:1.45;margin-top:5px;color:#b2c6a9}
.office-project-meter{width:120px;flex:0 0 120px;color:#c8e598;font-size:12px;text-align:right}
.office-project-meter .progress{margin-top:6px}
.office-project-row .icon-button{flex:0 0 44px;min-width:44px;min-height:44px}
.office-campaign{border-top:1px solid #38503c;padding-top:16px;font-size:15px;color:#c9d7bf}
.office-campaign summary{cursor:pointer;min-height:44px}
.office-campaign summary>span{float:right;color:#9fbc8c}
.office-campaign ol{list-style:none;padding:0;margin:16px 0;display:grid;gap:14px}
.office-campaign li{display:flex;align-items:flex-start;gap:12px;color:#97ae91}
.office-campaign li>span{font-size:23px;line-height:1}
.office-campaign strong{display:block;font-size:15px;line-height:1.4}
.office-campaign small{display:block;font-size:13px;margin-top:4px}
.office-campaign .done,.office-campaign .current{color:#d0e8a9}
.office-inbox h3{font-size:19px;margin:22px 0 14px}
.office-inbox .order-card{margin-bottom:14px}
.office-inbox .order-card .order-open{min-height:44px}
.office-inbox-project{width:100%;display:flex;align-items:center;gap:14px;justify-content:space-between;text-align:left;border:1px solid #496342;border-radius:13px;padding:16px;background:#243b2a;color:#ebf3dd;font:inherit;margin:10px 0;cursor:pointer}
.office-inbox-project strong{font-size:17px;line-height:1.35}
.office-inbox-project small{display:block;font-size:13px;line-height:1.5;color:#b2c9a7;margin-top:4px}
.office-inbox-waiting{padding:16px;border:1px solid #a89e65;background:#3a432d;border-radius:15px}
.office-inbox-waiting strong{display:block;margin-bottom:12px}
.office-speaker{display:flex;align-items:center;gap:16px;margin-bottom:20px;min-height:85px}
.office-speaker>.sber-bot{transform:scale(.65);transform-origin:left center;margin-right:-25px}
.office-speaker>.client-portrait,.office-speaker>.player-portrait,.office-speaker>.staff-avatar{width:78px;height:88px;object-fit:cover;object-position:top;border-radius:16px;flex:0 0 78px}
.office-speaker>.player-portrait img{width:100%;height:100%;object-fit:cover;object-position:top}
.office-speaker h3{font-size:25px;line-height:1.3;margin:7px 0}
.office-speaker p{font-size:14px;color:#bad0af}
.office-conversation .progressive-speech{font-size:19px;line-height:1.65;margin:18px 0 24px}
.office-conversation .fine{font-size:13px;line-height:1.45;margin-top:12px}
.office-welcome-bot{height:105px;width:110px;margin:0 auto 12px;overflow:hidden}
.office-welcome-bot>.sber-bot{transform:scale(.8);transform-origin:top left}
.office-welcome>.progressive-speech{font-size:18px;line-height:1.65;margin:14px 0 24px}
.office-worker-detail>h3{font-size:22px;line-height:1.3;margin:20px 0 12px}
.office-worker-detail>p,.office-worker-detail li{font-size:16px;line-height:1.6;color:#c6d8ba}
.office-worker-detail ul{padding-left:20px;margin-bottom:18px}
.office-worker-detail>.btn{margin-top:12px}
.office-back{margin-bottom:16px}
@keyframes officeCall{0%,100%{box-shadow:0 0 0 2px #efd59322}50%{box-shadow:0 0 0 8px #efd59333}}
@media(max-width:760px){
 .office-home-screen main{padding-top:16px}
 .office-home-screen .resource-strip{padding-bottom:14px;margin-bottom:20px}
 .office-home-heading{margin-bottom:12px;gap:10px}
 .office-home-heading h1{font-size:25px}
 .office-home-heading .eyebrow{font-size:10px;letter-spacing:.1em}
 .office-level-pill{font-size:12px;padding:8px}
 .office-stage{height:clamp(280px,calc(100svh - 340px),440px);border-radius:19px}
 .office-toolbar{gap:7px;margin:12px 0 16px}
 .office-toolbar .btn{font-size:13px;gap:6px;padding:9px 5px}
 .office-toolbar .icon{width:17px;height:17px}
 .office-next-step{padding:17px;gap:12px;margin-bottom:20px}
 .office-next-bot{width:38px;flex-basis:38px;height:54px}
 .office-next-bot .sber-bot{transform:scale(.38)}
 .office-next-copy h2{font-size:20px}
 .office-next-copy p{font-size:15px}
 .office-next-copy .btn{width:100%;font-size:14px}
 .office-project-row{gap:10px;padding:13px;flex-wrap:wrap}
 .office-project-row>div:first-child{flex-basis:calc(100% - 55px)}
 .office-project-row .icon-button{order:1}
 .office-project-meter{order:2;flex-basis:100%;width:100%;display:flex;align-items:center;gap:10px;text-align:left}
 .office-project-meter .progress{flex:1;margin:0}
 .office-project-row strong{font-size:16px}
 .office-stage-notice{font-size:13px;gap:6px;padding:8px 10px;top:9px;left:9px}
 .office-person-name{font-size:11px;max-width:90px;padding:3px 6px}
 .office-room-tag{font-size:10px;bottom:10px}
 .office-conversation .progressive-speech{font-size:18px}
}
body.no-motion .office-hotspot{animation:none!important}
@media(prefers-reduced-motion:reduce){.office-hotspot{animation:none!important}}
.office-person-name{top:var(--office-name-top,70px);bottom:auto}
.office-stage[data-ready="fallback"] .office-scene-targets{position:relative;display:flex;gap:15px;flex-wrap:wrap;padding:20px}
.office-stage[data-ready="fallback"] .office-hotspot{position:relative;left:auto;top:auto;transform:none;min-width:100px}
.office-hotspot.board>span{top:-25px}
@media(max-width:760px){.office-stage{height:clamp(280px,calc(100svh - 390px),370px)}}
.office-import-tools{margin-top:24px;padding-top:20px;border-top:1px solid #45633e}
.office-import-tools h3{font-size:18px;line-height:1.4;margin-bottom:10px}
.office-import-tools .fine{font-size:14px;line-height:1.5;margin-bottom:14px}
.office-import-tools label{cursor:pointer;display:flex;justify-content:center;min-height:46px}

/* Crisp studio revision: renderer resolution follows the real display density. */
.office-stage{background:radial-gradient(ellipse at 50% 44%,#36594b 0%,#203e35 65%,#19362e 100%);border-color:#65836a;box-shadow:inset 0 1px 0 #c1d5b42b,0 18px 50px #061e1833}
.office-stage canvas{image-rendering:auto}
.office-person-name{background:#153d32f5;border-color:#c4d8ab77;box-shadow:0 2px 5px #163c3144;font-size:12px}
.office-room-tag{letter-spacing:.02em;color:#d6e7c6}
.xp-resource{flex:1;min-width:220px}
.xp-resource .player-resource-summary{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;min-width:0;width:100%}
.xp-resource .player-resource-role{margin:0!important;grid-column:1!important}
.xp-progress-wrap{grid-column:1;display:block;width:100%;margin-top:5px}
.xp-progress{display:block;width:100%;height:10px;overflow:hidden;isolation:isolate;border-radius:8px;background:#102b25;border:1px solid #507258;box-shadow:inset 0 2px 3px #071b163d}
.xp-progress>i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#6da756,#baf17c);box-shadow:0 0 8px #b7f37b40;transition:width .5s ease}
.xp-progress-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;line-height:1.5;color:#bdd2b4;margin-top:4px}
.xp-progress-caption>b{color:#d7f6b8;font-size:12px;font-weight:700;white-space:nowrap}
.xp-progress-caption>span{text-align:right}
.game-speed{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;background:#19342b;border:1px solid #45634c;border-radius:15px;padding:12px 16px;margin-top:12px}
.game-speed-label{display:flex;align-items:center;gap:10px;min-width:0;color:#cae1b6}
.game-speed-label>.icon{width:22px;height:22px;flex:0 0 22px}
.game-speed-label b{display:block;font-size:14px;line-height:1.3}
.game-speed-label small{display:block;color:#b4cab0;font-size:12px;line-height:1.5;margin-top:3px}
.game-speed-switch{display:flex;padding:3px;gap:3px;border-radius:12px;background:#0c251e;border:1px solid #47634a}
.game-speed-switch>button{min-height:44px;min-width:48px;border:0;border-radius:9px;background:transparent;color:#bacfb4;font:inherit;font-size:16px;font-weight:700;cursor:pointer;touch-action:manipulation}
.game-speed-switch>button.selected{background:#b5ed79;color:#183c2b;box-shadow:0 2px 5px #051c1644}
.game-speed-switch>button:hover{box-shadow:inset 0 0 0 1px #c0df96}
.game-speed-switch>button:focus-visible{outline:2px solid #d8f7af;outline-offset:3px}
.game-speed>.fine{flex:0 0 100%;font-size:13px;line-height:1.5;color:#b9cfb0;margin:0}
@media(max-width:760px){
 .office-home-screen .resource-strip{padding-bottom:10px;margin-bottom:16px}
 .resource-strip .xp-resource{margin-top:9px;padding-top:10px}
 .xp-resource .player-resource-summary{gap:2px!important}
 .xp-resource .xp-progress-wrap{margin-top:3px}
 .game-speed{padding:9px 11px;gap:8px}
 .game-speed-label{gap:7px}
 .game-speed-label b{font-size:13px}
 .game-speed-label small{font-size:11px}
 .game-speed-switch>button{min-width:44px;min-height:44px;font-size:15px}
 .office-stage{height:clamp(305px,calc(100svh - 385px),415px)}
}
@media(prefers-reduced-motion:reduce){.xp-progress>i{transition:none}}
.office-home>.game-speed{margin:0 0 12px}

/* Illustrated studio: warmer art framing, restrained labels and a real player portrait. */
.office-home-heading .eyebrow{color:#a5bd98;letter-spacing:.14em}
.office-stage{background:radial-gradient(ellipse at 50% 48%,#f5efd9 0%,#e6dfc8 64%,#c4c8af 100%);border:1px solid #98ae83;box-shadow:inset 0 1px 0 #fff9e6aa,0 20px 55px #041b163d;border-radius:25px}
.office-stage canvas{filter:none}
.office-stage[data-zoomed="true"]{touch-action:none;cursor:grab}
.office-stage[data-zoomed="true"]:active{cursor:grabbing}
.office-person-name{color:#214d3d;background:#fff6deed;border:1px solid #a5b48a;box-shadow:0 3px 8px #3c4c3633;border-radius:8px;padding:4px 9px;font-weight:800;letter-spacing:.01em;text-shadow:none}
.office-hotspot:hover,.office-hotspot:focus-visible{background:#fff8cf33;border-color:#507b51;outline-color:#fff4d866}
.office-hotspot.board{color:#e8f4c8;background:#214e3ded;border:1px solid #dce7b5;box-shadow:0 5px 12px #234b3a44}
.office-hotspot.board>span{color:#274b38;background:#fff6deee;border:1px solid #a5b48a;box-shadow:0 2px 5px #43533522;font-size:11px}
.office-hotspot.vacant{color:#45664a;background:#fff6dc99;border-color:#6e8d6799;box-shadow:0 3px 10px #536d3622}
.office-room-tag{left:15px;right:145px;bottom:17px;text-align:left;color:#4c6650;text-shadow:0 1px 0 #fff8e5;font-weight:700;font-size:11px;max-width:310px}
.office-camera{position:absolute;bottom:12px;right:12px;z-index:3;display:flex;gap:2px;padding:3px;border:1px solid #8b9f79;background:#fbf5e3e8;border-radius:13px;box-shadow:0 3px 10px #49633422}
.office-camera button{height:44px;min-width:36px;padding:0 5px;display:grid;place-items:center;background:transparent;border:0;color:#285740;border-radius:9px;font:inherit;font-size:21px;font-weight:700;cursor:pointer;touch-action:manipulation}
.office-camera button:nth-child(2){font-size:11px;min-width:42px}
.office-camera button:hover{background:#ccddb2}
.office-camera button:focus-visible{outline:2px solid #457847;outline-offset:-2px}
.studio-player-avatar{padding:0;width:54px;height:62px;min-width:54px;flex:0 0 54px;overflow:hidden;border:1px solid #91b375;border-radius:15px;background:linear-gradient(145deg,#d8debd,#7da07d);cursor:pointer;box-shadow:0 3px 10px #061f1744}
.studio-player-avatar .player-portrait{display:block!important;width:100%!important;height:100%!important;min-width:0!important;border:0!important;border-radius:0!important;overflow:hidden}
.studio-player-avatar .player-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.office-toolbar .btn{border-radius:14px;border-color:#46654a;background:linear-gradient(150deg,#274633,#20392c)}
.office-next-step{background:linear-gradient(120deg,#29482f,#1d3728);border-color:#678052;box-shadow:inset 0 1px 0 #c6e29811}
@media(max-width:760px){
 .office-stage{height:clamp(340px,calc(100svh - 355px),455px);border-radius:21px}
 .office-person-name{font-size:11px;padding:4px 7px}
 .office-room-tag{font-size:10px;bottom:16px;left:12px;right:140px;line-height:1.4}
 .office-camera{bottom:10px;right:10px}
 .studio-player-avatar{width:49px;min-width:49px;flex-basis:49px;height:59px}
 .game-speed-label>.icon{width:19px;height:19px;flex-basis:19px}
}
.office-camera button,.office-camera button:nth-child(2){min-width:44px}
@media(max-width:760px){.office-room-tag{display:none}}
.office-hotspot.board>span{top:50%;left:auto;right:67px;transform:translateY(-50%);font-size:12px;padding:5px 8px}
.office-stage[data-renderer="canvas-fallback"] .office-camera{display:none}
.office-stage:not([data-ready]) .office-scene-targets,.office-stage:not([data-ready]) .office-camera{visibility:hidden}
.office-scene-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#3b5a3e;pointer-events:none;background:radial-gradient(ellipse at center,#f6efd8,#dce1c8)}
.office-scene-loading>span{width:64px;height:64px;border-radius:20px;background:#cbd9ad;display:grid;place-items:center;box-shadow:0 7px 18px #5572431c}
.office-scene-loading .icon{width:29px;height:29px}
.office-scene-loading b{font-size:15px;letter-spacing:.01em}
.office-stage[data-ready] .office-scene-loading{display:none}
.office-hotspot[hidden]{display:none!important}
.office-person-name{margin-left:var(--office-name-x,0px)}
.office-person-name[hidden]{display:none!important}
/* v0.5.1 — полноэкранный офис на мобильных */
@media (max-width: 760px) and (orientation: portrait) {
  html {
    height: 100%;
    min-height: 100%;
  }

  body.office-home-screen,
  body.office-home-screen #app {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .office-home-screen .topbar {
    height: calc(54px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-inline: 14px;
  }

  .office-home-screen main {
    position: relative;
    width: 100%;
    max-width: none;
    height: calc(
      100svh - 54px - 72px -
      env(safe-area-inset-top) -
      env(safe-area-inset-bottom)
    );
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Ресурсы поверх сцены */
  .office-home-screen .resource-strip {
    position: absolute;
    z-index: 12;
    top: 8px;
    left: 8px;
    right: 8px;
    min-height: 48px;
    margin: 0;
    padding: 6px 8px;
    gap: 6px;
    border: 1px solid rgba(94, 242, 223, 0.28);
    border-radius: 14px;
    background: rgba(5, 28, 24, 0.88);
    backdrop-filter: blur(14px);
  }

  .office-home-screen .resource {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 5px;
    border: 0;
  }

  .office-home-screen .resource strong {
    font-size: 14px;
  }

  .office-home-screen .xp-resource {
    flex: 1 1 96px;
    min-width: 0;
    padding-right: 0;
  }

  .office-home-screen .xp-resource .studio-player-avatar,
  .office-home-screen .xp-resource .player-resource-name,
  .office-home-screen .xp-resource .player-resource-role,
  .office-home-screen .xp-progress-caption > span {
    display: none !important;
  }

  .office-home-screen .xp-resource .player-resource-summary {
    display: block !important;
  }

  .office-home-screen .xp-progress-wrap {
    margin: 0;
  }

  .office-home-screen .xp-progress-caption {
    margin-top: 2px;
  }

  .office-home-screen .xp-progress-caption > b {
    font-size: 10px;
  }

  /* Офис занимает всю доступную область */
  .office-home-screen .office-home {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .office-home-screen .office-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  /* Заголовок и скорость поверх офиса */
  .office-home-screen .office-home-heading {
    position: absolute;
    z-index: 7;
    top: 64px;
    left: 12px;
    right: 166px;
    margin: 0;
    pointer-events: none;
  }

  .office-home-screen .office-home-heading .eyebrow,
  .office-home-screen .office-level-pill {
    display: none;
  }

  .office-home-screen .office-home-heading h1 {
    margin: 0;
    font-size: 18px;
  }

  .office-home-screen .game-speed {
    position: absolute;
    z-index: 8;
    top: 62px;
    right: 10px;
    width: auto;
    margin: 0;
    padding: 3px;
    background: rgba(5, 31, 26, 0.88);
    backdrop-filter: blur(10px);
  }

  .office-home-screen .game-speed-label {
    display: none;
  }

  .office-home-screen .game-speed-switch > button {
    min-width: 44px;
    min-height: 44px;
  }

  /* Уведомление и доска находятся в разных зонах */
  .office-home-screen .office-stage-notice {
    top: 122px;
    left: 10px;
    right: auto;
    max-width: min(52%, 190px);
    min-height: 44px;
    font-size: 12px;
  }

  .office-home-screen .office-hotspot.board > span {
    top: 52px;
    left: 50%;
    right: auto;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-50%);
  }

  .office-home-screen .office-camera {
    right: 10px;
    bottom: 126px;
  }

  /* Эти разделы доступны через нижнее меню */
  .office-home-screen .office-toolbar,
  .office-home-screen .office-projects,
  .office-home-screen .office-campaign,
  .office-home-screen .page-footer {
    display: none;
  }

  /* Следующий шаг всегда виден над меню */
  .office-home-screen .office-next-step {
    position: absolute;
    z-index: 9;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 106px;
    margin: 0;
    padding: 11px 12px;
    gap: 9px;
    align-items: center;
    border-radius: 17px;
    backdrop-filter: blur(16px);
  }

  .office-home-screen .office-next-bot {
    width: 34px;
    flex-basis: 34px;
    height: 48px;
  }

  .office-home-screen .office-next-bot .sber-bot {
    transform: scale(0.34);
  }

  .office-home-screen .office-next-copy p {
    display: none;
  }

  .office-home-screen .office-next-copy .btn {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
  }

  .office-home-screen .mobile-nav {
    min-height: 72px;
    padding: 4px 8px max(6px, env(safe-area-inset-bottom));
  }
}
/* v0.5.1 — anime/cyberpunk visual layer */
body.office-home-screen {
  --cyber-green: #b8ff73;
  --cyber-cyan: #5ef2df;
  --cyber-pink: #ff76c8;

  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(94, 242, 223, 0.1),
      transparent 31%
    ),
    radial-gradient(
      circle at 16% 88%,
      rgba(255, 118, 200, 0.08),
      transparent 34%
    ),
    #07130f;
}

/* Тёмная технологичная оболочка */
.office-home-screen .sidebar,
.office-home-screen .topbar {
  background: linear-gradient(
    180deg,
    rgba(6, 24, 20, 0.97),
    rgba(8, 27, 22, 0.94)
  );
  border-color: rgba(94, 242, 223, 0.2);
}

/* Активный раздел */
.office-home-screen .nav-item.active {
  color: var(--cyber-green);
  background: linear-gradient(
    100deg,
    rgba(184, 255, 115, 0.16),
    rgba(94, 242, 223, 0.08)
  );
  box-shadow: inset 3px 0 0 var(--cyber-green);
}

/* Ресурсы и опыт */
.office-home-screen .resource-strip {
  border-color: rgba(94, 242, 223, 0.18);
}

.office-home-screen .resource-icon {
  border: 1px solid rgba(94, 242, 223, 0.2);
  box-shadow: inset 0 0 18px rgba(94, 242, 223, 0.06);
}

.office-home-screen .xp-progress > i {
  background: linear-gradient(
    90deg,
    var(--cyber-cyan),
    var(--cyber-green)
  );
  box-shadow: 0 0 14px rgba(94, 242, 223, 0.42);
}

/* Неоновая рамка офиса */
.office-home-screen .office-stage {
  border-color: rgba(94, 242, 223, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 34px rgba(94, 242, 223, 0.08),
    0 22px 70px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(94, 242, 223, 0.1);
}

.office-home-screen .office-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 5px,
    rgba(12, 44, 38, 0.12) 6px
  );
}

.office-home-screen .office-scene-targets {
  z-index: 2;
}

.office-home-screen .office-stage-notice,
.office-home-screen .office-camera {
  z-index: 4;
}

/* Доска заказов */
.office-home-screen .office-hotspot.board {
  color: var(--cyber-green);
  background: rgba(4, 36, 31, 0.92);
  border-color: rgba(184, 255, 115, 0.8);
  box-shadow:
    0 0 0 4px rgba(184, 255, 115, 0.1),
    0 0 24px rgba(94, 242, 223, 0.24);
}

.office-home-screen .office-hotspot.board > span,
.office-home-screen .office-person-name {
  color: #eafff7;
  background: rgba(5, 35, 30, 0.92);
  border-color: rgba(94, 242, 223, 0.48);
}

/* Уведомление о задаче */
.office-home-screen .office-stage-notice {
  color: #fff4cf;
  background: rgba(65, 36, 53, 0.94);
  border-color: rgba(255, 118, 200, 0.72);
  box-shadow: 0 0 26px rgba(255, 118, 200, 0.17);
}

.office-home-screen .office-stage-notice.success {
  color: #eaffd1;
  background: rgba(12, 54, 38, 0.94);
  border-color: rgba(184, 255, 115, 0.72);
}

/* После удаления дубля здесь две кнопки */
.office-home-screen .office-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-home-screen .office-toolbar .btn {
  color: #dbfff7;
  border-color: rgba(94, 242, 223, 0.28);
  background: linear-gradient(
    145deg,
    rgba(17, 57, 47, 0.94),
    rgba(9, 35, 30, 0.94)
  );
}

/* Плавающая карточка следующего шага */
.office-home-screen .office-next-step {
  border-color: rgba(94, 242, 223, 0.42);
  background: linear-gradient(
    120deg,
    rgba(11, 43, 35, 0.96),
    rgba(18, 31, 39, 0.96)
  );
  box-shadow:
    inset 3px 0 0 var(--cyber-green),
    0 16px 50px rgba(0, 0, 0, 0.28);
}

.office-home-screen .office-next-copy .eyebrow {
  color: var(--cyber-cyan);
}

.office-home-screen .office-next-copy .primary {
  background: linear-gradient(
    100deg,
    var(--cyber-green),
    #7fffc9
  );
  box-shadow: 0 0 24px rgba(184, 255, 115, 0.18);
}

/* Сберик занимает собственную строку и не перекрывает задачи */
.project-feedback-slot {
  position: relative;
  clear: both;
  isolation: isolate;
}

.project-feedback-slot .project-moment {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  overflow: hidden;
}

/* Нижнее меню на мобильном */
.office-home-screen .mobile-nav {
  border-color: rgba(94, 242, 223, 0.22);
  background: rgba(5, 23, 19, 0.95);
}

.office-home-screen .mobile-nav .nav-item.active {
  box-shadow: inset 0 2px 0 var(--cyber-green);
}

/* v0.5.1 — корректировка мобильных наложений */
@media (max-width: 760px) and (orientation: portrait) {
  .office-home-screen .office-home-heading h1 {
    width: fit-content;
    max-width: 100%;
    padding: 6px 9px;
    color: #eafff7;
    background: rgba(5, 35, 30, 0.82);
    border: 1px solid rgba(94, 242, 223, 0.28);
    border-radius: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }

  .office-home-screen .office-camera {
    bottom: 172px;
  }

  .office-home-screen .office-next-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 0;
    padding: 10px 12px;
  }

  .office-home-screen .office-next-bot {
    width: 38px;
    height: 50px;
    align-self: center;
  }

  .office-home-screen .office-next-copy {
    display: grid;
    gap: 6px;
  }

  .office-home-screen .office-next-copy .eyebrow {
    margin: 0;
    font-size: 8px;
  }

  .office-home-screen .office-next-copy h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
  }

  .office-home-screen .office-next-copy .btn {
    min-height: 44px;
    margin-top: 2px;
    padding: 9px 12px;
  }
}

@media (max-width: 360px) and (orientation: portrait) {
  .office-home-screen .office-next-step {
    grid-template-columns: 1fr;
  }

  .office-home-screen .office-next-bot {
    display: none;
  }

  .office-home-screen .office-camera {
    bottom: 182px;
  }
}
/* v0.5.1 — компактная верхняя панель для экранов 320 px */
@media (max-width: 360px) and (orientation: portrait) {
  .office-home-screen .resource-strip {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 1fr;
    align-items: center;
    min-height: 52px;
    max-height: 52px;
    padding: 5px 8px;
    gap: 5px;
  }

  .office-home-screen .resource {
    display: flex;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 3px;
    gap: 3px;
    justify-content: flex-start !important;
  }

  .office-home-screen .resource-icon,
  .office-home-screen .resource-locked > span:last-child {
    display: none !important;
  }

  .office-home-screen .resource small {
    font-size: 7px;
    line-height: 1.2;
  }

  .office-home-screen .resource strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .office-home-screen .xp-resource {
    min-width: 0;
    margin: 0 !important;
    padding: 0 0 0 5px !important;
    border-left: 1px solid rgba(94, 242, 223, 0.2);
  }

  .office-home-screen .xp-progress-wrap {
    width: 100%;
  }

  .office-home-screen .xp-progress {
    height: 7px;
  }

  .office-home-screen .xp-progress-caption > b {
    font-size: 9px;
  }

  .office-home-screen .office-home-heading {
    top: 66px;
    left: 8px;
    right: 151px;
  }

  .office-home-screen .office-home-heading h1 {
    padding: 5px 7px;
    font-size: 14px;
    line-height: 1.15;
  }

  .office-home-screen .game-speed {
    top: 64px;
    right: 8px;
  }
}
/* v0.5.1 — назначение в обучении одним нажатием */
.quick-assign {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 7px;
}

.quick-assign .player-portrait.compact {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
  overflow: hidden;
}

.quick-assign .player-portrait.compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.quick-assign:disabled {
  opacity: 1;
  color: var(--green);
}
/* v0.5.1 — выбор исполнителя прямо на карточке задачи */
.task-worker-choices {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.task-worker-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 5px 10px 5px 5px;
  color: var(--text);
  background: #27372c;
  border: 1px solid #40523e;
  border-radius: 10px;
}

.task-worker-choice.selected {
  color: var(--green);
  background: #30472c;
  border-color: var(--green);
}

.task-worker-choice .player-portrait.compact,
.task-worker-choice .staff-avatar.compact {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  object-fit: cover;
  overflow: hidden;
}

.task-worker-choice .player-portrait.compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.task-worker-choice > span:not(.player-portrait) {
  font-size: 12px;
  font-weight: 650;
}

.task-worker-choice > .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .task-worker-choices {
    width: 100%;
    justify-content: flex-start;
  }

  .task-worker-choice {
    flex: 1 1 110px;
    justify-content: center;
  }
}

/* v0.5.1 — доска заказов ниже мобильной панели ресурсов */
@media (max-width: 760px) and (orientation: portrait) {
  .office-home-screen .office-hotspot.board {
    top: 136px !important;
  }
}

/* v0.5.1 — unified anime/cyberpunk design polish */
body:not(.office-home-screen):not(.intro-screen) {
  --cyber-lime: #b8ff73;
  --cyber-mint: #79ffd0;
  --cyber-cyan: #5ef2df;
  --cyber-pink: #ff76c8;
  --cyber-amber: #ffd782;
  --cyber-ink: #061410;
  --cyber-panel: rgba(15, 39, 31, 0.94);
  --cyber-panel-2: rgba(20, 48, 38, 0.9);
  --cyber-line: rgba(94, 242, 223, 0.24);
  background:
    radial-gradient(circle at 88% 7%, rgba(94, 242, 223, 0.12), transparent 28rem),
    radial-gradient(circle at 5% 78%, rgba(255, 118, 200, 0.08), transparent 30rem),
    linear-gradient(145deg, #06130f, #0a1b15 48%, #071510);
  background-attachment: fixed;
}

body:not(.office-home-screen):not(.intro-screen) .workspace {
  min-height: 100svh;
  background:
    linear-gradient(rgba(94, 242, 223, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 242, 223, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
}

body:not(.office-home-screen):not(.intro-screen) .topbar {
  position: sticky;
  top: 0;
  z-index: 26;
  border-color: var(--cyber-line);
  background: rgba(5, 23, 18, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 9px 35px rgba(0, 0, 0, 0.18);
}

body:not(.office-home-screen):not(.intro-screen) .sidebar {
  border-color: var(--cyber-line);
  background:
    linear-gradient(180deg, rgba(7, 28, 22, 0.98), rgba(8, 23, 19, 0.98)),
    #071b15;
}

body:not(.office-home-screen):not(.intro-screen) .brand-mark {
  color: var(--cyber-lime);
  border-color: var(--cyber-lime);
  box-shadow: 0 0 22px rgba(184, 255, 115, 0.22);
}

body:not(.office-home-screen):not(.intro-screen) .nav-item.active {
  color: var(--cyber-lime);
  background: linear-gradient(100deg, rgba(184, 255, 115, 0.16), rgba(94, 242, 223, 0.08));
  box-shadow: inset 3px 0 0 var(--cyber-lime);
}

body:not(.office-home-screen):not(.intro-screen) main {
  position: relative;
  isolation: isolate;
}

body:not(.office-home-screen):not(.intro-screen) main::before {
  content: "";
  position: fixed;
  inset: 82px 0 0 var(--sidebar);
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 5px,
    rgba(94, 242, 223, 0.025) 6px
  );
}

body:not(.office-home-screen):not(.intro-screen) .resource-strip {
  position: relative;
  z-index: 2;
  gap: 8px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid var(--cyber-line);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(15, 45, 35, 0.88), rgba(9, 30, 25, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 42px rgba(0, 0, 0, 0.16);
}

body:not(.office-home-screen):not(.intro-screen) .resource {
  min-width: 0;
}

body:not(.office-home-screen):not(.intro-screen) .resource-icon {
  border: 1px solid rgba(94, 242, 223, 0.22);
  box-shadow: inset 0 0 18px rgba(94, 242, 223, 0.06);
}

body:not(.office-home-screen):not(.intro-screen) .xp-progress > i,
body:not(.office-home-screen):not(.intro-screen) .progress > i,
body:not(.office-home-screen):not(.intro-screen) .lesson-bar > i {
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-lime));
  box-shadow: 0 0 14px rgba(94, 242, 223, 0.34);
}

body:not(.office-home-screen):not(.intro-screen) .page-heading h1,
body:not(.office-home-screen):not(.intro-screen) .planning-title-row h1 {
  color: #f5fff9;
  text-shadow: 0 4px 30px rgba(94, 242, 223, 0.13);
}

body:not(.office-home-screen):not(.intro-screen) .eyebrow,
body:not(.office-home-screen):not(.intro-screen) .order-label,
body:not(.office-home-screen):not(.intro-screen) .chapter-kicker {
  color: var(--cyber-cyan);
}

body:not(.office-home-screen):not(.intro-screen) :is(
  .card,
  .order-card,
  .orders-overview,
  .orders-accordion,
  .orders-summary > div,
  .task-card,
  .production-card,
  .campaign-progress,
  .team-roster,
  .self-skills,
  .locked-accordion,
  .history-section
) {
  border-color: var(--cyber-line);
  background: linear-gradient(145deg, var(--cyber-panel-2), var(--cyber-panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 48px rgba(0, 0, 0, 0.18);
}

body:not(.office-home-screen):not(.intro-screen) :is(
  .order-card,
  .task-card,
  .orders-summary > div,
  .team-member,
  .skill-card,
  .model-card,
  .load-option,
  .request-choice
) {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

body:not(.office-home-screen):not(.intro-screen) :is(
  .order-card,
  .task-card,
  .team-member,
  .load-option,
  .request-choice
):hover {
  border-color: rgba(184, 255, 115, 0.52);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22), 0 0 25px rgba(94, 242, 223, 0.07);
}

body:not(.office-home-screen):not(.intro-screen) .order-card.featured,
body:not(.office-home-screen):not(.intro-screen) .campaign-chapter.current {
  border-color: rgba(184, 255, 115, 0.62);
  background: linear-gradient(125deg, rgba(31, 67, 42, 0.96), rgba(15, 43, 37, 0.96));
  box-shadow: inset 3px 0 0 var(--cyber-lime), 0 18px 48px rgba(0, 0, 0, 0.2);
}

body:not(.office-home-screen):not(.intro-screen) .order-symbol,
body:not(.office-home-screen):not(.intro-screen) .task-number,
body:not(.office-home-screen):not(.intro-screen) .puzzle-emblem {
  color: var(--cyber-lime);
  filter: drop-shadow(0 0 12px rgba(184, 255, 115, 0.2));
}

body:not(.office-home-screen):not(.intro-screen) .task-worker-choice {
  border-color: rgba(94, 242, 223, 0.2);
  background: rgba(12, 36, 29, 0.86);
}

body:not(.office-home-screen):not(.intro-screen) .task-worker-choice.selected {
  color: #eaffd8;
  border-color: var(--cyber-lime);
  background: linear-gradient(110deg, rgba(51, 84, 44, 0.94), rgba(20, 57, 44, 0.94));
  box-shadow: 0 0 22px rgba(184, 255, 115, 0.13);
}

body:not(.office-home-screen):not(.intro-screen) .forecast {
  border-color: rgba(94, 242, 223, 0.34);
  background: linear-gradient(155deg, rgba(20, 53, 42, 0.96), rgba(8, 29, 24, 0.96));
}

body:not(.office-home-screen):not(.intro-screen) .primary {
  color: #102314;
  border-color: rgba(222, 255, 188, 0.55);
  background: linear-gradient(100deg, var(--cyber-lime), var(--cyber-mint));
  box-shadow: 0 10px 28px rgba(94, 242, 223, 0.12);
}

body:not(.office-home-screen):not(.intro-screen) .primary:hover:not(:disabled) {
  background: linear-gradient(100deg, #c9ff90, #8dffdb);
  box-shadow: 0 12px 34px rgba(94, 242, 223, 0.2);
}

body:not(.office-home-screen):not(.intro-screen) .secondary {
  color: #dcfff5;
  border-color: rgba(94, 242, 223, 0.25);
  background: rgba(20, 55, 44, 0.85);
}

body:not(.office-home-screen):not(.intro-screen) .badge {
  border: 1px solid rgba(94, 242, 223, 0.2);
  background: rgba(21, 61, 45, 0.82);
}

body:not(.office-home-screen):not(.intro-screen) .story-intro {
  border-color: rgba(255, 118, 200, 0.34);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 118, 200, 0.12), transparent 38%),
    linear-gradient(130deg, rgba(29, 52, 42, 0.98), rgba(11, 31, 27, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

body:not(.office-home-screen):not(.intro-screen) .story-conversation,
body:not(.office-home-screen):not(.intro-screen) .story-message,
body:not(.office-home-screen):not(.intro-screen) .lesson-coach {
  border-color: rgba(94, 242, 223, 0.28);
  background: rgba(11, 35, 29, 0.9);
}

body.modal-open:not(.office-home-screen) .modal-backdrop {
  background: rgba(1, 10, 8, 0.78);
  backdrop-filter: blur(12px) saturate(1.08);
}

body:not(.office-home-screen) .training-sheet,
body:not(.office-home-screen) .dialogue-sheet {
  border-color: rgba(94, 242, 223, 0.42);
  background:
    radial-gradient(circle at 100% 0, rgba(94, 242, 223, 0.1), transparent 25rem),
    linear-gradient(155deg, #132d24, #091c17);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7), 0 0 45px rgba(94, 242, 223, 0.08);
}

body:not(.office-home-screen) .modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(94, 242, 223, 0.18);
  background: rgba(10, 31, 25, 0.94);
  backdrop-filter: blur(16px);
}

body:not(.office-home-screen) :is(.builder-add, .request-choice, .load-option, .match-choice, .schedule-slot, .review-check) {
  border-color: rgba(94, 242, 223, 0.24);
  background: linear-gradient(145deg, rgba(24, 58, 45, 0.94), rgba(14, 42, 34, 0.94));
}

body:not(.office-home-screen) :is(.builder-add.added, .load-option.selected, .match-choice.selected, .request-choice.chosen) {
  border-color: var(--cyber-lime);
  background: linear-gradient(135deg, rgba(47, 82, 43, 0.96), rgba(18, 59, 44, 0.96));
  box-shadow: 0 0 0 2px rgba(184, 255, 115, 0.08), 0 0 24px rgba(184, 255, 115, 0.1);
}

body:not(.office-home-screen) .schedule-slot.empty {
  border-style: dashed;
  background: rgba(8, 27, 22, 0.7);
}

body:not(.office-home-screen) .schedule-slot.conflict,
body:not(.office-home-screen) .load-node.overloaded,
body:not(.office-home-screen) .lesson-feedback.retry {
  border-color: rgba(255, 151, 121, 0.68);
  background: rgba(76, 39, 30, 0.78);
}

body:not(.office-home-screen) :is(.schedule-status.success, .lesson-feedback.success, .load-simulation.stable) {
  border-color: rgba(184, 255, 115, 0.5);
  background: rgba(25, 66, 41, 0.78);
}

body:not(.office-home-screen) .demo-site {
  border-color: rgba(184, 255, 115, 0.42);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

body:not(.office-home-screen):not(.intro-screen) .ai-coach-art,
body:not(.office-home-screen):not(.intro-screen) .story-coach-art {
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 18px rgba(184, 255, 115, 0.1));
}

body:not(.office-home-screen):not(.intro-screen) .ai-token-balance {
  border-color: rgba(94, 242, 223, 0.4);
  background: linear-gradient(110deg, rgba(21, 62, 48, 0.92), rgba(13, 43, 37, 0.92));
}

body:not(.office-home-screen):not(.intro-screen) .ai-token-balance strong {
  color: var(--cyber-lime);
  text-shadow: 0 0 18px rgba(184, 255, 115, 0.2);
}

body:not(.office-home-screen):not(.intro-screen) .mobile-nav {
  border-color: rgba(94, 242, 223, 0.24);
  background: rgba(5, 23, 19, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 -16px 45px rgba(0, 0, 0, 0.28);
}

body:not(.office-home-screen):not(.intro-screen) .mobile-nav .nav-item.active {
  color: var(--cyber-lime);
  background: linear-gradient(180deg, rgba(184, 255, 115, 0.12), rgba(94, 242, 223, 0.07));
  box-shadow: inset 0 2px 0 var(--cyber-lime);
}

@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  body:not(.office-home-screen):not(.intro-screen) main::before {
    inset: 65px 0 0;
  }

  body:not(.office-home-screen):not(.intro-screen) .topbar {
    background: rgba(5, 23, 18, 0.94);
  }

  body:not(.office-home-screen):not(.intro-screen) .resource-strip {
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 16px;
  }

  body:not(.office-home-screen):not(.intro-screen) :is(
    .card,
    .order-card,
    .orders-overview,
    .orders-accordion,
    .orders-summary > div,
    .task-card,
    .production-card,
    .campaign-progress,
    .team-roster,
    .self-skills
  ) {
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  body:not(.office-home-screen) .training-sheet {
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }

  body:not(.office-home-screen) .sheet-handle {
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-lime));
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.office-home-screen):not(.intro-screen) :is(
    .order-card,
    .task-card,
    .team-member,
    .load-option,
    .request-choice
  ) {
    transition: none;
  }
}

/* Approved A2 / palette 07. Scene, HUD and bottom panels share one game viewport. */
:root{--bg:#15341d;--panel:#193c22;--panel-2:#244d2b;--line:#486c3c;--text:#f4fbe8;--muted:#c1d5ab;--green:#d1f68b;--green-deep:#70ad45;--yellow:#ebd591;--red:#efb1a0;--cyber-green:#d1f68b;--cyber-lime:#d1f68b;--cyber-cyan:#badc8b;--cyber-pink:#ebd591}
body.a2-game{--a2-nav-height:64px;--a2-bottom:max(13px,env(safe-area-inset-bottom));--a2-panel-height:min(46dvh,430px);height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none;color:var(--text);background:#e8ebd3}
body.a2-game.a2-planning{--a2-panel-height:min(76dvh,calc(100dvh - 180px))}
.a2-game #app,.a2-game .app-shell,.a2-game .workspace,.a2-game .workspace>main{position:static;width:100%;height:100dvh;min-height:0;max-width:none;margin:0;padding:0;overflow:hidden}
.a2-game.guide-active .app-shell main{padding:0!important}
.a2-game .office-home{position:fixed;inset:0;max-width:none;margin:0;pointer-events:none}
.a2-game .office-stage{position:absolute;inset:0;width:100%;height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;pointer-events:auto;background:radial-gradient(ellipse at center,#fff5dc,#dde4c7);transition:bottom .2s ease}
.a2-game .office-stage:before{display:none}
.a2-game.a2-panel-open .office-stage{bottom:calc(var(--a2-panel-height) + var(--a2-nav-height) + var(--a2-bottom) + 6px)}
.a2-game .office-home[inert] .office-scene-targets{pointer-events:none}
.a2-game.a2-panel-open .office-projects,.a2-game.a2-panel-open .office-next-step{visibility:hidden}

.a2-game .a2-resources{position:fixed;z-index:35;top:calc(12px + env(safe-area-inset-top));left:24px;width:min(640px,calc(100% - 48px));right:auto;height:66px;min-height:0;max-height:none;display:flex;flex-wrap:nowrap;align-items:center;gap:18px;padding:8px 12px;margin:0;border:1px solid #a2c77588;border-radius:18px;background:#193c22f7;color:#f4fbe8;box-shadow:0 6px 24px #173d2a26;backdrop-filter:blur(12px)}
.a2-player{display:flex;flex:1;min-width:0;gap:8px;align-items:center;text-align:left;padding:0;border:0;background:none;color:inherit}
.a2-player>.player-portrait{display:block!important;width:39px!important;height:48px!important;min-width:39px!important;border:0!important;border-radius:11px!important;overflow:hidden;flex:0 0 39px}
.a2-player>.player-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.a2-player>span:last-child{min-width:0;flex:1;max-width:145px}
.a2-player strong{display:block;font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a2-player em{font-size:10px;font-style:normal;font-weight:500;color:#c1d5ab;margin-left:6px}
.a2-player .xp-progress{height:5px;width:100%;margin:7px 0 0;border:0;box-shadow:none;background:#718b54;border-radius:8px}
.a2-player .xp-progress i{background:#d1f68b;box-shadow:none}
.a2-resource{display:flex;align-items:center;gap:6px;white-space:nowrap}
.a2-resource>.icon{width:20px;height:20px;color:#d1f68b}
.a2-resource>b{font-size:20px;letter-spacing:-.4px}
.a2-tokens{border-left:1px solid #a2c77555;padding-left:16px}
.a2-tokens>.icon{width:16px;color:#e1d690}
.a2-game .a2-resources>.icon-button{width:44px;height:44px;min-width:44px;flex:0 0 44px;border-radius:12px;border:1px solid #a2c77566;background:#355f35;color:#f4fbe8;box-shadow:none}
.a2-game .office-projects{position:absolute;z-index:5;left:24px;top:108px;width:360px;margin:0;display:block;pointer-events:auto}
.a2-project-pill{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:11px 13px;border:1px solid #a2c77588;border-radius:13px;background:#193c22f2;color:#f4fbe8;box-shadow:0 4px 15px #173d2a20;font:inherit;text-align:left}
.a2-project-pill>b{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.a2-project-pill>.progress{flex:1;min-width:35px;height:5px;margin:0;background:#718b54}
.a2-project-pill>.progress>i{background:#d1f68b}
.a2-project-pill>strong{font-size:11px;color:#d1f68b;white-space:nowrap}
.a2-project-pill>.icon{width:17px}
.a2-work-dot{width:6px;height:6px;flex:0 0 6px;background:#d1f68b;border-radius:50%}
.a2-mini-alert{display:grid;place-items:center;width:18px;height:18px;flex:0 0 18px;border-radius:6px;background:#ebd591;color:#3d4224;font-weight:800;font-size:12px}
.a2-project-caption{display:block;margin:7px 0 0 10px;color:#56713e;font-size:10px;font-weight:650;line-height:1.45;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a2-game .office-next-step{position:absolute;z-index:5;bottom:calc(var(--a2-bottom) + var(--a2-nav-height) + 13px);left:24px;right:auto;width:min(520px,calc(100% - 48px));min-height:84px;display:flex;align-items:center;gap:12px;margin:0;padding:14px;border:1px solid #a2c77588;border-radius:18px;background:#193c22f7;color:#f4fbe8;box-shadow:0 6px 23px #24473126;pointer-events:auto;backdrop-filter:blur(12px)}
.a2-next-icon{display:grid;place-items:center;width:35px;height:40px;flex:0 0 35px;border-radius:11px;background:#d1f68b;color:#293d17}
.a2-next-icon>.icon{width:20px}
.a2-game .office-next-copy{flex:1;min-width:0;display:block}
.a2-game .office-next-copy>.eyebrow{font-size:8px;letter-spacing:.8px;margin:0 0 6px;color:#c1d5ab}
.a2-game .office-next-copy h2{font-size:16px;line-height:1.28;margin:0;color:#f4fbe8;letter-spacing:-.3px}
.a2-game .office-next-step>.btn,.a2-game .office-next-step>.office-stage-notice{position:static;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:8px;min-height:46px;max-width:210px;width:auto;padding:11px 13px;margin:0;border:0;border-radius:12px;background:#d1f68b;color:#293d17;font-size:12px;font-weight:800;box-shadow:none}
.a2-game .office-next-step>.btn>.icon{width:16px}
.a2-game .mobile-nav{display:flex;position:fixed;z-index:40;bottom:var(--a2-bottom);left:50%;right:auto;transform:translateX(-50%);width:min(520px,calc(100% - 24px));height:var(--a2-nav-height);min-height:0;margin:0;padding:5px;gap:4px;border:1px solid #a2c775aa;border-radius:22px;background:#193c22f7;box-shadow:0 6px 24px #173d2a33;backdrop-filter:blur(12px)}
.a2-game .mobile-nav .nav-item{position:relative;display:flex;flex:1;min-width:0;width:auto;height:auto;min-height:44px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 3px;margin:0;border:0;border-radius:16px;background:none;color:#c1d5ab;font-size:11px;font-weight:500;box-shadow:none}
.a2-game .mobile-nav .nav-item>.icon{width:20px;height:20px}
.a2-game .mobile-nav .nav-item.active{background:#d1f68b;color:#293d17;font-weight:750;box-shadow:none}
.a2-game .mobile-nav .nav-item>.icon:last-child:not(:first-child){position:absolute;width:10px;height:10px;top:5px;right:12px}
.a2-panel{position:fixed;z-index:30;bottom:calc(var(--a2-bottom) + var(--a2-nav-height) + 10px);left:50%;transform:translateX(-50%);width:min(960px,calc(100% - 24px));height:var(--a2-panel-height);max-height:calc(100dvh - 175px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #a2c77588;border-radius:24px 24px 18px 18px;background:#193c22;box-shadow:0 -7px 35px #173d2a33;animation:a2PanelIn .18s ease}
.a2-sheet-handle{flex-shrink:0;margin:9px auto 0;width:38px;height:4px;background:#718b54;border-radius:6px}
.a2-panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 18px 11px;background:#244d2b;border-bottom:1px solid #a2c77544;flex-shrink:0}
.a2-panel-header small{display:block;font-size:7px;font-weight:750;letter-spacing:1px;color:#c1d5ab;margin-bottom:4px}
.a2-panel-header h2{font-size:21px;letter-spacing:-.6px;color:#f4fbe8}
.a2-panel-header>.icon-button{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#355f35;border-color:#a2c77555}
.a2-panel-scroll{flex:1;min-height:0;padding:17px 18px 24px;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-padding:12px;isolation:isolate}
.a2-panel-scroll .page-heading{margin-bottom:18px}.a2-panel-scroll .page-heading h1{font-size:26px}.a2-panel-scroll .page-heading p{font-size:13px;margin-top:7px}
.a2-panel-scroll .forecast{position:static;top:auto}
.a2-game .office-person-name{background:#193c22;color:#f4fbe8;border-color:#b2ca81;box-shadow:0 3px 8px #173d2a33;font-size:11px;padding:4px 9px}
.a2-game .office-hotspot.person{border:2px solid transparent;background:none}
.a2-game .office-hotspot:hover{background:#d1f68b22;border-color:#d1f68b}
.a2-game .office-hotspot.vacant{min-width:44px;min-height:44px;width:44px;height:44px;background:#fffae4b3;color:#60834b;border:1px dashed #81a263;border-radius:50%}
.a2-storage-warning{position:fixed;z-index:45;top:84px;left:12px;right:12px;padding:8px 12px;border:1px solid #e8ce84;border-radius:10px;background:#494429;color:#fff1bd;font-size:12px}
.a2-game .modal-backdrop{padding:12px;display:flex;align-items:flex-end;justify-content:center;background:#112c1e66;backdrop-filter:blur(4px)}
.a2-game .modal{width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 90px);height:auto;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;border:1px solid #a2c77588;border-radius:23px;background:#193c22;color:#f4fbe8;box-shadow:0 -6px 40px #12301d55}
.a2-game .modal-header{position:sticky;top:0;z-index:6;margin:0;background:#244d2b;border-color:#a2c77544;backdrop-filter:none;padding:12px 16px}
.a2-game .modal-header h2{font-size:22px;color:#f4fbe8}
.a2-game .modal-header .icon-button{min-width:44px;width:44px;min-height:44px;height:44px;background:#355f35;border-color:#a2c77555}
.a2-game .modal-body{padding:17px 18px 23px}.a2-game .modal-body .btn{min-height:44px}
.a2-game :is(.card,.order-card,.orders-overview,.orders-accordion,.task-card,.player-card,.employee-card,.team-roster,.hiring,.ai-skill,.ai-coach,.ai-unlocked,.model-card,.context-card,.self-skills,.department,.candidate,.production-card,.execution-card){background:#244d2b;border-color:#557a42;color:#f4fbe8;box-shadow:0 5px 18px #10291b18}
.a2-game :is(.badge,.tag-list>span,.task-worker-choice,.mode,.request-choice,.builder-add,.match-choice,.schedule-slot,.load-option,.review-check,.office-inbox-project,.review-case,.lesson-feedback){background:#315b32;border-color:#6d8d50;color:#f4fbe8}
.a2-game :is(.mode.selected,.request-choice.chosen,.builder-add.added,.load-option.selected,.task-worker-choice.selected){background:#446b34;border-color:#d1f68b;box-shadow:0 0 0 1px #d1f68b44}
.a2-game :is(.primary,.btn.primary){background:#d1f68b;color:#293d17;border-color:transparent;text-shadow:none;box-shadow:none}
.a2-game .secondary{background:#355f35;color:#f4fbe8;border-color:#759957}.a2-game .ghost{color:#d7e8c2;border-color:#759957}
.a2-game .progress{background:#718b5466}.a2-game .progress>i{background:#d1f68b}.a2-game .badge{color:#d1f68b}.a2-game .badge.warning{background:#4a4827;color:#f3d997}
.a2-game .muted,.a2-game .fine{color:#c1d5ab}.a2-game .eyebrow{color:#b8d39c}
.a2-game .client-message,.a2-game .story-conversation,.a2-game .story-intro{background:#244d2b;border-color:#64884b;color:#f4fbe8}
.a2-game .task-worker-choices{display:flex;flex-wrap:wrap;gap:8px}.a2-game .task-worker-choice{min-height:44px;padding:7px 10px;border-radius:11px}
.a2-game .task-worker-choice .staff-avatar,.a2-game .task-worker-choice .player-portrait{width:28px;height:33px;flex:0 0 28px;overflow:hidden}
.a2-game .a2-tempo-note,.a2-game .a2-camera-settings,.a2-game .a2-ai-discovery{padding:15px;margin:16px 0;border:1px solid #75995766;border-radius:14px;background:#244d2b}
.a2-tempo-note b{font-size:15px}.a2-tempo-note p,.a2-ai-discovery p{font-size:13px;line-height:1.6;color:#c1d5ab;margin:9px 0}
.a2-camera-settings h3{font-size:16px}.a2-camera-settings .office-camera{position:static;display:flex;justify-content:center;gap:5px;margin:12px auto;background:#fff7df;border-color:#98ad75;width:max-content}
.a2-camera-settings .office-camera button{min-width:44px;min-height:44px;color:#31543a}
.a2-game #guide-root.a2-inline-guide{position:static;inset:auto;display:block;width:100%;height:auto;margin:10px 0 16px;padding:0;pointer-events:auto;z-index:auto;clear:both}
.a2-game #guide-root .guide-coach.coach-right{position:static;inset:auto;width:100%;max-width:none;display:flex;align-items:flex-start;gap:8px;margin:0;padding:0;transform:none;animation:none}
.a2-game #guide-root .guide-bot-pop{width:28px;height:42px;flex:0 0 28px;overflow:hidden;margin-top:3px}
.a2-game #guide-root .guide-bot-pop .sber-bot{transform:scale(.27);transform-origin:top left}
.a2-game #guide-root .guide-bubble{max-height:none;width:100%;flex:1;min-width:0;padding:12px;background:#365e31;border:1px solid #a2c77588;border-radius:14px;overflow:visible;box-shadow:none}
.a2-game #guide-root .guide-bubble>p{font-size:14px;line-height:1.45;margin:9px 0;color:#f4fbe8}
.a2-game #guide-root .guide-coach-name small{font-size:10px}.a2-game #guide-root .guide-coach-footer>span{font-size:10px;color:#c1d5ab}
.a2-game .guide-highlight{outline:2px solid #d1f68b!important;outline-offset:5px!important;scroll-margin:12px;border-radius:10px}
.a2-game #toast{bottom:calc(var(--a2-bottom) + var(--a2-nav-height) + 12px);max-width:calc(100% - 24px);z-index:120;background:#244d2bf5;color:#f4fbe8;border-color:#90ad69}
body.intro-screen{background:#17391f;color:#f4fbe8}.intro-screen .entry-copy,.intro-screen .entry-card{border-color:#64884b}.intro-screen .entry-primary,.intro-screen .primary{background:#d1f68b;color:#293d17}
@keyframes a2PanelIn{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}
@media(max-width:760px){
 .a2-game .a2-resources{left:12px;width:calc(100% - 24px);height:61px;padding:7px 9px;gap:11px;border-radius:16px}
 .a2-player{gap:7px}.a2-player>.player-portrait{width:32px!important;height:43px!important;min-width:32px!important;flex-basis:32px}.a2-player strong{font-size:12px}.a2-player em{font-size:8px;margin-left:4px}.a2-player .xp-progress{height:4px;margin-top:6px}
 .a2-resource{gap:4px}.a2-resource>b{font-size:16px}.a2-resource>.icon{width:17px}.a2-tokens{padding-left:9px}.a2-tokens>.icon{width:13px}.a2-tokens>b{font-size:14px}
 .a2-game .a2-resources>.icon-button{width:44px;height:44px;min-width:44px;flex-basis:44px;border-radius:11px}
 .a2-game .office-projects{top:92px;left:12px;width:calc(100% - 24px)}.a2-project-pill{gap:8px;padding:10px 11px}.a2-project-pill>b{font-size:11px;max-width:49%}.a2-project-pill>strong{font-size:10px}.a2-project-caption{font-size:9px}
 .a2-game .office-next-step{left:12px;width:calc(100% - 24px);padding:13px 12px;gap:9px;min-height:88px;border-radius:17px}.a2-next-icon{width:31px;height:37px;flex-basis:31px;border-radius:10px}
 .a2-game .office-next-copy>.eyebrow{font-size:6px;letter-spacing:.5px}.a2-game .office-next-copy h2{font-size:14px;line-height:1.27}
 .a2-game .office-next-step>.btn{font-size:11px;padding:10px 11px;min-height:44px;max-width:155px;gap:6px}.a2-game .office-next-step>.btn>.icon{width:14px}
 .a2-game .mobile-nav .nav-item{font-size:10px}.a2-game .mobile-nav .nav-item>.icon{width:19px;height:19px}.a2-game .mobile-nav .nav-item>.icon:last-child:not(:first-child){right:8px}
 .a2-game .a2-panel-header{padding:8px 13px 10px}.a2-game .a2-panel-header h2{font-size:20px}.a2-panel-scroll{padding:13px 13px 22px}.a2-panel-scroll .page-heading h1{font-size:23px}
 .a2-game .modal-body{padding:15px 13px 20px}.a2-game .modal-header h2{font-size:20px}.a2-game .office-person-name{font-size:10px;padding:3px 7px}
 .a2-panel-scroll .content-grid{grid-template-columns:1fr;gap:18px}.a2-game .planning-title-row{gap:12px}.a2-game .task-card{padding:17px 12px}.a2-game .task-worker-choice{padding:7px 8px;font-size:11px}.a2-game .task-header h3{font-size:16px}
 .a2-game .ai-overview,.a2-game .ai-overview .card{min-width:0}.a2-game .activity-notice{padding:12px;font-size:12px}
}
@media(max-width:360px){
 .a2-game .a2-resources{gap:7px;padding:7px}.a2-player{gap:5px}.a2-player>.player-portrait{width:28px!important;min-width:28px!important;flex-basis:28px;height:39px!important}.a2-player strong{font-size:10px}.a2-player em{font-size:7px}.a2-resource>b{font-size:14px}.a2-tokens>b{font-size:12px}.a2-tokens{padding-left:7px}
 .a2-next-icon{display:none}.a2-game .office-next-copy h2{font-size:13px}.a2-game .office-next-step>.btn{max-width:145px;font-size:10px;padding:9px 10px}.a2-game .office-next-step{min-height:80px;padding:11px 12px}
 .a2-game .mode{font-size:10px}.a2-game .task-worker-choices{gap:6px}.a2-game #guide-root .guide-bot-pop{display:none}.a2-game #guide-root .guide-bubble{padding:10px}
}
@media(prefers-reduced-motion:reduce){.a2-panel{animation:none}.a2-game .office-stage{transition:none}}
/* Panel header already names the section; preserve order-specific planning titles. */
.a2-panel-scroll>.page-heading{display:none}
.a2-project-caption{width:max-content;max-width:100%;padding:3px 7px;border:1px solid #b4c89499;border-radius:7px;background:#fff8e2ed;color:#4d6b39;margin-left:0}

/* Activities use one bounded game screen. Long explanations are separate help/answer steps. */
.a2-game .modal.minigame-sheet{height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:min(900px,calc(100vw - 16px));display:flex;flex-direction:column;overflow:hidden;border-radius:20px}
.a2-game .minigame-sheet>.sheet-handle{display:none}
.a2-game .minigame-sheet>.modal-header{position:static;display:flex;align-items:center;gap:8px;flex:0 0 54px;min-height:54px;padding:5px 10px;border-bottom:1px solid #a2c77544}
.a2-game .minigame-sheet>.modal-header h2{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;line-height:1.3}
.a2-game .minigame-sheet>.modal-header .icon-button{width:44px;height:44px;font-size:20px;flex-shrink:0;margin-left:auto}
.a2-game .minigame-sheet>.modal-body{padding:0;flex:1;min-height:0;overflow:hidden;display:flex}
.mg-root{display:flex;flex:1;min-height:0;min-width:0;flex-direction:column;width:100%;color:#f4fbe8}
.mg-context{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 12px;flex-shrink:0;font-size:10px;color:#bdd2a5;line-height:1.2;background:#193c22}
.mg-context>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mg-context>span:last-child{color:#d1f68b;flex-shrink:0}
.mg-stage{display:flex;flex:1;min-height:0;min-width:0;flex-direction:column;justify-content:flex-start;gap:10px;padding:12px;width:100%;max-width:760px;margin:0 auto;overflow:hidden}
.mg-stage>h2{font-size:20px;letter-spacing:-.5px;line-height:1.3}.mg-stage>p{font-size:15px;line-height:1.5;margin:0;color:#d0e0bb}
.mg-stage .mg-goal,.mg-stage .mg-muted{font-size:13px;line-height:1.45;margin:0;color:#c1d5ab}
.mg-actions{display:flex;flex-shrink:0;align-items:stretch;gap:8px;padding:8px 12px 10px;border-top:1px solid #a2c77544;background:#244d2b}
.mg-actions>.btn{min-height:46px;font-size:14px;padding:10px 12px;line-height:1.25;flex:1;min-width:0;white-space:normal}
.mg-actions>.mg-exit{flex:0 0 46px;min-width:46px;max-width:46px;padding:9px}.mg-exit>.icon{width:21px;height:21px}
.mg-rule-icon,.mg-result-icon{display:grid;place-items:center;background:#d1f68b;color:#293d17;width:58px;height:58px;border-radius:18px;margin:8px auto 2px;flex-shrink:0}.mg-rule-icon>.icon,.mg-result-icon>.icon{width:28px;height:28px}
.mg-rules .mg-stage,.mg-result .mg-stage,.mg-answer .mg-stage,.mg-help .mg-stage,.mg-load-answer .mg-stage{justify-content:center}
.mg-rules .mg-stage>h2,.mg-result .mg-stage>h2,.mg-answer .mg-stage>h2,.mg-load-answer .mg-stage>h2{text-align:center}
.mg-help-list{list-style:none;counter-reset:mini;display:grid;gap:14px;padding:0;margin:8px 0}
.mg-help-list li{counter-increment:mini;display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.45;color:#d7e6c4}
.mg-help-list li:before{content:counter(mini);display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:9px;background:#355f35;color:#d1f68b;font-size:13px;font-weight:800}
.mg-help-person{display:flex;align-items:center;justify-content:center;gap:12px;min-height:80px}.mg-help-person>.sber-bot{transform:scale(.55);transform-origin:left center;width:65px;margin-right:-25px}.mg-help-person h2{font-size:20px;line-height:1.25}
.mg-outcome,.mg-client-result,.mg-effect{border:1px solid #7a995688;background:#315b32;border-radius:14px;padding:15px;font-size:14px;line-height:1.5;color:#e3f0ce}
.mg-outcome b{display:block;font-size:16px;color:#d1f68b;margin-bottom:6px}.mg-outcome span{font-size:13px}.mg-client-result small{font-size:10px;color:#bcd5a5;margin-bottom:7px}.mg-client-result p{font-size:15px;line-height:1.5;margin:0}.mg-result-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;font-size:12px}.mg-result-chips>span{padding:8px;background:#315b32;border-radius:9px}.mg-result-chips>i{font-style:normal}
.mg-choices{display:flex;flex-direction:column;gap:8px;min-height:0;flex-shrink:0}
.a2-game .mg-choices>.btn,.a2-game .mg-choices>.request-choice,.a2-game .mg-choices>.load-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:46px;margin:0;padding:11px 12px;border:1px solid #75995777;border-radius:12px;background:#315b32;color:#f4fbe8;font-size:14px;line-height:1.4;text-align:left;box-shadow:none}
.mg-choices>.btn>span{min-width:0;flex:1}.mg-choices .icon{width:19px;height:19px}.mg-choices b{font-size:14px;font-weight:650}.mg-choices small{display:block;font-size:12px;color:#c1d5ab;margin-top:5px;line-height:1.4}
.a2-game .mg-choices>.selected{background:#446b34;border-color:#d1f68b;box-shadow:0 0 0 1px #d1f68b44}
.mg-stage .mg-question{font-size:18px;line-height:1.35;letter-spacing:-.35px;margin:0}
.mg-feedback{font-size:13px;line-height:1.4;padding:8px 10px;border:1px solid #e3bb8777;background:#4a4529;border-radius:10px;color:#f2dfb0;margin:0;flex-shrink:0}
.mg-stage .mg-feedback{font-size:13px;line-height:1.4;margin:0;color:#f2dfb0}
.mg-calendar{display:grid;grid-template-columns:38px 1fr 1fr;grid-template-rows:24px repeat(5,minmax(44px,1fr));gap:5px;flex:1;min-height:264px;width:100%;touch-action:none;user-select:none}
.mg-calendar:has(.mg-calendar-cell:nth-child(9):last-child){grid-template-rows:24px repeat(2,minmax(44px,1fr));min-height:130px}
.mg-calendar-heading{display:flex;align-items:center;justify-content:center;font-size:11px;color:#bbd0a4;line-height:1.1}.mg-calendar-time{display:flex;align-items:center;font-size:11px;color:#d0dfb8;font-weight:650}
.mg-calendar-cell{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-width:0;min-height:44px;padding:5px 8px;background:#355f35;color:#f4fbe8;border:1px solid #7b9c5b;border-radius:10px;line-height:1.2;font:inherit;text-align:left;touch-action:none;cursor:grab;user-select:none}
.mg-calendar-cell strong,.mg-calendar-cell>span{font-size:13px;line-height:1.25;white-space:nowrap}.mg-calendar-cell>span{font-weight:500}.mg-calendar-cell.empty{border-style:dashed;background:#244d2b;color:#adc997;cursor:pointer}.mg-calendar-cell.empty>span{font-size:12px}
.mg-calendar-cell.conflict{border-color:#e5be82;background:#555131}.mg-calendar-cell.selected{outline:2px solid #d1f68b;outline-offset:1px;background:#54763a}.mg-conflict-dot{position:absolute;right:4px;top:3px;display:grid;place-items:center;width:15px;height:15px;font-style:normal;font-size:10px;border-radius:50%;background:#e8ca8b;color:#3d4025;font-weight:850}
.mg-calendar-cell.drop-target{outline:3px solid #d1f68b;background:#608943}.mg-calendar-cell.dragging{opacity:.35}
.mg-drag-ghost{position:fixed;z-index:1000;pointer-events:none;opacity:.95;box-shadow:0 10px 30px #10281977;transform:translate(-50%,-50%);width:120px;min-height:52px;background:#d1f68b;color:#293d17;border:2px solid #f2ffd3;padding:8px;border-radius:11px}
.mg-drag-ghost strong,.mg-drag-ghost span{display:block;font-size:13px;line-height:1.3}
.mg-stage .mg-schedule-status{font-size:12px;line-height:1.4;padding:8px 10px;background:#315b32;border-radius:10px;flex-shrink:0;color:#d1f68b;margin:0}.mg-stage .mg-schedule-status.warning{color:#edd49e;background:#49462b}
.mg-stage .mg-schedule-callout {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #a88b79;
  border-radius: 10px;
  background: #433445;
  color: #f9e6e9;
  font-size: 13px;
  line-height: 1.35;
}
.mg-schedule-callout > strong { margin-inline-end: 5px; color: #ffd6a7; }
.mg-calendar-cell.closed {
  border-color: #f3b7a5;
  background: #56393c;
  color: #ffede5;
}
.mg-calendar-cell.closed:disabled { opacity: 1; cursor: default; }
.mg-builder-bank{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex-shrink:0}.a2-game .mg-builder-bank .btn{font-size:13px;min-height:46px;padding:8px 5px;white-space:nowrap;border-radius:11px}.mg-builder-bank .btn:disabled{opacity:.5}
.mg-site{display:flex;flex:1;min-height:185px;flex-direction:column;border:1px solid #a8bf8b;border-radius:13px;background:#faf7e9;color:#315139;overflow:hidden}
.mg-site>header{display:flex;justify-content:space-between;padding:8px 10px;background:#e4ebcf;border-bottom:1px solid #c5d2ad;font-size:11px;flex-shrink:0}.mg-site>header>span{font-size:10px;color:#678253}
.mg-site-rows{display:flex;flex:1;min-height:0;flex-direction:column;padding:5px 7px;gap:4px}.mg-site-row{display:flex;align-items:center;gap:4px;border:1px solid #c5d2ad;border-radius:9px;padding:3px 4px 3px 6px;background:#fffdf3;flex:1;min-height:45px}
.mg-site-row>span{flex:1;min-width:0}.mg-site-row b{font-size:13px;display:block;line-height:1.2}.mg-site-row small{display:block;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7c8e6b;margin-top:3px}
.mg-site-row>div{display:flex;gap:2px;flex-shrink:0}.a2-game .mg-site-row .btn{width:40px;min-width:40px;min-height:44px;height:44px;padding:0;background:#e2ebcd;border-color:#b4c99b;color:#446d37;border-radius:8px;font-size:17px}
.mg-site-empty{display:grid;place-content:center;text-align:center;flex:1;color:#80946e;font-size:14px;line-height:1.6}
.mg-request{padding:12px;border:1px solid #75995788;border-radius:13px;background:#244d2b;flex-shrink:0}.mg-request>header{display:flex;justify-content:space-between;font-size:12px;color:#d1f68b}.mg-request>header>span{font-size:10px;color:#adc997}.mg-request h2{font-size:17px;line-height:1.25;margin:8px 0 10px}.mg-request dl{margin:0;display:grid;gap:6px}.mg-request dl>div{display:flex;gap:10px;justify-content:space-between;font-size:12px;line-height:1.35}.mg-request dt{color:#adc997;flex-shrink:0}.mg-request dd{margin:0;text-align:right}.mg-request .mg-existing{font-size:11px;line-height:1.4;color:#ebd591;margin:9px 0 0}
.mg-client-message{padding:12px 14px;border:1px solid #87a96588;border-radius:14px;background:#244d2b}.mg-client-message small{display:block;font-size:11px;line-height:1.4;color:#c1d5ab;margin-bottom:9px}.mg-client-message h2{font-size:19px;line-height:1.3}.mg-client-message p{font-size:14px;line-height:1.5;margin:10px 0 0;color:#d1dfbc}
.mg-load-nodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex-shrink:0}.mg-load-nodes>article{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:center;background:#315b32;border:1px solid #749953;border-radius:12px;padding:9px 5px}.mg-load-nodes b{font-size:13px;line-height:1.2}.mg-load-nodes strong{font-size:12px;line-height:1.1}.mg-load-nodes small{font-size:10px;line-height:1.2;color:#c6d9b0}.mg-load-meter{height:5px;background:#1b3e22;border-radius:7px;overflow:hidden}.mg-load-meter i{display:block;height:100%;background:#d1f68b}.mg-load-nodes>.overloaded{background:#4e4530;border-color:#e0ad7e}.mg-load-nodes>.overloaded .mg-load-meter i{background:#e3aa7b}.mg-load-nodes>.overloaded small{color:#efc69e}.mg-load-answer .mg-result-icon{width:48px;height:48px}.mg-load-answer .mg-stage>p{font-size:14px;line-height:1.5}
.mg-review-heading strong{font-size:16px;line-height:1.3;display:block}.mg-review-heading small{font-size:11px;display:block;color:#c1d5ab;margin-top:4px}.mg-pager{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-shrink:0}.mg-pager span{font-size:12px;line-height:1.3;color:#c1d5ab;text-align:center}.a2-game .mg-pager .btn{min-width:44px;min-height:44px;padding:8px;font-size:18px}
.mg-review-card{display:flex;flex-direction:column;gap:10px;padding:13px;border:1px solid #789b5888;border-radius:14px;background:#244d2b;min-height:0}.mg-review-card h2{font-size:17px;line-height:1.25;margin:0}.mg-review-card>div{padding:8px 10px;border-radius:9px;background:#193c22}.mg-review-card small{display:block;color:#adc997;font-size:10px;margin-bottom:5px}.mg-review-card p{font-size:14px;line-height:1.35;margin:0;color:#f4fbe8}.a2-game .mg-review-card .review-check{display:block;min-height:44px;width:100%;padding:9px 10px;border:1px solid #8cae6a;border-radius:10px;font-size:13px;text-align:left;background:#355f35;color:#f4fbe8}.a2-game .mg-review-card .review-check.marked{border-color:#ebd591;background:#5a5631;color:#ffe6ac}
@media(min-width:900px){.a2-game .modal.minigame-sheet{height:min(820px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.mg-stage{padding:20px;gap:15px}.mg-actions{justify-content:center}.mg-actions>.btn{max-width:330px}.mg-actions>.mg-exit{max-width:46px}.mg-choices .btn{min-height:55px}.mg-calendar-cell strong,.mg-calendar-cell>span{font-size:16px}.mg-site-row b{font-size:16px}.mg-site-row small{font-size:12px}}
@media(max-width:360px){.a2-game .minigame-sheet>.modal-header h2{font-size:16px}.mg-context{font-size:9px;padding:5px 10px}.mg-stage{gap:8px;padding:10px}.mg-stage>h2,.mg-stage .mg-question{font-size:17px}.mg-stage>p{font-size:14px}.mg-stage .mg-muted,.mg-stage .mg-goal{font-size:12px}.mg-actions{padding:7px 10px 9px;gap:6px}.mg-actions>.btn{font-size:12px;padding:9px 8px}.mg-stage .mg-feedback{font-size:12px;padding:7px 9px}.a2-game .mg-choices>.btn,.a2-game .mg-choices>.request-choice,.a2-game .mg-choices>.load-option{font-size:13px;padding:10px}.mg-help-list{gap:11px}.mg-help-list li{font-size:14px}.mg-rule-icon,.mg-result-icon{width:48px;height:48px;margin-top:2px}.mg-review-card{padding:10px;gap:8px}.mg-review-card p{font-size:13px}.mg-review-card h2{font-size:16px}.mg-review-heading strong{font-size:15px}.mg-calendar{grid-template-columns:34px 1fr 1fr;gap:4px;min-height:260px}.mg-calendar-cell{padding:5px 6px}.mg-calendar-cell strong,.mg-calendar-cell>span{font-size:12px}.mg-site{min-height:180px}.mg-site-row small{display:none}.mg-site-row b{font-size:12px}.a2-game .mg-site-row .btn{width:37px;min-width:37px}.mg-client-message{padding:11px}.mg-client-message h2{font-size:17px}.mg-client-message p{font-size:13px}.mg-load-nodes b{font-size:12px}}

/* Guided office tour: measured coach positions preserve the highlighted area. */
.a2-game #guide-root.office-tour-root{position:fixed;inset:0;z-index:260;margin:0;padding:0;pointer-events:none;width:auto;height:auto;display:block}
.office-tour-shade{position:absolute;inset:0;pointer-events:none;background:#061a1028}
.office-tour-focus{position:fixed;border:2px solid #d1f68b;border-radius:16px;box-shadow:0 0 0 200vmax #061a1080,0 0 24px #d1f68b55;pointer-events:none}
.office-tour-coach{position:fixed;box-sizing:border-box;pointer-events:auto;padding:16px;border:1px solid #a8cf7b;border-radius:20px;color:#f4fbe8;background:#193c22;box-shadow:0 12px 44px #0007;animation:office-coach-in .22s ease-out}
.office-tour-coach header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.office-tour-coach header>div:last-child{flex:1;min-width:0}.office-tour-coach header small{font-size:10px;letter-spacing:.06em;color:#c4e49c}.office-tour-coach h2{font-size:19px;line-height:1.2;margin:5px 0 0}.office-tour-bot{width:44px;height:56px;overflow:hidden;flex:0 0 44px}.office-tour-bot .sber-bot{transform:scale(.72);transform-origin:top left;margin:0}
.office-tour-coach .progressive-speech{font-size:15px;line-height:1.5;margin:0 0 16px;color:#f4fbe8}.office-tour-coach footer{display:flex;gap:8px;justify-content:flex-end}.office-tour-coach footer .btn{font-size:13px;min-height:44px;padding:10px 12px}.office-tour-coach footer .primary{flex:1}
@keyframes office-coach-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.office-tour-coach{animation:none}}

/* A scene-space anchor covers the desk and employee, independently of portrait hit targets. */
.office-workplace-anchor{position:absolute;display:block;pointer-events:none;transform:none;border:0;background:transparent}
@media(max-width:360px){.office-tour-coach{padding:14px}.office-tour-coach h2{font-size:17px}.office-tour-coach .progressive-speech{font-size:14px;line-height:1.4;margin-bottom:12px}.office-tour-coach header{margin-bottom:10px}}

/* Teaching remains visible; the task and site preview still fit a phone. */
.mg-it-label{font-size:10px;letter-spacing:.08em;font-weight:800;color:#d1f68b;flex-shrink:0}
.mg-stage .mg-it-explanation{font-size:14px;line-height:1.45;color:#e3eed5;margin:0}
.mg-stage .mg-task-label{font-size:14px;line-height:1.3;margin:4px 0 0;color:#d1f68b}
.mg-it-flow{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0}.mg-it-flow>span{background:#315b32;border:1px solid #88aa6488;border-radius:10px;padding:8px 6px;font-size:12px;line-height:1.2;text-align:center;flex:1}.mg-it-flow>i{font-style:normal;color:#c9e3a4}
.mg-it-detail{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:12px;background:#315b32;color:#edf5df}.mg-it-detail>.icon{width:26px;height:26px;flex-shrink:0}.mg-it-detail p{font-size:14px;line-height:1.45;margin:0}
.mg-stage .mg-it-summary{font-size:14px;line-height:1.45;padding:10px 12px;background:#315b32;border-left:3px solid #d1f68b;border-radius:8px;margin:0;color:#e3eed5}
.mg-education .mg-stage{justify-content:center}.mg-education .mg-stage>h2{text-align:left}.mg-help .mg-help-list{gap:10px}.mg-rules .mg-help-list{gap:10px;margin:0}.mg-rules .mg-help-list li,.mg-help .mg-help-list li{font-size:14px;line-height:1.4}
.mg-live-site{display:flex;flex:1;min-height:204px;min-width:0;flex-direction:column;border:1px solid #a8bf8b;border-radius:12px;background:#fffdf3;color:#26452f;overflow:hidden;isolation:isolate}
.mg-live-site>header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#e6ecd9;color:#718163;padding:4px 8px;font-size:9px;line-height:1.2;flex-shrink:0}.mg-live-site>header b{font-weight:600;font-size:10px}.mg-live-site>header small{font-size:9px}
.mg-live-hero{position:relative;flex:0 0 40px;overflow:hidden;display:flex;align-items:center;padding:4px 10px;color:#fff8df;background:#254a2e}.mg-live-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:45% 49%;z-index:-2}.mg-live-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102719dc,#10271944);z-index:-1}.mg-live-hero>div{display:flex;flex-direction:column;gap:2px}.mg-live-hero b{font-size:15px;letter-spacing:.1em;line-height:1}.mg-live-hero span{font-size:10px;line-height:1.2}
.mg-live-blocks{display:flex;flex:1;min-height:0;flex-direction:column;gap:3px;padding:4px}
.mg-site-block{display:flex;flex-direction:column;flex:1;justify-content:center;min-height:42px;min-width:0;width:100%;margin:0;padding:4px 6px;border:1px solid #d8dfca;border-radius:6px;background:#fffdf3;color:#26452f;text-align:left;cursor:pointer;overflow:hidden;font-family:inherit;animation:site-block-in .22s ease-out}
.mg-site-block.selected{border-color:#779b3c;box-shadow:inset 0 0 0 1px #779b3c;background:#f3f7e7}.mg-site-block>strong{display:block;font-size:11px;line-height:1.2;margin-bottom:3px}
.mg-service-pictures{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}.mg-service-pictures>span{display:flex;align-items:center;gap:5px;border-radius:5px;padding:2px 4px;background:#e9efdc;min-width:0}.mg-service-pictures svg{width:30px;height:24px;flex-shrink:0}.mg-service-pictures b{font-size:10px;line-height:1.1;font-weight:600}
.mg-price-list{display:flex;gap:6px;width:100%}.mg-price-list>span{display:flex;justify-content:space-between;gap:5px;flex:1;padding:5px;background:#f0ecd9;border-radius:5px;font-size:10px;line-height:1.1}.mg-price-list b{white-space:nowrap}
.mg-preview-form{display:flex;gap:4px;width:100%;align-items:stretch}.mg-preview-form>span{display:flex;align-items:center;flex:1;min-width:0;padding:6px 4px;border:1px solid #ced7bd;background:#f8f9f2;border-radius:4px;font-size:10px;color:#7a866e}.mg-preview-form>b{display:flex;align-items:center;justify-content:center;padding:5px;background:#397749;color:#fff;border-radius:5px;font-size:10px;line-height:1.2;flex:1.3}
.mg-live-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;gap:8px;padding:12px;text-align:center;font-size:24px;color:#5c7948}.mg-live-empty b{font-size:15px}.mg-live-empty span{font-size:12px;line-height:1.4;max-width:220px}
.mg-site-tools{display:flex;align-items:center;gap:5px;flex-shrink:0}.mg-site-tools>span{flex:1;font-size:12px;line-height:1.3;color:#d4e6bd;min-width:0}.a2-game .mg-site-tools>.btn{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:20px}
.mg-frontend:has(.mg-feedback) .mg-live-hero{flex-basis:25px}.mg-frontend:has(.mg-feedback) .mg-live-hero span{display:none}.mg-frontend:has(.mg-feedback) .mg-live-site{min-height:187px}
@keyframes site-block-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.mg-stage .mg-it-explanation,.mg-stage .mg-it-summary{font-size:13px;line-height:1.4}.mg-it-detail{padding:10px}.mg-it-detail p{font-size:13px;line-height:1.4}.mg-it-flow>span{font-size:11px;padding:7px 5px}.mg-rules .mg-help-list li,.mg-help .mg-help-list li{font-size:13px}.mg-stage .mg-task-label{font-size:13px}.mg-help .mg-help-list{gap:8px}.mg-site-block>strong{font-size:10px}.mg-price-list>span{font-size:9px;gap:3px;padding:4px}.mg-preview-form>span,.mg-preview-form>b{font-size:9px}.mg-service-pictures svg{width:26px;height:22px}.mg-service-pictures b{font-size:9px}}
@media(min-width:900px){.mg-live-site{max-width:640px;width:100%;margin:0 auto}.mg-live-hero{flex-basis:86px}.mg-live-hero b{font-size:24px}.mg-live-hero span{font-size:14px}.mg-site-block>strong{font-size:16px}.mg-service-pictures svg{width:56px;height:42px}.mg-service-pictures b,.mg-price-list>span,.mg-preview-form>span,.mg-preview-form>b{font-size:14px}.mg-site-tools{max-width:640px;width:100%;margin:0 auto}}
@media(prefers-reduced-motion:reduce){.mg-site-block{animation:none}}
.mg-live-hero{isolation:isolate}.mg-live-hero img{z-index:0}.mg-live-hero:after{z-index:1}.mg-live-hero>div{position:relative;z-index:2}

/* Section panels cover the available viewport; the office never shrinks to make room. */
.a2-game .office-stage,.a2-game.a2-panel-open .office-stage{inset:0;bottom:0;height:100%;transition:none}
.a2-game .a2-panel{top:calc(82px + env(safe-area-inset-top));bottom:calc(var(--a2-bottom) + var(--a2-nav-height) + 10px);height:auto;max-height:none;width:min(1120px,calc(100% - 24px))}

.a2-game .a2-panel{animation:office-panel-appear .16s ease-out}
@keyframes office-panel-appear{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.a2-game .a2-panel{animation:none}}
.a2-game .office-hotspot.vacant.locked{border:1px solid #a5bd7c;background:#284b31eb;color:#d1e6af;box-shadow:0 3px 9px #193c2233}
.a2-game .office-hotspot.vacant.available{border:1px solid #6c993b;background:#d1f68be8;color:#315139}
.a2-game .office-hotspot.vacant>.icon{width:20px;height:20px}

/* Sberik occupies a real layout column; transform animations must not expand into text. */
.office-speaker{gap:16px;align-items:center}
.office-speaker>div:last-child{min-width:0;flex:1}
.office-speaker>.sber-bot,.mg-help-person>.sber-bot{width:58px;height:72px;flex:0 0 58px;margin:4px 0;transform:none;scale:1;animation:none}
.office-speaker .speaker-job{margin:0;font-size:14px;line-height:1.4;color:#c5ddb2}
.guide-coach .guide-bot-pop,.office-tour-bot,.builder-coach-bot,.report-coach-bot,.project-moment-bot,.small-bot{display:grid;place-items:center;isolation:isolate;overflow:visible;flex-shrink:0;margin-right:0;transform:none}
.guide-coach .guide-bot-pop .sber-bot,.office-tour-bot .sber-bot,.builder-coach-bot .sber-bot,.report-coach-bot .sber-bot,.project-moment-bot .sber-bot,.small-bot .sber-bot{animation:none;transform:none;scale:1;margin:4px 0}
.a2-game #guide-root .guide-bot-pop{width:58px;height:74px;flex:0 0 58px;overflow:visible}
.a2-game #guide-root .guide-bot-pop .sber-bot{transform:none;scale:1;animation:none}
.office-tour-bot{width:58px;height:74px;flex-basis:58px}
.report-coach-bot,.project-moment-bot,.small-bot{width:58px;height:74px;flex-basis:58px}
.result-sberik,.level-up-sberik{gap:18px;align-items:center}
.result-sberik>.sber-bot,.level-up-sberik>.sber-bot{transform:none;scale:1;animation:none;flex:0 0 58px;margin:6px 0}
.result-sberik-bubble,.level-up-bubble{min-width:0;flex:1}
.builder-coach-bot{flex-basis:58px;min-height:74px;padding:0}
.mg-choice-row{display:flex;align-items:stretch;gap:6px;min-width:0}
.a2-game .mg-choice-row>.btn:first-child{display:flex;align-items:center;justify-content:flex-start;gap:9px;flex:1;min-width:0;min-height:46px;margin:0;padding:10px 12px;border:1px solid #75995777;border-radius:12px;background:#315b32;color:#f4fbe8;font-size:14px;line-height:1.4;text-align:left;box-shadow:none}
.a2-game .mg-choice-row>.selected{background:#446b34;border-color:#d1f68b}
.a2-game .mg-choice-row>.mg-option-help{width:44px;min-width:44px;min-height:46px;padding:0;flex:0 0 44px;font-size:20px;border-color:#7eaa60;color:#e6ffba}
.mg-choice-row>.btn:first-child>span{flex:1;min-width:0}.mg-choice-row>.btn:disabled{opacity:.5}
.mg-option-help .mg-stage{justify-content:center;gap:20px}
.mg-option-help .mg-stage h2{line-height:1.4}.mg-option-help .mg-stage p{font-size:16px;line-height:1.6}
.mg-site-block{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;position:relative;padding-left:19px}
.mg-site-block:before{content:'⠿';position:absolute;left:4px;top:50%;translate:0 -50%;color:#6b8951;font-size:16px}
.mg-site-block.dragging{opacity:.3}.mg-site-block.mg-site-drop{outline:3px dashed #72a337;outline-offset:-3px}
.mg-site-ghost{pointer-events:none;background:#fffceb;color:#284b2d;max-height:120px;overflow:hidden;box-shadow:0 8px 28px #0005;border:2px solid #d1f68b;border-radius:10px;padding:8px;z-index:99999}
.mg-site-ghost svg{height:25px}.mg-site-ghost .mg-service-pictures{display:flex}
.mg-keyboard-tools{display:flex;order:2;position:relative;margin-left:auto}
.mg-keyboard-tools summary{cursor:pointer;list-style:none;border:1px solid #7c9e60;border-radius:9px;padding:9px;font-size:18px;line-height:24px}
.mg-keyboard-tools[open]{display:flex;align-items:center;gap:4px}.mg-keyboard-tools[open]>.btn{display:inline-flex}
.mg-site-tools>span{order:1}.mg-site-tools>.btn{order:3}
@media(max-width:360px){
 .office-speaker{gap:12px}.office-speaker h3{font-size:22px}.office-speaker .speaker-job{font-size:12px}
 .a2-game .mg-choice-row>.btn:first-child{font-size:13px;padding:8px 10px}
 .mg-option-help .mg-stage p{font-size:15px;line-height:1.5}
 .a2-game #guide-root .guide-bot-pop{display:none}
 .mg-frontend .mg-stage{gap:6px}.mg-frontend .mg-goal{font-size:12px;line-height:1.35}
}
.mg-actions>.mg-choice-row{flex:1;min-width:0}.a2-game .mg-actions>.mg-choice-row>.btn:first-child{padding:8px;font-size:13px;justify-content:center}
.a2-game .mg-actions>.mg-choice-row>.mg-option-help{flex-basis:34px;min-width:34px;width:34px}
/* Larger, readable studio HUD; token purchase has a dedicated, gated action. */
.a2-game .a2-resources{height:84px;width:min(520px,calc(100% - 48px));gap:12px;padding:8px 12px}
.a2-player>.player-portrait{width:56px!important;height:66px!important;min-width:56px!important;flex-basis:56px}
.a2-player{gap:11px}.a2-player>span:last-child{max-width:220px}.a2-player strong{font-size:19px}.a2-player em{display:block;font-size:13px;margin:4px 0 0}.a2-player .xp-progress{height:6px;margin-top:6px}
.a2-resource>b{font-size:25px}.a2-resource>.icon{width:25px;height:25px}.a2-tokens>b{font-size:23px}.a2-tokens>.icon{width:20px}
.a2-game .a2-resources>.a2-topup{background:#d1f68b;color:#193c22;border-color:#d1f68b}.a2-game .a2-resources>.a2-topup:disabled{background:#355f35;color:#b3c39d;opacity:.6;cursor:default}
.a2-game .office-projects{top:112px}.a2-game .a2-panel{top:calc(110px + env(safe-area-inset-top))}
.office-camera>[data-action="office-camera-reset"]{min-width:100px;font-size:14px}
@media(max-width:600px){
 .a2-game .a2-resources{left:12px;width:calc(100% - 24px);height:120px;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:56px 44px;gap:4px 10px;padding:8px 10px}
 .a2-player{grid-column:1/3;grid-row:1;gap:10px;width:100%}.a2-player>.player-portrait{width:48px!important;min-width:48px!important;height:56px!important;flex-basis:48px}.a2-player strong{font-size:17px}.a2-player em{font-size:12px;margin:3px 0 0}.a2-player .xp-progress{height:5px;margin-top:5px}
 .a2-coins{grid-column:1;grid-row:2}.a2-tokens{grid-column:2;grid-row:2;padding-left:12px}
 .a2-resource>b{font-size:21px}.a2-tokens>b{font-size:20px}.a2-resource>.icon{width:23px;height:23px}.a2-tokens>.icon{width:18px}
 .a2-game .a2-resources>.a2-topup{grid-column:3;grid-row:2}.a2-game .a2-resources>[data-action="settings"]{grid-column:3;grid-row:1}
 .a2-game .office-projects{top:146px}.a2-game .a2-panel{top:calc(145px + env(safe-area-inset-top))}
}

.a2-resource>.coin-icon{width:30px;height:32px;object-fit:contain}.a2-game .coin-icon{flex-shrink:0}
@media(max-width:600px){.a2-resource>.coin-icon{width:28px;height:30px}}

@media(max-width:600px){.a2-resources:not(.has-topup) .a2-tokens{grid-column:2/4;justify-self:end}}
@media(max-width:760px){.a2-game .a2-resources{left:12px;width:calc(100% - 24px)}}
/* Feedback from the November playtest: visible context, readable portraits, clear costs. */
.a2-game .a2-coins{border:0;background:none;color:inherit;padding:0;font:inherit;cursor:pointer;border-radius:8px;text-align:left}
.a2-game .a2-coins:focus-visible{outline:2px solid #d1f68b;outline-offset:4px}
.office-speaker>.client-portrait{width:112px;height:126px;flex-basis:112px;object-fit:cover;object-position:top;border-radius:18px}
.a2-game .order-top>.client-portrait{width:86px;height:96px;flex:0 0 86px;object-fit:cover;object-position:top;border-radius:14px}
.client-feedback>.client-portrait{width:94px;height:106px;flex:0 0 94px;object-fit:cover;object-position:top;border-radius:15px}
.a2-game .order-top{gap:16px;align-items:center}.a2-game .order-top>div{min-width:0}
.a2-game .a2-project-caption{width:100%;max-width:100%;margin:6px 0 0;padding:5px 9px;white-space:normal;font-size:11px;line-height:1.45}
.a2-project-caption>span{display:block}.timing-ok{color:#d1f68b}.timing-late{color:#ffd19b}
.a2-game .a2-project-caption{background:#193c22ed;color:#f0f6df;border-color:#b4c89488}
.office-person-indicator{top:-28px;left:50%;right:auto;transform:translateX(-50%)}
.office-person-indicator .icon{width:14px;height:14px;display:block;flex-shrink:0;margin:0;transform:none}
.office-work-note{position:absolute;top:34px;left:50%;transform:translateX(-50%);display:flex;gap:4px;align-items:center;max-width:156px;padding:4px 7px;border-radius:8px;background:#193c22ed;color:#e4f6cc;font-size:10px;line-height:1.3;white-space:nowrap;pointer-events:none;border:1px solid #9abd7088}
.office-work-note>.icon{width:13px;height:13px;flex-shrink:0}.office-work-note>span{overflow:hidden;text-overflow:ellipsis}.office-work-note>i{font-style:normal;animation:officeWorkDots 1.2s steps(3) infinite}
.office-hotspot[data-animation=walking] .office-work-note,.office-hotspot[data-animation=coffee] .office-work-note{display:none}
@keyframes officeWorkDots{0%{opacity:.3}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.office-work-note>i{animation:none}}
.skill-effect{display:block!important;white-space:normal!important;color:#c8e59c!important;font-size:12px!important;line-height:1.45!important;margin-top:7px!important}
.level-up-card{height:auto;min-height:146px}.level-up-card-main{min-width:0}.level-up-card-main>.skill-effect{font-size:12px!important}
.profile-skills>div>span:first-child{min-width:0;flex:1}.profile-skills>div{align-items:center}
.money-guide>p{font-size:16px;line-height:1.55;margin:0 0 16px}.money-guide .facts{margin:14px 0 20px}.money-guide .facts>div{gap:14px}.money-guide .facts dd{flex-shrink:0}
.tutorial-commitment{font-size:14px;line-height:1.5;color:#c4d9ae;margin:10px 0}
.profession-art{display:block;width:228px;max-width:100%;height:88px;flex-shrink:0;margin:0 auto}
.mg-profession-heading{display:flex;align-items:center;gap:12px;min-width:0}.mg-profession-heading>.profession-art{width:91px;height:48px;flex:0 0 91px;margin:0}.mg-profession-heading h2{font-size:19px;line-height:1.3;min-width:0;margin:0;color:#f4fbe8}
.mg-help-tabs{display:flex;gap:7px;flex-shrink:0}.a2-game .mg-help-tabs>.btn{flex:1;min-width:0;min-height:44px;padding:8px;font-size:14px;margin:0}
.mg-help .mg-stage{justify-content:flex-start;gap:10px}.mg-help .mg-stage>h2{font-size:19px}.mg-help .mg-help-list{gap:9px;margin:0}.mg-rules .mg-stage,.mg-education .mg-stage{gap:8px}
@media(max-width:360px){.office-speaker>.client-portrait{width:88px;height:102px;flex-basis:88px}.a2-game .order-top>.client-portrait{width:72px;height:84px;flex-basis:72px}.client-feedback>.client-portrait{width:72px;height:84px;flex-basis:72px}.mg-profession-heading{gap:8px}.mg-profession-heading>.profession-art{width:76px;flex-basis:76px;height:42px}.mg-profession-heading h2{font-size:17px}.mg-help .profession-art{height:67px}.mg-help .mg-stage{gap:7px}.mg-help .mg-stage>h2{font-size:17px}.mg-help .mg-it-explanation,.mg-help .mg-stage>.mg-muted{font-size:13px;line-height:1.4}.mg-help .mg-help-list li{font-size:13px}.a2-game .a2-project-caption{font-size:10px}.money-guide .facts>div{flex-wrap:wrap}}
@media(max-width:360px){.mg-client .mg-stage{gap:7px}.mg-client-message{padding:9px}.mg-client-message p{font-size:13px;line-height:1.4}}
.a2-project-caption>.a2-project-compact{display:none}
@media(max-width:360px){.a2-game .a2-project-caption>span{display:none}.a2-game .a2-project-caption>.a2-project-compact{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.a2-game .a2-project-caption{padding:4px 7px}}
.order-client-role{display:block;font-size:13px;line-height:1.4;color:#bdd6ab;margin-top:6px}.office-work-note{margin-left:var(--office-note-x,0px)}


/* Neon lighting and interface for Maya’s tournament and league. */
.a2-game.maya-cyberpunk {
  --studio-ink: #141522;
  --studio-card: #202231;
  --studio-line: #5b586d;
  --studio-lime: #c6fb4f;
  --studio-violet: #d1bcff;
  --studio-muted: #c4c4d3;
}
.a2-game.maya-cyberpunk .a2-resources,
.a2-game.maya-cyberpunk .office-next-step,
.a2-game.maya-cyberpunk .mobile-nav,
.a2-game.maya-cyberpunk .a2-panel,
.a2-game.maya-cyberpunk .training-sheet,
.a2-game.maya-cyberpunk .office-tour-coach {
  background: var(--studio-ink);
  border-color: var(--studio-line);
  box-shadow: 0 10px 32px #0a081980;
}
.a2-game.maya-cyberpunk .a2-resources,
.a2-game.maya-cyberpunk .office-next-step,
.a2-game.maya-cyberpunk .office-tour-coach {
  border-color: #9bc45d;
  box-shadow: 0 8px 30px #09081988, inset 0 1px #d9ff8428;
}
.a2-game.maya-cyberpunk .a2-panel-header,
.a2-game.maya-cyberpunk .modal-header {
  background: linear-gradient(105deg, #262135, #191a28);
  border-bottom-color: #7c68a166;
}
.a2-game.maya-cyberpunk .a2-panel-header small,
.a2-game.maya-cyberpunk .office-next-copy > .eyebrow,
.a2-game.maya-cyberpunk .office-speaker .speaker-job,
.a2-game.maya-cyberpunk .office-tour-coach header small {
  color: var(--studio-violet);
}
.a2-game.maya-cyberpunk .mobile-nav .nav-item,
.a2-game.maya-cyberpunk .a2-project-pill .a2-work-dot,
.a2-game.maya-cyberpunk .mode.selected {
  color: var(--studio-lime);
}
.a2-game.maya-cyberpunk .mobile-nav .nav-item.active,
.a2-game.maya-cyberpunk .btn.primary:not(:disabled) {
  background: var(--studio-lime);
  border-color: var(--studio-lime);
  color: #152002;
}
.a2-game.maya-cyberpunk .btn.primary:not(:disabled):hover { background: #d7ff79; }
.a2-game.maya-cyberpunk .a2-player .xp-progress {
  background: #343147;
}
.a2-game.maya-cyberpunk .a2-player .xp-progress > i {
  background: repeating-linear-gradient(127deg, #c6fb4f 0 8px, #85b831 8px 11px);
}
.a2-game.maya-cyberpunk .a2-panel-header > .icon-button,
.a2-game.maya-cyberpunk .a2-resources > [data-action="settings"],
.a2-game.maya-cyberpunk .a2-resources > .a2-topup,
.a2-game.maya-cyberpunk .btn.secondary,
.a2-game.maya-cyberpunk .request-choice,
.a2-game.maya-cyberpunk .mode,
.a2-game.maya-cyberpunk .a2-panel .card,
.a2-game.maya-cyberpunk .order-card,
.a2-game.maya-cyberpunk .task-card {
  background: var(--studio-card);
  border-color: var(--studio-line);
}
.a2-game.maya-cyberpunk .a2-resources > .a2-topup,
.a2-game.maya-cyberpunk .order-label,
.a2-game.maya-cyberpunk .order-top > .icon,
.a2-game.maya-cyberpunk .task-header .eyebrow,
.a2-game.maya-cyberpunk .result-kicker,
.a2-game.maya-cyberpunk .result-title {
  color: var(--studio-lime);
}
.a2-game.maya-cyberpunk .order-top .order-client-role,
.a2-game.maya-cyberpunk .mg-context > span:first-child {
  color: var(--studio-muted);
}
.a2-game.maya-cyberpunk .order-card.featured,
.a2-game.maya-cyberpunk .mode.selected,
.a2-game.maya-cyberpunk .request-choice.selected {
  border-color: #a2bb55;
}
.a2-game.maya-cyberpunk .office-conversation .progressive-speech,
.a2-game.maya-cyberpunk .result-sberik-bubble {
  padding: 12px 14px;
  border: 1px solid #a3c64d;
  border-radius: 5px 14px 14px;
  background: linear-gradient(129deg, #25283a, #191b25);
}
.a2-game.maya-cyberpunk .office-speaker > .client-portrait,
.a2-game.maya-cyberpunk .office-speaker > .player-portrait {
  border: 1px solid #a590ca;
  background-color: #352840;
}
.a2-game.maya-cyberpunk .result-reward {
  background: var(--studio-card);
  border-color: #a2bb5570;
}
.a2-game.maya-cyberpunk .result-reward small {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  color: var(--studio-lime);
}
.a2-game.maya-cyberpunk .result-reward small > .icon { width: 15px; height: 15px; }
.a2-game.maya-cyberpunk .mg-context,
.a2-game.maya-cyberpunk .mg-actions {
  background: var(--studio-card);
  border-color: var(--studio-line);
}
.a2-game.maya-cyberpunk .activity-notice {
  background: #34283d;
  border-color: #ad8ec9;
}
.a2-game.maya-cyberpunk .project-feedback-slot .project-moment {
  background: #292539;
  border-color: #8d74af;
}
.a2-game.maya-cyberpunk .project-feedback-slot .project-moment[data-event-type="client_request"] {
  background: #392f22;
  border-color: #c89b57;
}
.a2-game.maya-cyberpunk .office-stage {
  background: radial-gradient(ellipse at 50% 55%, #242347, #101125 75%);
}
.sberik-portrait {
  display: block;
  width: 72px;
  height: 85px;
  flex: 0 0 72px;
  border: 1px solid #9dc94d;
  border-radius: 14px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.office-sberik {
  background-color: #1c3827;
  background-image: url("assets/characters/sberik-office.webp?r=2c9f1d05b1");
}
.cyber-sberik {
  background-color: #202132;
  background-image: url("assets/characters/sberik-maya.webp?r=2ac3e1d7f2");
}
.office-tour-bot:has(.sberik-portrait) { width: 56px; height: 64px; flex-basis: 56px; }
.office-tour-bot .sberik-portrait { width: 56px; height: 64px; flex-basis: 56px; }
:is(.project-moment-bot, .report-coach-bot, .small-bot) .sberik-portrait { width: 100%; height: 100%; }
@media (max-width: 360px) {
  .a2-game .result-sberik { gap: 10px; }
  .result-sberik .sberik-portrait { width: 56px; height: 64px; flex-basis: 56px; }
  .a2-game .result-reward { padding-inline: 5px; }
}
.privacy-copy { display: grid; gap: 12px; font-size: 15px; line-height: 1.5; }
.privacy-copy ul { display: grid; gap: 8px; margin: 0; padding-inline-start: 20px; color: #d6e7d1; }
.privacy-copy .btn { min-height: 46px; }
.skill-definition summary { min-height: 32px; color: #c8f5b2; cursor: pointer; padding-block: 6px; }
.skill-definition p { font-size: 13px; color: #dce9d7; overflow-wrap: anywhere; }
.mg-pager .btn { min-width: 72px; font-size: 12px; white-space: nowrap; }
.mg-stage { overflow-y: auto; overscroll-behavior: contain; }
.mg-calendar { touch-action: auto; }
.mg-calendar-cell[data-schedule-match] { touch-action: none; }
.mg-calendar-cell.hint-target { outline: 2px dashed #d1f68b; outline-offset: -4px; background: #426735; }
.mg-calendar-time, .mg-calendar-heading { color: #e6f1d4; }
.task-worker-choice small { display: block; font-size: .75rem; color: var(--muted, #c6d9bf); }
.a2-game .task-worker-choice { min-height: 44px; }
.ranking-own { padding: 12px; border: 1px solid #779d71; border-radius: 12px; }
.ranking-own p { margin: 0 0 6px; }
.ranking-own p:last-child { margin-bottom: 0; }
.account-entry .account-actions { margin-bottom: 16px; }
@media (max-width: 600px) {
  .account-entry .entry-art { height: 135px; min-height: 135px; }
  .account-entry .entry-copy { padding: 18px 16px; }
  .account-entry .entry-title { font-size: 27px; margin-bottom: 12px; }
}
@media (max-width: 600px) {
  .mg-calendar { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); }
  .mg-calendar-time, .mg-calendar-heading { font-size: 13px; }
  .mg-calendar-cell strong, .mg-calendar-cell > span { font-size: 14px; }
  .mg-schedule .mg-stage .mg-schedule-status { font-size: 14px; line-height: 1.27; padding: 6px 8px; }
  .mg-schedule .mg-stage .mg-schedule-callout { font-size: 14px; line-height: 1.27; flex-shrink: 0; }
  .mg-schedule .mg-actions .mg-schedule-hint { flex: 0 0 auto; min-height: 44px; font-size: 13px; }
}
.office-tour-coach[role="region"] .progressive-speech { margin-bottom: 0; }

/* Story conversations remain over the office and keep their controls reachable. */
.narrative-dialogue { display: flex; flex-direction: column; gap: 14px; }
.narrative-dialogue .office-speaker { margin-bottom: 0; }
.narrative-dialogue .progressive-speech { font-size: 18px; line-height: 1.5; margin: 0; }
.narrative-thought { font-style: italic; color: #dbd4ed; }
.narrative-dialogue > .btn { position: sticky; bottom: 0; margin-top: auto; }
.dialogue-portrait {
  display: grid;
  place-items: center;
  width: var(--dialogue-portrait-width, 86px);
  height: var(--dialogue-portrait-height, 96px);
  flex: 0 0 var(--dialogue-portrait-width, 86px);
}
.dialogue-portrait > :is(.client-portrait,.staff-avatar,.player-portrait,.sberik-portrait,.member-avatar,.narrative-client) {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  object-position: top;
}
.dialogue-speaker-copy { overflow-wrap: anywhere; }
.narrative-dialogue[data-scene^="card:"] .dialogue-portrait {
  --dialogue-portrait-width: 52px;
  --dialogue-portrait-height: 62px;
}
.story-recruit-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.btn.story-recruit-option {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  min-height: 58px;
  padding: 8px 10px;
  white-space: normal;
}
.story-recruit-option small { display: block; font-size: 12px; font-weight: 400; }
.story-recruit-option .member-avatar { width: 35px; height: 40px; flex-basis: 35px; }
.story-member-avatar { font-size: 21px; font-weight: 750; color: #f7fbf1; }
.story-member-avatar[data-recruit-avatar="mira"] { background: #315a6a; }
.story-member-avatar[data-recruit-avatar="daniil"] { background: #7a4838; }
@media (max-width: 460px) {
  .office-speaker:has(.dialogue-portrait) { min-height: 66px; }
  .dialogue-portrait { --dialogue-portrait-width: 60px; --dialogue-portrait-height: 68px; }
  .story-recruit-options { grid-template-columns: 1fr; gap: 8px; }
}
.narrative-card { padding: 14px; display: grid; gap: 10px; background: #252637; border: 1px solid #89a84c; border-radius: 14px; }
.narrative-card strong { color: #d0fc68; }
.narrative-card small { color: #cbb8f2; }
.narrative-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.narrative-client { display: grid; place-items: center; width: 64px; height: 72px; background: #303044; color: #c6fb4f; border-radius: 15px; }
.campaign-post-test { margin-block: 12px 4px; min-height: 44px; }
.assessment-card {
  width: min(100%, 580px);
  margin-inline: auto;
  display: grid;
  gap: 14px;
}
.assessment-progress { display: grid; gap: 6px; font-size: 13px; color: #d0e1c5; }
.assessment-progress progress { width: 100%; height: 9px; accent-color: #bce878; }
.assessment-card h3 { margin: 0; font-size: clamp(17px, 5vw, 23px); line-height: 1.35; }
.assessment-card h3:focus { outline: none; }
.assessment-card p { margin: 0; }
.assessment-choices { display: grid; gap: 9px; }
.assessment-choices .assessment-option {
  justify-content: flex-start;
  padding: 12px;
  min-height: 48px;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}
.assessment-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; margin: 0; }
.assessment-scores div { padding: 10px; border-radius: 10px; background: #2b4635; }
.assessment-scores dt { font-size: 12px; }
.assessment-scores dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; }
.assessment-review summary { min-height: 44px; padding: 9px 0; cursor: pointer; }
.assessment-review ul { display: grid; gap: 8px; padding-inline-start: 21px; margin: 3px 0 0; }
.assessment-review li p { font-size: 14px; }
.narrative-summary ol { list-style: none; padding: 0; display: grid; gap: 10px; }
.narrative-summary li { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #58566d; border-radius: 12px; }
.narrative-summary li.done > span { color: #c6fb4f; }
.narrative-summary li small { display: block; margin-top: 5px; color: #c4c4d3; }
.story-glossary { display: grid; gap: 10px; }
.story-glossary details { padding: 12px; border: 1px solid #6c607d; border-radius: 12px; }
.story-glossary summary { min-height: 32px; cursor: pointer; color: #c6fb4f; }
.story-glossary p { font-size: 15px; line-height: 1.5; }
.story-approaches { display: grid; gap: 12px; margin-top: 18px; }
.story-approaches article { padding: 12px; border: 1px solid #6a5c7a; border-radius: 12px; }
.story-approaches p { font-size: 15px; line-height: 1.5; }
.story-plan-note { padding: 13px; border: 1px solid #b5d15e; border-radius: 12px; margin-bottom: 14px; background: #252637; }
.story-plan-note p { font-size: 15px; line-height: 1.5; margin: 8px 0; }
.story-fixed-task { font-size: 14px; color: #d8c9f5; line-height: 1.4; margin-top: 10px; }
.story-ai-hint { padding: 10px; border: 1px dashed #ad91d1; background: #30283e; border-radius: 12px; font-size: 14px; }
.story-ai-hint p { margin: 6px 0 0; line-height: 1.45; }
@media (max-width:360px) {
 .narrative-dialogue .progressive-speech { font-size: 16px; }
}

body.a2-game:not(.maya-cyberpunk) .narrative-card,
body.a2-game:not(.maya-cyberpunk) .story-plan-note,
body.a2-game:not(.maya-cyberpunk) .story-ai-hint {
  background: var(--panel-2);
  border-color: var(--line);
}
body.a2-game:not(.maya-cyberpunk) .narrative-card small,
body.a2-game:not(.maya-cyberpunk) .narrative-thought,
body.a2-game:not(.maya-cyberpunk) .story-fixed-task,
body.a2-game:not(.maya-cyberpunk) .story-credits {
  color: var(--muted);
}
.story-credits { text-align: center; color: #c9b5ef; font-size: 14px; line-height: 1.6; padding-block: 16px; }
.story-forecast-compare { font-size: 15px; color: #d4fa88; padding: 10px; border: 1px solid #809b4e; border-radius: 10px; }

.narrative-dialogue[data-scene^="card:"] { gap: 10px; }
.narrative-dialogue[data-scene^="card:"] .office-speaker { gap: 12px; }
.narrative-dialogue[data-scene^="card:"] .office-speaker h3 { font-size: 22px; }
.narrative-dialogue[data-scene^="card:"] .speaker-job { display: none; }

.a2-skill-balance {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .2rem;
  color: var(--text);
  font-size: .78rem;
}
.a2-skill-balance svg {
  width: 1rem;
  height: 1rem;
  color: var(--green);
}

/* Order catalogue cards and client portraits */
.a2-game .order-card .order-open { padding: clamp(12px, 2vw, 20px); text-align: left; }
.a2-game .order-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; }
.a2-game .order-top > :is(.client-portrait,.order-client-mark) {
  display: grid; place-items: center; width: clamp(76px, 21vw, 104px); height: clamp(84px, 23vw, 112px);
  object-fit: cover; object-position: center top; border-radius: 14px; background: #0c231b;
}
.a2-game .order-client-mark { color: var(--green); border: 1px solid var(--line); font-size: 23px; font-weight: 800; }
.a2-game .order-client-mark .icon { width: 26px; height: 26px; }
.a2-game .order-card .order-top h3 { font-size: clamp(17px, 4vw, 23px); line-height: 1.18; overflow-wrap: anywhere; }
.a2-game .order-client-role { font-size: 13px; line-height: 1.25; }
.a2-game .order-open > .order-description { margin: 12px 0; padding: 0; font-size: 14px; }
.a2-game .order-card .order-meta { padding-inline: clamp(12px, 2vw, 20px); }

.assessment-evidence { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }
.assessment-evidence ul { margin: 4px 0 0; padding-inline-start: 18px; }
.assessment-evidence li { margin-block: 3px; }
.ai-choice-block .lesson-feedback { margin: 5px 0 0; padding: 9px 10px; }

/* Keep the skill description, bar and upgrade control in separate grid cells. */
.a2-game .a2-panel .profile-skills > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px 12px;
}
.a2-game .a2-panel .profile-skills > div > span { width: auto; }
.a2-game .a2-panel .profile-skills .progress { grid-column: 1; min-width: 0; }
.a2-game .a2-panel .profile-skills .btn { grid-column: 2; grid-row: 1 / span 2; }

/* Desktop office: a left navigation rail and a side panel outside the scene. */
.a2-game .office-stage[data-zoomed="true"] { touch-action: none; }
.a2-game .office-stage[data-panning="true"] { cursor: grabbing; }

@media (min-width: 1100px) and (pointer: fine) {
  body.a2-game {
    --a2-desktop-rail: 88px;
    --a2-desktop-side: 0px;
    --a2-desktop-gutter: 16px;
  }
  body.a2-game.a2-panel-open { --a2-desktop-side: clamp(360px, 33vw, 520px); }
  .a2-game .office-home {
    left: calc(var(--a2-desktop-rail) + var(--a2-desktop-side));
  }
  .a2-game .office-stage { cursor: grab; }
  .a2-game .office-stage :is(button, a) { cursor: pointer; }
  .a2-game .a2-resources {
    left: calc(var(--a2-desktop-rail) + var(--a2-desktop-side) + var(--a2-desktop-gutter));
    width: min(520px, calc(100% - var(--a2-desktop-rail) - var(--a2-desktop-side) - 2 * var(--a2-desktop-gutter)));
  }
  .a2-game .office-projects {
    left: var(--a2-desktop-gutter);
    top: 108px;
    width: min(520px, calc(100% - 2 * var(--a2-desktop-gutter)));
  }
  .a2-game.a2-panel-open .office-projects { visibility: visible; }
  .a2-game .office-next-step {
    left: var(--a2-desktop-gutter);
    bottom: 16px;
    width: min(520px, calc(100% - 2 * var(--a2-desktop-gutter)));
  }
  .a2-game .mobile-nav {
    top: var(--a2-desktop-gutter);
    bottom: var(--a2-desktop-gutter);
    left: 10px;
    width: 68px;
    height: auto;
    flex-direction: column;
    gap: 8px;
    padding: 6px;
    transform: none;
    border-radius: 18px;
  }
  .a2-game .mobile-nav .nav-item {
    width: 100%;
    flex: 0 0 56px;
    border-radius: 12px;
  }
  .a2-game .mobile-nav .nav-item > .icon:last-child:not(:first-child) { right: 6px; }
  .a2-game .a2-panel {
    left: var(--a2-desktop-rail);
    top: var(--a2-desktop-gutter);
    bottom: var(--a2-desktop-gutter);
    width: calc(var(--a2-desktop-side) - 4px);
    transform: none;
    border-radius: 18px;
  }
  .a2-game .a2-sheet-handle { display: none; }
  .a2-game .a2-panel-scroll .content-grid { grid-template-columns: minmax(0, 1fr); }
  .a2-game .a2-panel-scroll .planning-title-row { flex-wrap: wrap; }
}

.budget-recovery { margin: 10px 0; padding: 10px; border-radius: 10px; background: var(--panel-2); }
.budget-recovery p { font-size: 14px; margin: 0 0 8px; }
.a2-resource.budget-empty { outline: 1px solid #eaa88a; }
.candidate[data-candidate="artem"], .external-collaborator {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 12px;
}
.candidate[data-candidate="artem"] .staff-avatar { width: clamp(64px,22vw,100px); height: clamp(76px,24vw,112px); }
.external-collaborator { margin: 15px 0; }
.external-collaborator p { margin-block: 4px; }

/* First-run consent uses a dedicated page before character creation. */
body.modal-open .privacy-entry-backdrop {
  display: grid;
  place-items: center;
  padding: clamp(12px, 3.5vw, 40px);
  background: radial-gradient(ellipse at 50% 0, #355038, transparent 62%), #0d1c14;
  backdrop-filter: none;
}
body.modal-open .privacy-entry-sheet {
  width: min(100%, 620px);
  max-height: calc(100dvh - clamp(24px, 7vw, 80px));
  overflow: auto;
  border: 1px solid #769669;
  border-radius: 20px;
  background: #193325;
  color: #f4fbea;
}
.privacy-entry-sheet .sheet-handle { display: none; }
.privacy-entry-sheet .modal-header { padding: 20px clamp(16px, 4vw, 30px) 0; border: 0; background: transparent; }
.privacy-entry-sheet .modal-header h2 { margin: 0; line-height: 1.16; font-size: clamp(25px, 5.5vw, 36px); }
.privacy-entry-sheet .modal-body { padding: 12px clamp(16px, 4vw, 30px) 20px; }
.privacy-copy p { margin: 0; }
.privacy-emblem { display: grid; place-items: center; width: 42px; height: 42px; background: #344e34; color: #d4f78d; border-radius: 12px; }
.privacy-emblem .icon { width: 25px; height: 25px; }
.privacy-facts { display: grid; gap: 2px; margin: 0; overflow: hidden; border: 1px solid #66825a; border-radius: 12px; }
.privacy-facts > div { padding: 8px 12px; background: #243f2c; }
.privacy-facts dt { font-weight: 750; }
.privacy-facts dd { margin: 0; color: #e0ecd1; }
.privacy-details summary { cursor: pointer; padding-block: 5px; font-weight: 700; color: #d4f78d; }
.privacy-details[open] p { padding-top: 5px; color: #e0ecd1; }
.privacy-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.privacy-actions .btn { margin: 0; padding-inline: 8px; font-size: 14px; }
.a2-game .mobile-nav .nav-activity-badge:not([hidden]) {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 6px;
  display: grid;
  place-items: center;
  min-width: 16px;
  min-height: 16px;
  padding-inline: 3px;
  border-radius: 999px;
  background: #ffe28f;
  color: #352d16;
  box-shadow: 0 0 0 1px #3f341d;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  pointer-events: none;
}
@media (max-width: 360px) {
  .privacy-entry-sheet .modal-header { padding-top: 16px; }
  .privacy-entry-sheet .privacy-copy { gap: 9px; font-size: 14px; }
  .privacy-actions .btn { font-size: 12px; }
}

.story-request { display: grid; gap: 14px; }
.story-request header { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; }
.story-request header .client-portrait,.story-request header .order-client-mark { width: 88px; height: 96px; object-fit: cover; border-radius: 12px; }
.story-request h3 { font-size: clamp(20px,4.5vw,28px); line-height: 1.15; margin: 0 0 5px; }
.story-request h4,.ticket-forecast h4 { font-size: 15px; color: #d4f78d; margin: 0 0 4px; }
.story-request p,.school-report p { margin: 0; }
.story-request :is(section,.story-request-facts),.school-report,.ticket-forecast { border: 1px solid #688a56; border-radius: 12px; background: #24462d; padding: 10px 12px; }
.story-request-facts,.ticket-forecast dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.story-request-facts dd,.ticket-forecast dd { margin: 0; font-weight: 750; }
.story-request-actions { display: flex; gap: 8px; }
.story-request-actions .btn { flex: 1; }
.ticket-forecast dt { line-height: 1.25; }
.ticket-forecast dd { margin-top: 4px; }
.ticket-forecast small { display: block; font-weight: 500; }
.ticket-forecast p { margin: 8px 0 0; }
.school-report p { margin-top: 6px; }

.story-context-slots { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.story-context-slots > span { display: grid; place-items: center; min-height: 28px; border: 1px dashed #a3bd80; border-radius: 8px; color: #d0dfbe; }
.story-context-slots > .filled { background: #d4f78d; color: #183622; border-style: solid; }
.story-context-files { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.story-context-files .btn { display: flex; align-items: flex-start; gap: 5px; text-align: left; min-height: 44px; padding: 6px; overflow-wrap: anywhere; }
.story-context-files .btn[aria-pressed="true"] { border-color: #d4f78d; background: #45663d; }
.story-context-files .icon { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.story-context-files b { display: block; font-size: 12px; line-height: 1.2; }
.story-context-files small { display: block; font-size: 11px; line-height: 1.2; }

.term-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 7px 0; }
.a2-game .term-explain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  background: none;
  border: 0;
  box-shadow: none;
  color: #daf7a6;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: .8rem;
}
.term-explain .icon { width: 14px; height: 14px; }
.story-glossary section + section { margin-top: 18px; }
.story-glossary h3 { margin: 0 0 7px; }
.story-glossary .term-example,.glossary-term-card .term-example { padding: 8px 10px; border-left: 2px solid #d4f78d; background: #284b30; }
.term-example strong { display: block; }
.mg-backend-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mg-backend-flow > div {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid #75995788;
  border-radius: 10px;
  background: #244d2b;
  text-align: center;
  line-height: 1.25;
}
.mg-backend-flow > div:not(:last-child)::after {
  content: '›';
  position: absolute;
  top: 25%;
  right: -8px;
  z-index: 1;
  color: #def3b3;
  font-size: 18px;
}
.mg-backend-flow .icon { color: #d1f68b; width: 19px; height: 19px; }
.mg-backend-flow small { color: #c5dfb6; font-size: 11px; }
.mg-backend-flow strong { font-size: 12px; overflow-wrap: anywhere; }
.mg-backend-flow:not([data-phase="ready"]) > div:last-child { border-color: #d1f68b; }
.mg-backend-lab .mg-feedback.success {
  border-color: #9dc468;
  background: #2b5231;
  color: #e4f7cf;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-motion) .mg-backend-flow[data-phase="sent"] > div:nth-child(2) { animation: backend-receive 420ms ease-out; }
  body:not(.no-motion) .mg-backend-flow:not([data-phase="ready"]) > div:last-child { animation: backend-receive 420ms ease-out 140ms both; }
}
@keyframes backend-receive {
  from { background-color: #467141; }
  to { background-color: #244d2b; }
}
.mg-backend-evidence { color: #d1f68b; font-size: 14px; }
.mg-backend-practice { width: 100%; min-height: 44px; }
.mg-visitor-site .mg-live-blocks { gap: 5px; }
.mg-visitor-site .mg-visit-block {
  flex: 1 0 auto;
  gap: 3px;
  padding: 5px 7px;
  cursor: default;
  animation: none;
}
.mg-visitor-site .mg-visit-block::before { content: none; }
.mg-visit-prices, .mg-visit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
}
.mg-visit-action {
  min-height: 44px;
  padding: 5px 6px;
  border: 1px solid #9eae83;
  border-radius: 6px;
  background: #f0ecd9;
  color: #25452e;
  font-size: 11px;
  line-height: 1.2;
}
.mg-visit-action span, .mg-visit-action b { display: block; }
.mg-visit-action[aria-pressed="true"] { background: #dcedbf; border-color: #6c913e; opacity: 1; }
.mg-visit-action:focus-visible { outline: 2px solid #386943; outline-offset: 1px; }
.mg-visit-form > span { font-size: 11px; line-height: 1.2; }
.mg-visit-send { background: #30633b; color: #fffdf3; font-weight: 700; }
@media (min-width: 480px) {
  .mg-visit-action, .mg-visit-form > span { font-size: 14px; }
}
@media (min-width: 480px) {
  .mg-backend-flow { gap: 14px; }
  .mg-backend-flow > div { padding: 14px 8px; }
  .mg-backend-flow > div:not(:last-child)::after { right: -12px; }
  .mg-backend-flow strong { font-size: 15px; }
}

.account-sheet,
.account-sheet form {
  display: grid;
  gap: 10px;
}
.account-sheet {
  max-width: 36rem;
  margin-inline: auto;
}
.account-sheet label { color: #f4fbe8; font-weight: 700; }
.account-sheet small { color: #c9dcc9; line-height: 1.4; }
.account-sheet input {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #698f61;
  border-radius: 10px;
  background: #132d21;
  color: #f4fbe8;
  font-size: 16px;
}
.account-sheet input:focus-visible {
  outline: 2px solid #d1f68b;
  outline-offset: 2px;
}
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-actions .btn { min-width: 0; min-height: 44px; padding-inline: 10px; }
.entry-copy > .account-actions { margin-top: 10px; }
.account-message { color: #d1f68b; }
.account-message:empty { display: none; }
.ranking-settings { margin-block: 10px; }
.ranking-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ranking-list li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #567750;
  border-radius: 10px;
  background: #1e3d2b;
}
.ranking-list strong { overflow-wrap: anywhere; }
.ranking-list li > span:last-child { color: #d1f68b; white-space: nowrap; }

.entry-bot .sberik-portrait { width: 120px; height: 142px; flex-basis: 120px; }
.builder-coach-bot .sberik-portrait { max-width: 100%; max-height: 100%; }
.mg-load-nodes > button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 7px;
  border: 1px solid #789860;
  border-radius: 10px;
  background: #294e2e;
  color: #f2f7e7;
  text-align: left;
}
.mg-load-nodes > button.overloaded { border-color: #d8af78; background: #4d452b; }
.mg-load-nodes > button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #d1f68b; }
.mg-load-nodes > button b { font-size: 12px; }
.mg-load-nodes > button small { font-size: 10px; }
.load-compare { min-height: 44px; }
@media (max-width: 360px) {
  .mg-load-nodes > button { gap: 4px; padding: 6px 5px; }
}
