/* T-2984: «Новая Главная» — стили макета docs/review/home_new_final/style.css, все селекторы под #home-new
   (прежняя Главная #home-cc и остальной сайт не затрагиваются). Постоянная тёмная тема «Рекламы»; 1440 / 820 / 390,
   границы 900 и 560 px; сетки minmax(0, …), без фиксированной ширины шире экрана → нет горизонтальной прокрутки. */
#home-new{color-scheme:dark;--bg:#010715;--surface:#071626;--text:#e7edf6;--muted:#9fb0c6;--border:rgba(148,163,184,.22);--cyan:#23d7e6;--green:#34d399;--red:#ff5b72;--amber:#f5ad29;--r:18px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--text);background:radial-gradient(circle at 58% 30%,#06233d 0%,#020b19 42%,#010715 100%);font-variant-numeric:tabular-nums;line-height:1.5;-webkit-font-smoothing:antialiased;max-width:100%;overflow-x:hidden;border-radius:var(--r)}
#home-new *{box-sizing:border-box}
#home-new button,#home-new input{font:inherit;color:inherit}#home-new button{cursor:pointer;border:0}#home-new button:focus-visible,#home-new a:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}#home-new a{color:var(--cyan);text-decoration:none}
#home-new h1,#home-new h2,#home-new h3,#home-new h4,#home-new p{margin:0}
#home-new svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#home-new .muted{color:var(--muted)}#home-new .up{color:var(--green)}#home-new .warning{color:var(--amber)}#home-new .down{color:var(--red)}#home-new .money{white-space:nowrap}
#home-new .dot{width:7px;height:7px;display:inline-block;background:var(--green);border-radius:50%;flex-shrink:0}#home-new .dot.partial{background:var(--amber)}#home-new .dot.none{background:var(--muted)}
#home-new .hn-page{width:min(1240px,calc(100% - 48px));margin:28px auto 40px;display:flex;flex-direction:column;gap:20px}
#home-new .hero{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:2px 4px 6px}#home-new .hero-copy{max-width:680px;min-width:0}#home-new .hero h1{font-size:32px;font-weight:650;letter-spacing:-1px;line-height:1.2;margin-bottom:10px}#home-new .hero p{font-size:14px;color:var(--muted);line-height:1.65;max-width:600px}#home-new .hero p.meta{font-size:11px;margin-top:6px}
#home-new .hero-mark{height:92px;width:92px;flex:0 0 92px;border:1px solid rgba(35,215,230,.25);border-radius:28px;background:#072133;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--cyan)}#home-new .hero-mark .icon{width:32px;height:32px;stroke-width:1.3}#home-new .hero-mark small{font-size:10px;letter-spacing:.13em;margin-top:6px}
#home-new .panel{padding:22px 24px;border:1px solid rgba(35,215,230,.22);border-radius:var(--r);background:rgba(5,15,28,.82);min-width:0}#home-new .panel.is-unavailable{background:rgba(8,19,32,.88);border-color:rgba(148,163,184,.17)}
#home-new .section-title{font-size:16px;font-weight:600;letter-spacing:-.25px;display:flex;align-items:center;gap:9px}#home-new .section-title .icon{width:18px;height:18px;color:var(--cyan)}#home-new .is-unavailable .section-title .icon{color:var(--muted)}
#home-new .section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}#home-new .kicker{color:var(--cyan);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}#home-new .meta{color:var(--muted);font-size:11px;line-height:1.6}
#home-new .verdict{position:relative;border-left:3px solid var(--green)}#home-new .verdict.is-unavailable{border-left-color:var(--muted)}#home-new .verdict-top{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:10px}#home-new .verdict h2{font-size:21px;line-height:1.4;font-weight:600;letter-spacing:-.4px}#home-new .verdict-facts{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}#home-new .verdict-facts span{font-size:12px;color:var(--muted);padding-right:14px;border-right:1px solid var(--border)}#home-new .verdict-facts span:last-child{border:0}#home-new .verdict-foot{border-top:1px solid var(--border);padding-top:11px;margin-top:14px;font-size:11px;color:var(--muted)}
#home-new .metric-area .section-title{margin:0 3px 12px}#home-new .metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}#home-new .metric-grid+.section-title{margin-top:22px}
#home-new .metric-tile{position:relative;min-width:0;min-height:160px;text-align:left;padding:17px 18px;background:rgba(5,15,28,.82);border:1px solid rgba(35,215,230,.17);border-radius:14px;display:flex;flex-direction:column;align-items:flex-start;transition:border-color .15s}#home-new .metric-tile:hover{border-color:rgba(35,215,230,.45)}
#home-new .metric-title{font-size:12px;line-height:18px;color:var(--muted);min-height:18px;display:flex;justify-content:space-between;width:100%;gap:8px}#home-new .metric-title .dot{margin-top:6px}#home-new .metric-badge{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;line-height:15px;margin-top:2px;height:15px}
#home-new .metric-value{font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.85px;margin:9px 0 7px;white-space:nowrap;max-width:100%;overflow-wrap:anywhere}#home-new .metric-sub{font-size:11px;line-height:17px;color:var(--muted);min-height:34px;white-space:pre-line;overflow-wrap:anywhere;max-width:100%}#home-new .metric-sub.up{color:var(--green)}#home-new .metric-sub.warning{color:var(--amber)}
#home-new .metric-tile.unavailable{border-color:rgba(148,163,184,.17);background:rgba(8,19,32,.85)}#home-new .metric-tile.unavailable .metric-value{color:var(--muted);font-size:22px;font-weight:550;letter-spacing:-.3px}#home-new .metric-tile.future{grid-column:span 2;min-height:117px}#home-new .loading-bar{width:65%;height:28px;border-radius:6px;background:#172b3e;margin:12px 0 11px}#home-new .metric-tile.loading .metric-value{display:none}
#home-new .stores-head{display:flex;justify-content:space-between;gap:24px;margin-bottom:18px}#home-new .drr-total{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:10px}#home-new .drr-total strong{font-size:28px;letter-spacing:-.6px}#home-new .drr-total span{font-size:12px}#home-new .drr-context{max-width:420px;padding-left:20px;border-left:1px solid var(--border);font-size:11px;color:var(--muted);align-self:center;min-width:0}
#home-new .store-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-top:1px solid var(--border)}#home-new .store{padding:17px 16px 10px;border-right:1px solid var(--border);min-width:0}#home-new .store:first-child{padding-left:0}#home-new .store:last-child{border-right:0;padding-right:0}
#home-new .store-brand{display:flex;align-items:center;gap:7px;margin-bottom:12px;min-height:26px}#home-new .market-mark{font-size:8px;font-weight:700;color:var(--cyan);background:#102a3d;border-radius:5px;min-width:25px;height:22px;display:grid;place-items:center}#home-new .market-mark.wb{color:#d8b4fe;background:#241d39}#home-new .market-mark.ym{color:#f5d897;background:#29271d}#home-new .store h3{font-size:12px;font-weight:600;overflow-wrap:anywhere}
#home-new .store-revenue{font-size:23px;font-weight:650;letter-spacing:-.4px;margin-bottom:8px;white-space:nowrap}#home-new .store-row{display:flex;justify-content:space-between;font-size:11px;gap:6px;line-height:1.9;color:var(--muted)}#home-new .store-row b{color:var(--text);font-weight:500;white-space:nowrap}#home-new .store-row b.muted{color:var(--muted)}
#home-new .store-profit{border-top:1px solid var(--border);margin-top:10px;padding-top:8px}#home-new .store-profit small{display:block;color:var(--muted);font-size:9px}#home-new .store-reason{font-size:10px;line-height:16px;text-align:left;background:transparent;color:var(--muted);padding:0;margin-top:6px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}#home-new .store.unavailable .store-revenue{color:var(--muted);font-size:16px}
#home-new .pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}#home-new .quiet-block{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}#home-new .quiet-block .section-title{font-size:14px}#home-new .unavailable-value{color:var(--muted);font-size:16px;font-weight:550;margin-top:14px}
#home-new .reason{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.6}#home-new .details-link{color:var(--muted);padding:2px 0;font-size:11px;background:none;text-align:left;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
#home-new .work-area{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start}#home-new .side-stack{display:flex;flex-direction:column;gap:20px;min-width:0}#home-new .plan{padding-bottom:17px}
#home-new .task{border-top:1px solid var(--border);padding-top:22px;margin-top:20px}#home-new .task:first-of-type{margin-top:0}#home-new .task-head{display:flex;gap:12px}#home-new .task-mark{width:36px;height:36px;flex:0 0 36px;background:rgba(255,91,114,.08);border:1px solid rgba(255,91,114,.17);color:var(--red);border-radius:10px;display:grid;place-items:center}#home-new .task.warning .task-mark{color:var(--amber);background:rgba(245,173,41,.06);border-color:rgba(245,173,41,.17)}
#home-new .task-kind{font-size:9px;font-weight:700;letter-spacing:.08em;color:var(--red);text-transform:uppercase}#home-new .task.warning .task-kind{color:var(--amber)}#home-new .task h3{font-size:17px;line-height:1.35;letter-spacing:-.3px;margin:5px 0;color:var(--text)}#home-new .task-meta{font-size:11px;color:var(--muted);line-height:1.7}#home-new .task-meta .money{color:var(--text)}
#home-new .why-box{font-size:11px;line-height:1.7;color:var(--muted);padding:12px 13px;background:rgba(148,163,184,.045);border:1px solid rgba(148,163,184,.1);border-radius:10px;margin-top:15px}#home-new .why-box strong{color:#cbd5e1;font-weight:500}#home-new .why-box .evidence{margin-top:6px}#home-new .task-extra{font-size:11px;margin-top:7px;color:var(--muted)}
#home-new .task-part{margin-top:16px}#home-new .task-part h4{font-size:11px;color:var(--muted);font-weight:600;margin:0 0 7px}#home-new .proposal{display:flex;gap:8px;font-size:12px;color:var(--text);line-height:1.55;margin-top:5px}#home-new .proposal .check{color:var(--cyan)}#home-new .after p{font-size:11px;line-height:1.7;color:var(--muted)}
#home-new .effect{border-top:1px solid var(--border);padding-top:12px;margin-top:15px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}#home-new .effect-label{font-size:11px;color:var(--muted)}#home-new .effect-value{font-size:23px;color:var(--green);font-weight:650;letter-spacing:-.4px;white-space:nowrap}#home-new .effect-value small{font-size:11px;color:var(--muted);font-weight:400}#home-new .effect-value.none{font-size:12px;color:var(--muted);white-space:normal;text-align:right;max-width:56%;letter-spacing:0}
#home-new .task-gate{margin-top:12px;font-size:11px;color:var(--muted);padding:10px 12px;border:1px dashed rgba(148,163,184,.25);border-radius:10px}
#home-new .plan-note{border-top:1px solid var(--border);padding-top:15px;margin-top:20px;font-size:11px;color:var(--muted)}
#home-new .event-list{margin-top:15px}#home-new .event-row{display:flex;gap:10px;justify-content:space-between;padding:10px 0;border-top:1px solid var(--border);font-size:12px;line-height:1.6;color:var(--muted)}#home-new .event-row strong{flex-shrink:0;color:#cbd5e1;font-weight:600}#home-new .event-copy{flex:1;min-width:0;overflow-wrap:anywhere}
#home-new .stock-risk-main{font-size:22px;line-height:1.35;margin:14px 0 9px;font-weight:650;letter-spacing:-.5px;color:var(--amber)}#home-new .stock-risk-main span{font-size:13px;display:block;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:5px}
#home-new .empty-block{padding:20px 0 4px;color:var(--muted);font-size:13px;line-height:1.7}#home-new .empty-block b{display:block;font-size:16px;font-weight:550;margin-bottom:5px}
#home-new .forecast-group{padding:0;overflow:hidden}#home-new .forecast-group>summary{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;cursor:pointer;list-style:none;font-size:14px;font-weight:550}#home-new .forecast-group>summary::-webkit-details-marker{display:none}#home-new .forecast-group>summary .icon{color:var(--muted);width:18px}#home-new .forecast-group[open]>summary .icon{transform:rotate(180deg)}
#home-new .future-grid{padding:0 22px 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#home-new .future-card{border:1px solid var(--border);border-radius:12px;padding:16px;background:#0a1929;min-width:0}#home-new .future-card .section-title{font-size:13px}#home-new .future-card .unavailable-value{font-size:15px;margin-top:11px}#home-new .future-card:first-child{grid-column:span 2}#home-new .future-card .details-link{margin-top:9px}
#home-new .scrim{position:fixed;inset:0;background:#0009;z-index:20;display:grid;place-items:center;padding:24px}#home-new .sheet{width:480px;max-width:100%;max-height:85dvh;border:1px solid rgba(35,215,230,.28);border-radius:18px;background:#081829;display:flex;flex-direction:column;box-shadow:0 20px 70px #0009}
#home-new .sheet-head{padding:20px 50px 16px 22px;border-bottom:1px solid var(--border);position:relative}#home-new .sheet-head h2{font-size:18px;line-height:1.4;font-weight:600}#home-new .sheet-close{position:absolute;right:12px;top:12px;height:32px;width:32px;color:var(--muted);background:none;font-size:24px}
#home-new .sheet-body{padding:20px 22px;overflow:auto;overscroll-behavior:contain;font-size:13px;line-height:1.7;color:var(--muted)}#home-new .sheet-body p+p{margin-top:12px}#home-new .sheet-number{font-size:32px;font-weight:650;margin:8px 0 13px;color:var(--text);letter-spacing:-.8px}#home-new .sheet-state{font-size:11px;display:flex;align-items:center;gap:7px}#home-new .sheet-sub{font-size:11px;margin-top:6px;color:var(--muted)}#home-new .sheet-handle{display:none}
@media(max-width:1100px){#home-new .metric-value{font-size:27px}#home-new .metric-title{font-size:11px}#home-new .metric-sub{font-size:10px}#home-new .store{padding:14px 10px}#home-new .store-revenue{font-size:20px}#home-new .work-area{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}}
@media(max-width:899px){#home-new .hn-page{width:calc(100% - 40px);max-width:780px;margin-top:24px;gap:18px}#home-new .hero h1{font-size:29px}#home-new .panel{padding:20px}#home-new .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#home-new .metric-value{font-size:32px}#home-new .metric-tile{min-height:165px;padding:18px}#home-new .metric-tile.future{grid-column:auto;min-height:155px}
#home-new .store-grid{display:flex;flex-direction:column}#home-new .store{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-right:0;border-bottom:1px solid var(--border);padding:16px 0!important;gap:0 32px}#home-new .store:last-child{border-bottom:0}#home-new .store-brand{margin-bottom:7px;grid-column:1;grid-row:1}#home-new .store-revenue{grid-column:2;grid-row:1;text-align:right;font-size:24px;margin:0}#home-new .store-data{grid-column:2;grid-row:2}#home-new .store-profit{grid-column:1;grid-row:2;margin:0;padding:0;border:0}#home-new .store-reason{grid-column:1/-1;font-size:11px;margin-top:5px}
#home-new .stores-head{flex-direction:column;gap:10px}#home-new .drr-context{border-left:0;padding-left:0}#home-new .work-area{display:flex;flex-direction:column;gap:18px}#home-new .plan,#home-new .side-stack{width:100%}#home-new .pair{gap:18px}#home-new .future-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:560px){#home-new .hn-page{width:calc(100% - 32px);margin:22px auto 32px;gap:16px}#home-new .hero{gap:14px;align-items:flex-start}#home-new .hero h1{font-size:25px;letter-spacing:-.65px}#home-new .hero p{font-size:12px}#home-new .hero-mark{width:58px;height:64px;flex-basis:58px;border-radius:18px}#home-new .hero-mark .icon{width:25px;height:25px}
#home-new .panel{padding:16px;border-radius:16px}#home-new .section-title{font-size:15px;gap:7px}#home-new .verdict-top{display:block}#home-new .verdict h2{font-size:17px}#home-new .verdict-facts{flex-direction:column;gap:7px}#home-new .verdict-facts span{font-size:11px;border:0;padding:0}
#home-new .metric-grid{gap:10px}#home-new .metric-tile{padding:12px;min-height:157px;border-radius:13px}#home-new .metric-title{font-size:11px;line-height:16px;min-height:32px}#home-new .metric-badge{font-size:8px}#home-new .metric-value{font-size:25px;letter-spacing:-.7px;margin:8px 0 7px}#home-new .metric-value.long{font-size:21px;white-space:normal}#home-new .metric-sub{font-size:10px;line-height:15px;min-height:30px}#home-new .metric-tile.unavailable .metric-value{font-size:19px}#home-new .metric-tile.future{min-height:157px}
#home-new .store{gap:0 13px}#home-new .store-revenue{font-size:20px}#home-new .store.unavailable .store-revenue{font-size:14px}#home-new .store-row{font-size:10px}#home-new .pair{grid-template-columns:minmax(0,1fr);gap:16px}#home-new .work-area,#home-new .side-stack{gap:16px}
#home-new .task h3{font-size:15px}#home-new .task-mark{width:29px;height:29px;flex-basis:29px}#home-new .effect-value{font-size:21px}#home-new .effect-value.none{font-size:10px;max-width:52%}#home-new .future-grid{grid-template-columns:minmax(0,1fr);padding:0 14px 14px;gap:10px}#home-new .future-card:first-child{grid-column:auto}#home-new .forecast-group>summary{padding:16px;font-size:12px}
#home-new .scrim{padding:0;align-items:end}#home-new .sheet{width:100%;max-height:82dvh;border-radius:22px 22px 0 0;border-bottom:0}#home-new .sheet-handle{display:block;align-self:center;width:34px;height:4px;border-radius:4px;background:#496177;margin-top:10px;flex-shrink:0}#home-new .sheet-number{font-size:28px}}
@media(prefers-reduced-motion:reduce){#home-new *{transition:none!important}}
/* T-3021: при новой Главной старая скрыта — перебивает #home-cc{display:flex} из home_command_center.css; откат = снять флаг */
#home-cc[hidden],body.home-new-active #home-cc{display:none!important}
/* T-3021: ДРР по магазинам — адаптивная сетка ячеек, без nowrap/фиксированной ширины */
#home-new .metric-value.split{white-space:normal;width:100%;font-size:17px;letter-spacing:0}#home-new .split-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,96px),1fr));gap:2px 12px;width:100%;min-width:0}#home-new .split-cell{min-width:0;overflow-wrap:anywhere;white-space:normal}
