/* Scoped to the home frame. Other ERP pages use their original styles. */
body.panda-home {
    color-scheme: dark;
    --home-ink:#edf7ff; --home-muted:#b9d1e5; --home-line:#185280;
    --home-panel:linear-gradient(155deg,#0d2d4b,#06233d 37%,#041b31 72%,#063457);
    margin:0; padding:0; height:auto; min-height:100vh; overflow-y:auto;
    color:var(--home-ink); background:radial-gradient(ellipse at 60% 0,#082f52,#051c32 42%,#031323 85%);
    font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;
}
.panda-home :where(ul,dl) { margin:0; padding:0; }
.panda-home ul { list-style:none; }
.panda-home a { text-decoration:none; color:inherit; }
.panda-home a:focus-visible,.panda-home button:focus-visible,.home-table-scroll:focus-visible { outline:2px solid #a5ecff; outline-offset:2px; }
.panda-home [hidden] { display:none !important; }
.home-grid { display:grid; grid-template-columns:minmax(0,2.4fr) minmax(272px,1fr); gap:14px; padding:14px 12px 26px 20px; }
.home-primary,.home-side { min-width:0; display:flex; flex-direction:column; gap:13px; }
.home-side { gap:11px; }
.home-panel,.home-hero { min-width:0; border:1px solid var(--home-line); border-radius:15px; }
.home-panel { background:var(--home-panel); box-shadow:inset 0 -4px 14px #0d75a52d,0 3px 9px #0003; }
.home-hero { position:relative; isolation:isolate; display:flex; align-items:center; flex-shrink:0; min-height:121px; overflow:hidden; background:#03162d; }
.home-hero-bg { position:absolute; z-index:-1; inset:0 0 0 auto; width:78%; height:100%; object-fit:cover; object-position:center 14%; mask-image:linear-gradient(90deg,transparent,#000 25%); }
.home-hero-content { min-width:0; padding:10px clamp(18px,2.4vw,37px); }
.home-hero h1 { display:flex; align-items:center; gap:clamp(14px,1.4vw,20px); margin:0 0 9px; line-height:1.08; }
.home-wordmark {
    display:inline-block; flex-shrink:0; padding-inline:2px 5px; color:#fff;
    font-size:clamp(31px,3.45vw,50px); font-weight:900; letter-spacing:.008em;
    transform:skewX(-9deg); filter:drop-shadow(0 2px 2px #000b1b) drop-shadow(0 0 5px #54c6ff50);
}
.home-wordmark span { color:#fff; font:900 1em "Arial Black","Segoe UI",sans-serif; }
@supports (background-clip:text) {
    .home-wordmark { color:transparent; background-clip:text; background-image:linear-gradient(179deg,#fff 0%,#f8fdff 54%,#daf6ff 73%,#8ce4fc 100%); -webkit-text-stroke:.25px #f2fdffbf; }
}
.home-title-detail { border-left:1px solid #bbcfdd; padding-left:clamp(14px,1.4vw,20px); color:#fff; font-size:clamp(18px,2.23vw,33px); font-weight:900; }
.home-title-detail span { display:inline-block; padding-block:2px; transform:skewX(-8deg); text-shadow:0 2px 4px #001120; }
.home-hero ul { display:flex; align-items:center; flex-wrap:wrap; gap:5px 20px; color:#c0efff; font-weight:600; font-size:clamp(11px,1.13vw,15px); }
.home-hero li i { color:#50ebff; margin-right:6px; }

.home-balances { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
.home-balance {
    min-height:110px; padding:13px 16px 10px 22px; display:grid; grid-template-columns:52px minmax(0,1fr) auto;
    column-gap:10px; row-gap:4px; align-items:center;
}
.home-points { background:linear-gradient(125deg,#075181,#062c58 65%,#034477); border-color:#13bafa; box-shadow:inset 0 0 15px #01d2ff73,0 0 7px #00d1ff37; }
.home-ozon { background:linear-gradient(125deg,#5737ac,#241460 61%,#33238f); border-color:#8273ed; box-shadow:inset 0 0 16px #7c60ff86,0 0 7px #7b6aff39; }
.home-balance-icon { font-size:34px; text-align:center; color:#e6f9ff; filter:drop-shadow(0 0 6px #58bcff); }
.home-ozon .home-balance-icon { color:#f3eaff; filter:drop-shadow(0 0 6px #a88aff); }
.home-balance h2 { margin:0 0 3px; color:var(--home-ink); font-size:15px; line-height:1.23; font-weight:650; }
.home-amount { font-size:clamp(20px,2.1vw,31px); line-height:1.17; font-weight:750; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.home-balance p,.home-balance #ozonSyncMessage { grid-column:1/-1; margin:1px 0 0; color:#e0efff; font-size:12px; line-height:1.44; overflow-wrap:anywhere; }
#ozonSyncMessage:empty { display:none; }
.home-balance-actions { display:flex; flex-direction:column; gap:5px; }
.panda-home .home-pill { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; gap:4px; min-height:28px; padding:3px 11px; border-radius:999px; border:1px solid #41a3d883; background:#1675a577; color:#eaf9ff; font-size:13px; }
.home-ozon .home-pill { background:#7969c355; border-color:#afa2ff75; }
.home-pill:hover:not(:disabled) { filter:brightness(1.22); }
.home-pill:disabled { opacity:.7; cursor:not-allowed; }
.home-balance-details { grid-column:1/-1; padding:12px 16px; }
.home-balance-details h2 { color:var(--home-ink); font-size:16px; margin:0 0 5px; }
.home-balance-details p { color:var(--home-muted); margin:0 0 10px; }
.home-table-scroll { overflow-x:auto; border-radius:6px; }
.home-balance-details table { width:100%; min-width:438px; table-layout:fixed; border-collapse:collapse; }
.home-balance-details th,.home-balance-details td { text-align:left; padding:7px 9px; border-bottom:1px solid #24445e; overflow-wrap:anywhere; }
.home-balance-details th { background:#133c5b; color:#def2ff; }
.home-balance-details th:last-child { width:80px; }
.home-balance-details td small { display:block; color:var(--home-muted); }
.panda-home .ozon-row-sync { border-color:#5bb8ed; color:#d2f0ff; white-space:nowrap; }
.panda-home .ozon-row-sync:hover { background:#1e6a9b; color:#fff; }

.home-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.panda-home .home-metric { min-height:79px; display:flex; align-items:center; gap:clamp(8px,1.3vw,18px); padding:9px clamp(8px,1.25vw,22px); border-color:#1980b4; box-shadow:inset 0 -5px 16px #13b9ed55,0 2px 9px #0004; }
.panda-home .home-metric:hover { border-color:#83e2ff; background:#0a3656; }
.home-metric i { flex-shrink:0; color:var(--mark); font-size:clamp(24px,2.6vw,34px); filter:drop-shadow(0 0 6px var(--glow)); }
.home-metric-cyan { --mark:#7bddff; --glow:#06aef2; }
.home-metric-gold { --mark:#ffd06e; --glow:#ad7122; }
.home-metric-coral { --mark:#ff8eae; --glow:#eb5077; }
.home-metric-purple { --mark:#c995ff; --glow:#944aff; }
.home-metric span { min-width:0; font-size:14px; font-weight:600; }
.home-metric strong { display:block; margin-top:3px; font-size:clamp(22px,2.15vw,30px); line-height:1.15; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#orderStatsMeta { margin:5px 1px 0; color:var(--home-muted); font-size:12px; line-height:1.32; }
.home-analysis { display:grid; grid-template-columns:minmax(0,1.77fr) minmax(0,1fr); gap:13px; }
.home-trend,.home-stores { min-height:195px; padding:11px 13px 12px; }
.home-panel-heading { display:flex; align-items:center; justify-content:space-between; min-width:0; gap:8px; }
.home-panel-title { display:flex; align-items:center; gap:8px; margin:0; color:var(--home-ink); font-size:18px; line-height:1.24; font-weight:720; }
.home-panel-title i { color:#b5edff; filter:drop-shadow(0 0 3px #419ccc); }
.panda-home .home-more { color:#d5e8f7; font-size:13px; white-space:nowrap; padding:3px 0 3px 5px; }
.panda-home .home-more:hover { color:#71e4ff; text-decoration:underline; }
.trend-plot { position:relative; display:grid; place-items:center; width:100%; min-width:0; height:139px; margin-top:9px; color:var(--home-muted); }
.home-store-summary { background:#153e5c7d; border:1px solid #245171; border-radius:12px; margin-top:12px; padding:12px; }
.home-store-summary b { color:#c9e5f6; font-size:13px; font-weight:650; }
.home-store-summary i { color:#75d7ff; margin-right:3px; }
.home-store-summary dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); text-align:center; margin:14px -2px 8px; }
.home-store-summary dl > div { display:flex; flex-direction:column-reverse; justify-content:flex-end; min-width:0; padding-inline:3px; }
.home-store-summary dl > div + div { border-left:1px solid #63829a; }
.home-store-summary dd { margin:0; font-size:clamp(21px,1.9vw,29px); line-height:1; font-weight:750; overflow-wrap:anywhere; }
.home-store-summary dt { margin-top:7px; color:#e4f4ff; font-size:13px; font-weight:500; }

.home-announcements { padding:9px 18px 13px; background:linear-gradient(150deg,#102f4d,#062541 44%,#04253f 78%,#084363); }
.home-announcements .home-panel-heading { margin:0 4px 6px; }
.home-announcements li { display:grid; align-items:center; grid-template-columns:58px minmax(0,1fr) auto; gap:11px; min-height:34px; border-top:1px solid #2a4d6a; padding:4px 3px 4px 9px; overflow-wrap:anywhere; }
.home-badge { justify-self:start; min-width:48px; text-align:center; border-radius:999px; padding:2px 8px; color:#fff; font-weight:650; font-size:12px; }
.home-badge-green { background:#367414; }
.home-badge-amber { background:#995500; }
.home-badge-violet { background:#563cbd; }
.home-badge-blue { background:#116bb0; }
.home-announcements time { white-space:nowrap; color:#d0e3f3; font-size:13px; }
.home-side .home-panel { padding:10px 16px; border-color:#167eb0; }
.home-side .home-shortcuts { border-color:#11c9f5; box-shadow:inset 0 0 18px #0a9bd05f,0 0 11px #04aef450; }
.home-shortcuts .home-panel-title { margin-bottom:10px; }
.home-shortcut-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 9px; }
.panda-home .home-shortcut-grid a { min-width:0; min-height:67px; border:1px solid #215679; border-radius:10px; background:linear-gradient(155deg,#1a4664,#0a2b4a); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:7px; padding:4px 1px; font-size:13px; font-weight:600; text-align:center; }
.panda-home .home-shortcut-grid a:hover { border-color:#6cdfff; background:#174c72; }
.home-shortcut-grid i { font-size:25px; color:#e2f3ff; }
#homeShortcutStatus { margin:8px 0 0; color:#e2efff; font-size:12px; }
.home-help,.home-contact { box-shadow:inset 0 -7px 18px #078fb84f,0 2px 7px #0004; }
.home-help .home-panel-heading,.home-contact .home-panel-title { margin-bottom:8px; }
.home-help li a { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:5px 6px; border-top:1px solid #2a4c68; min-height:29px; }
.home-help li a:hover { color:#98ebff; background:#13436372; }
.home-help li small { background:#153b58; border-radius:4px; padding:1px 5px; white-space:nowrap; color:#d2eaff; }
.panda-home .home-download { display:flex; align-items:center; gap:7px; min-height:29px; padding:4px 6px 0; color:#8bea76; font-weight:700; border-top:1px solid #2a4c68; }
.home-download span { flex:1; }
.panda-home .home-download:hover { color:#a4ff93; text-decoration:underline; }
.home-contact li { margin:5px 6px 0; display:flex; align-items:baseline; flex-wrap:wrap; column-gap:4px; overflow-wrap:anywhere; }
.home-contact li i { color:#c2dbe9; width:20px; }
.home-contact li a:hover { text-decoration:underline; }
.home-side .home-mini { padding:10px 16px 0; overflow:hidden; }
.home-mini-scene { position:relative; isolation:isolate; height:204px; display:flex; justify-content:center; align-items:flex-start; padding-top:13px; margin:0 -16px; background:#05243d; }
.home-mini-bg { position:absolute; z-index:-1; inset:0; width:100%; height:100%; object-fit:cover; object-position:center bottom; }
.home-qr { display:block; background:#fff; object-fit:contain; border-radius:12px; box-shadow:0 2px 13px #168df053; width:148px; height:148px; }

@media (max-width:1095px) {
    .home-grid { padding-left:13px; gap:12px; }
    .home-balance { grid-template-columns:38px minmax(0,1fr) auto; padding-inline:11px; column-gap:7px; }
    .home-balance-icon { font-size:28px; }
    .home-side .home-panel { padding-inline:12px; }
    .home-mini-scene { margin-inline:-12px; }
}
@media (max-width:930px) {
    .home-grid { grid-template-columns:minmax(0,1fr); padding-inline:14px; }
    .home-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media (max-width:670px) {
    .home-grid { padding:11px 10px 18px; gap:11px; }
    .home-primary { gap:10px; }
    .home-hero { min-height:126px; }
    .home-hero-bg { width:72%; object-position:right center; mask-image:linear-gradient(90deg,transparent,#0009 62%,#000e); }
    .home-hero h1 { gap:5px; flex-direction:column; align-items:flex-start; margin-bottom:7px; }
    .home-title-detail { border:0; padding:0; }
    .home-hero ul { gap:3px 9px; }
    .home-balances,.home-analysis,.home-side { grid-template-columns:minmax(0,1fr); gap:10px; }
    .home-balance { min-height:103px; }
    .home-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .panda-home .home-metric { min-height:68px; padding-inline:11px; }
    .home-stores { min-height:150px; }
    .home-announcements { padding-inline:11px; }
    .home-announcements li { grid-template-columns:41px minmax(0,1fr); gap:3px 7px; padding:6px 0; }
    .home-announcements time { grid-column:2; font-size:12px; }
    .home-badge { min-width:0; padding-inline:6px; }
    .panda-home .home-shortcut-grid a { min-height:61px; }
}
@media (max-width:520px) {
    .home-balance-details { padding:10px 12px; }
    .home-balance-details table { min-width:0; }
    .home-balance-details th,.home-balance-details td { padding:6px 4px; font-size:12px; }
    .home-balance-details th:first-child { width:24%; }
    .home-balance-details th:nth-child(2) { width:24%; }
    .home-balance-details th:last-child { width:42px; }
    .panda-home .ozon-row-sync { padding-inline:3px; font-size:12px; min-height:27px; }
}
@media (forced-colors: active) {
    .home-wordmark,.home-wordmark span,.home-title-detail { color:CanvasText; background:none; -webkit-text-stroke:0; filter:none; }
}
