/* Light theme. The dark palette (default) lives in app.css :root; this file only overrides the variables and adds the toggle. */
[data-theme="light"]{
color-scheme:light;
--bg-main:#f1f5f9;--bg-card:#ffffff;--bg-surface:#f8fafc;--border-color:#e2e8f0;--text-primary:#0f172a;--text-muted:#586577;
--purple:#5b4bd6;--purple2:#7c3aed;--green:#065f46;--red:#b91c1c;--yellow:#92400e;--shadow:0 12px 32px rgba(15,23,42,.08);
--text-soft:#334155;--text-strong:#0f172a;--red-text:#b91c1c;--pink-text:#be185d;--green-text:#065f46;--yellow-text:#92400e;--purple-text:#5b4bd6;--blue-text:#0369a1;
--input-bg:#ffffff;--code-bg:#f1f5f9;--thead-bg:#f1f5f9;--ghost-bg:#f1f5f9;--chip-bg:#e2e8f0;--hover-purple:#f5f3ff;
--red-bg:#fee2e2;--yellow-bg:#fef3c7;--green-bg:#d1fae5;--purple-bg:#ede9fe;--blue-bg:#e0f2fe;--pink-bg:#fce7f3;
--line-strong:#cbd5e1;--purple-line:#c4b5fd;--purple-line2:#a78bfa;--muted2:#586577;
--sidebar-bg:rgba(255,255,255,.96);--topbar-bg:rgba(248,250,252,.9);--panel-a:rgba(255,255,255,.99);--panel-b:rgba(248,250,252,.99);
--overlay-soft:rgba(241,245,249,.75);--hover-bg:rgba(15,23,42,.035);--glow:#e8edfa;--glow2:#e8edfa;--bg-popover:#ffffff;
--shadow-pop:0 18px 40px rgba(15,23,42,.18);--green-line:#6ee7b7;--yellow-line:#fcd34d;
--b-red:#b91c1c;--b-orange:#c2410c;--b-yellow:#854d0e;--b-green:#065f46;--b-blue:#1d4ed8;--b-purple:#6d28d9;--b-sky:#0369a1;--b-gray:#475569;
}
/* controls that app.css paints for the dark theme only */
[data-theme="light"] .sidebar nav a{color:#475569}
[data-theme="light"] .sidebar nav a:hover,[data-theme="light"] .sidebar nav a.active{color:#0f172a}
[data-theme="light"] .primary,[data-theme="light"] .brand-mark,[data-theme="light"] .login-logo{color:#fff}
[data-theme="light"] .brand-logo,[data-theme="light"] .login-brand-logo{filter:none}
[data-theme="light"] input,[data-theme="light"] select,[data-theme="light"] textarea{color:var(--text)}
[data-theme="light"] input::placeholder{color:#94a3b8}
[data-theme="light"] .ghost:hover,[data-theme="light"] .button-link:hover{background:#e2e8f0}
[data-theme="light"] .metric.accent{background:linear-gradient(145deg,rgba(91,75,214,.1),var(--panel))}
[data-theme="light"] .login-card{background:rgba(255,255,255,.96)}
[data-theme="light"] .seller-tabs a.active,[data-theme="light"] .seller-tabs a:hover{color:#3b2fa0}
[data-theme="light"] ::-webkit-scrollbar-thumb{background:#cbd5e1}

/* smooth switch: .theme-anim is set for a moment by theme.js */
html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:background-color .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease!important}

/* the toggle button */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;height:38px;padding:0 11px;border-radius:10px;border:1px solid var(--line);background:var(--ghost-bg);color:var(--text);cursor:pointer;font:inherit;font-size:16px;line-height:1}
.theme-toggle:hover{border-color:var(--purple)}
.theme-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.theme-toggle .tt-light{display:none}
[data-theme="light"] .theme-toggle .tt-dark{display:none}
[data-theme="light"] .theme-toggle .tt-light{display:inline}
.theme-toggle-float{position:fixed;top:16px;right:16px;z-index:50}
.portal-sidebar-foot .theme-toggle{width:100%;margin-bottom:8px}

/* Ozon block of the side menu: brand mark on the section title, indented sub-items, assembly badge */
.sidebar nav .nav-brand-ozon{display:flex;align-items:center;gap:8px}
.sidebar nav .nav-brand-ozon::before{content:"";width:18px;height:18px;flex:none;border-radius:5px;background:#005bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cellipse cx='9' cy='9' rx='4.6' ry='5.2' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/18px 18px no-repeat;box-shadow:0 2px 8px rgba(0,91,255,.35)}
.sidebar nav a.nav-sub{padding-left:22px}
.sidebar nav a.nav-sub.active{box-shadow:inset 3px 0 #005bff}
.sidebar nav a.nav-sub .nav-badge{margin-left:auto;font-style:normal;font-size:11px;font-weight:800;line-height:1;min-width:20px;padding:4px 7px;border-radius:99px;text-align:center;background:#005bff;color:#fff;box-shadow:0 2px 8px rgba(0,91,255,.35)}
