#stage{--milk:#f5f0eb;--gray:#e9e3da;--beige:#fdebdb;--graphite:#4e4e4c;--clinic:#009ee3;--clinic-lt:#5bc5f2;--green:#12a537;--amber:#f5a623;--line:#e4dccf;--muted:#8c8a85;--white:#fff;--font:"Noto Sans",Arial,sans-serif;--k:1}
#stage *{box-sizing:border-box;margin:0;padding:0}
#stage{font-family:var(--font);color:var(--graphite);-webkit-font-smoothing:antialiased}
/* ПАНЕЛЬ ВВОДА (светлая) */
/* ОБЛАСТЬ КАРТЫ */
#stage{overflow-x:auto;padding:0;display:block}
#stage .page{width:794px;height:1123px;background:var(--milk);position:relative;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.18);flex:0 0 auto}
#stage .page.exporting{box-shadow:none}
#stage #fit{position:absolute;top:0;left:0;width:794px;padding:calc(26px*var(--k)) 30px calc(18px*var(--k));transform-origin:top center}
#stage .topbar{position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--clinic-lt),var(--clinic),var(--green));z-index:6}
/* ШАПКА: лого + дерево с продлёнными линиями + заголовок */
#stage .head{position:relative;height:126px}
#stage .logo{position:absolute;top:8px;left:0;height:48px}
#stage .title{position:absolute;top:8px;right:0;text-align:right;z-index:4}
#stage .title h1{font-weight:700;font-size:26px;letter-spacing:.04em;line-height:1;color:var(--graphite)}
#stage .title .sub{font-size:9.5px;letter-spacing:.24em;color:var(--clinic);margin-top:7px;font-weight:600}
#stage .tree{position:absolute;left:-152px;top:30px;height:84px;width:auto;z-index:1}
#stage .patient{display:flex;align-items:center;gap:30px;background:var(--white);border-radius:14px;padding:calc(14px*var(--k)) 24px;box-shadow:0 2px 10px rgba(0,0,0,.03);position:relative;z-index:3}
#stage .patient .who{font-weight:600;font-size:15px}
#stage .patient .who small{display:block;font-weight:400;font-size:10.5px;color:var(--muted);margin-top:3px}
#stage .metric{padding-left:24px;border-left:1px solid var(--line)}
#stage .metric .lab{font-size:8.5px;letter-spacing:.22em;color:var(--muted);text-transform:uppercase}
#stage .metric .val{font-weight:700;font-size:18px;margin-top:2px}
#stage .metric .val span{font-size:9.5px;font-weight:400;color:var(--amber)}
#stage .hero{background:var(--white);border-radius:14px;padding:calc(12px*var(--k)) 22px;margin-top:calc(10px*var(--k));box-shadow:0 2px 10px rgba(0,0,0,.03)}
#stage .hero .eyebrow{font-size:9px;letter-spacing:.24em;color:var(--clinic);font-weight:700;text-transform:uppercase;margin-bottom:7px}
#stage .hero-grid{display:grid;grid-template-columns:236px 1fr;gap:22px;align-items:center}
#stage .radar-wrap{text-align:center}
#stage .radar-wrap svg{width:236px;height:156px}
#stage .radar-legend{display:flex;flex-direction:column;align-items:center;gap:0;margin-top:8px;font-size:9px;color:var(--muted);line-height:1.45}
#stage .radar-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px}
#stage .states{display:flex;flex-direction:column;gap:calc(8px*var(--k))}
#stage .state .lab{font-size:9px;letter-spacing:.18em;font-weight:700;text-transform:uppercase}
#stage .state.now .lab{color:var(--graphite)}
#stage .state.goal .lab{color:var(--green)}
#stage .state p{font-size:11.5px;line-height:1.4;color:#5e5c58;margin-top:3px}
#stage .states .divider{height:1px;background:var(--line)}
#stage .main{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:calc(10px*var(--k))}
#stage .col{display:flex;flex-direction:column;gap:calc(8px*var(--k))}
#stage .sec-h{font-size:10px;letter-spacing:.2em;font-weight:700;color:var(--clinic);text-transform:uppercase;display:flex;align-items:center;gap:8px;margin-bottom:calc(4px*var(--k))}
#stage .sec-h::before{content:"";width:18px;height:2px;background:var(--clinic)}
#stage .sub-h{font-size:8.5px;letter-spacing:.04em;color:var(--muted);margin:0 0 5px 26px;font-weight:400}
#stage .factor{font-size:11px;line-height:1.35;padding:calc(4px*var(--k)) 0 calc(4px*var(--k)) 17px;position:relative;border-bottom:1px dashed var(--line)}
#stage .factor::before{content:"";position:absolute;left:0;top:9px;width:7px;height:7px;border-radius:50%;background:var(--clinic)}
#stage .factor b{font-weight:600}
#stage .factor small{color:#6a6864}
#stage .goal{font-size:11px;line-height:1.32;padding:calc(5px*var(--k)) 0 calc(5px*var(--k)) 32px;position:relative;border-bottom:1px dashed var(--line)}
#stage .goal .n{position:absolute;left:0;top:4px;width:21px;height:21px;border-radius:50%;background:linear-gradient(135deg,var(--clinic-lt),var(--clinic));color:#fff;font-weight:700;font-size:11px;display:flex;align-items:center;justify-content:center}
#stage .goal b{font-weight:600}
#stage .goal .why{color:var(--amber);font-size:9.5px}
#stage .stage{margin-bottom:calc(7px*var(--k))}
#stage .stage .st-h{font-size:9px;letter-spacing:.08em;font-weight:700;color:var(--graphite);background:var(--beige);display:inline-block;padding:3px 9px;border-radius:16px;margin-bottom:5px}
#stage .stage .st-why{font-size:9.2px;color:#6a6864;font-style:italic;margin:2px 0 4px}
#stage .proc{padding:calc(3px*var(--k)) 0 calc(3px*var(--k)) 12px;border-left:2px solid var(--clinic-lt);margin-bottom:calc(4px*var(--k))}
#stage .proc b{font-weight:600;font-size:10.5px;line-height:1.25;display:block}
#stage .proc small{color:#6a6864;font-size:9.5px;line-height:1.3}
#stage .split2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:calc(10px*var(--k))}
#stage .rolebox{background:var(--beige);border-left:4px solid var(--amber);border-radius:0 12px 12px 0;padding:11px 14px}
#stage .rolebox .first{background:#fff;border:1.5px solid var(--amber);border-radius:8px;padding:7px 10px;margin-bottom:7px}
#stage .rolebox .first .tag{font-size:7.5px;color:var(--amber);font-weight:700;letter-spacing:1px}
#stage .rolebox .first .txt{font-size:11px;font-weight:600;margin-top:1px}
#stage .rolebox ul{list-style:none}
#stage .rolebox li{font-size:10.5px;line-height:1.35;padding-left:14px;position:relative;margin:2px 0}
#stage .rolebox li::before{content:"→";position:absolute;left:0;color:var(--amber);font-weight:700}
#stage .signsbox{background:var(--white);border-left:4px solid var(--green);border-radius:0 12px 12px 0;padding:11px 14px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
#stage .signsbox ul{list-style:none}
#stage .signsbox li{font-size:10.5px;line-height:1.35;padding-left:16px;position:relative;margin:2px 0}
#stage .signsbox li::before{content:"\2713";position:absolute;left:0;color:var(--green);font-weight:700}
#stage .timeline{background:var(--white);border-radius:12px;padding:calc(11px*var(--k)) 18px;margin-top:calc(10px*var(--k));box-shadow:0 2px 10px rgba(0,0,0,.03)}
#stage .tl-row{display:grid;grid-template-columns:118px 1fr;gap:14px;padding:4px 0;border-bottom:1px dashed var(--line);align-items:baseline}
#stage .tl-row:last-child{border-bottom:none}
#stage .tl-date{font-weight:700;color:var(--clinic);font-size:12px}
#stage .tl-txt{font-size:11px;line-height:1.4;color:#5e5c58}
#stage .doctor{display:flex;justify-content:space-between;align-items:center;margin-top:calc(10px*var(--k));padding:calc(11px*var(--k)) 20px;border-radius:12px;background:linear-gradient(120deg,var(--clinic),#2f7fbf);color:#fff}
#stage .doctor .lab{font-size:8.5px;letter-spacing:.22em;opacity:.85;text-transform:uppercase}
#stage .doctor .nm{font-weight:700;font-size:15px;margin-top:3px}
#stage .doctor .ch{font-size:10.5px;opacity:.9}
#stage footer{text-align:center;font-size:8.5px;letter-spacing:.14em;color:var(--muted);margin-top:calc(8px*var(--k))}
@media print{#stage{background:#fff;display:block}
#stage{padding:0;overflow:visible;display:block}
#stage .page{box-shadow:none;width:auto}
@page{size:A4;margin:0}}
/* v3 first-person */
#stage .myhead{font-size:11px;letter-spacing:.06em;font-weight:700;color:var(--graphite);text-transform:uppercase;display:flex;align-items:center;gap:9px;margin-bottom:calc(7px*var(--k))}
#stage .myhead::before{content:"";width:16px;height:3px;border-radius:3px;background:var(--clinic)}
#stage .myhead small{font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted);font-size:9.5px;margin-left:2px}
#stage .goals-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:calc(11px*var(--k))}
#stage .goalcard{background:var(--white);border-radius:12px;padding:calc(9px*var(--k)) 12px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
#stage .goalcard .n{width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,var(--clinic-lt),var(--clinic));color:#fff;font-weight:700;font-size:11px;display:flex;align-items:center;justify-content:center;margin-bottom:calc(5px*var(--k))}
#stage .goalcard b{font-size:11px;line-height:1.32;display:block}
#stage .goalcard .why{font-size:9.3px;color:var(--muted);line-height:1.3;margin-top:3px;display:block}
#stage .firststep{margin-top:calc(12px*var(--k));background:linear-gradient(120deg,#eaf7fe,#f5f0eb);border:1.5px solid var(--clinic-lt);border-radius:14px;padding:calc(12px*var(--k)) 20px;display:flex;align-items:center;gap:18px}
#stage .firststep .badge{flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:var(--clinic);color:#fff;display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:700}
#stage .firststep .fs-lab{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--clinic);font-weight:700}
#stage .firststep .fs-txt{font-size:14px;font-weight:700;line-height:1.28;margin-top:3px}
#stage .planwrap{margin-top:calc(12px*var(--k));background:var(--white);border-radius:14px;padding:calc(12px*var(--k)) 20px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
#stage .plan-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-top:calc(8px*var(--k))}
#stage .decode{display:block;font-size:9.3px;line-height:1.34;color:#6a6864;margin-top:2px}
#stage .decode.jarg{border-left:2px solid var(--clinic-lt);padding-left:7px}
#stage .decode b{font-weight:600;color:var(--clinic)}
#stage .mywhat{background:var(--white);border-left:4px solid var(--clinic);border-radius:0 12px 12px 0;padding:11px 14px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
#stage .mywhat ul{list-style:none}
#stage .mywhat li{font-size:10.5px;line-height:1.4;padding-left:16px;position:relative;margin:calc(3px*var(--k)) 0}
#stage .mywhat li::before{content:"\2713";position:absolute;left:0;color:var(--clinic);font-weight:700}
#stage .signsbox .myhead::before{background:var(--green)}