﻿:root {
  --bg: #06111f;
  --panel: rgba(13, 29, 49, 0.72);
  --panel-strong: rgba(16, 38, 64, 0.92);
  --line: rgba(75, 126, 178, 0.24);
  --text: #f7fbff;
  --muted: #8ea8c8;
  --cyan: #20d7ff;
  --blue: #258dff;
  --violet: #8b5cf6;
  --green: #21f3a5;
  --orange: #ff9d2e;
  --red: #ff5c7c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(32, 215, 255, .18), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, .16), transparent 26%),
    linear-gradient(135deg, #03101e 0%, #071426 46%, #04101c 100%);
  overflow: hidden;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  padding: 22px 16px;
  background: linear-gradient(180deg, rgba(3, 16, 31, .96), rgba(5, 14, 26, .98));
  border-right: 1px solid rgba(75, 126, 178, .22);
  box-shadow: 18px 0 80px rgba(0, 0, 0, .35);
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #03101e;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-weight: 900;
  box-shadow: 0 0 30px rgba(32, 215, 255, .42);
}

.brand-mark.big {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  margin: 0 auto 12px;
}

.brand-title {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .2px;
}

.brand-sub,
.topbar p,
.muted {
  color: var(--muted);
}

.ai-webhook-cell {
  min-width: 320px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-webhook-input {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.ai-webhook-input span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.ai-webhook-input input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(32, 215, 255, .35);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  outline: none;
}

body.light-theme .ai-webhook-input input {
  color: #0b2038;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(37, 141, 255, .28);
}

.ai-report-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(32, 215, 255, .08), rgba(139, 92, 246, .08));
}

.ai-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ai-report-metric {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.ai-report-metric span,
.ai-report-metric small {
  color: var(--muted);
}

.ai-report-metric strong {
  font-size: 24px;
}

.ai-report-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ai-report-columns h4 {
  margin: 0 0 10px;
}

.ai-report-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.ai-report-line span {
  color: var(--muted);
  text-align: right;
}

body.light-theme .ai-report-card,
body.light-theme .ai-report-metric {
  background: rgba(255, 255, 255, .7);
}

@media (max-width: 1200px) {
  .ai-report-grid,
  .ai-report-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ai-report-grid,
  .ai-report-columns {
    grid-template-columns: 1fr;
  }
}

#nav {
  display: grid;
  gap: 13px;
}

.nav-btn {
  height: 58px;
  width: 100%;
  border: 1px solid rgba(67, 111, 161, .35);
  border-radius: 18px;
  color: #edf7ff;
  background:
    linear-gradient(90deg, var(--accent), transparent 2.5%),
    linear-gradient(135deg, rgba(19, 45, 76, .96), rgba(9, 25, 43, .9));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nav-btn:hover {
  transform: translateX(2px) scale(1.01);
  border-color: color-mix(in srgb, var(--accent), white 20%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent), transparent 72%);
}

.nav-btn.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 28px color-mix(in srgb, var(--accent), transparent 80%), 0 0 34px color-mix(in srgb, var(--accent), transparent 72%);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--accent);
  background: rgba(2, 12, 24, .74);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 35%);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.sidebar-card {
  margin-top: 30px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(13, 29, 49, .72);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.sidebar-card span,
.sidebar-card small {
  color: var(--muted);
}

.account-status-card {
  margin-top: 14px;
}

.account-status-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.account-status-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(4, 14, 26, .45);
  border: 1px solid rgba(75, 126, 178, .14);
}

.account-market {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  color: #eaf8ff;
  border: 1px solid rgba(32, 215, 255, .35);
}

.account-market.wb {
  border-color: rgba(139, 92, 246, .5);
  color: #dacdff;
}

.account-market.ozon {
  border-color: rgba(37, 141, 255, .5);
  color: #cde5ff;
}

.account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.api-state {
  grid-column: 2;
  font-size: 11px;
}

.api-state.ok {
  color: var(--green);
}

.api-state.warn {
  color: var(--orange);
}

.app {
  margin-left: 270px;
  min-height: 100vh;
  padding: 22px 26px 32px;
  overflow-y: auto;
  max-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar h1 {
  margin: 0 0 4px;
  font-size: 32px;
  letter-spacing: -.5px;
}

.topbar p {
  margin: 0;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.global-ai-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(33, 243, 165, .5);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .95), rgba(33, 243, 165, .28) 35%, rgba(32, 215, 255, .22) 72%);
  color: #063b4b;
  font-weight: 1000;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(33, 243, 165, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.global-ai-btn:hover,
.global-ai-btn.active {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(32, 215, 255, .72);
  box-shadow: 0 18px 42px rgba(32, 215, 255, .24), 0 0 0 4px rgba(33, 243, 165, .12);
}

.section-help-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 215, 255, .42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .20), transparent 34%),
    linear-gradient(135deg, rgba(32, 215, 255, .22), rgba(139, 92, 246, .18));
  color: #e9fbff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(32, 215, 255, .12), 0 12px 30px rgba(32, 215, 255, .15);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.section-help-btn:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(32, 215, 255, .28), 0 16px 42px rgba(32, 215, 255, .24);
}

.glass-btn {
  border: 1px solid rgba(32, 215, 255, .42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 63, 98, .74), rgba(10, 26, 45, .88));
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(32, 215, 255, .12);
}

.glass-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 34px rgba(32, 215, 255, .28);
}

.glass-btn.secondary {
  border-color: rgba(159, 179, 200, .32);
  background: linear-gradient(135deg, rgba(22, 39, 61, .68), rgba(8, 19, 34, .88));
}

.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 8px;
}

.receipt-settings-box {
  padding: 14px;
  border: 1px solid rgba(75, 126, 178, .18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 215, 255, .10), transparent 34%),
    rgba(6, 17, 31, .30);
}

.receipt-settings-box h3 {
  margin: 0 0 8px;
}

.receipt-total {
  width: fit-content;
  margin-bottom: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #f4fbff;
  font-weight: 950;
  background: rgba(32, 215, 255, .14);
  border: 1px solid rgba(32, 215, 255, .34);
}

.receipt-settings-box input {
  max-width: 150px;
}

.receipt-input-label {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.theme-settings-card {
  max-width: 720px;
  padding: 16px 18px;
  align-self: start;
  min-height: 0;
}

.theme-settings-card h2 {
  margin-bottom: 6px;
}

.theme-settings-card .theme-switch {
  margin: 10px 0 6px;
}

.theme-settings-card .glass-btn {
  min-height: 38px;
  padding: 9px 14px;
}

.telegram-bot-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.telegram-token-field {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: var(--text);
}

.telegram-token-field input {
  min-height: 42px;
}

.telegram-token-field small {
  color: var(--muted);
  font-weight: 800;
}

.telegram-settings-card .glass-btn {
  min-height: 42px;
  white-space: nowrap;
}

body.theme-light {
  --bg: #edf5ff;
  --panel: rgba(255, 255, 255, .64);
  --panel-strong: rgba(255, 255, 255, .88);
  --line: rgba(86, 126, 186, .18);
  --text: #10233f;
  --muted: #637593;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, .98), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(185, 211, 255, .68), transparent 32%),
    radial-gradient(circle at 38% 58%, rgba(216, 255, 247, .64), transparent 30%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 45%, #e9f2ff 100%);
}

body.theme-light::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, .78) 23%, transparent 29%),
    linear-gradient(128deg, transparent 0 68%, rgba(137, 199, 255, .22) 72%, transparent 78%),
    radial-gradient(ellipse at 74% 76%, rgba(255, 220, 251, .42), transparent 36%);
  filter: blur(.2px);
}

body.theme-light .sidebar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(239, 248, 255, .48)),
    radial-gradient(circle at 12% 18%, rgba(124, 236, 255, .28), transparent 36%),
    radial-gradient(circle at 90% 52%, rgba(196, 155, 255, .22), transparent 34%);
  border-right: 1px solid rgba(111, 153, 217, .28);
  box-shadow: 22px 0 70px rgba(81, 115, 164, .18), inset -1px 0 0 rgba(255, 255, 255, .62);
  backdrop-filter: blur(26px);
}

body.theme-light .brand {
  margin-bottom: 24px;
}

body.theme-light .brand-mark {
  color: #10233f;
  background:
    radial-gradient(circle at 32% 25%, #ffffff 0 10%, transparent 32%),
    linear-gradient(135deg, #42d7ff, #8b6dff 58%, #ffc3f3);
  box-shadow: 0 12px 28px rgba(92, 126, 210, .28), inset 0 1px 0 rgba(255, 255, 255, .78);
}

body.theme-light .brand-title,
body.theme-light .topbar h1,
body.theme-light .card h2,
body.theme-light .card h3,
body.theme-light .profile-chip-text strong,
body.theme-light .account-name,
body.theme-light strong {
  color: #10233f;
}

body.theme-light .brand-sub,
body.theme-light .topbar p,
body.theme-light .muted,
body.theme-light .sidebar-card span,
body.theme-light .sidebar-card small,
body.theme-light .profile-chip-text small {
  color: #6b7a98;
}

body.theme-light .nav-btn {
  height: 60px;
  color: #10233f;
  border: 1px solid rgba(116, 153, 211, .34);
  border-radius: 20px;
  background:
    linear-gradient(90deg, var(--accent), transparent 2.3%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .95), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(231, 242, 255, .42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -10px 28px rgba(130, 178, 255, .10),
    0 12px 28px rgba(72, 105, 160, .14);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

body.theme-light .nav-btn:hover {
  transform: translateX(2px) scale(1.012);
  border-color: color-mix(in srgb, var(--accent), white 22%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 38px rgba(94, 133, 196, .2),
    0 0 26px color-mix(in srgb, var(--accent), transparent 70%);
}

body.theme-light .nav-btn.active {
  border-color: color-mix(in srgb, var(--accent), white 8%);
  background:
    linear-gradient(90deg, var(--accent), transparent 2.4%),
    radial-gradient(circle at 24% 46%, color-mix(in srgb, var(--accent), transparent 78%), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(228, 242, 255, .58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 22px color-mix(in srgb, var(--accent), transparent 88%),
    0 0 28px color-mix(in srgb, var(--accent), transparent 70%),
    0 18px 38px rgba(78, 111, 177, .18);
}

body.theme-light .nav-icon {
  color: var(--accent);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, .96), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(216, 231, 252, .46));
  border-color: color-mix(in srgb, var(--accent), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 7px 17px color-mix(in srgb, var(--accent), transparent 78%);
}

body.theme-light .sidebar-card,
body.theme-light .account-status-row,
body.theme-light .profile-chip,
body.theme-light .card,
body.theme-light .modal-card,
body.theme-light .auth-card,
body.theme-light .item {
  border-color: rgba(114, 153, 210, .24);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .92), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(235, 245, 255, .50));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 18px 48px rgba(74, 105, 158, .14);
  backdrop-filter: blur(22px);
}

body.theme-light .app {
  background:
    radial-gradient(circle at 74% 4%, rgba(168, 216, 255, .18), transparent 36%),
    radial-gradient(circle at 28% 100%, rgba(206, 255, 247, .18), transparent 34%);
}

body.theme-light .glass-btn {
  color: #10233f;
  border-color: rgba(74, 154, 255, .40);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .95), transparent 44%),
    linear-gradient(135deg, rgba(235, 248, 255, .82), rgba(211, 232, 255, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 24px rgba(76, 127, 198, .16);
}

body.theme-light .glass-btn:hover,
body.theme-light .glass-btn.active-filter {
  border-color: #35c6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 0 24px rgba(32, 215, 255, .28), 0 14px 30px rgba(76, 127, 198, .2);
}

body.theme-light .glass-btn.secondary {
  color: #2a3851;
  border-color: rgba(139, 157, 189, .30);
  background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(234,241,253,.48));
}

body.theme-light select,
body.theme-light input,
body.theme-light textarea,
body.theme-light input[type="date"] {
  color: #10233f;
  border-color: rgba(117, 154, 211, .34);
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

body.theme-light select option {
  background: #f7fbff;
  color: #10233f;
}

body.theme-light .table th {
  color: #61718e;
}

body.theme-light .table td {
  border-bottom-color: rgba(111, 153, 217, .18);
}

body.theme-light .table.interactive tbody tr:hover {
  background: rgba(32, 157, 255, .08);
}

body.theme-light .table.interactive tbody tr.selected {
  background: rgba(32, 157, 255, .13);
  outline-color: rgba(32, 157, 255, .34);
}

body.theme-light .table tr.order-group-row td {
  color: #10233f;
  background: linear-gradient(90deg, rgba(32, 215, 255, .16), rgba(139, 92, 246, .08), transparent);
}

body.theme-light .table td.editable-number {
  color: #10233f;
  text-shadow: none;
}

body.theme-light .editable-number:hover,
body.theme-light .editable-text:hover {
  color: #06111f;
  background: rgba(32, 157, 255, .10);
}

body.theme-light .pill {
  color: #0e2a46;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 18px rgba(75, 118, 183, .12);
}

body.theme-light .pill.ok {
  color: #06111f;
  background: linear-gradient(135deg, rgba(33, 243, 165, .26), rgba(226, 255, 245, .70));
}

body.theme-light .pill.info {
  color: #06111f;
  background: linear-gradient(135deg, rgba(32, 199, 255, .22), rgba(226, 247, 255, .78));
}

body.theme-light .pill.warning {
  color: #06111f;
  background: linear-gradient(135deg, rgba(255, 180, 67, .28), rgba(255, 246, 226, .76));
}

body.theme-light .pill.danger {
  color: #06111f;
  background: linear-gradient(135deg, rgba(255, 92, 124, .22), rgba(255, 238, 243, .76));
}

body.theme-light .pill.violet {
  color: #06111f;
  background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(245, 241, 255, .82));
}

body.theme-light .chart {
  border-top-color: rgba(111, 153, 217, .20);
}

body.theme-light .modal-backdrop {
  background: rgba(232, 242, 255, .68);
}

body.theme-light .section-help-btn {
  color: #0d2a4a;
  border-color: rgba(32, 178, 255, .48);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .92), transparent 34%),
    linear-gradient(135deg, rgba(32, 215, 255, .24), rgba(139, 92, 246, .12));
  box-shadow: 0 10px 28px rgba(71, 132, 206, .20);
}

body.theme-light .section-help-modal {
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.98), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(228,242,255,.94));
  color: #10233f;
}

body.theme-light .section-help-row {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(112, 151, 207, .28);
}

body.theme-light .section-help-row strong {
  color: #10233f;
}

body.theme-light .section-help-row span {
  color: #4f6384;
}

body.theme-light .account-market {
  color: #17466f;
  background: rgba(255, 255, 255, .66);
}

body.theme-light .api-state.ok {
  color: #0aa86e;
}

body.theme-light .api-state.warn {
  color: #d77a00;
}

body.theme-light .brand-sub,
body.theme-light .topbar p,
body.theme-light .muted,
body.theme-light .sidebar-card span,
body.theme-light .sidebar-card small,
body.theme-light .profile-chip-text small {
  color: #4f6384;
}

body.theme-light .nav-btn span:not(.nav-icon),
body.theme-light .sidebar-card strong,
body.theme-light .card,
body.theme-light .item,
body.theme-light .table,
body.theme-light .table td,
body.theme-light .product-name-cell,
body.theme-light .product-name-cell div,
body.theme-light .editable-text,
body.theme-light .editable-number,
body.theme-light .kpi-value,
body.theme-light .kpi-label,
body.theme-light .kpi-foot,
body.theme-light .attention-text {
  color: #10233f;
}

body.theme-light .table th {
  color: #405577;
  font-weight: 950;
}

body.theme-light .table tbody tr {
  color: #10233f;
}

body.theme-light .link-badges.muted {
  color: #5a6c88;
}

body.theme-light .link-badge {
  color: #14314f;
  border-color: hsl(var(--link-hue, 190) 68% 46% / .36);
  background:
    linear-gradient(135deg, hsl(var(--link-hue, 190) 80% 58% / .26), rgba(255, 255, 255, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 7px 16px hsl(var(--link-hue, 190) 70% 48% / .10);
  text-shadow: none;
}

body.theme-light .link-badge.wb {
  color: #4c238a;
}

body.theme-light .link-badge.ozon {
  color: #064f92;
}

body.theme-light .bar-value {
  color: #153454;
  text-shadow: 0 1px 0 rgba(255,255,255,.92), 0 0 10px rgba(38, 119, 199, .18);
}

body.theme-light .bar-value.ozon-value {
  color: #0475a8;
}

body.theme-light .bar-value.wb-value {
  color: #6d3ad8;
}

body.theme-light .day-label {
  color: #536888;
  font-weight: 850;
}

body.theme-light .icon-gear-btn {
  color: #0d3557;
  border-color: rgba(58, 148, 202, .42);
  background:
    radial-gradient(circle at 36% 22%, rgba(255,255,255,.96), transparent 42%),
    linear-gradient(135deg, rgba(226, 249, 255, .94), rgba(200, 226, 255, .78));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 8px 18px rgba(62, 121, 174, .16),
    0 0 14px rgba(32, 215, 255, .12);
  text-shadow: none;
}

body.theme-light .icon-gear-btn:hover {
  border-color: #22bff4;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 22px rgba(32, 215, 255, .28),
    0 12px 22px rgba(62, 121, 174, .20);
}

body.theme-light .account-status-row {
  background: rgba(255, 255, 255, .76);
  border-color: rgba(102, 145, 202, .25);
}

body.theme-light .api-state.ok {
  color: #007f56;
  font-weight: 950;
}

body.theme-light .api-state.warn {
  color: #a35a00;
  font-weight: 950;
}

body.theme-light .attention-list .attention-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(233, 244, 255, .62));
  border-color: rgba(111, 153, 217, .24);
}

body.theme-light .dashboard-stock-summary {
  border-top-color: rgba(91, 137, 199, .22);
}

body.theme-light .dashboard-stock-title h3,
body.theme-light .dashboard-stock-row strong,
body.theme-light .dashboard-stock-metrics b {
  color: #10233f;
}

body.theme-light .dashboard-stock-title span,
body.theme-light .dashboard-stock-row span,
body.theme-light .dashboard-stock-metrics small,
body.theme-light .dashboard-stock-metrics em {
  color: #4f6384;
}

body.theme-light .dashboard-stock-row {
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(232, 244, 255, .58));
  border-color: rgba(105, 153, 212, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 24px rgba(90, 130, 190, .10);
}

body.theme-light .dashboard-stock-row.wb {
  border-color: rgba(139, 92, 246, .34);
  box-shadow: inset 4px 0 0 rgba(139, 92, 246, .70), 0 12px 24px rgba(139, 92, 246, .10);
}

body.theme-light .dashboard-stock-row.ozon {
  border-color: rgba(0, 155, 230, .34);
  box-shadow: inset 4px 0 0 rgba(0, 174, 255, .72), 0 12px 24px rgba(0, 155, 230, .10);
}

body.theme-light .receipt-settings-box {
  background: linear-gradient(135deg, rgba(255,255,255,.80), rgba(229, 243, 255, .62));
  border-color: rgba(103, 151, 212, .24);
}

body.theme-light .receipt-total {
  color: #06111f;
  background: rgba(32, 215, 255, .18);
  border-color: rgba(32, 157, 255, .36);
  text-shadow: none;
}

body.theme-light .delivery-page-head,
body.theme-light .delivery-kpi-card,
body.theme-light .delivery-store-card {
  color: #10233f;
  border-color: rgba(103, 151, 212, .25);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 255, 255, .96), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(225, 240, 255, .62));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 18px 46px rgba(74, 105, 158, .14);
}

body.theme-light .delivery-page-head h1,
body.theme-light .delivery-store-head h2,
body.theme-light .delivery-store-head > strong,
body.theme-light .delivery-store-actions > strong,
body.theme-light .delivery-section-title h2,
body.theme-light .delivery-kpi-card strong,
body.theme-light .delivery-mini-stat b,
body.theme-light .delivery-product-row strong {
  color: #10233f;
  text-shadow: none;
}

body.theme-light .delivery-page-head p,
body.theme-light .delivery-head-actions,
body.theme-light .delivery-kpi-card span,
body.theme-light .delivery-kpi-card small,
body.theme-light .delivery-section-title span,
body.theme-light .delivery-store-head p,
body.theme-light .delivery-mini-stat span,
body.theme-light .delivery-product-head,
body.theme-light .delivery-product-row small,
body.theme-light .delivery-updated,
body.theme-light .delivery-empty {
  color: #506584;
}

body.theme-light .delivery-kpi-icon {
  background: color-mix(in srgb, var(--delivery-tone, #20d7ff) 15%, rgba(255,255,255,.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 0 18px color-mix(in srgb, var(--delivery-tone, #20d7ff) 20%, transparent);
}

body.theme-light .delivery-store-card {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--market-tone, #20d7ff) 13%, transparent), transparent 42%),
    radial-gradient(circle at 10% 8%, rgba(255,255,255,.94), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.84), rgba(227, 241, 255, .64));
}

body.theme-light .delivery-store-head {
  border-bottom-color: rgba(103, 151, 212, .18);
}

body.theme-light .delivery-market-badge {
  color: #06111f;
  background: color-mix(in srgb, var(--market-tone, #20d7ff) 74%, #10233f 26%);
  border-color: color-mix(in srgb, var(--market-tone, #20d7ff) 52%, transparent);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

body.theme-light .delivery-mini-stat {
  background: color-mix(in srgb, var(--status-tone, #20d7ff) 12%, rgba(255,255,255,.78));
  border-color: color-mix(in srgb, var(--status-tone, #20d7ff) 34%, rgba(85, 128, 188, .22));
}

body.theme-light .delivery-product-list,
body.theme-light .ozon-fbs-table-wrap {
  background: rgba(255,255,255,.54);
  border-color: rgba(103, 151, 212, .22);
}

body.theme-light .delivery-product-head {
  background: rgba(32, 157, 255, .08);
}

body.theme-light .delivery-product-row {
  border-top-color: rgba(103, 151, 212, .16);
}

body.theme-light .delivery-product-placeholder {
  color: #0475a8;
  background: rgba(32, 215, 255, .12);
  border-color: rgba(32, 157, 255, .26);
}

body.theme-light .delivery-toggle-btn {
  color: #10233f;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--market-tone, #20d7ff) 18%, rgba(255,255,255,.94)), rgba(234, 245, 255, .86));
  border-color: color-mix(in srgb, var(--market-tone, #20d7ff) 42%, rgba(103,151,212,.32));
  box-shadow: 0 10px 28px rgba(88, 132, 190, .18);
}

body.theme-light .delivery-qty {
  color: #0d3858;
  background: rgba(32, 157, 255, .14);
  border-color: rgba(32, 157, 255, .36);
}

body.theme-light .delivery-status-badge {
  color: #06111f;
  text-shadow: none;
}

body.theme-light .delivery-status-badge.ok {
  background: rgba(33, 243, 165, .22);
  border-color: rgba(16, 157, 109, .42);
  color: #06111f;
}

body.theme-light .delivery-status-badge.warning {
  background: rgba(255, 184, 74, .25);
  border-color: rgba(198, 128, 20, .42);
  color: #06111f;
}

body.theme-light .delivery-status-badge.danger {
  background: rgba(255, 82, 123, .18);
  border-color: rgba(203, 42, 85, .38);
  color: #06111f;
}

body.theme-light .delivery-status-badge.info {
  background: rgba(32, 215, 255, .20);
  border-color: rgba(13, 143, 191, .38);
  color: #06111f;
}

body.theme-light .pill,
body.theme-light .status-badge,
body.theme-light .delivery-status-badge,
body.theme-light .delivery-market-badge,
body.theme-light .delivery-qty,
body.theme-light .stock-chip,
body.theme-light .account-market,
body.theme-light .link-badge,
body.theme-light .api-state,
body.theme-light .tag,
body.theme-light .badge {
  color: #06111f;
  text-shadow: none;
  font-weight: 950;
}

.hidden {
  display: none !important;
}

.profile-chip {
  min-height: 58px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(75, 126, 178, .28);
  border-radius: 999px;
  color: #d9ecff;
  background:
    radial-gradient(circle at 18% 50%, rgba(32, 215, 255, .14), transparent 45%),
    rgba(13, 29, 49, .62);
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 22px rgba(32, 215, 255, .08);
}

.profile-chip:empty {
  display: none;
}

.profile-chip-text {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.profile-chip-text strong {
  color: #f7fbff;
  font-size: 14px;
}

.profile-chip-text small {
  color: var(--muted);
  font-size: 11px;
}

.profile-neuro-loader {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(32, 215, 255, .28));
}

.neuro-loader-ring,
.neuro-loader-sweep,
.neuro-loader-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.neuro-loader-ring.outer {
  background:
    conic-gradient(from 18deg, rgba(32, 215, 255, .95) 0 42deg, transparent 42deg 82deg, rgba(139, 92, 246, .9) 82deg 124deg, transparent 124deg 225deg, rgba(32, 215, 255, .76) 225deg 286deg, transparent 286deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 59%, #000 61%);
  mask: radial-gradient(circle, transparent 59%, #000 61%);
  opacity: .9;
}

.neuro-loader-ring.inner {
  inset: 7px;
  background:
    conic-gradient(from 210deg, transparent 0 44deg, rgba(32, 215, 255, .92) 44deg 106deg, transparent 106deg 236deg, rgba(139, 92, 246, .86) 236deg 286deg, transparent 286deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 68%);
  mask: radial-gradient(circle, transparent 66%, #000 68%);
}

.neuro-loader-sweep {
  inset: 3px;
  background: conic-gradient(from 0deg, transparent 0 285deg, rgba(32, 215, 255, 0) 285deg, rgba(32, 215, 255, 1) 318deg, rgba(139, 92, 246, .85) 338deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 70%, #000 72%);
  mask: radial-gradient(circle, transparent 70%, #000 72%);
  opacity: 0;
}

.neuro-loader-core {
  inset: 11px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(32, 215, 255, .24), transparent 55%),
    linear-gradient(135deg, rgba(8, 32, 54, .98), rgba(14, 11, 42, .96));
  border: 1px solid rgba(96, 219, 255, .62);
  box-shadow: inset 0 0 18px rgba(32, 215, 255, .24), 0 0 12px rgba(139, 92, 246, .22);
}

.neuro-loader-core span {
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, #3ffff3, #3f8cff 52%, #b26cff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(32, 215, 255, .58);
}

.neuro-loader-core i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #38ddff, #a56cff);
  box-shadow: 0 0 9px rgba(139, 92, 246, .8);
}

body.is-loading .neuro-loader-sweep {
  opacity: 1;
  animation: neuroSweep 1.05s linear infinite;
}

body.is-loading .neuro-loader-ring.inner {
  animation: neuroSweep 2.6s linear infinite reverse;
}

body.is-loading .profile-neuro-loader {
  filter: drop-shadow(0 0 18px rgba(32, 215, 255, .55)) drop-shadow(0 0 16px rgba(139, 92, 246, .24));
}

@keyframes neuroSweep {
  to {
    transform: rotate(360deg);
  }
}

.auth-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(32, 215, 255, .22);
  background:
    radial-gradient(circle at 20% 0%, rgba(32, 215, 255, .18), transparent 36%),
    radial-gradient(circle at 100% 10%, rgba(139, 92, 246, .16), transparent 36%),
    rgba(10, 25, 43, .86);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.04);
  text-align: center;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 8, 18, .72);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(720px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(32, 215, 255, .24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10, 28, 48, .98), rgba(4, 14, 26, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 36px rgba(32, 215, 255, .12);
}

.section-help-modal {
  width: min(760px, 94vw);
}

.section-help-title {
  display: flex;
  gap: 14px;
  align-items: center;
}

.section-help-title h2 {
  margin: 0 0 4px;
}

.section-help-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 74, .46);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .22), transparent 34%),
    linear-gradient(135deg, rgba(255, 184, 74, .28), rgba(32, 215, 255, .12));
  color: #ffd48a;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 14px 38px rgba(255, 184, 74, .16);
}

.section-help-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.section-help-row {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(75, 126, 178, .20);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.section-help-row strong {
  color: #f4fbff;
  font-size: 15px;
}

.section-help-row span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.42;
}

.auth-hint {
  font-size: 12px;
  line-height: 1.5;
}

.auth-consent {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(75, 126, 178, .22);
  border-radius: 14px;
  background: rgba(10, 25, 43, .34);
  font-size: 12px;
  line-height: 1.5;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #20d7ff;
}

.legal-link {
  display: inline;
  padding: 0;
  border: 0;
  color: #71c9ff;
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

body.theme-light .auth-consent {
  border-color: rgba(45, 94, 146, .18);
  background: rgba(240, 247, 255, .72);
}

body.theme-light .legal-link {
  color: #1d649c;
}

.site-legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  padding: 16px 10px 2px;
  color: var(--muted);
  font-size: 11px;
}

.site-legal-footer a {
  color: #8fcfff;
  text-decoration: none;
}

.site-legal-footer a:hover {
  text-decoration: underline;
}

body.theme-light .site-legal-footer a {
  color: #1d649c;
}

.cookie-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(720px, calc(100vw - 44px));
  padding: 17px 18px;
  border: 1px solid rgba(32, 215, 255, .30);
  border-radius: 20px;
  color: var(--text);
  background: rgba(8, 24, 42, .96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(20px);
}

.cookie-notice > div:first-child {
  flex: 1;
}

.cookie-notice strong {
  font-size: 15px;
}

.cookie-notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

body.theme-light .cookie-notice {
  color: #142b47;
  border-color: rgba(37, 141, 255, .22);
  background: rgba(250, 253, 255, .97);
  box-shadow: 0 24px 60px rgba(57, 84, 118, .20);
}

@media (max-width: 700px) {
  .cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-notice-actions {
    justify-content: flex-end;
  }
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  text-align: left;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #cfe2f7;
  font-size: 13px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(75, 126, 178, .32);
  border-radius: 14px;
  background: rgba(2, 12, 24, .64);
  color: #f7fbff;
  padding: 11px 12px;
  outline: none;
  font: inherit;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(32, 215, 255, .68);
  box-shadow: 0 0 0 3px rgba(32, 215, 255, .12);
}

.glass-btn.small {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.glass-btn.danger {
  border-color: rgba(255, 92, 124, .48);
  background: linear-gradient(135deg, rgba(80, 22, 40, .78), rgba(26, 12, 24, .88));
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-gear-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(32, 215, 255, .44);
  border-radius: 14px;
  background: radial-gradient(circle at 35% 25%, rgba(32, 215, 255, .24), rgba(7, 22, 38, .92) 58%);
  color: #f7fbff;
  cursor: pointer;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 24px rgba(32, 215, 255, .14);
}

.icon-gear-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(32, 215, 255, .28);
}

.wide-select {
  min-width: min(680px, 100%);
  flex: 1;
}

.link-settings-list {
  display: grid;
  gap: 10px;
}

.import-products-modal {
  max-width: 860px;
  width: min(860px, calc(100vw - 32px));
}

.import-products-list {
  display: grid;
  gap: 10px;
  max-height: min(560px, 62vh);
  overflow: auto;
  padding-right: 4px;
}

.import-product-row {
  display: grid;
  grid-template-columns: 24px 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(79, 209, 255, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7, 28, 52, .92), rgba(13, 43, 75, .72));
  cursor: pointer;
}

.import-product-row:hover {
  border-color: rgba(79, 209, 255, .42);
  box-shadow: 0 14px 32px rgba(0, 224, 255, .08);
}

.import-product-row input {
  width: 18px;
  height: 18px;
  accent-color: #23d5ff;
}

.import-product-row strong {
  display: block;
  color: #f4fbff;
}

.import-product-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.import-product-row.already-imported {
  background: linear-gradient(135deg, rgba(12, 39, 56, .74), rgba(20, 40, 60, .52));
}

body.theme-light .import-products-modal,
body.theme-light .import-products-modal .card-head h2,
body.theme-light .import-products-modal label,
body.theme-light .import-products-modal strong {
  color: #10233f;
}

body.theme-light .import-products-modal {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .96), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(229, 243, 255, .76));
}

body.theme-light .import-product-row {
  color: #10233f;
  border-color: rgba(103, 151, 212, .24);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, .96), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(230, 244, 255, .62));
}

body.theme-light .import-product-row:hover {
  border-color: rgba(32, 157, 255, .44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 30px rgba(76, 127, 198, .16);
}

body.theme-light .import-product-row strong {
  color: #10233f;
}

body.theme-light .import-product-row small {
  color: #526986;
}

body.theme-light .import-product-row.already-imported {
  background:
    linear-gradient(135deg, rgba(217, 228, 244, .70), rgba(245, 249, 255, .58));
  opacity: .78;
}

.settings-mini-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(32, 215, 255, .14);
  border-radius: 18px;
  background: rgba(4, 16, 30, .46);
}

@media (max-width: 900px) {
  .settings-mini-grid {
    grid-template-columns: 1fr;
  }
}

.settings-market-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.market-add-btn {
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 20px;
  padding: 18px;
  min-height: 128px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 20% 10%, rgba(32, 215, 255, .18), transparent 36%),
    linear-gradient(135deg, rgba(14, 35, 62, .82), rgba(5, 17, 31, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px rgba(0, 0, 0, .20);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.market-add-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 215, 255, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 44px rgba(32, 215, 255, .14);
}

.market-add-btn strong,
.market-add-btn small {
  display: block;
}

.market-add-btn strong {
  margin-top: 14px;
  font-size: 18px;
}

.market-add-btn small {
  margin-top: 6px;
  color: var(--muted);
}

.market-add-btn.wb {
  border-color: rgba(139, 92, 246, .30);
}

.market-add-btn.wb:hover {
  border-color: rgba(139, 92, 246, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 44px rgba(139, 92, 246, .16);
}

body.theme-light .market-add-btn {
  color: #10233f;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .92), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(225, 242, 255, .68));
  border-color: rgba(92, 151, 220, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 16px 32px rgba(103, 151, 212, .16);
}

body.theme-light .market-add-btn small {
  color: #526986;
}

@media (max-width: 760px) {
  .settings-market-actions {
    grid-template-columns: 1fr;
  }
}

.glass-btn.active-filter {
  border-color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(32, 215, 255, .18), 0 0 24px rgba(32, 215, 255, .18);
}

select,
input[type="date"] {
  min-height: 44px;
  border: 1px solid rgba(75, 126, 178, .35);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(13, 31, 54, .95), rgba(5, 18, 32, .95));
  padding: 0 14px;
  outline: none;
}

select option {
  background: #071728;
  color: #f7fbff;
}

select option:checked,
select option:hover {
  background: #12345a;
  color: #ffffff;
}

select:focus,
input[type="date"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(32, 215, 255, .2);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.two-col {
  grid-template-columns: 1.45fr .85fr;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 38, 64, .78), rgba(7, 20, 35, .72)),
    radial-gradient(circle at 95% 0%, rgba(32, 215, 255, .12), transparent 38%);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .23);
  padding: 20px;
  backdrop-filter: blur(18px);
}

.card h2,
.card h3 {
  margin: 0 0 14px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.card-head h2 {
  margin-bottom: 4px;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.auto-refresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(33, 243, 165, .36);
  color: #eaf8ff;
  background: linear-gradient(135deg, rgba(10, 61, 52, .82), rgba(8, 25, 43, .9));
  box-shadow: inset 0 0 18px rgba(33, 243, 165, .08);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.auto-refresh-chip input {
  width: 16px;
  height: 16px;
  accent-color: #21f3a5;
}

.month-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 215, 255, .35);
  color: #eaf8ff;
  background: linear-gradient(135deg, rgba(10, 38, 64, .88), rgba(8, 25, 43, .92));
  box-shadow: inset 0 0 18px rgba(32, 215, 255, .08), 0 0 20px rgba(32, 215, 255, .06);
  font-size: 13px;
  font-weight: 850;
}

.month-select-chip select {
  min-height: 26px;
  padding: 2px 24px 2px 10px;
  border-radius: 999px;
  border-color: rgba(32, 215, 255, .3);
  background-color: rgba(6, 18, 32, .92);
}

.unit-filter-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(75, 126, 178, .18);
  border-radius: 18px;
  background: rgba(5, 18, 32, .42);
}

.filter-chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75, 126, 178, .28);
  color: #dff7ff;
  background: linear-gradient(135deg, rgba(13, 31, 54, .76), rgba(5, 18, 32, .86));
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filter-chip.active {
  border-color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(32, 215, 255, .15), 0 0 20px rgba(32, 215, 255, .14);
}

.filter-chip input {
  accent-color: var(--cyan);
}

body.theme-light .filter-chip {
  color: #10233f;
  border-color: rgba(103, 151, 212, .26);
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(232, 243, 255, .54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

body.theme-light .filter-chip.active {
  color: #06111f;
  border-color: rgba(32, 157, 255, .58);
  background: linear-gradient(135deg, rgba(32, 215, 255, .18), rgba(255,255,255,.80));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 0 22px rgba(32, 157, 255, .18);
}

.unit-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-glass-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(32, 215, 255, .42);
  border-radius: 15px;
  color: #eaf8ff;
  background: radial-gradient(circle at 30% 20%, rgba(32, 215, 255, .26), transparent 52%),
    linear-gradient(135deg, rgba(20, 63, 98, .78), rgba(10, 26, 45, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0, 0, 0, .2);
  cursor: pointer;
  font-size: 18px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.icon-glass-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 28px rgba(32, 215, 255, .22);
}

.unit-expense-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 190, 92, .32);
  border-radius: 16px;
  color: #ffdba3;
  background: linear-gradient(135deg, rgba(255, 169, 62, .12), rgba(12, 25, 43, .48));
  font-weight: 800;
}

.unit-expense-modal {
  width: min(680px, 94vw);
}

.unit-expense-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.unit-expense-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(75, 126, 178, .24);
  border-radius: 18px;
  color: #eaf8ff;
  background: linear-gradient(135deg, rgba(11, 32, 55, .82), rgba(7, 20, 36, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  cursor: pointer;
}

.unit-expense-option.active {
  border-color: rgba(32, 215, 255, .58);
  background: radial-gradient(circle at 15% 10%, rgba(32, 215, 255, .18), transparent 45%),
    linear-gradient(135deg, rgba(12, 50, 76, .86), rgba(7, 25, 42, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 24px rgba(32, 215, 255, .12);
}

.unit-expense-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.unit-expense-option strong,
.unit-expense-option small {
  display: block;
}

.unit-expense-option small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.unit-expense-disabled {
  color: rgba(202, 224, 238, .48);
  background: linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
}

.unit-expense-disabled .editable-number,
.unit-expense-disabled strong {
  color: rgba(202, 224, 238, .56);
}

body.theme-light .icon-glass-btn {
  color: #10233f;
  border-color: rgba(74, 154, 255, .38);
  background: radial-gradient(circle at 30% 20%, rgba(32, 215, 255, .28), transparent 52%),
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(226, 240, 255, .58));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 28px rgba(91, 128, 180, .15);
}

body.theme-light .unit-expense-note {
  color: #70470b;
  border-color: rgba(255, 174, 55, .38);
  background: linear-gradient(135deg, rgba(255, 193, 88, .22), rgba(255,255,255,.72));
}

body.theme-light .unit-expense-option {
  color: #10233f;
  border-color: rgba(103, 151, 212, .28);
  background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(232, 243, 255, .58));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

body.theme-light .unit-expense-option.active {
  border-color: rgba(32, 157, 255, .58);
  background: radial-gradient(circle at 15% 10%, rgba(32, 215, 255, .22), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(218, 237, 255, .68));
}

body.theme-light .unit-expense-disabled {
  color: rgba(34, 53, 78, .52);
  background: rgba(213, 228, 246, .26);
}

body.theme-light .unit-expense-disabled .editable-number,
body.theme-light .unit-expense-disabled strong {
  color: rgba(34, 53, 78, .62);
}

@media (max-width: 760px) {
  .unit-expense-list {
    grid-template-columns: 1fr;
  }
}

.unit-store-list {
  display: grid;
  gap: 16px;
}

.product-audit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.product-audit-hero h2 {
  margin: 5px 0 7px;
}

.product-audit-hero .eyebrow {
  color: #20d7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-refresh-btn {
  min-width: 188px;
  height: 48px;
  padding: 0 20px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(82, 222, 255, .82);
  border-radius: 15px;
  color: #f8fdff;
  background:
    linear-gradient(135deg, rgba(24, 195, 255, .96), rgba(70, 112, 255, .96) 58%, rgba(123, 79, 255, .96));
  box-shadow:
    0 12px 28px rgba(32, 154, 255, .24),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.audit-refresh-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 17px 34px rgba(32, 154, 255, .34),
    0 0 22px rgba(32, 215, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.audit-refresh-btn:active {
  transform: translateY(0);
}

.audit-refresh-btn:disabled {
  cursor: wait;
  opacity: .82;
}

.audit-refresh-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 10px;
  background: rgba(3, 36, 91, .22);
  font-size: 21px;
  line-height: 1;
}

.audit-refresh-btn.loading .audit-refresh-icon {
  animation: audit-refresh-spin .85s linear infinite;
}

@keyframes audit-refresh-spin {
  to { transform: rotate(360deg); }
}

body.theme-light .audit-refresh-btn {
  color: #fff;
}

.product-audit-kpis {
  margin-bottom: 16px;
}

.product-audit-quality-kpis {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.product-audit-panel {
  overflow: hidden;
}

.product-audit-store-list {
  display: grid;
  gap: 14px;
}

.product-audit-store {
  overflow: hidden;
  border: 1px solid rgba(61, 158, 222, .26);
  border-radius: 18px;
  background: rgba(5, 28, 51, .32);
}

.product-audit-store.wb {
  border-color: rgba(139, 92, 246, .36);
}

.product-audit-store-head {
  width: 100%;
  min-height: 92px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(20, 57, 91, .72), rgba(9, 35, 62, .55));
  cursor: pointer;
  text-align: left;
}

.product-audit-store-head h3 {
  margin: 7px 0 3px;
  font-size: 19px;
}

.product-audit-store-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.product-audit-store-score {
  min-width: 82px;
  text-align: right;
  color: #20d7ff;
}

.product-audit-store-score strong {
  font-size: 28px;
}

.product-audit-store-score span {
  font-size: 12px;
  font-weight: 900;
}

.product-audit-store-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.product-audit-row {
  border: 1px solid rgba(104, 147, 189, .18);
  border-left: 4px solid #20d7ff;
  border-radius: 13px;
  background: rgba(5, 25, 45, .54);
}

.product-audit-row.warn {
  border-left-color: #ffb84d;
}

.product-audit-row.bad {
  border-left-color: #ff5b7f;
}

.product-audit-row.good {
  border-left-color: #21f3a5;
}

.product-audit-row.activity-bad {
  box-shadow: inset 0 0 0 1px rgba(255, 91, 127, .18);
}

.product-audit-row.activity-warn {
  box-shadow: inset 0 0 0 1px rgba(255, 184, 77, .15);
}

.product-audit-row.activity-stockout {
  border-left-color: #8b5cf6;
  box-shadow:
    inset 0 0 0 1px rgba(139, 92, 246, .18),
    0 0 18px rgba(32, 215, 255, .08);
}

.product-audit-row.activity-good {
  box-shadow: inset 0 0 0 1px rgba(33, 243, 165, .15);
}

.product-audit-main {
  min-height: 78px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) 80px minmax(150px, .9fr) minmax(260px, 1.2fr) 130px auto;
  align-items: center;
  gap: 14px;
}

.product-audit-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.product-audit-product strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-audit-photo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(73, 171, 235, .28);
  border-radius: 10px;
  color: #20d7ff;
  background: rgba(9, 42, 70, .7);
  font-weight: 900;
}

.product-audit-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-audit-score {
  text-align: center;
  color: #20d7ff;
}

.product-audit-score.warn {
  color: #ffb84d;
}

.product-audit-score.bad {
  color: #ff5b7f;
}

.product-audit-score.good {
  color: #21f3a5;
}

.product-audit-score strong {
  font-size: 23px;
}

.product-audit-score span {
  font-size: 11px;
  font-weight: 900;
}

.product-audit-activity {
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(82, 154, 209, .24);
  border-radius: 12px;
  background: rgba(14, 45, 72, .45);
}

.product-audit-activity span {
  font-size: 12px;
  font-weight: 950;
}

.product-audit-activity small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.product-audit-activity.bad {
  color: #ff7b98;
  border-color: rgba(255, 91, 127, .42);
  background: rgba(255, 91, 127, .10);
}

.product-audit-activity.warn {
  color: #ffbf62;
  border-color: rgba(255, 184, 77, .42);
  background: rgba(255, 184, 77, .10);
}

.product-audit-activity.stockout {
  color: #a78bfa;
  border-color: rgba(139, 92, 246, .50);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(32, 215, 255, .08));
}

.product-audit-activity.good {
  color: #21f3a5;
  border-color: rgba(33, 243, 165, .36);
  background: rgba(33, 243, 165, .08);
}

.product-audit-activity.info {
  color: #20d7ff;
}

.product-audit-activity.muted {
  color: var(--muted);
}

.product-audit-actions {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.product-audit-actions .glass-btn {
  width: 100%;
  white-space: nowrap;
}

.product-audit-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-audit-facts span {
  padding: 5px 8px;
  border: 1px solid rgba(82, 154, 209, .2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(14, 45, 72, .45);
  font-size: 11px;
  font-weight: 800;
}

.audit-status {
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.audit-status.good {
  color: #21f3a5;
}

.audit-status.warn {
  color: #ffb84d;
}

.audit-status.bad {
  color: #ff5b7f;
}

.product-audit-details {
  padding: 0 14px 14px 74px;
}

.audit-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.audit-check {
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(104, 147, 189, .2);
  border-radius: 10px;
}

.audit-check > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.audit-check.ok > span {
  color: #052f28;
  background: #21f3a5;
}

.audit-check.missing > span {
  color: #3f1c00;
  background: #ffb84d;
}

.audit-check small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.audit-recommendations {
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(17, 52, 82, .52);
}

.audit-recommendations ol,
.audit-recommendations p {
  margin: 7px 0 0;
  color: var(--muted);
}

.audit-recommendations li + li {
  margin-top: 5px;
}

.audit-api-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 184, 77, .55);
  border-radius: 11px;
  color: #ffb84d;
  background: rgba(255, 184, 77, .08);
}

.audit-updated {
  margin-top: 12px;
  text-align: right;
}

.product-audit-ai-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.product-audit-keywords-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.product-audit-keywords-summary {
  margin: 12px 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 14px;
  background: rgba(32, 215, 255, .08);
}

.product-audit-keyword-list {
  display: grid;
  gap: 9px;
}

.product-audit-keyword-row {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(82, 154, 209, .22);
  border-radius: 14px;
  background: rgba(12, 39, 66, .45);
}

.product-audit-keyword-row.strong {
  border-color: rgba(33, 243, 165, .38);
  background: linear-gradient(135deg, rgba(33, 243, 165, .10), rgba(32, 215, 255, .06));
}

.product-audit-keyword-row.medium {
  border-color: rgba(255, 184, 77, .34);
}

.product-audit-keyword-row strong {
  display: block;
  margin-bottom: 4px;
}

.product-audit-keyword-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-audit-keyword-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, auto));
  gap: 8px;
}

.product-audit-keyword-metrics span {
  padding: 8px 10px;
  min-width: 82px;
  display: grid;
  gap: 2px;
  text-align: right;
  border: 1px solid rgba(104, 147, 189, .20);
  border-radius: 11px;
  background: rgba(5, 25, 45, .32);
}

.product-audit-keyword-metrics b {
  font-size: 13px;
}

.product-audit-keywords-empty {
  margin: 12px 0;
}

.product-audit-ai-loading {
  margin: 14px 0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 16px;
  background: rgba(14, 45, 72, .42);
}

.product-audit-ai-loading .spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 3px solid rgba(32, 215, 255, .18);
  border-top-color: #20d7ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.product-audit-ai-loading p {
  margin: 4px 0 0;
}

.product-audit-ai-provider {
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-audit-ai-provider small {
  color: var(--muted);
  font-weight: 800;
}

.product-audit-ai-seo {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(82, 154, 209, .24);
  border-radius: 15px;
  background: rgba(12, 39, 66, .42);
}

.product-audit-ai-seo-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-audit-ai-seo-list span {
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 11px;
  background: rgba(32, 215, 255, .08);
}

.product-audit-ai-seo-list b {
  font-size: 12px;
}

.product-audit-ai-seo-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-audit-ai-answer {
  padding: 16px;
  border: 1px solid rgba(104, 147, 189, .22);
  border-radius: 16px;
  background: rgba(5, 25, 45, .45);
}

.product-audit-ai-answer h4 {
  margin: 16px 0 7px;
  color: #20d7ff;
  font-size: 15px;
}

.product-audit-ai-answer h4:first-child {
  margin-top: 0;
}

.product-audit-ai-answer p {
  margin: 7px 0;
  color: var(--text);
  line-height: 1.55;
}

body.theme-light .product-audit-store,
body.theme-light .product-audit-row {
  background: rgba(255, 255, 255, .58);
}

body.theme-light .product-audit-store-head {
  color: #0a1b33;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(221, 238, 255, .64));
}

body.theme-light .product-audit-facts span,
body.theme-light .product-audit-activity,
body.theme-light .product-audit-keywords-summary,
body.theme-light .product-audit-keyword-row,
body.theme-light .product-audit-keyword-metrics span,
body.theme-light .product-audit-ai-loading,
body.theme-light .product-audit-ai-seo,
body.theme-light .product-audit-ai-answer,
body.theme-light .audit-recommendations {
  color: #233a57;
  background: rgba(225, 239, 255, .7);
}

body.theme-light .product-audit-activity.bad {
  color: #b5163e;
  background: rgba(255, 91, 127, .13);
}

body.theme-light .product-audit-activity.warn {
  color: #9c5b00;
  background: rgba(255, 184, 77, .18);
}

body.theme-light .product-audit-activity.stockout {
  color: #5b21b6;
  background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(32, 215, 255, .12));
}

body.theme-light .product-audit-activity.good {
  color: #057a51;
  background: rgba(33, 243, 165, .14);
}

body.theme-light .audit-status,
body.theme-light .audit-api-warning {
  color: #10233d;
}

@media (max-width: 1100px) {
  .product-audit-main {
    grid-template-columns: minmax(240px, 1fr) 76px 1fr auto;
  }

  .product-audit-main .audit-status {
    display: none;
  }

  .product-audit-activity,
  .product-audit-facts {
    grid-column: 1 / -1;
  }

  .product-audit-keyword-row {
    grid-template-columns: 1fr;
  }

  .product-audit-keyword-metrics span {
    text-align: left;
  }

  .audit-check-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .product-audit-hero,
  .product-audit-panel .card-head,
  .product-audit-store-head {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-refresh-btn {
    width: 100%;
  }

  .product-audit-main {
    grid-template-columns: 1fr auto;
  }

  .product-audit-facts {
    grid-column: 1 / -1;
  }

  .product-audit-main > .glass-btn {
    grid-column: 1 / -1;
  }

  .product-audit-actions {
    grid-column: 1 / -1;
  }

  .product-audit-keyword-metrics {
    grid-template-columns: 1fr;
  }

  .product-audit-details {
    padding: 0 12px 12px;
  }

  .audit-check-grid {
    grid-template-columns: 1fr;
  }
}

.unit-store-card {
  overflow: hidden;
  border: 1px solid rgba(75, 126, 178, .22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(10, 31, 54, .78), rgba(5, 18, 32, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 44px rgba(0, 0, 0, .20);
}

.unit-store-card.wb {
  border-color: rgba(157, 116, 255, .32);
}

.unit-store-card.ozon {
  border-color: rgba(32, 215, 255, .32);
}

.unit-store-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  color: #f2fbff;
  background: linear-gradient(135deg, rgba(32, 215, 255, .08), rgba(139, 92, 246, .06));
  cursor: pointer;
  text-align: left;
}

.unit-store-head h3 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.unit-store-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.unit-toggle-sign {
  padding: 8px 12px;
  border: 1px solid rgba(32, 215, 255, .25);
  border-radius: 999px;
  color: #c9efff;
  background: rgba(32, 215, 255, .08);
  font-weight: 900;
}

.unit-store-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 0;
}

.unit-item-cell {
  grid-template-columns: 46px 1fr;
  padding: 0;
  border: 0;
  background: transparent;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #eaf8ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  border: 1px solid rgba(32, 215, 255, .45);
  background: rgba(32, 215, 255, .14);
}

.market-badge.wb {
  border-color: rgba(157, 116, 255, .55);
  background: rgba(139, 92, 246, .18);
}

.market-badge.ozon {
  border-color: rgba(32, 215, 255, .55);
  background: rgba(32, 215, 255, .16);
}

body.theme-light .unit-store-card {
  border-color: rgba(103, 151, 212, .28);
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(226, 241, 255, .58));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 20px 50px rgba(70, 112, 168, .16);
}

body.theme-light .unit-store-head {
  color: #0a1b33;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(214, 235, 255, .45));
}

body.theme-light .unit-toggle-sign {
  color: #0d4f73;
  background: rgba(255,255,255,.58);
}

body.theme-light .market-badge {
  color: #092139;
}

.order-toolbar {
  margin-bottom: 16px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(190px, 1.2fr) auto minmax(220px, .9fr);
  gap: 10px;
  align-items: center;
}

.wb-store-action-stack {
  display: grid;
  gap: 8px;
}

.wb-store-action-stack > button {
  width: 100%;
}

.wb-force-refresh-btn {
  min-height: 38px;
}

.wb-store-select-btn {
  min-width: 220px;
  display: grid;
  gap: 2px;
  text-align: left;
  border-color: rgba(32, 215, 255, .32);
  background: linear-gradient(135deg, rgba(32, 215, 255, .13), rgba(139, 92, 246, .12));
}

.wb-store-select-btn span {
  font-size: 11px;
  color: var(--muted);
}

.wb-store-select-btn strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  white-space: nowrap;
}

.wb-store-select-btn:disabled {
  cursor: default;
  opacity: .55;
}

body.theme-light .wb-store-select-btn {
  background: linear-gradient(135deg, rgba(32, 161, 255, .13), rgba(139, 92, 246, .08));
}

.kpi {
  position: relative;
  min-height: 132px;
}

.kpi-label {
  color: var(--muted);
  font-weight: 700;
}

.kpi-value {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 900;
}

.kpi-foot {
  margin-top: 10px;
  color: var(--green);
  font-size: 13px;
}

.chart {
  height: 330px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.bar-day {
  flex: 1;
  min-width: 10px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  height: 250px;
  position: relative;
}

.bar-wrap {
  width: 42%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-width: 5px;
}

.bar-value {
  min-height: 13px;
  color: #f4fbff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0,0,0,.8), 0 0 12px currentColor;
  white-space: nowrap;
}

.bar-value.ozon-value {
  color: #9eeaff;
}

.bar-value.wb-value {
  color: #d8c8ff;
}

.bar {
  width: 100%;
  border-radius: 8px 8px 2px 2px;
  min-height: 2px;
}

.bar.ozon {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.bar.wb {
  background: linear-gradient(180deg, #b68cff, var(--violet));
}

.bar.empty {
  opacity: .28;
  background: rgba(142, 168, 200, .34);
}

.day-label {
  position: absolute;
  bottom: -22px;
  color: var(--muted);
  font-size: 11px;
  transform: rotate(-35deg);
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(75, 126, 178, .18);
  background: rgba(6, 17, 31, .45);
}

.attention-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.attention-head h2 {
  margin: 0;
}

.attention-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 197, 76, .24), rgba(255, 157, 46, .08) 62%, rgba(7, 19, 35, .22));
  box-shadow: 0 0 22px rgba(255, 157, 46, .16), inset 0 1px 0 rgba(255,255,255,.1);
}

.attention-icon svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.attention-icon path {
  fill: rgba(255, 157, 46, .16);
  stroke: #ffbf4d;
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 157, 46, .45));
}

.attention-icon line,
.attention-icon circle {
  stroke: #fff4d6;
  fill: #fff4d6;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.attention-icon.ok {
  background: radial-gradient(circle at 50% 20%, rgba(33, 243, 165, .26), rgba(33, 243, 165, .08) 62%, rgba(7, 19, 35, .22));
  box-shadow: 0 0 22px rgba(33, 243, 165, .18), inset 0 1px 0 rgba(255,255,255,.1);
}

.attention-icon.ok circle {
  fill: rgba(33, 243, 165, .14);
  stroke: #21f3a5;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(33, 243, 165, .45));
}

.attention-icon.ok path {
  fill: none;
  stroke: #eafff8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(33, 243, 165, .45));
}

.attention-list .attention-item {
  grid-template-columns: 46px 1fr auto;
  background: linear-gradient(135deg, rgba(255, 157, 46, .08), rgba(6, 17, 31, .58));
  border-color: rgba(255, 157, 46, .2);
}

.attention-text {
  white-space: pre-line;
  line-height: 1.55;
}

.attention-action {
  margin-top: 10px;
  width: fit-content;
}

.mass-wb-support-modal {
  width: min(920px, 94vw);
}

.mass-wb-support-modal textarea {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(32, 215, 255, .28);
  border-radius: 18px;
  outline: none;
  background: rgba(4, 14, 26, .72);
  color: #eaf7ff;
  font: 650 14px/1.65 "Inter", "Segoe UI", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.mass-wb-support-modal textarea:focus {
  border-color: rgba(32, 215, 255, .72);
  box-shadow: 0 0 0 4px rgba(32, 215, 255, .12), inset 0 1px 0 rgba(255,255,255,.05);
}

body.theme-light .mass-wb-support-modal textarea {
  background: rgba(255, 255, 255, .9);
  color: #10243d;
  border-color: rgba(83, 178, 255, .38);
}

.fast-stock-alerts {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 112, 135, .42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 91, 114, .12), transparent 45%),
    linear-gradient(145deg, rgba(45, 22, 36, .96), rgba(10, 25, 42, .97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 36px rgba(0,0,0,.14);
}

.fast-stock-alerts.is-ok {
  border-color: rgba(33, 243, 165, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(33, 243, 165, .11), transparent 42%),
    linear-gradient(145deg, rgba(10, 43, 43, .72), rgba(8, 20, 35, .86));
}

.fast-stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fast-stock-kicker {
  display: block;
  margin-bottom: 6px;
  color: #ffb1be;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fast-stock-alerts.is-ok .fast-stock-kicker {
  color: #65f5bf;
}

.fast-stock-head h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.fast-stock-alerts > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.fast-stock-store-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fast-stock-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 143, 161, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.fast-stock-store-chip em {
  color: #ffbec8;
  font-style: normal;
}

.fast-stock-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 430px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 143, .7) rgba(255, 255, 255, .08);
}

.fast-stock-list::-webkit-scrollbar {
  width: 7px;
}

.fast-stock-list::-webkit-scrollbar-track {
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
}

.fast-stock-list::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(255, 122, 143, .7);
}

body.theme-light .fast-stock-list {
  scrollbar-color: rgba(198, 47, 80, .55) rgba(37, 73, 114, .1);
}

body.theme-light .fast-stock-list::-webkit-scrollbar-track {
  background: rgba(37, 73, 114, .1);
}

body.theme-light .fast-stock-list::-webkit-scrollbar-thumb {
  background: rgba(198, 47, 80, .55);
}

.fast-stock-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid rgba(255, 143, 161, .25);
  border-radius: 15px;
  background: rgba(4, 14, 25, .82);
}

.fast-stock-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.fast-stock-thumb.placeholder {
  display: grid;
  place-items: center;
  color: #ffadbb;
  font-weight: 900;
  font-size: 18px;
}

.fast-stock-copy strong,
.fast-stock-copy span,
.fast-stock-copy small {
  display: block;
}

.fast-stock-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.fast-stock-copy span,
.fast-stock-copy small,
.fast-stock-result span {
  margin-top: 5px;
  color: #cbd9e8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.fast-stock-result {
  min-width: 92px;
  text-align: right;
}

.fast-stock-result b {
  display: block;
  color: #ffadbb;
  font-size: 22px;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(255, 91, 114, .28);
}

.fast-stock-result span {
  color: #fff;
  font-size: 13px;
}

.fast-stock-more {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

body.theme-light .fast-stock-alerts {
  border-color: rgba(222, 74, 103, .28);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 133, 153, .16), transparent 45%),
    linear-gradient(145deg, #fff9fb, #f4f8ff);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(42, 74, 112, .1);
}

body.theme-light .fast-stock-alerts.is-ok {
  border-color: rgba(20, 168, 115, .24);
  background:
    radial-gradient(circle at 100% 0, rgba(33, 243, 165, .12), transparent 45%),
    linear-gradient(145deg, #f7fffc, #f4f8ff);
}

body.theme-light .fast-stock-kicker {
  color: #b72d4b;
}

body.theme-light .fast-stock-alerts.is-ok .fast-stock-kicker {
  color: #087b55;
}

body.theme-light .fast-stock-head h3 {
  color: #172b48;
}

body.theme-light .fast-stock-alerts > p {
  color: #526985;
}

body.theme-light .fast-stock-store-chip {
  border-color: rgba(204, 78, 105, .2);
  background: rgba(255, 255, 255, .9);
  color: #132a49;
}

body.theme-light .fast-stock-store-chip em {
  color: #c62f50;
}

body.theme-light .fast-stock-row {
  border-color: rgba(204, 78, 105, .2);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 16px rgba(41, 72, 108, .08);
}

body.theme-light .fast-stock-thumb {
  border-color: rgba(204, 78, 105, .18);
  background: #fff;
}

body.theme-light .fast-stock-thumb.placeholder {
  color: #c62f50;
}

body.theme-light .fast-stock-copy strong {
  color: #132a49;
}

body.theme-light .fast-stock-copy span,
body.theme-light .fast-stock-copy small {
  color: #526985;
}

body.theme-light .fast-stock-result b {
  color: #c62f50;
  text-shadow: none;
}

body.theme-light .fast-stock-result span {
  color: #314b6c;
}

body.theme-light .fast-stock-more {
  color: #526985;
}

.dashboard-purchase-card {
  overflow: hidden;
}

.dashboard-purchase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-purchase-head h2 {
  margin: 0 0 6px;
}

.dashboard-purchase-head p {
  margin: 0;
}

.dashboard-purchase-stores {
  display: grid;
  gap: 10px;
}

.dashboard-purchase-store {
  border: 1px solid rgba(84, 145, 205, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(32, 215, 255, .13), transparent 42%),
    rgba(255, 255, 255, .055);
  overflow: hidden;
}

.dashboard-purchase-store summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.dashboard-purchase-store summary::-webkit-details-marker {
  display: none;
}

.dashboard-purchase-store summary b,
.dashboard-purchase-store summary small {
  display: block;
}

.dashboard-purchase-store summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-purchase-store summary strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 179, 74, .36);
  border-radius: 999px;
  background: rgba(255, 179, 74, .13);
  color: #ffcb72;
  font-size: 13px;
}

.dashboard-purchase-table {
  display: grid;
  gap: 1px;
  padding: 0 10px 10px;
}

.dashboard-purchase-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 120px 90px minmax(130px, .55fr) 110px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-purchase-row.head {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-purchase-product {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.dashboard-purchase-product img,
.dashboard-purchase-product em {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(84, 145, 205, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.dashboard-purchase-product img {
  object-fit: cover;
}

.dashboard-purchase-product em {
  display: grid;
  place-items: center;
  color: #66dcff;
  font-style: normal;
  font-weight: 900;
}

.dashboard-purchase-product b,
.dashboard-purchase-product small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-purchase-product small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-purchase-reason {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(255, 157, 46, .25);
  border-radius: 999px;
  background: rgba(255, 157, 46, .1);
  color: #ffc978;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

body.theme-light .dashboard-purchase-store {
  border-color: rgba(84, 145, 205, .24);
  background:
    radial-gradient(circle at 100% 0, rgba(32, 215, 255, .12), transparent 44%),
    rgba(255, 255, 255, .9);
}

body.theme-light .dashboard-purchase-store summary strong {
  color: #9a5d00;
}

body.theme-light .dashboard-purchase-row {
  background: rgba(238, 247, 255, .9);
}

body.theme-light .dashboard-purchase-reason {
  color: #935800;
  background: rgba(255, 184, 77, .18);
}

.dashboard-stock-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(84, 145, 205, .18);
}

.dashboard-stock-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-stock-title h3 {
  margin: 0;
  font-size: 16px;
}

.dashboard-stock-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-stock-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.dashboard-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(84, 145, 205, .2);
  background: linear-gradient(135deg, rgba(8, 24, 42, .62), rgba(9, 31, 53, .42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.dashboard-stock-row.wb {
  border-color: rgba(139, 92, 246, .28);
  box-shadow: inset 4px 0 0 rgba(139, 92, 246, .82), 0 0 22px rgba(139, 92, 246, .08);
}

.dashboard-stock-row.ozon {
  border-color: rgba(32, 215, 255, .28);
  box-shadow: inset 4px 0 0 rgba(32, 215, 255, .82), 0 0 22px rgba(32, 215, 255, .08);
}

.dashboard-stock-row strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 3px;
}

.dashboard-stock-row span,
.dashboard-stock-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-stock-metrics {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.dashboard-stock-metrics b {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.dashboard-stock-metrics em {
  color: #21f3a5;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

body.theme-light .dashboard-stock-metrics em {
  color: #007f56;
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-row h2 {
  margin: 0;
}

.attention-products {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.attention-product-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(32, 215, 255, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 37, 63, .72), rgba(5, 18, 32, .86));
}

.attention-product-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 760px) {
  .attention-product-row {
    grid-template-columns: 1fr;
  }

  .attention-product-metrics {
    justify-content: flex-start;
  }

  .fast-stock-row {
    grid-template-columns: 1fr;
  }

  .fast-stock-result {
    text-align: left;
  }

  .dashboard-purchase-head,
  .dashboard-purchase-store summary {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-purchase-table {
    overflow-x: auto;
  }

  .dashboard-purchase-row {
    min-width: 720px;
  }
}

.attention-item .attention-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.attention-item .attention-icon svg {
  width: 24px;
  height: 24px;
}

.ozon-seo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(37, 141, 255, .18), transparent 38%),
    linear-gradient(145deg, rgba(10, 31, 54, .94), rgba(7, 20, 36, .96));
}

.ozon-seo-hero h2 {
  margin: 6px 0;
  font-size: 27px;
}

.ozon-seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ozon-seo-hero-actions select {
  min-width: 190px;
}

.ozon-seo-kpis {
  margin-top: 16px;
}

.ozon-seo-panel {
  margin-top: 16px;
}

.ozon-seo-search {
  width: min(320px, 100%);
}

.ozon-seo-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ozon-seo-product {
  overflow: hidden;
  border: 1px solid rgba(70, 145, 220, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(8, 25, 44, .82), rgba(6, 18, 32, .9));
}

.ozon-seo-product summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.ozon-seo-product summary::-webkit-details-marker {
  display: none;
}

.ozon-seo-product[open] summary {
  border-bottom: 1px solid rgba(70, 145, 220, .18);
}

.ozon-seo-product-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ozon-seo-product-title strong,
.ozon-seo-product-title small {
  display: block;
}

.ozon-seo-product-title strong {
  color: var(--text);
  font-size: 15px;
}

.ozon-seo-product-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ozon-seo-product-summary {
  display: grid;
  min-width: 150px;
  justify-items: end;
}

.ozon-seo-product-summary b {
  color: #56b5ff;
  font-size: 24px;
  line-height: 1;
}

.ozon-seo-product-summary span,
.ozon-seo-product-summary small {
  color: var(--muted);
  font-size: 11px;
}

.ozon-seo-product-summary small {
  max-width: 230px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-seo-product-body {
  padding: 16px;
}

.ozon-seo-query-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ozon-seo-query {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(87, 147, 205, .18);
  border-radius: 15px;
  background: rgba(4, 15, 28, .58);
  cursor: pointer;
}

.ozon-seo-query.strong {
  border-color: rgba(33, 243, 165, .27);
  box-shadow: inset 3px 0 0 rgba(33, 243, 165, .65);
}

.ozon-seo-query.medium {
  border-color: rgba(37, 141, 255, .27);
  box-shadow: inset 3px 0 0 rgba(37, 141, 255, .65);
}

.ozon-seo-query input {
  width: 17px;
  height: 17px;
  accent-color: #258dff;
}

.ozon-seo-query-main strong,
.ozon-seo-query-main small,
.ozon-seo-query-metrics b,
.ozon-seo-query-metrics small {
  display: block;
}

.ozon-seo-query-main strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.ozon-seo-query-main small,
.ozon-seo-query-metrics small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.ozon-seo-query-metrics {
  min-width: 105px;
  text-align: right;
}

.ozon-seo-query-metrics b {
  color: #55e7ba;
  font-size: 16px;
}

.ozon-seo-draft-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(139, 92, 246, .22);
  border-radius: 18px;
  background: rgba(20, 16, 45, .34);
}

.ozon-seo-draft-panel h3 {
  margin: 0;
}

.ozon-seo-draft-panel textarea {
  width: 100%;
  min-height: 130px;
  margin-top: 10px;
  resize: vertical;
  line-height: 1.55;
}

.ozon-seo-draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.ozon-seo-empty-product {
  margin: 0;
}

.profile-activity-card {
  grid-column: 1 / -1;
}

.profile-activity-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 157, 46, .28);
  border-radius: 14px;
  color: #ffd6a3;
  background: rgba(255, 157, 46, .08);
}

.profile-activity-table-wrap {
  max-height: 560px;
  margin-top: 12px;
  overflow: auto;
  border: 1px solid rgba(75, 126, 178, .18);
  border-radius: 16px;
}

.profile-activity-table {
  min-width: 1050px;
}

.profile-activity-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.profile-activity-table code {
  color: #71c9ff;
  font-size: 11px;
  white-space: normal;
  word-break: break-word;
}

body.theme-light .profile-activity-table-wrap {
  border-color: rgba(45, 94, 146, .16);
}

body.theme-light .profile-activity-notice {
  color: #8a4a08;
  border-color: rgba(210, 119, 20, .24);
  background: rgba(255, 173, 69, .12);
}

body.theme-light .profile-activity-table code {
  color: #1d649c;
}

body.theme-light .ozon-seo-hero {
  border-color: rgba(37, 141, 255, .22);
  background:
    radial-gradient(circle at 85% 10%, rgba(37, 141, 255, .13), transparent 40%),
    linear-gradient(145deg, #fafdff, #eef6ff);
}

body.theme-light .ozon-seo-product {
  border-color: rgba(43, 103, 167, .18);
  background: #fafdff;
  box-shadow: 0 8px 22px rgba(47, 84, 128, .07);
}

body.theme-light .ozon-seo-product[open] summary {
  border-color: rgba(43, 103, 167, .14);
}

body.theme-light .ozon-seo-product-title strong,
body.theme-light .ozon-seo-query-main strong {
  color: #142b49;
}

body.theme-light .ozon-seo-product-title small,
body.theme-light .ozon-seo-product-summary span,
body.theme-light .ozon-seo-product-summary small,
body.theme-light .ozon-seo-query-main small,
body.theme-light .ozon-seo-query-metrics small {
  color: #58708d;
}

body.theme-light .ozon-seo-query {
  border-color: rgba(43, 103, 167, .14);
  background: #fff;
}

body.theme-light .ozon-seo-draft-panel {
  border-color: rgba(110, 76, 196, .16);
  background: #f8f5ff;
}

@media (max-width: 980px) {
  .ozon-seo-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ozon-seo-hero-actions {
    justify-content: flex-start;
  }

  .ozon-seo-query-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ozon-seo-product summary,
  .ozon-seo-query {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ozon-seo-product summary {
    flex-direction: column;
  }

  .ozon-seo-product-summary {
    min-width: 0;
    justify-items: start;
  }

  .ozon-seo-query-metrics {
    grid-column: 2;
    text-align: left;
  }
}

.supply-item {
  align-items: start;
  cursor: pointer;
}

.supply-item.selected {
  border-color: rgba(32, 215, 255, .65);
  box-shadow: inset 0 0 20px rgba(32, 215, 255, .12), 0 0 24px rgba(32, 215, 255, .12);
}

body.theme-light .supply-item.selected {
  color: #071527;
  border-color: rgba(16, 184, 232, .88);
  background:
    linear-gradient(90deg, rgba(32, 215, 255, .30), rgba(139, 92, 246, .12), rgba(255, 255, 255, .82)),
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, .98), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 4px 0 0 rgba(32, 215, 255, .95),
    0 0 0 2px rgba(32, 215, 255, .18),
    0 16px 34px rgba(45, 128, 204, .22);
}

body.theme-light .supply-item.selected strong,
body.theme-light .supply-item.selected .muted {
  color: #071527;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-doc-btn {
  border: 1px solid rgba(32, 215, 255, .4);
  border-radius: 999px;
  color: #eaf8ff;
  background: linear-gradient(135deg, rgba(16, 50, 82, .82), rgba(7, 20, 35, .92));
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.mini-doc-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(32, 215, 255, .22);
}

.mini-doc-btn.green {
  border-color: rgba(33, 243, 165, .45);
  background: linear-gradient(135deg, rgba(11, 78, 56, .82), rgba(7, 20, 35, .92));
}

.mini-doc-btn.danger {
  border-color: rgba(255, 92, 124, .5);
  color: #ffe7ec;
  background: linear-gradient(135deg, rgba(103, 22, 40, .82), rgba(7, 20, 35, .92));
}

.mini-doc-btn.danger:hover {
  border-color: rgba(255, 92, 124, .9);
  box-shadow: 0 0 20px rgba(255, 92, 124, .2);
}

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.link-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  font-size: 11px;
}

.link-badge {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  color: #dff7ff;
  border: 1px solid hsl(var(--link-hue, 190) 86% 62% / .55);
  background:
    linear-gradient(135deg, hsl(var(--link-hue, 190) 86% 48% / .24), rgba(5, 18, 32, .54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 16px hsl(var(--link-hue, 190) 86% 48% / .13);
}

.link-badge.wb {
  color: #f0e8ff;
}

.link-badge.ozon {
  color: #dcecff;
}

.ad-campaign-list {
  display: grid;
  gap: 14px;
}

.ad-store-card {
  --market-tone: #20d7ff;
  border: 1px solid rgba(75, 126, 178, .24);
  border-radius: 24px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--market-tone) 14%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(10, 31, 56, .94), rgba(5, 16, 31, .78));
  overflow: hidden;
}

.ad-store-card.wb { --market-tone: #a855f7; }
.ad-store-card.ozon { --market-tone: #20d7ff; }

.ad-store-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.ad-store-head::-webkit-details-marker {
  display: none;
}

.ad-store-head h2 {
  margin: 10px 0 4px;
  color: #f4fbff;
  font-size: 23px;
}

.ad-store-head p {
  margin: 0;
  color: #8fa7c5;
  font-weight: 800;
}

.ad-store-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ad-store-metrics strong {
  color: #f4fbff;
  font-size: 24px;
  text-shadow: 0 0 24px color-mix(in srgb, var(--market-tone) 36%, transparent);
}

.ad-store-total-hint {
  flex-basis: 100%;
  text-align: right;
  font-size: 11px;
  line-height: 1.2;
}

.ad-store-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.ad-campaign-card {
  border: 1px solid rgba(75, 126, 178, .22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 157, 46, .12), transparent 28%),
    linear-gradient(135deg, rgba(13, 32, 54, .78), rgba(5, 16, 30, .86));
  overflow: hidden;
}

.ad-campaign-card.ad-risk-danger {
  border-color: rgba(255, 85, 126, .44);
  box-shadow: inset 4px 0 0 rgba(255, 85, 126, .82);
}

.ad-campaign-card.ad-risk-warning {
  border-color: rgba(255, 180, 67, .46);
  box-shadow: inset 4px 0 0 rgba(255, 180, 67, .88);
}

.ad-campaign-card.ad-risk-ok {
  border-color: rgba(33, 243, 165, .34);
  box-shadow: inset 4px 0 0 rgba(33, 243, 165, .72);
}

.ad-campaign-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ad-campaign-card summary::-webkit-details-marker {
  display: none;
}

.ad-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7fbff;
  font-weight: 950;
  font-size: 16px;
}

.ad-note {
  margin-top: 8px;
  color: #ffd6a3;
  font-size: 12px;
  line-height: 1.4;
}

.ad-campaign-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 150px;
}

.ad-campaign-actions .glass-btn {
  padding: 8px 11px;
  font-size: 12px;
}

.ad-metrics,
.ad-item-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, auto));
  gap: 10px;
  align-items: center;
}

.ad-metrics > span,
.ad-item-row > span {
  display: grid;
  gap: 3px;
  justify-items: start;
  color: #f2fbff;
  font-weight: 900;
  white-space: nowrap;
}

.ad-risk-pill.danger {
  background: rgba(255, 85, 126, .16);
  border-color: rgba(255, 85, 126, .44);
  color: #ffdbe3;
}

.ad-risk-pill.warning {
  background: rgba(255, 180, 67, .18);
  border-color: rgba(255, 180, 67, .48);
  color: #fff0cf;
}

.ad-risk-pill.ok {
  background: rgba(33, 243, 165, .14);
  border-color: rgba(33, 243, 165, .38);
  color: #dffff3;
}

.ad-risk-pill.neutral {
  background: rgba(143, 168, 196, .12);
  border-color: rgba(143, 168, 196, .28);
  color: #c7d8ec;
}

.ad-metrics small,
.ad-item-row small {
  color: #8fa8c4;
  font-size: 11px;
  font-weight: 700;
}

.ad-items {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.ad-item-row {
  grid-template-columns: 46px minmax(220px, 1fr) repeat(6, minmax(78px, auto));
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(75, 126, 178, .16);
  background: rgba(2, 12, 24, .28);
}

.ad-item-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ad-item-name strong,
.ad-item-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-item-name span {
  color: #93aaca;
  font-size: 12px;
}

.ad-empty {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}

.ad-edit-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(86vh, 920px);
  overflow: auto;
}

.ad-edit-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(32, 215, 255, .12), rgba(139, 92, 246, .10)),
    rgba(255, 255, 255, .04);
}

.ad-edit-summary strong {
  color: #f4fbff;
}

.ad-edit-summary > span:last-child {
  color: #9db5d0;
  font-weight: 800;
}

.ad-edit-note,
.ad-edit-error {
  padding: 12px 14px;
  border-radius: 16px;
  margin: 10px 0;
  line-height: 1.45;
  font-weight: 800;
}

.ad-edit-note {
  color: #dff7ff;
  border: 1px solid rgba(32, 215, 255, .22);
  background: rgba(32, 215, 255, .08);
}

.ad-edit-error {
  color: #ffe1e7;
  border: 1px solid rgba(255, 85, 126, .38);
  background: rgba(255, 85, 126, .12);
}

.ad-edit-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  gap: 12px;
}

.ad-edit-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ad-edit-item-row {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1fr) minmax(120px, 150px) minmax(120px, 150px);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(75, 126, 178, .18);
  background: rgba(2, 12, 24, .26);
}

.ad-edit-item-row label {
  display: grid;
  gap: 5px;
  font-weight: 900;
}

.ad-edit-item-row label small {
  color: #93aaca;
  font-size: 11px;
  font-weight: 800;
}

.ad-edit-item-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ad-edit-item-name strong,
.ad-edit-item-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-edit-item-name span {
  color: #93aaca;
  font-size: 12px;
}

.alert-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.alert-row {
  border: 1px solid rgba(255, 157, 46, .35);
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff2d5;
  background: rgba(255, 157, 46, .10);
}

.feedback-store-body {
  display: grid;
  gap: 12px;
}

.feedback-card {
  border: 1px solid rgba(75, 126, 178, .20);
  border-radius: 18px;
  padding: 14px;
  background: rgba(4, 18, 34, .34);
}

.feedback-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feedback-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.feedback-text,
.feedback-answer {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: #e8f6ff;
  line-height: 1.45;
}

.feedback-answer {
  border: 1px solid rgba(33, 243, 165, .20);
}

.feedback-reply-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.feedback-reply-box textarea {
  min-height: 78px;
  resize: vertical;
  border: 1px solid rgba(75, 126, 178, .28);
  border-radius: 16px;
  padding: 12px;
  color: #eaf8ff;
  background: rgba(2, 12, 24, .42);
  outline: none;
}

.feedback-reply-box textarea:focus {
  border-color: rgba(32, 215, 255, .72);
  box-shadow: 0 0 0 3px rgba(32, 215, 255, .10);
}

body.theme-light .alert-row {
  color: #10233f;
  background: rgba(255, 248, 232, .78);
  border-color: rgba(255, 157, 46, .36);
}

body.theme-light .feedback-card {
  color: #10233f;
  background: rgba(255,255,255,.72);
  border-color: rgba(103, 151, 212, .24);
  box-shadow: 0 14px 30px rgba(75, 126, 178, .10);
}

body.theme-light .feedback-text,
body.theme-light .feedback-answer {
  color: #10233f;
  background: rgba(228, 241, 255, .62);
}

body.theme-light .feedback-reply-box textarea {
  color: #10233f;
  background: rgba(255,255,255,.82);
  border-color: rgba(103, 151, 212, .32);
}

body.theme-light .ad-campaign-card {
  color: #10233f;
  border-color: rgba(103, 151, 212, .26);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 194, 120, .26), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(32, 215, 255, .18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(229, 243, 255, .66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 18px 42px rgba(76, 127, 198, .14);
}

body.theme-light .ad-campaign-card.ad-risk-danger {
  border-color: rgba(255, 85, 126, .36);
  box-shadow: inset 4px 0 0 rgba(255, 85, 126, .78), 0 18px 42px rgba(255, 85, 126, .10);
}

body.theme-light .ad-campaign-card.ad-risk-warning {
  border-color: rgba(255, 172, 45, .38);
  box-shadow: inset 4px 0 0 rgba(255, 172, 45, .82), 0 18px 42px rgba(255, 172, 45, .10);
}

body.theme-light .ad-campaign-card.ad-risk-ok {
  border-color: rgba(21, 173, 117, .28);
  box-shadow: inset 4px 0 0 rgba(21, 173, 117, .68), 0 18px 42px rgba(21, 173, 117, .08);
}

body.theme-light .ad-store-card {
  color: #10233f;
  border-color: rgba(103, 151, 212, .28);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--market-tone, #20d7ff) 16%, transparent), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(226, 242, 255, .70));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 42px rgba(76,127,198,.14);
}

body.theme-light .ad-store-head h2,
body.theme-light .ad-store-metrics strong {
  color: #10233f;
  text-shadow: none;
}

body.theme-light .ad-store-head p {
  color: #526986;
}

body.theme-light .ad-campaign-card summary {
  background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(32, 157, 255, .06));
}

body.theme-light .ad-title,
body.theme-light .ad-metrics > span,
body.theme-light .ad-item-row > span,
body.theme-light .ad-item-name strong {
  color: #10233f;
  text-shadow: none;
}

body.theme-light .ad-metrics small,
body.theme-light .ad-item-row small,
body.theme-light .ad-item-name span,
body.theme-light .ad-empty {
  color: #526986;
}

body.theme-light .ad-note {
  color: #925300;
  background: rgba(255, 180, 67, .14);
  border: 1px solid rgba(214, 142, 26, .20);
  border-radius: 12px;
  padding: 8px 10px;
}

body.theme-light .ad-item-row {
  border-color: rgba(103, 151, 212, .20);
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

body.theme-light .ad-risk-pill.danger {
  color: #9b1232;
  background: rgba(255, 85, 126, .13);
  border-color: rgba(255, 85, 126, .30);
}

body.theme-light .ad-risk-pill.warning {
  color: #8a5200;
  background: rgba(255, 180, 67, .18);
  border-color: rgba(214, 142, 26, .26);
}

body.theme-light .ad-risk-pill.ok {
  color: #116c4d;
  background: rgba(33, 243, 165, .12);
  border-color: rgba(21, 173, 117, .24);
}

body.theme-light .ad-risk-pill.neutral {
  color: #526986;
  background: rgba(143, 168, 196, .14);
  border-color: rgba(143, 168, 196, .25);
}

body.theme-light .ad-empty {
  background: rgba(255, 255, 255, .58);
}

body.theme-light .ad-edit-summary {
  background:
    linear-gradient(135deg, rgba(32, 157, 255, .12), rgba(139, 92, 246, .09)),
    rgba(255, 255, 255, .72);
}

body.theme-light .ad-edit-summary strong,
body.theme-light .ad-edit-item-name strong {
  color: #10233f;
}

body.theme-light .ad-edit-summary > span:last-child,
body.theme-light .ad-edit-item-name span {
  color: #526986;
}

body.theme-light .ad-edit-note {
  color: #163c5a;
  border-color: rgba(32, 157, 255, .24);
  background: rgba(226, 242, 255, .74);
}

body.theme-light .ad-edit-error {
  color: #7f1532;
  border-color: rgba(255, 85, 126, .30);
  background: rgba(255, 237, 242, .84);
}

body.theme-light .ad-edit-item-row {
  color: #10233f;
  border-color: rgba(103, 151, 212, .20);
  background: rgba(255, 255, 255, .60);
}

body.theme-light .ad-edit-item-row label small {
  color: #526986;
}

.finance-store-list {
  display: grid;
  gap: 14px;
}

.finance-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.finance-monthly-launch {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.finance-monthly-open-btn {
  min-width: 310px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.finance-monthly-settings-btn {
  min-width: 230px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.finance-monthly-open-btn span,
.finance-monthly-settings-btn span {
  font-size: 13px;
  font-weight: 950;
}

.finance-monthly-open-btn strong,
.finance-monthly-settings-btn strong {
  color: var(--text);
  font-size: 16px;
}

.finance-monthly-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.finance-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.finance-month-item {
  padding: 16px;
  border: 1px solid rgba(33, 243, 165, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(33, 243, 165, .08), rgba(32, 215, 255, .04));
}

.finance-month-head,
.finance-report-month-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.finance-month-head strong,
.finance-report-month-title strong {
  color: #f4fbff;
  font-size: 18px;
  text-transform: capitalize;
}

.finance-month-head span:not(.pill) {
  display: block;
  margin-top: 4px;
  color: #9fb4d2;
  font-size: 12px;
  font-weight: 800;
}

.finance-month-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.finance-month-metrics > div {
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
}

.finance-month-metrics .finance-month-sold {
  border: 1px solid rgba(139, 92, 246, .24);
  background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(32, 215, 255, .06));
}

.finance-month-metrics .finance-month-expense {
  border: 1px solid rgba(255, 157, 46, .20);
  background: linear-gradient(135deg, rgba(255, 157, 46, .10), rgba(255, 92, 124, .05));
}

.finance-month-metrics .finance-month-net {
  border: 1px solid rgba(33, 243, 165, .34);
  background: linear-gradient(135deg, rgba(33, 243, 165, .16), rgba(32, 215, 255, .07));
}

.finance-month-metrics span {
  display: block;
  color: #8fa7c5;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-month-metrics strong {
  display: block;
  margin-top: 4px;
  color: #f4fbff;
  font-size: 14px;
}

.finance-month-expense-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 157, 46, .24);
  border-radius: 14px;
  background: rgba(255, 157, 46, .08);
  color: #ffdca4;
  font-weight: 950;
}

.finance-month-expense-total span {
  color: #ffdca4;
  font-size: 11px;
  text-transform: uppercase;
}

.finance-monthly-settings-modal {
  width: min(760px, calc(100vw - 32px));
}

.finance-expense-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.finance-expense-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 950;
}

.finance-expense-hint {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 16px;
  background: rgba(32, 215, 255, .07);
}

.finance-expense-hint strong {
  color: #f4fbff;
}

.finance-expense-hint span {
  color: var(--muted);
  font-weight: 800;
}

.finance-month-marketplaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.finance-month-marketplaces > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(75, 126, 178, .18);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.finance-month-marketplaces > div > strong {
  color: #f4fbff;
}

.finance-month-marketplaces small {
  grid-column: 1 / -1;
  color: #9fb4d2;
  font-weight: 800;
}

.finance-report-month-group {
  margin-bottom: 18px;
}

.finance-report-month-title {
  margin-bottom: 9px;
  padding: 0 3px;
}

.finance-report-month-picker {
  display: grid;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  cursor: default;
}

.finance-report-month-picker span {
  color: #8fa7c5;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-report-month-picker input {
  width: 132px;
  min-height: 25px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 12px;
}

.finance-store-card {
  --market-tone: #20d7ff;
  border: 1px solid rgba(75, 126, 178, .24);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--market-tone) 14%, transparent), transparent 46%),
    linear-gradient(145deg, rgba(10, 31, 56, .90), rgba(5, 16, 31, .78));
}

.finance-store-card.wb { --market-tone: #a855f7; }
.finance-store-card.ozon { --market-tone: #20d7ff; }

.finance-store-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.finance-store-head::-webkit-details-marker {
  display: none;
}

.finance-store-head h2 {
  margin: 10px 0 4px;
  color: #f4fbff;
  font-size: 23px;
}

.finance-store-head p {
  margin: 0;
  color: #8fa7c5;
  font-weight: 800;
}

.finance-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-btn {
  border: 1px solid rgba(255, 77, 109, .44);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,77,109,.18), rgba(255,255,255,.04));
  color: #ffd5dd;
  font-weight: 950;
  cursor: pointer;
  padding: 10px 14px;
}

.danger-btn.small {
  min-height: 34px;
  padding: 8px 12px;
}

.return-admin-btn {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  box-shadow: 0 14px 34px rgba(32, 215, 255, .22), 0 0 0 1px rgba(255, 255, 255, .10) inset;
}

body.theme-light .danger-btn {
  color: #7e1730;
  background: linear-gradient(135deg, rgba(255,77,109,.18), rgba(255,255,255,.72));
}

.finance-store-body {
  padding: 0 16px 16px;
}

.finance-report-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(75, 126, 178, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.finance-report-list-head strong {
  display: block;
  color: #f4fbff;
  font-size: 16px;
}

.finance-report-list-head span:not(.pill) {
  display: block;
  margin-top: 4px;
  color: #9fb4d2;
  font-weight: 800;
}

.finance-report-card {
  border: 1px solid rgba(75, 126, 178, .22);
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.finance-report-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.finance-report-head::-webkit-details-marker {
  display: none;
}

.finance-report-head strong {
  color: #f4fbff;
  font-size: 17px;
}

.finance-report-head .muted {
  display: block;
  margin-top: 4px;
}

.finance-summary-title {
  margin: 4px 0 12px;
  color: #f4fbff;
  font-weight: 950;
  font-size: 18px;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.finance-summary-grid > div {
  border: 1px solid rgba(75, 126, 178, .22);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .04);
}

.finance-summary-grid span {
  display: block;
  color: #9fb4d2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #f4fbff;
  font-size: 18px;
}

.finance-table td {
  vertical-align: middle;
}

body.theme-light .finance-store-card {
  color: #10233f;
  border-color: rgba(103, 151, 212, .28);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--market-tone, #20d7ff) 15%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,.84), rgba(226,242,255,.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 42px rgba(76,127,198,.14);
}

body.theme-light .finance-store-head h2,
body.theme-light .finance-summary-grid strong,
body.theme-light .finance-report-head strong,
body.theme-light .finance-summary-title {
  color: #10233f;
  text-shadow: none;
}

body.theme-light .finance-store-head p,
body.theme-light .finance-summary-grid span {
  color: #526986;
}

body.theme-light .finance-summary-grid > div {
  border-color: rgba(103, 151, 212, .22);
  background: rgba(255,255,255,.62);
}

body.theme-light .finance-report-list-head {
  border-color: rgba(103, 151, 212, .22);
  background: rgba(255,255,255,.62);
}

body.theme-light .finance-report-list-head strong {
  color: #10233f;
}

body.theme-light .finance-report-list-head span:not(.pill) {
  color: #526986;
}

body.theme-light .finance-report-card {
  border-color: rgba(103, 151, 212, .24);
  background: rgba(255,255,255,.56);
}

body.theme-light .finance-month-item,
body.theme-light .finance-report-month-picker {
  border-color: rgba(103, 151, 212, .24);
  background: rgba(255,255,255,.62);
}

body.theme-light .finance-month-head strong,
body.theme-light .finance-month-metrics strong,
body.theme-light .finance-report-month-title strong,
body.theme-light .finance-month-marketplaces > div > strong {
  color: #10233f;
}

body.theme-light .finance-month-head span:not(.pill),
body.theme-light .finance-month-metrics span,
body.theme-light .finance-report-month-picker span,
body.theme-light .finance-month-marketplaces small {
  color: #526986;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  border: 1px solid rgba(32, 215, 255, .58);
  color: #f3fdff;
  background: linear-gradient(135deg, rgba(32, 215, 255, .2), rgba(32, 215, 255, .08));
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 14px rgba(32, 215, 255, .12);
}

.pill.ok {
  border-color: rgba(33, 243, 165, .72);
  color: #dcfff2;
  background: linear-gradient(135deg, rgba(33, 243, 165, .24), rgba(9, 78, 58, .42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(33, 243, 165, .18);
}

.pill.info {
  border-color: rgba(32, 199, 255, .72);
  color: #e5f8ff;
  background: linear-gradient(135deg, rgba(32, 199, 255, .24), rgba(12, 68, 110, .44));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(32, 199, 255, .18);
}

.pill.warning {
  border-color: rgba(255, 157, 46, .78);
  color: #fff1cf;
  background: linear-gradient(135deg, rgba(255, 157, 46, .26), rgba(91, 50, 9, .46));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(255, 157, 46, .2);
}

.pill.danger {
  border-color: rgba(255, 92, 124, .82);
  color: #ffe7ed;
  background: linear-gradient(135deg, rgba(255, 92, 124, .27), rgba(97, 19, 42, .5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(255, 92, 124, .2);
}

.pill.violet {
  border-color: rgba(157, 116, 255, .8);
  color: #f2ecff;
  background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(47, 30, 111, .52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(139, 92, 246, .2);
}

.rating-pill {
  gap: 7px;
  white-space: nowrap;
}

.rating-star {
  color: #ffd43b;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 212, 59, .65);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(75, 126, 178, .16);
  text-align: left;
}

.table th {
  color: #9fb4d2;
  font-size: 12px;
  text-transform: uppercase;
}

.table.interactive tbody tr {
  cursor: pointer;
}

.table.interactive tbody tr[draggable="true"] {
  cursor: grab;
}

.table.interactive tbody tr[draggable="true"]:active {
  cursor: grabbing;
}

.table.interactive tbody tr.dragging {
  opacity: .52;
  background: rgba(32, 215, 255, .14);
  outline: 1px solid rgba(32, 215, 255, .55);
}

.table.interactive tbody tr:hover {
  background: rgba(32, 215, 255, .06);
}

.table.interactive tbody tr.selected {
  background: rgba(32, 215, 255, .12);
  outline: 1px solid rgba(32, 215, 255, .42);
}

.table tr.new-order-row {
  background: linear-gradient(90deg, rgba(33, 243, 165, .18), rgba(33, 243, 165, .045));
}

.table tr.new-order-row td {
  border-bottom-color: rgba(33, 243, 165, .2);
}

.table tr.new-order-row:hover {
  background: linear-gradient(90deg, rgba(33, 243, 165, .24), rgba(33, 243, 165, .07));
}

.table tr.order-group-row td {
  padding: 14px 10px 8px;
  color: #dcecff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(32, 215, 255, .18), rgba(139, 92, 246, .08), transparent);
  border-bottom-color: rgba(32, 215, 255, .28);
}

.round-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(32, 215, 255, .72);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(8, 20, 36, .92));
  box-shadow: inset 0 0 10px rgba(32, 215, 255, .16), 0 0 12px rgba(32, 215, 255, .12);
  cursor: pointer;
  vertical-align: middle;
}

.round-check:checked {
  border-color: rgba(33, 243, 165, .95);
  background:
    radial-gradient(circle at center, #21f3a5 0 34%, transparent 38%),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(8, 20, 36, .92));
  box-shadow: inset 0 0 10px rgba(33, 243, 165, .25), 0 0 16px rgba(33, 243, 165, .34);
}

.editable-number,
.editable-text {
  color: #dff7ff;
  font-weight: 800;
  text-decoration: none;
}

.table td.editable-number {
  color: #f4fbff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
  text-shadow: 0 0 14px rgba(32, 215, 255, .2);
  position: relative;
}

.table td.editable-number::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 215, 255, .92), rgba(139, 92, 246, .45));
  opacity: .78;
}

.table td.editable-text {
  text-decoration: underline dotted rgba(32, 215, 255, .45);
  text-underline-offset: 4px;
}

.editable-number:hover,
.editable-text:hover {
  color: #ffffff;
  background: rgba(32, 215, 255, .1);
}

.inline-number-input,
.inline-text-input {
  width: 100%;
  min-width: 76px;
  border: 1px solid rgba(32, 215, 255, .65);
  border-radius: 10px;
  background: rgba(3, 16, 31, .92);
  color: #ffffff;
  padding: 7px 9px;
  font: inherit;
  outline: none;
  box-shadow: 0 0 18px rgba(32, 215, 255, .18);
}

.inline-text-input {
  min-width: 180px;
}

.section-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.delivery-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(32, 215, 255, .16), transparent 34%),
    linear-gradient(145deg, rgba(12, 33, 58, .88), rgba(5, 16, 31, .72));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.05);
}

.delivery-page-head h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: 0;
  color: #f4fbff;
}

.delivery-page-head p {
  margin: 7px 0 0;
  color: #9fb5d4;
  font-weight: 700;
}

.delivery-head-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #b7c8e2;
  font-weight: 800;
}

.delivery-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.delivery-kpi-card {
  position: relative;
  min-height: 126px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(75, 126, 178, .2);
  background: linear-gradient(145deg, rgba(11, 32, 58, .9), rgba(6, 18, 35, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 46px rgba(0,0,0,.18);
  overflow: hidden;
}

.delivery-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -36px auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--delivery-tone, #20d7ff) 34%, transparent), transparent 68%);
  opacity: .8;
}

.delivery-kpi-card.total { --delivery-tone: #20d7ff; }
.delivery-kpi-card.success { --delivery-tone: #21f3a5; }
.delivery-kpi-card.info { --delivery-tone: #22c7ff; }
.delivery-kpi-card.warning { --delivery-tone: #ffb84a; }
.delivery-kpi-card.danger { --delivery-tone: #ff527b; }
.delivery-kpi-card.purple { --delivery-tone: #a78bfa; }

.delivery-kpi-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 15px;
  color: var(--delivery-tone, #20d7ff);
  border: 1px solid color-mix(in srgb, var(--delivery-tone, #20d7ff) 55%, transparent);
  background: color-mix(in srgb, var(--delivery-tone, #20d7ff) 13%, rgba(6, 18, 35, .82));
  box-shadow: 0 0 24px color-mix(in srgb, var(--delivery-tone, #20d7ff) 24%, transparent);
  font-size: 19px;
  font-weight: 950;
}

.delivery-kpi-card span {
  display: block;
  color: #aabbd7;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: #f5fbff;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 20px color-mix(in srgb, var(--delivery-tone, #20d7ff) 24%, transparent);
}

.delivery-kpi-card small {
  display: block;
  margin-top: 9px;
  color: #8fa7c5;
  font-weight: 800;
}

.delivery-section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 4px 0 14px;
}

.delivery-section-title h2 {
  margin: 0;
  color: #f4fbff;
  font-size: 22px;
}

.delivery-section-title span {
  color: #8fa7c5;
  font-weight: 800;
}

.delivery-store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.delivery-store-card {
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(75, 126, 178, .2);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--market-tone, #20d7ff) 15%, transparent), transparent 40%),
    linear-gradient(145deg, rgba(10, 31, 56, .92), rgba(5, 16, 31, .74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 60px rgba(0,0,0,.2);
}

.delivery-store-card.wb { --market-tone: #a855f7; }
.delivery-store-card.ozon { --market-tone: #20d7ff; }

.delivery-store-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(75, 126, 178, .16);
}

.delivery-store-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.delivery-store-head h2 {
  margin: 10px 0 4px;
  font-size: 23px;
  color: #f4fbff;
}

.delivery-store-head p {
  margin: 0;
  color: #8fa7c5;
  font-weight: 750;
}

.delivery-store-head > strong,
.delivery-store-actions > strong {
  font-size: 28px;
  color: #f4fbff;
  text-shadow: 0 0 24px color-mix(in srgb, var(--market-tone, #20d7ff) 36%, transparent);
  white-space: nowrap;
}

.delivery-toggle-btn {
  border: 1px solid color-mix(in srgb, var(--market-tone, #20d7ff) 42%, rgba(255,255,255,.12));
  color: #eaf9ff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--market-tone, #20d7ff) 24%, rgba(8, 22, 41, .9)), rgba(8, 20, 38, .82));
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 18px color-mix(in srgb, var(--market-tone, #20d7ff) 18%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.delivery-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px color-mix(in srgb, var(--market-tone, #20d7ff) 30%, transparent);
}

.delivery-store-card.expanded .delivery-toggle-btn {
  border-color: color-mix(in srgb, var(--market-tone, #20d7ff) 72%, rgba(255,255,255,.22));
}

.delivery-products-collapsed[hidden] {
  display: none;
}

.delivery-market-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  letter-spacing: .3px;
  border: 1px solid color-mix(in srgb, var(--market-tone, #20d7ff) 52%, transparent);
  background: color-mix(in srgb, var(--market-tone, #20d7ff) 22%, rgba(6, 18, 35, .88));
}

.delivery-mini-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  padding: 16px 22px;
}

.delivery-mini-stat {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--status-tone, #20d7ff) 32%, transparent);
  background: color-mix(in srgb, var(--status-tone, #20d7ff) 10%, rgba(6, 18, 35, .76));
  padding: 12px;
}

.delivery-mini-stat.total { --status-tone: #20d7ff; }
.delivery-mini-stat.success { --status-tone: #21f3a5; }
.delivery-mini-stat.info { --status-tone: #22c7ff; }
.delivery-mini-stat.warning { --status-tone: #ffb84a; }
.delivery-mini-stat.danger { --status-tone: #ff527b; }
.delivery-mini-stat.purple { --status-tone: #a78bfa; }

.delivery-mini-stat span {
  display: block;
  color: #97aac8;
  font-size: 12px;
  font-weight: 900;
}

.delivery-mini-stat b {
  display: block;
  margin-top: 6px;
  color: #f4fbff;
  font-size: 22px;
}

.delivery-product-list {
  margin: 0 22px 22px;
  border: 1px solid rgba(75, 126, 178, .16);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 14, 27, .36);
}

.ozon-fbs-table-wrap {
  margin: 0 22px 22px;
  border: 1px solid rgba(75, 126, 178, .16);
  border-radius: 18px;
  overflow: auto;
  background: rgba(4, 14, 27, .36);
}

.ozon-fbs-table {
  min-width: 1320px;
}

.ozon-fbs-table th,
.ozon-fbs-table td {
  vertical-align: top;
  white-space: nowrap;
}

.ozon-fbs-table td:nth-child(3) {
  min-width: 280px;
  white-space: normal;
}

.delivery-product-head,
.delivery-product-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 100px 150px 170px;
  gap: 14px;
  align-items: center;
}

.delivery-product-head {
  padding: 13px 16px;
  color: #8fa7c5;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(32, 215, 255, .055);
}

.delivery-product-row {
  padding: 13px 16px;
  border-top: 1px solid rgba(75, 126, 178, .12);
}

.delivery-product-main {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.delivery-product-main img,
.delivery-product-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(32, 215, 255, .1);
  border: 1px solid rgba(32, 215, 255, .22);
}

.delivery-product-placeholder {
  display: grid;
  place-items: center;
  color: #20d7ff;
  font-weight: 950;
}

.delivery-product-row strong {
  display: block;
  color: #eaf9ff;
  font-size: 14px;
  line-height: 1.25;
}

.delivery-product-row small {
  display: block;
  margin-top: 4px;
  color: #8fa7c5;
  font-weight: 750;
}

.delivery-qty {
  width: fit-content;
  min-width: 44px;
  text-align: center;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(32, 215, 255, .12);
  border: 1px solid rgba(32, 215, 255, .34);
}

.delivery-status-badge {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: rgba(32, 215, 255, .13);
  border: 1px solid rgba(32, 215, 255, .32);
}

.delivery-status-badge.ok { background: rgba(33, 243, 165, .14); border-color: rgba(33, 243, 165, .42); color: #caffeb; }
.delivery-status-badge.warning { background: rgba(255, 184, 74, .14); border-color: rgba(255, 184, 74, .42); color: #ffe3af; }
.delivery-status-badge.danger { background: rgba(255, 82, 123, .14); border-color: rgba(255, 82, 123, .42); color: #ffd0db; }
.delivery-status-badge.info { background: rgba(32, 215, 255, .14); border-color: rgba(32, 215, 255, .42); color: #d8f8ff; }

.delivery-updated {
  color: #b7c8e2;
  font-weight: 750;
}

.delivery-empty {
  padding: 18px;
  color: #8fa7c5;
  font-size: 14px;
}

.combined-warehouse-table th {
  vertical-align: bottom;
  white-space: nowrap;
}

.store-head-mini {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.store-stock-cell {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(42px, auto));
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.store-stock-cell span:first-child,
.cost-from-warehouse {
  color: var(--text);
  font-weight: 950;
}

.store-stock-cell span:nth-child(2) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.store-stock-card {
  min-width: 170px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(103,210,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.store-stock-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.store-stock-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.store-stock-line b {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

body.theme-light .store-stock-card {
  background: rgba(255,255,255,.7);
  border-color: rgba(84, 163, 255, .22);
}

@media (max-width: 1100px) {
  .delivery-kpi-grid,
  .delivery-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .delivery-product-head,
  .delivery-product-row {
    grid-template-columns: minmax(240px, 1fr) 82px 130px 140px;
  }

  .sidebar {
    width: 220px;
  }
  .app {
    margin-left: 220px;
  }
  .kpi-grid,
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }
  .sidebar {
    position: static;
    width: auto;
  }
  .app {
    margin-left: 0;
    max-height: none;
  }
  .kpi-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .dashboard-stock-list {
    grid-template-columns: 1fr;
  }
  .toolbar-grid {
    grid-template-columns: 1fr;
  }
}

.admin-create-card {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid rgba(169, 196, 231, .42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .98), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(236, 246, 255, .78));
  box-shadow: 0 22px 70px rgba(48, 88, 139, .16), inset 0 1px 0 rgba(255,255,255,.98);
  color: #10233f;
}

.admin-create-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(142, 166, 199, .28);
}

.admin-create-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-size: 40px;
  line-height: 1;
  color: #257cff;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(229, 240, 255, .92));
  box-shadow: 0 16px 38px rgba(48, 93, 158, .13), inset 0 1px 0 rgba(255,255,255,1);
}

.admin-create-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.1vw, 38px);
  letter-spacing: 0;
  color: #10233f;
}

.admin-create-head p {
  margin: 0;
  color: #62738f;
  font-size: 18px;
  font-weight: 700;
}

.admin-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(160px, 1.2fr) minmax(210px, 1.35fr) minmax(130px, .7fr) auto;
  gap: 22px;
  align-items: end;
  padding-top: 28px;
}

.admin-field {
  display: grid;
  gap: 10px;
  color: #243653;
  font-weight: 900;
  font-size: 16px;
}

.admin-input-wrap {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid rgba(138, 164, 198, .36);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 18px rgba(59, 99, 150, .06);
}

.admin-input-wrap i,
.admin-input-wrap b {
  font-style: normal;
  color: #7c8da8;
  font-size: 24px;
  flex: 0 0 auto;
}

.admin-input-wrap b {
  margin-left: auto;
  font-size: 18px;
}

.admin-input-wrap input,
.admin-role-field select {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10233f;
  font: inherit;
  font-weight: 800;
}

.admin-role-field select {
  padding: 0 18px;
  border: 1px solid rgba(138, 164, 198, .36);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 18px rgba(59, 99, 150, .06);
}

.admin-input-wrap:focus-within,
.admin-role-field select:focus {
  border-color: rgba(37, 124, 255, .66);
  box-shadow: 0 0 0 4px rgba(37, 124, 255, .10), 0 14px 28px rgba(50, 112, 207, .12);
}

.admin-create-submit {
  min-height: 62px;
  white-space: nowrap;
  border: 0;
  border-radius: 16px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-weight: 950;
  font-size: 17px;
  cursor: pointer;
  background: linear-gradient(135deg, #2f8dff, #1767f2);
  box-shadow: 0 18px 36px rgba(37, 124, 255, .28), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.admin-create-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 24px 44px rgba(37, 124, 255, .34), inset 0 1px 0 rgba(255,255,255,.45);
}

body:not(.theme-light) .admin-create-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(28, 64, 106, .72), transparent 34%),
    linear-gradient(135deg, rgba(12, 27, 48, .96), rgba(7, 18, 34, .92));
  border-color: rgba(85, 136, 196, .36);
  color: #f4f8ff;
}

body:not(.theme-light) .admin-create-head {
  border-bottom-color: rgba(120, 168, 220, .18);
}

body:not(.theme-light) .admin-create-head h2,
body:not(.theme-light) .admin-field {
  color: #f4f8ff;
}

body:not(.theme-light) .admin-create-head p {
  color: #9fb3c8;
}

body:not(.theme-light) .admin-input-wrap,
body:not(.theme-light) .admin-role-field select {
  background: rgba(4, 17, 32, .72);
  border-color: rgba(78, 135, 190, .34);
}

body:not(.theme-light) .admin-input-wrap input,
body:not(.theme-light) .admin-role-field select {
  color: #f4f8ff;
}

@media (max-width: 1280px) {
  .admin-create-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .admin-create-submit {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .admin-create-card {
    padding: 22px;
    border-radius: 22px;
  }
  .admin-create-head {
    align-items: flex-start;
    gap: 14px;
  }
  .admin-create-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 30px;
  }
  .admin-create-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Simplified admin panel */
.admin-shell { display: grid; gap: 18px; }
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.admin-hero h2 { margin: 0 0 4px; font-size: 28px; }
.admin-kpis.kpi-grid { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px; width: fit-content; border: 1px solid rgba(127, 169, 220, .28); border-radius: 18px; background: rgba(255,255,255,.58); box-shadow: 0 18px 44px rgba(80, 125, 190, .13); }
.admin-tab { border: 0; cursor: pointer; padding: 11px 18px; border-radius: 14px; color: #24405f; background: transparent; font-weight: 800; }
.admin-tab.active { color: #061b36; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(204,235,255,.78)); box-shadow: 0 10px 28px rgba(32, 141, 255, .18), inset 0 0 0 1px rgba(32, 141, 255, .24); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 12px; }
.admin-toolbar h2 { margin: 0; }
.admin-create-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(37, 124, 255, .38);
  border-radius: 16px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .44), transparent 26%),
    linear-gradient(135deg, #23c8ff 0%, #2d7cff 52%, #7c5cff 100%);
  box-shadow:
    0 18px 34px rgba(37, 124, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.admin-create-profile-btn span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #1d65ff;
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  font-size: 17px;
  line-height: 1;
}
.admin-create-profile-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 22px 42px rgba(37, 124, 255, .34),
    0 0 0 5px rgba(32, 215, 255, .10),
    inset 0 1px 0 rgba(255, 255, 255, .48);
}
.admin-create-profile-btn:active {
  transform: translateY(0);
}
.admin-table-card { overflow: auto; border-radius: 22px; }
.admin-table-card .table th { color: #607792; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.admin-table-card .table td { vertical-align: middle; }
.admin-status { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; padding: 7px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; border: 1px solid transparent; color: #07192e; }
.admin-status.ok { background: rgba(33, 243, 165, .24); border-color: rgba(14, 163, 111, .36); }
.admin-status.warning { background: rgba(255, 184, 74, .28); border-color: rgba(215, 139, 18, .38); }
.admin-status.danger { background: rgba(255, 82, 123, .20); border-color: rgba(205, 45, 90, .36); }
  .admin-profile-modal { max-width: 920px; grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .admin-profile-name-line { display: flex; align-items: center; gap: 8px; }
  .admin-favorite-btn {
    width: 32px; height: 32px; padding: 0; border-radius: 10px;
    border: 1px solid rgba(245, 181, 36, .45); background: rgba(255, 210, 92, .10);
    color: #d89a0b; font-size: 21px; line-height: 1; cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .admin-favorite-btn:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 7px 18px rgba(227, 166, 25, .20); }
  .admin-favorite-btn.active { color: #f4a900; background: rgba(255, 211, 84, .24); box-shadow: 0 0 0 3px rgba(255, 200, 56, .10); }
  .admin-favorite-mark { color: #f4a900; font-size: 20px; }
  .admin-profile-favorite td { background: linear-gradient(90deg, rgba(255, 220, 106, .15), rgba(255, 248, 218, .08)); }
  .admin-profile-favorite td:first-child { box-shadow: inset 4px 0 0 #f2b62d; }
.admin-profile-modal .wide { grid-column: 1 / -1; }
.admin-profile-modal textarea { resize: vertical; }
.admin-role-modal { max-width: 900px; grid-template-columns: repeat(2, minmax(240px, 1fr)); }
.admin-role-modal .wide { grid-column: 1 / -1; }
.role-key { margin-top: 4px; font-size: 12px; }
.role-access-list { display: flex; flex-wrap: wrap; gap: 7px; max-width: 760px; }
.role-access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(32, 215, 255, .34);
  background: rgba(32, 215, 255, .10);
  color: #dff7ff;
  font-weight: 800;
  font-size: 12px;
}
.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(114, 153, 210, .22);
  border-radius: 18px;
  background: rgba(8, 24, 42, .20);
}
.role-permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 144, 205, .22);
  border-radius: 14px;
  background: rgba(9, 28, 50, .28);
  color: #eaf7ff;
  font-weight: 850;
}
.role-permission-item input { width: 16px; height: 16px; accent-color: #20d7ff; }
body.theme-light .admin-shell .card,
body.theme-light .admin-table-card,
body.theme-light .admin-hero { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(230,244,255,.70)); border-color: rgba(157, 190, 230, .55); color: #0b203a; }
body.theme-light .admin-table-card .table td,
body.theme-light .admin-table-card .table th { color: #10243e; }
body.theme-light .admin-profile-modal { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(231,244,255,.94)); color: #10233f; }
body.theme-light .admin-role-modal { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(231,244,255,.94)); color: #10233f; }
body.theme-light .role-access-pill { background: rgba(24, 118, 255, .10); border-color: rgba(24, 118, 255, .28); color: #123251; }
body.theme-light .role-permission-grid { background: rgba(255,255,255,.54); border-color: rgba(157, 190, 230, .56); }
body.theme-light .role-permission-item { background: rgba(255,255,255,.72); border-color: rgba(157, 190, 230, .56); color: #10233f; }
body:not(.theme-light) .admin-tabs { background: rgba(8, 24, 42, .72); border-color: rgba(69, 128, 190, .26); }
body:not(.theme-light) .admin-tab { color: #b8c8dd; }
body:not(.theme-light) .admin-tab.active { color: #f4fbff; background: linear-gradient(135deg, rgba(22, 64, 101, .94), rgba(24, 104, 151, .55)); }
body:not(.theme-light) .admin-status { color: #f4fbff; }
@media (max-width: 1300px) { .admin-kpis.kpi-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); } }
@media (max-width: 760px) { .admin-hero, .admin-toolbar { align-items: stretch; flex-direction: column; } .admin-kpis.kpi-grid { grid-template-columns: 1fr; } .admin-profile-modal, .admin-role-modal { grid-template-columns: 1fr; } .role-permission-grid { grid-template-columns: 1fr; } }

/* External AI access */
.ai-admin-grid {
  align-items: stretch;
  margin-bottom: 16px;
}

.ai-key-card .form-grid .wide {
  grid-column: 1 / -1;
}

.ai-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ai-token-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(33, 243, 165, .32);
  background: rgba(33, 243, 165, .08);
}

.ai-token-box textarea {
  width: 100%;
  min-height: 82px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(32, 215, 255, .28);
  background: rgba(4, 14, 26, .70);
  color: #eaf8ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}

.ai-docs {
  display: grid;
  gap: 10px;
}

.ai-docs h3 {
  margin: 0;
}

.ai-doc-line {
  display: grid;
  gap: 6px;
}

.ai-docs code,
.ai-docs pre {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(75, 126, 178, .22);
  background: rgba(3, 12, 24, .46);
  color: #dff7ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-ai-suggestion {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(33, 243, 165, .28);
  background: rgba(33, 243, 165, .08);
  color: #dffcf0;
}

.ai-assistant-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(32, 215, 255, .22);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, .16), transparent 34%),
    linear-gradient(135deg, rgba(9, 28, 50, .72), rgba(4, 15, 29, .66));
}

.ai-assistant-page .ai-assistant-card {
  margin-top: 0;
}

.ai-assistant-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 74, .28);
  background: rgba(255, 184, 74, .08);
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 9px;
  background: rgba(32, 215, 255, .10);
  color: #20d7ff;
  cursor: grab;
  user-select: none;
}

tr.dragging {
  opacity: .58;
}

body.theme-light .drag-handle {
  background: rgba(24, 118, 255, .12);
  color: #0f58d6;
}

body.theme-light .ai-assistant-note {
  background: rgba(255,255,255,.72);
  border-color: rgba(255, 184, 74, .34);
  color: #10233f;
}

.ai-assistant-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ai-assistant-head h3 {
  margin: 0 0 4px;
}

.ai-chat-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.ai-chat-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(75, 126, 178, .14);
}

.ai-chat-question {
  color: var(--text);
  font-weight: 900;
}

.ai-chat-answer {
  color: #dffcf0;
  font-size: 13px;
  line-height: 1.45;
}

.ai-chat-answer.pending {
  color: #ffd8a7;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.ai-chat-form input {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(75, 126, 178, .24);
  background: rgba(4, 14, 26, .58);
  color: var(--text);
  padding: 0 13px;
  outline: 0;
}

body.theme-light .ai-token-box textarea,
body.theme-light .ai-docs code,
body.theme-light .ai-docs pre,
body.theme-light .ai-chat-form input {
  background: rgba(255,255,255,.82);
  color: #10233f;
}

body.theme-light .feedback-ai-suggestion,
body.theme-light .ai-assistant-card,
body.theme-light .ai-chat-row,
body.theme-light .ai-token-box {
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(227,244,255,.58));
  border-color: rgba(78, 171, 255, .28);
  color: #10233f;
}

body.theme-light .ai-chat-answer,
body.theme-light .feedback-ai-suggestion {
  color: #0f5132;
}

body.theme-light .ai-chat-answer.pending {
  color: #8a5a10;
}

.ai-assistant-page {
  overflow: hidden;
}

.ai-command-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 42%);
  gap: 18px;
  align-items: stretch;
}

.ai-command-intro {
  min-height: 300px;
  padding: 34px;
  border-radius: 24px;
  border: 1px solid rgba(32, 215, 255, .22);
  background:
    radial-gradient(circle at 82% 18%, rgba(32, 215, 255, .18), transparent 28%),
    radial-gradient(circle at 18% 100%, rgba(139, 92, 246, .18), transparent 36%),
    linear-gradient(135deg, rgba(8, 30, 54, .96), rgba(5, 14, 29, .92));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ai-command-intro h2 {
  max-width: 660px;
  margin: 8px 0 10px;
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.ai-command-intro p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
}

.ai-command-kicker {
  display: block;
  color: #56e7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ai-period-switch {
  display: inline-flex;
  align-self: flex-start;
  gap: 5px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(94, 176, 233, .18);
  background: rgba(2, 10, 22, .42);
}

.ai-period-switch button {
  border: 0;
  border-radius: 9px;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-period-switch button.active {
  background: linear-gradient(135deg, #20d7ff, #8b5cf6);
  color: #03101d;
  box-shadow: 0 7px 18px rgba(32, 215, 255, .18);
}

.ai-command-top .ai-assistant-card {
  width: 100%;
  min-height: 390px;
  margin: 0;
  padding: 21px;
  display: flex;
  flex-direction: column;
}

.ai-command-top .ai-chat-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.ai-command-top .ai-chat-row {
  gap: 8px;
  padding: 12px 13px;
}

.ai-command-top .ai-chat-question {
  font-size: 14px;
  line-height: 1.4;
}

.ai-command-top .ai-chat-answer {
  font-size: 14px;
  line-height: 1.55;
}

.ai-command-top .ai-chat-form {
  margin-top: 12px;
}

.ai-command-top .ai-chat-form input {
  min-height: 46px;
  font-size: 14px;
}

.ai-command-top .ai-chat-form button {
  width: 46px;
  min-width: 46px;
  border-radius: 13px;
  font-size: 21px;
}

.ai-online-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #21f3a5;
  box-shadow: 0 0 0 5px rgba(33, 243, 165, .11), 0 0 18px rgba(33, 243, 165, .65);
}

.ai-dashboard {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.ai-main-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(33, 243, 165, .2);
  border-radius: 22px;
  background: linear-gradient(100deg, rgba(33, 243, 165, .10), rgba(32, 215, 255, .05));
}

.ai-insight-orb {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #21f3a5, #20d7ff);
  color: #041622;
  font-weight: 950;
  box-shadow: 0 10px 25px rgba(33, 243, 165, .18);
}

.ai-main-insight h3 {
  margin: 4px 0;
  font-size: 20px;
}

.ai-main-insight p {
  margin: 0;
  color: var(--muted);
}

.ai-period-caption {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.ai-insight-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ai-request-analysis-btn {
  min-height: 42px;
  border: 1px solid rgba(33, 243, 165, .34);
  border-radius: 13px;
  padding: 0 16px;
  background: linear-gradient(135deg, rgba(33, 243, 165, .18), rgba(32, 215, 255, .14));
  color: #baffdf;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 9px 24px rgba(33, 243, 165, .09);
}

.ai-agent-status {
  max-width: 230px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.ai-agent-status.ready {
  color: #75efbd;
}

.ai-agent-status.pending {
  color: #ffd087;
}

.ai-request-analysis-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 243, 165, .62);
}

.ai-request-analysis-btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

body.theme-light .ai-request-analysis-btn {
  color: #075f50;
  background: linear-gradient(135deg, rgba(33, 243, 165, .18), rgba(32, 161, 255, .12));
}

.ai-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-kpi-card {
  min-height: 118px;
  padding: 17px;
  border-radius: 19px;
  border: 1px solid rgba(75, 126, 178, .18);
  background: rgba(5, 19, 36, .62);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-kpi-card.warning {
  border-color: rgba(255, 184, 74, .25);
  background: linear-gradient(145deg, rgba(255, 184, 74, .1), rgba(5, 19, 36, .62));
}

.ai-kpi-card > span,
.ai-kpi-card small {
  color: var(--muted);
  font-size: 12px;
}

.ai-kpi-card > strong {
  margin: 6px 0;
  font-size: 28px;
  letter-spacing: -.03em;
}

.ai-delta {
  width: max-content;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.ai-delta.positive { color: #21f3a5; background: rgba(33, 243, 165, .1); }
.ai-delta.negative { color: #ff8394; background: rgba(255, 83, 110, .1); }
.ai-delta.neutral { color: var(--muted); background: rgba(255,255,255,.05); }

.ai-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-data-panel {
  min-width: 0;
  padding: 19px;
  border-radius: 22px;
  border: 1px solid rgba(75, 126, 178, .17);
  background: rgba(5, 18, 34, .58);
}

.ai-priority-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, .12), transparent 35%),
    rgba(5, 18, 34, .62);
}

.ai-stock-panel {
  border-color: rgba(255, 184, 74, .21);
}

.ai-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-panel-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.ai-product-list,
.ai-action-list {
  display: grid;
  gap: 7px;
}

.ai-product-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 56px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.ai-product-row strong,
.ai-product-row small {
  display: block;
}

.ai-product-row > div > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-product-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ai-rank {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(32, 215, 255, .1);
  color: #56e7ff;
  font-size: 11px;
  font-weight: 900;
}

.ai-stock-signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ai-stock-signal.warning { background: #ffb84a; box-shadow: 0 0 12px rgba(255, 184, 74, .6); }
.ai-stock-signal.danger { background: #ff536e; box-shadow: 0 0 12px rgba(255, 83, 110, .6); }

.ai-product-metric {
  text-align: right;
  white-space: nowrap;
}

.ai-action-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(75, 126, 178, .12);
}

.ai-action-row:last-child { border-bottom: 0; }

.ai-action-row > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .25), rgba(32, 215, 255, .18));
  color: #d8efff;
  font-size: 11px;
  font-weight: 900;
}

.ai-action-row p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.ai-empty {
  padding: 18px;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.03);
}

.ai-empty.success { color: #8af5c8; }

.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(75, 126, 178, .16);
  background: rgba(4, 15, 28, .48);
}

.ai-quick-prompts > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ai-quick-prompts button {
  border: 1px solid rgba(32, 215, 255, .18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(32, 215, 255, .07);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-search-positions {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(32, 215, 255, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(32, 215, 255, .12), transparent 34%),
    linear-gradient(145deg, rgba(8, 28, 49, .88), rgba(5, 17, 31, .76));
}

.ai-search-positions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ai-search-positions-head h3 {
  margin: 6px 0;
  font-size: 22px;
}

.ai-search-positions-head p {
  margin: 0;
}

.ai-position-tools {
  display: grid;
  min-width: 280px;
  gap: 7px;
}

.ai-position-refresh-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(33, 243, 165, .38);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(33, 243, 165, .20), rgba(32, 215, 255, .16));
  color: #baffdf;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ai-position-refresh-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 243, 165, .62);
}

.ai-position-refresh-btn:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.ai-position-tools input {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(78, 171, 255, .25);
  border-radius: 13px;
  outline: 0;
  background: rgba(2, 12, 24, .5);
  color: var(--text);
}

.ai-position-updated {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.ai-position-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 13px;
}

.ai-position-account-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid rgba(78, 171, 255, .15);
  border-radius: 16px;
  background: rgba(2, 12, 24, .22);
}

.ai-position-account-filters > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ai-position-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 171, 255, .20);
  border-radius: 999px;
  background: rgba(32, 215, 255, .06);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-position-account-chip.active {
  border-color: rgba(33, 243, 165, .42);
  background: rgba(33, 243, 165, .12);
}

.ai-position-account-chip input {
  accent-color: #21f3a5;
}

.ai-position-account-chip span {
  color: #7defff;
  font-size: 10px;
  letter-spacing: .06em;
}

.ai-position-account-chip small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  text-align: center;
}

.ai-position-city-tabs span {
  padding: 8px 12px;
  border: 1px solid rgba(78, 171, 255, .22);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-position-city-tabs span.active {
  border-color: rgba(32, 215, 255, .42);
  background: rgba(32, 215, 255, .12);
  color: #bdf7ff;
}

.ai-position-city-tabs span.disabled {
  opacity: .52;
}

.ai-position-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid rgba(78, 171, 255, .17);
  border-radius: 18px;
}

.ai-position-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ai-position-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px;
  background: rgba(7, 24, 43, .98);
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.ai-position-table td {
  padding: 12px;
  border-top: 1px solid rgba(78, 171, 255, .11);
  vertical-align: middle;
}

.ai-position-table tbody tr:hover {
  background: rgba(32, 215, 255, .055);
}

.ai-position-table td:first-child {
  min-width: 320px;
}

.ai-position-table td:nth-child(2) {
  min-width: 220px;
}

.ai-position-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.ai-position-product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.ai-position-product img,
.ai-position-product-placeholder {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(78, 171, 255, .22);
  border-radius: 13px;
  object-fit: cover;
  background: rgba(255,255,255,.07);
}

.ai-position-product-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.ai-position-product strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-position-city {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(32, 215, 255, .10);
  color: #bdf7ff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.ai-position-change {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.ai-position-change.up {
  background: rgba(33, 243, 165, .13);
  color: #7dffc8;
}

.ai-position-change.down {
  background: rgba(255, 82, 123, .13);
  color: #ff9cb4;
}

.ai-position-change.neutral,
.ai-position-empty {
  color: var(--muted);
}

.ai-position-empty-state {
  display: grid;
  gap: 7px;
  padding: 30px;
  border: 1px dashed rgba(78, 171, 255, .28);
  border-radius: 18px;
  text-align: center;
}

.ai-position-empty-state span,
.ai-position-region-note {
  color: var(--muted);
  font-size: 12px;
}

.ai-position-region-note {
  margin: 12px 2px 0;
}

body.theme-light .ai-search-positions {
  border-color: rgba(78, 171, 255, .30);
  background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(225, 242, 255, .72));
  color: #10233f;
}

body.theme-light .ai-position-tools input,
body.theme-light .ai-position-table th {
  background: rgba(255,255,255,.94);
  color: #10233f;
}

body.theme-light .ai-position-account-filters {
  border-color: rgba(73, 140, 210, .18);
  background: rgba(255,255,255,.58);
}

body.theme-light .ai-position-account-chip {
  background: rgba(32, 157, 255, .08);
  color: #10233f;
}

body.theme-light .ai-position-account-chip.active {
  background: rgba(33, 243, 165, .22);
}

body.theme-light .ai-position-account-chip span,
body.theme-light .ai-position-city {
  color: #0d5da8;
}

body.theme-light .ai-position-refresh-btn {
  border-color: rgba(18, 164, 112, .34);
  background: linear-gradient(135deg, rgba(33, 243, 165, .24), rgba(32, 157, 255, .14));
  color: #07553a;
}

body.theme-light .ai-position-table-wrap,
body.theme-light .ai-position-table td {
  border-color: rgba(73, 140, 210, .18);
}

body.theme-light .ai-position-city-tabs span.active {
  color: #0d5da8;
}

@media (max-width: 900px) {
  .ai-search-positions-head {
    display: grid;
  }

  .ai-position-tools {
    min-width: 0;
  }

  .ai-position-updated {
    text-align: left;
  }
}

.ai-quick-prompts button:hover {
  transform: translateY(-1px);
  border-color: rgba(32, 215, 255, .42);
}

body.theme-light .ai-command-intro,
body.theme-light .ai-kpi-card,
body.theme-light .ai-data-panel,
body.theme-light .ai-quick-prompts {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(228,244,255,.72));
  border-color: rgba(50, 132, 200, .19);
  color: #10233f;
}

body.theme-light .ai-product-row {
  background: rgba(32, 92, 145, .055);
}

@media (max-width: 760px) {
  .ai-permission-grid,
  .ai-chat-form {
    grid-template-columns: 1fr;
  }

  .ai-command-top,
  .ai-analysis-grid,
  .ai-kpi-grid {
    grid-template-columns: 1fr;
  }

  .ai-command-intro {
    min-height: 0;
    padding: 24px;
  }

  .ai-command-top .ai-assistant-card {
    aspect-ratio: auto;
    min-height: 330px;
  }

  .ai-main-insight {
    grid-template-columns: auto 1fr;
  }

  .ai-period-caption {
    grid-column: 1 / -1;
  }

  .ai-insight-tools {
    grid-column: 1 / -1;
    width: 100%;
    justify-items: stretch;
  }

  .ai-request-analysis-btn {
    width: 100%;
  }
}

/* Mobile layout */
@media (max-width: 860px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow: auto;
    min-width: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    max-height: none;
    padding: 12px 12px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 126, 178, .22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
    overflow: visible;
  }

  .brand {
    margin-bottom: 10px;
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 13px;
  }

  .brand-title {
    font-size: 18px;
    line-height: 1.05;
  }

  .brand-sub {
    font-size: 12px;
  }

  #nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  #nav::-webkit-scrollbar {
    height: 4px;
  }

  #nav::-webkit-scrollbar-thumb {
    background: rgba(32, 215, 255, .32);
    border-radius: 999px;
  }

  .nav-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    height: 48px;
    padding: 7px 11px;
    border-radius: 16px;
    gap: 9px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  .nav-btn:hover {
    transform: none;
  }

  .nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 10px;
  }

  .sidebar-card.account-status-card {
    display: none;
  }

  .app {
    margin-left: 0;
    max-height: none;
    min-height: auto;
    padding: 14px 10px 28px;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 112px;
    z-index: 20;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: -2px -10px 12px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(6, 17, 31, .94), rgba(6, 17, 31, .78));
    border-bottom: 1px solid rgba(75, 126, 178, .18);
    backdrop-filter: blur(18px);
  }

  body.theme-light .topbar {
    background: linear-gradient(180deg, rgba(244, 250, 255, .96), rgba(236, 246, 255, .78));
  }

  .topbar h1 {
    font-size: 24px;
    letter-spacing: 0;
  }

  .topbar p {
    display: none;
  }

  .top-actions,
  .toolbar,
  .toolbar-actions,
  .unit-page-actions,
  .delivery-head-actions {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .profile-chip {
    min-width: 132px;
  }

  .section-help-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .glass-btn,
  .icon-glass-btn,
  button,
  select,
  input,
  textarea {
    min-height: 42px;
  }

  .glass-btn {
    padding: 10px 13px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .grid,
  .kpi-grid,
  .two-col,
  .dashboard-stock-list,
  .ai-report-grid,
  .ai-report-columns,
  .delivery-kpi-grid,
  .delivery-mini-stats,
  .settings-mini-grid,
  .admin-kpis.kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 14px;
    border-radius: 18px;
  }

  .card-head,
  .delivery-page-head,
  .delivery-store-head,
  .admin-hero,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .kpi {
    min-height: 108px;
  }

  .kpi-value {
    font-size: 24px;
  }

  .chart {
    height: 260px;
    min-width: 640px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .card:has(.chart) {
    overflow-x: auto;
  }

  .table {
    min-width: 760px;
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 10px 8px;
    white-space: nowrap;
  }

  .card:has(.table),
  .admin-table-card,
  .unit-store-card,
  .delivery-product-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-name-cell {
    min-width: 260px;
  }

  .item,
  .attention-list .attention-item {
    grid-template-columns: 38px 1fr;
    align-items: start;
  }

  .item > :last-child,
  .attention-list .attention-item > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .toolbar-grid {
    grid-template-columns: 1fr !important;
  }

  .toolbar-grid select,
  .toolbar-grid button,
  .toolbar-grid input {
    width: 100%;
  }

  .delivery-product-head,
  .delivery-product-row {
    grid-template-columns: minmax(220px, 1fr) 72px 120px 118px;
    min-width: 560px;
  }

  .delivery-store-card,
  .unit-store-card,
  .admin-create-card {
    border-radius: 20px;
  }

  .delivery-store-actions {
    align-items: flex-start;
    gap: 10px;
  }

  .modal-card {
    width: min(96vw, 720px);
    max-height: 86vh;
    overflow-y: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .section-help-modal {
    width: min(96vw, 720px);
  }

  .section-help-title {
    align-items: flex-start;
  }

  .section-help-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .form-grid,
  .admin-create-form,
  .admin-profile-modal,
  .admin-role-modal,
  .role-permission-grid,
  .ai-permission-grid,
  .telegram-bot-form,
  .ai-chat-form {
    grid-template-columns: 1fr !important;
  }

  .admin-create-card {
    padding: 18px;
  }

  .admin-create-head {
    gap: 14px;
    padding-bottom: 18px;
  }

  .admin-create-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 30px;
  }

  .admin-create-head h2 {
    font-size: 24px;
  }

  .admin-create-head p {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .sidebar {
    padding-inline: 9px;
  }

  .nav-btn {
    min-width: 96px;
    max-width: 148px;
    height: 46px;
    font-size: 12px;
  }

  .nav-btn span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app {
    padding-inline: 8px;
  }

  .topbar {
    top: 104px;
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    overflow: visible;
  }

  .profile-chip {
    min-width: 0;
  }

  .status-dot {
    display: none;
  }

  .card,
  .modal-card {
    padding: 12px;
  }

  .card h2 {
    font-size: 20px;
  }

  .glass-btn {
    padding-inline: 11px;
    font-size: 12px;
  }

.chart {
  min-width: 560px;
}
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(78, 164, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.segment {
  border: 0;
  border-radius: 12px;
  padding: 8px 13px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.segment input {
  display: none;
}

.segment:hover {
  transform: translateY(-1px);
  background: rgba(32, 215, 255, 0.12);
}

.segment.active {
  color: #03152a;
  background: linear-gradient(135deg, #dff7ff, #b8ddff);
  box-shadow: 0 8px 22px rgba(32, 154, 255, 0.22);
}

[data-theme="dark"] .segmented-control {
  background: rgba(10, 25, 45, 0.72);
  border-color: rgba(32, 215, 255, 0.25);
}

[data-theme="dark"] .segment {
  color: #e8f6ff;
}

[data-theme="dark"] .segment.active {
  color: #031526;
}

.settings-api-check {
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-api-check .glass-btn {
  min-height: 42px;
  gap: 8px;
  border-color: rgba(32, 215, 255, .48);
  background: linear-gradient(135deg, rgba(32, 215, 255, .28), rgba(74, 121, 255, .22));
  box-shadow: 0 10px 24px rgba(32, 154, 255, .16);
}

.settings-api-spinner {
  display: inline-block;
  animation: settings-api-spin .8s linear infinite;
}

@keyframes settings-api-spin {
  to { transform: rotate(360deg); }
}

.funnel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(139, 92, 246, .22), transparent 34%),
    radial-gradient(circle at 12% 100%, rgba(32, 215, 255, .12), transparent 38%),
    var(--card);
}

.funnel-hero h2 {
  margin: 5px 0 7px;
}

.funnel-hero .eyebrow {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.funnel-kpis {
  margin-bottom: 16px;
}

.funnel-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.funnel-visual-card,
.funnel-insights-card,
.funnel-stores-card {
  margin-bottom: 0;
}

.sales-funnel {
  display: grid;
  gap: 9px;
  padding: 8px 0 4px;
}

.funnel-stage {
  width: var(--funnel-width);
  min-width: 220px;
  margin-inline: auto;
  transition: width .3s ease;
}

.funnel-stage-bar {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--funnel-color) 62%, transparent);
  border-radius: 15px;
  color: #f7fbff;
  background: linear-gradient(115deg, color-mix(in srgb, var(--funnel-color) 76%, #07192d), color-mix(in srgb, var(--funnel-color) 42%, #07192d));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--funnel-color) 20%, transparent);
}

.funnel-stage-bar span {
  font-weight: 800;
}

.funnel-stage-bar strong {
  font-size: 23px;
}

.funnel-stage small {
  display: block;
  margin-top: 4px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.funnel-stage.unavailable {
  opacity: .62;
}

.funnel-stage.unavailable .funnel-stage-bar {
  border-style: dashed;
  background: linear-gradient(115deg, rgba(67, 91, 119, .72), rgba(35, 54, 77, .62));
  box-shadow: none;
}

.funnel-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.funnel-outcomes > div {
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  border: 1px solid rgba(92, 151, 205, .18);
  border-radius: 12px;
  background: rgba(9, 35, 58, .42);
}

.funnel-outcomes strong {
  font-size: 18px;
}

.funnel-outcomes small {
  grid-column: 2;
  color: var(--muted);
}

.outcome-dot {
  width: 10px;
  height: 10px;
  grid-row: 1 / 3;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.outcome-dot.buyout { color: #21f3a5; background: currentColor; }
.outcome-dot.pending { color: #38bdf8; background: currentColor; }
.outcome-dot.cancel { color: #ff9d2e; background: currentColor; }
.outcome-dot.returns { color: #ff5b7f; background: currentColor; }

.funnel-insights {
  display: grid;
  gap: 10px;
}

.funnel-insight {
  padding: 13px;
  display: flex;
  gap: 11px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 13px;
  background: rgba(10, 39, 64, .42);
}

.funnel-insight > span {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06233b;
  background: #38bdf8;
  font-weight: 1000;
}

.funnel-insight.warning { border-color: rgba(255, 184, 77, .4); }
.funnel-insight.warning > span { background: #ffb84d; }
.funnel-insight.danger { border-color: rgba(255, 91, 127, .44); }
.funnel-insight.danger > span { color: #fff; background: #ff5b7f; }
.funnel-insight.success { border-color: rgba(33, 243, 165, .38); }
.funnel-insight.success > span { background: #21f3a5; }

.funnel-insight p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.funnel-stores-card,
.funnel-products-card {
  margin-bottom: 16px;
}

.funnel-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.funnel-store {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid rgba(107, 154, 203, .2);
  border-radius: 14px;
  background: rgba(8, 32, 55, .42);
}

.funnel-store-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.funnel-store-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-store-score {
  text-align: right;
}

.funnel-store-score strong {
  display: block;
  color: #21f3a5;
  font-size: 21px;
}

.funnel-store-score span {
  color: var(--muted);
  font-size: 11px;
}

.funnel-store-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.funnel-store-metrics span {
  padding: 8px;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(63, 111, 157, .12);
  font-size: 12px;
}

.funnel-store-metrics b {
  display: block;
  margin-top: 3px;
  color: var(--text);
}

.funnel-products-table td:first-child {
  min-width: 240px;
}

.funnel-good-value { color: #13c889; }
.funnel-bad-value { color: #ff5b7f; }

body.theme-light .funnel-outcomes > div,
body.theme-light .funnel-insight,
body.theme-light .funnel-store {
  background: rgba(239, 247, 255, .76);
}

@media (max-width: 1080px) {
  .funnel-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .funnel-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .funnel-periods {
    width: 100%;
  }

  .funnel-periods .segment {
    flex: 1;
  }

  .funnel-stage {
    min-width: 72%;
  }

  .funnel-outcomes,
  .funnel-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-store-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .funnel-stage {
    width: 100% !important;
    min-width: 0;
  }

  .funnel-outcomes {
    grid-template-columns: 1fr;
  }
}

.supply-section-title {
  margin: 14px 0 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.supply-section-title.inactive {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 145, 180, 0.2);
  color: var(--muted);
}

.supply-item-inactive {
  cursor: default !important;
  opacity: 0.62;
  filter: saturate(0.35);
  background: rgba(125, 139, 164, 0.07) !important;
  border-color: rgba(125, 139, 164, 0.17) !important;
}

.supply-item-inactive:hover {
  transform: none !important;
  box-shadow: none !important;
}

.supply-item-inactive .nav-icon {
  background: rgba(125, 139, 164, 0.14);
  color: var(--muted);
}

.supply-archive-note {
  margin-top: 5px;
  font-size: 11px;
}
.ozon-store-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 141, 255, 0.22);
  border-radius: 14px;
  background: rgba(37, 141, 255, 0.06);
}

.ozon-store-filter .auto-refresh-chip {
  cursor: pointer;
  opacity: 0.62;
}

.ozon-store-filter .auto-refresh-chip.active {
  opacity: 1;
  border-color: rgba(37, 141, 255, 0.48);
  background: rgba(37, 141, 255, 0.12);
}

.unit-promo-price {
  min-width: 132px;
}

.unit-promo-price.active {
  color: #a83c00;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 111, 0, 0.12));
  box-shadow: inset 3px 0 0 #ff8a00;
}

.unit-promo-price.active strong {
  color: #d65300;
  font-size: 1.05em;
}

.unit-promo-label {
  margin-top: 3px;
  color: #b44700;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.product360-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  border-color: rgba(33, 243, 165, 0.22);
  background: linear-gradient(135deg, rgba(33, 243, 165, 0.11), rgba(32, 215, 255, 0.08), rgba(255, 255, 255, 0.78));
}

.product360-head h2 {
  margin: 4px 0 5px;
}

.product360-head-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product360-head-metrics span {
  min-width: 88px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.product360-head-metrics b {
  display: block;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
}

.product360-head-metrics small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.product360-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product360-sidebar {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.product360-search input,
.product360-filters select,
.product360-edit-form input {
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
}

.product360-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product360-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}

.product360-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.product360-list-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.product360-list-ai {
  justify-self: end;
  margin-top: -3px;
  padding: 6px 10px;
  border: 1px solid rgba(20, 211, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 211, 255, 0.18), rgba(126, 87, 255, 0.16));
  color: #075985;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(32, 139, 255, 0.1);
}

.product360-list-ai:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 211, 255, 0.7);
  box-shadow: 0 10px 24px rgba(32, 139, 255, 0.18);
}

.product360-list-item:hover,
.product360-list-item.active {
  transform: translateY(-1px);
  border-color: rgba(32, 215, 255, 0.55);
  box-shadow: 0 10px 26px rgba(32, 139, 255, 0.12);
}

.product360-list-item.bad { border-left: 4px solid #ff5b7f; }
.product360-list-item.warn { border-left: 4px solid #ffb84d; }
.product360-list-item.good { border-left: 4px solid #21f3a5; }
.product360-list-item.stockout { border-left: 4px solid #8b5cf6; }

.product360-list-photo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(32, 215, 255, 0.13);
  color: #0084a7;
  font-weight: 900;
}

.product360-list-photo img,
.product360-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product360-list-main strong,
.product360-list-main small {
  display: block;
}

.product360-list-main strong {
  font-size: 12px;
  line-height: 1.25;
}

.product360-list-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.product360-mini-score {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(32, 215, 255, 0.12);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.product360-detail {
  min-width: 0;
}

.product360-hero-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.product360-hero-card.bad { border-color: rgba(255, 91, 127, 0.28); }
.product360-hero-card.warn { border-color: rgba(255, 184, 77, 0.34); }
.product360-hero-card.good { border-color: rgba(33, 243, 165, 0.28); }
.product360-hero-card.stockout { border-color: rgba(139, 92, 246, 0.32); }

.product360-hero-photo {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(32, 215, 255, 0.12);
  color: #0084a7;
  font-size: 42px;
  font-weight: 900;
}

.product360-hero-top,
.product360-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.product360-hero-main h2 {
  margin: 9px 0 6px;
  line-height: 1.2;
}

.product360-hero-actions {
  margin-top: 12px;
}

.product360-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.product360-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product360-card-block h3 {
  margin: 0 0 12px;
}

.product360-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product360-edit-form label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product360-input-wrap {
  position: relative;
}

.product360-input-wrap em {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.product360-edit-form button {
  grid-column: 1 / -1;
}

.product360-recommendations {
  margin: 0;
  padding-left: 18px;
}

.product360-recommendations li {
  margin: 7px 0;
  color: var(--text);
  font-weight: 700;
}

.product360-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product360-checks > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  padding: 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.product360-checks span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.product360-checks .ok span {
  background: rgba(33, 243, 165, 0.16);
  color: #008a5f;
}

.product360-checks .missing span {
  background: rgba(255, 91, 127, 0.13);
  color: #c7294e;
}

.product360-checks strong,
.product360-checks small {
  display: block;
}

.product360-checks small {
  margin-top: 2px;
  color: var(--muted);
}

.product360-keywords,
.product360-feedbacks,
.product360-ads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product360-keywords span,
.product360-feedbacks > div,
.product360-ads > div {
  padding: 9px 10px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.54);
}

.product360-keywords strong,
.product360-keywords small,
.product360-feedbacks strong,
.product360-feedbacks small,
.product360-ads strong,
.product360-ads span,
.product360-ads small {
  display: block;
}

.product360-keywords small,
.product360-feedbacks small,
.product360-ads small,
.product360-ads span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.product360-empty {
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
}

.empty-state.compact {
  padding: 14px;
  border-radius: 14px;
}

@media (max-width: 1300px) {
  .product360-kpi-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 980px) {
  .product360-layout {
    grid-template-columns: 1fr;
  }

  .product360-sidebar {
    position: static;
    max-height: none;
  }

  .product360-grid,
  .product360-edit-form {
    grid-template-columns: 1fr;
  }
}

.global-ai-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 18px;
  background: rgba(5, 14, 30, .28);
  backdrop-filter: blur(7px);
}

.global-ai-panel {
  width: min(520px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(33, 243, 165, .32);
  border-radius: 26px;
  background:
    radial-gradient(circle at 15% 5%, rgba(33, 243, 165, .18), transparent 35%),
    linear-gradient(145deg, rgba(245, 252, 255, .96), rgba(225, 244, 255, .94));
  box-shadow: 0 28px 80px rgba(5, 20, 45, .28);
  color: var(--text);
}

.global-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(125, 211, 252, .25);
}

.global-ai-head h2 {
  margin: 4px 0 4px;
}

.global-ai-chat-list {
  flex: 1;
  min-height: 320px;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 4px;
}

.global-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.global-ai-quick button {
  border: 1px solid rgba(32, 215, 255, .28);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .62);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.global-ai-quick button:hover {
  border-color: rgba(33, 243, 165, .55);
  background: rgba(33, 243, 165, .12);
}

.global-ai-form {
  margin-top: 0;
}

body.theme-light .global-ai-panel {
  background:
    radial-gradient(circle at 15% 5%, rgba(33, 243, 165, .22), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(230, 246, 255, .96));
}

@media (max-width: 720px) {
  .global-ai-modal {
    padding: 10px;
  }

  .global-ai-panel {
    width: 100%;
    border-radius: 22px;
  }
}

.sales-graphs-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sales-graphs-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sales-graphs-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sales-graphs-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-graphs-controls input {
  min-width: 150px;
  border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  font-weight: 800;
}

.sales-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
}

.sales-graph-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.sales-graph-legend i.hot,
.sales-graph-day-cell.hot {
  background: linear-gradient(135deg, rgba(33, 243, 165, .88), rgba(32, 215, 255, .72));
  color: #062132;
}

.sales-graph-legend i.good,
.sales-graph-day-cell.good {
  background: rgba(33, 243, 165, .34);
  color: var(--text);
}

.sales-graph-legend i.low,
.sales-graph-day-cell.low {
  background: rgba(255, 184, 74, .38);
  color: var(--text);
}

.sales-graph-legend i.zero,
.sales-graph-day-cell.zero {
  background: rgba(148, 163, 184, .12);
  color: rgba(148, 163, 184, .75);
}

.sales-graph-stores {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sales-graph-store {
  border: 1px solid rgba(125, 211, 252, .26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(33, 243, 165, .12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(219, 242, 255, .34));
  box-shadow: 0 18px 46px rgba(5, 20, 45, .12);
  overflow: hidden;
}

.sales-graph-store-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.sales-graph-store-head::-webkit-details-marker {
  display: none;
}

.sales-graph-store-head h2 {
  margin: 6px 0 4px;
}

.sales-graph-store-metrics {
  text-align: right;
  min-width: 120px;
}

.sales-graph-store-metrics strong {
  display: block;
  font-size: 24px;
}

.sales-graph-store-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-graph-table-wrap {
  overflow: auto;
  border-top: 1px solid rgba(125, 211, 252, .18);
  max-height: 70vh;
}

.sales-graph-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.sales-graph-table th,
.sales-graph-table td {
  white-space: nowrap;
}

.sales-graph-product-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 310px;
  max-width: 360px;
  background: rgba(238, 248, 255, .96);
}

.sales-graph-table thead .sales-graph-product-col {
  z-index: 5;
}

.sales-graph-total-col,
.sales-graph-trend-col {
  min-width: 98px;
}

.sales-graph-day-head {
  min-width: 42px;
  text-align: center;
  color: var(--muted);
}

.sales-graph-day-head.today {
  color: #0f766e;
  background: rgba(33, 243, 165, .16);
}

.sales-graph-day-head.future {
  opacity: .45;
}

.sales-graph-day-cell {
  min-width: 42px;
  height: 38px;
  text-align: center;
  border-radius: 10px;
  font-weight: 900;
}

.sales-graph-day-cell.future {
  background: rgba(148, 163, 184, .07);
  opacity: .45;
}

.sales-graph-row.silent .sales-graph-product-col strong {
  color: rgba(239, 68, 68, .92);
}

.sales-graph-trend {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(148, 163, 184, .14);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sales-graph-trend.ok {
  background: rgba(33, 243, 165, .22);
  color: #047857;
}

.sales-graph-trend.danger {
  background: rgba(255, 82, 123, .16);
  color: #be123c;
}

.sales-graph-trend.warning {
  background: rgba(255, 184, 74, .2);
  color: #a16207;
}

body:not(.theme-light) .sales-graph-product-col {
  background: rgba(13, 28, 48, .96);
}

@media (max-width: 860px) {
  .sales-graphs-hero,
  .sales-graph-store-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sales-graphs-controls {
    justify-content: flex-start;
  }

  .sales-graph-store-metrics {
    text-align: left;
  }
}
