:root {
  color-scheme: dark;
  --bg: #0c0f0d;
  --sidebar: #101411;
  --surface: #151a17;
  --surface-2: #1b211d;
  --surface-3: #222925;
  --line: #29322d;
  --line-strong: #3a463f;
  --text: #f1f4f2;
  --muted: #96a29b;
  --faint: #6f7a74;
  --green: #4fd49a;
  --green-deep: #173d2e;
  --blue: #6f8fff;
  --blue-deep: #202d55;
  --amber: #f0b85c;
  --amber-deep: #46351c;
  --red: #f07777;
  --red-deep: #482525;
  --field: #111512;
  --table-head: #121613;
  --topbar: rgba(12, 15, 13, .92);
  --mobile-bar: rgba(16, 20, 17, .97);
  --active-bg: #203229;
  --active-text: #dff9ec;
  --primary-ink: #0a2418;
  --unit-accent: #4fd49a;
  --text-step: 2px;
  --shadow: 0 12px 28px rgba(0, 0, 0, .28);
  --depth-shadow: 0 16px 42px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .035);
  --depth-shadow-hover: 0 25px 64px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .075);
  --depth-ease: cubic-bezier(.2, .75, .24, 1);
  --radius: 8px;
  --sidebar-width: 248px;
  --transition: .2s ease;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f5;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf2ef;
  --surface-3: #e3ebe6;
  --line: #d3ddd7;
  --line-strong: #afc0b6;
  --text: #172019;
  --muted: #526158;
  --faint: #68776e;
  --green: #147a52;
  --green-deep: #dcefe5;
  --blue: #315ec9;
  --blue-deep: #e2eaff;
  --amber: #99600d;
  --amber-deep: #fff0d5;
  --red: #b83d3d;
  --red-deep: #fde3e3;
  --field: #f7faf8;
  --table-head: #edf2ef;
  --topbar: rgba(244, 247, 245, .94);
  --mobile-bar: rgba(255, 255, 255, .97);
  --active-bg: #dcefe5;
  --active-text: #0d583a;
  --primary-ink: #ffffff;
  --shadow: 0 12px 28px rgba(30, 50, 39, .12);
  --depth-shadow: 0 16px 42px rgba(28, 55, 40, .13), inset 0 1px 0 rgba(255, 255, 255, .72);
  --depth-shadow-hover: 0 25px 64px rgba(28, 55, 40, .19), inset 0 1px 0 rgba(255, 255, 255, .9);
}

html[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000000;
  --sidebar: #050505;
  --surface: #0d0d0d;
  --surface-2: #171717;
  --surface-3: #242424;
  --line: #666666;
  --line-strong: #f5df3c;
  --text: #ffffff;
  --muted: #ededed;
  --faint: #cccccc;
  --green: #f5df3c;
  --green-deep: #302b00;
  --blue: #75d5ff;
  --blue-deep: #06334a;
  --amber: #ffd166;
  --amber-deep: #443000;
  --red: #ff7b7b;
  --red-deep: #4d1010;
  --field: #050505;
  --table-head: #161616;
  --topbar: rgba(0, 0, 0, .96);
  --mobile-bar: rgba(0, 0, 0, .98);
  --active-bg: #f5df3c;
  --active-text: #000000;
  --primary-ink: #000000;
  --shadow: 0 0 0 1px #f5df3c;
}

html[data-theme="aurora"] {
  color-scheme: dark;
  --bg: #06100d;
  --sidebar: rgba(7, 18, 15, .86);
  --surface: rgba(14, 28, 23, .82);
  --surface-2: rgba(19, 37, 31, .88);
  --surface-3: rgba(31, 53, 44, .92);
  --line: rgba(137, 221, 184, .16);
  --line-strong: rgba(137, 221, 184, .36);
  --text: #f2fbf7;
  --muted: #a2b9af;
  --faint: #748d82;
  --green: #62efb1;
  --green-deep: rgba(26, 82, 58, .62);
  --blue: #88a8ff;
  --blue-deep: rgba(35, 55, 103, .68);
  --amber: #f3bd68;
  --amber-deep: rgba(79, 57, 24, .7);
  --red: #ff8585;
  --red-deep: rgba(80, 35, 35, .72);
  --field: rgba(7, 19, 15, .76);
  --table-head: rgba(8, 22, 17, .9);
  --topbar: rgba(5, 14, 11, .72);
  --mobile-bar: rgba(6, 16, 13, .94);
  --active-bg: rgba(82, 216, 158, .17);
  --active-text: #e8fff4;
  --primary-ink: #062218;
  --shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

html[data-theme="ocean"] {
  color-scheme: dark;
  --bg: #050a14;
  --sidebar: rgba(7, 13, 27, .88);
  --surface: rgba(12, 22, 41, .84);
  --surface-2: rgba(17, 31, 56, .9);
  --surface-3: rgba(27, 45, 76, .94);
  --line: rgba(128, 171, 235, .17);
  --line-strong: rgba(128, 183, 255, .38);
  --text: #f4f8ff;
  --muted: #a3b2c8;
  --faint: #71839e;
  --green: #64e4cc;
  --green-deep: rgba(24, 79, 78, .62);
  --blue: #78a8ff;
  --blue-deep: rgba(33, 59, 112, .7);
  --amber: #f1bd72;
  --amber-deep: rgba(75, 56, 27, .7);
  --red: #ff858f;
  --red-deep: rgba(79, 33, 43, .72);
  --field: rgba(6, 14, 29, .76);
  --table-head: rgba(7, 16, 32, .91);
  --topbar: rgba(5, 10, 22, .74);
  --mobile-bar: rgba(6, 12, 26, .95);
  --active-bg: rgba(74, 139, 239, .18);
  --active-text: #edf5ff;
  --primary-ink: #061624;
  --shadow: 0 18px 48px rgba(0, 0, 0, .38);
}

html[data-theme="dark"]:not([data-wallpaper="none"]) {
  --sidebar: rgba(12, 17, 14, .88);
  --surface: rgba(19, 26, 22, .84);
  --surface-2: rgba(25, 34, 29, .9);
  --field: rgba(9, 15, 11, .78);
  --table-head: rgba(10, 16, 12, .9);
  --topbar: rgba(8, 12, 9, .76);
}

html[data-font="system"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html[data-font="arial"] { font-family: Arial, Helvetica, sans-serif; }
html[data-text-size="large"] { --text-step: 4px; }
html[data-text-size="xlarge"] { --text-step: 6px; }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: calc(14px + var(--text-step)); letter-spacing: 0; overflow-x: hidden; isolation: isolate; }
body::before,
body::after { content: ""; position: fixed; z-index: 0; inset: -22%; pointer-events: none; opacity: 0; transform: translateZ(0); transition: opacity .55s ease; }
html[data-wallpaper="aurora"] body::before { opacity: .92; background: radial-gradient(42% 36% at 13% 20%, color-mix(in srgb, var(--green) 38%, transparent), transparent 70%), radial-gradient(36% 32% at 86% 17%, color-mix(in srgb, var(--blue) 30%, transparent), transparent 72%), radial-gradient(40% 42% at 57% 94%, rgba(120, 82, 255, .18), transparent 72%); filter: blur(34px) saturate(1.18); animation: wallpaperAurora 28s ease-in-out infinite alternate; }
html[data-wallpaper="aurora"] body::after { opacity: .42; background: linear-gradient(118deg, transparent 22%, color-mix(in srgb, var(--green) 18%, transparent) 47%, transparent 68%); filter: blur(52px); animation: wallpaperSweep 34s ease-in-out infinite alternate; }
html[data-wallpaper="orbit"] body::before { opacity: .84; background: radial-gradient(circle at 25% 22%, color-mix(in srgb, var(--blue) 32%, transparent) 0 4%, transparent 18%), radial-gradient(circle at 74% 38%, color-mix(in srgb, var(--green) 28%, transparent) 0 3%, transparent 19%), radial-gradient(circle at 52% 84%, rgba(139, 92, 246, .2) 0 5%, transparent 21%); filter: blur(22px) saturate(1.12); animation: wallpaperOrbit 32s linear infinite; }
html[data-wallpaper="orbit"] body::after { opacity: .26; background: repeating-radial-gradient(circle at 54% 46%, transparent 0 9%, color-mix(in srgb, var(--line-strong) 42%, transparent) 9.2% 9.4%, transparent 9.7% 16%); animation: wallpaperPulse 18s ease-in-out infinite alternate; }
html[data-wallpaper="silk"] body::before { opacity: .78; background: conic-gradient(from 212deg at 54% 46%, transparent 0 12%, color-mix(in srgb, var(--blue) 22%, transparent) 20%, transparent 32%, color-mix(in srgb, var(--green) 22%, transparent) 47%, transparent 63%, rgba(139, 92, 246, .15) 78%, transparent 92%); filter: blur(45px) saturate(1.2); animation: wallpaperSilk 38s ease-in-out infinite alternate; }
html[data-wallpaper="silk"] body::after { opacity: .34; background: linear-gradient(132deg, transparent 10%, rgba(255, 255, 255, .07) 32%, transparent 48%, color-mix(in srgb, var(--green) 13%, transparent) 66%, transparent 84%); filter: blur(28px); animation: wallpaperSweep 27s ease-in-out infinite alternate-reverse; }
html[data-motion="off"] body::before,
html[data-motion="off"] body::after { animation: none !important; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 18px; height: 18px; stroke-width: 1.8; flex: 0 0 auto; }
[hidden] { display: none !important; }

.login-screen { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; background: #0e120f; z-index: 100; }
.login-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(9, 12, 10, .96) 0%, rgba(9, 12, 10, .72) 50%, rgba(9, 12, 10, .42) 100%), url('/assets/product-grid.png'); background-size: cover; background-position: center; filter: saturate(.75); }
.login-panel { position: relative; width: min(420px, calc(100vw - 32px)); margin-right: min(46vw, 720px); padding: 34px; background: rgba(19, 24, 21, .92); border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.52); backdrop-filter: blur(24px); animation: appear .45s ease both; }
.login-panel h1 { font-size: calc(36px + var(--text-step)); line-height: 1.1; margin: 18px 0 7px; letter-spacing: 0; }
.login-eyebrow { color: var(--green); font-size: calc(11px + var(--text-step)); text-transform: uppercase; font-weight: 700; margin: 22px 0 0; }
.login-subtitle { color: var(--muted); font-size: calc(15px + var(--text-step)); margin: 0 0 28px; }
.demo-hint { text-align: center; color: var(--faint); font-size: calc(12px + var(--text-step)); margin: 18px 0 0; }

.brand-mark { width: 38px; height: 38px; border-radius: 7px; background: var(--green); color: #092017; display: grid; place-items: center; font-size: calc(12px + var(--text-step)); font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.brand-mark.large { width: 48px; height: 48px; font-size: calc(14px + var(--text-step)); }
.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; backdrop-filter: blur(24px) saturate(1.12); }
.sidebar-head { height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: calc(15px + var(--text-step)); }
.brand-copy small, .workspace-switch small, .system-state small { color: var(--faint); font-size: calc(11px + var(--text-step)); }
.workspace-switch { width: 100%; min-height: 58px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); display: grid; grid-template-columns: 32px 1fr 16px; align-items: center; gap: 9px; text-align: left; padding: 9px; margin: 16px 0 10px; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.workspace-switch:hover { border-color: var(--line-strong); background: var(--surface-2); }
.workspace-switch > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.workspace-switch strong { font-size: calc(12px + var(--text-step)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-icon { width: 31px; height: 31px; display: grid; place-items: center; background: #27352d; color: #a4d5bb; border-radius: 6px; font-size: calc(10px + var(--text-step)); font-weight: 800; }
.workspace-switch svg { width: 14px; color: var(--faint); }

.business-unit-intro { display: grid; gap: 5px; margin-bottom: 15px; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.business-unit-intro strong { font-size: calc(14px + var(--text-step)); }
.business-unit-intro span { color: var(--muted); font-size: calc(12px + var(--text-step)); line-height: 1.55; }
.business-unit-list { display: grid; gap: 9px; }
.business-unit-card { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 18px; gap: 13px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.business-unit-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.business-unit-card.active { border-color: color-mix(in srgb, var(--card-accent, var(--unit-accent)) 60%, var(--line)); background: color-mix(in srgb, var(--card-accent, var(--unit-accent)) 9%, var(--surface)); }
.business-unit-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--card-accent, var(--unit-accent)) 18%, transparent); color: var(--card-accent, var(--unit-accent)); font-weight: 850; letter-spacing: .04em; }
.business-unit-copy { min-width: 0; display: grid; gap: 3px; }
.business-unit-copy strong { font-size: calc(14px + var(--text-step)); }
.business-unit-copy small { color: var(--muted); font-size: calc(11px + var(--text-step)); }
.business-unit-copy em { color: var(--faint); font-style: normal; font-size: calc(10px + var(--text-step)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-unit-metrics { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 6px; color: var(--muted); }
.business-unit-metrics b { color: var(--text); font-size: calc(13px + var(--text-step)); text-align: right; }
.business-unit-metrics small { font-size: calc(9px + var(--text-step)); }
.business-unit-card > svg { width: 16px; color: var(--faint); }

.portfolio-overview { margin-bottom: 14px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--unit-accent) 7%, var(--surface)), var(--surface)); }
.portfolio-overview > header { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 12px; }
.portfolio-overview h3 { margin: 3px 0 0; font-size: calc(14px + var(--text-step)); }
.portfolio-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.portfolio-unit { width: 100%; max-width: 100%; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; overflow: hidden; }
.portfolio-unit:hover, .portfolio-unit.active { border-color: color-mix(in srgb, var(--card-accent) 65%, var(--line)); }
.portfolio-unit > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: color-mix(in srgb, var(--card-accent) 16%, transparent); color: var(--card-accent); font-size: 10px; font-weight: 850; }
.portfolio-unit div { min-width: 0; display: grid; gap: 2px; }
.portfolio-unit strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: calc(11px + var(--text-step)); }
.portfolio-unit small { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: calc(9px + var(--text-step)); }
.portfolio-unit > b { grid-column: 3; color: var(--muted); font-size: calc(10px + var(--text-step)); white-space: nowrap; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 2px 0; scrollbar-width: none; }
.nav-caption { color: #58635d; text-transform: uppercase; font-size: calc(9px + var(--text-step)); font-weight: 800; margin: 19px 10px 6px; }
.nav-item { width: 100%; height: 39px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 11px; padding: 0 10px; border-radius: 6px; cursor: pointer; transition: color var(--transition), background var(--transition); text-align: left; }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: var(--active-text); background: var(--active-bg); }
.nav-item.active svg { color: var(--green); }
.nav-item span { flex: 1; }
.nav-item b { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: #27302b; color: var(--muted); font-size: calc(10px + var(--text-step)); }
.nav-item b.warning { background: var(--amber-deep); color: var(--amber); }
.sidebar-foot { padding: 12px 4px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.system-state { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.system-state > span:last-child { display: grid; gap: 2px; min-width: 0; }
.system-state strong { font-size: calc(10px + var(--text-step)); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(79,212,154,.11); flex: 0 0 auto; }

.app-main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; height: 72px; padding: 0 30px; background: var(--topbar); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(18px); }
.title-block { display: flex; align-items: center; gap: 10px; }
.title-block h1 { margin: 2px 0 0; font-size: calc(20px + var(--text-step)); line-height: 1.2; font-weight: 650; }
.title-block p { margin: 0; color: var(--faint); font-size: calc(10px + var(--text-step)); text-transform: uppercase; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.global-search { width: 290px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--faint); }
.global-search:focus-within { border-color: #557462; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: calc(12px + var(--text-step)); }
.global-search input::placeholder { color: var(--faint); }
kbd { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--faint); border-radius: 4px; padding: 2px 5px; font: 10px inherit; }
.live-state { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); font-size: calc(11px + var(--text-step)); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.96); }
.icon-btn.small { width: 30px; height: 30px; border: 0; background: transparent; }
.icon-btn.small svg { width: 16px; }
.notification-btn { position: relative; }
.notification-btn span { position: absolute; top: -4px; right: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: white; font-size: calc(9px + var(--text-step)); font-weight: 800; border: 2px solid var(--bg); }
.profile-button { height: 40px; display: grid; grid-template-columns: 30px auto 15px; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0 3px; cursor: pointer; text-align: left; }
.profile-button > span:first-child { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: #2d3b33; color: #c7e6d5; font-weight: 800; font-size: calc(10px + var(--text-step)); }
.profile-copy { display: grid; gap: 1px; }
.profile-copy strong { font-size: calc(11px + var(--text-step)); }
.profile-copy small { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.profile-button svg { width: 13px; color: var(--faint); }
.page-content { width: 100%; min-width: 0; max-width: 1720px; margin: 0 auto; padding: 26px 30px 52px; outline: 0; perspective: 1400px; transform-style: preserve-3d; animation: appear .25s ease both; transition: opacity .22s ease, transform .3s var(--depth-ease), filter .24s ease; }
.page-content.depth-enter { animation: depthPageIn .38s var(--depth-ease) both; }
.app-shell.unit-switching .page-content { opacity: .42; filter: saturate(.75) blur(1px); transform: scale(.992) translateZ(-14px); }
.loading-state { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.loader { width: 30px; height: 30px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }

.page-toolbar { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-toolbar .toolbar-copy h2 { margin: 0 0 3px; font-size: calc(16px + var(--text-step)); }
.page-toolbar .toolbar-copy p { margin: 0; color: var(--muted); font-size: calc(12px + var(--text-step)); }
.toolbar-actions, .filters, .segmented { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn { min-height: 36px; border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; cursor: pointer; font-weight: 650; font-size: calc(12px + var(--text-step)); transition: background var(--transition), border-color var(--transition), transform var(--transition); text-decoration: none; }
.btn:hover { background: var(--surface-3); border-color: #506057; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--primary-ink); }
.btn.primary:hover { background: #66dfaa; }
.btn.danger { color: #ffc1c1; border-color: #6a3434; background: #2c1b1b; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.full { width: 100%; min-height: 42px; }
.btn svg { width: 16px; }
.segmented { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.segmented button { height: 29px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); padding: 0 10px; cursor: pointer; font-size: calc(11px + var(--text-step)); }
.segmented button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sales-queue-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sales-queue-bar::-webkit-scrollbar { display: none; }
.sales-queue-btn { flex: 0 0 auto; width: max-content; min-width: 142px; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; white-space: nowrap; font-size: calc(12px + var(--text-step)); }
.sales-queue-btn > span { display: block; }
.sales-queue-btn strong { min-width: 25px; height: 25px; padding: 0 7px; border-radius: 7px; background: var(--surface-3); color: var(--text); display: grid; place-items: center; font-size: calc(11px + var(--text-step)); }
.sales-queue-btn.active { border-color: rgba(79,216,161,.58); background: var(--green-deep); color: var(--green); box-shadow: inset 0 0 0 1px rgba(79,216,161,.08); }
.sales-queue-btn.active strong { background: var(--green); color: var(--primary-ink); }
.sales-queue-note { margin: 0 0 16px; color: var(--faint); display: flex; align-items: center; gap: 7px; font-size: calc(10px + var(--text-step)); }
.sales-queue-note svg { width: 14px; color: var(--green); }
.select-control, .search-control { height: 36px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); padding: 0 10px; outline: 0; font-size: calc(12px + var(--text-step)); }
.search-control { min-width: 230px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.kpi-item { min-height: 126px; padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.kpi-item:last-child { border: 0; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: calc(11px + var(--text-step)); }
.kpi-head span:first-child { display: flex; align-items: center; gap: 8px; }
.kpi-icon { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; background: #25302a; color: #aec7b9; }
.kpi-icon svg { width: 14px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: calc(10px + var(--text-step)); font-weight: 700; }
.trend.up { color: var(--green); }
.trend.warn { color: var(--amber); }
.kpi-value { font-size: calc(26px + var(--text-step)); font-weight: 690; line-height: 1; }
.kpi-note { color: var(--faint); font-size: calc(10px + var(--text-step)); margin-top: 7px; }
.owner-actions-panel { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.owner-actions-panel > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.owner-actions-panel h2 { margin: 3px 0 0; font-size: calc(14px + var(--text-step)); }
.commercial-path-panel { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.commercial-path-panel > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.commercial-path-panel h2 { margin: 3px 0 0; font-size: calc(14px + var(--text-step)); }
.commercial-path-panel > header small { color: var(--muted); font-size: calc(8px + var(--text-step)); }
.commercial-path-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.commercial-path-step { min-width: 0; min-height: 112px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: center; gap: 8px 9px; padding: 14px; border: 0; border-right: 1px solid var(--line); color: var(--text); background: transparent; cursor: pointer; text-align: left; transition: background var(--transition); }
.commercial-path-step:last-child { border-right: 0; }
.commercial-path-step:hover { background: var(--surface-2); }
.commercial-path-step > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green); background: var(--green-deep); font-size: calc(8px + var(--text-step)); font-weight: 800; }
.commercial-path-step > div { min-width: 0; }
.commercial-path-step strong, .commercial-path-step small { display: block; }
.commercial-path-step strong { font-size: calc(9px + var(--text-step)); line-height: 1.35; }
.commercial-path-step small { margin-top: 4px; color: var(--faint); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.commercial-path-step > b { grid-column: 2; color: var(--green); font-size: calc(18px + var(--text-step)); line-height: 1; }
.owner-actions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.owner-action { min-width: 0; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.owner-action:nth-child(odd) { border-right: 1px solid var(--line); }
.owner-action-priority { width: 7px; height: 30px; border-radius: 999px; background: var(--blue); }
.owner-action-priority.high { background: var(--amber); }
.owner-action-priority.critical { background: var(--red); }
.owner-action strong { display: block; font-size: calc(11px + var(--text-step)); }
.owner-action p { margin: 4px 0 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .8fr); gap: 18px; }
.dashboard-grid > * { min-width: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { min-height: 57px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: calc(13px + var(--text-step)); }
.panel-head p { margin: 3px 0 0; color: var(--faint); font-size: calc(10px + var(--text-step)); }
.panel-body { padding: 17px; }
.chart-wrap { position: relative; width: 100%; min-width: 0; min-height: 260px; overflow: hidden; }
.chart-wrap canvas { width: 100% !important; max-width: 100%; max-height: 260px; }
.pipeline-row { display: grid; grid-template-columns: 120px 1fr 90px 48px; align-items: center; gap: 12px; min-height: 43px; border-bottom: 1px solid rgba(41,50,45,.72); }
.pipeline-row:last-child { border: 0; }
.pipeline-label { color: var(--muted); font-size: calc(11px + var(--text-step)); }
.pipeline-track { height: 7px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.pipeline-fill { height: 100%; background: var(--blue); }
.pipeline-amount { text-align: right; font-size: calc(11px + var(--text-step)); font-weight: 700; }
.pipeline-count { text-align: right; color: var(--faint); font-size: calc(10px + var(--text-step)); }
.insight-list { display: grid; }
.insight { padding: 16px 17px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 11px; }
.insight:last-child { border: 0; }
.insight-icon { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.insight-icon.high { background: var(--red-deep); color: var(--red); }
.insight-icon.medium { background: var(--amber-deep); color: var(--amber); }
.insight-icon.positive { background: var(--green-deep); color: var(--green); }
.insight-icon svg { width: 15px; }
.insight h3 { margin: 0 0 5px; font-size: calc(11px + var(--text-step)); }
.insight p { margin: 0 0 8px; color: var(--muted); font-size: calc(10px + var(--text-step)); line-height: 1.45; }
.text-action { border: 0; background: transparent; padding: 0; color: var(--blue); font-size: calc(10px + var(--text-step)); font-weight: 700; cursor: pointer; }
.activity-list { padding: 5px 17px; }
.activity-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(41,50,45,.72); }
.activity-row:last-child { border: 0; }
.activity-symbol { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.activity-symbol.ai { color: var(--green); background: var(--green-deep); }
.activity-symbol.sale { color: var(--blue); background: var(--blue-deep); }
.activity-symbol.purchase { color: var(--amber); background: var(--amber-deep); }
.activity-symbol svg { width: 14px; }
.activity-row h3 { font-size: calc(10px + var(--text-step)); margin: 1px 0 3px; }
.activity-row p { color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; margin: 0; }
.activity-row time { color: var(--faint); font-size: calc(9px + var(--text-step)); white-space: nowrap; }
.notification-list { max-height: min(56vh, 520px); overflow-y: auto; }
.notification-read-note { display: flex; align-items: center; gap: 8px; padding: 12px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: calc(9px + var(--text-step)); }
.notification-read-note svg { width: 16px; color: var(--green); }

.data-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.data-table th { height: 39px; padding: 0 13px; color: var(--faint); background: var(--table-head); border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: calc(9px + var(--text-step)); text-align: left; font-weight: 750; white-space: nowrap; }
.data-table td { height: 57px; padding: 8px 13px; border-bottom: 1px solid rgba(41,50,45,.78); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(255,255,255,.025); }
.cell-primary { font-size: calc(11px + var(--text-step)); font-weight: 650; margin-bottom: 3px; }
.cell-secondary { font-size: calc(9px + var(--text-step)); color: var(--faint); }
.money-cell { font-size: calc(11px + var(--text-step)); font-weight: 700; white-space: nowrap; }
.muted { color: var(--muted); }
.tiny { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.status-pill { display: inline-flex; min-height: 22px; align-items: center; gap: 5px; border-radius: 5px; padding: 0 7px; background: #29312d; color: #b8c2bc; font-size: calc(9px + var(--text-step)); font-weight: 700; white-space: nowrap; }
.status-pill.new, .status-pill.qualification, .status-pill.quotes, .status-pill.possible_client, .status-pill.contact_verified, .status-pill.decision_maker_found, .status-pill.contacted { background: var(--blue-deep); color: #b9c8ff; }
.status-pill.proposal, .status-pill.negotiation, .status-pill.approval, .status-pill.response_received, .status-pill.qualified, .status-pill.proposal_approved, .status-pill.proposal_sent, .status-pill.won_unverified { background: var(--amber-deep); color: #ffd795; }
.status-pill.won, .status-pill.ordered, .status-pill.delivered, .status-pill.approved { background: var(--green-deep); color: #a5efcf; }
.status-pill.lost, .status-pill.cancelled, .status-pill.rejected, .status-pill.critical { background: var(--red-deep); color: #ffb6b6; }
/* Тендерный реестр: подсветка дедлайнов (<3 дней — красным, <7 — жёлтым) */
.deadline-cell { display: inline-block; }
.deadline-cell.hot { color: var(--red); font-weight: 700; }
.deadline-cell.warm { color: var(--amber); font-weight: 600; }
.tender-text { margin: 0; color: var(--muted); font-size: calc(11px + var(--text-step)); line-height: 1.55; white-space: pre-wrap; }
.priority { display: inline-flex; align-items: center; gap: 6px; font-size: calc(10px + var(--text-step)); }
.priority::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.priority.high::before { background: var(--amber); }
.priority.critical::before { background: var(--red); box-shadow: 0 0 0 3px rgba(240,119,119,.1); }
.progress-cell { display: flex; align-items: center; gap: 7px; }
.mini-progress { width: 48px; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--green); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 11px; overflow-x: auto; padding-bottom: 4px; }
.kanban-column { min-width: 220px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.kanban-head { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px; color: var(--muted); font-size: calc(10px + var(--text-step)); text-transform: uppercase; font-weight: 750; }
.kanban-head span:last-child { background: var(--surface-3); border-radius: 8px; padding: 2px 6px; }
.deal-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 12px; margin-top: 8px; cursor: pointer; transition: border-color var(--transition), transform var(--transition); }
.deal-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.deal-card small { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.deal-card h3 { min-height: 32px; margin: 7px 0; font-size: calc(11px + var(--text-step)); line-height: 1.45; }
.deal-card .card-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: calc(9px + var(--text-step)); margin-top: 10px; }

.split-layout { display: grid; grid-template-columns: minmax(310px, .8fr) minmax(520px, 1.5fr); min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.split-list { border-right: 1px solid var(--line); min-width: 0; }
.split-list-head { padding: 13px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.split-list-head .search-control { width: 100%; min-width: 0; }
.request-list { max-height: 680px; overflow-y: auto; }
.request-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; padding: 14px; cursor: pointer; transition: background var(--transition); }
.request-row:hover, .request-row.active { background: var(--surface-2); }
.request-row.active { box-shadow: inset 3px 0 var(--green); }
.request-row-top, .request-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.request-row h3 { font-size: calc(11px + var(--text-step)); margin: 8px 0 10px; line-height: 1.4; }
.request-row-bottom { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.split-detail { min-width: 0; }
.detail-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.detail-head h2 { margin: 6px 0 3px; font-size: calc(16px + var(--text-step)); }
.detail-head p { margin: 0; color: var(--muted); font-size: calc(10px + var(--text-step)); }
.detail-body { padding: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.detail-metric { min-height: 67px; background: var(--field); border: 1px solid var(--line); border-radius: 7px; padding: 11px; }
.detail-metric span { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.detail-metric strong { display: block; margin-top: 7px; font-size: calc(12px + var(--text-step)); }
.specification { padding: 14px; background: var(--field); border-left: 2px solid var(--green); color: var(--muted); font-size: calc(11px + var(--text-step)); line-height: 1.55; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.section-title h3 { margin: 0; font-size: calc(12px + var(--text-step)); }
.quotes-grid { display: grid; gap: 8px; }
.quote-row { min-height: 72px; display: grid; grid-template-columns: minmax(140px, 1.2fr) .8fr .7fr .65fr 28px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.quote-row.recommended { border-color: #35664f; background: #122019; }
.quote-check { color: var(--green); }
.score { font-size: calc(16px + var(--text-step)); font-weight: 750; }
.score small { color: var(--faint); font-size: calc(8px + var(--text-step)); font-weight: 500; }
.procurement-warning { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 16px; padding: 11px 12px; border: 1px solid #72501f; border-radius: 7px; background: var(--amber-deep); color: #f3cd8e; font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.procurement-warning svg { width: 17px; height: 17px; flex: 0 0 auto; }
.procurement-supplier-head { align-items: flex-end; gap: 14px; }
.procurement-supplier-head h3 { margin-bottom: 4px; }
.procurement-supplier-head p { margin: 0; color: var(--faint); font-size: calc(9px + var(--text-step)); }
.supplier-offers { display: grid; gap: 9px; }
.supplier-market-group { display: grid; gap: 9px; }
.supplier-market-group + .supplier-market-group { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.supplier-market-label { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.supplier-market-label.foreign { border-color: #315b72; background: #101c24; }
.supplier-market-label > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted); }
.supplier-market-label.foreign > svg { color: #70c7f5; }
.supplier-market-label strong, .supplier-market-label span { display: block; }
.supplier-market-label strong { font-size: calc(10px + var(--text-step)); }
.supplier-market-label span { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.supplier-offer { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .48fr) 64px; gap: 14px; align-items: stretch; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.supplier-offer.recommended { border-color: #35664f; background: #122019; }
.supplier-offer-main { min-width: 0; }
.supplier-offer-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.supplier-offer-title h4 { margin: 0 0 4px; font-size: calc(11px + var(--text-step)); }
.supplier-offer-title p, .supplier-summary { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.supplier-summary { margin-top: 9px; }
.supplier-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.supplier-checks span { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: calc(8px + var(--text-step)); font-weight: 650; }
.supplier-checks span.ok { border-color: #2e684d; background: var(--green-deep); color: #a5efcf; }
.supplier-checks span.warn { border-color: #72501f; background: var(--amber-deep); color: #f3cd8e; }
.supplier-checks svg { width: 13px; height: 13px; }
.supplier-verification-note { display: grid; gap: 3px; margin-top: 10px; padding: 9px 10px; border-left: 3px solid var(--amber); background: var(--amber-deep); color: #f3cd8e; font-size: calc(8px + var(--text-step)); line-height: 1.45; }
.supplier-verification-note.verified { border-left-color: var(--green); background: var(--green-deep); color: #a5efcf; }
.supplier-verification-note span { color: inherit; opacity: .86; }
.supplier-contact-data, .supplier-contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 9px; }
.supplier-contact-data { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.supplier-contact-data span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.supplier-contact-data svg { width: 13px; height: 13px; flex: 0 0 auto; }
.supplier-contact-actions .btn.compact { min-height: 30px; height: 30px; padding: 0 9px; font-size: calc(8px + var(--text-step)); text-decoration: none; }
.supplier-contact-actions .btn.compact svg { width: 13px; height: 13px; }
.supplier-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--faint); font-size: calc(9px + var(--text-step)); }
.supplier-contacts span, .supplier-contacts a { display: inline-flex; align-items: center; gap: 5px; }
.supplier-contacts a { color: var(--green); text-decoration: none; }
.supplier-contacts svg { width: 14px; height: 14px; }
.price-source { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); font-size: calc(8px + var(--text-step)); font-weight: 700; white-space: nowrap; }
.price-source.confirmed { background: var(--green-deep); color: #a5efcf; }
.price-source.public { background: var(--blue-deep); color: #b9c8ff; }
.price-source.requested { background: var(--amber-deep); color: #ffd795; }
.supplier-price { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 5px 10px; padding-left: 13px; border-left: 1px solid var(--line); font-size: calc(9px + var(--text-step)); }
.supplier-price span, .supplier-price small { color: var(--faint); }
.supplier-price strong, .supplier-price b { text-align: right; white-space: nowrap; }
.supplier-price small { grid-column: 1 / -1; margin-top: 4px; line-height: 1.35; }
.supplier-score { display: grid; place-items: center; align-content: center; border-left: 1px solid var(--line); color: var(--green); }
.supplier-score strong { font-size: calc(18px + var(--text-step)); }
.supplier-score span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.supplier-score svg { width: 17px; height: 17px; margin-top: 5px; }

.ai-layout { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.3fr); gap: 18px; }
.ai-input-panel, .ai-result-panel { min-height: 610px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ai-mode-tabs { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.upload-zone { margin: 16px; min-height: 150px; border: 1px dashed var(--line-strong); border-radius: 7px; display: grid; place-items: center; text-align: center; padding: 20px; cursor: pointer; background: var(--field); transition: border-color var(--transition), background var(--transition); overflow: hidden; position: relative; }
.upload-zone:hover { border-color: var(--green); background: #142019; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 8px; }
.upload-zone strong { display: block; font-size: calc(11px + var(--text-step)); }
.upload-zone p { margin: 5px 0 0; color: var(--faint); font-size: calc(9px + var(--text-step)); }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-text-area { padding: 0 16px 16px; }
.ai-text-area textarea { width: 100%; min-height: 168px; resize: vertical; }
.sample-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.sample-chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 5px; color: var(--muted); padding: 6px 8px; font-size: calc(9px + var(--text-step)); cursor: pointer; }
.ai-submit { padding: 0 16px 16px; }
.result-empty { min-height: 520px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--faint); padding: 30px; }
.result-empty .empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: var(--green-deep); color: var(--green); margin-bottom: 14px; }
.result-empty .empty-icon.error { background: var(--amber-deep); color: var(--amber); }
.result-empty .empty-icon svg { width: 25px; height: 25px; }
.result-empty h3 { margin: 0 0 6px; color: var(--text); font-size: calc(13px + var(--text-step)); }
.result-empty p { max-width: 340px; margin: 0; font-size: calc(10px + var(--text-step)); line-height: 1.5; }
.result-empty .btn { margin-top: 16px; }
.result-empty.compact { min-height: 190px; }
.result-content { padding: 18px; }
.confidence-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.confidence-badge { color: var(--green); font-size: calc(11px + var(--text-step)); font-weight: 750; }
.parsed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
.parsed-field { padding: 11px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; }
.parsed-field label { display: block; color: var(--faint); font-size: calc(8px + var(--text-step)); text-transform: uppercase; margin-bottom: 5px; }
.parsed-field strong { font-size: calc(11px + var(--text-step)); line-height: 1.4; }
.question-list { padding: 12px 12px 12px 29px; margin: 12px 0; background: var(--amber-deep); color: #f4d59f; border-radius: 6px; font-size: calc(10px + var(--text-step)); line-height: 1.6; }
.knowledge-source { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; padding: 11px 12px; border: 1px solid #284d38; border-radius: 6px; background: var(--green-deep); }
.knowledge-source svg { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; }
.knowledge-source span { display: block; margin-bottom: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.knowledge-source strong { display: block; font-size: calc(10px + var(--text-step)); line-height: 1.35; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.product-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition), transform var(--transition); }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-image { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.product-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9, 12, 10, .72)); pointer-events: none; }
.source-badge { position: absolute; z-index: 1; left: 9px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; color: #f3f6f4; background: rgba(12, 16, 13, .75); backdrop-filter: blur(6px); font-size: calc(7px + var(--text-step)); font-weight: 750; }
.source-badge svg { width: 10px; height: 10px; color: #8de0ae; }
.product-body { padding: 14px; }
.product-category { color: var(--green); font-size: calc(8px + var(--text-step)); text-transform: uppercase; font-weight: 800; }
.product-body h3 { min-height: 34px; font-size: calc(12px + var(--text-step)); line-height: 1.45; margin: 6px 0; }
.product-body p { height: 42px; overflow: hidden; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.5; margin: 0 0 10px; }
.catalog-facts { min-height: 45px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; margin-bottom: 11px; }
.catalog-facts span { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--surface-2); font-size: calc(7px + var(--text-step)); line-height: 1.25; }
.product-price { font-size: calc(14px + var(--text-step)); font-weight: 750; }
.product-price small { color: var(--faint); font-size: calc(9px + var(--text-step)); font-weight: 500; }
.stock-row { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.product-source { min-height: 28px; display: flex; align-items: flex-start; gap: 5px; margin-top: 10px; color: var(--faint); font-size: calc(7px + var(--text-step)); line-height: 1.35; }
.product-source svg { width: 10px; height: 10px; flex: 0 0 auto; }


.export-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.export-summary > div { min-height: 92px; padding: 16px 18px; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 6px; }
.export-summary > div:last-child { border-right: 0; }
.export-summary span { color: var(--muted); font-size: calc(9px + var(--text-step)); }
.export-summary strong { font-size: calc(20px + var(--text-step)); }
.market-toolbar { margin-top: 0; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.market-card { min-height: 420px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.market-card header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.market-code { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; background: var(--blue-deep); color: var(--blue); font-size: calc(9px + var(--text-step)); font-weight: 800; }
.market-card h3 { margin: 0 0 3px; font-size: calc(12px + var(--text-step)); }
.market-card header p { margin: 0; color: var(--faint); font-size: calc(8px + var(--text-step)); }
.market-metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.market-metrics > div + div { padding-left: 13px; border-left: 1px solid var(--line); }
.market-metrics span, .market-metrics strong { display: block; }
.market-metrics span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.market-metrics strong { margin-top: 4px; font-size: calc(14px + var(--text-step)); }
.market-card dl { display: grid; gap: 10px; margin: 13px 0 16px; }
.market-card dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: start; }
.market-card dt { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.market-card dd { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.market-card dd span { display: inline-block; margin: 0 4px 4px 0; padding: 3px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text); }
.market-card > .btn { margin-top: auto; }
.export-checklist { margin-top: 18px; padding: 18px; border-left: 3px solid var(--amber); background: var(--surface); }
.export-checklist header { display: flex; gap: 11px; align-items: flex-start; }
.export-checklist header > svg { width: 21px; color: var(--amber); flex: 0 0 auto; }
.export-checklist h2 { margin: 0 0 4px; font-size: calc(13px + var(--text-step)); }
.export-checklist p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.export-checklist ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: 15px 0 0; padding-left: 20px; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }

.counterparty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.counterparty { min-height: 148px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 15px; transition: border-color var(--transition), transform var(--transition), background var(--transition); }
.counterparty[role="button"] { cursor: pointer; }
.counterparty[role="button"]:hover, .counterparty[role="button"]:focus-visible { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); outline: none; }
.counterparty-head { display: flex; align-items: flex-start; gap: 11px; }
.company-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; background: #28332d; color: #b8dbc8; font-size: calc(10px + var(--text-step)); font-weight: 800; }
.counterparty h3 { margin: 1px 0 4px; font-size: calc(11px + var(--text-step)); }
.counterparty .category { color: var(--faint); font-size: calc(9px + var(--text-step)); }
.rating { margin-left: auto; color: var(--amber); font-size: calc(10px + var(--text-step)); }
.country-line { min-height: 31px; display: flex; align-items: center; gap: 6px; margin-top: 13px; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: calc(8px + var(--text-step)); }
.country-line svg { width: 13px; color: var(--green); }
.country-line span { color: var(--muted); }
.country-line b { margin-left: auto; color: var(--blue); font-weight: 650; }
.counterparty-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.counterparty-meta span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.counterparty-meta strong { display: block; color: var(--text); font-size: calc(10px + var(--text-step)); margin-top: 4px; overflow-wrap: anywhere; }
.demo-label { display: inline-flex; align-items: center; min-height: 18px; margin-left: 5px; padding: 1px 5px; border: 1px solid color-mix(in srgb, var(--amber) 48%, transparent); border-radius: 4px; background: var(--amber-deep); color: #ffd795; font-size: calc(7px + var(--text-step)); font-weight: 750; vertical-align: middle; white-space: nowrap; }
.card-open-hint { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 12px; color: var(--green); font-size: calc(8px + var(--text-step)); font-weight: 650; }
.card-open-hint svg { width: 13px; height: 13px; }

.approval-list { display: grid; gap: 10px; }
.approval-item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 17px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 150px auto; align-items: center; gap: 14px; }
.approval-symbol { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; background: var(--amber-deep); color: var(--amber); }
.approval-symbol.done { background: var(--green-deep); color: var(--green); }
.approval-main h3 { margin: 0 0 5px; font-size: calc(12px + var(--text-step)); }
.approval-main p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.approval-amount { font-size: calc(15px + var(--text-step)); font-weight: 750; }
.approval-amount small { display: block; color: var(--faint); font-size: calc(8px + var(--text-step)); margin-top: 4px; font-weight: 500; }
.approval-actions { display: flex; gap: 7px; }

/* Задачи */
.task-item { grid-template-columns: 38px minmax(0, 1fr) auto; }
.task-check { width: 38px; height: 38px; border-radius: 50%; border: 1.6px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.task-check:hover { border-color: var(--green); color: var(--green); }
.task-check.checked { background: var(--green-deep); border-color: transparent; color: var(--green); }
.task-item.task-done .approval-main h3 { text-decoration: line-through; color: var(--muted); }
.task-item.task-overdue { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.task-item .approval-actions { align-items: center; }

.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.integration-card { min-height: 178px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.integration-top { display: flex; align-items: flex-start; justify-content: space-between; }
.integration-logo { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-3); color: var(--green); font-weight: 850; font-size: calc(11px + var(--text-step)); }
.integration-card h3 { margin: 14px 0 5px; font-size: calc(12px + var(--text-step)); }
.integration-card p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.integration-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: calc(8px + var(--text-step)); }

.launch-summary { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 14px; padding: 20px; border: 1px solid #5d4827; border-radius: var(--radius); background: var(--amber-deep); }
.safety-panel { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid #28533d; border-radius: var(--radius); background: var(--green-deep); }
.backup-panel { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.backup-panel h3 { margin: 3px 0 5px; font-size: calc(13px + var(--text-step)); }
.backup-panel p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.5; }
.safety-panel.paused { border-color: #7a3535; background: rgba(104, 35, 35, .22); }
.safety-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: rgba(72, 175, 123, .12); }
.safety-panel.paused .safety-icon { color: #ff8e86; background: rgba(255, 88, 78, .12); }
.safety-panel h3 { margin: 3px 0 5px; font-size: calc(13px + var(--text-step)); }
.safety-panel p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.5; }
.danger-note { border-color: rgba(255, 88, 78, .35); background: rgba(104, 35, 35, .18); }
.send-stop-banner { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid rgba(255, 88, 78, .4); background: rgba(104, 35, 35, .32); color: #ffb3ad; font-size: calc(10px + var(--text-step)); }
.send-stop-banner strong { color: #ffd7d4; }
.send-stop-banner svg { width: 20px; height: 20px; flex-shrink: 0; }
.send-stop-banner[hidden] { display: none; }
.report-panel { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.report-panel h3 { margin: 3px 0 5px; font-size: calc(13px + var(--text-step)); }
.report-panel p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.5; }
.report-preview { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, rgba(255,255,255,.03)); font-family: inherit; font-size: calc(10px + var(--text-step)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.field-hint { display: block; margin-top: 5px; color: var(--faint); font-size: calc(8px + var(--text-step)); }
.launch-summary.ready { border-color: #28533d; background: var(--green-deep); }
.launch-score { min-height: 78px; display: grid; place-content: center; justify-items: center; border-right: 1px solid var(--line-strong); }
.launch-score strong { font-size: calc(28px + var(--text-step)); line-height: 1; }
.launch-score span { margin-top: 7px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.launch-summary h3 { margin: 0 0 6px; font-size: calc(14px + var(--text-step)); }
.launch-summary p { margin: 0; color: var(--muted); font-size: calc(10px + var(--text-step)); line-height: 1.5; }
.launch-progress { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 4px; background: var(--surface-3); }
.launch-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.launch-steps { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.launch-step { min-height: 82px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 190px; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.launch-step:last-child { border-bottom: 0; }
.launch-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--amber-deep); color: var(--amber); font-weight: 750; }
.launch-step.ready .launch-number { background: var(--green-deep); color: var(--green); }
.launch-number svg { width: 17px; }
.launch-step h3 { margin: 0 0 5px; font-size: calc(11px + var(--text-step)); }
.launch-step p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.launch-step .btn { width: 100%; }
.launch-note { margin-top: 14px; }

.intelligence-source { min-height: 64px; display: flex; align-items: center; gap: 12px; margin-bottom: 13px; padding: 12px 15px; border: 1px solid #28533d; border-radius: var(--radius); background: var(--green-deep); }
.intelligence-source.demo { border-color: #5d4827; background: var(--amber-deep); }
.intelligence-source > svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--green); }
.intelligence-source.demo > svg { color: var(--amber); }
.intelligence-source > div { min-width: 0; flex: 1; }
.intelligence-source strong, .intelligence-source span { display: block; }
.intelligence-source strong { font-size: calc(10px + var(--text-step)); }
.intelligence-source span { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.45; }
.intelligence-source > b { flex: 0 0 auto; color: var(--green); font-size: calc(8px + var(--text-step)); letter-spacing: .04em; }
.intelligence-source.demo > b { color: var(--amber); }
.market-automation { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 13px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.market-automation.enabled { border-color: #28533d; background: linear-gradient(90deg, var(--green-deep), var(--surface) 54%); }
.automation-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-3); color: var(--green); }
.automation-icon svg { width: 21px; height: 21px; }
.automation-main { min-width: 0; }
.automation-title { display: flex; align-items: center; gap: 9px; }
.automation-title .status-pill { min-height: 22px; }
.automation-main h2 { margin: 5px 0 4px; font-size: calc(13px + var(--text-step)); }
.automation-main p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.automation-facts { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 9px; color: var(--faint); font-size: calc(8px + var(--text-step)); }
.automation-facts b { color: var(--text); }
.automation-actions { width: 190px; display: grid; gap: 7px; }
.automation-actions .btn { width: 100%; justify-content: center; }
.automation-choice-list { max-height: 310px; display: grid; gap: 7px; overflow-y: auto; padding-right: 4px; }
.automation-choice { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); cursor: pointer; }
.automation-choice input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--green); }
.automation-choice span, .automation-choice strong, .automation-choice small { min-width: 0; display: block; }
.automation-choice strong { font-size: calc(9px + var(--text-step)); line-height: 1.35; }
.automation-choice small { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.35; }
.intelligence-kpis { margin-bottom: 13px; }
.intelligence-kpis .trend:empty { display: none; }
.intelligence-section { margin-bottom: 22px; }
.market-search-workbench { overflow: hidden; border-color: var(--line-strong); }
.market-search-flow { display: grid; gap: 0; padding: 0; }
.market-search-step { padding: 18px; border-bottom: 1px solid var(--line); }
.market-step-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.market-step-heading h3, .market-step-heading p { margin: 0; }
.market-step-heading h3 { font-size: calc(12px + var(--text-step)); }
.market-step-heading p { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.market-step-number { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #315d47; border-radius: 50%; background: var(--green-deep); color: var(--green); font-size: calc(10px + var(--text-step)); font-weight: 800; }
.market-role-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.market-role-option { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.market-role-option:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.market-role-option.active { border-color: #327351; background: linear-gradient(135deg, var(--green-deep), var(--field) 72%); box-shadow: inset 0 0 0 1px rgba(79, 212, 154, .08); }
.market-role-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--muted); }
.market-role-option.active .market-role-icon { background: rgba(79, 212, 154, .12); color: var(--green); }
.market-role-icon svg { width: 20px; height: 20px; }
.market-role-option > span:nth-child(2), .market-role-option strong, .market-role-option small { min-width: 0; display: block; }
.market-role-option strong { font-size: calc(11px + var(--text-step)); }
.market-role-option small { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.35; }
.market-role-option > b { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: calc(8px + var(--text-step)); }
.market-role-option.active > b { background: var(--green); color: #06120c; }
.market-campaign-query { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.market-campaign-query:focus-within { border-color: #327351; box-shadow: 0 0 0 3px rgba(79, 212, 154, .07); }
.market-campaign-query svg { width: 17px; height: 17px; color: var(--muted); }
.market-campaign-query input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: calc(9px + var(--text-step)); }
.market-search-results-step { border-bottom: 0; }
.market-campaign-empty { grid-column: 1 / -1; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); text-align: center; }
.market-campaign-empty svg { width: 26px; height: 26px; color: var(--green); }
.market-campaign-empty strong { color: var(--text); font-size: calc(10px + var(--text-step)); }
.market-campaign-empty span { max-width: 430px; font-size: calc(8px + var(--text-step)); line-height: 1.45; }
.market-search-safety { display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--green-deep); color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.market-search-safety svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--green); }
.market-search-safety strong { color: var(--text); }
.intelligence-campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.intelligence-campaign { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.intelligence-campaign header, .intelligence-campaign footer { display: flex; align-items: flex-start; gap: 10px; }
.intelligence-campaign header > div { min-width: 0; flex: 1; }
.intelligence-campaign h3 { margin: 4px 0 0; font-size: calc(10px + var(--text-step)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intelligence-campaign p { min-height: 18px; margin: 7px 0 10px; color: var(--muted); font-size: calc(8px + var(--text-step)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campaign-progress { height: 4px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.campaign-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.intelligence-campaign footer { align-items: center; margin-top: 8px; color: var(--faint); font-size: calc(8px + var(--text-step)); }
.intelligence-campaign footer strong { color: var(--text); font-weight: 650; }
.intelligence-campaign footer b { margin-left: auto; color: var(--green); }
.campaign-action { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.campaign-action .btn { width: 100%; min-height: 33px; }
.campaign-disabled { display: block; color: var(--faint); font-size: calc(8px + var(--text-step)); text-align: center; }
.direction-advanced { overflow: hidden; }
.direction-advanced > summary { min-height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; padding: 13px 16px; list-style: none; cursor: pointer; }
.direction-advanced > summary::-webkit-details-marker { display: none; }
.direction-advanced > summary h2, .direction-advanced > summary p { margin: 0; }
.direction-advanced > summary h2 { font-size: calc(12px + var(--text-step)); }
.direction-advanced > summary p { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.direction-advanced > summary > svg { width: 18px; height: 18px; color: var(--muted); transition: transform .18s ease; }
.direction-advanced[open] > summary > svg { transform: rotate(180deg); }
.direction-advanced[open] > summary { border-bottom: 1px solid var(--line); }
/* Карточки профилей направлений §5 (этап 11C) */
.direction-card h3 { white-space: normal; line-height: 1.3; }
.direction-card .direction-desc { min-height: 30px; margin: 7px 0 9px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.direction-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 8px; }
.direction-chip { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: calc(7px + var(--text-step)); white-space: nowrap; }
.direction-chip.more { color: var(--text); border-color: var(--surface-3); }
.direction-card footer { flex-wrap: wrap; gap: 4px 10px; }
.direction-card footer b { margin-left: auto; }
.direction-card.inactive { opacity: .62; }
.direction-inactive { display: block; margin-bottom: 7px; color: var(--faint); font-size: calc(8px + var(--text-step)); }
.direction-modal-queries { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.direction-queries { max-height: 170px; margin: 7px 0 0; padding-left: 18px; overflow-y: auto; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.45; }
.direction-queries li { margin: 3px 0; }
.market-work-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.market-work-tabs button { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.market-work-tabs button:hover { border-color: var(--line-strong); color: var(--text); }
.market-work-tabs button.active { border-color: #327351; background: linear-gradient(135deg, var(--green-deep), var(--field) 78%); color: var(--text); }
.market-work-tabs button span { font-size: calc(9px + var(--text-step)); font-weight: 700; }
.market-work-tabs button b { min-width: 29px; height: 29px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: calc(8px + var(--text-step)); }
.market-work-tabs button.active b { background: var(--green); color: #06120c; }
.market-work-guidance { display: flex; align-items: center; gap: 9px; min-height: 42px; margin: 0 0 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.market-work-guidance svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--green); }
.market-archive-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.market-archive-summary > div { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.market-archive-summary > div svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.market-archive-summary strong { color: var(--text); }
.market-archive-summary .btn.active { border-color: #327351; background: var(--green-deep); color: var(--text); }
.market-hidden-count { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: calc(7px + var(--text-step)); white-space: nowrap; }
.market-hidden-count svg { width: 15px; height: 15px; }
.market-hidden-count b { color: var(--text); }
.pipeline-status [data-lucide="loader-circle"], .auto-work-state.waiting svg { animation: spin .9s linear infinite; }
.intelligence-toolbar { align-items: flex-end; }
.intelligence-toolbar .filters { flex-wrap: wrap; justify-content: flex-end; }
.intelligence-results-meta, .intelligence-load-more { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); }
.intelligence-results-meta { padding: 11px 2px; }
.intelligence-results-meta strong { color: var(--text); }
.intelligence-results-meta small { color: var(--faint); }
.intelligence-load-more { justify-content: center; padding: 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.intelligence-load-more span { font-size: 12px; color: var(--faint); }
.intelligence-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.intelligence-company { min-height: 132px; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid var(--line); }
.intelligence-company:last-child { border-bottom: 0; }
.intelligence-company:hover { background: var(--surface-2); }
.company-score { width: 58px; height: 58px; display: grid; place-content: center; justify-items: center; border: 1px solid #315d47; border-radius: 7px; background: var(--green-deep); }
.company-score strong { color: var(--green); font-size: calc(20px + var(--text-step)); line-height: 1; }
.company-score span { margin-top: 4px; color: var(--faint); font-size: calc(7px + var(--text-step)); }
.company-main { min-width: 0; }
.auto-work-state { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.25; }
.auto-work-state.ready { border-color: #315d47; background: var(--green-deep); color: var(--green); }
.auto-work-state.review { border-color: #72582f; background: var(--amber-deep); color: #ffd795; }
.auto-work-state svg { width: 16px; height: 16px; flex: 0 0 auto; }
.company-title { display: flex; align-items: flex-start; gap: 10px; }
.company-title > div { min-width: 0; flex: 1; }
.company-title h3 { margin: 0; font-size: calc(12px + var(--text-step)); }
.company-title p { margin: 4px 0 0; color: var(--muted); font-size: calc(8px + var(--text-step)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-signals { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 12px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.company-signals span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.company-signals svg, .company-contact svg { width: 13px; height: 13px; color: var(--green); }
.company-signals b { color: var(--text); }
.company-contact, .company-next { margin: 8px 0 0; font-size: calc(8px + var(--text-step)); }
.company-contact { display: flex; align-items: center; gap: 6px; color: var(--text); }
.company-next { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-actions { width: 175px; display: grid; gap: 7px; }
.company-actions .btn { width: 100%; justify-content: flex-start; }
.loader.small { width: 14px; height: 14px; border-width: 2px; }

.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 24px; }
.settings-layout > * { min-width: 0; }
.settings-nav { display: grid; align-content: start; gap: 3px; }
.settings-nav button { height: 38px; border: 0; background: transparent; border-radius: 6px; color: var(--muted); text-align: left; padding: 0 11px; cursor: pointer; }
.settings-nav button.active { background: var(--surface-2); color: var(--text); }
.settings-form { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.settings-section { padding: 20px; border-bottom: 1px solid var(--line); }
.settings-section:last-child { border: 0; }
.settings-section h2 { font-size: calc(13px + var(--text-step)); margin: 0 0 4px; }
.settings-section > p { color: var(--muted); font-size: calc(10px + var(--text-step)); margin: 0 0 17px; }
.contact-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.contact-channel-card { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--text); text-decoration: none; transition: transform var(--transition), border-color var(--transition), background var(--transition); }
.contact-channel-card:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-2); }
.contact-channel-card[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.contact-channel-card > span:last-child { min-width: 0; }
.contact-channel-card small, .contact-channel-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-channel-card small { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.contact-channel-card strong { margin-top: 3px; font-size: calc(9px + var(--text-step)); }
.contact-channel-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #415047; }
.contact-channel-icon.whatsapp { background: #25d366; }
.contact-channel-icon.telegram { background: #229ed9; }
.contact-channel-icon svg { width: 17px; height: 17px; }
.owner-notification-strip { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-top: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.owner-notification-strip.ready { border-color: #28583d; background: var(--green-deep); }
.owner-notification-strip.blocked { border-color: #654c26; }
.owner-notification-strip > svg { width: 19px; color: var(--green); }
.owner-notification-strip strong, .owner-notification-strip span { display: block; }
.owner-notification-strip strong { font-size: calc(9px + var(--text-step)); }
.owner-notification-strip span { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.35; }
.telegram-connect-steps { display: grid; gap: 8px; }
.telegram-connect-steps > div { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.telegram-connect-steps b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #203a4a; color: #8ad7ff; font-size: calc(8px + var(--text-step)); }
.telegram-connect-steps span { color: var(--muted); font-size: calc(9px + var(--text-step)); }
.telegram-connect-steps a { color: #63c7f5; }
.telegram-connect-steps code { color: var(--text); }
.telegram-link .contact-channel-icon { width: 24px; height: 24px; flex-basis: 24px; }
.telegram-link .contact-channel-icon svg { width: 13px; height: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field > span { color: var(--muted); font-size: calc(10px + var(--text-step)); font-weight: 600; }
.field input, .field select, .field textarea, .ai-text-area textarea { width: 100%; border: 1px solid var(--line); background: var(--field); color: var(--text); border-radius: 6px; padding: 10px 11px; outline: 0; transition: border-color var(--transition); }
.field input, .field select { height: 39px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .ai-text-area textarea:focus { border-color: #4b725f; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-field .icon-btn { position: absolute; right: 4px; top: 4px; }
.form-stack { display: grid; min-width: 0; gap: 14px; }
.form-error { color: #ffaaaa; background: var(--red-deep); border: 1px solid #663232; padding: 9px; border-radius: 6px; font-size: calc(10px + var(--text-step)); margin: 0; }
.form-actions { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; background: var(--field); }
.mode-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mode-option { position: relative; border: 1px solid var(--line); border-radius: 7px; padding: 12px; cursor: pointer; }
.mode-option:has(input:checked) { border-color: #4c785f; background: #142019; }
.mode-option input { position: absolute; opacity: 0; }
.mode-option strong { display: block; font-size: calc(10px + var(--text-step)); margin-bottom: 5px; }
.mode-option span { color: var(--faint); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.settings-health { min-height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #284d38; border-radius: 6px; background: var(--green-deep); }
.settings-health strong, .settings-health small { display: block; }
.settings-health strong { font-size: calc(9px + var(--text-step)); }
.settings-health small { margin-top: 2px; color: var(--muted); font-size: calc(7px + var(--text-step)); }
.current-user-row { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.current-user-row > div { min-width: 0; flex: 1; }
.current-user-row strong, .current-user-row span { display: block; }
.current-user-row strong { font-size: calc(11px + var(--text-step)); }
.current-user-row > div span { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.policy-grid article { min-height: 128px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.policy-grid svg { width: 18px; height: 18px; margin-bottom: 13px; color: var(--green); }
.policy-grid strong { display: block; font-size: calc(10px + var(--text-step)); }
.policy-grid p { margin: 6px 0 0; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.5; }
.settings-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.settings-metrics > div { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.settings-metrics strong, .settings-metrics span { display: block; }
.settings-metrics strong { font-size: calc(17px + var(--text-step)); }
.settings-metrics span { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.rule-list, .security-list { display: grid; gap: 8px; }
.rule-list > div, .security-list > div { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.rule-list > div > div, .security-list > div > div { min-width: 0; flex: 1; }
.rule-list strong, .security-list strong { display: block; font-size: calc(10px + var(--text-step)); }
.rule-list p { margin: 4px 0 0; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.rule-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: var(--amber); background: var(--amber-deep); }
.rule-icon svg, .security-list > div > svg { width: 16px; height: 16px; }
.security-list > div > svg { flex: 0 0 auto; color: var(--green); }
.security-list span:not(.status-pill) { display: block; margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
/* Справочники настроек (этап 7B): страны и чёрный список */
.table-scroll { overflow-x: auto; }
.directory-table { min-width: 720px; }
.directory-table tbody tr { cursor: default; }
.directory-table td small { color: var(--muted); }
.directory-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.directory-active input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.directory-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.directory-form .field { flex: 1 1 220px; }
.directory-form .btn { flex: 0 0 auto; }
.directory-empty { color: var(--muted); text-align: center; }
.appearance-hero { position: relative; isolation: isolate; min-height: 176px; display: grid; align-content: end; overflow: hidden; background: linear-gradient(125deg, color-mix(in srgb, var(--green-deep) 86%, var(--surface)), color-mix(in srgb, var(--blue-deep) 62%, var(--surface)) 66%, var(--surface)); }
.appearance-hero::before { content: ""; position: absolute; z-index: -1; width: 330px; height: 330px; right: -80px; top: -190px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 40%, transparent), transparent 67%); filter: blur(8px); }
.appearance-hero h2 { margin: 9px 0 5px; font-size: calc(26px + var(--text-step)); letter-spacing: -.035em; }
.appearance-hero p { max-width: 600px; margin: 0; color: color-mix(in srgb, var(--text) 70%, var(--muted)); }
.appearance-kicker { width: max-content; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--green) 38%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); font-size: calc(9px + var(--text-step)); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.appearance-kicker svg { width: 14px; height: 14px; }
.theme-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.appearance-option, .wallpaper-option, .font-option, .text-size-options label { position: relative; cursor: pointer; }
.appearance-option { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.appearance-option:hover, .wallpaper-option:hover, .font-option:hover, .text-size-options label:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.appearance-option:has(input:checked), .wallpaper-option:has(input:checked), .font-option:has(input:checked), .text-size-options label:has(input:checked), .motion-switch label:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 8px 24px color-mix(in srgb, var(--green) 11%, transparent); }
.appearance-option input, .wallpaper-option input, .font-option input, .text-size-options input, .motion-switch input { position: absolute; opacity: 0; pointer-events: none; }
.appearance-option strong { font-size: calc(10px + var(--text-step)); }
.appearance-option small { color: var(--faint); font-size: calc(8px + var(--text-step)); line-height: 1.35; }
.theme-preview { height: 78px; display: grid; grid-template-columns: 26% 1fr; grid-template-rows: 22% 1fr; overflow: hidden; border: 1px solid rgba(127, 127, 127, .32); border-radius: 5px; }
.theme-preview i:first-child { grid-row: 1 / 3; }
.theme-preview i:nth-child(2) { border-bottom: 1px solid rgba(127, 127, 127, .28); }
.theme-preview i:nth-child(3) { margin: 9px; border-radius: 3px; }
.preview-dark { background: #0c0f0d; }
.preview-dark i:first-child { background: #151a17; }
.preview-dark i:nth-child(2) { background: #101411; }
.preview-dark i:nth-child(3) { background: #203229; }
.preview-aurora { background: radial-gradient(circle at 76% 24%, rgba(98, 239, 177, .32), transparent 42%), #06100d; }
.preview-aurora i:first-child { background: rgba(8, 25, 19, .86); }
.preview-aurora i:nth-child(2) { background: rgba(13, 35, 28, .82); }
.preview-aurora i:nth-child(3) { background: linear-gradient(135deg, rgba(98, 239, 177, .24), rgba(126, 163, 255, .17)); }
.preview-ocean { background: radial-gradient(circle at 82% 22%, rgba(74, 139, 239, .38), transparent 43%), #050a14; }
.preview-ocean i:first-child { background: rgba(7, 17, 36, .92); }
.preview-ocean i:nth-child(2) { background: rgba(11, 24, 47, .88); }
.preview-ocean i:nth-child(3) { background: linear-gradient(135deg, rgba(100, 228, 204, .2), rgba(120, 168, 255, .27)); }
.preview-light { background: #f4f7f5; }
.preview-light i:first-child { background: #ffffff; }
.preview-light i:nth-child(2) { background: #edf2ef; }
.preview-light i:nth-child(3) { background: #dcefe5; }
.preview-contrast { background: #000000; }
.preview-contrast i:first-child { background: #0d0d0d; border-right: 1px solid #f5df3c; }
.preview-contrast i:nth-child(2) { background: #050505; }
.preview-contrast i:nth-child(3) { background: #f5df3c; }
.wallpaper-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wallpaper-option { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.wallpaper-option > span { position: relative; height: 92px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent); border-radius: 7px; background: var(--bg); }
.wallpaper-option > span::after { content: ""; position: absolute; inset: 13% 9%; border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px; background: rgba(6, 10, 9, .44); backdrop-filter: blur(5px); }
.wallpaper-option strong { font-size: calc(10px + var(--text-step)); }
.wallpaper-option small { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.wallpaper-none > span { background: linear-gradient(145deg, #111714, #080b09); }
.wallpaper-aurora > span { background: radial-gradient(circle at 18% 25%, rgba(75, 255, 176, .66), transparent 31%), radial-gradient(circle at 83% 24%, rgba(78, 126, 255, .58), transparent 34%), #07110e; }
.wallpaper-orbit > span { background: radial-gradient(circle at 30% 31%, rgba(126, 163, 255, .65) 0 5%, transparent 23%), radial-gradient(circle at 75% 61%, rgba(98, 239, 177, .55) 0 5%, transparent 24%), #07101a; }
.wallpaper-silk > span { background: conic-gradient(from 210deg, #07100d, #194b3a, #101f3c, #181026, #07100d); }
.motion-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.motion-switch > div { min-width: 0; }
.motion-switch strong, .motion-switch > div span { display: block; }
.motion-switch strong { font-size: calc(10px + var(--text-step)); }
.motion-switch > div span { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.motion-switch label { position: relative; min-width: 62px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: center; cursor: pointer; }
.motion-switch label span { color: var(--muted); font-size: calc(9px + var(--text-step)); font-weight: 750; }
.motion-switch label:has(input:checked) span { color: var(--text); }
.appearance-text-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.font-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.font-option { min-height: 74px; display: grid; align-content: center; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.font-option span { font-size: calc(24px + var(--text-step)); line-height: 1; }
.font-option strong { font-size: calc(9px + var(--text-step)); }
.font-inter { font-family: Inter, ui-sans-serif, sans-serif; }
.font-system { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-arial { font-family: Arial, Helvetica, sans-serif; }
.text-size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.text-size-options label { min-height: 74px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--field); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.text-sample.normal { font-size: calc(11px + var(--text-step)); }
.text-sample.large { font-size: calc(14px + var(--text-step)); }
.text-sample.xlarge { font-size: calc(17px + var(--text-step)); }
.appearance-actions { align-items: center; justify-content: space-between; }
.appearance-actions > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.appearance-actions > span svg { width: 14px; color: var(--green); }

@keyframes wallpaperAurora { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 50% { transform: translate3d(5%, 3%, 0) scale(1.08) rotate(2deg); } 100% { transform: translate3d(-1%, 7%, 0) scale(1.04) rotate(-2deg); } }
@keyframes wallpaperSweep { 0% { transform: translate3d(-8%, -2%, 0) rotate(-2deg); } 100% { transform: translate3d(9%, 5%, 0) rotate(4deg); } }
@keyframes wallpaperOrbit { to { transform: rotate(360deg) scale(1.05); } }
@keyframes wallpaperPulse { 0% { transform: scale(.92); opacity: .18; } 100% { transform: scale(1.12); opacity: .36; } }
@keyframes wallpaperSilk { 0% { transform: translate3d(-5%, -3%, 0) rotate(-5deg) scale(1); } 100% { transform: translate3d(6%, 4%, 0) rotate(7deg) scale(1.09); } }

html[data-theme="light"] .status-pill.new,
html[data-theme="light"] .status-pill.qualification,
html[data-theme="light"] .status-pill.quotes { color: #244b9a; }
html[data-theme="light"] .status-pill.proposal,
html[data-theme="light"] .status-pill.negotiation,
html[data-theme="light"] .status-pill.approval { color: #754800; }
html[data-theme="light"] .status-pill.won,
html[data-theme="light"] .status-pill.ordered,
html[data-theme="light"] .status-pill.delivered,
html[data-theme="light"] .status-pill.approved { color: #0c603d; }
html[data-theme="light"] .status-pill.lost,
html[data-theme="light"] .status-pill.cancelled,
html[data-theme="light"] .status-pill.rejected,
html[data-theme="light"] .status-pill.critical { color: #8b2929; }
html[data-theme="light"] .question-list { color: #6f4500; }
html[data-theme="light"] .knowledge-source { color: #174f37; }
html[data-theme="light"] .demo-label, html[data-theme="light"] .demo-notice { color: #754800; }
html[data-theme="light"] .drawer-head { background: var(--topbar); }
html[data-theme="light"] .toast { background: var(--surface); }
html[data-theme="light"] .upload-zone:hover,
html[data-theme="light"] .mode-option:has(input:checked),
html[data-theme="light"] .quote-row.recommended { background: var(--green-deep); }
html[data-theme="light"] .supplier-offer.recommended { border-color: #7eaf96; background: var(--green-deep); }
html[data-theme="light"] .procurement-warning { border-color: #d6a85d; color: #704509; }
html[data-theme="light"] .ai-note { border-color: #8ebba4; background: var(--green-deep); color: #174b35; }
html[data-theme="contrast"] :focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); animation: fade .18s ease both; }
.drawer-backdrop { z-index: 60; }
.modal-backdrop { z-index: 80; }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); animation: modalIn .22s ease both; }
.modal.wide { width: min(820px, calc(100vw - 28px)); }
.modal-head { min-height: 59px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: calc(14px + var(--text-step)); }
.modal-body { min-width: 0; padding: 18px; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.drawer { position: fixed; z-index: 61; inset: 0 0 0 auto; width: min(560px, 100vw); background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: -18px 0 60px rgba(0,0,0,.35); overflow-y: auto; animation: drawerIn .24s ease both; }
.drawer.wide { width: min(760px, 100vw); }
.drawer-head { position: sticky; top: 0; z-index: 2; min-height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: rgba(21,26,23,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.drawer-body { padding: 19px; }
.drawer-title { margin: 5px 0; font-size: calc(19px + var(--text-step)); line-height: 1.3; }
.drawer-subtitle { color: var(--muted); font-size: calc(10px + var(--text-step)); }
.drawer-section { margin-top: 22px; }
.drawer-section h3 { margin: 0 0 10px; color: var(--muted); font-size: calc(9px + var(--text-step)); text-transform: uppercase; }
.ai-note { min-width: 0; padding: 14px; overflow-wrap: anywhere; border: 1px solid #305e48; background: #122019; border-radius: 7px; color: #c4e4d3; font-size: calc(10px + var(--text-step)); line-height: 1.55; }
.verification-action { display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; }
.verification-action > svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.verification-action > div { display: grid; gap: 7px; }
.verification-action strong, .verification-action span { display: block; }
.verification-action span { color: var(--muted); font-size: calc(9px + var(--text-step)); }
.verification-action .btn { width: fit-content; margin-top: 3px; }
.offer-readiness { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 7px; }
.offer-readiness > svg { width: 19px; height: 19px; flex: 0 0 auto; }
.offer-readiness > div { display: grid; gap: 4px; }
.offer-readiness strong, .offer-readiness span { display: block; }
.offer-readiness span { color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.offer-readiness.ready { border-color: #2f7654; background: #102019; color: #94e3b9; }
.offer-readiness.blocked { border-color: #805a2d; background: #241b10; color: #f1c77c; }
.offer-cost-editor { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); }
.offer-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.offer-section-head h3 { margin: 0 0 4px; font-size: calc(13px + var(--text-step)); }
.offer-section-head p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.currency-lock { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #31664c; border-radius: 6px; color: var(--green); background: var(--green-deep); font-weight: 700; }
.customs-explanation { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border-left: 2px solid var(--amber); background: var(--amber-deep); color: #e8c888; font-size: calc(9px + var(--text-step)); line-height: 1.5; }
.customs-explanation svg { width: 18px; height: 18px; flex: 0 0 auto; }
.offer-cost-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.offer-cost-summary > div { min-width: 0; min-height: 58px; display: grid; align-content: center; gap: 4px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer-cost-summary > div:nth-child(even) { border-right: 0; }
.offer-cost-summary span { color: var(--muted); font-size: calc(8px + var(--text-step)); }
.offer-cost-summary strong { overflow-wrap: anywhere; font-size: calc(12px + var(--text-step)); }
.offer-cost-summary .offer-grand-total { background: var(--green-deep); color: var(--green); }
.offer-cost-summary .offer-grand-total strong { font-size: calc(17px + var(--text-step)); }
.offer-cost-summary .offer-rub-equivalent { background: var(--field); }
.approval-check { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); cursor: pointer; }
.approval-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.approval-check span { display: grid; gap: 3px; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.4; }
.approval-check strong { color: var(--text); font-size: calc(10px + var(--text-step)); }
.delivery-history { border-top: 1px solid var(--line); padding-top: 14px; }
.delivery-history h3 { margin: 0 0 9px; font-size: calc(11px + var(--text-step)); }
.delivery-history > div { min-height: 38px; display: grid; grid-template-columns: minmax(92px, auto) 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.delivery-history > div > span:last-child { color: var(--muted); font-size: calc(8px + var(--text-step)); }
.modal-explanation { color: var(--muted); line-height: 1.6; margin: 16px 0 0; }
.campaign-empty { min-height: 360px; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--green) 9%, transparent), transparent 52%), var(--surface); text-align: center; }
.campaign-empty h3 { margin: 2px 0 0; font-size: calc(18px + var(--text-step)); }
.campaign-empty p { max-width: 620px; margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.outreach-campaign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr)); gap: 12px; }
.outreach-campaign-card { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--green) 5%, var(--surface)), var(--surface)); }
.outreach-campaign-card > header, .outreach-campaign-card > footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.outreach-campaign-card h3 { margin: 4px 0 0; font-size: calc(16px + var(--text-step)); }
.outreach-campaign-card > footer { align-items: center; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.campaign-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.campaign-score > div { min-width: 0; display: grid; gap: 4px; padding: 11px; border-right: 1px solid var(--line); }
.campaign-score > div:last-child { border-right: 0; }
.campaign-score strong { font-size: calc(20px + var(--text-step)); }
.campaign-score span { overflow: hidden; color: var(--faint); font-size: calc(8px + var(--text-step)); text-overflow: ellipsis; white-space: nowrap; }
.campaign-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.campaign-rules > div { min-width: 0; display: grid; gap: 4px; padding: 12px; border-right: 1px solid var(--line); }
.campaign-rules > div:last-child { border-right: 0; }
.campaign-rules span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.campaign-rules strong { overflow-wrap: anywhere; font-size: calc(10px + var(--text-step)); }
.campaign-control-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.campaign-recipient-list, .campaign-candidate-list { display: grid; gap: 7px; margin-top: 10px; }
.campaign-recipient, .campaign-candidate { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.campaign-recipient > div:first-child, .campaign-candidate > div:first-child { min-width: 0; display: grid; gap: 3px; }
.campaign-recipient strong, .campaign-candidate strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-recipient span, .campaign-candidate span { color: var(--muted); font-size: calc(9px + var(--text-step)); }
.campaign-recipient small, .campaign-candidate small { overflow: hidden; color: var(--faint); font-size: calc(8px + var(--text-step)); text-overflow: ellipsis; white-space: nowrap; }
.campaign-recipient > div:last-child, .campaign-candidate > div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.campaign-candidate.blocked { opacity: .62; }
.candidate-blockers { max-width: 230px; color: var(--amber) !important; text-align: right; }
.verified-fact { color: var(--green) !important; }
.campaign-copy { border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.campaign-copy summary { padding: 13px; cursor: pointer; color: var(--muted); font-weight: 650; }
.campaign-copy > div { display: grid; gap: 7px; padding: 0 13px 13px; }
.campaign-copy span { color: var(--faint); font-size: calc(8px + var(--text-step)); text-transform: uppercase; }
.campaign-copy pre { max-height: 250px; overflow: auto; margin: 0 0 9px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--muted); font: inherit; font-size: calc(9px + var(--text-step)); line-height: 1.55; white-space: pre-wrap; }
.btn:disabled, .icon-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-notice { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid color-mix(in srgb, var(--amber) 48%, transparent); border-radius: 7px; background: var(--amber-deep); color: #ffd795; }
.demo-notice > svg { width: 20px; height: 20px; margin-top: 2px; color: var(--amber); }
.demo-notice strong, .demo-notice span { display: block; }
.demo-notice strong { margin-bottom: 3px; font-size: calc(10px + var(--text-step)); }
.demo-notice span { color: inherit; opacity: .84; font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.analysis-head-status { display: block; margin-top: 3px; font-size: calc(10px + var(--text-step)); }
.company-source { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--green); font-size: calc(8px + var(--text-step)); }
.company-source.demo { color: var(--amber); }
.company-source svg { width: 13px; height: 13px; }
.analysis-report { padding-top: 17px; }
.analysis-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.analysis-score-grid > div { min-width: 0; padding: 12px; background: var(--field); }
.analysis-score-grid span, .analysis-score-grid strong { display: block; }
.analysis-score-grid span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.analysis-score-grid strong { margin-top: 4px; color: var(--green); font-size: calc(20px + var(--text-step)); }
.analysis-intent { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; margin-top: 11px; padding: 12px; border-left: 3px solid var(--amber); background: var(--amber-deep); }
.analysis-intent.confirmed { border-color: var(--green); background: var(--green-deep); }
.analysis-intent > svg { width: 20px; height: 20px; color: var(--amber); }
.analysis-intent.confirmed > svg { color: var(--green); }
.analysis-intent strong, .analysis-intent span { display: block; }
.analysis-intent strong { font-size: calc(10px + var(--text-step)); }
.analysis-intent span { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.45; }
.analysis-confirmation-guide { display: grid; gap: 10px; margin-top: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.analysis-confirmation-guide strong, .analysis-confirmation-guide span { display: block; }
.analysis-confirmation-guide strong { font-size: calc(10px + var(--text-step)); }
.analysis-confirmation-guide span, .analysis-confirmation-guide small { margin-top: 4px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.5; }
.analysis-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.analysis-section > h3, .analysis-section-head h3 { margin: 0 0 11px; font-size: calc(13px + var(--text-step)); }
.analysis-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.analysis-section-head h3 { margin: 0; }
.analysis-summary { margin: 0; color: var(--muted); font-size: calc(10px + var(--text-step)); line-height: 1.65; }
.analysis-next { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: var(--text); font-size: calc(10px + var(--text-step)); line-height: 1.5; }
.analysis-next svg { width: 16px; height: 16px; margin-top: 2px; color: var(--green); }
.analysis-checks { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.analysis-checks > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; padding: 9px 11px; background: var(--field); font-size: calc(9px + var(--text-step)); }
.analysis-checks strong { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.analysis-checks strong.pass { color: var(--green); }
.analysis-checks strong.fail { color: var(--red); }
.analysis-checks small { grid-column: 1 / -1; color: var(--faint); line-height: 1.4; }
.analysis-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.analysis-columns h4 { margin: 0 0 7px; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.analysis-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.55; }
.analysis-list li + li { margin-top: 5px; }
.analysis-list li::marker { color: var(--green); }
.analysis-empty { margin: 0; color: var(--faint); font-size: calc(9px + var(--text-step)); line-height: 1.5; }
.analysis-kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.analysis-kv-grid > div { min-width: 0; padding: 11px; background: var(--field); }
.analysis-kv-grid span, .analysis-kv-grid strong { display: block; }
.analysis-kv-grid span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.analysis-kv-grid strong { margin-top: 5px; font-size: calc(9px + var(--text-step)); line-height: 1.45; }
.analysis-use-cases { display: grid; gap: 9px; margin-top: 13px; }
.analysis-use-cases > div { padding-left: 12px; border-left: 2px solid var(--green); }
.analysis-use-cases span { color: var(--green); font-size: calc(8px + var(--text-step)); }
.analysis-use-cases strong { display: block; margin-top: 3px; font-size: calc(10px + var(--text-step)); }
.analysis-use-cases p { margin: 4px 0 0; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.5; }
.analysis-people { display: grid; gap: 1px; margin: 11px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.analysis-people > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding: 11px; background: var(--field); }
.analysis-people svg { width: 17px; height: 17px; color: var(--green); }
.analysis-people strong, .analysis-people span, .analysis-people b { display: block; overflow-wrap: anywhere; }
.analysis-people strong { font-size: calc(10px + var(--text-step)); }
.analysis-people span { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); }
.analysis-people b { margin-top: 6px; color: var(--text); font-size: calc(9px + var(--text-step)); font-weight: 500; }
.analysis-volume { display: block; margin-bottom: 8px; color: var(--green); font-size: calc(20px + var(--text-step)); }
.analysis-message { margin: 13px 0; border: 1px solid #315d47; border-radius: 7px; background: var(--green-deep); }
.analysis-message > div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid #315d47; }
.analysis-message > div span { color: var(--green); font-size: calc(9px + var(--text-step)); font-weight: 700; }
.analysis-message p { margin: 0; padding: 13px; white-space: pre-line; font-size: calc(10px + var(--text-step)); line-height: 1.6; }
.analysis-breakdown { display: grid; gap: 11px; }
.analysis-breakdown > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(100px, 1fr) auto; align-items: center; gap: 7px; }
.analysis-breakdown span, .analysis-breakdown strong { font-size: calc(9px + var(--text-step)); }
.analysis-breakdown > div > div { height: 5px; overflow: hidden; border-radius: 4px; background: var(--surface-3); }
.analysis-breakdown i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.analysis-breakdown small { grid-column: 1 / -1; color: var(--faint); font-size: calc(8px + var(--text-step)); line-height: 1.35; }
.analysis-evidence { display: grid; gap: 12px; }
.analysis-evidence > div { padding-left: 12px; border-left: 2px solid var(--line-strong); }
.analysis-evidence .basis { display: inline-flex; color: var(--blue); font-size: calc(8px + var(--text-step)); font-weight: 700; }
.analysis-evidence .basis.fact { color: var(--green); }
.analysis-evidence .basis.hypothesis { color: var(--amber); }
.analysis-evidence p { margin: 4px 0; font-size: calc(10px + var(--text-step)); line-height: 1.45; }
.analysis-evidence small { color: var(--faint); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.analysis-evidence a { color: var(--green); }
.analysis-final-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.analysis-final-actions > div:first-child span, .analysis-final-actions > div:first-child strong { display: block; }
.analysis-final-actions > div:first-child span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.analysis-final-actions > div:first-child strong { margin-top: 4px; font-size: calc(9px + var(--text-step)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.contact-grid > div { min-width: 0; padding: 11px 12px; background: var(--field); }
.contact-grid > div.wide { grid-column: 1 / -1; }
.contact-grid span, .contact-grid strong { display: block; }
.contact-grid span { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.contact-grid strong { margin-top: 5px; color: var(--text); font-size: calc(10px + var(--text-step)); line-height: 1.35; overflow-wrap: anywhere; }
.commercial-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.commercial-evidence-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.commercial-evidence-grid > div > span { display: block; margin-bottom: 9px; color: var(--faint); font-size: calc(8px + var(--text-step)); font-weight: 750; text-transform: uppercase; }
.commercial-evidence-grid ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.commercial-evidence-grid li { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 7px; align-items: start; color: var(--muted); font-size: calc(9px + var(--text-step)); line-height: 1.4; }
.commercial-evidence-grid li svg { width: 14px; height: 14px; margin-top: 1px; color: var(--green); }
.commercial-evidence-grid .missing li svg { color: var(--amber); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.contacts-list { display: grid; gap: 8px; }
.contacts-list > .btn { justify-self: start; }
.contact-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); }
.contact-item.contact-archived { opacity: .55; }
.contact-item-main { min-width: 0; }
.contact-item-main h4 { margin: 0; font-size: calc(10px + var(--text-step)); overflow-wrap: anywhere; }
.contact-item-main p { margin: 4px 0 0; color: var(--text); font-size: calc(9px + var(--text-step)); overflow-wrap: anywhere; }
.contact-item-main .cell-secondary { margin-top: 4px; }
.contact-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.contact-item-actions { display: flex; flex-shrink: 0; gap: 4px; }
.contact-item-actions .icon-btn { width: 30px; height: 30px; }

.toast-root { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(350px, calc(100vw - 36px)); display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); background: #1d241f; border-radius: 7px; box-shadow: var(--shadow); animation: toastIn .25s ease both; }
.toast-icon { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; background: var(--green-deep); color: var(--green); }
.toast h4 { margin: 1px 0 3px; font-size: calc(10px + var(--text-step)); }
.toast p { margin: 0; color: var(--muted); font-size: calc(9px + var(--text-step)); }
.mobile-nav, .mobile-only { display: none; }
.empty-table { padding: 60px 20px; text-align: center; color: var(--faint); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -47%); } }
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }
@keyframes depthPageIn {
  from { opacity: 0; filter: saturate(.72); transform: translateY(12px) translateZ(-26px) scale(.992); }
  to { opacity: 1; filter: none; transform: translateY(0) translateZ(0) scale(1); }
}
@keyframes modalDepthIn {
  from { opacity: 0; transform: translate(-50%, -47%) perspective(1000px) rotateX(-4deg) scale(.975); }
  to { opacity: 1; transform: translate(-50%, -50%) perspective(1000px) rotateX(0) scale(1); }
}
@keyframes drawerDepthIn {
  from { opacity: 0; transform: perspective(1200px) translateX(46px) rotateY(-3deg); }
  to { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0); }
}
@keyframes salesOrbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Premium depth: visual only. It does not change commercial data or actions. */
.panel,
.data-panel,
.portfolio-overview,
.owner-actions-panel,
.commercial-path-panel,
.kpi-grid,
.market-automation,
.market-search-workbench,
.sales-map-register,
.sales-map-ribbon {
  transform-style: preserve-3d;
  box-shadow: var(--depth-shadow);
}
.business-unit-card,
.portfolio-unit,
.deal-card,
.intelligence-company,
.market-card,
.commercial-path-step,
.kpi-item {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform .28s var(--depth-ease),
    box-shadow .28s var(--depth-ease),
    border-color .2s ease,
    background .2s ease;
}
.commercial-path-panel { perspective: 1100px; }
.commercial-path-grid {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 52%),
    var(--surface);
}
.commercial-path-step::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -8px;
  width: 15px;
  height: 15px;
  border-top: 1px solid color-mix(in srgb, var(--unit-accent) 38%, var(--line));
  border-right: 1px solid color-mix(in srgb, var(--unit-accent) 38%, var(--line));
  background: var(--surface);
  transform: translateY(-50%) rotate(45deg);
}
.commercial-path-step:last-child::after { display: none; }
.commercial-path-step > * { position: relative; z-index: 1; }
.modal-backdrop,
.drawer-backdrop { backdrop-filter: blur(8px) saturate(.72); }
.modal {
  transform-origin: center top;
  box-shadow: 0 34px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.045);
  animation: modalDepthIn .28s var(--depth-ease) both;
}
.drawer {
  transform-origin: right center;
  box-shadow: -34px 0 90px rgba(0,0,0,.46), inset 1px 0 0 rgba(255,255,255,.035);
  animation: drawerDepthIn .3s var(--depth-ease) both;
}

@media (hover: hover) and (pointer: fine) {
  .business-unit-card:hover,
  .portfolio-unit:hover,
  .deal-card:hover,
  .market-card:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--unit-accent) 42%, var(--line-strong));
    box-shadow: var(--depth-shadow-hover);
    transform: translateY(-4px) translateZ(12px) scale(1.006);
  }
  .intelligence-company:hover {
    z-index: 2;
    background: color-mix(in srgb, var(--unit-accent) 4%, var(--surface-2));
    box-shadow: 0 15px 38px rgba(0,0,0,.24);
    transform: translateY(-3px) translateZ(10px);
  }
  .kpi-item:hover {
    z-index: 2;
    background: color-mix(in srgb, var(--unit-accent) 4%, var(--surface));
    box-shadow: var(--depth-shadow-hover);
    transform: translateY(-5px) translateZ(16px);
  }
  .commercial-path-step:hover {
    z-index: 3;
    background: color-mix(in srgb, var(--unit-accent) 6%, var(--surface-2));
    box-shadow: 0 18px 44px rgba(0,0,0,.3);
    transform: translateY(-5px) translateZ(18px);
  }
}

/* Separate, evidence-backed sales geography screen. */
.sales-map-toolbar { margin-bottom: 14px; }
.sales-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, .72fr);
  gap: 16px;
  margin-bottom: 16px;
}
.sales-globe-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--unit-accent) 33%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--unit-accent) 9%, var(--surface)), var(--surface) 58%),
    var(--surface);
  box-shadow: 0 28px 76px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.045);
  transform-style: preserve-3d;
}
.sales-globe-card > header,
.sales-globe-card > footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sales-globe-card > header { min-height: 68px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.sales-globe-card > header h2,
.sales-map-ribbon h2,
.sales-map-register h2 { margin: 3px 0 0; font-size: calc(14px + var(--text-step)); }
.sales-globe-card > footer {
  min-height: 46px;
  justify-content: flex-start;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: calc(9px + var(--text-step));
}
.sales-globe-card > footer svg { width: 15px; color: var(--green); }
.sales-map-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: calc(9px + var(--text-step));
  white-space: nowrap;
}
.sales-map-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 12%, transparent), 0 0 18px var(--green);
}
.sales-globe-stage {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--unit-accent) 10%, transparent), transparent 48%),
    linear-gradient(150deg, rgba(255,255,255,.015), transparent);
}
.sales-globe-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--unit-accent) 10%, transparent), transparent 68%);
  filter: blur(22px);
}
.sales-globe-stage canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.sales-globe-stage canvas:active { cursor: grabbing; }
.sales-globe-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(75%, 470px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: salesOrbit 26s linear infinite;
}
.sales-globe-orbit.orbit-one { transform: translate(-50%, -50%) rotateX(68deg); }
.sales-globe-orbit.orbit-two {
  width: min(62%, 390px);
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
  animation-duration: 38s;
  animation-direction: reverse;
}
.sales-globe-label {
  position: absolute;
  z-index: 4;
  left: 17px;
  bottom: 14px;
  max-width: min(370px, calc(100% - 34px));
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--unit-accent) 22%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.sales-globe-label strong,
.sales-globe-label span { display: block; }
.sales-globe-label strong { font-size: calc(11px + var(--text-step)); }
.sales-globe-label span { margin-top: 3px; color: var(--muted); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.sales-map-layers {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
  gap: 10px;
  padding: 0;
}
.sales-map-metric {
  position: relative;
  width: 100%;
  min-height: 107px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 17px 48px 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--unit-accent) 4%, var(--surface-2)), var(--surface));
  color: var(--text);
  box-shadow: 0 16px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform .3s var(--depth-ease), border-color .2s ease, box-shadow .3s var(--depth-ease);
}
.sales-map-metric.money { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.sales-map-metric.active {
  border-color: color-mix(in srgb, var(--unit-accent) 58%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--unit-accent) 10%, var(--surface-2)), var(--surface));
  box-shadow: 0 18px 46px rgba(0,0,0,.3), inset 3px 0 0 color-mix(in srgb, var(--unit-accent) 70%, transparent);
}
.sales-map-metric:focus-visible {
  outline: 2px solid var(--unit-accent);
  outline-offset: 3px;
}
.sales-map-metric-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: calc(10px + var(--text-step)); }
.sales-map-metric-label svg { width: 16px; color: var(--unit-accent); }
.sales-map-metric strong { font-size: calc(27px + var(--text-step)); line-height: 1; }
.sales-map-metric small { color: var(--faint); font-size: calc(8px + var(--text-step)); line-height: 1.4; }
.sales-map-metric-action {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 17px;
  color: var(--faint);
  transition: color .2s ease, transform .25s var(--depth-ease);
}
.sales-map-metric.active .sales-map-metric-action { color: var(--unit-accent); }
.sales-map-ribbon {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.sales-map-ribbon > header,
.sales-map-register > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.sales-map-ribbon > header small { color: var(--faint); font-size: calc(8px + var(--text-step)); }
.sales-map-ribbon > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  perspective: 1000px;
}
.sales-map-ribbon button {
  position: relative;
  min-width: 0;
  min-height: 100px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 7px 9px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent),
    var(--surface);
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .28s var(--depth-ease), background .2s ease, box-shadow .28s var(--depth-ease);
}
.sales-map-ribbon button:last-child { border-right: 0; }
.sales-map-ribbon button::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -8px;
  width: 15px;
  height: 15px;
  border-top: 1px solid color-mix(in srgb, var(--unit-accent) 35%, var(--line));
  border-right: 1px solid color-mix(in srgb, var(--unit-accent) 35%, var(--line));
  background: var(--surface);
  transform: translateY(-50%) rotate(45deg);
}
.sales-map-ribbon button:last-child::after { display: none; }
.sales-map-ribbon button > * { position: relative; z-index: 1; }
.sales-map-ribbon button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--unit-accent) 44%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--unit-accent) 13%, var(--surface));
  color: var(--unit-accent);
  font-size: calc(8px + var(--text-step));
  font-weight: 800;
}
.sales-map-ribbon button strong { min-width: 0; font-size: calc(9px + var(--text-step)); }
.sales-map-ribbon button b { grid-column: 2; color: var(--unit-accent); font-size: calc(20px + var(--text-step)); line-height: 1; }
.sales-map-register {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.sales-map-register > header { align-items: flex-start; }
.sales-map-country-filter {
  max-width: 68%;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.sales-map-country-filter::-webkit-scrollbar { display: none; }
.sales-map-country-filter button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: calc(8px + var(--text-step));
}
.sales-map-country-filter button b { color: var(--text); }
.sales-map-country-filter button.active {
  border-color: color-mix(in srgb, var(--unit-accent) 50%, var(--line));
  background: color-mix(in srgb, var(--unit-accent) 14%, var(--surface));
  color: var(--unit-accent);
}
.sales-map-company {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 14px minmax(180px, .8fr) minmax(260px, 1.2fr) 20px;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, transform .24s var(--depth-ease);
}
.sales-map-company:last-child { border-bottom: 0; }
.sales-map-company:hover { background: color-mix(in srgb, var(--unit-accent) 5%, var(--surface-2)); }
.sales-map-company-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--faint) 10%, transparent);
}
.sales-map-company-dot.sent { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); }
.sales-map-company-dot.reply { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 13%, transparent); }
.sales-map-company > span:not(.sales-map-company-dot),
.sales-map-company strong,
.sales-map-company small,
.sales-map-company b { min-width: 0; display: block; }
.sales-map-company strong,
.sales-map-company b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(10px + var(--text-step)); }
.sales-map-company b { color: var(--muted); font-weight: 650; }
.sales-map-company small { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); font-size: calc(8px + var(--text-step)); }
.sales-map-company > svg { width: 17px; color: var(--faint); }
.sales-map-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.sales-map-empty svg { width: 28px; color: var(--unit-accent); }
.sales-map-empty strong { color: var(--text); }
.sales-map-empty span { max-width: 430px; color: var(--faint); font-size: calc(9px + var(--text-step)); }

@media (hover: hover) and (pointer: fine) {
  .sales-map-metric:hover {
    border-color: color-mix(in srgb, var(--unit-accent) 42%, var(--line));
    box-shadow: var(--depth-shadow-hover);
    transform: translateY(-2px);
  }
  .sales-map-metric:hover .sales-map-metric-action { color: var(--unit-accent); transform: translateY(2px); }
  .sales-map-ribbon button:hover {
    z-index: 3;
    background: color-mix(in srgb, var(--unit-accent) 6%, var(--surface-2));
    box-shadow: 0 18px 42px rgba(0,0,0,.32);
    transform: translateY(-5px) translateZ(16px);
  }
  .sales-map-company:hover { transform: translateX(4px) translateZ(6px); }
}

@media (max-width: 1220px) {
  .global-search { width: 220px; }
  .profile-copy, .profile-button > svg, .live-state span { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counterparty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commercial-path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commercial-path-step:nth-child(3n) { border-right: 0; }
  .commercial-path-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .sales-map-hero { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); }
  .sales-map-ribbon > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sales-map-ribbon button:nth-child(3n) { border-right: 0; }
  .sales-map-ribbon button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .sales-map-ribbon button:nth-child(3n)::after { display: none; }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 218px; }
  .topbar { padding: 0 20px; }
  .page-content { padding: 22px 20px 44px; }
  .global-search, .live-state { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-item:nth-child(2) { border-right: 0; }
  .kpi-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .ai-layout { grid-template-columns: 1fr; }
  .ai-input-panel, .ai-result-panel { min-height: auto; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .quote-row { grid-template-columns: 1fr 1fr 1fr; }
  .quote-row > *:nth-child(4), .quote-row > *:nth-child(5) { display: none; }
  .supplier-offer { grid-template-columns: minmax(190px, 1fr) minmax(155px, .6fr); }
  .supplier-score { display: none; }
  .intelligence-company { grid-template-columns: 58px minmax(0, 1fr); }
  .company-actions { width: auto; grid-column: 2; grid-template-columns: repeat(2, minmax(0, 170px)); }
  .commercial-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-path-step:nth-child(3n) { border-right: 1px solid var(--line); }
  .commercial-path-step:nth-child(2n) { border-right: 0; }
  .commercial-path-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .sales-map-hero { grid-template-columns: 1fr; }
  .sales-map-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .sales-map-metric { transform: none; }
  .sales-map-country-filter { max-width: 58%; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(63px + env(safe-area-inset-bottom)); }
  .sidebar { transform: translateX(-100%); width: min(290px, 86vw); transition: transform var(--transition); box-shadow: 22px 0 55px rgba(0,0,0,.45); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .topbar { height: 62px; padding: 0 13px; }
  .title-block h1 { font-size: calc(17px + var(--text-step)); }
  .title-block p { display: none; }
  .profile-button { display: none; }
  .mobile-only { display: inline-grid; }
  .page-content { padding: 15px 13px 30px; }
  .portfolio-overview > header { align-items: flex-start; }
  .portfolio-units { grid-template-columns: 1fr; }
  .business-unit-card { grid-template-columns: 42px minmax(0, 1fr) 16px; }
  .business-unit-metrics { display: none; }
  .mobile-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; height: calc(61px + env(safe-area-inset-bottom)); padding: 5px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--mobile-bar); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .mobile-nav button { position: relative; border: 0; background: transparent; color: var(--faint); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: calc(8px + var(--text-step)); cursor: pointer; }
  .mobile-nav button.active { color: var(--green); }
  .mobile-nav button svg { width: 19px; }
  .mobile-ai-button svg { width: 24px !important; height: 24px; }
  .page-toolbar { align-items: flex-start; }
  .page-toolbar .toolbar-copy p { display: none; }
  .sales-queue-btn { min-width: 126px; height: 42px; }
  .catalog-toolbar { display: block; width: 100%; }
  .catalog-toolbar .toolbar-actions { display: grid; grid-template-columns: 1fr; width: 100%; margin-top: 11px; }
  .catalog-toolbar .search-control { width: 100%; min-width: 0; }
  .toolbar-actions .btn span { display: none; }
  .btn { padding: 0 10px; }
  .kpi-grid { margin-bottom: 12px; }
  .kpi-item { min-height: 105px; padding: 14px; }
  .kpi-value { font-size: calc(21px + var(--text-step)); }
  .kpi-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .campaign-rules, .campaign-score { grid-template-columns: 1fr 1fr; }
  .campaign-rules > div:nth-child(2), .campaign-score > div:nth-child(2) { border-right: 0; }
  .campaign-rules > div:nth-child(-n+2), .campaign-score > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .campaign-recipient, .campaign-candidate { grid-template-columns: 1fr; }
  .campaign-recipient > div:last-child, .campaign-candidate > div:last-child { justify-content: space-between; }
  .candidate-blockers { max-width: none; text-align: left; }
  .campaign-control-strip, .outreach-campaign-card > footer { align-items: flex-start; flex-direction: column; }
  .owner-actions-list { grid-template-columns: 1fr; }
  .owner-action:nth-child(odd) { border-right: 0; }
  .owner-action { grid-template-columns: 7px minmax(0, 1fr); }
  .owner-action .text-action { grid-column: 2; justify-self: start; }
  .commercial-path-panel > header { align-items: flex-start; flex-direction: column; }
  .commercial-path-grid { grid-template-columns: 1fr; }
  .commercial-path-step, .commercial-path-step:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .commercial-path-step:last-child { border-bottom: 0; }
  .commercial-path-step::after { display: none; }
  .app-shell.unit-switching .page-content { filter: none; transform: none; }
  .sales-map-toolbar .toolbar-actions .btn span { display: inline; }
  .sales-map-toolbar { align-items: stretch; }
  .sales-map-toolbar .toolbar-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .sales-map-toolbar .btn { min-width: 0; padding: 0 8px; font-size: calc(9px + var(--text-step)); }
  .sales-globe-card > header { align-items: flex-start; }
  .sales-map-live { padding-top: 2px; }
  .sales-globe-stage { min-height: 292px; }
  .sales-globe-orbit { opacity: .32; animation: none; }
  .sales-globe-label { left: 11px; right: 11px; bottom: 10px; max-width: none; }
  .sales-globe-card > footer { display: none; }
  .sales-map-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sales-map-metric { min-height: 96px; padding: 13px 40px 13px 13px; border-radius: 10px; box-shadow: var(--shadow); transform: none; }
  .sales-map-metric strong { font-size: calc(20px + var(--text-step)); }
  .sales-map-metric-label { align-items: flex-start; font-size: calc(8px + var(--text-step)); }
  .sales-map-metric-action { top: 13px; right: 13px; }
  .sales-map-ribbon > header { align-items: flex-start; flex-direction: column; }
  .sales-map-ribbon > div {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .sales-map-ribbon > div::-webkit-scrollbar { display: none; }
  .sales-map-ribbon button,
  .sales-map-ribbon button:nth-child(3n) {
    min-width: 142px;
    min-height: 88px;
    flex: 0 0 42vw;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }
  .sales-map-ribbon button:last-child { border-right: 0; }
  .sales-map-ribbon button::after { display: none; }
  .sales-map-register > header { align-items: stretch; flex-direction: column; }
  .sales-map-country-filter { max-width: none; width: 100%; }
  .sales-map-company {
    min-height: 92px;
    grid-template-columns: 12px minmax(0, 1fr) 17px;
    gap: 10px;
    padding: 12px 13px;
  }
  .sales-map-company > span:nth-child(3) { grid-column: 2; }
  .sales-map-company > svg { grid-column: 3; grid-row: 1 / span 2; }
  .sales-map-company small { white-space: normal; line-height: 1.35; }
  .dashboard-grid { gap: 12px; }
  .panel + .panel { margin-top: 12px; }
  .chart-wrap { min-height: 220px; }
  .pipeline-row { grid-template-columns: 90px 1fr 70px; }
  .pipeline-count { display: none; }
  .split-layout { display: block; min-height: 0; }
  .split-list { border-right: 0; }
  .request-list { max-height: none; }
  .split-detail { display: none; }
  .split-detail.mobile-visible { position: fixed; z-index: 55; inset: 0; display: block; overflow-y: auto; background: var(--surface); }
  .detail-head { padding: 16px; }
  .detail-body { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .quote-row { grid-template-columns: 1fr 1fr; }
  .quote-row > *:nth-child(3) { display: none; }
  .procurement-supplier-head { align-items: flex-start; flex-direction: column; }
  .procurement-supplier-head .toolbar-actions { width: 100%; }
  .procurement-supplier-head .btn { flex: 1; }
  .procurement-supplier-head .btn span { display: inline; }
  .supplier-offer { grid-template-columns: 1fr; gap: 11px; }
  .supplier-price { padding: 11px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .supplier-offer-title { align-items: flex-start; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .product-body { padding: 11px; }
  .product-body h3 { font-size: calc(10px + var(--text-step)); }
  .product-body p { display: none; }
  .product-price { font-size: calc(13px + var(--text-step)); }
  .counterparty-grid, .integration-grid, .market-grid { grid-template-columns: 1fr; }
  .launch-summary { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .safety-panel { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .backup-panel { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .report-panel { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .report-panel > .btn { grid-column: 1 / -1; width: 100%; }
  .safety-panel > .btn, .safety-panel > .status-pill { grid-column: 1 / -1; width: 100%; }
  .backup-panel > .btn { grid-column: 1 / -1; width: 100%; }
  .launch-score { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--line-strong); padding-bottom: 12px; }
  .launch-step { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .launch-step > .status-pill { justify-self: start; grid-column: 2; }
  .launch-step > .btn { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div.wide { grid-column: auto; }
  .commercial-evidence-grid { grid-template-columns: 1fr; }
  .contact-channel-grid { grid-template-columns: 1fr; }
  .owner-notification-strip { grid-template-columns: 30px minmax(0, 1fr); }
  .owner-notification-strip .btn { grid-column: 1 / -1; width: 100%; }
  .export-summary { grid-template-columns: 1fr 1fr; }
  .export-summary > div:nth-child(2) { border-right: 0; }
  .export-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .market-toolbar { display: grid; }
  .market-toolbar .filters, .market-toolbar .search-control, .market-toolbar .select-control { width: 100%; min-width: 0; }
  .intelligence-source { align-items: flex-start; }
  .intelligence-source > b { display: none; }
  .market-automation { grid-template-columns: 40px minmax(0, 1fr); align-items: start; padding: 13px; }
  .automation-icon { width: 38px; height: 38px; }
  .automation-actions { width: auto; grid-column: 1 / -1; grid-template-columns: 1fr; }
  .automation-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .automation-facts { display: grid; gap: 5px; }
  .market-search-step { padding: 14px 13px; }
  .market-role-switch { grid-template-columns: 1fr; }
  .market-role-option { min-height: 68px; }
  .market-search-safety { align-items: flex-start; padding: 12px 13px; }
  .direction-advanced > summary { grid-template-columns: minmax(0, 1fr) 18px; }
  .direction-advanced > summary .status-pill { display: none; }
  .intelligence-campaign-grid { grid-template-columns: 1fr; }
  .market-work-tabs { grid-template-columns: 1fr; }
  .market-work-tabs button { min-height: 50px; }
  .market-archive-summary { align-items: stretch; flex-direction: column; }
  .market-archive-summary .btn { justify-content: center; width: 100%; }
  .intelligence-toolbar { display: grid; gap: 11px; }
  .intelligence-toolbar .filters { display: grid; grid-template-columns: 1fr; width: 100%; }
  .intelligence-toolbar .search-control, .intelligence-toolbar .select-control { width: 100%; min-width: 0; }
  .intelligence-company { grid-template-columns: 50px minmax(0, 1fr); align-items: start; gap: 11px; padding: 13px; }
  .company-score { width: 48px; height: 48px; }
  .company-score strong { font-size: calc(17px + var(--text-step)); }
  .company-title { display: grid; }
  .company-title .status-pill { justify-self: start; }
  .company-signals { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .company-contact { align-items: flex-start; line-height: 1.4; }
  .company-next { white-space: normal; line-height: 1.4; }
  .company-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-actions .btn { justify-content: center; }
  .analysis-columns, .analysis-kv-grid { grid-template-columns: 1fr; }
  .analysis-breakdown > div { grid-template-columns: minmax(90px, 1fr) minmax(70px, 1fr) auto; }
  .analysis-final-actions { align-items: stretch; flex-direction: column; }
  .analysis-final-actions .drawer-actions { display: grid; grid-template-columns: 1fr; }
  .export-checklist ol { grid-template-columns: 1fr; }
  .approval-item { grid-template-columns: 34px 1fr; padding: 13px; }
  .approval-amount, .approval-actions { grid-column: 2; }
  .settings-layout { grid-template-columns: 1fr; gap: 10px; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { flex: 0 0 auto; white-space: nowrap; }
  .policy-grid { grid-template-columns: 1fr; }
  .rule-list > div, .security-list > div { align-items: flex-start; }
  .rule-list .status-pill, .security-list .status-pill { margin-left: auto; }
  .appearance-hero { min-height: 152px; }
  .theme-options, .wallpaper-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appearance-text-grid { grid-template-columns: 1fr; }
  .motion-switch { grid-template-columns: 1fr 1fr; }
  .motion-switch > div { grid-column: 1 / -1; }
  .theme-preview { height: 62px; }
  .appearance-actions { align-items: stretch; flex-direction: column; }
  .appearance-actions .btn { width: 100%; }
  html[data-text-size="xlarge"] .kpi-grid { grid-template-columns: 1fr; }
  html[data-text-size="xlarge"] .kpi-item { min-height: 102px; border-right: 0; border-bottom: 1px solid var(--line); }
  html[data-text-size="xlarge"] .kpi-item:last-child { border-bottom: 0; }
  html[data-text-size="xlarge"] .kpi-note { white-space: normal; }
  html[data-text-size="xlarge"] .page-toolbar { align-items: stretch; }
  .form-grid, .mode-options, .offer-cost-summary { grid-template-columns: 1fr; }
  .offer-cost-summary > div { border-right: 0; }
  .field.wide { grid-column: auto; }
  .parsed-grid { grid-template-columns: 1fr; }
  .ai-layout { gap: 12px; }
  .ai-input-panel { min-height: 0; }
  .ai-result-panel { min-height: 370px; }
  .login-panel { margin: 0; padding: 27px 23px; }
  .login-backdrop { background-image: linear-gradient(rgba(9,12,10,.75), rgba(9,12,10,.96)), url('/assets/product-grid.png'); }
  .toast-root { bottom: 75px; }
}

@media (max-width: 430px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 2 / 1; }
  .kpi-head .trend { display: none; }
  .kpi-value { font-size: calc(19px + var(--text-step)); }
  .segmented button { padding: 0 8px; }
  html[data-text-size="xlarge"] .font-options,
  html[data-text-size="xlarge"] .text-size-options { grid-template-columns: 1fr; }
  .theme-options, .wallpaper-options { grid-template-columns: 1fr; }
  .sales-map-toolbar .toolbar-actions { grid-template-columns: 1fr; }
  .sales-map-layers { grid-template-columns: 1fr; }
  .sales-map-metric { min-height: 86px; }
  .sales-map-ribbon button,
  .sales-map-ribbon button:nth-child(3n) { flex-basis: 52vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .sales-globe-orbit { animation: none !important; }
}

html[data-motion="off"] .sales-globe-orbit,
html[data-motion="off"] .page-content.depth-enter { animation: none !important; }

/* Расходы на платные ИИ-сервисы: владелец должен видеть цифру до, а не после. */
.ai-budget-card { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.ai-budget-card h3 { margin-top: 12px; }
.ai-budget-card p strong { font-size: calc(15px + var(--text-step)); }
.ai-budget-bar { height: 6px; margin: 10px 0 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ai-budget-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.ai-budget-card .ai-budget-split { font-size: calc(8px + var(--text-step)); }
.ai-budget-card .ai-budget-reason { margin-top: 8px; color: var(--danger, #b91c1c); font-size: calc(8px + var(--text-step)); line-height: 1.45; }
.ai-budget-history { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ai-budget-history li { display: flex; justify-content: space-between; gap: 12px; font-size: calc(8px + var(--text-step)); }

/* Полоса расхода на ИИ на главной: деньги видны до того, как закончатся. */
.ai-spend-strip { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ai-spend-copy { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ai-spend-copy strong { font-size: calc(17px + var(--text-step)); }
.ai-spend-copy small { color: var(--muted); font-size: calc(9px + var(--text-step)); }
.ai-spend-copy .tiny { width: 100%; }
.ai-spend-bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ai-spend-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.ai-spend-strip.warn .ai-spend-bar span { background: #d97706; }
.ai-spend-strip.stop { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.ai-spend-strip.stop .ai-spend-bar span { background: var(--danger); }
.ai-spend-strip.off { opacity: .72; }

/* ============================================================
   ОГРАНКА ИНТЕРФЕЙСА
   Только переменные темы — правки работают во всех пяти стилях
   (светлый, контрастный, aurora, ocean, тёмный) и ничего не ломают.
   ============================================================ */

:root {
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .38);
  --depth-shadow: 0 18px 48px -20px rgba(0, 0, 0, .46), inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent);
  --depth-shadow-hover: 0 30px 70px -24px rgba(0, 0, 0, .55), inset 0 1px 0 color-mix(in srgb, var(--text) 11%, transparent);
}

/* Типографика: плотнее заголовки, спокойнее строка */
h1, h2, h3, .kpi-value, .panel-head h2, .toolbar-copy h2 {
  letter-spacing: -.016em;
}
.kpi-value, .pipeline-amount, .ai-spend-copy strong, .money, td strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.tiny, .eyebrow, .status-pill {
  letter-spacing: .04em;
}

/* Поверхности: мягкая глубина вместо плоской заливки */
.panel, .kpi-grid, .owner-actions-panel, .commercial-path-panel,
.portfolio-overview, .integration-card, .ai-spend-strip {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--text) 2.5%, transparent),
    transparent 42%
  );
}

/* Кнопки: крупнее радиус, живее отклик */
.btn {
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary {
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--green) 70%, transparent);
}
.btn.primary:hover {
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--green) 85%, transparent);
}

/* Карточки интеграций и действий: подъём при наведении */
.integration-card, .owner-action {
  border-radius: var(--radius);
  transition: transform var(--depth-ease), box-shadow var(--depth-ease),
    border-color var(--transition);
}
.integration-card:hover, .owner-action:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--unit-accent) 34%, var(--line));
  box-shadow: var(--depth-shadow);
}

/* Навигация: аккуратнее скругления и переход */
.sidebar-nav button, .sidebar-nav a {
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

/* Поля ввода: заметный, но спокойный фокус */
input, select, textarea {
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--unit-accent) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--unit-accent) 18%, transparent);
}
.btn:focus-visible, .text-action:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--unit-accent) 70%, transparent);
  outline-offset: 2px;
}

/* Таблицы: мягче строки, читаемее наведение */
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
thead th:first-child { border-top-left-radius: var(--radius-sm); }
thead th:last-child { border-top-right-radius: var(--radius-sm); }

/* Метки статусов: чуть выразительнее */
.status-pill { border-radius: 999px; }

/* Модальные окна и панели: крупный радиус, глубокая тень */
.modal, .drawer { border-radius: var(--radius-lg); box-shadow: var(--depth-shadow-hover); }
.modal-backdrop, .drawer-backdrop { backdrop-filter: blur(3px); }

/* Полосы прокрутки: тонкие и в тон теме */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--faint); background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .integration-card:hover, .owner-action:hover { transform: none; }
}

/* Экран входа всегда тёмный: фон и панель заданы жёстко, поэтому текст тоже
   должен быть светлым. В светлой теме заголовок сливался с панелью. */
.login-panel { color: #f1f4f2; }
.login-panel h1 { color: #ffffff; }
.login-panel .login-subtitle { color: rgba(241, 244, 242, .68); }
.login-panel label { color: rgba(241, 244, 242, .82); }
.login-panel input {
  color: #f1f4f2;
  background: rgba(10, 13, 11, .72);
  border-color: rgba(255, 255, 255, .14);
}
.login-panel input::placeholder { color: rgba(241, 244, 242, .42); }
.login-panel .login-hint, .login-panel small { color: rgba(241, 244, 242, .58); }
