/* Approved OZON homepage geometry with the original WB palette. WB styles and state only. */
body.wb-home-active{--wb-home-border:var(--wb-line);--wb-home-shadow:0 8px 24px rgba(15,23,42,.065);background:var(--wb-surface);overflow:hidden}
.wb-header-icon,.wb-user-avatar{display:none}
.wb-platform-links{display:flex;gap:12px}
.wb-platform-links a{color:inherit}
.wb-user-copy{display:grid;gap:1px}
.wb-user-copy small{font-size:11px;color:var(--wb-muted)}
body.wb-home-active .wb-shell{height:100dvh;min-height:0;overflow:hidden;background:var(--wb-surface)}
body.wb-home-active .wb-sidebar{background:var(--wb-sidebar);color:#d8e3ef;box-shadow:var(--wb-home-shadow);position:static;gap:10px}
body.wb-home-active .wb-logo{color:#fff;font-weight:900}
body.wb-home-active .wb-logo b{color:#eecaf5}
body.wb-home-active .wb-nav{color:#d8e3ef;font-weight:700}
body.wb-home-active .wb-nav:hover{background:#172537;color:#fff}
body.wb-home-active .wb-nav.active{background:#59206a;color:#fff}
body.wb-home-active .wb-nav[data-tab=accounts]{display:none}
body.wb-home-active .wb-sidebar summary{color:#c8d5e3}
body.wb-home-active .wb-sidebar-footer{display:none}
.wb-logo-mark{font-size:24px}
body.wb-home-active main{display:flex;flex-direction:column;overflow:hidden}
body.wb-home-active .wb-topbar{flex:0 0 58px;border-bottom:1px solid var(--wb-line);box-shadow:var(--wb-home-shadow);z-index:1}
body.wb-home-active .wb-topbar h1{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:950}
body.wb-home-active .wb-header-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--wb-accent);font-size:13px;font-weight:950;letter-spacing:.02em}
body.wb-home-active .wb-topbar-actions{border:1px solid var(--wb-line);border-radius:999px;padding:6px 8px;gap:10px;min-width:190px;max-width:360px;box-shadow:var(--wb-home-shadow);font-size:12px}
body.wb-home-active .wb-user-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--wb-sidebar);color:#fff;font-weight:950;font-size:13px;letter-spacing:.02em}
body.wb-home-active .wb-user-copy strong{font-size:13px;line-height:1.2;color:var(--wb-ink);font-weight:900}
body.wb-home-active .wb-user-copy small{font-size:11px;line-height:1.25;font-weight:700}
body.wb-home-active .wb-topbar-actions button{height:30px;min-height:30px;border:1px solid rgba(15,23,42,.1);border-radius:999px;padding:0 11px;color:var(--wb-ink);font-size:12px;font-weight:900}
body.wb-home-active .wb-content{padding:6px 8px;flex:1;min-height:0;overflow:hidden}
body.wb-home-active #wbMessage{position:fixed;right:20px;top:70px;z-index:30;max-width:min(540px,calc(100vw - 40px));box-shadow:var(--wb-home-shadow)}
#wbHome{height:100%;min-height:0;padding:4px;border:0;border-radius:0;overflow:auto;background:transparent;color:var(--wb-ink);font-size:16px;scrollbar-gutter:stable}
#wbHome .wb-home-dashboard{display:grid;gap:24px;width:100%;padding-bottom:24px;min-width:0}
#wbHome .wb-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}
#wbHome .wb-kpi-grid>article,#wbHome .wb-dashboard-panel{border:1px solid var(--wb-line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.065);min-width:0;overflow:hidden}
#wbHome .wb-kpi-grid>article{display:flex;flex-direction:row;align-items:center;gap:16px;min-height:94px;padding:18px 16px}
#wbHome .wb-home-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:var(--wb-accent-soft);color:var(--wb-accent);font-size:18px;font-weight:950}
#wbHome .wb-home-icon.blue{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-home-icon.purple{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-home-icon.amber{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-home-icon.rose{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-home-icon.cyan{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-home-icon.teal{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-kpi-copy{min-width:0}
#wbHome .wb-kpi-copy>span{display:block;color:var(--wb-muted);font-size:12px;font-weight:700;margin-bottom:3px;line-height:17px}
#wbHome .wb-kpi-copy>strong{display:block;color:var(--wb-ink);font-size:24px;font-weight:900;line-height:1;letter-spacing:-.03em;overflow-wrap:anywhere}
#wbHome .wb-kpi-copy>small{display:block;margin-top:5px;color:var(--wb-muted);font-size:12px;line-height:1.25;font-weight:700}
#wbHome .wb-kpi-copy .wb-amount-lines{font-size:24px;line-height:1}
#wbHome .wb-home-account-kpi,#wbHome .wb-home-plugin-kpi{position:relative;padding-right:154px}
#wbHome .wb-home-account-line{display:flex;align-items:center;gap:8px}
#wbHome .wb-home-account-line strong{font-size:18px;line-height:1.35;font-weight:900;white-space:nowrap}
#wbHome .wb-home-account-line button{min-height:22px;font-size:11px;padding:2px 7px;border-radius:6px}
#wbHome #wbHomeBind,#wbHome .wb-home-plugin-kpi>.wb-button{position:absolute;top:50%;right:16px;transform:translateY(-50%);min-height:26px;padding:4px 10px;border-radius:8px;font-size:12px;font-weight:800;white-space:nowrap;background:var(--wb-accent);border-color:var(--wb-accent);color:#fff}
#wbHome .wb-kpi-copy>.wb-plugin-value{font-size:16px;line-height:1.35;letter-spacing:0}
#wbHome .wb-home-icon-button{min-height:24px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:var(--wb-surface);color:var(--wb-muted);font-size:16px;vertical-align:middle}
#wbHome .wb-home-icon-button:hover{background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:300px 300px;gap:18px;margin:0;align-items:stretch}
#wbHome .wb-home-daily-card,#wbHome .wb-home-ranking-card{display:flex;flex-direction:column;padding:18px;height:300px;margin:0}
#wbHome .wb-home-daily-card{grid-column:1;grid-row:1}
#wbHome .wb-home-ranking-card{grid-column:1;grid-row:2;border-radius:12px}
#wbHome .wb-panel-head{padding:0;border:0;margin:0 0 14px;flex-wrap:nowrap;gap:16px;min-height:24px}
#wbHome .wb-panel-head h3{font-size:16px;font-weight:900;line-height:24px}
#wbHome .wb-daily-chart{flex:1;min-height:220px;height:auto;padding:0;border:1px solid var(--wb-line);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#fff,var(--wb-surface))}
#wbHome .wb-daily-chart>p{font-size:13px;line-height:1.8;color:var(--wb-muted);margin:0;padding:16px}
#wbHome .wb-daily-chart svg{display:block;width:100%;height:100%;overflow:hidden}
#wbHome .wb-daily-chart .wb-daily-value{font-size:10px;font-weight:900;fill:var(--wb-ink)}
#wbHome .wb-daily-chart .wb-daily-date{font-size:8px;fill:var(--wb-muted)}
#wbHome .wb-shop-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:center;flex:1;min-height:222px;min-width:0;padding:0;overflow:hidden}
#wbHome .wb-shop-share{display:grid;justify-items:center;align-content:center;gap:8px;color:var(--wb-muted);font-size:12px;line-height:1.5;min-width:0}
#wbHome .wb-shop-share svg{width:142px;height:142px}
#wbHome .wb-shop-share .wb-share-empty{width:142px;height:142px;border:38px solid var(--wb-line);border-radius:50%}
#wbHome .wb-shop-share p{margin:0}
#wbHome .wb-shop-share strong{font-size:14px;font-weight:900;color:var(--wb-muted)}
#wbHome .wb-shop-share small{font-size:11px}
#wbHome .wb-home-ranking-table{min-width:0;display:grid;gap:4px;overflow:hidden}
#wbHome .wb-home-ranking-header,#wbHome .wb-home-ranking-row{display:grid;grid-template-columns:26px minmax(72px,1fr) 42px 76px 42px 82px;gap:5px;align-items:center;padding:0 4px 4px;min-width:0}
#wbHome .wb-home-ranking-header{color:var(--wb-muted);font-size:10px;font-weight:800;white-space:nowrap}
#wbHome .wb-home-ranking-list{display:grid;gap:4px;align-content:start;max-height:168px;overflow:auto;min-width:0;padding-right:2px}
#wbHome .wb-home-ranking-list>p{font-size:12px;color:var(--wb-muted);line-height:1.7}
#wbHome .wb-home-ranking-row{min-height:30px;padding:4px;border:1px solid var(--wb-line);border-radius:8px;font-size:11px;font-weight:700}
#wbHome .wb-home-ranking-row>span:first-child{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:var(--wb-accent-soft);color:var(--wb-accent);font-weight:900}
#wbHome .wb-home-ranking-row>strong{font-size:12px;font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wbHome .wb-home-ranking-header>span:nth-child(n+3),#wbHome .wb-home-ranking-row>span:nth-child(n+3){text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wb-muted);line-height:1.1}
#wbHome .wb-home-ranking-row .wb-amount-lines{line-height:1.1}
#wbHome .wb-home-side{grid-column:2;grid-row:1 / span 2;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:300px 300px;gap:18px;align-content:stretch;margin:0;min-width:0}
#wbHome .wb-home-task-card{height:300px;display:flex;flex-direction:column;gap:12px;padding:16px 18px 14px}
#wbHome .wb-home-task-card .wb-panel-head{margin:0}
#wbHome .wb-home-task-card h3{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--wb-ink)}
#wbHome .wb-home-task-card h3 small{font-size:12px;font-weight:800;color:var(--wb-muted)}
#wbHome .wb-home-pin{font-size:18px;line-height:1;filter:drop-shadow(0 5px 8px rgba(152,25,181,.16))}
#wbHome .wb-home-task-tools{display:inline-flex;align-items:center;gap:12px;font-size:16px;color:var(--wb-line)}
#wbHome .wb-home-task-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#wbHome .wb-home-task-totals button{display:grid;justify-content:start;gap:2px;min-width:0;padding:8px 9px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#92400e;text-align:left;font-size:11px;font-weight:800;line-height:1.2}
#wbHome .wb-home-task-totals strong{font-size:16px;color:#b45309;line-height:1.1}
#wbHome .wb-pending-list{padding:0;flex:1;min-height:0;overflow:auto;display:grid;align-content:start;gap:6px}
#wbHome .wb-home-pending-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--wb-line)}
#wbHome .wb-home-pending-row:first-child{border:0}
#wbHome .wb-home-pending-row>div:first-child{min-width:0;display:grid;gap:2px}
#wbHome .wb-home-pending-row strong{font-size:12px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wbHome .wb-home-pending-row small{font-size:10px;line-height:1.4;color:#b45309}
#wbHome .wb-home-pending-actions{display:flex;gap:5px}
#wbHome .wb-home-pending-actions button{min-height:24px;padding:0 7px;border-radius:999px;border:1px solid #fde68a;background:#fffbeb;color:#b45309;font-size:11px;font-weight:900;white-space:nowrap}
#wbHome .wb-home-pending-actions button:hover,#wbHome .wb-home-task-totals button:hover{border-color:var(--wb-accent);background:var(--wb-accent-soft);color:var(--wb-accent)}
#wbHome .wb-work-records{padding:0;color:var(--wb-muted);font-size:11px;font-weight:700;line-height:1.4;min-height:15px}
#wbHome .wb-home-quick-card{height:300px;padding:0;display:flex;flex-direction:column}
#wbHome .wb-home-quick-card .wb-panel-head{padding:14px 16px 12px;border-bottom:1px solid var(--wb-line);margin:-12px -10px 0;gap:8px;min-height:0;font-weight:900;color:var(--wb-ink)}
#wbHome .wb-home-quick-card .wb-panel-head:before{content:"";width:6px;height:16px;border-radius:999px;background:var(--wb-accent)}
#wbHome .wb-home-quick-card h3{flex:1}
#wbHome .wb-quick-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;flex:1;min-height:0;align-content:center;padding:14px 0 0}
#wbHome .wb-quick-links>a,#wbHome .wb-quick-links>button{min-height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid var(--wb-line);border-radius:14px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.07);text-decoration:none;padding:0;color:var(--wb-ink);font:13.3333px Arial}
#wbHome .wb-quick-links>a:hover,#wbHome .wb-quick-links>button:hover{border-color:var(--wb-accent);box-shadow:0 16px 30px rgba(152,25,181,.14)}
#wbHome .wb-quick-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--wb-accent);color:#fff;font-size:18px;font-weight:900;box-shadow:0 10px 18px rgba(152,25,181,.24)}
#wbHome .wb-quick-links strong{font-size:13px;font-weight:900;line-height:1.25;text-align:center;white-space:nowrap}
#wbHome .wb-home-analysis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0 0 16px}
#wbHome .wb-home-analysis>article{height:390px;min-height:390px;padding:24px 24px 26px;display:grid;grid-template-rows:auto minmax(230px,1fr);gap:18px}
#wbHome .wb-analysis-trigger{min-height:74px;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:16px;align-items:center;width:100%;padding:0;border:0;background:transparent;color:var(--wb-ink);cursor:pointer;text-align:left;font:13.3333px Arial}
#wbHome .wb-analysis-trigger strong{display:block;font-size:17px;font-weight:900;line-height:1.2;margin-bottom:6px}
#wbHome .wb-analysis-trigger span{display:block;font-size:13px;color:var(--wb-muted);line-height:1.45}
#wbHome .wb-analysis-trigger .wb-home-arrow{font-size:22px;font-weight:900;color:var(--wb-muted)}
#wbHome .wb-home-analysis>article>.wb-home-analysis-result{height:100%;min-height:0;overflow:auto;margin:0;padding:18px;border-radius:8px;border:1px solid var(--wb-accent-soft);background:var(--wb-surface);color:var(--wb-ink);font-size:13px;line-height:1.7;word-break:break-word}
#wbHome .wb-home-analysis-result p{margin:0 0 10px;padding:0;color:inherit;font-size:inherit;line-height:inherit}
#wbHome .wb-home-analysis-result.is-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}
#wbHome .wb-home-query{padding:12px 16px;border:1px solid var(--wb-line);border-radius:12px;background:#fff;font-size:12px}
#wbHome .wb-home-query select{width:170px}
#wbHome .wb-home-query .wb-data-meta{margin:8px 0 0;font-size:12px;color:var(--wb-muted)}
#wbHomeAccountsDialog{width:880px}
.wb-home-authorized-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid var(--wb-line);font-size:13px}
.wb-home-authorized-row small{grid-column:1/-1;color:var(--wb-muted);font-size:12px}
#wbHome button:focus-visible,#wbHome a:focus-visible,body.wb-home-active .wb-nav:focus-visible{outline-color:var(--wb-accent)}
#wbHome ::selection{background:#ecc9f2;color:#461050}
@media(max-width:1360px){#wbHome .wb-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#wbHome .wb-shop-layout{grid-template-columns:minmax(0,1fr);gap:12px;align-content:start;min-height:0}#wbHome .wb-shop-share{grid-template-columns:auto minmax(0,1fr);justify-items:start;gap:12px;text-align:left}#wbHome .wb-shop-share svg,#wbHome .wb-shop-share .wb-share-empty{width:104px;height:104px}#wbHome .wb-shop-share .wb-share-empty{border-width:28px}#wbHome .wb-home-ranking-list{max-height:80px}}
@media(max-width:1000px){#wbHome .wb-home-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none}#wbHome .wb-home-daily-card,#wbHome .wb-home-ranking-card{grid-column:auto;grid-row:auto}#wbHome .wb-home-side{grid-column:auto;grid-row:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:300px 300px}#wbHome .wb-home-analysis{grid-template-columns:minmax(0,1fr)}#wbHome .wb-shop-layout{grid-template-columns:150px minmax(0,1fr);align-content:center}#wbHome .wb-shop-share{grid-template-columns:none;justify-items:center;text-align:center}#wbHome .wb-home-ranking-list{max-height:168px}}
@media(max-width:760px){#wbHome .wb-kpi-grid{grid-template-columns:minmax(0,1fr)}#wbHome .wb-kpi-grid>article{min-height:94px}#wbHome .wb-home-account-kpi,#wbHome .wb-home-plugin-kpi{padding-right:16px}#wbHome #wbHomeBind,#wbHome .wb-home-plugin-kpi>.wb-button{position:static;transform:none;margin-left:auto}#wbHome .wb-home-account-line strong{font-size:16px}#wbHome .wb-kpi-grid>article{gap:12px}#wbHome .wb-shop-layout{grid-template-columns:minmax(0,1fr);align-content:start}#wbHome .wb-shop-share{grid-template-columns:auto minmax(0,1fr);justify-items:start;text-align:left}#wbHome .wb-home-ranking-header,#wbHome .wb-home-ranking-row{grid-template-columns:24px minmax(68px,1fr) 38px 70px 38px 76px;gap:4px}#wbHome .wb-home-ranking-table{overflow-x:auto}#wbHome .wb-home-ranking-header,#wbHome .wb-home-ranking-list{min-width:352px}#wbHome .wb-home-ranking-list{max-height:88px}}
@media(max-width:620px){body.wb-home-active{overflow:auto}body.wb-home-active .wb-shell{display:block;overflow:visible;height:auto;min-height:100dvh}body.wb-home-active .wb-sidebar{height:auto}body.wb-home-active main{overflow:visible}body.wb-home-active .wb-topbar{flex-basis:auto;height:auto;min-height:58px;flex-wrap:wrap;padding:10px 12px}body.wb-home-active .wb-topbar h1{font-size:18px}body.wb-home-active .wb-topbar-actions{gap:8px}body.wb-home-active .wb-content{padding:6px 8px;overflow:visible}#wbHome{height:auto;overflow:visible;scrollbar-gutter:auto}#wbHome .wb-home-dashboard{gap:18px}#wbHome .wb-home-grid{display:grid;gap:18px}#wbHome .wb-home-grid>article,#wbHome .wb-home-side>article{margin:0}#wbHome .wb-home-side{margin:0}#wbHome .wb-quick-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}#wbHome .wb-quick-links>a,#wbHome .wb-quick-links>button{min-height:104px}#wbHome .wb-home-task-card{padding:14px}#wbHome .wb-home-pending-row{grid-template-columns:minmax(0,1fr)}#wbHome .wb-home-analysis>article{padding:18px;grid-template-rows:auto minmax(210px,1fr)}#wbHome .wb-analysis-trigger{grid-template-columns:36px minmax(0,1fr) auto;gap:12px}#wbHome .wb-daily-bars{gap:3px}#wbHome .wb-daily-value{font-size:8px}#wbHome .wb-daily-date{font-size:7px}#wbHome .wb-kpi-copy .wb-amount-lines{font-size:22px}}
