
/* Casino SEO Builder — real app replacement CSS
   Generated for existing SPA structure without changing HTML/JS.
   Themes: aqua, light, onyx, glass.
*/

:root,
html[data-theme="aqua"] {
  --ui-radius-xs: 10px;
  --ui-radius-sm: 14px;
  --ui-radius-md: 18px;
  --ui-radius-lg: 24px;
  --ui-sidebar-w: 220px;
  --ui-topbar-h: 56px;
  --ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ui-page:
    radial-gradient(80rem 36rem at 82% 10%, rgba(124, 75, 255, 0.22), transparent 42%),
    radial-gradient(58rem 28rem at 70% 62%, rgba(0, 196, 255, 0.10), transparent 40%),
    linear-gradient(180deg, #031122 0%, #061225 48%, #071328 100%);

  --ui-sidebar-bg: rgba(2, 12, 28, 0.94);
  --ui-topbar-bg: rgba(4, 15, 32, 0.86);
  --ui-surface: linear-gradient(180deg, rgba(5, 19, 40, 0.96), rgba(4, 16, 36, 0.96));
  --ui-surface-2: rgba(8, 22, 45, 0.84);
  --ui-surface-3: rgba(8, 24, 48, 0.88);
  --ui-surface-soft: rgba(8, 24, 48, 0.70);

  --ui-border: rgba(77, 177, 255, 0.18);
  --ui-border-strong: rgba(115, 120, 255, 0.28);
  --ui-line: rgba(109, 172, 255, 0.10);

  --ui-text: #f3f7ff;
  --ui-text-2: #95a9d6;
  --ui-text-3: #6f85b9;

  --ui-primary-1: #22baff;
  --ui-primary-2: #6a53ff;
  --ui-primary-3: #9f7cff;
  --ui-success: #33d37f;
  --ui-danger: #ff6d86;
  --ui-warning: #f0b75e;
  --ui-info: #75bbff;

  --ui-shadow-page: 0 18px 55px rgba(2, 9, 26, 0.40);
  --ui-shadow-soft: 0 10px 28px rgba(4, 10, 30, 0.28);
  --ui-shadow-card: 0 0 0 1px rgba(40, 196, 255, 0.30), 0 0 34px rgba(109, 83, 255, 0.16), 0 18px 52px rgba(2, 9, 26, 0.48);
  --ui-shadow-card-hover: 0 0 0 1px rgba(40, 196, 255, 0.34), 0 0 38px rgba(109, 83, 255, 0.20), 0 20px 56px rgba(2, 9, 26, 0.52);
  --ui-inner: inset 0 1px 0 rgba(255,255,255,0.05);
  --ui-focus: 0 0 0 3px rgba(34, 186, 255, 0.14);

  --bg: #061225;
  --bg2: #07182f;
  --bg3: #0a2240;
  --border: #17395b;
  --accent: #22baff;
  --accent2: #6a53ff;
  --accent-glow: rgba(34,186,255,0.14);
  --text: #f3f7ff;
  --text2: #95a9d6;
  --text3: #6f85b9;
  --green: #33d37f;
  --red: #ff6d86;
  --blue: #75bbff;
  --orange: #f0b75e;
  --gold: #22baff;
  --gold2: #6a53ff;
  --r: 14px;
  --r2: 22px;
  --shadow: 0 18px 32px rgba(4, 10, 30, 0.24);
  --shadow-lg: 0 26px 60px rgba(2, 9, 26, 0.44);
  --card-glow: var(--ui-shadow-card);
}

html[data-theme="light"] {
  --ui-page:
    radial-gradient(60rem 28rem at 80% 18%, rgba(120, 104, 255, 0.08), transparent 40%),
    radial-gradient(36rem 18rem at 84% 70%, rgba(50, 171, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #f7f9fd 0%, #edf2f9 100%);
  --ui-sidebar-bg: rgba(255, 255, 255, 0.90);
  --ui-topbar-bg: rgba(255,255,255,0.78);
  --ui-surface: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.94));
  --ui-surface-2: rgba(255,255,255,0.86);
  --ui-surface-3: #ffffff;
  --ui-surface-soft: rgba(245, 248, 255, 0.96);
  --ui-border: rgba(120, 138, 179, 0.16);
  --ui-border-strong: rgba(113, 129, 205, 0.22);
  --ui-line: rgba(78, 96, 146, 0.08);
  --ui-text: #1c2b4a;
  --ui-text-2: #7c8db2;
  --ui-text-3: #93a3c3;
  --ui-primary-1: #30a8ff;
  --ui-primary-2: #6b67ff;
  --ui-primary-3: #9d89ff;
  --ui-success: #3ca76b;
  --ui-danger: #e05474;
  --ui-warning: #ca8d2f;
  --ui-info: #4a90ff;
  --ui-shadow-page: 0 18px 55px rgba(121, 140, 180, 0.12);
  --ui-shadow-soft: 0 10px 28px rgba(121, 140, 180, 0.10);
  --ui-shadow-card: 0 0 0 1px rgba(132, 151, 198, 0.10), 0 16px 42px rgba(121, 140, 180, 0.14);
  --ui-shadow-card-hover: 0 0 0 1px rgba(132, 151, 198, 0.14), 0 18px 50px rgba(121, 140, 180, 0.18);
  --ui-inner: inset 0 1px 0 rgba(255,255,255,0.95);
  --ui-focus: 0 0 0 3px rgba(48,168,255,0.14);

  --bg: #eff3fa;
  --bg2: #ffffff;
  --bg3: #f5f8ff;
  --border: #dde6f3;
  --accent: #30a8ff;
  --accent2: #6b67ff;
  --accent-glow: rgba(48,168,255,0.12);
  --text: #1c2b4a;
  --text2: #7c8db2;
  --text3: #93a3c3;
  --green: #3ca76b;
  --red: #e05474;
  --blue: #4a90ff;
  --orange: #ca8d2f;
  --gold: #30a8ff;
  --gold2: #6b67ff;
  --shadow: 0 12px 24px rgba(121, 140, 180, 0.10);
  --shadow-lg: 0 20px 48px rgba(121, 140, 180, 0.14);
  --card-glow: var(--ui-shadow-card);
}

html[data-theme="onyx"] {
  --ui-page:
    radial-gradient(44rem 22rem at 82% 16%, rgba(88, 92, 255, 0.06), transparent 38%),
    linear-gradient(180deg, #090a0d 0%, #0a0b0f 100%);
  --ui-sidebar-bg: rgba(9, 10, 13, 0.97);
  --ui-topbar-bg: rgba(9, 10, 13, 0.88);
  --ui-surface: linear-gradient(180deg, rgba(14, 16, 21, 0.98), rgba(14, 16, 21, 0.96));
  --ui-surface-2: rgba(17, 19, 24, 0.94);
  --ui-surface-3: rgba(14, 16, 21, 0.96);
  --ui-surface-soft: rgba(14, 16, 21, 0.86);
  --ui-border: rgba(255,255,255,0.08);
  --ui-border-strong: rgba(145,141,255,0.18);
  --ui-line: rgba(255,255,255,0.06);
  --ui-text: #eff2f7;
  --ui-text-2: #9198aa;
  --ui-text-3: #6c7485;
  --ui-primary-1: #8093ff;
  --ui-primary-2: #695fff;
  --ui-primary-3: #aa9aff;
  --ui-success: #5ad18d;
  --ui-danger: #ff6d87;
  --ui-warning: #d9b065;
  --ui-info: #90a4ff;
  --ui-shadow-page: 0 28px 70px rgba(0,0,0,0.52);
  --ui-shadow-soft: 0 10px 28px rgba(0,0,0,0.34);
  --ui-shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 16px 48px rgba(0,0,0,0.50);
  --ui-shadow-card-hover: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 54px rgba(0,0,0,0.56);
  --ui-inner: inset 0 1px 0 rgba(255,255,255,0.025);
  --ui-focus: 0 0 0 3px rgba(128,147,255,0.14);

  --bg: #090a0d;
  --bg2: #0e1015;
  --bg3: #12151b;
  --border: #232730;
  --accent: #8093ff;
  --accent2: #695fff;
  --accent-glow: rgba(128,147,255,0.10);
  --text: #eff2f7;
  --text2: #9198aa;
  --text3: #6c7485;
  --green: #5ad18d;
  --red: #ff6d87;
  --blue: #90a4ff;
  --orange: #d9b065;
  --gold: #8093ff;
  --gold2: #695fff;
  --shadow: 0 16px 32px rgba(0,0,0,0.34);
  --shadow-lg: 0 28px 62px rgba(0,0,0,0.52);
  --card-glow: var(--ui-shadow-card);
}

html[data-theme="glass"] {
  --ui-page:
    radial-gradient(72rem 38rem at 76% 8%, rgba(167, 102, 255, 0.22), transparent 38%),
    radial-gradient(48rem 28rem at 78% 72%, rgba(61, 177, 255, 0.12), transparent 40%),
    radial-gradient(44rem 18rem at 34% 24%, rgba(119, 129, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #090d22 0%, #0a0f28 48%, #0a0d24 100%);
  --ui-sidebar-bg: rgba(10, 14, 38, 0.56);
  --ui-topbar-bg: rgba(14, 18, 46, 0.46);
  --ui-surface: linear-gradient(180deg, rgba(18, 24, 61, 0.42), rgba(18, 24, 61, 0.36));
  --ui-surface-2: rgba(18, 24, 61, 0.42);
  --ui-surface-3: rgba(18, 24, 61, 0.50);
  --ui-surface-soft: rgba(18, 24, 61, 0.34);
  --ui-border: rgba(188,195,255,0.14);
  --ui-border-strong: rgba(176,160,255,0.24);
  --ui-line: rgba(255,255,255,0.08);
  --ui-text: #f5f7ff;
  --ui-text-2: #a2aad1;
  --ui-text-3: #7f88bb;
  --ui-primary-1: #49adff;
  --ui-primary-2: #775bff;
  --ui-primary-3: #bc8fff;
  --ui-success: #3dd792;
  --ui-danger: #ff708f;
  --ui-warning: #e2bb75;
  --ui-info: #93beff;
  --ui-shadow-page: 0 18px 55px rgba(3, 9, 28, 0.40);
  --ui-shadow-soft: 0 10px 28px rgba(3, 9, 28, 0.28);
  --ui-shadow-card: 0 0 0 1px rgba(196,203,255,0.14), 0 0 30px rgba(145,120,255,0.14), 0 20px 54px rgba(3,9,28,0.44);
  --ui-shadow-card-hover: 0 0 0 1px rgba(196,203,255,0.18), 0 0 34px rgba(145,120,255,0.18), 0 22px 58px rgba(3,9,28,0.50);
  --ui-inner: inset 0 1px 0 rgba(255,255,255,0.08);
  --ui-focus: 0 0 0 3px rgba(73,173,255,0.14);

  --bg: #090d22;
  --bg2: rgba(18, 24, 61, 0.42);
  --bg3: rgba(18, 24, 61, 0.50);
  --border: rgba(188,195,255,0.16);
  --accent: #49adff;
  --accent2: #775bff;
  --accent-glow: rgba(73,173,255,0.12);
  --text: #f5f7ff;
  --text2: #a2aad1;
  --text3: #7f88bb;
  --green: #3dd792;
  --red: #ff708f;
  --blue: #93beff;
  --orange: #e2bb75;
  --gold: #49adff;
  --gold2: #775bff;
  --shadow: 0 18px 38px rgba(3,9,28,0.28);
  --shadow-lg: 0 28px 62px rgba(3,9,28,0.42);
  --card-glow: var(--ui-shadow-card);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: var(--ui-font);
  background: var(--ui-page);
  color: var(--ui-text);
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 16%, rgba(255,255,255,0.045), transparent 10%),
    radial-gradient(circle at 72% 70%, rgba(255,255,255,0.03), transparent 12%);
  opacity: .82;
}
html[data-theme="light"] body::before { opacity: .48; }
html[data-theme="onyx"] body::before { opacity: .22; }

body, input, select, textarea, button {
  font-family: var(--ui-font);
}
code, pre, .cursor, .topic-query, #factory-log, #af-progress, #af-log-list {
  font-family: var(--ui-mono);
}

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--ui-sidebar-w);
  min-width: var(--ui-sidebar-w);
  height: 100vh;
  overflow: hidden auto;
  background: var(--ui-sidebar-bg);
  border-right: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-page), var(--ui-inner);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  min-height: var(--ui-topbar-h);
  height: var(--ui-topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--ui-topbar-bg);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: var(--ui-inner);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 10;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

.topbar-title {
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ui-text);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-2);
  color: var(--ui-text);
  cursor: pointer;
  box-shadow: var(--ui-inner);
}

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--ui-line);
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ui-primary-1), var(--ui-primary-2));
  box-shadow: 0 14px 30px rgba(80, 104, 255, .20);
}
.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.logo-text {
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ui-text);
}
.logo-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ui-text-2);
}

/* Sidebar nav */
nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 4px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ui-text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: .18s ease;
  user-select: none;
}
.nav-item:hover {
  color: var(--ui-text);
  background: rgba(255,255,255,.03);
}
.nav-item.active {
  color: var(--ui-text);
  background: linear-gradient(90deg, rgba(36, 153, 255, 0.14), rgba(113, 87, 255, 0.28));
  box-shadow: 0 0 0 1px rgba(54, 170, 255, 0.28), 0 0 28px rgba(85, 95, 255, 0.18);
}
html[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(48,168,255,.12), rgba(107,103,255,.10));
  box-shadow: 0 0 0 1px rgba(129,143,217,.12);
}
html[data-theme="onyx"] .nav-item.active {
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.26);
}
html[data-theme="glass"] .nav-item.active {
  background: linear-gradient(90deg, rgba(69,173,255,.12), rgba(119,91,255,.22));
  box-shadow: 0 0 0 1px rgba(186,177,255,.16), 0 0 22px rgba(120,99,255,.14);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--ui-primary-1), var(--ui-primary-2));
}
.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: .88;
  flex: 0 0 auto;
  color: currentColor;
}
.nav-badge {
  margin-left: auto;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ui-primary-1), var(--ui-primary-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(89,84,255,.18);
}
.sidebar-foot {
  padding: 12px 10px 12px;
  border-top: 1px solid var(--ui-line);
}
.api-status {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-2);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--ui-inner);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ui-danger);
  box-shadow: 0 0 18px rgba(255,110,134,.22);
  flex: 0 0 auto;
}
.dot.ok {
  background: var(--ui-success);
  box-shadow: 0 0 18px rgba(51,211,127,.28);
}

.theme-sw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-surface-2);
}
.th-btn {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-text-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: .18s ease;
}
.th-btn:hover,
.th-btn.active {
  color: var(--ui-text);
  background: linear-gradient(135deg, rgba(43,156,255,.18), rgba(112,92,255,.18));
  box-shadow: 0 0 0 1px rgba(97,148,255,.16);
}
html[data-theme="light"] .th-btn:hover,
html[data-theme="light"] .th-btn.active {
  background: linear-gradient(135deg, rgba(48,168,255,.12), rgba(107,103,255,.12));
}
html[data-theme="onyx"] .th-btn:hover,
html[data-theme="onyx"] .th-btn.active {
  background: rgba(255,255,255,.04);
}
html[data-theme="glass"] .th-btn:hover,
html[data-theme="glass"] .th-btn.active {
  background: linear-gradient(135deg, rgba(73,173,255,.14), rgba(119,91,255,.18));
}

/* Base view logic */
.view { display: none; }
.view.active { display: block; }

/* Cards */
.card,
.chat-panel,
.tbl-wrap,
.stat-card,
.login-box,
.modal {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
  border-radius: var(--ui-radius-md);
  color: var(--ui-text);
}
.card {
  position: relative;
  padding: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
.card::before,
.chat-panel::before,
.tbl-wrap::before,
.stat-card::before,
.modal::before,
.login-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%);
}
html[data-theme="onyx"] .card::before,
html[data-theme="onyx"] .chat-panel::before,
html[data-theme="onyx"] .tbl-wrap::before,
html[data-theme="onyx"] .stat-card::before,
html[data-theme="onyx"] .modal::before,
html[data-theme="onyx"] .login-box::before {
  opacity: .3;
}
.card:hover,
.stat-card:hover,
.chat-panel:hover,
.tbl-wrap:hover {
  box-shadow: var(--ui-shadow-card-hover), var(--ui-inner);
}
html[data-theme="light"] .card,
html[data-theme="light"] .chat-panel,
html[data-theme="light"] .tbl-wrap,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .login-box,
html[data-theme="light"] .modal {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="glass"] .card,
html[data-theme="glass"] .chat-panel,
html[data-theme="glass"] .tbl-wrap,
html[data-theme="glass"] .stat-card,
html[data-theme="glass"] .login-box,
html[data-theme="glass"] .modal {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.card-title {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--ui-text);
}
.card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ui-text-2);
  margin-bottom: 14px;
}
.sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ui-text);
}
.sec-title svg {
  width: 18px;
  height: 18px;
  color: var(--ui-primary-1);
}
.muted,
.hint,
.opt,
.card-desc,
.logo-sub,
.msg-meta,
.badge-gray,
#domains-balance,
#brands-list,
#wm-accounts-list,
#factory-log,
#af-progress {
  color: var(--ui-text-2);
}

/* Buttons */
.btn {
  appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--ui-surface-2);
  color: var(--ui-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: var(--ui-inner);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}
.btn-gold,
.btn-primary {
  background: linear-gradient(135deg, var(--ui-primary-1), var(--ui-primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(76,92,255,.22);
}
.btn-gold:hover,
.btn-primary:hover {
  filter: brightness(1.04);
}
.btn-outline,
.btn-secondary {
  background: transparent;
  border-color: var(--ui-border-strong);
  color: var(--ui-text);
}
.btn-outline:hover,
.btn-secondary:hover {
  border-color: var(--ui-primary-1);
  color: var(--ui-primary-1);
}
.btn-green {
  background: rgba(51,211,127,.14);
  border-color: rgba(51,211,127,.18);
  color: var(--ui-success);
}
.btn-red {
  background: rgba(255,109,134,.12);
  border-color: rgba(255,109,134,.18);
  color: var(--ui-danger);
}
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  position: relative;
  padding: 18px;
}
.stat-val {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
  font-family: var(--ui-mono);
  color: var(--ui-text);
}
.stat-val.gold { color: var(--ui-primary-1); }
.stat-val.green { color: var(--ui-success); }
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ui-text-2);
  font-weight: 700;
}

/* Tables */
.tbl-wrap {
  position: relative;
  overflow: auto;
  margin-bottom: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  background: var(--ui-surface-2);
  color: var(--ui-text-2);
  border-bottom: 1px solid var(--ui-border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-text);
  font-size: 13px;
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td {
  background: rgba(255,255,255,.02);
}
html[data-theme="light"] tbody tr:hover td {
  background: rgba(48,168,255,.04);
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
}
.badge-gold {
  background: rgba(34,186,255,.10);
  color: var(--ui-primary-1);
  border-color: rgba(34,186,255,.12);
}
.badge-green {
  background: rgba(51,211,127,.12);
  color: var(--ui-success);
  border-color: rgba(51,211,127,.14);
}
.badge-blue {
  background: rgba(117,187,255,.12);
  color: var(--ui-info);
  border-color: rgba(117,187,255,.14);
}
.badge-red {
  background: rgba(255,109,134,.12);
  color: var(--ui-danger);
  border-color: rgba(255,109,134,.14);
}
.badge-gray {
  background: rgba(255,255,255,.05);
  border-color: var(--ui-border);
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: block;
  margin-bottom: 6px;
  color: var(--ui-text-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.opt {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-3);
  color: var(--ui-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--ui-inner);
}
textarea {
  min-height: 86px;
  padding: 12px 14px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ui-primary-1);
  box-shadow: var(--ui-focus), var(--ui-inner);
}
input::placeholder,
textarea::placeholder { color: var(--ui-text-3); }
input[type="checkbox"] {
  min-height: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--ui-primary-1);
  border-radius: 4px;
  box-shadow: none;
}
.hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

/* Topics and keyword filters */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.topic-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
  cursor: pointer;
  overflow: hidden;
}
.topic-card:hover {
  box-shadow: var(--ui-shadow-card-hover), var(--ui-inner);
}
.topic-card.used { opacity: .5; }
.topic-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ui-text);
  margin-bottom: 6px;
}
.topic-query {
  font-size: 11px;
  color: var(--ui-primary-1);
  margin-bottom: 8px;
}
.topic-notes {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ui-text-2);
  margin-bottom: 10px;
}
.topic-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kw-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.kw-filter {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-2);
  color: var(--ui-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .16s ease;
}
.kw-filter:hover,
.kw-filter.active {
  background: linear-gradient(135deg, var(--ui-primary-1), var(--ui-primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 22px rgba(76,92,255,.18);
}

/* Chat */
.chat-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
  min-height: calc(100vh - 92px);
}
.chat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  display: flex;
  gap: 10px;
}
.msg.user {
  flex-direction: row-reverse;
}
.msg-av {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-inner);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}
.msg-body { max-width: min(76%, 760px); }
.msg.user .msg-body { text-align: right; }
.msg-meta {
  font-size: 11px;
  margin-bottom: 4px;
}
.msg-bubble {
  display: inline-block;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-inner);
  color: var(--ui-text);
  line-height: 1.6;
  font-size: 13px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(34,186,255,.12), rgba(106,83,255,.14));
  border-color: rgba(34,186,255,.18);
}
.chat-intent {
  padding: 2px 6px;
  text-align: center;
  color: var(--ui-primary-1);
  font-size: 11px;
}
.chat-in {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--ui-line);
  background: rgba(255,255,255,.01);
}
.chat-ta {
  min-height: 44px;
  max-height: 140px;
  resize: none;
  border-radius: 16px;
}
.chat-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quick-cmd {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-2);
  color: var(--ui-text-2);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: .16s ease;
}
.quick-cmd:hover {
  color: var(--ui-text);
  border-color: var(--ui-primary-1);
  transform: translateY(-1px);
}

/* Login */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--ui-page);
}
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 30px;
}
.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ui-primary-1), var(--ui-primary-2));
  box-shadow: 0 16px 32px rgba(76,92,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
}

/* Overlays and modals */
.overlay,
.overlay-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 8, 20, .64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.overlay.open,
.modal-wrap.open,
.overlay-bg.open {
  display: flex;
}
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.modal-wrap.open { pointer-events: all; }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 980px);
  overflow-y: auto;
  padding: 24px;
}
.modal-title {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--ui-text);
}
.modal-actions,
.modal-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Notify */
.notify {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.notif {
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: all;
}
.notif.success { border-color: rgba(51,211,127,.24); }
.notif.error { border-color: rgba(255,109,134,.24); }
.notif.info { border-color: rgba(117,187,255,.24); }

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ui-primary-1);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Auto-factory and special views */
#view-auto-factory.active,
#view-designs.active,
#view-monitor.active {
  display: block !important;
  background: transparent;
}

#view-auto-factory.active {
  padding: 6px 0 0 !important;
}
#view-auto-factory.active > * {
  margin-bottom: 0 !important;
}
#view-auto-factory .card,
#view-designs .card,
#view-monitor .card,
#view-domains .card,
#view-settings .card,
#view-factory .card,
#view-chat .card {
  border-radius: 24px;
}

#view-auto-factory .card-with-illus,
#view-domains .card-with-illus,
#view-designs .card-with-illus,
#view-monitor [card-with-illus] {
  position: relative;
  overflow: hidden;
}
#view-auto-factory .card-with-illus::after,
#view-domains .card-with-illus::after,
#view-designs .card-with-illus::after,
#view-monitor [card-with-illus]::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -28px;
  width: 220px;
  height: 160px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.22), transparent 12%),
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.16), transparent 8%),
    linear-gradient(135deg, rgba(39,153,255,.22), rgba(113,87,255,.26));
  border-radius: 38px;
  opacity: .85;
  transform: rotate(-8deg);
  filter: blur(0.2px);
}
html[data-theme="onyx"] #view-auto-factory .card-with-illus::after,
html[data-theme="onyx"] #view-domains .card-with-illus::after,
html[data-theme="onyx"] #view-designs .card-with-illus::after,
html[data-theme="onyx"] #view-monitor [card-with-illus]::after {
  opacity: .24;
}
html[data-theme="light"] #view-auto-factory .card-with-illus::after,
html[data-theme="light"] #view-domains .card-with-illus::after,
html[data-theme="light"] #view-designs .card-with-illus::after,
html[data-theme="light"] #view-monitor [card-with-illus]::after {
  opacity: .5;
}

#view-auto-factory #af-main-col > .card:first-child #brands-list {
  display: grid;
  gap: 10px;
}
#view-auto-factory #brands-list > div,
#view-auto-factory #domains-found > div,
#wm-accounts-list > div,
#monitor-projects-list > div,
#region-keywords-list > div,
#project-regions-tabs > div {
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  box-shadow: var(--ui-inner);
}
#view-auto-factory #brands-list > div {
  padding: 12px 14px !important;
}
#view-auto-factory #domains-found {
  display: grid !important;
  gap: 8px !important;
}
#view-auto-factory #domains-found > div {
  padding: 10px 12px !important;
}
#af-progress,
#factory-log {
  background: var(--ui-surface-3) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: var(--ui-inner);
}
#af-log-list > div,
#factory-log > div {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ui-line);
}
#af-log-list > div:last-child,
#factory-log > div:last-child {
  border-bottom: 0;
}
#view-auto-factory .btn[onclick="runAutoFactory()"],
#view-auto-factory .btn[onclick="searchDomains()"] {
  min-width: 130px;
}
#view-auto-factory .btn[onclick="saveAfConfig()"] {
  min-width: 154px;
}

/* Designs page */
#view-designs > div[style*="grid-template-columns:1fr 1fr"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 42%);
  gap: 16px !important;
}
#designs-list {
  display: grid !important;
  gap: 10px !important;
}
#designs-list > div {
  padding: 14px 16px !important;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
}
#design-preview-frame {
  border-radius: 18px !important;
  border: 1px solid var(--ui-border) !important;
  box-shadow: var(--ui-inner);
}

/* Monitor page */
#view-monitor > div[style*="grid-template-columns:280px 1fr"] {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px !important;
  height: auto !important;
  min-height: calc(100vh - 92px);
}
#region-dropdown,
#monitor-projects-list > div,
#region-keywords-list > div {
  background: var(--ui-surface-3) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--ui-inner);
}
#project-regions-tabs {
  gap: 6px !important;
}
#project-regions-tabs > * {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
#region-keywords-list > div,
#monitor-projects-list > div {
  padding: 8px 10px !important;
  margin-bottom: 4px;
}
#view-monitor .btn[onclick^="filterPositions"] {
  min-width: 54px;
}
#view-monitor .btn[onclick^="setClickMode"] {
  justify-content: center;
}
#view-monitor input[style*="padding:4px 6px"],
#view-monitor select[style*="padding:4px 6px"] {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
}

/* Domains and factory */
#view-domains > div[style*="grid-template-columns:1fr 1fr"],
#view-factory > div[style*="grid-template-columns:1fr 1fr"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px !important;
}
#view-factory div[style*="background:var(--bg3)"][style*="text-align:center"] {
  border-radius: 14px !important;
  box-shadow: var(--ui-inner);
}
#view-settings > div[style*="position:sticky"] {
  background: transparent !important;
  padding-top: 8px !important;
}

/* Promo cards if still used */
.promo-col {
  display: grid;
  gap: 12px;
}
.promo-card {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
}
.promo-val {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--ui-primary-1);
  font-family: var(--ui-mono);
}
.promo-label,
.promo-footer {
  color: var(--ui-text-2);
}
.promo-label {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}
.promo-footer {
  padding-top: 6px;
  font-size: 11px;
}

/* scrollbars */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(107,103,255,.28), rgba(48,168,255,.18));
  background-clip: padding-box;
}

/* Responsive */
@media (max-width: 1180px) {
  .stats-grid,
  #view-domains > div[style*="grid-template-columns:1fr 1fr"],
  #view-factory > div[style*="grid-template-columns:1fr 1fr"],
  #view-designs > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .chat-wrap {
    grid-template-columns: 1fr;
  }
  .chat-side { display: none; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-grid { grid-template-columns: 1fr; }
  #view-monitor > div[style*="grid-template-columns:280px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  html, body { overflow: auto; }
  .app { display: block; height: auto; }
  .sidebar {
    position: fixed;
    left: calc(var(--ui-sidebar-w) * -1 - 20px);
    top: 0;
    z-index: 80;
    transition: left .22s ease;
  }
  .sidebar.open { left: 0; }
  .main { height: auto; }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 79;
  }
  .content {
    height: auto;
    overflow: visible;
    padding: 14px;
  }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .theme-sw { grid-template-columns: repeat(2, 1fr); }
  #view-auto-factory.active,
  #view-designs.active,
  #view-monitor.active {
    padding: 0 !important;
  }
}


/* === v2 refinements from live screenshots === */

html[data-theme="aqua"] {
  --ui-sidebar-bg: rgba(6, 14, 30, 0.82);
  --ui-topbar-bg: rgba(6, 14, 30, 0.62);
  --ui-surface: linear-gradient(180deg, rgba(9, 20, 40, 0.78), rgba(8, 17, 34, 0.74));
  --ui-surface-2: rgba(10, 22, 44, 0.62);
  --ui-surface-3: rgba(9, 22, 44, 0.68);
  --ui-surface-soft: rgba(9, 22, 44, 0.52);
  --ui-border: rgba(109, 171, 255, 0.12);
  --ui-border-strong: rgba(126, 134, 255, 0.18);
  --ui-line: rgba(123, 180, 255, 0.07);
  --ui-shadow-card: 0 0 0 1px rgba(54, 165, 255, 0.14), 0 12px 34px rgba(3, 9, 28, 0.34), inset 0 1px 0 rgba(255,255,255,0.04);
  --ui-shadow-card-hover: 0 0 0 1px rgba(54, 165, 255, 0.18), 0 16px 44px rgba(3, 9, 28, 0.42), inset 0 1px 0 rgba(255,255,255,0.05);
  --ui-inner: inset 0 1px 0 rgba(255,255,255,0.035);
}
html[data-theme="glass"] {
  --ui-sidebar-bg: rgba(10, 14, 38, 0.48);
  --ui-topbar-bg: rgba(14, 18, 46, 0.36);
  --ui-surface: linear-gradient(180deg, rgba(18, 24, 61, 0.34), rgba(18, 24, 61, 0.28));
  --ui-surface-2: rgba(18, 24, 61, 0.34);
  --ui-surface-3: rgba(18, 24, 61, 0.42);
  --ui-surface-soft: rgba(18, 24, 61, 0.26);
  --ui-border: rgba(210, 216, 255, 0.13);
  --ui-border-strong: rgba(188, 172, 255, 0.22);
}
html[data-theme="light"] {
  --ui-text-2: #62759a;
  --ui-text-3: #7f93b7;
  --ui-border: rgba(120, 138, 179, 0.20);
  --ui-border-strong: rgba(113, 129, 205, 0.26);
  --ui-shadow-card: 0 0 0 1px rgba(132, 151, 198, 0.12), 0 18px 42px rgba(121, 140, 180, 0.16), inset 0 1px 0 rgba(255,255,255,0.92);
  --ui-shadow-card-hover: 0 0 0 1px rgba(132, 151, 198, 0.16), 0 20px 50px rgba(121, 140, 180, 0.20), inset 0 1px 0 rgba(255,255,255,0.95);
  --ui-shadow-soft: 0 10px 28px rgba(121, 140, 180, 0.14);
}

.sidebar,
.topbar,
.card,
.api-status,
.theme-sw {
  transition: background .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.card {
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
}
.card:hover {
  box-shadow: var(--ui-shadow-card-hover), var(--ui-inner);
}

.nav-item {
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
}
.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 26%, transparent 74%, rgba(255,255,255,.03));
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.nav-item:hover::after,
.nav-item.active::after {
  opacity: 1;
}
.nav-item.active {
  border-color: var(--ui-border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(82, 154, 255, 0.18), 0 12px 28px rgba(5, 11, 30, 0.24), inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="onyx"] .nav-item.active {
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="glass"] .nav-item.active,
html[data-theme="aqua"] .nav-item.active {
  background: linear-gradient(90deg, rgba(48, 155, 255, 0.10), rgba(108, 92, 255, 0.16));
}
html[data-theme="light"] .nav-item,
html[data-theme="light"] .api-status,
html[data-theme="light"] .topbar-title,
html[data-theme="light"] .sec-title,
html[data-theme="light"] .stat-label,
html[data-theme="light"] label,
html[data-theme="light"] .small,
html[data-theme="light"] .muted,
html[data-theme="light"] .hint,
html[data-theme="light"] .brand-copy__desc {
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
html[data-theme="light"] .card,
html[data-theme="light"] .topbar,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .api-status,
html[data-theme="light"] .theme-sw {
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
}
html[data-theme="light"] .nav-item { color: #7487aa; }
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-item:hover { color: var(--ui-text); }
html[data-theme="light"] .topbar-title,
html[data-theme="light"] .sec-title,
html[data-theme="light"] .stat-val,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 { color: #172a4a; }
html[data-theme="light"] .stat-label,
html[data-theme="light"] .table th,
html[data-theme="light"] .table td,
html[data-theme="light"] .form-group label,
html[data-theme="light"] .card-sub,
html[data-theme="light"] .small,
html[data-theme="light"] .muted,
html[data-theme="light"] .api-status,
html[data-theme="light"] .topbar-right,
html[data-theme="light"] #wm-accounts-list,
html[data-theme="light"] #brands-list,
html[data-theme="light"] #factory-log,
html[data-theme="light"] #af-progress {
  color: var(--ui-text-2) !important;
}

.theme-sw {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}
.th-btn {
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.th-btn:hover,
.th-btn.active {
  border-color: var(--ui-border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(5, 11, 30, .18), inset 0 1px 0 rgba(255,255,255,.07);
}

.btn-gold,
.btn-primary {
  background: linear-gradient(135deg, var(--ui-primary-1), var(--ui-primary-2));
  box-shadow: 0 10px 22px rgba(76,92,255,.18), inset 0 1px 0 rgba(255,255,255,.16);
}
html[data-theme="aqua"] .btn-gold,
html[data-theme="aqua"] .btn-primary,
html[data-theme="glass"] .btn-gold,
html[data-theme="glass"] .btn-primary {
  background: linear-gradient(135deg, rgba(64, 173, 255, 0.88), rgba(112, 92, 255, 0.88));
}
.btn-outline,
.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* Auto-factory spacing + better composition */
#view-auto-factory.active {
  display: grid !important;
  grid-template-columns: minmax(360px, 390px) minmax(420px, 1fr);
  align-items: start;
  gap: 16px !important;
  padding: 14px 8px 0 8px !important;
}
#view-auto-factory > #af-main-col {
  display: grid;
  gap: 16px;
}
#view-auto-factory > #af-main-col > .card {
  margin-bottom: 0 !important;
}
#view-auto-factory > .card.card-with-illus {
  align-self: start;
  min-height: 126px;
  max-width: 100%;
}
#view-auto-factory > .card.card-with-illus::after {
  right: -26px;
  bottom: -34px;
  width: 170px;
  height: 132px;
  opacity: .48;
  border-radius: 34px;
}
html[data-theme="light"] #view-auto-factory > .card.card-with-illus::after { opacity: .32; }
html[data-theme="onyx"] #view-auto-factory > .card.card-with-illus::after { opacity: .18; }
#view-auto-factory .sec-title {
  margin-bottom: 0 !important;
}
#view-auto-factory #wm-accounts-list {
  min-height: 28px;
  padding-right: 6px;
}

/* Monitor glass segmented controls */
#view-monitor .btn[onclick^="setClickMode"],
#view-monitor .btn[onclick^="bulkClick"],
#view-monitor .btn[onclick^="filterPositions"],
#view-monitor .btn[onclick="openXmlstockModal()"],
#view-monitor .btn[onclick="checkSelectedProject()"] {
  border-radius: 14px !important;
  border: 1px solid var(--ui-border-strong) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(5, 11, 30, .14);
}
#view-monitor .btn[onclick^="setClickMode"].btn-gold,
#view-monitor .btn[onclick^="bulkClick"].btn-gold,
#view-monitor .btn[onclick="checkSelectedProject()"].btn-gold {
  background: linear-gradient(135deg, rgba(81, 176, 255, 0.92), rgba(118, 92, 255, 0.88)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(76,92,255,.18), inset 0 1px 0 rgba(255,255,255,.16) !important;
}
#view-monitor .btn[onclick^="filterPositions"] {
  min-width: 56px;
}
#view-monitor .btn[onclick^="setClickMode"] {
  min-height: 40px;
  font-size: 12px;
  letter-spacing: -.01em;
}
#view-monitor #ai-status {
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.08), rgba(122, 93, 255, 0.08)) !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 12px !important;
  color: var(--ui-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* Design list cards cleaner */
#designs-list > div {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#design-preview-frame {
  background: var(--ui-surface-2) !important;
}

/* Better generic readability */
.sec-title,
.topbar-title,
.stat-val,
.table th,
.table td,
label,
#view-auto-factory .card,
#view-monitor .card,
#view-designs .card,
#view-settings .card {
  letter-spacing: -0.01em;
}

/* Small screens */
@media (max-width: 1220px) {
  #view-auto-factory.active {
    grid-template-columns: 1fr !important;
  }
}


/* ===== v3 refinements ===== */

/* Real logo asset */
.logo {
  position: relative;
  min-height: 74px;
  padding: 16px 14px 14px !important;
  display: block !important;
}
.logo::before {
  content: "";
  display: block;
  width: min(186px, calc(100% - 2px));
  height: 42px;
  background: url("data:image/webp;base64,UklGRlJLAABXRUJQVlA4WAoAAAAwAAAA8wEAxwAASUNDUMgBAAAAAAHIAA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0hK1EV/FF0LYlFoTlX7AEWZ22vtC1min1TC2n1E0rZx4WXGRmwthBu3u4GTpQ3XjuFqr7PTkJ4224dITL2nOxkA808l7RUwmHdqVWr9pEsHZlB/bstp2q4xAMZkyzuYekBdnUs+vtG2uLqZIJ0wagAuTSfVmL/qc3CnJV3evqIbENLTw4+WMt197XBDH/kxkXyicCJiIe11UKrpdmeJLfR0R6Whc456fFTiS8sjTXk2Lo+OYJ37uTVPbRdNjvRxDIzDULa/G7YGx/iXrisMxYGdJxvy1fZzYairHqbh/Gr9wqC+lttCSyMRFD886+mMKuwzF+FLUAorWmGPBl3O8LAKTuT7u/sCSON8KWxGRCSvmYlaxvPO64JZ46HqUr+lc+z+lekT7SJxZEn7RtqgszZLI725skcROxFE5ANXdeGRUA3f7C1xA1/f6cuB4wZcc6lGcK4xuQmuZCw29uTBSRP6hv/IBMwSl92e5NkhazNfRqWaIKStBvFkMvF1YPSGvjt/0hXptYHNcr0D8A+vQZ2Dv18MjzYlNqBVAwlduFOs4SSxA2Dx65lHV7WIC7q1+iIyx3/dGRzlxISOc+0MwVDN9P7ZMnFAFIMyN4/YX4uHzsHTRy5Q2s+9nrOcczw93Hag2EC2Ik89iyKT6hTQ198Yf0FohR7oerLaB5hhifpqtu4ato8BZlYpfuwmlc/aFv1/UUFKl3rQ0x4X62VD8QqxOgMEpf8lghHeeOD6oQpVpijV92g/IEv4AAAAABjar9k6WKIJtQRvIG8v3h4XXgp39EIIIAlMxZ41G1Go80VNfee+HH0HX+vudJ5ppqMKVPIv5GmCvpKdBsmkHUAbTGaidgCyCinvDKAAAAAAAAAAAAAA") left center / contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(14, 197, 255, 0.18)) drop-shadow(0 2px 8px rgba(111, 91, 255, 0.16));
}
.logo-icon,
.logo-text,
.logo-sub {
  display: none !important;
}
html[data-theme="light"] .logo::before {
  filter: drop-shadow(0 10px 18px rgba(74, 108, 187, 0.16)) drop-shadow(0 2px 0 rgba(255,255,255,0.95));
}

/* Glassier sidebar navigation */
.nav-item {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.004));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border-color: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.14);
}
.nav-item.active {
  background:
    linear-gradient(90deg, rgba(52, 179, 255, 0.12), rgba(112, 91, 255, 0.16)),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  border-color: rgba(112, 166, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(73, 162, 255, 0.14),
    0 14px 30px rgba(5, 11, 30, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -12px 24px rgba(9, 39, 74, 0.18);
}
.nav-item.active::before {
  width: 4px;
  left: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ui-primary-1), rgba(255,255,255,0.9));
  box-shadow: 0 0 16px rgba(73, 173, 255, 0.32);
}
.nav-item.active::after {
  opacity: 1;
  background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 24%, transparent 72%, rgba(255,255,255,.04));
}
html[data-theme="onyx"] .nav-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.002));
}
html[data-theme="onyx"] .nav-item.active {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 14px 30px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.05);
}
html[data-theme="glass"] .nav-item,
html[data-theme="aqua"] .nav-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.016), rgba(255,255,255,0.004));
}
html[data-theme="light"] .nav-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.58));
  border-color: rgba(132, 151, 198, 0.04);
}
html[data-theme="light"] .nav-item:hover {
  border-color: rgba(132, 151, 198, 0.10);
  box-shadow: 0 8px 18px rgba(121, 140, 180, 0.10), inset 0 1px 0 rgba(255,255,255,0.95);
}
html[data-theme="light"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(48,168,255,.10), rgba(107,103,255,.10)),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  border-color: rgba(132, 151, 198, 0.14);
  box-shadow: 0 10px 20px rgba(121, 140, 180, 0.12), inset 0 1px 0 rgba(255,255,255,.96);
}

/* Theme switcher chips feel more glass */
.theme-sw,
.api-status {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.th-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.04);
}
.th-btn.active,
.th-btn:hover {
  background:
    linear-gradient(135deg, rgba(88, 168, 255, 0.16), rgba(116, 94, 255, 0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-color: var(--ui-border-strong);
}
html[data-theme="light"] .th-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.72));
  border-color: rgba(132,151,198,0.08);
}

/* Auto-factory: stop Yandex card stretching, preserve layout on large monitors */
#view-auto-factory.active {
  display: grid !important;
  grid-template-columns: minmax(360px, 390px) minmax(420px, 560px) minmax(0, 1fr);
  align-items: start;
  gap: 16px !important;
  padding: 14px 16px 20px 16px !important;
}
#view-auto-factory > #af-main-col {
  grid-column: 1;
  align-self: start;
}
#view-auto-factory > .card.card-with-illus:nth-child(2) {
  grid-column: 2;
  width: 100%;
  max-width: 560px;
  justify-self: start;
  min-height: 126px;
}
#view-auto-factory > .card.card-with-illus:nth-child(3),
#view-auto-factory > .card.card-with-illus:nth-child(4) {
  grid-column: 2;
  width: 100%;
  max-width: 560px;
  justify-self: start;
}
#view-auto-factory > .promo-col {
  grid-column: 3;
  grid-row: 1 / span 4;
  align-self: start;
  min-width: 250px;
  max-width: 360px;
  margin-top: 0 !important;
  opacity: .95;
}
#view-auto-factory > .card.card-with-illus:nth-child(2)::after {
  right: -18px;
  bottom: -18px;
  width: 132px;
  height: 112px;
  opacity: .24;
}
#view-auto-factory #wm-accounts-list {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  padding-right: 0;
}
#view-auto-factory .card.card-with-illus {
  overflow: hidden;
}

/* Optional airy placeholder feel on huge screens */
@media (min-width: 1700px) {
  #view-auto-factory > .card.card-with-illus:nth-child(2) {
    max-width: 520px;
  }
}

/* Collapse promo column + keep fixed Yandex width on narrower desktops */
@media (max-width: 1580px) {
  #view-auto-factory.active {
    grid-template-columns: minmax(340px, 390px) minmax(420px, 560px) !important;
  }
  #view-auto-factory > .promo-col {
    display: none !important;
  }
}
@media (max-width: 1220px) {
  #view-auto-factory.active {
    grid-template-columns: 1fr !important;
    padding: 14px 10px 20px 10px !important;
  }
  #view-auto-factory > .card.card-with-illus:nth-child(2),
  #view-auto-factory > .card.card-with-illus:nth-child(3),
  #view-auto-factory > .card.card-with-illus:nth-child(4) {
    grid-column: 1;
    max-width: none;
    width: 100%;
  }
}

/* Monitor: selected controls should look like glass, not solid bars */
#view-monitor .btn[onclick^="setClickMode"],
#view-monitor .btn[onclick^="bulkClick"],
#view-monitor .btn[onclick^="filterPositions"],
#view-monitor .btn[onclick="openXmlstockModal()"],
#view-monitor .btn[onclick="checkSelectedProject()"] {
  position: relative;
  overflow: hidden;
  border-radius: 14px !important;
  border: 1px solid rgba(142, 171, 255, 0.16) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(5, 11, 30, .14),
    0 0 0 1px rgba(255,255,255,.02);
}
#view-monitor .btn[onclick^="setClickMode"]::before,
#view-monitor .btn[onclick^="bulkClick"]::before,
#view-monitor .btn[onclick^="filterPositions"]::before,
#view-monitor .btn[onclick="openXmlstockModal()"]::before,
#view-monitor .btn[onclick="checkSelectedProject()"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 26%, transparent 72%, rgba(255,255,255,.04));
  pointer-events: none;
}
#view-monitor .btn[onclick^="setClickMode"].btn-gold,
#view-monitor .btn[onclick^="bulkClick"].btn-gold,
#view-monitor .btn[onclick="checkSelectedProject()"].btn-gold {
  background:
    linear-gradient(135deg, rgba(88, 168, 255, 0.34), rgba(116, 94, 255, 0.30)),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)) !important;
  border-color: rgba(133, 176, 255, 0.24) !important;
  color: #f7fbff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -12px 28px rgba(36, 66, 120, 0.18),
    0 12px 28px rgba(41, 59, 120, .18),
    0 0 0 1px rgba(98, 141, 255, 0.16) !important;
}
#view-monitor .btn[onclick^="setClickMode"] {
  min-height: 40px;
  font-size: 12px;
  letter-spacing: -.01em;
}
#view-monitor .btn[onclick^="bulkClick"] {
  justify-content: flex-start;
  padding-left: 14px !important;
}
html[data-theme="light"] #view-monitor .btn[onclick^="setClickMode"],
html[data-theme="light"] #view-monitor .btn[onclick^="bulkClick"],
html[data-theme="light"] #view-monitor .btn[onclick^="filterPositions"],
html[data-theme="light"] #view-monitor .btn[onclick="openXmlstockModal()"],
html[data-theme="light"] #view-monitor .btn[onclick="checkSelectedProject()"] {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74)) !important;
  border-color: rgba(132,151,198,0.14) !important;
  box-shadow: 0 10px 20px rgba(121,140,180,.10), inset 0 1px 0 rgba(255,255,255,.95);
}
html[data-theme="light"] #view-monitor .btn[onclick^="setClickMode"].btn-gold,
html[data-theme="light"] #view-monitor .btn[onclick^="bulkClick"].btn-gold,
html[data-theme="light"] #view-monitor .btn[onclick="checkSelectedProject()"].btn-gold {
  background: linear-gradient(135deg, rgba(48,168,255,.84), rgba(107,103,255,.78)) !important;
  box-shadow: 0 12px 24px rgba(91,111,191,.16), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* Light theme readability boost */
html[data-theme="light"] body,
html[data-theme="light"] .sec-title,
html[data-theme="light"] .topbar-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .card-desc,
html[data-theme="light"] th,
html[data-theme="light"] td,
html[data-theme="light"] label,
html[data-theme="light"] .muted,
html[data-theme="light"] .small,
html[data-theme="light"] .hint {
  text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
html[data-theme="light"] .card,
html[data-theme="light"] .topbar,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .api-status,
html[data-theme="light"] .theme-sw {
  box-shadow: 0 0 0 1px rgba(132, 151, 198, 0.12), 0 20px 42px rgba(121,140,180,.16), inset 0 1px 0 rgba(255,255,255,.96);
}


/* ===== v4 refinements ===== */

/* Manual extra themes for future toggle support */
html[data-theme="violet"] {
  --ui-page:
    radial-gradient(64rem 30rem at 82% 10%, rgba(171, 96, 255, 0.18), transparent 40%),
    radial-gradient(42rem 20rem at 70% 68%, rgba(76, 162, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #090d20 0%, #0d1028 52%, #0b0f22 100%);
  --ui-sidebar-bg: rgba(10, 12, 26, 0.96);
  --ui-topbar-bg: rgba(10, 12, 26, 0.88);
  --ui-surface: linear-gradient(180deg, rgba(18, 17, 40, 0.98), rgba(14, 18, 44, 0.96));
  --ui-surface-2: rgba(24, 20, 52, 0.92);
  --ui-surface-3: rgba(21, 21, 46, 0.94);
  --ui-surface-soft: rgba(21, 21, 46, 0.82);
  --ui-border: rgba(168, 133, 255, 0.14);
  --ui-border-strong: rgba(168, 133, 255, 0.24);
  --ui-line: rgba(168, 133, 255, 0.08);
  --ui-text: #f5f1ff;
  --ui-text-2: #b0a8d9;
  --ui-text-3: #837dae;
  --ui-primary-1: #a966ff;
  --ui-primary-2: #6e6cff;
  --ui-primary-3: #57b4ff;
  --ui-success: #49d89a;
  --ui-danger: #ff6d90;
  --ui-warning: #ffcb6a;
  --ui-info: #7bc8ff;
  --ui-shadow-page: 0 18px 55px rgba(8, 7, 20, 0.46);
  --ui-shadow-soft: 0 10px 28px rgba(8, 7, 20, 0.30);
  --ui-shadow-card: 0 0 0 1px rgba(153, 110, 255, 0.18), 0 0 28px rgba(111, 108, 255, 0.12), 0 18px 48px rgba(8, 7, 20, 0.46);
  --ui-shadow-card-hover: 0 0 0 1px rgba(172, 118, 255, 0.22), 0 0 34px rgba(111, 108, 255, 0.16), 0 20px 52px rgba(8, 7, 20, 0.5);
  --ui-inner: inset 0 1px 0 rgba(255,255,255,0.05);
}

html[data-theme="obsidian"] {
  --ui-page:
    radial-gradient(56rem 20rem at 78% 14%, rgba(72, 160, 255, 0.07), transparent 34%),
    linear-gradient(180deg, #07080b 0%, #0b0d11 100%);
  --ui-sidebar-bg: rgba(7, 8, 11, 0.98);
  --ui-topbar-bg: rgba(7, 8, 11, 0.90);
  --ui-surface: linear-gradient(180deg, rgba(12, 14, 18, 0.99), rgba(11, 13, 17, 0.97));
  --ui-surface-2: rgba(16, 18, 22, 0.96);
  --ui-surface-3: rgba(14, 16, 20, 0.96);
  --ui-surface-soft: rgba(14, 16, 20, 0.86);
  --ui-border: rgba(255,255,255,0.06);
  --ui-border-strong: rgba(131, 175, 255, 0.14);
  --ui-line: rgba(255,255,255,0.05);
  --ui-text: #f1f4f8;
  --ui-text-2: #9aa3b2;
  --ui-text-3: #707888;
  --ui-primary-1: #67b4ff;
  --ui-primary-2: #5b73ff;
  --ui-primary-3: #89c7ff;
  --ui-success: #4dd79a;
  --ui-danger: #ff728f;
  --ui-warning: #f3c56a;
  --ui-info: #7bc8ff;
  --ui-shadow-page: 0 18px 55px rgba(0, 0, 0, 0.5);
  --ui-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.36);
  --ui-shadow-card: 0 0 0 1px rgba(255,255,255,0.05), 0 14px 38px rgba(0,0,0,0.46);
  --ui-shadow-card-hover: 0 0 0 1px rgba(131, 175, 255, 0.10), 0 18px 46px rgba(0,0,0,0.52);
}

/* Bigger logo, prefer /img/logo.webp with embedded fallback handled by browser if present */
.logo {
  min-height: 84px !important;
  padding: 14px 14px 12px !important;
}
.logo::before {
  width: min(220px, calc(100% - 4px)) !important;
  height: 54px !important;
  background-image: url("/img/logo.webp"), url("data:image/webp;base64,UklGRlJLAABXRUJQVlA4WAoAAAAwAAAA8wEAxwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADY=");
  background-position: left center, left center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: contain, contain !important;
  filter: drop-shadow(0 8px 18px rgba(14, 197, 255, 0.18)) drop-shadow(0 3px 10px rgba(111, 91, 255, 0.16));
}
html[data-theme="light"] .logo::before {
  filter: drop-shadow(0 12px 18px rgba(74, 108, 187, 0.14)) drop-shadow(0 1px 0 rgba(255,255,255,0.95));
}

/* Sidebar interaction: keep glass but reduce saturation on hover/active */
.nav-item {
  border-color: rgba(255,255,255,0.025) !important;
}
.nav-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008)) !important;
  border-color: rgba(255,255,255,0.04) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.12) !important;
}
.nav-item.active {
  background:
    linear-gradient(90deg, rgba(52, 179, 255, 0.08), rgba(112, 91, 255, 0.11)),
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008)) !important;
  border-color: rgba(112, 166, 255, 0.16) !important;
  box-shadow:
    0 0 0 1px rgba(73, 162, 255, 0.08),
    0 10px 22px rgba(5, 11, 30, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.nav-item.active::before {
  background: linear-gradient(180deg, rgba(103, 187, 255, 0.86), rgba(255,255,255,0.72)) !important;
  box-shadow: 0 0 10px rgba(73, 173, 255, 0.18) !important;
}
html[data-theme="light"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(48,168,255,.07), rgba(107,103,255,.06)),
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.80)) !important;
  box-shadow: 0 8px 16px rgba(121, 140, 180, 0.10), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

/* Theme chips slightly calmer */
.th-btn.active,
.th-btn:hover {
  background:
    linear-gradient(135deg, rgba(88, 168, 255, 0.10), rgba(116, 94, 255, 0.12)),
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.01)) !important;
  border-color: rgba(126, 153, 223, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 16px rgba(5,11,30,0.12) !important;
}

/* Auto-factory final layout: fixed Yandex width + filler + visible search/run */
#view-auto-factory.active {
  display: grid !important;
  grid-template-columns: minmax(360px, 390px) minmax(420px, 560px) minmax(240px, 1fr) !important;
  grid-template-areas:
    "main yandex filler"
    "main search search"
    "main run run" !important;
  align-items: start;
  gap: 16px !important;
  padding: 14px 16px 20px 16px !important;
}
#view-auto-factory > #af-main-col {
  grid-area: main !important;
  grid-column: auto !important;
}
#view-auto-factory > .card.card-with-illus:nth-child(2) {
  grid-area: yandex !important;
  width: 100% !important;
  max-width: 560px !important;
  min-height: 126px !important;
  justify-self: start !important;
}
#view-auto-factory > .card.card-with-illus:nth-child(3) {
  grid-area: search !important;
  width: auto !important;
  max-width: none !important;
}
#view-auto-factory > .card.card-with-illus:nth-child(4) {
  grid-area: run !important;
  width: auto !important;
  max-width: none !important;
}
#view-auto-factory.active::after {
  content: "";
  grid-area: filler;
  min-height: 126px;
  border-radius: 22px;
  border: 1px solid var(--ui-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.016), rgba(255,255,255,.006)),
    var(--ui-surface);
  box-shadow: var(--ui-shadow-card), var(--ui-inner);
  opacity: .42;
  pointer-events: none;
}
#view-auto-factory > .card.card-with-illus:nth-child(2)::after,
#view-auto-factory.active::after {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#view-auto-factory #wm-accounts-list {
  max-width: 100%;
  padding-right: 0 !important;
}
@media (max-width: 1580px) {
  #view-auto-factory.active {
    grid-template-columns: minmax(340px, 390px) minmax(420px, 560px) !important;
    grid-template-areas:
      "main yandex"
      "main search"
      "main run" !important;
  }
  #view-auto-factory.active::after { display: none; }
}
@media (max-width: 1220px) {
  #view-auto-factory.active {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "main"
      "yandex"
      "search"
      "run" !important;
  }
}

/* Designs: larger visible preview + sticky right pane */
#view-designs > div[style*="grid-template-columns:1fr 1fr"] {
  grid-template-columns: minmax(0, 1fr) minmax(520px, 48%) !important;
  align-items: start !important;
}
#view-designs > div[style*="grid-template-columns:1fr 1fr"] > .card {
  position: sticky;
  top: 12px;
}
#design-preview-frame {
  height: calc(100vh - 180px) !important;
  min-height: 720px !important;
  max-height: none !important;
}
@media (max-width: 1480px) {
  #design-preview-frame {
    min-height: 620px !important;
    height: calc(100vh - 190px) !important;
  }
}
@media (max-width: 1220px) {
  #view-designs > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #view-designs > div[style*="grid-template-columns:1fr 1fr"] > .card {
    position: relative;
    top: auto;
  }
  #design-preview-frame {
    height: 74vh !important;
    min-height: 560px !important;
  }
}

/* Designs: restore broken Russian labels without touching HTML */
#view-designs > .sec-hdr > .sec-title {
  font-size: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#view-designs > .sec-hdr > .sec-title::before {
  content: "Мои дизайны";
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ui-text);
}
#view-designs > .sec-hdr > .sec-title #designs-count {
  font-size: 11px !important;
  color: #111 !important;
}
#view-designs > .sec-hdr button[onclick="openUploadCssModal()"],
#view-designs > .sec-hdr button[onclick="openAiDesignModal()"] {
  position: relative;
  font-size: 0 !important;
  overflow: hidden;
}
#view-designs > .sec-hdr button[onclick="openUploadCssModal()"]::after {
  content: "📥 Загрузить CSS";
  font-size: 13px;
  font-weight: 800;
}
#view-designs > .sec-hdr button[onclick="openAiDesignModal()"]::after {
  content: "➕ Загрузить";
  font-size: 13px;
  font-weight: 800;
}
#view-designs .card[card-with-illus] > div:first-child > div:first-child {
  font-size: 0 !important;
}
#view-designs .card[card-with-illus] > div:first-child > div:first-child::before {
  content: "Превью дизайна";
  font-size: 14px;
  font-weight: 700;
  color: var(--ui-text);
}
#preview-design-select option[value=""] {
  color: var(--ui-text-2);
}

/* Monitor segmented controls: keep compact glass feel from the good screenshot */
#view-monitor .btn[onclick^="setClickMode"],
#view-monitor .btn[onclick^="bulkClick"],
#view-monitor .btn[onclick^="filterPositions"] {
  min-width: auto !important;
  width: auto !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}
#view-monitor .btn[onclick^="bulkClick"] {
  justify-content: center !important;
}
#view-monitor .btn[onclick^="setClickMode"].btn-gold,
#view-monitor .btn[onclick^="bulkClick"].btn-gold,
#view-monitor .btn[onclick="checkSelectedProject()"].btn-gold {
  background:
    linear-gradient(135deg, rgba(88, 168, 255, 0.20), rgba(116, 94, 255, 0.22)),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 20px rgba(41, 59, 120, .12),
    0 0 0 1px rgba(98, 141, 255, 0.12) !important;
}

/* Light theme final readability */
html[data-theme="light"] {
  --ui-text-2: #60769f;
  --ui-text-3: #52698f;
}
html[data-theme="light"] .muted,
html[data-theme="light"] .hint,
html[data-theme="light"] .card-desc,
html[data-theme="light"] label,
html[data-theme="light"] th,
html[data-theme="light"] td,
html[data-theme="light"] .small,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color: #4f6691 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.96);
}
html[data-theme="light"] .sec-title,
html[data-theme="light"] .topbar-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] strong,
html[data-theme="light"] b {
  color: #203456 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.98);
}
html[data-theme="light"] .card,
html[data-theme="light"] .topbar,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .api-status,
html[data-theme="light"] .theme-sw,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  box-shadow: 0 0 0 1px rgba(132, 151, 198, 0.12), 0 22px 46px rgba(121,140,180,.16), inset 0 1px 0 rgba(255,255,255,.98) !important;
}


/* === v5 final polish === */

/* Logo bigger and clearer */
.logo {
  min-height: 96px !important;
  padding: 14px 16px 12px !important;
}
.logo::before {
  width: 170px !important;
  height: 64px !important;
  max-width: calc(100% - 8px) !important;
  background-image: url("/img/logo.webp") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
}
html[data-theme="light"] .logo::before {
  filter:
    drop-shadow(0 10px 20px rgba(88, 120, 190, 0.16))
    drop-shadow(0 1px 0 rgba(255,255,255,0.96))
    saturate(1.02) !important;
}

/* Sidebar active state: calmer glass */
.nav-item:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006)) !important;
  border-color: rgba(255,255,255,0.03) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 18px rgba(0,0,0,0.10) !important;
}
.nav-item.active {
  background:
    linear-gradient(90deg, rgba(52,179,255,0.055), rgba(112,91,255,0.075)),
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006)) !important;
  border-color: rgba(112,166,255,0.10) !important;
  box-shadow:
    0 0 0 1px rgba(73,162,255,0.05),
    0 10px 22px rgba(5, 11, 30, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.045) !important;
}
.nav-item.active::before {
  opacity: .72 !important;
  box-shadow: 0 0 8px rgba(73,173,255,0.14) !important;
}
html[data-theme="light"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(48,168,255,.045), rgba(107,103,255,.04)),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.80)) !important;
  border-color: rgba(132, 151, 198, 0.12) !important;
  box-shadow:
    0 8px 14px rgba(121, 140, 180, 0.09),
    inset 0 1px 0 rgba(255,255,255,.96) !important;
}

/* Theme chips: slightly deeper, less noisy */
.th-btn,
.theme-btn,
[data-theme-btn] {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.th-btn.active,
.th-btn:hover,
.theme-btn.active,
.theme-btn:hover,
[data-theme-btn].active,
[data-theme-btn]:hover {
  background:
    linear-gradient(135deg, rgba(88, 168, 255, 0.07), rgba(116, 94, 255, 0.09)),
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.008)) !important;
  border-color: rgba(126, 153, 223, 0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 8px 14px rgba(5,11,30,0.10) !important;
}

/* Exact Auto Factory layout using real columns */
#view-auto-factory.active {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 14px 16px 20px 16px !important;
}
#af-main-col {
  flex: 0 0 380px !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
#af-right-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
#af-right-col > * {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}
#af-right-col > .card,
#af-right-col > .card-with-illus {
  min-height: unset !important;
}
#af-right-col .card-with-illus::after {
  right: 22px !important;
  bottom: 0 !important;
  width: 170px !important;
  height: 128px !important;
  opacity: .78 !important;
}
#view-auto-factory #af-right-col > :is(.card, .card-with-illus):empty::before {
  content: "" !important;
  display: block;
  min-height: 120px !important;
}
#view-auto-factory #domains-found {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}
#af-run-card,
#af-search-card,
#af-yandex-card {
  width: 100% !important;
}

/* Responsive fallback for auto factory */
@media (max-width: 1320px) {
  #view-auto-factory.active {
    flex-direction: column !important;
  }
  #af-main-col,
  #af-right-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }
}

/* Monitor segmented controls: keep premium glass */
#view-monitor .seg,
#view-monitor .seg-btn,
#view-monitor .chip-tab,
#view-monitor .filter-chip,
#view-monitor button[onclick*="Mode"],
#view-monitor button[onclick*="Group"],
#view-monitor button[onclick*="setKeywordType"],
#view-monitor button[onclick*="setMassMode"] {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.008)),
    linear-gradient(135deg, rgba(39,153,255,0.04), rgba(113,87,255,0.05)) !important;
  border: 1px solid rgba(132, 156, 215, 0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 18px rgba(0,0,0,0.10) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#view-monitor .seg.active,
#view-monitor .seg-btn.active,
#view-monitor .chip-tab.active,
#view-monitor .filter-chip.active,
#view-monitor button.active[onclick*="Mode"],
#view-monitor button.active[onclick*="Group"],
#view-monitor button.active[onclick*="setKeywordType"],
#view-monitor button.active[onclick*="setMassMode"] {
  background:
    linear-gradient(135deg, rgba(78, 130, 255, 0.28), rgba(116, 94, 255, 0.26)),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012)) !important;
  border-color: rgba(132, 156, 215, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 20px rgba(15, 20, 45, 0.18) !important;
}

/* Designs preview: show more of iframe without extra scroll */
#design-preview-frame {
  height: calc(100vh - 150px) !important;
  min-height: 820px !important;
}
@media (max-width: 1480px) {
  #design-preview-frame {
    height: calc(100vh - 165px) !important;
    min-height: 720px !important;
  }
}

/* Light theme readability */
html[data-theme="light"] {
  --ui-text-2: #576d97;
  --ui-text-3: #7489b2;
}
html[data-theme="light"] body,
html[data-theme="light"] .card,
html[data-theme="light"] .sec-title,
html[data-theme="light"] .label,
html[data-theme="light"] .muted {
  text-shadow: 0 1px 0 rgba(255,255,255,0.60);
}
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .modal,
html[data-theme="light"] .input,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  box-shadow:
    0 16px 36px rgba(123, 142, 182, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.94) !important;
}

/* New premium themes */
html[data-theme="violet"] {
  --ui-page:
    radial-gradient(70rem 34rem at 84% 8%, rgba(178, 93, 255, 0.20), transparent 40%),
    radial-gradient(44rem 22rem at 72% 64%, rgba(88, 160, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #0a0d22 0%, #0f1230 52%, #0b1025 100%);
  --ui-sidebar-bg: rgba(9, 11, 30, 0.95);
  --ui-topbar-bg: rgba(10, 12, 28, 0.86);
  --ui-surface: linear-gradient(180deg, rgba(18, 20, 52, 0.97), rgba(13, 18, 44, 0.95));
  --ui-surface-2: rgba(21, 20, 54, 0.92);
  --ui-surface-3: rgba(20, 21, 48, 0.94);
  --ui-surface-soft: rgba(21, 21, 46, 0.82);
  --ui-border: rgba(175, 130, 255, 0.16);
  --ui-border-strong: rgba(175, 130, 255, 0.24);
  --ui-line: rgba(175, 130, 255, 0.08);
  --ui-text: #f7f1ff;
  --ui-text-2: #b8addd;
  --ui-text-3: #8d83b6;
  --ui-primary-1: #b05fff;
  --ui-primary-2: #7a64ff;
  --ui-primary-3: #57b9ff;
  --ui-success: #49db9f;
  --ui-danger: #ff7398;
  --ui-warning: #ffca67;
  --ui-info: #85ccff;
  --ui-shadow-page: 0 18px 55px rgba(8, 7, 20, 0.48);
  --ui-shadow-soft: 0 10px 28px rgba(8, 7, 20, 0.30);
  --ui-shadow-card: 0 0 0 1px rgba(176, 112, 255, 0.16), 0 0 30px rgba(122, 100, 255, 0.12), 0 18px 48px rgba(8, 7, 20, 0.48);
  --ui-shadow-card-hover: 0 0 0 1px rgba(176, 112, 255, 0.22), 0 0 34px rgba(122, 100, 255, 0.16), 0 20px 56px rgba(8, 7, 20, 0.52);
}
html[data-theme="obsidian"] {
  --ui-page:
    radial-gradient(56rem 20rem at 78% 14%, rgba(73, 173, 255, 0.06), transparent 34%),
    linear-gradient(180deg, #06070a 0%, #0a0c10 100%);
  --ui-sidebar-bg: rgba(6, 7, 10, 0.985);
  --ui-topbar-bg: rgba(8, 9, 12, 0.90);
  --ui-surface: linear-gradient(180deg, rgba(11, 13, 18, 0.995), rgba(10, 12, 16, 0.98));
  --ui-surface-2: rgba(14, 16, 21, 0.96);
  --ui-surface-3: rgba(12, 14, 19, 0.96);
  --ui-surface-soft: rgba(12, 14, 19, 0.86);
  --ui-border: rgba(255,255,255,0.055);
  --ui-border-strong: rgba(131, 175, 255, 0.12);
  --ui-line: rgba(255,255,255,0.045);
  --ui-text: #f2f5f8;
  --ui-text-2: #98a2b3;
  --ui-text-3: #6f7888;
  --ui-primary-1: #73baff;
  --ui-primary-2: #5d78ff;
  --ui-primary-3: #8fd0ff;
  --ui-success: #51d89c;
  --ui-danger: #ff7792;
  --ui-warning: #f3c86a;
  --ui-info: #8ad1ff;
  --ui-shadow-page: 0 18px 55px rgba(0, 0, 0, 0.56);
  --ui-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.40);
  --ui-shadow-card: 0 0 0 1px rgba(255,255,255,0.04), 0 16px 42px rgba(0,0,0,0.48);
  --ui-shadow-card-hover: 0 0 0 1px rgba(131, 175, 255, 0.08), 0 20px 48px rgba(0,0,0,0.54);
}

/* Optional future theme chips if buttons are added later */
.th-btn[data-theme="violet"],
.theme-btn[data-theme="violet"],
[data-theme-btn="violet"] {}
.th-btn[data-theme="obsidian"],
.theme-btn[data-theme="obsidian"],
[data-theme-btn="obsidian"] {}


/* === v6 final ultra polish === */

/* Remove violet from the visible switcher, keep obsidian */
#th-violet,
.theme-btn[data-theme="violet"],
.th-btn[data-theme="violet"],
[data-theme-btn="violet"] {
  display: none !important;
}
.theme-sw {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 10px 0 4px !important;
  align-items: stretch !important;
}
.theme-sw > * {
  min-width: 0 !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Sidebar glass polish: calmer active color than v5 */
.nav-item:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.004)) !important;
  border-color: rgba(255,255,255,0.022) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.024),
    0 8px 14px rgba(0,0,0,0.08) !important;
}
.nav-item.active {
  background:
    linear-gradient(90deg, rgba(52,179,255,0.035), rgba(112,91,255,0.05)),
    linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.004)) !important;
  border-color: rgba(112,166,255,0.07) !important;
  box-shadow:
    0 0 0 1px rgba(73,162,255,0.04),
    0 10px 18px rgba(5, 11, 30, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.034) !important;
}
.nav-item.active::before {
  opacity: .58 !important;
  box-shadow: 0 0 7px rgba(73,173,255,0.10) !important;
}
html[data-theme="light"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(48,168,255,.035), rgba(107,103,255,.03)),
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.84)) !important;
  border-color: rgba(132, 151, 198, 0.10) !important;
  box-shadow:
    0 10px 16px rgba(121, 140, 180, 0.08),
    inset 0 1px 0 rgba(255,255,255,.98) !important;
}

/* Aqua: closer to premium reference with stronger large-card glow and more air */
html[data-theme="aqua"] {
  --ui-page:
    radial-gradient(82rem 34rem at 76% 6%, rgba(151, 94, 255, 0.18), transparent 40%),
    radial-gradient(56rem 24rem at 64% 66%, rgba(38, 190, 255, 0.10), transparent 36%),
    linear-gradient(180deg, #05101f 0%, #071224 46%, #071426 100%);
  --ui-shadow-card: 0 0 0 1px rgba(56, 196, 255, 0.20), 0 0 34px rgba(125, 86, 255, 0.12), 0 22px 58px rgba(2, 9, 26, 0.46);
  --ui-shadow-card-hover: 0 0 0 1px rgba(56, 196, 255, 0.24), 0 0 38px rgba(125, 86, 255, 0.16), 0 24px 64px rgba(2, 9, 26, 0.50);
}
html[data-theme="aqua"] #view-auto-factory :is(.card, .card-with-illus),
html[data-theme="aqua"] #view-monitor .card,
html[data-theme="aqua"] #view-dashboard .card,
html[data-theme="aqua"] #view-designs .card {
  box-shadow: var(--ui-shadow-card) !important;
}
html[data-theme="aqua"] #view-auto-factory :is(.card, .card-with-illus) {
  padding: 24px !important;
}
html[data-theme="aqua"] #view-auto-factory.active::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(32rem 12rem at 72% 8%, rgba(156, 99, 255, 0.10), transparent 46%),
    radial-gradient(28rem 10rem at 64% 72%, rgba(45, 182, 255, 0.05), transparent 44%);
}

/* Obsidian: make it a full premium theme rather than a stub */
html[data-theme="obsidian"] {
  --ui-page:
    radial-gradient(52rem 20rem at 78% 12%, rgba(86, 126, 255, 0.06), transparent 36%),
    linear-gradient(180deg, #06080c 0%, #090c12 100%);
  --ui-sidebar-bg: rgba(7, 9, 12, 0.985);
  --ui-topbar-bg: rgba(8, 10, 14, 0.92);
  --ui-surface: linear-gradient(180deg, rgba(12, 14, 19, 0.995), rgba(11, 13, 18, 0.98));
  --ui-surface-2: rgba(16, 18, 23, 0.96);
  --ui-surface-3: rgba(14, 16, 21, 0.96);
  --ui-surface-soft: rgba(14, 16, 21, 0.88);
  --ui-border: rgba(255,255,255,0.05);
  --ui-border-strong: rgba(111, 181, 255, 0.14);
  --ui-line: rgba(255,255,255,0.04);
  --ui-text: #f3f6fa;
  --ui-text-2: #99a6b9;
  --ui-text-3: #748091;
  --ui-primary-1: #5fc8ff;
  --ui-primary-2: #5b73ff;
  --ui-primary-3: #8acfff;
  --ui-success: #4ed79b;
  --ui-danger: #ff748e;
  --ui-warning: #f1c86a;
  --ui-info: #7ccfff;
  --ui-shadow-card: 0 0 0 1px rgba(255,255,255,0.045), 0 0 24px rgba(77, 120, 255, 0.04), 0 18px 46px rgba(0,0,0,0.52);
  --ui-shadow-card-hover: 0 0 0 1px rgba(111, 181, 255, 0.10), 0 0 28px rgba(77, 120, 255, 0.08), 0 22px 54px rgba(0,0,0,0.56);
}
html[data-theme="obsidian"] .card,
html[data-theme="obsidian"] .modal,
html[data-theme="obsidian"] .stat,
html[data-theme="obsidian"] .table-wrap,
html[data-theme="obsidian"] .topbar,
html[data-theme="obsidian"] .sidebar {
  box-shadow: var(--ui-shadow-card) !important;
}
html[data-theme="obsidian"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(79, 179, 255, 0.035), rgba(91,115,255,0.05)),
    linear-gradient(180deg, rgba(255,255,255,0.016), rgba(255,255,255,0.004)) !important;
  border-color: rgba(111,181,255,0.08) !important;
  box-shadow:
    0 0 0 1px rgba(111,181,255,0.05),
    0 12px 24px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.03) !important;
}
html[data-theme="obsidian"] .btn-gold,
html[data-theme="obsidian"] .btn-primary {
  background: linear-gradient(135deg, rgba(87, 175, 255, 0.92), rgba(87, 115, 255, 0.94)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(48, 84, 180, 0.24) !important;
}

/* Auto factory: enforce real 2-column structure and make right column visible */
#view-auto-factory.active {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  overflow: auto !important;
  position: relative !important;
}
#af-main-col {
  flex: 0 0 380px !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-self: flex-start !important;
}
#af-right-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-self: flex-start !important;
  overflow: visible !important;
}
#af-right-col > :is(.card, .card-with-illus, #af-yandex-card, #af-search-card, #af-run-card) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  position: relative !important;
  overflow: visible !important;
}
#af-right-col > :nth-child(1) { order: 1 !important; }
#af-right-col > :nth-child(2) { order: 2 !important; }
#af-right-col > :nth-child(3) { order: 3 !important; }
#af-search-card,
#af-run-card,
#af-right-col > :nth-child(2),
#af-right-col > :nth-child(3) {
  min-height: 0 !important;
}
#af-right-col .card-with-illus::after {
  right: 22px !important;
  bottom: 0 !important;
  width: 170px !important;
  height: 128px !important;
  opacity: .78 !important;
}
#view-auto-factory #domains-found {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}
#view-auto-factory .card,
#view-auto-factory .card-with-illus {
  overflow: visible !important;
}

/* Fallback for old DOM: if search/run are still siblings after the right column, keep them visible */
#view-auto-factory.active > #af-main-col + .card,
#view-auto-factory.active > #af-main-col + .card + .card,
#view-auto-factory.active > #af-main-col + .card + .card + .card,
#view-auto-factory.active > #af-main-col + .card-with-illus,
#view-auto-factory.active > #af-main-col + .card-with-illus + .card-with-illus,
#view-auto-factory.active > #af-main-col + .card-with-illus + .card-with-illus + .card-with-illus {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Designs: richer preview panel framing */
#view-designs > div[style*="grid-template-columns:1fr 1fr"] > .card {
  position: sticky !important;
  top: 12px !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--ui-surface), var(--ui-surface)) padding-box,
    linear-gradient(135deg, rgba(51, 182, 255, 0.18), rgba(125, 86, 255, 0.18)) border-box !important;
  box-shadow:
    var(--ui-shadow-card),
    0 0 28px rgba(91, 104, 255, 0.08) !important;
  overflow: hidden !important;
}
#view-designs > div[style*="grid-template-columns:1fr 1fr"] > .card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(24rem 10rem at 78% 18%, rgba(93, 180, 255, 0.05), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%);
}
#design-preview-frame {
  border-radius: 16px !important;
  border: 1px solid rgba(120, 145, 220, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 36px rgba(4, 10, 30, 0.18) !important;
  height: calc(100vh - 138px) !important;
  min-height: 860px !important;
}
@media (max-width: 1480px) {
  #design-preview-frame {
    height: calc(100vh - 156px) !important;
    min-height: 740px !important;
  }
}

/* Light: a little more depth */
html[data-theme="light"] {
  --ui-shadow-card: 0 0 0 1px rgba(132, 151, 198, 0.10), 0 18px 44px rgba(114, 134, 176, 0.18);
  --ui-shadow-card-hover: 0 0 0 1px rgba(132, 151, 198, 0.14), 0 20px 48px rgba(114, 134, 176, 0.22);
}
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .modal,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  box-shadow:
    0 18px 42px rgba(117, 136, 176, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.98) !important;
}

/* Keep glass readable when switcher wraps */
html[data-theme="glass"] .theme-sw,
html[data-theme="aqua"] .theme-sw,
html[data-theme="onyx"] .theme-sw,
html[data-theme="obsidian"] .theme-sw {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05) !important;
}


/* === v7 emergency polish + auto-factory restore === */

/* Kill any leftover light backgrounds when switching to dark themes */
html[data-theme="aqua"],
html[data-theme="glass"],
html[data-theme="onyx"],
html[data-theme="obsidian"] {
  background: var(--ui-page) !important;
}
html[data-theme="aqua"] body,
html[data-theme="glass"] body,
html[data-theme="onyx"] body,
html[data-theme="obsidian"] body,
html[data-theme="aqua"] .app,
html[data-theme="glass"] .app,
html[data-theme="onyx"] .app,
html[data-theme="obsidian"] .app,
html[data-theme="aqua"] .main,
html[data-theme="glass"] .main,
html[data-theme="onyx"] .main,
html[data-theme="obsidian"] .main,
html[data-theme="aqua"] .content,
html[data-theme="glass"] .content,
html[data-theme="onyx"] .content,
html[data-theme="obsidian"] .content,
html[data-theme="aqua"] .view,
html[data-theme="glass"] .view,
html[data-theme="onyx"] .view,
html[data-theme="obsidian"] .view {
  background: transparent !important;
}

/* Make Aqua closer to Obsidian but with cyan-violet premium glow */
html[data-theme="aqua"] {
  --ui-page:
    radial-gradient(60rem 24rem at 78% 8%, rgba(110, 88, 255, 0.12), transparent 38%),
    radial-gradient(42rem 16rem at 68% 70%, rgba(40, 185, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #060b12 0%, #08101a 44%, #07111c 100%);
  --ui-sidebar-bg: rgba(7, 11, 18, 0.96);
  --ui-topbar-bg: rgba(7, 12, 20, 0.90);
  --ui-surface: linear-gradient(180deg, rgba(11, 16, 26, 0.96), rgba(9, 14, 23, 0.98));
  --ui-surface-2: rgba(13, 18, 29, 0.88);
  --ui-surface-3: rgba(14, 20, 32, 0.92);
  --ui-surface-soft: rgba(13, 19, 31, 0.74);
  --ui-border: rgba(70, 173, 255, 0.11);
  --ui-border-strong: rgba(105, 120, 255, 0.18);
  --ui-line: rgba(108, 161, 255, 0.06);
  --ui-text: #eef5fb;
  --ui-text-2: #9aaac0;
  --ui-text-3: #74839a;
  --ui-primary-1: #4dbfff;
  --ui-primary-2: #6b7cff;
  --ui-primary-3: #86d4ff;
  --ui-shadow-card: 0 0 0 1px rgba(63, 179, 255, 0.11), 0 0 24px rgba(103, 102, 255, 0.06), 0 18px 46px rgba(0,0,0,0.46);
  --ui-shadow-card-hover: 0 0 0 1px rgba(63, 179, 255, 0.14), 0 0 28px rgba(103, 102, 255, 0.09), 0 22px 52px rgba(0,0,0,0.50);
}
html[data-theme="aqua"] .card,
html[data-theme="aqua"] .card-with-illus,
html[data-theme="aqua"] .stat-card,
html[data-theme="aqua"] .tbl-wrap,
html[data-theme="aqua"] .chat-panel,
html[data-theme="aqua"] .modal {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006)),
    var(--ui-surface) !important;
  border-color: var(--ui-border) !important;
  box-shadow: var(--ui-shadow-card), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* Make Glass premium matte/frosted instead of messy */
html[data-theme="glass"] {
  --ui-page:
    radial-gradient(58rem 26rem at 78% 10%, rgba(115, 100, 255, 0.16), transparent 40%),
    radial-gradient(38rem 16rem at 70% 76%, rgba(54, 173, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #060a14 0%, #0a1020 46%, #07101a 100%);
  --ui-sidebar-bg: rgba(10, 14, 24, 0.74);
  --ui-topbar-bg: rgba(10, 14, 22, 0.72);
  --ui-surface: linear-gradient(180deg, rgba(14, 18, 30, 0.64), rgba(12, 16, 27, 0.58));
  --ui-surface-2: rgba(15, 20, 32, 0.54);
  --ui-surface-3: rgba(15, 20, 32, 0.62);
  --ui-surface-soft: rgba(15, 20, 32, 0.42);
  --ui-border: rgba(170, 188, 255, 0.10);
  --ui-border-strong: rgba(142, 157, 255, 0.18);
  --ui-line: rgba(255,255,255,0.06);
  --ui-text: #eef4fb;
  --ui-text-2: #a2afc6;
  --ui-text-3: #7c8ba3;
  --ui-primary-1: #67bfff;
  --ui-primary-2: #7b6dff;
  --ui-primary-3: #9fd4ff;
  --ui-shadow-card: 0 0 0 1px rgba(188, 198, 255, 0.10), 0 0 22px rgba(112, 100, 255, 0.07), 0 18px 46px rgba(0,0,0,0.40);
  --ui-shadow-card-hover: 0 0 0 1px rgba(188, 198, 255, 0.13), 0 0 28px rgba(112, 100, 255, 0.10), 0 22px 54px rgba(0,0,0,0.44);
}
html[data-theme="glass"] .sidebar,
html[data-theme="glass"] .topbar,
html[data-theme="glass"] .card,
html[data-theme="glass"] .card-with-illus,
html[data-theme="glass"] .stat-card,
html[data-theme="glass"] .tbl-wrap,
html[data-theme="glass"] .chat-panel,
html[data-theme="glass"] .modal {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.010)),
    var(--ui-surface) !important;
  border-color: var(--ui-border) !important;
  box-shadow: var(--ui-shadow-card), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
}
html[data-theme="glass"] .nav-item.active,
html[data-theme="aqua"] .nav-item.active {
  background:
    linear-gradient(90deg, rgba(63, 179, 255, 0.06), rgba(108, 102, 255, 0.08)),
    linear-gradient(180deg, rgba(255,255,255,0.016), rgba(255,255,255,0.004)) !important;
  border-color: rgba(103, 153, 255, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(103, 153, 255, 0.05), 0 12px 24px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

/* Obsidian: keep as reference-quality and ensure dark containers after light */
html[data-theme="obsidian"] {
  --ui-page:
    radial-gradient(46rem 18rem at 78% 12%, rgba(86, 126, 255, 0.05), transparent 34%),
    linear-gradient(180deg, #05070a 0%, #090c11 100%);
}
html[data-theme="obsidian"] .sidebar,
html[data-theme="obsidian"] .topbar,
html[data-theme="obsidian"] .card,
html[data-theme="obsidian"] .card-with-illus,
html[data-theme="obsidian"] .stat-card,
html[data-theme="obsidian"] .tbl-wrap,
html[data-theme="obsidian"] .chat-panel,
html[data-theme="obsidian"] .modal,
html[data-theme="obsidian"] .content,
html[data-theme="obsidian"] .main,
html[data-theme="obsidian"] .view {
  background-color: transparent !important;
}

/* Theme switcher: 2 columns, no disappearing glass chip */
.theme-sw,
#theme-switcher,
.theme-switcher {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}
.theme-sw > *,
#theme-switcher > *,
.theme-switcher > * {
  min-width: 0 !important;
  width: 100% !important;
}
#th-violet,
.theme-btn[data-theme="violet"],
.th-btn[data-theme="violet"],
[data-theme-btn="violet"] { display: none !important; }

/* Restore Auto Factory with the REAL two-column structure */
#view-auto-factory.active {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 16px 18px 26px !important;
  overflow: auto !important;
  position: relative !important;
}
#view-auto-factory.active::before,
#view-auto-factory.active::after { display: none !important; content: none !important; }
#view-auto-factory.active > * {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#af-main-col {
  flex: 0 0 380px !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-self: flex-start !important;
}
#af-right-col {
  flex: 1 1 auto !important;
  min-width: 420px !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-self: flex-start !important;
  overflow: visible !important;
}
#af-main-col > *,
#af-right-col > *,
#af-yandex-card,
#af-search-card,
#af-run-card {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
#view-auto-factory .card,
#view-auto-factory .card-with-illus {
  overflow: visible !important;
}
#view-auto-factory #domains-found {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}
#view-auto-factory [style*="display:none"],
#view-auto-factory [hidden] {
  display: block !important;
}
/* In case search/run cards ended up outside af-right-col in the live DOM */
#view-auto-factory.active > #af-yandex-card,
#view-auto-factory.active > #af-search-card,
#view-auto-factory.active > #af-run-card {
  margin-left: 0 !important;
}
/* Decorative right illustrations toned down and matte */
#af-right-col .card-with-illus::after,
#af-yandex-card::after,
#af-search-card::after {
  right: 18px !important;
  bottom: 2px !important;
  width: 156px !important;
  height: 118px !important;
  opacity: .48 !important;
  filter: saturate(.75) blur(.2px) !important;
}
@media (max-width: 1280px) {
  #view-auto-factory.active {
    flex-direction: column !important;
  }
  #af-main-col,
  #af-right-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }
}

/* Monitor panels: keep the good obsidian-like look for Aqua and Glass too */
html[data-theme="aqua"] #view-monitor .card,
html[data-theme="glass"] #view-monitor .card,
html[data-theme="obsidian"] #view-monitor .card {
  box-shadow: var(--ui-shadow-card) !important;
}

/* Light mode: slightly deeper shadows */
html[data-theme="light"] {
  --ui-shadow-card: 0 0 0 1px rgba(132, 151, 198, 0.10), 0 18px 44px rgba(114, 134, 176, 0.20);
  --ui-shadow-card-hover: 0 0 0 1px rgba(132, 151, 198, 0.14), 0 22px 52px rgba(114, 134, 176, 0.24);
}


/* === v8 AUTO-FACTORY ROLLBACK FROM WORKING V5 === */
/* User requested restoring Auto Factory from earlier working version. */
#view-auto-factory.active {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 14px 16px 20px 16px !important;
  overflow: auto !important;
  position: relative !important;
}
#view-auto-factory.active::before,
#view-auto-factory.active::after {
  display: none !important;
  content: none !important;
}
#view-auto-factory.active > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#af-main-col {
  flex: 0 0 380px !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-self: flex-start !important;
}
#af-right-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-self: flex-start !important;
  overflow: visible !important;
}
#af-main-col > *,
#af-right-col > *,
#af-yandex-card,
#af-search-card,
#af-run-card {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
#af-right-col > .card,
#af-right-col > .card-with-illus {
  min-height: unset !important;
}
#view-auto-factory .card,
#view-auto-factory .card-with-illus {
  overflow: visible !important;
}
#af-right-col .card-with-illus::after,
#af-yandex-card::after,
#af-search-card::after {
  right: 22px !important;
  bottom: 0 !important;
  width: 170px !important;
  height: 128px !important;
  opacity: .78 !important;
}
#view-auto-factory #af-right-col > :is(.card, .card-with-illus):empty::before {
  content: "" !important;
  display: block !important;
  min-height: 120px !important;
}
#view-auto-factory #domains-found {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}
/* If some old inline style still hides cards, force them back only inside AF columns. */
#af-main-col [style*="display:none"],
#af-right-col [style*="display:none"],
#af-main-col [hidden],
#af-right-col [hidden] {
  display: block !important;
}
@media (max-width: 1320px) {
  #view-auto-factory.active {
    flex-direction: column !important;
  }
  #af-main-col,
  #af-right-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }
}
