:root {
  --bg: #f4f6f9;
  --panel: #fff;
  --ink: #14171f;
  --muted: #727887;
  --line: #e8ebf0;
  --green: #16b36b;
  --green-soft: #e8f8f0;
  --red: #ea5757;
  --red-soft: #fff0f0;
  --orange: #f59b34;
  --navy: #111722;
}

/* Dashboard display switcher and compact analytical matrix. */
.dashboard-display-control { position: fixed; right: 22px; bottom: 80px; z-index: 80; width: 46px; height: 46px; margin: 0; }
.dashboard-display-button { width: 46px; height: 46px; min-height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #d5dce5; border-radius: 50%; color: #111827; background: linear-gradient(145deg,#fff,#f1f4f8); box-shadow: 0 12px 32px rgba(0,0,0,.22); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.dashboard-display-button:hover { border-color: rgba(24,199,122,.48); background: rgba(24,199,122,.1); transform: translateY(-1px); }
.dashboard-display-button > span:first-child { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #7ce9ad; background: transparent; font-size: 20px; font-weight: 900; }
.dashboard-display-button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }.dashboard-display-button b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.dashboard-display-button small { color: #8994a7; font-size: 9px; }.dashboard-display-button i { color: #7d8798; font-style: normal; transition: transform .18s ease; }.dashboard-display-button[aria-expanded="true"] i { transform: rotate(180deg); }
.dashboard-display-menu { position: absolute; z-index: 40; left: 0; right: 0; bottom: calc(100% + 8px); padding: 6px; border: 1px solid rgba(125,137,158,.24); border-radius: 15px; background: #151c28; box-shadow: 0 18px 45px rgba(0,0,0,.32); }.dashboard-display-menu button { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 10px; color: #aeb8c8; background: transparent; text-align: left; cursor: pointer; }.dashboard-display-menu button:hover,.dashboard-display-menu button.active { color: #fff; background: rgba(24,199,122,.13); }.dashboard-display-menu button > span:last-child { display: grid; gap: 2px; }.dashboard-display-menu small { color: #7d899d; font-size: 8px; }.display-mode-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(125,137,158,.12); font-size: 18px; }
body.theme-light:not(.locked) .dashboard-display-button { color: #1b2432; border-color: #c9d2df; background: linear-gradient(145deg,#fff,#e7ecf3); } body.theme-light:not(.locked) .dashboard-display-menu { border-color: #dce3ec; background: #fff; box-shadow: 0 18px 45px rgba(24,34,50,.14); } body.theme-light:not(.locked) .dashboard-display-menu button:hover,body.theme-light:not(.locked) .dashboard-display-menu button.active { color: #13251e; background: #eaf8f1; }
.dashboard-matrix { display: grid; width: 100%; min-width: 0; gap: 18px; }.dashboard-matrix[hidden] { display: none; }.dashboard-matrix-head { display: flex; width: 100%; min-width: 0; max-width: 100%; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }.dashboard-matrix-head h2 { margin: 4px 0 7px; font-size: 25px; }.dashboard-matrix-legend { display: flex; gap: 16px; color: var(--muted); font-size: 9px; white-space: nowrap; }.dashboard-matrix-legend span { display: flex; align-items: center; gap: 6px; }.dashboard-matrix-legend i { width: 8px; height: 8px; border-radius: 50%; }.matrix-good { background: #17b978; }.matrix-watch { background: #f0a937; }
.dashboard-matrix-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 12px; }.dashboard-matrix-summary article { display: grid; min-width: 0; gap: 5px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }.dashboard-matrix-summary small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.dashboard-matrix-summary b { font-size: 20px; letter-spacing: -.03em; }.dashboard-matrix-summary span { color: var(--muted); font-size: 9px; }
.dashboard-matrix-table-wrap { max-height: calc(100vh - 330px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 16px 42px rgba(17,24,39,.07); }.dashboard-matrix-table { width: 100%; min-width: 1260px; border-collapse: separate; border-spacing: 0; font-size: 10px; }.dashboard-matrix-table th { position: sticky; top: 0; z-index: 5; padding: 12px 13px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--panel); text-align: right; font-size: 8px; letter-spacing: .055em; text-transform: uppercase; }.dashboard-matrix-table th:nth-child(-n+3) { text-align: left; }.dashboard-matrix-table th:first-child { left: 0; z-index: 7; }.dashboard-matrix-table th:nth-child(2) { left: 74px; z-index: 7; }.dashboard-matrix-table th:nth-child(3) { left: 218px; z-index: 7; }
.dashboard-matrix-table td { padding: 11px 13px; border-bottom: 1px solid color-mix(in srgb,var(--line) 72%,transparent); text-align: right; white-space: nowrap; }.dashboard-matrix-table tbody tr { cursor: pointer; transition: background .14s ease; }.dashboard-matrix-table tbody tr:hover td { background: color-mix(in srgb,var(--green) 7%,var(--panel)); }.dashboard-matrix-table tr.matrix-geo-start td { border-top: 2px solid color-mix(in srgb,var(--green) 30%,var(--line)); }.dashboard-matrix-table .matrix-identity,.dashboard-matrix-table .matrix-project { position: sticky; z-index: 2; text-align: left; background: var(--panel); }.dashboard-matrix-table .matrix-geo { left: 0; min-width: 74px; }.dashboard-matrix-table td:nth-child(2) { left: 74px; min-width: 144px; }.dashboard-matrix-table .matrix-project { left: 218px; min-width: 190px; box-shadow: 8px 0 12px -12px rgba(0,0,0,.45); }.dashboard-matrix-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }.dashboard-matrix-table .matrix-identity > span { color: var(--muted); }
.dashboard-matrix-table .metric-good { color: #16a66c; background: rgba(22,166,108,.09); font-weight: 850; }.dashboard-matrix-table .metric-watch { color: #c57d0a; background: rgba(240,169,55,.1); font-weight: 850; }.dashboard-matrix-table .metric-bad { color: #df5364; background: rgba(223,83,100,.09); font-weight: 850; }.matrix-signal { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; }.matrix-signal.scale { color: #0d8d5a; background: rgba(22,185,120,.13); }.matrix-signal.risk { color: #c8384a; background: rgba(223,83,100,.13); }.matrix-signal.watch { color: #a96908; background: rgba(240,169,55,.14); }.matrix-signal.learning { color: var(--muted); background: rgba(125,137,158,.12); }.dashboard-matrix-table tfoot td { position: sticky; bottom: 0; z-index: 4; border-top: 2px solid var(--ink); border-bottom: 0; background: var(--panel); font-weight: 900; }.dashboard-matrix-table tfoot td:first-child { text-align: left; }.matrix-empty { padding: 40px !important; color: var(--muted); text-align: center !important; }
body.dashboard-matrix-mode :is(#dashboardView,#unityDashboardView) > :not(#dashboardMatrixView) { display: none !important; }
@media (max-width:900px) { .dashboard-matrix-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.dashboard-matrix-head { align-items: flex-start; flex-direction: column; } }

/* P&L workspace mirrors the operational structure of P&L_stat sheets. */
.dashboard-matrix-summary article { position: relative; overflow: hidden; }
.dashboard-matrix-summary article::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ''; background: #8ea1bc; }
.dashboard-matrix-summary article.spend::before { background: #7188a9; }
.dashboard-matrix-summary article.deposits::before { background: #18ba70; }
.dashboard-matrix-summary article.efficiency::before { background: #f0a937; }
.dashboard-matrix-summary article.deposit-count::before { background: #f0a937; }
.dashboard-matrix-summary article.registrations::before { background: #6294e8; }
.dashboard-matrix-summary article.installs::before { background: #8b5cf6; }
.dashboard-matrix-summary article.clicks::before { background: #3aa8ae; }
.dashboard-matrix-summary article.scope::before { background: #8b5cf6; }
.dashboard-pnl-workspace { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; width: 100%; min-width: 0; max-height: none; overflow: visible; padding: 2px 2px 12px; }
.dashboard-pnl-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 32px rgba(17,24,39,.07); scroll-snap-align: start; }
.dashboard-pnl-panel.daily-panel { grid-column: auto; }
.dashboard-pnl-panel > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,#dce5f0 42%,var(--panel)); }
.dashboard-pnl-panel > header div { display: grid; gap: 3px; }
.dashboard-pnl-panel > header small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.dashboard-pnl-panel > header b { font-size: 12px; }
.dashboard-pnl-panel > header > span { padding: 5px 8px; border-radius: 999px; color: var(--muted); background: var(--panel); font-size: 8px; font-weight: 800; white-space: nowrap; }
.dashboard-pnl-table-wrap { width: 100%; max-width: 100%; max-height: min(620px,calc(100vh - 280px)); overflow: auto; scrollbar-gutter: stable; }
.dashboard-pnl-table { width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; font-size: 9px; font-variant-numeric: tabular-nums; }
.dashboard-pnl-table.project-table { min-width: 820px; }
.dashboard-pnl-table.buyer-table { min-width: 860px; }
.dashboard-pnl-table.daily-table { min-width: 760px; }
.dashboard-pnl-table th { position: sticky; z-index: 4; top: 0; height: 38px; padding: 8px 9px; border-right: 1px solid color-mix(in srgb,var(--line) 70%,transparent); border-bottom: 2px solid color-mix(in srgb,var(--ink) 72%,transparent); color: var(--ink); background: color-mix(in srgb,#dce5f0 62%,var(--panel)); text-align: right; font-size: 8px; font-weight: 900; white-space: nowrap; }
.dashboard-pnl-table th:first-child,.dashboard-pnl-table th:nth-child(2),.dashboard-pnl-table th:nth-child(3),.daily-table th:nth-child(4) { text-align: left; }
.dashboard-pnl-table th.metric-spend { color: #fff; background: #8299ba; }
.dashboard-pnl-table th.metric-deposit,.dashboard-pnl-table th.metric-cpa,.dashboard-pnl-table th.metric-roas { color: #062515; background: #28df60; }
.dashboard-pnl-table td { height: 34px; padding: 7px 9px; border-bottom: 1px solid color-mix(in srgb,var(--line) 66%,transparent); color: var(--ink); text-align: right; white-space: nowrap; }
.dashboard-pnl-workspace::after { content: none !important; }
.dashboard-pnl-table tbody tr:not(.matrix-group-row):not(.matrix-subgroup-row) { cursor: pointer; }
.dashboard-pnl-table tbody tr:not(.matrix-group-row):not(.matrix-subgroup-row):hover td { background: color-mix(in srgb,var(--green) 7%,var(--panel)); }
.dashboard-pnl-table .matrix-name,.dashboard-pnl-table .matrix-indent { text-align: left; }
.dashboard-pnl-table .matrix-indent { color: #8ea1b7; }
.dashboard-pnl-table td.metric-good { color: #087c4a; background: rgba(24,185,113,.18); font-weight: 900; }
.dashboard-pnl-table td.metric-watch { color: #a96908; background: rgba(240,169,55,.13); font-weight: 900; }
.dashboard-pnl-table td.metric-bad { color: #c8384a; background: rgba(223,83,100,.11); font-weight: 900; }
.dashboard-pnl-table .matrix-group-row td { height: 36px; padding: 5px 9px; border-bottom-color: color-mix(in srgb,#8ea1b7 45%,var(--line)); background: color-mix(in srgb,#cdd9e7 58%,var(--panel)); text-align: left; }
.dashboard-pnl-table .matrix-group-row.day td { background: color-mix(in srgb,#bdcce0 62%,var(--panel)); }
.dashboard-pnl-table .matrix-subgroup-row td { height: 32px; padding: 4px 9px; background: color-mix(in srgb,#dce5f0 38%,var(--panel)); text-align: left; }
.dashboard-pnl-table .matrix-group-row td,.dashboard-pnl-table .matrix-subgroup-row td { position: relative; }
.dashboard-pnl-table .matrix-group-row td > span,.dashboard-pnl-table .matrix-subgroup-row td > span { margin-left: 10px; color: var(--muted); font-size: 8px; }
.dashboard-pnl-table .matrix-group-row td > b,.dashboard-pnl-table .matrix-subgroup-row td > b { float: right; line-height: 25px; }
.matrix-group-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 900; cursor: pointer; }
.matrix-group-toggle > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; color: #fff; background: #7892af; font-size: 13px; line-height: 1; }
.dashboard-pnl-table tfoot td { position: sticky; z-index: 3; bottom: 0; height: 38px; border-top: 2px solid var(--ink); border-bottom: 0; background: color-mix(in srgb,#dce5f0 64%,var(--panel)); font-weight: 900; }
.dashboard-pnl-table tfoot td:first-child { text-align: left; }
.dashboard-pnl-table .matrix-empty { height: 120px; color: var(--muted); text-align: center; }
@media (max-width:1200px) { .dashboard-pnl-workspace { grid-template-columns: 1fr; } }

/* Influence search keeps a stable column grid regardless of cell content. */
body:not(.locked) .influence-search-table .table-wrap > table.influence-search-data-table {
  width: 100%;
  min-width: 1510px;
  table-layout: fixed;
}
body:not(.locked) .influence-search-data-table th,
body:not(.locked) .influence-search-data-table td {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.locked) .influence-search-data-table td:last-child {
  overflow: visible;
  text-align: center;
}

/* `hidden` is an access/UI state, so component display rules must never override it. */
[hidden] {
  display: none !important;
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; background: #06050d; }
body { margin: 0; min-height: 100vh; max-width: 100%; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
button, select, input { font: inherit; }
.locked { overflow: hidden; }
.locked .sidebar, .locked main { display: none; }
.locked .theme-toggle { display: inline-flex; }
.auth-screen { width: 100vw; height: 100vh; display: none; place-items: center; overflow: hidden; padding: 0; background: #000; }
.locked .auth-screen { display: grid; }
.brand-gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; opacity: 1; transform: translateY(0); transition: opacity .28s ease, transform .28s ease; }
.auth-screen.login-visible .brand-gate { pointer-events: none; opacity: 0; transform: translateY(-12px); }
.brand-gate-frame { position: relative; width: 100vw; height: 100vh; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(16px, 2.2vh, 30px); overflow: hidden; border: 0; border-radius: 0; padding: clamp(18px, 2vw, 34px); background:
  radial-gradient(circle at 16% 24%, rgba(120, 68, 255, .32), transparent 28%),
  radial-gradient(circle at 50% 34%, rgba(0, 229, 255, .14), transparent 28%),
  radial-gradient(circle at 78% 76%, rgba(55, 255, 128, .13), transparent 28%),
  linear-gradient(127deg, #080713 0%, #0e0b20 42%, #020205 100%); color: #f7f6ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 32px 100px rgba(0,0,0,.62); font-family: Rubik, Inter, system-ui, sans-serif; }
.brand-gate-frame::before { content: ''; position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: clamp(34px, 3vw, 56px) clamp(34px, 3vw, 56px); mask-image: radial-gradient(circle at 38% 44%, #000 0%, rgba(0,0,0,.78) 42%, transparent 82%); opacity: .9; }
.brand-gate-frame::after { content: ''; position: absolute; left: 50%; top: 50%; width: min(62vw, 930px); aspect-ratio: 1; z-index: 0; border-radius: 50%; transform: translate(-50%, -50%); background:
  radial-gradient(circle, transparent 32%, rgba(148,86,255,.11) 33%, rgba(148,86,255,.11) 34%, transparent 35%),
  radial-gradient(circle, transparent 53%, rgba(0,229,255,.085) 54%, rgba(0,229,255,.085) 55%, transparent 56%),
  radial-gradient(circle, rgba(111,255,99,.06), transparent 58%); filter: blur(.2px); }
.brand-gate-top { position: relative; z-index: 5; display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: clamp(18px, 3vw, 52px); color: #f7f6ff; font-size: clamp(13px, 1.05vw, 18px); font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.brand-gate-kicker { display: inline-flex; align-items: center; gap: 10px; }
.brand-gate-kicker::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #71ff5b; box-shadow: 0 0 18px #71ff5b; }
.brand-gate-menu { justify-self: end; padding-right: clamp(4px, 1vw, 18px); display: flex; gap: clamp(28px, 5vw, 92px); color: rgba(247,246,255,.82); font-size: clamp(11px, .92vw, 16px); letter-spacing: .08em; }
.brand-gate-menu span { position: relative; outline: 0; cursor: default; transition: color .2s ease, transform .2s ease, text-shadow .2s ease; }
.brand-gate-menu span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: rgba(247,246,255,.18); transform: scaleX(.2); transform-origin: center; transition: transform .22s ease, background .22s ease; }
.brand-gate-menu span:hover { color: #fff; transform: translateY(-2px); text-shadow: 0 0 20px rgba(113,255,91,.22); }
.brand-gate-menu span:hover::after { background: #71ff5b; transform: scaleX(1); }
.brand-gate-menu span::before { content: attr(data-tooltip); position: absolute; top: calc(100% + 28px); left: 50%; width: 280px; padding: 14px 15px; border: 1px solid rgba(113,255,91,.2); border-radius: 14px; color: rgba(247,246,255,.78); background: rgba(5,5,12,.94); box-shadow: 0 20px 54px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.035); font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 750; letter-spacing: 0; line-height: 1.35; text-align: left; text-transform: none; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.brand-gate-menu span:hover::before { opacity: 1; transform: translate(-50%, 0); }
.brand-gate-menu span:last-child::before { left: auto; right: 0; transform: translate(0, 8px); }
.brand-gate-menu span:last-child:hover::before { transform: translate(0, 0); }
.brand-gate-layout { position: relative; z-index: 2; min-height: 0; display: grid; place-items: center; text-align: center; }
.brand-gate-copy { position: relative; z-index: 5; align-self: center; width: min(100%, 980px); display: grid; justify-items: center; }
.brand-gate-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(18px, 2.6vh, 30px); padding: 10px 16px; border: 1px solid rgba(151,87,255,.54); border-radius: 999px; color: #d8c7ff; background: rgba(12,10,25,.58); box-shadow: inset 0 0 18px rgba(151,87,255,.12), 0 0 20px rgba(151,87,255,.1); font-size: clamp(10px, .86vw, 14px); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.brand-gate-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #71ff5b; box-shadow: 0 0 14px #71ff5b; }
.brand-gate-copy h1 { max-width: 11ch; margin: 0 auto; padding-inline: .1em; color: #fff; font-size: clamp(88px, 10.2vw, 196px); line-height: .82; letter-spacing: -.085em; font-weight: 900; text-transform: uppercase; text-wrap: balance; text-shadow: 0 0 34px rgba(151,87,255,.2); }
.brand-gate-text { max-width: 720px; margin: clamp(18px, 2.4vh, 30px) auto 0; color: rgba(247,246,255,.68); font-size: clamp(14px, 1.1vw, 20px); font-weight: 750; line-height: 1.32; }
.brand-gate-actions { display: flex; align-items: center; justify-content: center; margin-top: clamp(28px, 4vh, 52px); }
.brand-gate-button { position: relative; min-width: min(390px, 100%); padding: 22px 34px; border: 0; border-radius: 999px; color: #05050a; background: linear-gradient(135deg, #78ff62, #34e7ff); cursor: pointer; box-shadow: 0 0 28px rgba(113,255,91,.24), 0 18px 36px rgba(0,0,0,.32); font-size: clamp(14px, 1.1vw, 19px); font-weight: 950; letter-spacing: .05em; text-transform: uppercase; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.brand-gate-button::before { content: ''; position: absolute; inset: 0; translate: -115% 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent); transform: skewX(-18deg); transition: translate .55s ease; }
.brand-gate-button:hover { transform: translateY(-5px) scale(1.035); box-shadow: 0 0 58px rgba(52,231,255,.38), 0 24px 56px rgba(0,0,0,.48); }
.brand-gate-button:hover::before { translate: 115% 0; }
.brand-gate-button:active { transform: translateY(-1px) scale(1.01); }
.brand-gate-contacts { position: absolute; right: clamp(8px, .9vw, 16px); bottom: clamp(8px, .9vw, 16px); z-index: 7; display: flex; align-items: stretch; gap: 10px; }
.brand-gate-contacts a { min-width: 178px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.08); color: rgba(247,246,255,.72); background: rgba(0,0,0,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.24); text-align: left; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.brand-gate-contacts a:hover { transform: translateY(-4px); border-color: rgba(113,255,91,.32); background: rgba(8,14,12,.84); box-shadow: inset 0 3px #71ff5b, 0 20px 48px rgba(0,0,0,.32); }
.brand-gate-contacts small { display: block; margin-bottom: 5px; color: rgba(247,246,255,.44); font-size: 9px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.brand-gate-contacts b { display: block; color: #fff; font-size: 14px; font-weight: 950; letter-spacing: -.02em; }
.brand-gate-status { position: absolute; left: clamp(8px, .9vw, 16px); bottom: clamp(8px, .9vw, 16px); z-index: 7; padding: 16px 18px; border-left: 2px solid #71ff5b; color: rgba(247,246,255,.58); background: linear-gradient(90deg, rgba(113,255,91,.08), transparent); text-align: left; }
.brand-gate-status small { display: block; margin-bottom: 5px; font-size: 9px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.brand-gate-status b { display: block; color: #fff; font-size: clamp(16px, 1.15vw, 22px); font-weight: 950; letter-spacing: -.04em; }
.brand-gate-metrics { display: none; }
.brand-gate-metrics span { min-height: 82px; padding: clamp(16px, 1.5vw, 22px); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; color: rgba(247,246,255,.55); background: rgba(5,5,12,.64); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 18px 48px rgba(0,0,0,.24); font-size: clamp(12px, .92vw, 16px); font-weight: 800; }
.brand-gate-metrics small { display: block; margin-bottom: 8px; color: #71ff5b; font-size: 10px; letter-spacing: .18em; }
.brand-gate-metrics b { display: block; margin-bottom: 5px; color: #f3f3f3; font-size: clamp(22px, 1.8vw, 34px); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.auth-card { position: relative; z-index: 10; width: min(460px, calc(100vw - 40px)); padding: 42px; color: #f7f6ff; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; background: linear-gradient(145deg, rgba(12,10,25,.84), rgba(4,5,10,.94)); box-shadow: 0 34px 100px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.035); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.auth-screen.login-visible { background:
  radial-gradient(circle at 18% 22%, rgba(120,68,255,.25), transparent 28%),
  radial-gradient(circle at 78% 72%, rgba(55,255,128,.12), transparent 28%),
  linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
  linear-gradient(127deg, #080713 0%, #0e0b20 44%, #020205 100%);
  background-size: auto, auto, 54px 54px, 54px 54px, auto; }
.auth-screen.login-visible .auth-card { opacity: 1; pointer-events: auto; transform: translateY(0); }
.login-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 9px 12px; border: 1px solid rgba(151,87,255,.54); border-radius: 999px; color: #d8c7ff; background: rgba(12,10,25,.58); box-shadow: inset 0 0 18px rgba(151,87,255,.12), 0 0 20px rgba(151,87,255,.1); font-size: 10px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.login-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #71ff5b; box-shadow: 0 0 14px #71ff5b; }
.auth-card h1 { margin: 0; font-size: 36px; color: #fff; letter-spacing: -.055em; }
.login-subtitle { margin: 10px 0 30px; color: rgba(247,246,255,.58); font-size: 13px; font-weight: 750; }
.auth-card label { display: block; margin-top: 18px; }
.auth-card h1 + label { margin-top: 0; }
.auth-card input:not([type="checkbox"]) { display: block; width: 100%; margin-top: 7px; padding: 15px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.16); border-radius: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 750; }
.auth-card input:not([type="checkbox"])::placeholder { color: rgba(247,246,255,.42); }
.auth-card input:not([type="checkbox"]):focus { border-bottom-color: #71ff5b; }
.remember-login { display: flex !important; align-items: center; gap: 8px; color: rgba(247,246,255,.54); cursor: pointer; font-size: 11px; font-weight: 750; }
.remember-login input { width: 14px; height: 14px; margin: 0; accent-color: var(--green); }
.auth-card button { width: 100%; margin-top: 34px; padding: 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #78ff62, #34e7ff); color: #05050a; cursor: pointer; font-size: 13px; font-weight: 950; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 0 28px rgba(113,255,91,.24), 0 18px 36px rgba(0,0,0,.32); transition: transform .18s ease, box-shadow .18s ease; }
.auth-card button:hover { transform: translateY(-3px); box-shadow: 0 0 46px rgba(52,231,255,.34), 0 22px 48px rgba(0,0,0,.42); }

/* Светлая тема доступна ещё до авторизации и сохраняется после входа. */
body.locked.theme-light .auth-screen {
  background:
    radial-gradient(circle at 12% 18%, rgba(126, 76, 255, .34), transparent 28%),
    radial-gradient(circle at 86% 76%, rgba(0, 214, 176, .28), transparent 30%),
    radial-gradient(circle at 54% 46%, rgba(51, 197, 255, .18), transparent 25%),
    linear-gradient(135deg, #f7f3ff 0%, #eef8ff 48%, #effff7 100%);
}
body.locked.theme-light .brand-gate-frame {
  color: #171b24;
  background:
    radial-gradient(circle at 14% 24%, rgba(126, 76, 255, .34), transparent 30%),
    radial-gradient(circle at 50% 42%, rgba(45, 208, 255, .2), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(30, 220, 145, .26), transparent 32%),
    linear-gradient(127deg, #fbf8ff 0%, #edf5ff 48%, #effff6 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 43, 58, .08);
}
body.locked.theme-light .brand-gate-frame::before {
  background: linear-gradient(rgba(40,49,66,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(40,49,66,.05) 1px, transparent 1px);
}
body.locked.theme-light .brand-gate-top,
body.locked.theme-light .brand-gate-status b { color: #171b24; }
body.locked.theme-light .brand-gate-copy h1 {
  color: #171b24;
  background: linear-gradient(125deg, #171b24 5%, #5435a5 42%, #087f86 72%, #13784b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 18px 28px rgba(72, 52, 143, .16));
}
body.locked.theme-light .brand-gate-menu { color: #4e596c; }
body.locked.theme-light .brand-gate-menu span:hover { color: #10141b; }
body.locked.theme-light .brand-gate-menu span::before { color: #334155; border-color: #b8ddca; background: rgba(255,255,255,.97); box-shadow: 0 20px 54px rgba(43,52,69,.15); }
body.locked.theme-light .brand-gate-chip { color: #57339f; border-color: #b99bed; background: rgba(255,255,255,.82); box-shadow: 0 10px 30px rgba(102,70,180,.16); }
body.locked.theme-light .brand-gate-text,
body.locked.theme-light .brand-gate-status { color: #657084; }
body.locked.theme-light .brand-gate-contacts a { color: #4c5668; border-color: rgba(113,82,180,.22); background: rgba(255,255,255,.9); box-shadow: inset 0 3px #8a63df, 0 18px 42px rgba(44,54,70,.12); }
body.locked.theme-light .brand-gate-contacts a:last-child { box-shadow: inset 0 3px #16bfa2, 0 18px 42px rgba(44,54,70,.12); }
body.locked.theme-light .brand-gate-contacts a:hover { border-color: #69cbb0; background: #fff; }
body.locked.theme-light .brand-gate-contacts small { color: #7d8798; }
body.locked.theme-light .brand-gate-contacts b { color: #171b24; }
body.locked.theme-light .auth-card { color: #3e485a; border-color: rgba(122, 85, 196, .28); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,250,255,.96)); box-shadow: 0 34px 100px rgba(71,50,130,.22), inset 0 4px #8260d7; }
body.locked.theme-light .auth-card h1 { color: #171b24; }
body.locked.theme-light .auth-card input:not([type="checkbox"]) { color: #171b24; border-bottom-color: #cdd5df; }
body.locked.theme-light .auth-card input:not([type="checkbox"])::placeholder { color: #7e8898; }
body.locked.theme-light .auth-card input:not([type="checkbox"]):focus { border-bottom-color: #13ae79; box-shadow: 0 2px rgba(19,174,121,.16); }
body.locked.theme-light .login-chip { color: #fff; border-color: transparent; background: linear-gradient(120deg, #6f4cc3, #287bb3); box-shadow: 0 10px 26px rgba(85,61,157,.24); }
body.locked.theme-light .login-subtitle { color: #606b7d; }
body.locked.theme-light .remember-login { color: #5e6879; }
body.locked.theme-light .auth-card button { background: linear-gradient(120deg, #67ee75 0%, #2fd6b5 48%, #36bdf0 100%); box-shadow: 0 16px 34px rgba(35,190,163,.28); }
.auth-error { min-height: 15px; margin: 10px 0 -7px; color: #ff7979; font-size: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; min-height: 0; padding: 28px 20px; color: #d9dde5; background: var(--navy); display: flex; flex-direction: column; z-index: 5; }
.brand { color: white; display: block; font-size: 18px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand b { color: #38d88b; }
.direction-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 4px; border: 1px solid #2b3545; border-radius: 11px; background: #171e29; }
.direction-switcher[hidden] { display: none; }
.direction-switcher button { min-width: 0; padding: 8px 6px; border: 0; border-radius: 7px; color: #7f899a; background: transparent; cursor: pointer; font-size: 10px; font-weight: 850; }
.direction-switcher button.active { color: #fff; background: linear-gradient(135deg, #16a96a, #237dca); box-shadow: 0 7px 18px #07101d66; }
.nav { display: grid; grid-auto-rows: max-content; align-content: start; flex: 1 1 auto; gap: 8px; min-height: 0; margin-top: 28px; padding: 0 8px 8px 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nav-group { display: grid; gap: 8px; }
.nav-group[hidden] { display: none; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { border-radius: 999px; background: #3d4656; }
.nav-item { flex: 0 0 auto; min-height: 42px; color: #969eae; padding: 12px 13px; border-radius: 9px; text-decoration: none; font-size: 14px; line-height: 18px; display: block; }
.nav-item:hover, .nav-item.active { color: white; background: #202837; }
.nav-item.active { box-shadow: inset 3px 0 var(--green); }
.sidebar-note { flex: 0 0 auto; margin-top: 10px; padding: 12px; background: #1b2330; border: 1px solid #2a3545; border-radius: 10px; font-size: 12px; }
.sidebar-note small { display: block; color: #778090; line-height: 1.45; margin-top: 7px; }
.sidebar-profile-button { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 0; border: 0; color: #d9dde5; background: transparent; text-align: left; cursor: pointer; }
.sidebar-profile-button:hover #sessionUser { color: #fff; }
.sidebar-profile-button > span:last-child { min-width: 0; }
.sidebar-photo { width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; color: #087c4a; background: var(--green-soft); font-size: 11px; font-weight: 800; }
.sidebar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#sessionUser { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.logout-button { margin-top: 12px; padding: 0; border: 0; color: #8b94a4; background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; }
.sidebar-note-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sidebar-note-footer #systemVersion { color: #667083; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
body.theme-light:not(.locked) .sidebar-note-footer #systemVersion { color: #7b8494; }
.live-dot { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #16b36b22; }
.influence-view { width: 100%; max-width: 100%; min-width: 0; display: block; overflow-x: hidden; }
.influence-view[hidden] { display: none; }
.influence-dashboard { display: block; }
.influence-dashboard[hidden] { display: none; }
.influence-filters { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.influence-sync { margin: 16px 2px 18px; color: var(--muted); font-size: 10px; }
.influence-search { width: 100%; max-width: 100%; min-width: 0; display: grid; gap: 18px; overflow-x: hidden; }
.influence-search > * { width: 100%; max-width: 100%; min-width: 0; }
.influence-search-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; overflow: hidden; }
.influence-search-head > div:first-child { min-width: 0; }
.influence-search-head h1 { margin: 4px 0; }
.influence-search-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; }
.influence-geo-tabs { width: 100%; display: flex; gap: 8px; overflow-x: auto; padding: 2px 24px; }
.influence-geo-tabs button { min-width: 58px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--panel); font-weight: 850; cursor: pointer; }
.influence-geo-tabs button.active { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 8px 18px rgba(22,179,107,.2); }
.influence-geo-tabs .influence-manage-geo { min-width: auto; margin-left: 4px; padding: 10px 13px; color: #315fd6; border-style: dashed; border-color: #b9c8ef; background: #f6f8ff; }
.influence-geo-tabs .influence-manage-geo:hover { border-style: solid; border-color: #315fd6; background: #edf2ff; }
.influence-person-form, .influence-search-table { padding: 22px; }
.influence-person-dialog { width: min(820px, calc(100vw - 32px)); max-width: 820px; padding: 10px; }
.influence-person-dialog .influence-person-form { padding: 24px; }
dialog.influence-geo-dialog { width: min(440px, calc(100vw - 32px)); max-width: 440px; padding: 24px; }
.influence-geo-dialog form { display: grid; gap: 11px; }
.influence-geo-dialog .eyebrow { margin: 0; }
.influence-geo-dialog h2 { margin: 2px 0 4px; }
.influence-geo-dialog .subtitle { margin: 0 0 5px; line-height: 1.4; }
.influence-geo-dialog input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); font-size: 14px; font-weight: 750; text-transform: uppercase; }
.influence-geo-dialog .influence-submit-person { height: 46px; margin-top: 2px; }
.influence-add-person, .influence-add-geo, .influence-submit-person { height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.influence-add-geo { min-width: 142px; color: #202938; border: 1px solid #d9e0e9; background: #fff; box-shadow: 0 3px 10px rgba(31,41,55,.05); }
.influence-add-person { min-width: 205px; color: #fff; border: 1px solid #087755; background: #098b63; box-shadow: 0 6px 16px rgba(9,139,99,.18); }
.influence-add-person > span, .influence-add-geo > span { position: relative; display: block; width: 24px; height: 24px; flex: 0 0 24px; overflow: hidden; border-radius: 7px; font-size: 0; }
.influence-add-person > span::before, .influence-add-person > span::after, .influence-add-geo > span::before, .influence-add-geo > span::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.influence-add-person > span::after, .influence-add-geo > span::after { transform: translate(-50%, -50%) rotate(90deg); }
.influence-add-geo > span { color: #315fd6; background: #edf3ff; }
.influence-add-person > span { color: #fff; background: rgba(255,255,255,.17); }
.influence-add-person b, .influence-add-geo b { font-size: 11px; font-weight: 800; letter-spacing: -.01em; }
.influence-add-person b { color: #fff !important; }
.influence-add-person small { min-width: 28px; padding: 5px 7px; border-radius: 6px; color: #087751; background: #e8f8f1; font-size: 8px; font-weight: 900; text-align: center; }
.influence-submit-person { width: 100%; padding: 13px 20px; color: #fff !important; border: 1px solid #078b61; background: linear-gradient(135deg, #0db77d 0%, #07875f 100%); box-shadow: 0 8px 20px rgba(9,139,99,.24); font-size: 12px; font-weight: 850; }
.influence-submit-person b { color: #fff !important; }
.influence-submit-person span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.2); font-size: 18px; }
.influence-add-geo:hover { color: #214fc9; border-color: #a9bff6; background: #f8faff; transform: translateY(-1px); box-shadow: 0 7px 16px rgba(49,95,214,.1); }
.influence-add-person:hover { border-color: #066747; background: #077a56; transform: translateY(-1px); box-shadow: 0 9px 20px rgba(9,139,99,.24); }
.influence-submit-person:hover { border-color: #056c4b; background: linear-gradient(135deg, #0aa46f 0%, #066f4e 100%); transform: translateY(-1px); box-shadow: 0 11px 24px rgba(9,139,99,.3); }
.influence-person-actions { display: flex; gap: 10px; }
.influence-person-actions .influence-submit-person { flex: 1 1 auto; }
.influence-delete-person { min-width: 140px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid #d83948; border-radius: 10px; color: #fff !important; background: linear-gradient(135deg, #ef5562 0%, #c82f3e 100%); box-shadow: 0 8px 18px rgba(207,48,63,.2); font-size: 11px; font-weight: 850; cursor: pointer; }
.influence-delete-person b { color: #fff !important; }
.influence-delete-person span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; background: rgba(255,255,255,.18); font-size: 17px; }
.influence-delete-person:hover { color: #fff !important; border-color: #ad2230; background: linear-gradient(135deg, #df4351 0%, #ad2230 100%); box-shadow: 0 10px 22px rgba(207,48,63,.28); transform: translateY(-1px); }
.influence-delete-person:hover b { color: #fff !important; }
.influence-person-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.influence-person-fields label { min-width: 0; display: grid; gap: 6px; }
.influence-person-fields label.wide { grid-column: span 2; }
.influence-person-fields span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.influence-person-fields input, .influence-person-fields select { width: 100%; min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); font-size: 13px; }
.influence-comment-field { grid-column: 1 / -1; }
.influence-comment-field textarea { width: 100%; min-width: 0; min-height: 105px; padding: 13px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); font: inherit; font-size: 13px; line-height: 1.5; }
.influence-comment-field textarea:focus { border-color: #75bf9f; outline: 0; box-shadow: 0 0 0 3px rgba(9,139,99,.09); }
.influence-fixed-geo { min-height: 42px; padding: 0 14px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 15px; }
.influence-search-table { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.influence-search-table .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; }
.influence-search-table table { width: 100%; min-width: 1120px; table-layout: fixed; }
.influence-search-table th,
.influence-search-table td { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.influence-search-table td:nth-child(10) { overflow: visible; }
.influence-search-data-table .col-date { width: 105px; }
.influence-search-data-table .col-status { width: 115px; }
.influence-search-data-table .col-name { width: 175px; }
.influence-search-data-table .col-link { width: 185px; }
.influence-search-data-table .col-email { width: 155px; }
.influence-search-data-table .col-contact { width: 145px; }
.influence-search-data-table .col-manager { width: 125px; }
.influence-search-data-table .col-creator { width: 125px; }
.influence-search-data-table .col-comment { width: 250px; }
.influence-search-data-table .col-action { width: 125px; }
.influence-search-filters { width: 100%; max-width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(135px, 1fr)) minmax(135px, auto); gap: 10px; align-items: end; padding: 16px 20px; overflow: hidden; }
.influence-search-filters label { min-width: 0; display: grid; gap: 6px; }
.influence-search-filters label > span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.influence-search-filters input, .influence-search-filters select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel); font-size: 10px; font-weight: 750; outline: none; }
.influence-search-filters input:focus, .influence-search-filters select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,179,107,.1); }
.influence-search-filters .reset-filters { height: 42px; margin: 0; white-space: nowrap; }
.influence-creator-chip { display: inline-flex; max-width: 100%; padding: 5px 8px; overflow: hidden; border: 1px solid #cfd9f4; border-radius: 7px; color: #315fd6; background: #f3f6ff; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .influence-search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .influence-search-filters .reset-filters { width: 100%; } }
.influence-link-cell { position: relative; padding-right: 42px !important; }
.influence-link-cell > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.influence-link-cell > a { position: absolute; top: 50%; right: 10px; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #b9c8ef; border-radius: 7px; color: #315fd6; background: #f4f7ff; font-size: 14px; font-weight: 900; text-decoration: none; transform: translateY(-50%); transition: .16s ease; }
.influence-link-cell > a:hover { color: #fff; border-color: #315fd6; background: #315fd6; box-shadow: 0 5px 12px rgba(49,95,214,.22); }
.influence-status { max-width: 100%; display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; overflow: hidden; color: #596274; background: #eef1f5; font-size: 9px; font-weight: 850; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.influence-status-new { color: #2862c7; border-color: #c9dafd; background: #edf4ff; }
.influence-status-silent, .influence-status-pending { color: #a26306; border-color: #f5d99d; background: #fff6df; }
.influence-status-interested, .influence-status-paid { color: #7650c7; border-color: #ddcffb; background: #f5f0ff; }
.influence-status-ready, .influence-status-confirmed { color: #087a53; border-color: #b8ead7; background: #e8f8f1; }
.influence-status-price { color: #b25b12; border-color: #f4c9a7; background: #fff0e4; }
.influence-status-rejected, .influence-status-cancelled { color: #be3341; border-color: #f0c1c6; background: #ffedf0; }
.influence-status-neutral { color: #687183; border-color: #dce1e8; background: #f2f4f7; }
.influence-payments { width: 100%; max-width: 100%; min-width: 0; display: grid; gap: 18px; overflow: hidden; }
.influence-payments[hidden] { display: none; }
.influence-payments > * { width: 100%; max-width: 100%; min-width: 0; }
.influence-payments-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; overflow: hidden; }
.influence-payments-head > div { min-width: 0; }
.influence-payments-head .influence-add-person { flex: 0 0 auto; }
.influence-payment-kpis { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.influence-payment-kpis article { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 28px rgba(24,31,44,.045); }
.influence-payment-kpis small, .influence-payment-kpis span { display: block; color: var(--muted); font-size: 9px; }
.influence-payment-kpis strong { display: block; margin: 14px 0 7px; font-size: 22px; }
.influence-payment-filters { width: 100%; max-width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(145px, 1fr)); gap: 10px; align-items: end; padding: 16px 20px; overflow: hidden; }
.influence-payment-filters label { min-width: 0; display: grid; gap: 6px; }
.influence-payment-filters label > span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.influence-payment-filters input, .influence-payment-filters select { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel); font-size: 10px; font-weight: 750; outline: none; }
.influence-payment-filters input:focus, .influence-payment-filters select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,179,107,.1); }
.influence-payment-filters .reset-filters { width: 100%; height: 42px; margin: 0; }
.influence-payments-table { width: 100%; max-width: 100%; min-width: 0; padding: 22px; overflow: hidden; }
.influence-payments-table .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; }
.influence-payments-table table { min-width: 1240px; table-layout: fixed; }
.influence-payments-table th:nth-child(1) { width: 90px; }
.influence-payments-table th:nth-child(2) { width: 170px; }
.influence-payments-table th:nth-child(3) { width: 70px; }
.influence-payments-table th:nth-child(4) { width: 130px; }
.influence-payments-table th:nth-child(5) { width: 160px; }
.influence-payments-table th:nth-child(6) { width: 120px; }
.influence-payments-table th:nth-child(7) { width: 180px; }
.influence-payments-table th:nth-child(8) { width: 120px; }
.influence-payments-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.influence-payment-hash { position: relative; padding-right: 42px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.influence-payment-hash > a { position: absolute; top: 50%; right: 10px; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #b9c8ef; border-radius: 7px; color: #315fd6; background: #f4f7ff; text-decoration: none; transform: translateY(-50%); }
.influence-payment-hash > a:hover { color: #fff; border-color: #315fd6; background: #315fd6; }
@media (max-width: 1100px) { .influence-payment-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .influence-payment-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .influence-payments-head { align-items: flex-start; flex-direction: column; } }
.influence-edit-person { padding: 7px 11px; border: 1px solid #c9d6f7; border-radius: 8px; color: #315fd6; background: #f4f7ff; font-size: 9px; font-weight: 850; cursor: pointer; }
.influence-edit-person:hover { color: #fff; border-color: #315fd6; background: #315fd6; }
.influence-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.influence-kpis article { position: relative; min-height: 126px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 30px rgba(24, 31, 44, .045); }
.influence-kpis article > i { position: absolute; top: 16px; right: 16px; min-width: 28px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 10px; font-style: normal; font-weight: 900; }
.influence-kpis small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.influence-kpis strong { display: block; margin-top: 18px; font-size: 22px; letter-spacing: -.035em; }
.influence-kpis span { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.influence-insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.influence-ranking { min-height: 300px; }
.influence-rank-row { padding: 13px 0; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.influence-rank-row:last-child { border-bottom: 0; }
.influence-rank-row > span { color: #9aa3b2; font-size: 11px; font-weight: 800; }
.influence-rank-row b, .influence-rank-row small { display: block; }
.influence-rank-row b { font-size: 12px; }
.influence-rank-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.influence-rank-row strong { padding: 7px 9px; border-radius: 8px; color: #07844c; background: #e2f7ed; font-size: 12px; }
.influence-risk .influence-rank-row strong { color: #c83d47; background: #ffebed; }
.influence-chart-panel, .influence-table-panel { padding: 22px; margin-bottom: 18px; }
.influence-people-panel { padding: 22px; margin-bottom: 18px; overflow: hidden; }
.influence-people-count { padding: 7px 11px; border-radius: 999px; color: #087d4a; background: var(--green-soft); font-size: 11px; font-weight: 900; white-space: nowrap; }
.influence-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.influence-person-card { position: relative; display: grid; gap: 15px; min-width: 0; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: linear-gradient(145deg, var(--panel) 55%, var(--green-soft)); box-shadow: 0 12px 28px rgba(24,31,44,.06); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.influence-person-card:hover { z-index: 1; border-color: rgba(22,179,107,.45); box-shadow: 0 18px 38px rgba(24,31,44,.11); transform: translateY(-3px); }
.influence-person-rank { position: absolute; top: 15px; right: 15px; color: #9aa3af; font-size: 10px; font-weight: 900; }
.influence-person-head { display: flex; align-items: center; gap: 11px; padding-right: 35px; }
.influence-person-head > i { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #16b36b, #24b9c7); box-shadow: 0 8px 18px rgba(22,179,107,.22); font-size: 13px; font-style: normal; font-weight: 950; }
.influence-person-head b, .influence-person-head small { display: block; }
.influence-person-head b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.influence-person-head small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 750; }
.influence-person-head small em { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #16b36b; box-shadow: 0 0 0 3px rgba(22,179,107,.12); }
.influence-person-owner { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.64); }
.influence-person-owner small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.influence-person-owner b { font-size: 11px; }
.influence-person-owner i { padding: 3px 7px; border-radius: 999px; color: #087d4a; background: var(--green-soft); font-size: 9px; font-style: normal; font-weight: 900; }
.influence-person-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.influence-person-tags i { padding: 5px 7px; border-radius: 7px; color: #536071; background: #edf1f5; font-size: 8px; font-style: normal; font-weight: 900; }
.influence-person-tags i.project { color: #6d4bc3; background: #f0ebff; }
.influence-person-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.influence-person-metrics > span { min-width: 0; padding: 9px; border: 1px solid rgba(128,140,158,.12); border-radius: 10px; background: rgba(255,255,255,.72); }
.influence-person-metrics small, .influence-person-metrics b { display: block; }
.influence-person-metrics small { overflow: hidden; color: var(--muted); font-size: 7px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.influence-person-metrics b { margin-top: 5px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.influence-person-share { display: grid; gap: 7px; }
.influence-person-share > span { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.influence-person-share > span b { color: #087d4a; }
.influence-person-share > i { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(116,130,151,.14); }
.influence-person-share > i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16b36b, #24b9c7); }
.influence-blogger-crm { display: grid; gap: 18px; }
.influence-blogger-crm[hidden] { display: none; }
.influence-crm-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.influence-crm-filters { display: grid; grid-template-columns: minmax(280px, 1.55fr) repeat(4, minmax(150px, .72fr)) auto; gap: 14px; align-items: end; padding: 20px; border: 1px solid rgba(130,145,165,.16); background: linear-gradient(135deg, #fff 55%, #f1fbf7); box-shadow: 0 14px 38px rgba(34,45,61,.07); }
.influence-crm-filters label { display: grid; gap: 8px; color: #758092; font-size: 9px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.influence-crm-filters input, .influence-crm-filters select { width: 100%; min-height: 46px; padding-inline: 13px; border: 1px solid #dce3ea; border-radius: 12px; color: #202938; background-color: rgba(255,255,255,.94); box-shadow: 0 3px 10px rgba(29,39,54,.035); font-weight: 750; transition: border-color .16s ease, box-shadow .16s ease; }
.influence-crm-filters input:focus, .influence-crm-filters select:focus { border-color: #19aa73; outline: 0; box-shadow: 0 0 0 4px rgba(22,179,107,.1); }
.influence-crm-filters .reset-filters { min-height: 46px; padding-inline: 18px; border-color: #f0cf9a; border-radius: 12px; color: #9a5b08; background: #fff7e8; }
.influence-crm-table { padding: 22px; }
.influence-crm-table table { min-width: 1500px; }
.influence-crm-table td { max-width: 260px; }
.influence-crm-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 18px; }
.influence-crm-pagination:empty { display: none; }
.influence-crm-pagination span { color: var(--muted); font-size: 11px; font-weight: 750; }
.influence-crm-pagination span b { color: var(--ink); }
.influence-crm-pagination button { width: 42px; height: 38px; border: 1px solid #d9e1e8; border-radius: 11px; color: #087d55; background: #fff; box-shadow: 0 4px 12px rgba(25,36,50,.06); font-size: 17px; font-weight: 900; cursor: pointer; }
.influence-crm-pagination button:hover:not(:disabled) { border-color: #82d4ae; background: #eaf8f2; transform: translateY(-1px); }
.influence-crm-pagination button:disabled { opacity: .38; cursor: default; }
.influence-crm-table a { color: var(--ink); text-decoration: none; }
.influence-crm-table a:hover { color: var(--green); text-decoration: underline; }
.influence-crm-comment { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.influence-crm-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.influence-crm-status.approved { color: #07844c; background: #e2f7ed; }
.influence-crm-status.hold { color: #a46609; background: #fff2d8; }
.influence-crm-status.cancelled { color: #c83d47; background: #ffebed; }
.influence-crm-status.empty { color: #687080; background: #edf1f5; }
.influence-crm-dialog { width: min(1040px, calc(100vw - 32px)); max-width: 1040px; max-height: min(900px, calc(100vh - 36px)); padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: #f5f7fa; box-shadow: 0 34px 90px rgba(20,28,42,.3); }
.influence-crm-dialog::backdrop { background: rgba(24,31,43,.56); backdrop-filter: blur(5px); }
.influence-crm-dialog form { max-height: min(900px, calc(100vh - 36px)); overflow: auto; scrollbar-width: thin; }
html:has(body.influence-modal-open), body.influence-modal-open { overflow: hidden; overscroll-behavior: none; }
body.influence-modal-open .influence-crm-dialog form { overscroll-behavior: contain; }
.influence-crm-dialog .dialog-close { z-index: 4; top: 20px; right: 20px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #dde3ea; border-radius: 11px; color: #778191; background: rgba(255,255,255,.9); font-size: 22px; line-height: 1; box-shadow: 0 5px 15px rgba(22,30,43,.07); }
.influence-crm-dialog .dialog-close:hover { color: #c93646; border-color: #f0bdc2; background: #fff2f3; }
.influence-crm-modal-head { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 116px; padding: 24px 78px 24px 28px; overflow: hidden; color: #17202d; background: linear-gradient(125deg, #fff 45%, #e9f9f1); border-bottom: 1px solid #e1e7ed; }
.influence-crm-modal-head::after { content: ''; position: absolute; right: 70px; bottom: -68px; width: 210px; height: 140px; border: 30px solid rgba(20,177,107,.055); border-radius: 50%; pointer-events: none; }
.influence-crm-avatar { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #12b77a, #07885f); box-shadow: 0 12px 24px rgba(8,145,98,.24); font-size: 16px; font-weight: 950; }
.influence-crm-modal-head h2 { margin: 4px 0 3px; color: #18202c; font-size: 23px; letter-spacing: -.035em; }
.influence-crm-modal-head p:last-child { margin: 0; color: #7a8493; font-size: 10px; }
.influence-crm-sync-badge { position: relative; z-index: 1; padding: 7px 10px; border: 1px solid #bfe8d4; border-radius: 999px; color: #08794f; background: rgba(255,255,255,.78); font-size: 9px; font-weight: 900; white-space: nowrap; }
.influence-crm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 24px 28px 28px; margin: 0; }
.influence-crm-fields label { min-width: 0; display: grid; gap: 7px; color: #727d8d; font-size: 9px; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.influence-crm-fields label.wide { grid-column: 1 / -1; }
.influence-crm-fields label.span-two { grid-column: span 2; }
.influence-crm-fields input, .influence-crm-fields select, .influence-crm-fields textarea { width: 100%; min-width: 0; border: 1px solid #dce3ea; border-radius: 11px; color: #1b2431; background: #fff; box-shadow: 0 2px 7px rgba(28,38,54,.025); font: inherit; font-size: 12px; font-weight: 720; outline: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.influence-crm-fields input, .influence-crm-fields select { min-height: 44px; padding: 0 12px; }
.influence-crm-fields textarea { min-height: 86px; padding: 12px; resize: vertical; line-height: 1.5; }
.influence-crm-fields input:hover, .influence-crm-fields select:hover, .influence-crm-fields textarea:hover { border-color: #c7d1dc; }
.influence-crm-fields input[readonly] { color: #087d55; border-color: #c8e8d9; background: #eef9f4; cursor: default; }
.influence-crm-fields input:focus, .influence-crm-fields select:focus, .influence-crm-fields textarea:focus { border-color: #20ad78; background: #fff; box-shadow: 0 0 0 4px rgba(20,177,107,.1); }
.influence-crm-section-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 0 0 9px; border-bottom: 1px solid #e1e6ec; color: #26313f; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.influence-crm-section-title:first-child { margin-top: 0; }
.influence-crm-section-title i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #088357; background: #e3f7ee; font-size: 8px; font-style: normal; }
.influence-crm-modal-actions { position: sticky; z-index: 3; bottom: 0; display: flex; gap: 11px; padding: 16px 28px 20px; border-top: 1px solid #dfe5eb; background: rgba(255,255,255,.94); box-shadow: 0 -12px 30px rgba(25,34,48,.065); backdrop-filter: blur(12px); }
.influence-crm-modal-actions .influence-submit-person { flex: 1 1 auto; min-height: 48px; border-radius: 12px; }
.influence-crm-modal-actions .influence-delete-person { min-height: 48px; border-radius: 12px; }
.influence-bars { display: grid; gap: 13px; margin-top: 20px; }
.influence-bar-row { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 100px; gap: 12px; align-items: center; font-size: 11px; }
.influence-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.influence-bar-row > div { height: 9px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.influence-bar-row i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #16b36b, #2f86de); }
.influence-bar-row strong { text-align: right; font-size: 11px; }
.influence-table-panel table { min-width: 760px; }
.influence-hero { min-height: 0; padding: 0; border: 0; border-radius: 0; color: inherit; background: transparent; box-shadow: none; }
.influence-hero .eyebrow { color: #8b91a0; }
.influence-hero .subtitle { color: var(--muted); }
.influence-placeholder-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 14px; }
.influence-placeholder-card { min-height: 145px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }
.influence-placeholder-card small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.influence-placeholder-card strong { display: block; margin-top: 11px; font-size: 17px; }
.influence-placeholder-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.influence-placeholder-main { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; }
.influence-placeholder-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #654bd0, #18a989); box-shadow: 0 12px 28px #4d5ac83d; font-size: 24px; font-weight: 900; }
.influence-roadmap-note { padding: 18px 22px; display: flex; gap: 16px; align-items: center; border: 1px dashed #6581a5; border-radius: 13px; background: #6d79a70c; }
.influence-roadmap-note b { color: #27ae78; white-space: nowrap; }
.influence-roadmap-note span { color: var(--muted); font-size: 12px; }
body.theme-light:not(.locked) .direction-switcher { border-color: #d4dce8; background: #edf2f8; }
body.theme-light:not(.locked) .direction-switcher button { color: #697486; }
body.theme-light:not(.locked) .direction-switcher button.active { color: #fff; }
@media (max-width: 1450px) { .influence-kpis { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1250px) { .influence-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .influence-placeholder-grid, .influence-insight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1200px) { .influence-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .influence-crm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .influence-crm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .direction-switcher { width: 260px; } .influence-placeholder-grid, .influence-insight-grid, .influence-kpis, .influence-people-grid, .influence-crm-filters, .influence-crm-fields { grid-template-columns: 1fr; } .influence-hero { min-height: 0; } .influence-bar-row { grid-template-columns: 90px 1fr 82px; } .influence-person-card { padding: 15px; } .influence-crm-head { align-items: stretch; flex-direction: column; } .influence-crm-fields label.wide, .influence-crm-fields label.span-two { grid-column: auto; } .influence-crm-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 18px; } .influence-crm-dialog form { max-height: calc(100vh - 16px); } .influence-crm-modal-head { grid-template-columns: 48px minmax(0,1fr); min-height: 96px; padding: 18px 58px 18px 18px; } .influence-crm-avatar { width: 48px; height: 48px; border-radius: 14px; } .influence-crm-sync-badge { display: none; } .influence-crm-fields { padding: 18px; } .influence-crm-modal-actions { padding: 12px 18px 16px; } }
@media (max-width: 900px) { .influence-search-head { align-items: stretch; flex-direction: column; } .influence-person-fields { grid-template-columns: 1fr 1fr; } .influence-person-fields label.wide { grid-column: span 2; } }
main { min-width: 0; margin-left: 232px; padding: 32px 36px 50px; max-width: 1680px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar[hidden] { display: none; }
.eyebrow { color: #8b91a0; font-size: 10px; font-weight: 800; letter-spacing: .13em; margin: 0 0 7px; }
.eyebrow.green { color: var(--green); } .eyebrow.red { color: var(--red); }
h1 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.subtitle { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.upload-button, .icon-button { cursor: pointer; border: 1px solid var(--line); background: white; border-radius: 9px; height: 40px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 12px; font-weight: 700; }
.upload-button:hover, .icon-button:hover { border-color: #b9c0cc; }
.icon-button { width: 40px; justify-content: center; font-size: 17px; padding: 0; }
.export-data-button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid #5b63ee; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #6558e8, #347fe7); cursor: pointer; box-shadow: 0 8px 22px rgba(67, 86, 220, .22); font-size: 10px; font-weight: 950; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.export-data-button::before { content: '↓'; width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 6px; color: #fff; background: rgba(255, 255, 255, .16); font-size: 14px; line-height: 1; }
.export-data-button:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(67, 86, 220, .3); }
.export-data-button:disabled { opacity: .62; cursor: wait; transform: none; }
.export-data-button[hidden], .avatar[hidden] { display: none !important; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: white; background: #293242; font-size: 12px; font-weight: 700; }
.filters { display: flex; gap: 11px; margin: 28px 0 18px; flex-wrap: wrap; }
.filters[hidden], .freshness-banner[hidden] { display: none; }
.filters label { position: relative; }
.filters label > span { position: absolute; z-index: 1; left: 12px; top: 7px; font-size: 8px; font-weight: 800; color: #9298a4; text-transform: uppercase; letter-spacing: .08em; }
.filters select, .filters input { appearance: none; min-width: 145px; height: 48px; padding: 19px 12px 7px; border-radius: 9px; border: 1px solid var(--line); background: white; color: #303641; font-size: 12px; font-weight: 600; }
.filters input { min-width: 140px; }
.reset-filters { min-height: 48px; padding: 0 15px; border: 1px solid #d9dde4; border-radius: 9px; color: #4f5866; background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.reset-filters:hover { color: #fff; border-color: var(--navy); background: var(--navy); }
.freshness-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 13px; padding: 14px 17px; border: 1px solid #ccebdc; border-radius: 11px; background: #effaf5; }
.freshness-main, .freshness-side { display: flex; align-items: center; gap: 11px; }
.freshness-side { align-items: flex-end; flex-direction: column; gap: 3px; text-align: right; }
.freshness-banner strong { font-size: 11px; } .freshness-banner span { display: block; margin-top: 3px; color: #667080; font-size: 10px; }
.freshness-icon { color: var(--green) !important; font-size: 12px !important; }
.freshness-action { min-height: 30px; padding: 0 12px; border: 1px solid #b9ddcb; border-radius: 8px; color: #087c4a; background: #fff; cursor: pointer; font-size: 9px; font-weight: 900; }
.freshness-action:hover { border-color: var(--green); box-shadow: 0 8px 18px #1dbf7315; }
.freshness-action.cancel { color: #c93d3d; border-color: #efb4b4; background: #fff5f5; }
.freshness-action.cancel:hover { color: #fff; border-color: #d94a4a; background: #d94a4a; box-shadow: 0 8px 18px rgba(217, 74, 74, .18); }
.freshness-banner.waiting, .freshness-banner.weekend { border-color: #f0d9a8; background: #fff9ec; }
.freshness-banner.waiting .freshness-icon, .freshness-banner.weekend .freshness-icon { color: var(--orange) !important; }
.freshness-banner.stale { border-color: #f2caca; background: var(--red-soft); } .freshness-banner.stale .freshness-icon { color: var(--red) !important; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.kpi-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.kpi-card-action { cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.kpi-card-action:hover, .kpi-card-action:focus-visible { border-color: rgba(95, 255, 126, .62); box-shadow: 0 14px 34px rgba(28, 255, 112, .09); outline: none; transform: translateY(-2px); }
.kpi-card-action .kpi-foot { color: var(--muted); }
.kpi-open-hint { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 9px; font-weight: 800; transition: color .18s ease; }
.kpi-open-hint b { font-size: 15px; line-height: .7; transition: transform .18s ease; }
.kpi-card-action:hover .kpi-open-hint, .kpi-card-action:focus-visible .kpi-open-hint { color: #87d894; }
.kpi-card-action:hover .kpi-open-hint b, .kpi-card-action:focus-visible .kpi-open-hint b { transform: translateX(4px); }
.launch-overview-table { min-width: 920px; }
.launch-search-heading { align-items: flex-end; gap: 18px; }
.launch-overview-search { width: min(520px, 52%); max-width: none; }
.launch-overview-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 760px; }
.launch-overview-controls select { min-width: 190px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font-size: 10px; font-weight: 800; }
.launch-overview-controls .launch-overview-search { width: min(360px, 100%); max-width: none; }
.campaign-activity-table { min-width: 820px; }
.campaign-activity-table .detail-bar { width: 150px; }
.previous-launch-section { padding: 16px; border: 1px solid rgba(95, 255, 126, .15); border-radius: 12px; background: rgba(70, 255, 120, .025); }
.previous-launch-section #previousLaunchBuyerFilter { min-width: 220px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font-size: 10px; font-weight: 800; }
.previous-launch-kpis { margin: 14px 0 12px; }
.previous-launch-details { border-top: 1px solid var(--line); }
.previous-launch-details summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 2px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.previous-launch-details summary span { padding: 4px 8px; border-radius: 999px; color: var(--ink); background: var(--green-soft); }
.previous-launch-table { min-width: 980px; margin-top: 12px; }
.kpi-title { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 600; }
.kpi-icon { color: var(--green); background: var(--green-soft); border-radius: 7px; width: 25px; height: 25px; display: grid; place-items: center; }
.kpi-value { margin-top: 11px; font-size: 23px; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-foot { margin-top: 7px; color: #979ca7; font-size: 10px; }
.trend-up { color: var(--green); font-weight: 700; } .trend-down { color: var(--red); font-weight: 700; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.legend { color: var(--muted); font-size: 9px; display: flex; gap: 7px; align-items: center; }
.legend span { width: 7px; height: 7px; border-radius: 50%; } .spend-key { background: #4f7cff; } .deposit-key { background: #f5a43b; margin-left: 7px; }
.chart { height: 420px; margin-top: 8px; position: relative; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-label { fill: #7f8795; font: 10px Inter; font-weight: 800; }
.chart-axis { fill: #969daa; font: 8px Inter; font-weight: 800; }
.chart-bar-group { cursor: pointer; outline: none; }
.chart-bar-group:focus-visible .chart-bar { opacity: .78; filter: drop-shadow(0 0 4px rgba(79, 124, 255, .55)); }
.chart-week-separator { stroke: #c8ced8; stroke-width: 1.4; stroke-dasharray: 4 4; }
.chart-week-band { stroke: #d7dce4; stroke-width: 1; }
.chart-week-label { fill: #687284; font: 8px Inter; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.chart-bar { transition: opacity .14s ease, transform .14s ease; transform-box: fill-box; transform-origin: bottom; }
.chart-bar-spend { fill: #4f7cff; }
.chart-bar-deposits { fill: #f5a43b; }
.chart-bar-group:hover .chart-bar { opacity: .78; transform: scaleY(1.035); }
.chart-missing-point { fill: #fff; stroke: #cfd5dd; stroke-width: 1.5; stroke-dasharray: 2 2; }
.chart-tooltip { position: absolute; z-index: 3; min-width: 150px; padding: 10px 11px; border: 1px solid #dfe3e9; border-radius: 9px; color: var(--ink); background: white; box-shadow: 0 12px 32px #15202d22; pointer-events: none; transform: translate(-50%, -115%); }
.chart-tooltip strong, .chart-tooltip span { display: block; font-size: 10px; } .chart-tooltip span { margin-top: 5px; color: var(--muted); }
.chart-actions { display: flex; gap: 13px; align-items: center; }
.chart-actions select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #545b68; font-size: 9px; font-weight: 700; }
.score-panel { display: flex; flex-direction: column; }
.help { border: 1px solid var(--line); background: white; color: var(--muted); width: 25px; height: 25px; border-radius: 50%; cursor: pointer; }
.score-gauge { flex: 1; min-height: 165px; display: grid; place-items: center; position: relative; }
.score-gauge svg { width: 175px; max-width: 100%; }
.gauge-number { position: absolute; top: 60%; transform: translateY(-50%); font-size: 34px; font-weight: 800; }
.gauge-number small { display: block; text-align: center; color: var(--muted); font-size: 9px; font-weight: 600; margin-top: 3px; }
.score-summary { margin: 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.55; }
.rankings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; margin-top: 13px; }
.campaign-rankings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.campaign-rankings .campaign-row { grid-template-columns: 23px minmax(92px, 1fr) minmax(72px, .65fr) minmax(70px, .58fr) minmax(38px, auto) 31px; gap: 6px; }
.campaign-rankings .ranking-panel { min-width: 0; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.insight-list { margin-top: 12px; }
.insight-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f1f4; }
.insight-row > div { min-width: 0; }
.insight-row .view-button { margin-left: auto; }
.insight-row strong, .insight-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-row strong { font-size: 11px; } .insight-row small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.signal { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 800; }
.signal.good { color: #07824b; background: var(--green-soft); } .signal.bad { color: #c93d3d; background: var(--red-soft); }
.more-button { display: block; width: 100%; margin-top: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: #616977; background: #fafbfc; cursor: pointer; font-size: 10px; font-weight: 700; }
.more-button:hover { color: var(--ink); border-color: #cbd0d8; } .more-button[hidden] { display: none; }
.pill { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 800; } .pill.good { color: #07824b; background: var(--green-soft); } .pill.bad { color: #c93d3d; background: var(--red-soft); }
.campaign-list { min-width: 0; margin-top: 14px; padding: 0 4px 2px; overflow-x: clip; }
.ranking-context { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.dashboard-leader-list { min-width: 0; margin-top: 14px; }
.dashboard-leader-row { width: 100%; min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1.35fr) minmax(70px, .56fr) minmax(76px, .62fr) 58px 31px; gap: 8px; align-items: center; padding: 11px 0; border: 0; border-top: 1px solid #f0f1f4; color: var(--ink); background: transparent; text-align: left; cursor: default; }
.dashboard-leader-row > * { min-width: 0; }
.dashboard-leader-name strong, .dashboard-leader-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-leader-name strong { font-size: 10px; }
.dashboard-leader-name small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.dashboard-leader-roas { justify-self: end; min-width: 52px; padding: 5px 7px; border-radius: 7px; color: #07824b; background: var(--green-soft); text-align: center; font-size: 10px; font-weight: 850; }
.dashboard-leader-roas small { display: block; margin-bottom: 2px; font-size: 7px; font-weight: 650; }
.dashboard-leader-open { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #5f6876; background: white; cursor: pointer; font-size: 12px; }
.dashboard-leader-open:hover, .dashboard-leader-open:focus-visible { color: white; border-color: var(--green); background: var(--green); outline: none; }
.dashboard-leader-empty { padding: 14px 0 4px; }
.campaign-row { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(58px, .52fr) minmax(58px, .52fr) minmax(42px, auto) 34px; gap: 8px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f1f4; font-size: 11px; }
.campaign-row > * { min-width: 0; }
.ranking-performance { width: fit-content; padding: 5px 8px; border-radius: 7px; font-weight: 900; }
.ranking-performance.good { color: #07824b; background: var(--green-soft); }
.ranking-performance.mid { color: #a56611; background: #fff5df; }
.ranking-performance.bad { color: #d44343; background: var(--red-soft); }
.rank { color: #a1a6b0; font-size: 10px; }
.campaign-name { min-width: 0; } .campaign-name strong, .campaign-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.campaign-name small { color: var(--muted); margin-top: 3px; font-size: 9px; }
.metric { min-width: 0; overflow: hidden; text-align: right; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .metric small { display: block; overflow: hidden; color: var(--muted); font-weight: 500; font-size: 8px; margin-bottom: 3px; text-overflow: ellipsis; white-space: nowrap; }
.score-badge { justify-self: end; display: inline-block; min-width: 44px; padding: 5px 7px; border-radius: 7px; text-align: center; font-size: 10px; font-weight: 800; white-space: nowrap; }
.score-badge.good { color: #07824b; background: var(--green-soft); } .score-badge.bad { color: #d44343; background: var(--red-soft); } .score-badge.mid { color: #a56611; background: #fff5df; }
.view-button { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #5f6876; background: white; cursor: pointer; font-size: 12px; }
.view-button:hover { color: white; border-color: var(--green); background: var(--green); }
.table-panel { margin-top: 13px; padding-bottom: 8px; }
.table-heading { align-items: center; }
.table-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.table-heading-actions > .subtitle { max-width: 560px; text-align: right; }
.table-expand-button { width: 40px; height: 40px; flex: 0 0 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--green) 32%, var(--line)); border-radius: 12px; color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--panel)); box-shadow: 0 8px 22px color-mix(in srgb, var(--green) 13%, transparent), inset 0 1px rgba(255,255,255,.08); cursor: pointer; transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease; }
.table-expand-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.table-expand-button:hover { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 11px 26px color-mix(in srgb, var(--green) 28%, transparent); transform: translateY(-2px); }
.table-expand-button:active { transform: scale(.94); }
.table-expand-button b { color: inherit; font-size: 20px; font-weight: 500; line-height: 1; }
body.table-panel-is-expanded { overflow: hidden; }
body.table-panel-is-expanded::before { content: ''; position: fixed; inset: 0; z-index: 9998; background: #101722b8; backdrop-filter: blur(3px); }
.table-panel.table-panel-expanded { position: fixed; inset: 18px; z-index: 9999; display: flex; flex-direction: column; width: auto; max-width: none; height: auto; max-height: none; margin: 0; padding: 18px; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 100px #0008; }
.table-panel.table-panel-expanded .panel-heading { flex: 0 0 auto; }
.table-panel.table-panel-expanded .table-wrap { flex: 1 1 auto; max-height: none; min-height: 0; margin-bottom: 0; }
.table-panel.table-panel-expanded .table-expand-button { width: 44px; height: 44px; flex-basis: 44px; color: #fff; border-color: rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: none; }
.table-panel.table-panel-expanded .table-expand-button:hover { color: #fff; border-color: #ff606d; background: #ff5060; box-shadow: 0 10px 28px rgba(255,80,96,.3); transform: rotate(6deg) scale(1.05); }
.table-panel.table-panel-expanded .table-expand-button b { font-size: 28px; font-weight: 300; transform: translateY(-1px); }
.daily-update-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; text-align: right; }
.daily-update-controls label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.daily-update-controls input { width: 142px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #4f5866; background: #fff; outline: none; font-size: 10px; font-weight: 800; }
.daily-update-controls input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.search { width: 280px; max-width: 45%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; outline: none; }
.search:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.table-wrap { overflow: auto; margin-top: 14px; scrollbar-gutter: stable; }
.table-panel .table-wrap { max-height: calc(100vh - 270px); }
.campaign-dialog .table-wrap, .creative-dialog .table-wrap { max-height: 58vh; }
table { border-collapse: collapse; width: 100%; min-width: 880px; font-size: 10px; }
#projectSummary table { min-width: 1660px; }
#dailyUpdates table { min-width: 1640px; }
#dailyUpdateFooter td,
#projectSummaryFooter td,
#campaignFooter td { position: sticky; bottom: 0; z-index: 2; padding-top: 12px; padding-bottom: 12px; border-top: 2px solid #aeb9c6; border-bottom: 0; color: var(--ink); background: color-mix(in srgb, var(--panel) 96%, #20252d 4%); box-shadow: 0 -7px 18px rgba(21,35,49,.06); }
#dailyUpdateFooter td:first-child,
#projectSummaryFooter td:first-child,
#campaignFooter td:first-child { text-align: right; }
#dailyUpdateFooter strong,
#projectSummaryFooter strong,
#campaignFooter strong { display: block; color: var(--ink); font-size: 11px; font-weight: 900; }
#dailyUpdateFooter small,
#projectSummaryFooter small,
#campaignFooter small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; }
#dailyUpdateFooter td:nth-child(2) strong,
#dailyUpdateFooter td:nth-child(3) strong,
#projectSummaryFooter td:nth-child(2) strong,
#projectSummaryFooter td:nth-child(3) strong,
#campaignFooter td:nth-child(2) strong,
#campaignFooter td:nth-child(3) strong,
#campaignFooter td:nth-child(4) strong { color: var(--ink); font-size: 12px; }
#projectSummary th:first-child,
#projectSummary td:first-child,
#projectSummary th:last-child,
#projectSummary td:last-child { min-width: 72px; text-align: center; }
th { color: #9298a3; text-align: left; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table-wrap th { position: sticky; top: 0; z-index: 3; background: var(--panel); box-shadow: 0 1px 0 var(--line); }
.table-wrap th { cursor: pointer; user-select: none; }
.table-wrap th.generic-sort-active { color: var(--ink); }
.table-wrap th.generic-sort-active[data-sort-dir="desc"]::after { content: ' ↓'; color: var(--green); }
.table-wrap th.generic-sort-active[data-sort-dir="asc"]::after { content: ' ↑'; color: var(--green); }
.sort-button, .project-sort-button, .daily-update-sort-button { border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; text-align: left; }
.sort-button.active, .project-sort-button.active, .daily-update-sort-button.active { color: var(--ink); }
.sort-button.active::after, .project-sort-button.active::after, .daily-update-sort-button.active::after { content: ' ↓'; color: var(--green); }
.sort-button.active.asc::after, .project-sort-button.active.asc::after, .daily-update-sort-button.active.asc::after { content: ' ↑'; }
td { padding: 11px 10px; border-bottom: 1px solid #f0f1f4; white-space: nowrap; }
td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) { font-variant-numeric: tabular-nums; }
.status { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.status.scaling { color: #087c4a; background: var(--green-soft); } .status.watch { color: #a56611; background: #fff5df; } .status.stop { color: #c33e3e; background: var(--red-soft); } .status.learning { color: #657080; background: #eef0f4; }
.toast { position: fixed; inset: auto 84px 25px auto; margin: 0; max-width: min(430px, calc(100vw - 120px)); padding: 13px 17px; color: white; background: #18212d; border: 1px solid #ffffff24; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 16px 42px #0006; z-index: 2147483647; }
.toast.show { opacity: 1; transform: none; }
dialog { border: 0; border-radius: 14px; padding: 25px; max-width: 440px; color: var(--ink); box-shadow: 0 30px 80px #0003; }
dialog::backdrop { background: #10172299; backdrop-filter: blur(2px); }
dialog p, dialog li { color: var(--muted); font-size: 12px; line-height: 1.6; } dialog li { margin: 7px 0; } .dialog-note { background: var(--bg); padding: 10px; border-radius: 8px; }
.dialog-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: #8d93a0; font-size: 22px; cursor: pointer; }
.buyers-view { margin-top: 13px; }
.buyer-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.buyer-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 13px; }
.buyer-card { position: relative; overflow: hidden; min-height: 172px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.buyer-card:first-child { color: white; border-color: #1a4435; background: linear-gradient(145deg, #16271f, #0e1714); }
.buyer-card:first-child .subtitle, .buyer-card:first-child .buyer-card-metrics small { color: #93a89f; }
.buyer-place { position: absolute; top: 14px; right: 17px; color: #aeb4bf; font-size: 28px; font-weight: 800; opacity: .45; }
.buyer-score { display: inline-flex; margin-top: 13px; padding: 6px 8px; border-radius: 7px; color: #07824b; background: var(--green-soft); font-size: 11px; font-weight: 800; }
.volume-badge { display: inline-flex; width: fit-content; margin-top: 8px; padding: 5px 8px; border-radius: 999px; color: #657080; background: #f0f2f5; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.buyer-card:first-child .volume-badge { color: #b9c6bf; background: #ffffff14; }
.buyer-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.buyer-card-metrics span { font-size: 11px; font-weight: 700; }
.buyer-card-metrics small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.buyer-table-panel { margin-top: 13px; }
.buyer-table { min-width: 860px; }
.open-buyer { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: #505866; background: white; cursor: pointer; font-size: 9px; font-weight: 700; }
.open-buyer:hover { color: #087c4a; border-color: #9ad7bd; background: var(--green-soft); }
.card-open { margin-top: 14px; }
.campaign-dialog { width: min(1480px, calc(100vw - 32px)); max-width: 1480px; max-height: calc(100vh - 40px); overflow: auto; padding: 27px; }
html:has(:is(#campaignDialog, #unityAnalyticsDetail)[open]),body:has(:is(#campaignDialog, #unityAnalyticsDetail)[open]) { overflow:hidden;overscroll-behavior:none; }
:is(#campaignDialog, #unityAnalyticsDetail),:is(#campaignDialog, #unityAnalyticsDetail) .table-wrap { overscroll-behavior:contain; }
.detail-head { padding-right: 35px; }
.detail-head-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.detail-badge { padding: 5px 7px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 8px; font-weight: 800; }
.detail-actions { display: flex; gap: 8px; margin-top: 15px; }
.detail-primary { padding: 9px 12px; border: 0; border-radius: 8px; color: white; background: var(--green); cursor: pointer; font-size: 10px; font-weight: 800; }
.detail-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 20px; }
.detail-kpi { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; }
.detail-kpi small { display: block; color: var(--muted); font-size: 8px; }
.detail-kpi strong { display: block; margin-top: 7px; font-size: 14px; }
.detail-kpi.metric-positive { border-color: #82d6ae; background: #ecfaf3; box-shadow: inset 0 0 0 1px #bcebd3; }
.detail-kpi.metric-positive small, .detail-kpi.metric-positive strong { color: #087c4a; }
.detail-kpi.metric-negative { border-color: #efaaaa; background: #fff0f0; box-shadow: inset 0 0 0 1px #f7cccc; }
.detail-kpi.metric-negative small, .detail-kpi.metric-negative strong { color: #c33e3e; }
.metric-positive-text { color: #087c4a; font-weight: 800; }
.metric-negative-text { color: #c33e3e; font-weight: 800; }
.detail-section { margin-top: 22px; }
.detail-daily { width: 100%; min-width: 600px; }
.campaign-daily-table { min-width: 1120px; }
.detail-bar { width: 110px; height: 5px; overflow: hidden; border-radius: 999px; background: #edf0f3; }
.detail-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
html.profit-hidden [data-profit-sensitive],html.profit-hidden .kpi-profit,html.profit-hidden .company-profit,html.profit-hidden .buyer-profit { display:none!important; }
html.profit-hidden :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
@media(max-width:1100px) { html.profit-hidden :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(2,minmax(0,1fr))!important; } }
body:not(.locked) .sidebar-display-tools #toggleProfitVisibility { display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #59406f;border-radius:8px;background:#241b31;color:#c6afea;cursor:pointer; }
#toggleProfitVisibility svg { width:19px;height:19px; }
body.theme-light:not(.locked) .sidebar-display-tools #toggleProfitVisibility { background:#f0e7f8;border-color:#d9c6eb;color:#795092; }
body:not(.locked) .sidebar-display-tools #toggleProfitVisibility[aria-pressed="true"] { background:#7842bd;border-color:#9968d9;color:#fff; }
body.theme-light .detail-bar { background:#eee6f5; }
body.theme-light .detail-bar span { background:#9254e8; }
.buyer-projects { min-width: 1180px; }
.docs-view { margin-top: 13px; }
.docs-hero { padding: 24px; }
.docs-access-summary { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.docs-access-summary span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); font-size: 10px; }
.docs-access-summary b { color: var(--ink); }
.docs-toc { display: flex; gap: 8px; margin-top: 13px; padding: 11px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); scrollbar-width: thin; }
.docs-toc a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--page); font-size: 9px; font-weight: 800; text-decoration: none; transition: .14s ease; }
.docs-toc a span, .docs-section-heading > span { display: inline-flex; align-items: center; justify-content: center; color: #087c4a; background: var(--green-soft); font-weight: 900; }
.docs-toc a span { width: 23px; height: 23px; border-radius: 6px; font-size: 8px; }
.docs-toc a:hover { color: #087c4a; border-color: #9ad7bd; transform: translateY(-1px); }
.docs-sections { display: grid; gap: 22px; margin-top: 22px; }
.docs-section { scroll-margin-top: 20px; }
.docs-section-heading { display: flex; align-items: center; gap: 12px; }
.docs-section-heading > span { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; font-size: 11px; }
.docs-section-heading h2 { margin-top: 2px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.docs-card h2 { margin-bottom: 13px; }
.docs-card p, .docs-card li { color: var(--muted); font-size: 11px; line-height: 1.7; }
.docs-card ol, .docs-card ul { margin: 0; padding-left: 19px; }
.creative-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.creative-data-note { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 9px; font-weight: 800; }
.creative-filter-panel { margin-top: 13px; padding: 13px; }
.creative-filters { display: grid; grid-template-columns: repeat(6, minmax(115px, 1fr)); gap: 8px; }
.creative-filters select, .creative-filters input { min-width: 0; width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #4f5866; background: #fff; outline: none; font-size: 10px; font-weight: 700; }
.creative-filters select:focus, .creative-filters input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.creative-filters .search { grid-column: span 2; max-width: none; }
.creative-filters .reset-filters { min-height: 40px; }
.company-filters { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 8px; }
.company-filters label { display: grid; gap: 4px; color: #8d95a2; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.company-filters select, .company-filters input { min-width: 0; width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #4f5866; background: #fff; outline: none; font-size: 10px; font-weight: 700; }
.company-filters select:focus, .company-filters input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.company-filters .search { grid-column: span 2; max-width: none; }
.company-filters .reset-filters { min-height: 40px; }
.company-table { min-width: 1480px; }
.creative-table-panel { overflow: hidden; }
.creative-table { min-width: 1420px; }
.creative-table td > small, .creative-fills-table td > small { display: block; max-width: 190px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; }
.creative-kind, .creative-signal { display: inline-flex; align-items: center; width: fit-content; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.creative-kind { color: #315ca8; background: #eef4ff; }
.creative-kind.vid { color: #7954a7; background: #f4effb; }
.creative-signal.winner { color: #087c4a; background: var(--green-soft); }
.creative-signal.stable { color: #315ca8; background: #eef4ff; }
.creative-signal.risk { color: #c33e3e; background: var(--red-soft); }
.creative-signal.learning { color: #657080; background: #eef0f4; }
.creative-mini-card { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr); gap: 5px 9px; padding: 12px 0; border: 0; border-top: 1px solid #f0f1f4; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.creative-mini-card:hover b { color: #07824b; }
.creative-mini-card > b, .creative-mini-card > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creative-mini-card > b { align-self: center; font-size: 11px; }
.creative-mini-card > small { grid-column: 2; color: var(--muted); font-size: 8px; }
.creative-mini-card > div { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 5px; }
.creative-mini-card > div span { font-size: 10px; font-weight: 800; }
.creative-mini-card > div small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 7px; font-weight: 600; }
.creative-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 10px; }
.creative-fills-table { min-width: 900px; }
.offer-fills-table { min-width: 1280px; }
.creative-fills-table code { padding: 3px 5px; border-radius: 5px; color: #4f5866; background: #f1f3f6; font-size: 8px; }
.creative-dialog { width: min(1080px, calc(100vw - 32px)); max-width: 1080px; }
.docs-card code { display: inline-block; padding: 9px 11px; border-radius: 7px; color: #087c4a; background: var(--green-soft); font-size: 11px; }
.docs-wide { grid-column: 1 / -1; }
.formula-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.formula-grid span { padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: #626a77; background: #fafbfc; font-size: 10px; }
.formula-grid b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.docs-note { margin-bottom: 0; padding: 11px 13px; border-left: 3px solid var(--green); background: #f8faf9; }
.management-view { margin-top: 13px; }
.management-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.management-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 13px; }
.company-reconciliation-note {
  margin-top: 13px;
  padding: 15px 17px;
  border-color: rgba(70, 229, 136, .28);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.company-reconciliation-note b { color: var(--ink); }
.management-table-panel { margin-top: 13px; }
#offersView .management-table-panel {
  min-width: 0;
  overflow: hidden;
}
.offer-table-tools { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.offer-table-tools label { display: grid; gap: 4px; }
.offer-table-tools label span { color: var(--muted); font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.offer-table-tools select, .offer-table-tools input[type="month"] { min-width: 150px; padding: 10px 30px 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font: inherit; font-size: 10px; font-weight: 800; }
.offer-sort-direction { min-width: 38px; height: 38px; padding: 0; font-size: 16px; }
#offersView .offer-registry-scroll {
  width: 100%;
  height: clamp(420px, 62vh, 720px);
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}
#offersView .offer-registry-table { min-width: 1480px; }
#offersView .offer-registry-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 5;
}
.table-control-form-panel, .table-control-list-panel { margin-top: 13px; }
.table-control-form-panel { padding: 24px; }
.table-control-form { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; }
.table-control-form label { display: grid; gap: 8px; }
.table-control-form label span { color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.table-control-form input, .table-control-form textarea {
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 12px;
  font-weight: 800;
}
.table-control-form textarea { min-height: 108px; resize: vertical; }
.table-control-form input:focus, .table-control-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.table-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.table-control-card { position: relative; display: grid; gap: 13px; padding: 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.table-control-card:hover { transform: translateY(-1px); }
.table-control-card.done { border-color: #25c878; box-shadow: 0 0 0 3px rgba(37, 200, 120, .16), 0 18px 34px rgba(18, 168, 98, .12); }
.table-control-card.pending { border-color: #f2c24c; box-shadow: 0 0 0 3px rgba(242, 194, 76, .18), 0 18px 34px rgba(245, 155, 52, .10); }
.table-control-card.late { border-color: #ea5757; box-shadow: 0 0 0 3px rgba(234, 87, 87, .18), 0 18px 34px rgba(234, 87, 87, .10); }
.table-control-card.paused { border-color: #747b89; opacity: .62; }
.table-control-card-head { display: grid; gap: 12px; }
.table-control-card-head strong { font-size: 16px; line-height: 1.2; }
.table-control-status { width: fit-content; padding: 7px 10px; border-radius: 999px; color: #657080; background: #eef0f4; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.table-control-card.done .table-control-status { color: #087c4a; background: var(--green-soft); }
.table-control-card.late .table-control-status { color: #c33e3e; background: var(--red-soft); }
.table-control-card.pending .table-control-status { color: #a56611; background: #fff5df; }
.table-control-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.table-control-meta span { padding: 11px; border-radius: 11px; color: #4f5866; background: #f6f8fa; font-size: 10px; font-weight: 800; }
.table-control-meta b { display: block; margin-bottom: 3px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.table-control-card p { min-height: 36px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.table-control-card .muted { opacity: .7; }
.table-control-actions { flex-wrap: wrap; margin-top: auto; }
.table-control-actions a.secondary-button { text-decoration: none; }
.table-control-toggle {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 260px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.table-control-toggle input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.table-control-toggle span { display: grid; gap: 3px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.table-control-toggle b { font-size: 11px; }
.table-control-toggle small { color: var(--muted); font-size: 9px; font-weight: 800; }
.designer-board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 13px; margin-top: 13px; align-items: start; }
.designer-column { min-height: 420px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.designer-column.drag-over { border-color: var(--green); background: #f5fbf8; box-shadow: inset 0 0 0 2px #1dbf7320; }
.designer-column.task { border-top: 4px solid #d16060; }.designer-column.in-process { border-top: 4px solid #c5a12e; }.designer-column.done { border-top: 4px solid #7fb13d; }
.designer-column-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.designer-column-head h2 { font-size: 14px; }.designer-column-head span { display: grid; min-width: 26px; height: 24px; place-items: center; border-radius: 999px; color: #667080; background: #f0f2f5; font-size: 10px; font-weight: 900; }
.designer-done-tools { display: flex; align-items: center; gap: 7px; }
.designer-memory-button { min-height: 24px; padding: 0 9px; border: 1px solid #7fb13d55; border-radius: 999px; color: #668d32; background: #7fb13d12; font-size: 9px; font-weight: 900; cursor: pointer; }
.designer-memory-button[hidden] { display: none; }
.designer-card-list { display: grid; gap: 9px; }
.design-card { position: relative; display: grid; gap: 7px; width: 100%; padding: 12px; border: 1px solid #e4e8ee; border-radius: 9px; color: var(--ink); background: #fbfcfd; text-align: left; cursor: pointer; }
.design-card::after { content: ''; position: absolute; inset: -1px; pointer-events: none; border: var(--priority-border-width, 1px) solid var(--priority-color, #8b95a4); border-radius: inherit; opacity: var(--priority-border-opacity, .5); transition: opacity .18s ease, box-shadow .18s ease; }
.design-card.priority-low { --priority-color: #7891a6; --priority-border-opacity: .5; }
.design-card.priority-normal { --priority-color: #36a26b; --priority-border-opacity: .62; }
.design-card.priority-high { --priority-color: #e0a12b; --priority-border-width: 2px; --priority-border-opacity: .82; }
.design-card.priority-urgent { --priority-color: #ee654e; --priority-border-width: 2px; --priority-border-opacity: .95; }
.design-card.priority-critical { --priority-color: #d92962; --priority-border-width: 3px; --priority-border-opacity: 1; }
.design-card.priority-high::after { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--priority-color) 74%, transparent); }
.design-card.priority-urgent::after { box-shadow: inset 4px 0 0 var(--priority-color), 0 5px 16px color-mix(in srgb, var(--priority-color) 13%, transparent); }
.design-card.priority-critical::after { box-shadow: inset 5px 0 0 var(--priority-color), 0 7px 20px color-mix(in srgb, var(--priority-color) 20%, transparent); }
.design-card:hover::after { opacity: 1; }
.design-card.deadline-upcoming { outline: 1px solid color-mix(in srgb, var(--deadline-color) 65%, transparent); outline-offset: 1px; }
.design-card.deadline-soon { animation: design-deadline-pulse 1.9s ease-in-out infinite; outline: 2px solid var(--deadline-color); outline-offset: 1px; }
.design-card.deadline-today { animation: design-deadline-pulse 1.05s ease-in-out infinite; outline: 3px solid var(--deadline-color); outline-offset: 1px; }
.design-card.deadline-overdue { outline: 3px solid #e54854; outline-offset: 1px; box-shadow: 0 0 0 5px rgba(229, 72, 84, .12); }
.design-card.priority-critical.deadline-soon,
.design-card.priority-critical.deadline-today { animation-duration: .72s; outline-width: 3px; }
@keyframes design-deadline-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--deadline-color) 10%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--deadline-color) 26%, transparent), 0 12px 26px color-mix(in srgb, var(--deadline-color) 18%, transparent); }
}
.design-card.movable { cursor: grab; }.design-card.dragging { opacity: .45; transform: scale(.98); cursor: grabbing; }
.design-card:hover { border-color: #bfc8d4; box-shadow: 0 12px 28px #11172210; }
.design-card b { font-size: 12px; }.design-card small { color: var(--muted); font-size: 9px; }
.design-card-brief { display: -webkit-box; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
.design-card-namings { color: #087c4a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.design-priority { width: fit-content; padding: 4px 7px; border-radius: 999px; color: #657080; background: #eef0f4; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.priority-high .design-priority { color: #a56611; background: #fff5df; }.priority-urgent .design-priority { color: #c33e3e; background: var(--red-soft); }.priority-critical .design-priority { color: #fff; background: linear-gradient(135deg, #d92962, #8f1644); }.priority-low .design-priority { color: #557187; background: #edf3fa; }
.design-meta { display: flex; flex-wrap: wrap; gap: 5px; }.design-meta em { padding: 4px 6px; border-radius: 6px; color: #5d6675; background: #f0f2f5; font-size: 8px; font-style: normal; font-weight: 800; }
.design-result-mark { width: fit-content; padding: 4px 7px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 8px; font-weight: 900; }
.design-created { padding-top: 7px; border-top: 1px solid var(--line); color: #5f6978; font-size: 9px; font-weight: 900; }
.design-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7d8491; font-size: 9px; font-weight: 800; }
.design-empty { padding: 22px; border: 1px dashed #d8dde5; border-radius: 9px; color: var(--muted); text-align: center; font-size: 10px; }
.design-task-dialog { width: min(1120px, calc(100vw - 30px)); max-width: 1120px; padding: 34px; }
html:has(#designTaskDialog[open]), body:has(#designTaskDialog[open]) { overflow:hidden;overscroll-behavior:none; }
#designTaskDialog { max-height:calc(100dvh - 32px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain; }
.design-task-dialog .dialog-close { top: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: #687384; background: var(--panel); font-size: 30px; font-weight: 400; line-height: 1; box-shadow: 0 8px 22px #11172218; }
.design-task-dialog .dialog-close:hover { color: #c33e3e; border-color: #efb1b1; background: #fff2f2; }
.design-task-dialog form > h2, .design-task-dialog form > .eyebrow { padding-right: 58px; }
.design-task-dialog textarea { min-height: 76px; overflow: hidden; }
.design-task-dialog #designBrief { min-height: 180px; line-height: 1.45; }
.design-generated-names { display: grid; gap: 7px; margin-top: 14px; padding: 12px; border: 1px solid #16b36b44; border-radius: 10px; background: #16b36b0c; }
.design-generated-names > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.design-generated-names span { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.design-generated-names button { border: 0; color: #087c4a; background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.design-generated-names code { padding: 7px 9px; border-radius: 7px; color: #087c4a; background: #fff; font-size: 10px; overflow-wrap: anywhere; }
.design-generated-names .design-name-copy { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: #fff; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.design-generated-names .design-name-copy code { min-width: 0; flex: 1; background: transparent; }
.design-generated-names .design-name-copy span { flex: 0 0 auto; padding-right: 10px; color: #087c4a; font-size: 8px; opacity: .66; }
.design-generated-names .design-name-copy:hover { border-color: rgba(22,179,107,.35); background: rgba(22,179,107,.06); transform: translateY(-1px); }
.design-generated-names .design-name-copy:hover span { opacity: 1; }
body:not(.locked):not(.theme-light) .design-generated-names .design-name-copy { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.055); }
body:not(.locked):not(.theme-light) .design-generated-names .design-name-copy code,
body:not(.locked):not(.theme-light) .design-generated-names .design-name-copy span { color: #66e0a4; }
body:not(.locked):not(.theme-light) .design-generated-names .design-name-copy:hover { border-color: rgba(102,224,164,.34); background: rgba(102,224,164,.1); }
.designer-stats-panel { margin-top: 13px; }
.designer-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.designer-stat-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.designer-stat-card > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.designer-stat-card b { font-size: 13px; }.designer-stat-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }
.designer-stat-card strong { display: block; margin-top: 14px; color: var(--ink); font-size: 28px; line-height: 1; }
.designer-stat-card p { margin: 4px 0 12px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.designer-stat-card .secondary-button { width: 100%; margin-top: 12px; }
.designer-stat-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.designer-stat-row span, .design-format-chips span { padding: 5px 7px; border-radius: 999px; color: #626b78; background: #f0f2f5; font-size: 8px; font-weight: 800; }
.design-format-chips { display: flex; gap: 5px; flex-wrap: wrap; }.design-format-chips.large { gap: 8px; margin-bottom: 10px; }.design-format-chips.large span { padding: 8px 10px; font-size: 10px; }
.designer-stats-dialog { width: min(1180px, calc(100vw - 32px)); max-width: 1180px; }
.design-memory-dialog { width: min(920px, calc(100vw - 32px)); max-width: 920px; }
.design-memory-head { padding-right: 42px; }
.design-memory-search { width: 100%; margin: 18px 0 8px; }
.design-memory-filters { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(145px, auto)); gap: 8px; margin: 18px 0 8px; }
.design-memory-filters .design-memory-search { margin: 0; }
.design-memory-filters select { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel); font: inherit; font-size: 10px; font-weight: 700; }
.design-memory-list { display: grid; gap: 14px; max-height: min(68vh, 760px); padding: 2px; overflow: auto; }
.design-memory-week { display: grid; gap: 9px; }
.design-memory-week-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 5px 14px #1117220c; }
.design-memory-week-head b { font-size: 11px; }.design-memory-week-head span { color: var(--muted); font-size: 9px; font-weight: 800; }
.design-memory-week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.design-memory-list .design-card { height: 100%; text-align: left; }
.design-results { display: grid; gap: 10px; }
.design-result-item { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel) 96%, var(--green)); }
.design-result-item h3 { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.design-result-item label { display: grid; gap: 6px; }.design-result-item label span { font-size: 9px; font-weight: 800; }
.designer-detail-table { min-width: 1180px; }
.designer-detail-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.design-result-links { display: grid; gap: 5px; min-width: 92px; }
.design-result-link { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 8px; border: 1px solid #2563eb38; border-radius: 7px; color: #2563eb; background: #2563eb0c; font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.design-result-link:hover { border-color: #2563eb88; background: #2563eb16; }
.design-no-result { color: var(--muted); }
.design-timeline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.design-timeline h3 { margin: 0 0 9px; font-size: 12px; }
.design-timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.design-timeline-grid div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.design-timeline-grid div.filled { border-color: #bce8d3; background: #f4fbf8; }
.design-timeline-grid span { display: block; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.design-timeline-grid b { display: block; margin-top: 5px; color: var(--ink); font-size: 11px; }
.design-history { display: grid; gap: 6px; }
.design-history p { display: flex; gap: 8px; margin: 0; padding: 7px 0; border-top: 1px solid #eef1f4; font-size: 9px; }
.design-history b { min-width: 100px; color: var(--muted); }
.form-hint { margin: 14px 0 0; padding: 11px 12px; border-radius: 10px; color: #657080; background: #f4f6f8; font-size: 10px; font-weight: 700; }
.design-format-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.design-format-field small b { color: #8b5cf6; }
.management-table { min-width: 1120px; }
.offer-indicator { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; white-space: nowrap; }
.offer-indicator > span { width: 10px; height: 10px; display: inline-block; border: 2px solid transparent; border-radius: 50%; background: #a7afbb; box-shadow: 0 0 0 3px #a7afbb22; }
.offer-indicator b { font-size: 9px; }
.offer-indicator.missing > span { border-color: #e45454; background: white; box-shadow: none; }
.offer-indicator.exists > span { background: #6986b7; box-shadow: 0 0 0 3px #6986b722; }
.offer-indicator.active > span { background: var(--green); box-shadow: 0 0 0 3px #16b36b22; }
.offer-indicator.nearly > span { background: var(--orange); box-shadow: 0 0 0 3px #f59b3422; }
.offer-indicator.over > span { background: var(--red); box-shadow: 0 0 0 3px #ea575722; }
.offer-indicator.paused > span { background: #8d72c7; box-shadow: 0 0 0 3px #8d72c722; }
.offer-indicator.completed > span { background: #858c98; }
.budget-progress { width: 95px; height: 6px; overflow: hidden; border-radius: 999px; background: #edf0f3; }
.budget-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12a862, #45cf8e); }
.management-table td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.note-cell { width: 210px; max-width: 210px; overflow: hidden; }
.offer-note-button { display: grid; width: 100%; min-width: 0; gap: 5px; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; color: inherit; background: transparent; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.offer-note-button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-note-button b { color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.offer-note-button:hover { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); background: color-mix(in srgb, var(--green) 7%, var(--panel)); }
.offer-note-dialog { width: min(720px, calc(100vw - 32px)); max-width: 720px; max-height: calc(100vh - 40px); overflow: auto; }
.offer-note-full { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2, rgba(127,127,127,.04)); font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.table-personalize-host { position: relative; }
.table-personalize-toolbar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; width: auto; min-width: max-content; padding: 0; pointer-events: none; }
.table-personalize-toolbar button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel); box-shadow: 0 5px 16px rgba(0,0,0,.08); cursor: pointer; font-size: 9px; font-weight: 800; pointer-events: auto; }
.table-personalize-toolbar button:hover { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.table-customizer-dialog { width: min(1040px, calc(100vw - 32px)); max-width: 1040px; height: min(760px, calc(100vh - 36px)); max-height: calc(100vh - 36px); padding: 24px; overflow: hidden; }
.table-customizer-dialog[open] { display: flex; flex-direction: column; }
.table-customizer-head { padding-right: 34px; }
.table-customizer-head h2 { margin-bottom: 5px; }
.table-customizer-head p:last-child { margin: 0 0 16px; }
.table-customizer-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); flex: 1 1 auto; min-height: 0; margin: 0 -24px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-column-pool { min-width: 0; padding: 16px 18px; overflow: auto; }
.table-column-search { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.table-column-search span { color: var(--muted); font-size: 20px; }
.table-column-search input { width: 100%; min-height: 42px; padding: 0; border: 0; color: var(--ink); background: transparent; outline: none; }
.table-customizer-pool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.table-pool-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2, rgba(127,127,127,.04)); cursor: pointer; }
.table-pool-item:hover { border-color: color-mix(in srgb, var(--green) 34%, var(--line)); }
.table-pool-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 750; }
.table-pool-item b { color: var(--green); font-size: 8px; text-transform: uppercase; }
.table-column-selected { min-width: 0; padding: 16px 12px; overflow: auto; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2, #f6f7f9) 72%, var(--panel)); }
.table-column-selected header { display: grid; gap: 3px; padding: 0 5px 12px; }
.table-column-selected header b { font-size: 14px; }
.table-column-selected header small { color: var(--muted); font-size: 9px; }
.table-customizer-list { display: grid; gap: 5px; }
.table-customizer-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 32px; align-items: center; gap: 8px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: grab; transition: opacity .14s ease, transform .14s ease, border-color .14s ease; }
.table-customizer-row:active { cursor: grabbing; }
.table-customizer-row.is-dragging { opacity: .45; border-color: var(--green); transform: scale(.985); }
.table-customizer-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.table-drag-handle { color: var(--muted); font-size: 19px; line-height: 1; text-align: center; cursor: grab; }
.table-customizer-row button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }
.table-customizer-row button:hover { color: #fff; background: #ef5462; }
.table-customizer-dialog > .form-actions { flex: 0 0 auto; margin: 0 -24px -24px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--panel); }
.table-customizer-dialog > .form-actions #resetTableCustomizer { margin-right: auto; }
@media (max-width: 760px) { .table-customizer-dialog { padding: 18px; }.table-customizer-layout { grid-template-columns: 1fr; max-height: 68vh; margin: 0 -18px; overflow: auto; }.table-column-selected { border-top: 1px solid var(--line); border-left: 0; }.table-customizer-pool { grid-template-columns: 1fr; } }
table.has-personal-table-view { outline: 1px solid color-mix(in srgb, var(--green) 22%, transparent); outline-offset: -1px; }
.row-actions { display: flex; gap: 5px; }
.row-actions button, .secondary-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #535c69; background: white; cursor: pointer; font-size: 9px; font-weight: 700; white-space: nowrap; }
.row-actions button:hover, .secondary-button:hover { border-color: #aeb7c4; color: var(--ink); }
.row-actions .danger-link { color: #c84b4b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.push-message-preview { margin-top: 14px; padding: 12px 14px; border: 1px solid #dbeee5; border-radius: 12px; color: #526070; background: #f6fffa; font-size: 11px; font-weight: 700; }
.push-message-preview small { display: block; margin-top: 6px; line-height: 1.45; }
.push-table { min-width: 1180px; }
.push-table .score-badge { display: inline-block; width: auto; min-width: 74px; padding: 6px 9px; white-space: nowrap; }
.push-rules-panel { margin-bottom: 18px; }
.push-compose-panel { margin-bottom: 18px; }
.push-compose-form { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(360px, 1.45fr) auto; align-items: end; gap: 12px; margin-top: 18px; }
.push-compose-form label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.push-compose-form select, .push-compose-form textarea { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); font: inherit; text-transform: none; }
.push-compose-form select { min-height: 46px; }
.push-compose-form textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.push-compose-message { position: relative; }
.push-compose-message small { position: absolute; right: 10px; bottom: 8px; color: var(--muted); font-size: 8px; }
.push-compose-form .detail-primary { min-height: 46px; white-space: nowrap; }
.push-filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) 190px 220px; gap: 10px; margin-top: 16px; }
.push-filter-bar input, .push-filter-bar select { min-height: 42px; padding: 0 13px; border: 1px solid #dfe4eb; border-radius: 10px; color: #303846; background: #fff; font: inherit; }
.push-filter-bar input:focus, .push-filter-bar select:focus { border-color: #18b875; outline: 3px solid rgba(24, 184, 117, .12); }
.push-rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.push-rule-card { padding: 18px; border: 1px solid #e3e7ed; border-radius: 14px; background: #fff; transition: border-color .18s ease, opacity .18s ease; }
.push-rule-card.enabled { border-color: #bdebd3; }
.push-rule-card.disabled { opacity: .62; }
.push-rule-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.push-rule-group { color: #17ae6f; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.push-rule-card h3 { margin: 12px 0 7px; font-size: 15px; }
.push-rule-card > p { min-height: 38px; margin: 0; color: #6d7685; font-size: 11px; line-height: 1.55; }
.push-rule-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.push-rule-meta div { padding: 9px 10px; border-radius: 9px; background: #f5f7f9; }
.push-rule-meta dt { color: #939baa; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.push-rule-meta dd { margin: 4px 0 0; color: #333b48; font-size: 10px; font-weight: 750; line-height: 1.35; }
.push-rule-state { color: #18a96d; font-size: 10px; }
.push-rule-card.disabled .push-rule-state { color: #a36c14; }
.push-rule-switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 auto; }
.push-rule-switch input { position: absolute; opacity: 0; pointer-events: none; }
.push-rule-switch span { width: 100%; border-radius: 999px; background: #cdd3db; cursor: pointer; transition: background .18s ease; }
.push-rule-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 7px #0002; transition: transform .18s ease; }
.push-rule-switch input:checked + span { background: #18b875; }
.push-rule-switch input:checked + span::after { transform: translateX(18px); }
.push-rule-switch input:disabled + span { cursor: not-allowed; opacity: .55; }
.push-log-table { min-width: 930px; }
.push-log-message { max-width: 430px; white-space: normal; line-height: 1.4; }
.form-dialog { width: min(720px, calc(100vw - 30px)); max-width: 720px; max-height: calc(100vh - 40px); overflow: auto; padding: 28px; }
.form-dialog h2 { margin-bottom: 18px; }
.self-profile-dialog { width: min(520px, calc(100vw - 30px)); }
.self-profile-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.self-photo-preview { width: 86px; height: 86px; border-radius: 16px; }
.self-profile-meta { min-width: 0; display: grid; gap: 7px; }
.self-profile-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.self-profile-meta small { color: var(--muted); font-size: 9px; }
.file-button { width: fit-content; display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #d9dde4; border-radius: 8px; color: #4f5866; background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.file-button:hover { border-color: #b9c2cf; color: var(--ink); }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.self-field { display: grid; gap: 7px; margin-top: 16px; color: #7b8391; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.self-field input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; outline: none; font-size: 12px; font-weight: 700; }
.self-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.self-remove-photo { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid > label > span { display: block; margin-bottom: 6px; color: #7a8290; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: white; font-size: 11px; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #16b36b18; }
.form-grid input:disabled, .form-grid select:disabled, .form-grid textarea:disabled { color: #8d94a0; background: #f4f6f8; }
.empty-state { padding: 14px; color: #7a8290; border: 1px dashed var(--line); border-radius: 10px; }
.cpa-offer-summary { padding: 11px 13px; border: 1px solid #bfe9d3; border-radius: 8px; color: #087c4a; background: var(--green-soft); font-size: 10px; font-weight: 800; }
.team-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #416187; background: #edf3fa; font-size: 8px; font-weight: 800; }
.allocation-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 180px; }
.allocation-chips span { padding: 4px 6px; border-radius: 6px; color: #087c4a; background: var(--green-soft); font-size: 7px; font-weight: 800; }
.allocation-chips small { display: grid; place-items: center; color: var(--muted); font-size: 8px; }
.offer-delegation-paths { display: grid; gap: 4px; margin-top: 7px; padding-left: 9px; border-left: 2px solid color-mix(in srgb, var(--green) 35%, var(--line)); }
.offer-delegation-paths span { color: var(--muted); font-size: 8px; line-height: 1.35; }
.offer-delegation-paths span b { color: var(--text); }
.offer-delegation-paths > small { color: var(--muted); font-size: 8px; }
.allocation-hierarchy-hint { max-width: 720px; margin: -4px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.allocation-empty { color: var(--orange); font-size: 8px; font-weight: 800; }
.allocation-dialog { width: min(720px, calc(100vw - 30px)); max-width: 720px; }
.allocation-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0; }
.allocation-summary span { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fafbfc; }
.allocation-summary small, .allocation-summary b { display: block; }.allocation-summary small { color: var(--muted); font-size: 7px; }.allocation-summary b { margin-top: 5px; font-size: 12px; }
.allocation-list { display: grid; gap: 7px; max-height: 390px; overflow-y: auto; }
.allocation-row { display: grid; grid-template-columns: minmax(170px, 1fr) 120px 86px 120px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.allocation-row-self { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: color-mix(in srgb, var(--green) 5%, var(--panel)); }
.allocation-row em { display: inline-block; margin-left: 5px; padding: 3px 6px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 7px; font-style: normal; vertical-align: middle; }
.allocation-row > span { min-width: 0; }.allocation-row b, .allocation-row small { display: block; }.allocation-row > span > b { font-size: 10px; }.allocation-row small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.allocation-row .allocation-fact { color: var(--muted); font-size: 8px; }.allocation-row .allocation-fact b { display: inline; color: var(--ink); }.allocation-row .allocation-fact small { display: block; margin-top: 4px; }
.allocation-row input, .allocation-note input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 9px; }
.allocation-note { display: grid; gap: 6px; margin-top: 14px; font-size: 9px; font-weight: 800; }.allocation-empty-message { padding: 25px; color: var(--muted); text-align: center; font-size: 10px; }
.form-wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.permission-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.permission-list legend { padding: 0 5px; color: #7a8290; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.permission-list label { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 7px; background: #f5f7f9; font-size: 10px; }
.permission-list input, .toggle-line input { width: auto; }
.toggle-line { display: flex; align-items: center; gap: 8px; color: #555e6c; font-size: 11px; }
.development-access-control,
.influence-access-control { padding: 9px; }
.permission-list .development-access-toggle,
.permission-list .influence-access-toggle {
  width: 100%;
  min-height: 72px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid #dce4ec;
  background: #fafbfc;
  cursor: pointer;
}
.permission-list .development-access-toggle:has(input:checked),
.permission-list .influence-access-toggle:has(input:checked) { border-color: #8ed8b5; background: #eefaf4; }
.development-access-toggle input,
.influence-access-toggle input { margin-top: 3px; accent-color: #11a768; }
.development-access-toggle span,
.influence-access-toggle span { display: grid; gap: 5px; }
.development-access-toggle b,
.influence-access-toggle b { color: var(--ink); font-size: 11px; }
.development-access-toggle small,
.influence-access-toggle small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.change-history { margin-top: 18px; }
.change-history h3 { margin: 0 0 9px; font-size: 12px; }
.change-history > div { display: grid; grid-template-columns: 100px 125px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.change-history span, .change-history small { color: var(--muted); }
.access-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.access-chips span { padding: 4px 6px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 8px; font-weight: 700; }
.employee-state { padding: 5px 7px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 8px; font-weight: 800; }
.employee-state.disabled { color: #9a5252; background: var(--red-soft); }
.employee-day-state { display: inline-flex; align-items: center; margin-left: 4px; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 900; }
.employee-day-state.absent { color: #a53e49; background: #fde5e8; }.employee-day-state.birthday { color: #7b5905; background: #ffefad; }
.owner-label { display: block; margin-top: 4px; color: var(--green); font-size: 8px; }
.compact-button { padding: 6px 8px; }
.employee-directory { margin-top: 13px; }
.employee-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.employee-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.employee-filters select { min-width: 145px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: #525b68; background: white; font-size: 10px; font-weight: 700; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f4f6f8; }
.view-switch button { padding: 7px 10px; border: 0; border-radius: 6px; color: #7a8290; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.view-switch button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px #15202d12; }
.employee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.employee-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: transform .15s, box-shadow .15s; }
.employee-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #15202d0d; }
.employee-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 4px; }.employee-card-top .employee-avatar { margin-right: auto; }
.employee-card.absent-today { border-color: #e7a5ad; background: #fff7f8; }.employee-card.birthday-today { border-color: #e9c85f; box-shadow: inset 4px 0 #e9bd2e; }
.employee-table tr.absent-today td { background: #fff3f5; }.employee-table tr.birthday-today td { background: #fff9dc; }.employee-table tr.absent-today.birthday-today td { background: linear-gradient(90deg, #fff3f5, #fff9dc); }
.employee-avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 13px; object-fit: cover; color: #087c4a; background: var(--green-soft); font-size: 12px; font-weight: 800; }
.employee-avatar.large { width: 82px; height: 82px; flex-basis: 82px; border-radius: 20px; font-size: 20px; }
.employee-card h3 { margin: 15px 0 4px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.employee-role { min-height: 17px; margin: 0; color: var(--green); font-size: 10px; font-weight: 700; }
.employee-meta { display: flex; gap: 6px; margin-top: 15px; flex-wrap: wrap; }
.employee-meta span { padding: 5px 7px; border-radius: 6px; color: #667080; background: #f4f6f8; font-size: 8px; font-weight: 700; }
.employee-contact { margin-top: 13px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.employee-card-actions { display: flex; gap: 7px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #f0f1f4; }
.employee-name-cell { display: flex; align-items: center; gap: 9px; }
.employee-name-cell .employee-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; font-size: 9px; }
.employee-name-cell small, .employee-table td > small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.employee-table { min-width: 1100px; }
.employee-empty { padding: 55px 20px; color: var(--muted); text-align: center; font-size: 11px; }
.employee-form-dialog { max-width: 800px; width: min(800px, calc(100vw - 30px)); }
.employee-photo-editor { display: flex; align-items: center; gap: 15px; margin: -3px 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.employee-photo-preview { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; overflow: hidden; border-radius: 17px; color: #087c4a; background: var(--green-soft); font-size: 10px; font-weight: 800; }
.employee-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-button { display: inline-block; padding: 8px 10px; border: 1px solid #cfd5dd; border-radius: 7px; color: #4e5765; background: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.employee-photo-editor p { margin: 7px 0 0; font-size: 9px; }
.employee-form-grid { gap: 14px 18px; }
.employee-form-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(90deg, #f7faf9, #fafbfc);
}
.employee-form-section-title:first-child { margin-top: 0; }
.employee-form-section-title > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #078052;
  background: #e4f6ed;
  font-size: 9px;
  font-weight: 900;
}
.employee-form-section-title div { display: grid; gap: 2px; }
.employee-form-section-title b { color: var(--ink); font-size: 11px; }
.employee-form-section-title small { color: var(--muted); font-size: 8px; }
.employee-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.employee-rights-grid .toggle-line,
.employee-active-line {
  min-height: 68px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}
.employee-rights-grid .toggle-line:has(input:checked),
.employee-active-line:has(input:checked) { border-color: #bde5d1; background: #f2faf6; }
.employee-rights-grid .toggle-line input,
.employee-active-line input { margin-top: 2px; }
.employee-rights-grid .toggle-line span,
.employee-active-line span { display: grid; gap: 4px; }
.employee-rights-grid .toggle-line b,
.employee-active-line b { color: var(--ink); font-size: 10px; }
.employee-rights-grid .toggle-line small,
.employee-active-line small { color: var(--muted); font-size: 8px; line-height: 1.35; }
body:not(.locked):not(.theme-light) .employee-form-section-title { border-color: rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(44,75,63,.24), rgba(255,255,255,.025)); }
body:not(.locked):not(.theme-light) .employee-form-section-title > span { color: #72e8ac; background: rgba(54,202,132,.13); }
body:not(.locked):not(.theme-light) .employee-rights-grid .toggle-line,
body:not(.locked):not(.theme-light) .employee-active-line { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
body:not(.locked):not(.theme-light) .employee-rights-grid .toggle-line:has(input:checked),
body:not(.locked):not(.theme-light) .employee-active-line:has(input:checked) { border-color: rgba(75,220,151,.22); background: rgba(44,137,94,.1); }
@media (max-width: 780px) { .employee-rights-grid { grid-template-columns: 1fr; } }
.remove-photo-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #a14b4b; font-size: 9px; }
.employee-profile-dialog { width: min(720px, calc(100vw - 30px)); max-width: 720px; max-height: calc(100vh - 40px); overflow: auto; padding: 30px; }
html:has(#employeeProfileDialog[open]),body:has(#employeeProfileDialog[open]) { overflow:hidden;overscroll-behavior:none; }
#employeeProfileDialog { overscroll-behavior:contain; }
.employee-profile-head { display: flex; align-items: center; gap: 20px; padding-right: 30px; }
.employee-profile-head h1 { font-size: 24px; }
.employee-profile-head p:not(.eyebrow) { margin: 6px 0 9px; color: var(--muted); font-size: 11px; }
.employee-profile-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.employee-profile-section h3 { margin: 0 0 13px; font-size: 12px; }
.employee-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.employee-profile-grid > div { min-width: 0; padding: 11px; border-radius: 8px; background: #f7f8fa; }
.employee-profile-grid small, .employee-profile-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-profile-grid small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.employee-profile-grid strong { margin-top: 6px; font-size: 10px; }
.profile-access { margin-top: 2px; }.profile-access span { font-size: 9px; padding: 6px 8px; }
.profile-note { margin: 0; padding: 13px; border-radius: 8px; color: #596270; background: #f7f8fa; white-space: pre-wrap; font-size: 10px; line-height: 1.6; }
.employee-directory[hidden], .org-tree-panel[hidden], .org-settings-grid[hidden] { display: none; }
.employee-section-tabs { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 14px 0; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.employee-section-tabs button { padding: 8px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; white-space: nowrap; }
.employee-section-tabs button.active { color: #087c4a; background: var(--green-soft); }
.candidate-heading { align-items: flex-start; }
.candidate-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.candidate-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.candidate-kpis article { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.candidate-kpis small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.candidate-kpis strong { display: block; margin-top: 5px; font-size: 24px; }
.candidate-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.candidate-toolbar .search { flex: 1; }
.candidate-toolbar select { min-width: 210px; }
.candidate-table td:first-child small { display: block; max-width: 280px; margin-top: 4px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.candidate-status, .candidate-score { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.candidate-status { color: #175cd3; background: #eff6ff; }
.candidate-status.continue, .candidate-status.meeting_planned, .candidate-status.meeting_done { color: #a15c00; background: #fff4df; }
.candidate-status.hire, .candidate-score.good { color: #087c4a; background: #e8f8f0; }
.candidate-status.reject, .candidate-score.bad { color: #d33b43; background: #feedef; }
.candidate-status.reserve, .candidate-score.mid { color: #a15c00; background: #fff4df; }
.candidate-score.empty { color: var(--muted); background: var(--soft); }
.candidate-table .candidate-row td { transition: background .2s ease, border-color .2s ease; }
.candidate-table .candidate-row.status-new td { background: #f2f7ff !important; }
.candidate-table .candidate-row.status-screening td { background: #f8f4ff !important; }
.candidate-table .candidate-row.status-continue td { background: #fff9e9 !important; }
.candidate-table .candidate-row.status-meeting_planned td { background: #eefaff !important; }
.candidate-table .candidate-row.status-meeting_done td { background: #eefbf7 !important; }
.candidate-table .candidate-row.status-hire td { background: #eaf9f0 !important; }
.candidate-table .candidate-row.status-reserve td { background: #f7f5ef !important; }
.candidate-table .candidate-row.status-reject td { background: #fff0f1 !important; }
.candidate-status.screening { color: #7248b9; background: #f2eaff; }
.candidate-status.meeting_planned { color: #087d9d; background: #e4f8ff; }
.candidate-status.meeting_done { color: #087c67; background: #e3f8f2; }
.candidate-status-select { border-width: 2px !important; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.candidate-status-select.status-new { color: #175cd3; border-color: #94bfff; background: #f2f7ff; }
.candidate-status-select.status-screening { color: #7248b9; border-color: #c7a9f4; background: #f8f4ff; }
.candidate-status-select.status-continue { color: #9a6200; border-color: #f0c96b; background: #fff9e9; }
.candidate-status-select.status-meeting_planned { color: #087d9d; border-color: #83d5eb; background: #eefaff; }
.candidate-status-select.status-meeting_done { color: #087c67; border-color: #7bd2b8; background: #eefbf7; }
.candidate-status-select.status-hire { color: #087c4a; border-color: #71cea0; background: #eaf9f0; }
.candidate-status-select.status-reserve { color: #786634; border-color: #cdbf91; background: #f7f5ef; }
.candidate-status-select.status-reject { color: #c93640; border-color: #efa0a5; background: #fff0f1; }
.candidate-status-select option[value="new"], #candidateStatusFilter option[value="new"] { color: #175cd3; background: #f2f7ff; }
.candidate-status-select option[value="screening"], #candidateStatusFilter option[value="screening"] { color: #7248b9; background: #f8f4ff; }
.candidate-status-select option[value="continue"], #candidateStatusFilter option[value="continue"] { color: #9a6200; background: #fff9e9; }
.candidate-status-select option[value="meeting_planned"], #candidateStatusFilter option[value="meeting_planned"] { color: #087d9d; background: #eefaff; }
.candidate-status-select option[value="meeting_done"], #candidateStatusFilter option[value="meeting_done"] { color: #087c67; background: #eefbf7; }
.candidate-status-select option[value="hire"], #candidateStatusFilter option[value="hire"] { color: #087c4a; background: #eaf9f0; }
.candidate-status-select option[value="reserve"], #candidateStatusFilter option[value="reserve"] { color: #786634; background: #f7f5ef; }
.candidate-status-select option[value="reject"], #candidateStatusFilter option[value="reject"] { color: #c93640; background: #fff0f1; }
.candidate-dialog { width: min(1180px, calc(100vw - 40px)); max-width: 1180px; }
.candidate-dialog[data-status] { border: 2px solid var(--candidate-accent, var(--line)); box-shadow: 0 24px 70px rgba(15, 23, 42, .28), inset 0 5px 0 var(--candidate-accent, var(--line)); }
.candidate-dialog[data-status="new"] { --candidate-accent: #75a9f7; }
.candidate-dialog[data-status="screening"] { --candidate-accent: #ad86e8; }
.candidate-dialog[data-status="continue"] { --candidate-accent: #e6b64d; }
.candidate-dialog[data-status="meeting_planned"] { --candidate-accent: #55bfdc; }
.candidate-dialog[data-status="meeting_done"] { --candidate-accent: #4fbea0; }
.candidate-dialog[data-status="hire"] { --candidate-accent: #45b979; }
.candidate-dialog[data-status="reserve"] { --candidate-accent: #b6a26b; }
.candidate-dialog[data-status="reject"] { --candidate-accent: #e36b72; }
.candidate-dialog form { max-height: calc(100vh - 80px); overflow-y: auto; padding-right: 5px; }
.candidate-question-section { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.candidate-question-section.meeting { border-color: #cfe3ff; }
.candidate-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.candidate-section-head h3 { margin: 2px 0 0; }
.candidate-title-with-info { display: flex; align-items: center; gap: 9px; }
.candidate-info-tooltip { position: relative; display: inline-grid; width: 22px; height: 22px; place-items: center; border: 1px solid #8bbfa7; border-radius: 50%; color: #087c4a; background: var(--green-soft); cursor: help; font-family: Georgia, serif; font-size: 13px; font-weight: 800; outline: none; }
.candidate-info-tooltip:focus-visible { box-shadow: 0 0 0 3px rgba(22, 179, 107, .2); }
.candidate-info-popup { position: absolute; z-index: 40; top: calc(100% + 10px); left: -250px; display: none; width: min(820px, calc(100vw - 80px)); max-height: none; padding: 17px 20px; overflow: visible; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; box-shadow: 0 20px 55px rgba(20, 30, 45, .22); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.35; text-align: left; }
.candidate-info-popup::before { content: ''; position: absolute; top: -6px; left: 256px; width: 11px; height: 11px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; transform: rotate(45deg); }
.candidate-info-popup > b { display: block; margin-bottom: 10px; color: #087c4a; font-size: 14px; }
.candidate-info-popup ol { margin: 0; padding-left: 22px; column-count: 2; column-gap: 38px; }
.candidate-info-popup li { margin: 0 0 7px; break-inside: avoid; }
.candidate-info-tooltip:hover .candidate-info-popup, .candidate-info-tooltip:focus .candidate-info-popup, .candidate-info-tooltip:focus-within .candidate-info-popup { display: block; }
.candidate-question-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.candidate-question { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.candidate-question-title { display: flex; align-items: flex-start; gap: 9px; min-height: 38px; }
.candidate-question-title > span { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; color: #087c4a; background: var(--green-soft); font-size: 10px; font-weight: 900; }
.candidate-question textarea { width: 100%; resize: vertical; }
.candidate-question-list .candidate-question textarea { min-height: 190px; }
.candidate-question label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.candidate-question label > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.candidate-final-score { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: 13px; background: var(--green-soft); }
.candidate-final-score > span { font-weight: 850; }
.candidate-final-score small { color: var(--muted); }
.candidate-export-button { margin-left: auto; color: #087c4a; border-color: #9ed9bd; background: var(--green-soft); }
@media (max-width: 800px) { .candidate-kpis, .candidate-question-list { grid-template-columns: 1fr; } .candidate-toolbar { flex-direction: column; } .candidate-final-score { grid-template-columns: auto auto; } .candidate-final-score small { grid-column: 1 / -1; } .candidate-info-popup { position: fixed; top: 70px; right: 20px; left: 20px; width: auto; } .candidate-info-popup::before { display: none; } .candidate-info-popup ol { column-count: 1; } }
body:not(.locked):not(.theme-light) .candidate-question,
body:not(.locked):not(.theme-light) .candidate-kpis article { background: var(--panel); }
body:not(.locked):not(.theme-light) .candidate-info-popup,
body:not(.locked):not(.theme-light) .candidate-info-popup::before { color: var(--ink); background: var(--panel); }
body:not(.locked):not(.theme-light) .candidate-status { color: #8bb8ff; background: rgba(37, 99, 235, .16); }
body:not(.locked):not(.theme-light) .candidate-status.continue,
body:not(.locked):not(.theme-light) .candidate-status.meeting_planned,
body:not(.locked):not(.theme-light) .candidate-status.meeting_done,
body:not(.locked):not(.theme-light) .candidate-status.reserve,
body:not(.locked):not(.theme-light) .candidate-score.mid { color: #f7c66d; background: rgba(217, 119, 6, .17); }
body:not(.locked):not(.theme-light) .candidate-status.hire,
body:not(.locked):not(.theme-light) .candidate-score.good { color: #63d6a3; background: rgba(5, 150, 105, .17); }
body:not(.locked):not(.theme-light) .candidate-status.reject,
body:not(.locked):not(.theme-light) .candidate-score.bad { color: #ff9298; background: rgba(220, 38, 38, .17); }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-new td { background: rgba(37, 99, 235, .09) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-screening td { background: rgba(124, 58, 237, .09) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-continue td { background: rgba(217, 119, 6, .09) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-meeting_planned td { background: rgba(8, 145, 178, .09) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-meeting_done td { background: rgba(13, 148, 110, .09) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-hire td { background: rgba(5, 150, 105, .13) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-reserve td { background: rgba(148, 125, 72, .09) !important; }
body:not(.locked):not(.theme-light) .candidate-table .candidate-row.status-reject td { background: rgba(220, 38, 38, .11) !important; }
.org-tree-panel { padding: 24px; overflow: hidden; }
.org-tree-heading { align-items: flex-start; gap: 18px; }
.org-tree-controls { display: flex; flex: 0 0 auto; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; }
.org-tree-controls button { min-width: 32px; padding: 7px 9px; border: 0; border-radius: 6px; color: #596575; background: white; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; box-shadow: 0 1px 3px #15202d0d; }
.org-tree-controls button:hover { color: #087c4a; background: var(--green-soft); }
.org-tree-hint { margin: 12px 0 8px; color: var(--muted); font-size: 8px; }
.organization-viewport { width: 100%; min-height: 470px; overflow: auto; overscroll-behavior: contain; border: 1px solid #edf0f3; border-radius: 11px; background: linear-gradient(#fbfcfd 1px, transparent 1px), linear-gradient(90deg, #fbfcfd 1px, transparent 1px), #fff; background-size: 24px 24px; cursor: grab; scrollbar-color: #b8c2ce #f1f3f5; scrollbar-width: thin; }
.organization-viewport.dragging { cursor: grabbing; user-select: none; }
.organization-viewport::-webkit-scrollbar { width: 10px; height: 10px; }.organization-viewport::-webkit-scrollbar-track { background: #f1f3f5; }.organization-viewport::-webkit-scrollbar-thumb { border: 2px solid #f1f3f5; border-radius: 999px; background: #b8c2ce; }
.organization-tree { width: max-content; min-width: 100%; min-height: 450px; box-sizing: border-box; padding: 28px 36px 70px; zoom: var(--org-tree-zoom, 1); }
.organization-tree ul { display: flex; justify-content: center; gap: 18px; position: relative; width: max-content; min-width: 100%; box-sizing: border-box; margin: 0; padding: 25px 0 0; list-style: none; }
.organization-tree > .org-tree-root > ul { padding-top: 0; }
.organization-tree li { position: relative; padding-top: 22px; text-align: center; }
.organization-tree > .org-tree-root > ul > li { padding-top: 0; }
.organization-tree li::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid #d7dfe7; }
.organization-tree > .org-tree-root > ul > li::before { display: none; }
.organization-tree li > ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 25px; border-left: 1px solid #d7dfe7; }
.organization-tree li > ul > li::after { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid #d7dfe7; }
.organization-tree li > ul > li:first-child::after { left: 50%; }
.organization-tree li > ul > li:last-child::after { right: 50%; }
.org-person { display: inline-flex; align-items: center; gap: 9px; min-width: 190px; max-width: 230px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 7px 20px #15202d0a; text-align: left; cursor: pointer; }
.org-person:hover { border-color: var(--green); }

.org-person.company-owner { min-width: 230px; border-color: #9edfc0; box-shadow: 0 10px 28px #16b36b18; }
.org-person .employee-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; font-size: 9px; }
.org-person div { display: grid; gap: 2px; min-width: 0; }
.org-person b, .org-person span, .org-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-person b { font-size: 10px; }.org-person span { color: var(--muted); font-size: 8px; }.org-person small { color: #8b94a1; font-size: 7px; }
.org-person em { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #087c4a; background: var(--green-soft); font-size: 8px; font-style: normal; font-weight: 900; }

.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr); gap: 13px; }
.calendar-panel, .leave-sidebar { padding: 20px; }
.calendar-toolbar { display: grid; grid-template-columns: 36px 1fr auto 36px; align-items: center; gap: 8px; margin-bottom: 18px; }
.calendar-toolbar h2 { margin: 0; text-align: center; text-transform: capitalize; }
.calendar-toolbar button { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { color: var(--muted); font-size: 10px; font-weight: 900; text-align: center; text-transform: uppercase; }
.calendar-weekdays span { padding: 8px; }
.calendar-grid { overflow: hidden; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; }
.calendar-day { position: relative; min-width: 0; min-height: 108px; padding: 8px; overflow: hidden; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }
.calendar-day:hover { z-index: 1; background: #f5fbf8; box-shadow: inset 0 0 0 1px var(--green); }
.calendar-day.outside { background: #f8f9fb; color: #a8afba; }
.calendar-day.weekend { background-image: linear-gradient(#fafbfdcc, #fafbfdcc); }
.calendar-day.today .calendar-day-number { display: grid; place-items: center; width: 25px; height: 25px; margin: -3px 0 3px -3px; border-radius: 50%; background: var(--green); color: white; }
.calendar-day-number { display: block; font-size: 11px; font-weight: 900; }
.calendar-events { display: grid; gap: 3px; margin-top: 5px; }
.leave-event, .leave-more { display: block; min-width: 0; overflow: hidden; padding: 4px 6px; border-radius: 5px; color: #087c4a; background: #dff7eb; font-size: 8px; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.leave-event.dayoff { color: #765412; background: #fff1c9; }
.leave-event.birthday { color: #765412; background: #ffef9d; box-shadow: inset 3px 0 #e4b42e; }
.leave-event.pending { color: #6b7280; background: #eef0f4; box-shadow: inset 3px 0 #a9b0bb; }
.leave-more { color: var(--muted); background: transparent; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 9px; font-weight: 800; }
.calendar-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #b5eacf; }
.calendar-legend .dayoff::before { background: #f7cf6b; }.calendar-legend .pending::before { background: #a9b0bb; }
.leave-sidebar .panel-heading { align-items: start; }.leave-sidebar select { max-width: 140px; }
.leave-request-list { display: grid; gap: 9px; max-height: 640px; overflow: auto; }
.leave-request { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.leave-request-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }.leave-request p { margin: 8px 0 4px; font-size: 10px; font-weight: 800; }.leave-request small { color: var(--muted); }
.leave-request blockquote { margin: 9px 0 0; padding: 7px 9px; border-left: 2px solid var(--line); color: var(--muted); background: #fafbfc; font-size: 9px; }
.leave-status { flex: 0 0 auto; padding: 4px 6px; border-radius: 99px; color: #087c4a; background: var(--green-soft); font-size: 7px; font-weight: 900; }.leave-status.pending { color: #775b16; background: #fff3ce; }.leave-status.rejected, .leave-status.cancelled { color: #8d4350; background: #fae7ea; }
.leave-actions { display: flex; gap: 6px; margin-top: 10px; }.leave-actions button { min-height: 29px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #087c4a; font-size: 8px; font-weight: 900; cursor: pointer; }
.leave-balance-preview { display: flex; gap: 10px; margin: 16px 0; }.leave-balance-preview span { flex: 1; padding: 10px; border-radius: 9px; color: var(--muted); background: #f6f8fa; font-size: 9px; }.leave-balance-preview b { color: var(--ink); font-size: 15px; }
.calendar-team-panel { margin-top: 13px; padding: 20px; }.calendar-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.calendar-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: white; }.calendar-person.absent { border-color: #e8aab1; background: #fff7f8; }.calendar-person.birthday { border-color: #e9c85f; box-shadow: inset 4px 0 #e9bd2e; }
.calendar-person .employee-avatar { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }.calendar-person-main { min-width: 0; }.calendar-person-main > div:first-child { display: grid; gap: 3px; }.calendar-person-main b { font-size: 10px; }.calendar-person-main small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-person-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }.calendar-person-flags span { padding: 4px 6px; border-radius: 99px; font-size: 7px; font-weight: 900; }.calendar-person-flags .working { color: #087c4a; background: var(--green-soft); }.calendar-person-flags .absent { color: #a53e49; background: #fde5e8; }.calendar-person-flags .birthday { color: #7b5905; background: #ffefad; }
.calendar-person-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding-top: 9px; border-top: 1px solid var(--line); }.calendar-person-stats span { display: grid; gap: 2px; }.calendar-person-stats b { font-size: 12px; }.calendar-person-stats small { color: var(--muted); font-size: 7px; }
.time-management-access span { display: grid; gap: 3px; }.time-management-access small { color: var(--muted); font-size: 8px; font-weight: 500; }
.org-owner-badge { margin-left: auto; padding: 5px 7px; border-radius: 999px; color: white; background: var(--green); font-size: 7px; letter-spacing: .08em; }
.org-unassigned { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); }.org-unassigned h3 { color: var(--muted); text-align: center; font-size: 10px; }
.org-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.org-settings-card { padding: 18px; }.org-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }.org-settings-head h2 { margin: 2px 0 0; font-size: 14px; }
.org-list { display: grid; gap: 7px; }.org-list-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }.org-list-row > span { font-size: 9px; font-weight: 800; }.org-list-row div { display: flex; gap: 5px; }.org-list-row button { padding: 0; border: 0; color: #647082; background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }.org-list-row .danger-link { color: #b84e4e; }.org-list-empty { color: var(--muted); font-size: 9px; }
.org-list-row > span { display: inline-flex; align-items: center; gap: 8px; }
.org-team-swatch { width: 15px; height: 15px; display: inline-block; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.72); border-radius: 5px; box-shadow: 0 0 0 1px rgba(20,28,40,.14); }
.org-team-color input[type="color"] { width: 100%; height: 42px; padding: 4px; cursor: pointer; }
.offer-month-label { text-transform: capitalize; }
.org-item-dialog { width: min(430px, calc(100vw - 30px)); }.org-item-name { display: grid; gap: 7px; margin-top: 18px; font-size: 9px; font-weight: 800; }.org-item-name input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }.analytics-profile { margin-top: 12px; }
@media (max-width: 1350px) { .campaign-rankings { grid-template-columns: repeat(2, minmax(0, 1fr)); }.campaign-rankings .ranking-panel:last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .rankings, .insight-grid { grid-template-columns: 1fr; }.campaign-rankings .ranking-panel:last-child { grid-column: auto; } }
@media (max-width: 1100px) { .buyer-podium { grid-template-columns: 1fr; } .detail-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .formula-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .employee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .org-settings-grid { grid-template-columns: 1fr; } .calendar-layout { grid-template-columns: 1fr; } .calendar-team-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .creative-filters, .company-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .creative-context-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .designer-board { grid-template-columns: 1fr; } .designer-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .design-timeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px), (max-height: 720px) { .brand-gate-frame { height: 100vh; min-height: 0; padding: clamp(14px, 2vw, 24px); gap: 14px; } .brand-gate-top { grid-template-columns: max-content 1fr; } .brand-gate-menu { justify-self: end; gap: 22px; padding-right: 0; } .brand-gate-layout { grid-template-columns: 1fr; gap: 18px; } .brand-gate-copy h1 { font-size: clamp(68px, 12vw, 132px); } .brand-gate-text { max-width: 620px; font-size: clamp(12px, 1.35vw, 16px); } .brand-gate-button { min-width: min(340px, 100%); padding: 18px 26px; } .brand-gate-contacts { right: 8px; bottom: 8px; } .brand-gate-contacts a { min-width: 138px; padding: 12px 13px; } .brand-gate-status { left: 8px; bottom: 8px; padding: 12px 14px; } }
@media (max-width: 780px) { .sidebar { position: static; width: auto; padding: 18px; } .nav { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; } .nav-item { flex: 0 0 auto; padding: 9px 11px; font-size: 11px; } .sidebar-note { display: none; } main { margin-left: 0; padding: 24px 18px; } .topbar { align-items: flex-start; } .top-actions .avatar, .icon-button { display: none; } .kpi-grid, .management-kpis { grid-template-columns: 1fr 1fr; } .content-grid { grid-template-columns: 1fr; } .detail-kpis { grid-template-columns: repeat(2, 1fr); } .form-grid { grid-template-columns: 1fr; } .form-wide { grid-column: auto; } .employee-toolbar { align-items: stretch; flex-direction: column; } .view-switch { align-self: flex-start; } .employee-profile-grid { grid-template-columns: repeat(2, 1fr); } .org-tree-heading { display: grid; } .org-tree-controls { width: fit-content; } .organization-viewport { min-height: 410px; } }
@media (max-width: 780px) { .push-rule-list { grid-template-columns: 1fr; } .push-rule-meta { grid-template-columns: 1fr; } .push-filter-bar { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .push-compose-form { grid-template-columns: 1fr; } .push-compose-form .detail-primary { width: 100%; } }
@media (max-width: 780px) { .creative-hero { display: block; } .creative-data-note { display: inline-flex; margin-top: 14px; } .creative-filters, .company-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .table-control-form, .table-control-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { h1 { font-size: 22px; } .subtitle { display: none; } .upload-button { padding: 0 9px; } .filters { display: grid; grid-template-columns: 1fr 1fr; } .filters select, .filters input, .reset-filters { width: 100%; min-width: 0; } .kpi-grid { grid-template-columns: 1fr; } .search { max-width: 52%; } .freshness-banner { align-items: flex-start; flex-direction: column; } .freshness-side { align-items: flex-start; text-align: left; } .docs-grid { grid-template-columns: 1fr; } .docs-wide { grid-column: auto; } .formula-grid { grid-template-columns: 1fr; } .employee-grid { grid-template-columns: 1fr; } .employee-filters { display: grid; grid-template-columns: 1fr; } .employee-filters .search { width: 100%; max-width: none; } .employee-profile-head { align-items: flex-start; } .employee-profile-grid { grid-template-columns: 1fr; } .allocation-summary { grid-template-columns: 1fr; } .allocation-row { grid-template-columns: 1fr; } .calendar-panel { padding: 10px; overflow-x: auto; }.calendar-weekdays, .calendar-grid { min-width: 700px; }.calendar-toolbar { min-width: 700px; }.calendar-day { min-height: 92px; } }
@media (max-width: 780px) { .auth-card { margin-left: 0; } }
@media (max-width: 680px) { .brand-gate { padding: 0; } .brand-gate-frame { height: 100vh; border-radius: 0; padding: 12px; gap: 12px; } .brand-gate-top { display: flex; font-size: 11px; letter-spacing: .12em; } .brand-gate-menu { display: none; } .brand-gate-layout { grid-template-columns: 1fr; align-content: center; } .brand-gate-chip { margin-bottom: 15px; padding: 8px 11px; font-size: 9px; } .brand-gate-copy h1 { font-size: clamp(54px, 17vw, 86px); max-width: 9ch; } .brand-gate-text { font-size: 13px; } .brand-gate-actions { display: grid; gap: 10px; margin-top: 18px; } .brand-gate-button { min-width: min(300px, 100%); padding: 17px 20px; } .brand-gate-visual { display: none; } .brand-gate-status { display: none; } .brand-gate-contacts { left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .brand-gate-contacts a { min-width: 0; padding: 10px; } .brand-gate-contacts small { font-size: 7px; } .brand-gate-contacts b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 720px) { .design-memory-filters, .design-memory-week-grid, .design-result-item { grid-template-columns: 1fr; } .design-result-item h3 { grid-column: auto; } }
@media (max-width: 520px) { .auth-screen { padding: 10px; } .auth-card { width: calc(100vw - 28px); padding: 28px 22px; border-radius: 22px; } .auth-card h1 { font-size: 30px; } .designer-stats-grid, .design-timeline-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .creative-filters, .company-filters { grid-template-columns: 1fr; } .creative-filters .search, .company-filters .search { grid-column: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .brand-gate-frame, .brand-gate-frame::before, .brand-gate-frame::after, .brand-gate-kicker::before, .brand-gate-chip, .brand-gate-chip::before, .brand-gate-copy, .brand-gate-copy h1, .brand-gate-button { animation: none !important; } }

/* CRM dark brand skin — mirrors the SWANOWA / CONEXUS entry screen */
body:not(.locked):not(.theme-light) {
  --bg: #06050d;
  --panel: rgba(12, 13, 22, .82);
  --ink: #f8f7ff;
  --muted: rgba(247, 246, 255, .58);
  --line: rgba(255, 255, 255, .075);
  --green: #71ff5b;
  --green-soft: rgba(113, 255, 91, .12);
  --red: #ff606d;
  --red-soft: rgba(255, 96, 109, .13);
  --orange: #ffc15a;
  --navy: rgba(8, 9, 18, .9);
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(127deg, #090717 0%, #0d0a1e 44%, #050609 100%);
  background-attachment: scroll;
}

body:not(.locked):not(.theme-light)::before {
  content: none;
}

body:not(.locked):not(.theme-light)::after {
  content: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(85, 42, 185, .16), transparent 34%, rgba(22, 179, 107, .05));
  pointer-events: none;
}

body:not(.locked):not(.theme-light) .sidebar {
  border-right: 1px solid rgba(255, 255, 255, .075);
  background: linear-gradient(180deg, rgba(12, 13, 22, .97), rgba(5, 6, 12, .96));
  box-shadow: inset -1px 0 rgba(255, 255, 255, .035);
}

body:not(.locked):not(.theme-light) .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: Rubik, Inter, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: .13em;
  text-shadow: 0 0 24px rgba(113, 255, 91, .14);
}

body:not(.locked):not(.theme-light) .brand::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

body:not(.locked):not(.theme-light) .nav-item {
  position: relative;
  overflow: hidden;
  color: rgba(247, 246, 255, .56);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 850;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}

body:not(.locked):not(.theme-light) .nav-item:hover,
body:not(.locked):not(.theme-light) .nav-item.active {
  color: #fff;
  border-color: rgba(113, 255, 91, .18);
  background: linear-gradient(90deg, rgba(113, 255, 91, .13), rgba(255, 255, 255, .035));
  box-shadow: inset 3px 0 var(--green);
}

body:not(.locked):not(.theme-light) .sidebar-note,
body:not(.locked):not(.theme-light) .panel,
body:not(.locked):not(.theme-light) .kpi-card,
body:not(.locked):not(.theme-light) .buyer-card,
body:not(.locked):not(.theme-light) .designer-column,
body:not(.locked):not(.theme-light) .designer-stat-card,
body:not(.locked):not(.theme-light) .employee-card,
body:not(.locked):not(.theme-light) .table-control-card,
body:not(.locked):not(.theme-light) .docs-card,
body:not(.locked):not(.theme-light) .creative-mini-card,
body:not(.locked):not(.theme-light) .dashboard-leader-row,
body:not(.locked):not(.theme-light) .leave-request,
body:not(.locked):not(.theme-light) .calendar-person,
body:not(.locked):not(.theme-light) .org-settings-card,
body:not(.locked):not(.theme-light) .detail-kpi,
body:not(.locked):not(.theme-light) dialog {
  border-color: rgba(255, 255, 255, .075);
  color: var(--ink);
  background: rgba(10, 11, 20, .96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

body:not(.locked):not(.theme-light) .dashboard-leader-row { box-shadow: none; }
body:not(.locked):not(.theme-light) .dashboard-leader-open { color: rgba(247, 246, 255, .68); border-color: rgba(255, 255, 255, .1); background: rgba(2, 3, 10, .55); }
body:not(.locked):not(.theme-light) .dashboard-leader-roas { color: #71ff5b; background: rgba(113, 255, 91, .12); }

body:not(.locked):not(.theme-light) .panel,
body:not(.locked):not(.theme-light) .kpi-card {
  backdrop-filter: none;
}

body:not(.locked):not(.theme-light) .docs-card code {
  color: #71ff5b;
  border: 1px solid rgba(113, 255, 91, .18);
  background: rgba(113, 255, 91, .11);
}

body:not(.locked):not(.theme-light) .formula-grid span {
  color: rgba(247, 246, 255, .68);
  border-color: rgba(255, 255, 255, .075);
  background: rgba(3, 4, 10, .42);
}

body:not(.locked):not(.theme-light) .formula-grid b {
  color: #fff;
}

body:not(.locked):not(.theme-light) .docs-note {
  color: rgba(247, 246, 255, .76);
  border-left-color: #71ff5b;
  background: rgba(113, 255, 91, .08);
}

body:not(.locked):not(.theme-light) .docs-access-summary span,
body:not(.locked):not(.theme-light) .docs-toc {
  border-color: rgba(255, 255, 255, .075);
  background: rgba(10, 11, 20, .96);
}
body:not(.locked):not(.theme-light) .docs-access-summary b { color: #fff; }
body:not(.locked):not(.theme-light) .docs-toc a {
  color: rgba(247, 246, 255, .82);
  border-color: rgba(255, 255, 255, .09);
  background: rgba(3, 4, 10, .55);
}
body:not(.locked):not(.theme-light) .docs-toc a span,
body:not(.locked):not(.theme-light) .docs-section-heading > span { color: #71ff5b; background: rgba(113, 255, 91, .11); }
body:not(.locked):not(.theme-light) .docs-toc a:hover { color: #71ff5b; border-color: rgba(113, 255, 91, .32); }

body:not(.locked):not(.theme-light) main {
  position: relative;
  max-width: none;
}

body:not(.locked):not(.theme-light) .topbar {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 10px 26px rgba(0, 0, 0, .16);
}

body:not(.locked):not(.theme-light) .eyebrow {
  color: rgba(247, 246, 255, .42);
  font-family: Rubik, Inter, system-ui, sans-serif;
  font-weight: 950;
}

body:not(.locked):not(.theme-light) .eyebrow.green,
body:not(.locked):not(.theme-light) .trend-up {
  color: var(--green);
}

body:not(.locked):not(.theme-light) h1,
body:not(.locked):not(.theme-light) h2 {
  color: #fff;
  font-family: Rubik, Inter, system-ui, sans-serif;
  font-weight: 950;
}

body:not(.locked):not(.theme-light) .subtitle,
body:not(.locked):not(.theme-light) .kpi-foot,
body:not(.locked):not(.theme-light) small,
body:not(.locked):not(.theme-light) dialog p,
body:not(.locked):not(.theme-light) dialog li {
  color: var(--muted);
}

body:not(.locked):not(.theme-light) .filters label > span,
body:not(.locked):not(.theme-light) .creative-filters label span,
body:not(.locked):not(.theme-light) .company-filters label span,
body:not(.locked):not(.theme-light) .table-control-form label span,
body:not(.locked):not(.theme-light) .daily-update-controls label,
body:not(.locked):not(.theme-light) th {
  color: rgba(247, 246, 255, .45);
}

body:not(.locked):not(.theme-light) .filters select,
body:not(.locked):not(.theme-light) .filters input,
body:not(.locked):not(.theme-light) .reset-filters,
body:not(.locked):not(.theme-light) .search,
body:not(.locked):not(.theme-light) .view-switch,
body:not(.locked):not(.theme-light) .employee-section-tabs,
body:not(.locked):not(.theme-light) .org-tree-controls,
body:not(.locked):not(.theme-light) .creative-filters select,
body:not(.locked):not(.theme-light) .creative-filters input,
body:not(.locked):not(.theme-light) .company-filters select,
body:not(.locked):not(.theme-light) .company-filters input,
body:not(.locked):not(.theme-light) .daily-update-controls input,
body:not(.locked):not(.theme-light) .chart-actions select,
body:not(.locked):not(.theme-light) .upload-button,
body:not(.locked):not(.theme-light) .icon-button,
body:not(.locked):not(.theme-light) .open-buyer,
body:not(.locked):not(.theme-light) .secondary-button,
body:not(.locked):not(.theme-light) .row-actions button,
body:not(.locked):not(.theme-light) .view-detail,
body:not(.locked):not(.theme-light) .view-button,
body:not(.locked):not(.theme-light) .form-grid input,
body:not(.locked):not(.theme-light) .form-grid select,
body:not(.locked):not(.theme-light) .form-grid textarea,
body:not(.locked):not(.theme-light) .table-control-form input,
body:not(.locked):not(.theme-light) .table-control-form textarea,
body:not(.locked):not(.theme-light) .table-control-toggle,
body:not(.locked):not(.theme-light) .employee-filters input,
body:not(.locked):not(.theme-light) .employee-filters select,
body:not(.locked):not(.theme-light) .employee-profile-section input,
body:not(.locked):not(.theme-light) .employee-profile-section select,
body:not(.locked):not(.theme-light) .employee-profile-section textarea,
body:not(.locked):not(.theme-light) .self-field input,
body:not(.locked):not(.theme-light) .self-remove-photo,
body:not(.locked):not(.theme-light) .file-button,
body:not(.locked):not(.theme-light) .photo-upload-button,
body:not(.locked):not(.theme-light) .calendar-toolbar button,
body:not(.locked):not(.theme-light) .leave-actions button,
body:not(.locked):not(.theme-light) .form-hint {
  border-color: rgba(255, 255, 255, .085);
  color: #fff;
  background: rgba(3, 4, 10, .56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018);
}

body:not(.locked):not(.theme-light) .table-control-form-panel {
  background:
    linear-gradient(145deg, rgba(113, 255, 91, .05), rgba(52, 231, 255, .035)),
    rgba(8, 9, 17, .82);
}

body:not(.locked):not(.theme-light) .table-control-form input,
body:not(.locked):not(.theme-light) .table-control-form textarea {
  background: rgba(3, 4, 10, .64);
}

body:not(.locked):not(.theme-light) .push-message-preview {
  border-color: rgba(113, 255, 91, .2);
  color: #eef1f7;
  background:
    linear-gradient(135deg, rgba(113, 255, 91, .055), rgba(52, 231, 255, .035)),
    rgba(3, 4, 10, .68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

body:not(.locked):not(.theme-light) .push-message-preview b {
  color: #fff;
}

body:not(.locked):not(.theme-light) .push-message-preview small {
  color: rgba(247, 246, 255, .52);
  font-weight: 650;
}

body:not(.locked):not(.theme-light) .push-rule-card {
  border-color: rgba(255, 255, 255, .11);
  background: rgba(4, 5, 12, .6);
}
body:not(.locked):not(.theme-light) .push-filter-bar input,
body:not(.locked):not(.theme-light) .push-filter-bar select { border-color: #252938; color: #f4f6fa; background: #0d0f17; }
body:not(.locked):not(.theme-light) .push-filter-bar input::placeholder { color: #737b8c; }

body:not(.locked):not(.theme-light) .push-rule-card.enabled {
  border-color: rgba(113, 255, 91, .3);
  box-shadow: inset 0 0 0 1px rgba(52, 231, 255, .035);
}

body:not(.locked):not(.theme-light) .push-rule-card h3,
body:not(.locked):not(.theme-light) .push-rule-meta dd {
  color: #f7f6ff;
}

body:not(.locked):not(.theme-light) .push-rule-card > p {
  color: rgba(247, 246, 255, .58);
}

body:not(.locked):not(.theme-light) .push-rule-meta div {
  border: 1px solid rgba(255, 255, 255, .065);
  background: rgba(255, 255, 255, .035);
}

body:not(.locked):not(.theme-light) .push-rule-meta dt {
  color: rgba(247, 246, 255, .42);
}

body:not(.locked):not(.theme-light) .table-control-toggle input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

body:not(.locked):not(.theme-light) .table-control-toggle {
  width: fit-content;
  border-color: rgba(113, 255, 91, .18);
  background: rgba(113, 255, 91, .07);
}

body:not(.locked):not(.theme-light) .table-control-toggle span,
body:not(.locked):not(.theme-light) .table-control-toggle b {
  color: #fff;
}

body:not(.locked):not(.theme-light) .table-control-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(8, 9, 17, .84);
}

body:not(.locked):not(.theme-light) .table-control-card.pending {
  border-color: rgba(255, 217, 141, .82);
  box-shadow: 0 0 0 3px rgba(255, 217, 141, .12), 0 18px 34px rgba(245, 155, 52, .08);
}

body:not(.locked):not(.theme-light) .table-control-card.done {
  border-color: rgba(113, 255, 91, .82);
  box-shadow: 0 0 0 3px rgba(113, 255, 91, .12), 0 18px 34px rgba(18, 168, 98, .10);
}

body:not(.locked):not(.theme-light) .table-control-card.late {
  border-color: rgba(255, 139, 139, .82);
  box-shadow: 0 0 0 3px rgba(255, 139, 139, .12), 0 18px 34px rgba(234, 87, 87, .10);
}

body:not(.locked):not(.theme-light) .table-control-meta span {
  color: rgba(247, 246, 255, .76);
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .04);
}

body:not(.locked):not(.theme-light) .table-control-card.pending .table-control-status {
  color: #ffd98d;
  background: rgba(245, 155, 52, .16);
}

body:not(.locked):not(.theme-light) .table-control-card.late .table-control-status {
  color: #ff8b8b;
  background: rgba(234, 87, 87, .16);
}

body:not(.locked):not(.theme-light) .table-control-card.done .table-control-status {
  color: #71ff5b;
  background: rgba(113, 255, 91, .14);
}

body:not(.locked):not(.theme-light) .view-switch,
body:not(.locked):not(.theme-light) .employee-section-tabs,
body:not(.locked):not(.theme-light) .org-tree-controls {
  background: rgba(3, 4, 10, .64);
}

body:not(.locked):not(.theme-light) .permission-list {
  border-color: rgba(255, 255, 255, .085);
  background: rgba(3, 4, 10, .24);
}

body:not(.locked):not(.theme-light) .permission-list legend {
  color: rgba(247, 246, 255, .54);
}

body:not(.locked):not(.theme-light) .permission-list label {
  min-height: 42px;
  color: rgba(247, 246, 255, .86);
  border: 1px solid rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .045);
}

body:not(.locked):not(.theme-light) .permission-list label:has(input:checked) {
  color: #fff;
  border-color: rgba(113, 255, 91, .32);
  background: rgba(113, 255, 91, .12);
}

body:not(.locked):not(.theme-light) .permission-list label:has(input:disabled) {
  opacity: .62;
}

body:not(.locked):not(.theme-light) .toggle-line {
  align-items: flex-start;
  color: rgba(247, 246, 255, .78);
}

body:not(.locked):not(.theme-light) .toggle-line > span {
  display: grid;
  gap: 3px;
}

body:not(.locked):not(.theme-light) .toggle-line b {
  display: block;
  color: rgba(247, 246, 255, .74);
}

body:not(.locked):not(.theme-light) .toggle-line small {
  display: block;
  color: rgba(247, 246, 255, .48);
  line-height: 1.35;
}

body:not(.locked):not(.theme-light) .view-switch button,
body:not(.locked):not(.theme-light) .employee-section-tabs button,
body:not(.locked):not(.theme-light) .org-tree-controls button {
  color: rgba(247, 246, 255, .5);
  background: transparent;
}

body:not(.locked):not(.theme-light) .view-switch button.active,
body:not(.locked):not(.theme-light) .employee-section-tabs button.active,
body:not(.locked):not(.theme-light) .org-tree-controls button:hover {
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
  box-shadow: none;
}

body:not(.locked):not(.theme-light) input::placeholder {
  color: rgba(247, 246, 255, .34);
}

body:not(.locked):not(.theme-light) .filters select:focus,
body:not(.locked):not(.theme-light) .filters input:focus,
body:not(.locked):not(.theme-light) .search:focus,
body:not(.locked):not(.theme-light) input:focus,
body:not(.locked):not(.theme-light) select:focus,
body:not(.locked):not(.theme-light) textarea:focus {
  outline: 0;
  border-color: rgba(113, 255, 91, .55);
  box-shadow: 0 0 0 3px rgba(113, 255, 91, .12);
}

body:not(.locked):not(.theme-light) .reset-filters:hover,
body:not(.locked):not(.theme-light) .upload-button:hover,
body:not(.locked):not(.theme-light) .icon-button:hover,
body:not(.locked):not(.theme-light) .open-buyer:hover,
body:not(.locked):not(.theme-light) .secondary-button:hover,
body:not(.locked):not(.theme-light) .row-actions button:hover,
body:not(.locked):not(.theme-light) .view-detail:hover,
body:not(.locked):not(.theme-light) .view-button:hover,
body:not(.locked):not(.theme-light) .file-button:hover,
body:not(.locked):not(.theme-light) .photo-upload-button:hover,
body:not(.locked):not(.theme-light) .calendar-toolbar button:hover,
body:not(.locked):not(.theme-light) .leave-actions button:hover {
  color: #05050a;
  border-color: transparent;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
  box-shadow: none;
}

body:not(.locked):not(.theme-light) .detail-primary,
body:not(.locked):not(.theme-light) .more-button,
body:not(.locked):not(.theme-light) .freshness-action {
  border: 0;
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
  box-shadow: none;
}

body:not(.locked):not(.theme-light) .export-data-button {
  border-color: rgba(139, 125, 255, .72);
  color: #fff;
  background: linear-gradient(135deg, #7667f5, #328ce7);
  box-shadow: 0 10px 28px rgba(80, 91, 236, .24);
}

body:not(.locked):not(.theme-light) .export-data-button:hover {
  box-shadow: 0 14px 34px rgba(80, 91, 236, .34);
}

body:not(.locked):not(.theme-light) .freshness-banner {
  border-color: rgba(113, 255, 91, .2);
  background: rgba(7, 10, 14, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

body:not(.locked):not(.theme-light) .freshness-banner.waiting,
body:not(.locked):not(.theme-light) .freshness-banner.weekend {
  border-color: rgba(255, 193, 90, .58);
  background: linear-gradient(90deg, rgba(255, 193, 90, .2), rgba(255, 193, 90, .055)), rgba(7, 10, 14, .84);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 90, .08);
}

body:not(.locked):not(.theme-light) .freshness-banner.waiting .freshness-action,
body:not(.locked):not(.theme-light) .freshness-banner.weekend .freshness-action {
  color: #211300;
  background: linear-gradient(135deg, #ffd86a, #ffb83e);
  box-shadow: 0 6px 18px rgba(255, 184, 62, .16);
}
body:not(.locked):not(.theme-light) .freshness-action:disabled { cursor: default; opacity: 1; }

body:not(.locked):not(.theme-light) .freshness-banner.stale {
  border-color: rgba(255, 96, 109, .28);
  background: linear-gradient(90deg, rgba(255, 96, 109, .13), rgba(255, 255, 255, .025)), rgba(7, 10, 14, .78);
}
body:not(.locked):not(.theme-light) .freshness-action.cancel { color: #fff; background: linear-gradient(135deg, #ff606d, #e43e59); box-shadow: 0 6px 18px rgba(255, 96, 109, .18); }
body.theme-light:not(.locked) .freshness-action.cancel { color: #b92f3d; border-color: #e6a5ac; background: #fff2f3; }
body.theme-light:not(.locked) .freshness-action.cancel:hover { color: #fff; border-color: #d94a4a; background: #d94a4a; }

body:not(.locked):not(.theme-light) .kpi-card {
  position: relative;
  overflow: hidden;
}

body:not(.locked):not(.theme-light) .kpi-card::before,
body:not(.locked):not(.theme-light) .panel::before {
  content: none;
}

body:not(.locked):not(.theme-light) .panel,
body:not(.locked):not(.theme-light) .kpi-card {
  position: relative;
}

body:not(.locked):not(.theme-light) .kpi-title,
body:not(.locked):not(.theme-light) .legend,
body:not(.locked):not(.theme-light) .buyer-card-metrics small,
body:not(.locked):not(.theme-light) .metric small {
  color: rgba(247, 246, 255, .5);
}

body:not(.locked):not(.theme-light) .kpi-icon,
body:not(.locked):not(.theme-light) .pill.good,
body:not(.locked):not(.theme-light) .score-badge.good,
body:not(.locked):not(.theme-light) .buyer-score,
body:not(.locked):not(.theme-light) .detail-badge,
body:not(.locked):not(.theme-light) .status.scaling,
body:not(.locked):not(.theme-light) .offer-indicator.active > span {
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
}

body:not(.locked):not(.theme-light) .pill.bad,
body:not(.locked):not(.theme-light) .status.stop {
  color: #fff;
  background: rgba(255, 96, 109, .22);
}

body:not(.locked):not(.theme-light) .insight-row,
body:not(.locked):not(.theme-light) .campaign-row,
body:not(.locked):not(.theme-light) .allocation-row,
body:not(.locked):not(.theme-light) .org-list-row {
  border-color: rgba(255, 255, 255, .07);
  background: rgba(3, 4, 10, .34);
}

body:not(.locked):not(.theme-light) .empty-state {
  color: rgba(247, 246, 255, .68);
  border-color: rgba(255, 255, 255, .075);
  background: rgba(3, 4, 10, .42);
}

body:not(.locked):not(.theme-light) table {
  color: rgba(247, 246, 255, .84);
}

body:not(.locked):not(.theme-light) td {
  border-bottom-color: rgba(255, 255, 255, .055);
}

body:not(.locked):not(.theme-light) .table-wrap th {
  background: rgba(8, 9, 17, .98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .075);
}

body:not(.locked):not(.theme-light) .table-wrap th.generic-sort-active,
body:not(.locked):not(.theme-light) .sort-button.active,
body:not(.locked):not(.theme-light) .project-sort-button.active,
body:not(.locked):not(.theme-light) .daily-update-sort-button.active {
  color: #fff;
}

body:not(.locked):not(.theme-light) tr:hover td {
  background: rgba(113, 255, 91, .045);
}

body:not(.locked):not(.theme-light) .chart-label,
body:not(.locked):not(.theme-light) .chart-axis {
  fill: rgba(247, 246, 255, .62);
}

body:not(.locked):not(.theme-light) .chart svg line {
  stroke: rgba(255, 255, 255, .075);
}
body:not(.locked):not(.theme-light) .chart .chart-week-separator { stroke: rgba(255, 255, 255, .28); }
body:not(.locked):not(.theme-light) .chart .chart-week-band { stroke: rgba(255, 255, 255, .14); }
body:not(.locked):not(.theme-light) .chart .chart-week-label { fill: rgba(247, 246, 255, .7); }

body:not(.locked):not(.theme-light) .chart-bar-spend {
  fill: rgba(195, 205, 224, .62);
}

body:not(.locked):not(.theme-light) .chart-bar-deposits {
  fill: #71ff5b;
}
body:not(.locked):not(.theme-light) .spend-key { background: rgba(195, 205, 224, .78); }
body:not(.locked):not(.theme-light) .deposit-key { background: #71ff5b; }

body:not(.locked):not(.theme-light) .detail-bar span {
  background: linear-gradient(90deg, #71ff5b, #34e7ff);
}

body:not(.locked):not(.theme-light) .detail-bar {
  background: rgba(255, 255, 255, .08);
}

body:not(.locked):not(.theme-light) .chart-tooltip {
  border-color: rgba(113, 255, 91, .2);
  color: #fff;
  background: rgba(5, 5, 12, .96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

body:not(.locked):not(.theme-light) .chart-tooltip span {
  color: rgba(247, 246, 255, .62);
}

body:not(.locked):not(.theme-light) .toast {
  color: #fff;
  background: rgba(8, 9, 17, .96);
  border: 1px solid rgba(255, 255, 255, .08);
}

body:not(.locked):not(.theme-light) .detail-kpi.metric-positive {
  border-color: rgba(113, 255, 91, .38);
  background: rgba(34, 126, 76, .24);
  box-shadow: inset 0 0 0 1px rgba(113, 255, 91, .12);
}
body:not(.locked):not(.theme-light) .detail-kpi.metric-positive small,
body:not(.locked):not(.theme-light) .detail-kpi.metric-positive strong { color: #71ff8c; }
body:not(.locked):not(.theme-light) .detail-kpi.metric-negative {
  border-color: rgba(255, 100, 112, .4);
  background: rgba(156, 38, 54, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 100, 112, .12);
}
body:not(.locked):not(.theme-light) .detail-kpi.metric-negative small,
body:not(.locked):not(.theme-light) .detail-kpi.metric-negative strong { color: #ff7f89; }

body:not(.locked):not(.theme-light) dialog::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: none;
}

/* Scroll-performance safeguards. Off-screen dashboard tables are skipped by
   the rendering engine until they approach the viewport. */
body:not(.locked):not(.theme-light) #dailyUpdates,
body:not(.locked):not(.theme-light) #projectSummary,
body:not(.locked):not(.theme-light) #report,
body:not(.locked):not(.theme-light) .management-view > .panel,
body:not(.locked):not(.theme-light) .management-view > section {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

body:not(.locked):not(.theme-light) .render-pending {
  min-height: 300px;
}

body:not(.locked):not(.theme-light) .render-pending::after {
  content: 'Таблица загрузится при прокрутке';
  display: grid;
  min-height: 190px;
  place-items: center;
  color: rgba(247, 246, 255, .42);
  font-size: 11px;
  font-weight: 750;
}

body:not(.locked):not(.theme-light) .table-wrap {
  contain: paint;
  overscroll-behavior: contain;
}

body:not(.locked):not(.theme-light) .table-wrap th {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .075);
}

body:not(.locked):not(.theme-light) .dialog-close {
  color: rgba(247, 246, 255, .58);
}

body:not(.locked):not(.theme-light) .dialog-close:hover {
  color: #fff;
}

body:not(.locked):not(.theme-light) .design-task-dialog .dialog-close {
  color: rgba(247, 246, 255, .7);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(17, 18, 29, .94);
}

body:not(.locked):not(.theme-light) .design-task-dialog .dialog-close:hover {
  color: #ff7f89;
  border-color: rgba(255, 100, 112, .55);
  background: rgba(126, 31, 45, .34);
  box-shadow: 0 8px 24px rgba(255, 70, 88, .12);
}

body:not(.locked):not(.theme-light) .self-profile-card,
body:not(.locked):not(.theme-light) .employee-photo-editor,
body:not(.locked):not(.theme-light) .employee-profile-grid > div,
body:not(.locked):not(.theme-light) .profile-note {
  border-color: rgba(255, 255, 255, .085);
  color: rgba(247, 246, 255, .9);
  background:
    linear-gradient(145deg, rgba(113, 255, 91, .045), rgba(52, 231, 255, .025)),
    rgba(3, 4, 10, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

body:not(.locked):not(.theme-light) .self-profile-meta strong,
body:not(.locked):not(.theme-light) .employee-profile-grid strong {
  color: #fff;
}

body:not(.locked):not(.theme-light) .self-profile-meta small,
body:not(.locked):not(.theme-light) .employee-photo-editor p,
body:not(.locked):not(.theme-light) .employee-profile-grid small,
body:not(.locked):not(.theme-light) .employee-profile-head p:not(.eyebrow),
body:not(.locked):not(.theme-light) .profile-note {
  color: rgba(247, 246, 255, .62);
}

body:not(.locked):not(.theme-light) .file-button {
  width: fit-content;
  border: 0;
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
  box-shadow: 0 10px 26px rgba(52, 231, 255, .16);
}

body:not(.locked):not(.theme-light) .photo-upload-button {
  border: 0;
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
  box-shadow: 0 10px 26px rgba(52, 231, 255, .16);
}

body:not(.locked):not(.theme-light) .remove-photo-line {
  color: #ff8f8f;
}

body:not(.locked):not(.theme-light) .remove-photo-line input,
body:not(.locked):not(.theme-light) .self-remove-photo input {
  accent-color: #71ff5b;
}

body:not(.locked):not(.theme-light) .self-remove-photo b {
  color: #fff;
}

body:not(.locked):not(.theme-light) .self-remove-photo small {
  color: rgba(247, 246, 255, .58);
}

body:not(.locked):not(.theme-light) .buyer-card:first-child {
  border-color: rgba(113, 255, 91, .25);
  background: linear-gradient(145deg, rgba(28, 57, 43, .86), rgba(6, 9, 12, .94));
}

body:not(.locked):not(.theme-light) .organization-viewport,
body:not(.locked):not(.theme-light) .calendar-grid,
body:not(.locked):not(.theme-light) .calendar-day,
body:not(.locked):not(.theme-light) .calendar-day.outside,
body:not(.locked):not(.theme-light) .org-person {
  border-color: rgba(255, 255, 255, .075);
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px),
    rgba(8, 9, 17, .72);
  background-size: 24px 24px, 24px 24px, auto;
}

body:not(.locked):not(.theme-light) .calendar-day:hover,
body:not(.locked):not(.theme-light) .org-person:hover {
  border-color: rgba(113, 255, 91, .5);
  background-color: rgba(113, 255, 91, .08);
}

body:not(.locked):not(.theme-light) .calendar-day.today .calendar-day-number {
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
}

body:not(.locked):not(.theme-light) .employee-avatar,
body:not(.locked):not(.theme-light) .sidebar-photo,
body:not(.locked):not(.theme-light) .avatar {
  color: #05050a;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
  box-shadow: 0 0 18px rgba(113, 255, 91, .2);
}

body:not(.locked):not(.theme-light) .status.watch,
body:not(.locked):not(.theme-light) .leave-event.dayoff {
  color: #ffe5a7;
  background: rgba(255, 193, 90, .14);
}

body:not(.locked):not(.theme-light) .status.learning,
body:not(.locked):not(.theme-light) .volume-badge,
body:not(.locked):not(.theme-light) .design-meta em,
body:not(.locked):not(.theme-light) .designer-stat-row span,
body:not(.locked):not(.theme-light) .design-format-chips span,
body:not(.locked):not(.theme-light) .employee-meta span,
body:not(.locked):not(.theme-light) .leave-balance-preview span {
  color: rgba(247, 246, 255, .68);
  background: rgba(255, 255, 255, .075);
}

body:not(.locked):not(.theme-light) .form-grid input:disabled,
body:not(.locked):not(.theme-light) .form-grid select:disabled,
body:not(.locked):not(.theme-light) .form-grid textarea:disabled {
  color: rgba(247, 246, 255, .36);
  background: rgba(255, 255, 255, .045);
}

body:not(.locked):not(.theme-light) .employee-card.absent-today,
body:not(.locked):not(.theme-light) .calendar-person.absent {
  border-color: rgba(255, 96, 109, .28);
  background: rgba(255, 96, 109, .1);
}

body:not(.locked):not(.theme-light) .employee-card.birthday-today,
body:not(.locked):not(.theme-light) .calendar-person.birthday {
  border-color: rgba(255, 193, 90, .32);
  background: rgba(255, 193, 90, .1);
}

body:not(.locked):not(.theme-light) .employee-table tr.absent-today td {
  background: rgba(255, 96, 109, .075);
}

body:not(.locked):not(.theme-light) .employee-table tr.birthday-today td {
  background: rgba(255, 193, 90, .075);
}

body:not(.locked):not(.theme-light) .creative-kind,
body:not(.locked):not(.theme-light) .design-priority,
body:not(.locked):not(.theme-light) .leave-status {
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

body:not(.locked):not(.theme-light) .design-card {
  border-color: rgba(255, 255, 255, .09);
  color: #f7f6ff;
  background: rgba(13, 14, 25, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}

body:not(.locked):not(.theme-light) .design-card:hover {
  border-color: rgba(113, 255, 91, .34);
  background: rgba(20, 25, 31, .98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(113, 255, 91, .05);
}

body:not(.locked):not(.theme-light) .design-card small,
body:not(.locked):not(.theme-light) .design-card .design-foot,
body:not(.locked):not(.theme-light) .design-card .design-created {
  color: rgba(247, 246, 255, .58);
}

body:not(.locked):not(.theme-light) .design-card.deadline-overdue .design-foot {
  color: #ff7c87;
}

body:not(.locked):not(.theme-light) .designer-column-head span {
  color: #08110c;
  background: linear-gradient(135deg, #78ff62, #34e7ff);
}

body:not(.locked):not(.theme-light) .design-timeline {
  border-top-color: rgba(255, 255, 255, .09);
}

body:not(.locked):not(.theme-light) .design-timeline-grid div,
body:not(.locked):not(.theme-light) .design-timeline-grid div.filled {
  border-color: rgba(255, 255, 255, .09);
  color: #f7f6ff;
  background: rgba(13, 14, 25, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}

body:not(.locked):not(.theme-light) .design-timeline-grid div.filled {
  border-color: rgba(113, 255, 91, .28);
  background: rgba(113, 255, 91, .08);
}

body:not(.locked):not(.theme-light) .design-timeline-grid span {
  color: rgba(247, 246, 255, .54);
}

body:not(.locked):not(.theme-light) .design-timeline-grid b {
  color: #f7f6ff;
}

body:not(.locked):not(.theme-light) .design-history p {
  border-top-color: rgba(255, 255, 255, .08);
}

body:not(.locked):not(.theme-light) .design-history b {
  color: rgba(247, 246, 255, .58);
}

body:not(.locked):not(.theme-light) .offer-indicator.missing > span {
  border-color: #ff606d;
  background: transparent;
  box-shadow: 0 0 0 3px rgba(255, 96, 109, .14);
}

body:not(.locked):not(.theme-light) .offer-indicator.exists > span {
  background: #34e7ff;
  box-shadow: 0 0 0 3px rgba(52, 231, 255, .14);
}

body:not(.locked):not(.theme-light) .table-wrap::-webkit-scrollbar,
body:not(.locked):not(.theme-light) .organization-viewport::-webkit-scrollbar,
body:not(.locked):not(.theme-light) .leave-request-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body:not(.locked):not(.theme-light) .table-wrap::-webkit-scrollbar-track,
body:not(.locked):not(.theme-light) .organization-viewport::-webkit-scrollbar-track,
body:not(.locked):not(.theme-light) .leave-request-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
}

body:not(.locked):not(.theme-light) .table-wrap::-webkit-scrollbar-thumb,
body:not(.locked):not(.theme-light) .organization-viewport::-webkit-scrollbar-thumb,
body:not(.locked):not(.theme-light) .leave-request-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 5, 12, .92);
  border-radius: 999px;
  background: rgba(113, 255, 91, .48);
}

.table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.table-pager button {
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-weight: 850;
}

body:not(.locked):not(.theme-light) .table-pager {
  color: rgba(247, 246, 255, .58);
}

body:not(.locked):not(.theme-light) .table-pager button {
  border-color: rgba(113, 255, 91, .22);
  color: #fff;
  background: rgba(5, 5, 12, .72);
}

body:not(.locked):not(.theme-light) .table-pager button:hover {
  border-color: rgba(113, 255, 91, .5);
  background: rgba(113, 255, 91, .1);
}

.danger-button {
  min-height: 48px;
  margin-right: auto;
  padding: 0 22px;
  border: 1px solid rgba(255, 92, 105, .55);
  border-radius: 14px;
  background: rgba(255, 72, 87, .1);
  color: #ff6b75;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.danger-button:hover:not(:disabled) {
  border-color: #ff6b75;
  background: rgba(255, 72, 87, .18);
  transform: translateY(-1px);
}

.danger-button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.push-rule-recipients {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(113, 255, 91, .15);
  border-radius: 12px;
  background: rgba(5, 5, 12, .35);
}

.push-rule-recipients > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.push-rule-recipients select {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #fff;
  background: #090912;
  font: inherit;
}

.push-recipient-hint {
  margin: -2px 0 2px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  line-height: 1.45;
}

.push-rule-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.push-rule-schedule > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.push-rule-schedule > label > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: #090912;
}

.push-rule-schedule input {
  width: 64px;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 850;
}

.push-rule-schedule small {
  color: rgba(255, 255, 255, .55);
  font-size: 9px;
}

.push-recipient-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 180px;
  overflow: auto;
}

.push-recipient-checks[hidden] { display: none; }

.push-recipient-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}

.push-recipient-checks label span { display: grid; font-size: 10px; font-weight: 800; }
.push-recipient-checks label small { color: var(--muted); font-size: 8px; font-weight: 650; }
.push-recipient-checks input { accent-color: #62ff73; }
.push-recipient-save { justify-self: start; min-height: 38px; }

@media (max-width: 780px) {
  .push-recipient-checks { grid-template-columns: 1fr; }
  .push-rule-schedule { grid-template-columns: 1fr; }
}

/* Offers shared between several teams */
.offer-team-allocation-editor {
  padding: 16px;
  border: 1px solid rgba(113, 255, 91, .2);
  border-radius: 16px;
  background: rgba(5, 5, 12, .46);
}

.offer-team-editor-head,
.offer-team-limit-row,
.offer-team-pills {
  display: flex;
  align-items: center;
}

.offer-team-editor-head { justify-content: space-between; gap: 18px; }
.offer-team-editor-head > div { display: grid; gap: 5px; }
.offer-team-editor-head b { color: #fff; font-size: 11px; letter-spacing: .09em; }
.offer-team-editor-head small { color: var(--muted); line-height: 1.45; }
.offer-team-editor-head > span,
.team-pill {
  padding: 6px 10px;
  border: 1px solid rgba(52, 231, 255, .25);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(52, 231, 255, .08);
  font-size: 10px;
  font-weight: 850;
}

.offer-team-limit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
}

.offer-team-limit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(118px, 160px);
  gap: 12px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.offer-team-limit-row label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; color: #fff; font-weight: 800; }
.offer-team-limit-row label span { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.offer-team-limit-row input[type='checkbox'] { accent-color: #62ff73; }
.offer-team-limit-row input[type='number'] {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  color: #fff;
  background: #090912;
  font: inherit;
  font-weight: 800;
}
.offer-team-limit-row input:disabled { opacity: .38; }

body.theme-light:not(.locked) .offer-team-allocation-editor {
  border-color: #b9d9cc;
  background: linear-gradient(145deg, #f4fbf7, #f3f7ff);
  box-shadow: inset 0 3px #22b879;
}
body.theme-light:not(.locked) .offer-team-editor-head b { color: #1d2939; }
body.theme-light:not(.locked) .offer-team-editor-head small { color: #637083; }
body.theme-light:not(.locked) .offer-team-editor-head > span {
  color: #087b67;
  border-color: #8fd8cc;
  background: #e5f8f4;
}
body.theme-light:not(.locked) .offer-team-limit-row {
  border-color: #d3dce7;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 13px rgba(35, 50, 70, .045);
}
body.theme-light:not(.locked) .offer-team-limit-row label { color: #202938; }
body.theme-light:not(.locked) .offer-team-limit-row input[type='number'] {
  color: #172033;
  border-color: #cbd5e1;
  background: #fff;
}
body.theme-light:not(.locked) .offer-team-limit-row input[type='number']:focus {
  outline: 2px solid rgba(34, 184, 121, .2);
  border-color: #22b879;
}
body.theme-light:not(.locked) .offer-team-limit-row input:disabled {
  color: #7a8493;
  border-color: #e0e5eb;
  background: #edf0f4;
  opacity: 1;
}
.offer-team-pills { flex-wrap: wrap; gap: 5px; min-width: 130px; }
.allocation-team-select {
  display: grid;
  grid-template-columns: auto minmax(170px, 240px);
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}
.allocation-team-select select {
  width: 100%;
  min-height: 38px;
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  cursor: pointer;
}
.allocation-team-select select:disabled { cursor: not-allowed; opacity: .68; }

body:not(.locked):not(.theme-light) .allocation-dialog .allocation-summary span {
  border-color: rgba(255, 255, 255, .09);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(113, 255, 91, .035), rgba(52, 231, 255, .025)),
    rgba(3, 4, 10, .62);
}
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-summary small { color: rgba(247, 246, 255, .5); }
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-row input,
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-note input,
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-team-select select {
  border-color: rgba(255, 255, 255, .1);
  color: #fff;
  background: rgba(3, 4, 10, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-team-select select:disabled {
  color: rgba(247, 246, 255, .72);
  background: rgba(255, 255, 255, .055);
  opacity: 1;
}
body:not(.locked):not(.theme-light) .allocation-dialog input::placeholder { color: rgba(247, 246, 255, .32); }
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-row input:focus,
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-note input:focus,
body:not(.locked):not(.theme-light) .allocation-dialog .allocation-team-select select:focus {
  border-color: rgba(113, 255, 91, .5);
  color: #fff;
  background: rgba(8, 12, 16, .92);
  box-shadow: 0 0 0 3px rgba(113, 255, 91, .08);
}

@media (max-width: 680px) {
  .allocation-summary { grid-template-columns: 1fr; }
  .allocation-team-select { grid-template-columns: 1fr; width: 100%; }
}

/* Dense data tables: each value reads as a separate cell while the table keeps its own scroll. */
body:not(.locked):not(.theme-light) { overflow-x: hidden; }
body:not(.locked):not(.theme-light) .app-main,
body:not(.locked):not(.theme-light) .view,
body:not(.locked):not(.theme-light) .panel { min-width: 0; }
body:not(.locked):not(.theme-light) .table-wrap { max-width: 100%; padding: 0; border: 1px solid rgba(255, 255, 255, .11); border-radius: 3px; background: rgba(4, 5, 11, .4); overscroll-behavior-inline: contain; }
body:not(.locked):not(.theme-light) .table-wrap > table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}
body:not(.locked):not(.theme-light) .table-wrap > table th,
body:not(.locked):not(.theme-light) .table-wrap > table td {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  border-radius: 0;
}
body:not(.locked):not(.theme-light) .table-wrap > table tr > :last-child { border-right: 0; }
body:not(.locked):not(.theme-light) .table-wrap > table tbody tr:last-child > td { border-bottom: 0; }
body:not(.locked):not(.theme-light) .table-wrap > table th {
  padding: 11px 13px;
  background: rgba(19, 20, 31, .99);
}
body:not(.locked):not(.theme-light) .table-wrap > table td {
  padding: 12px 13px;
  background: rgba(14, 14, 25, .9);
  background-clip: padding-box;
}
body:not(.locked):not(.theme-light) .table-wrap > table tbody tr:hover td {
  border-color: rgba(113, 255, 91, .2);
  background: rgba(22, 35, 31, .94);
}

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

/* Facebook naming generator */
.generator-view { display: grid; gap: 18px; min-width: 0; }
.generator-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.generator-hero h2, .generator-results-panel h2, .generator-dictionary-panel h2 { margin: 4px 0 0; }
.generator-tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 4, 12, .55); }
.generator-tabs button { min-width: 126px; padding: 11px 16px; border: 0; border-radius: 9px; color: #9297a5; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.generator-tabs button.active { color: #07120c; background: linear-gradient(120deg, #67ff67, #32ddeb); box-shadow: 0 8px 24px rgba(58, 238, 177, .18); }
:is(#generatorBuilderPanel,#unityGeneratorBuilderPanel) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.generator-form-panel { overflow: hidden; padding: 0; }
.generator-sheet-title { padding: 17px 22px; border-bottom: 1px solid rgba(103,255,103,.3); color: #07110a; background: linear-gradient(100deg, #9dce8b, #c4deb7); font-size: clamp(22px, 2vw, 34px); font-weight: 950; text-align: center; }
.generator-form-panel form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px 22px 22px; }
.generator-media-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid rgba(101,238,131,.28); border-radius: 10px; color: #a8edbd; background: linear-gradient(90deg, rgba(101,238,131,.13), rgba(50,221,235,.06)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.generator-media-notice > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; color: #07120c; background: linear-gradient(135deg, #67ff67, #32ddeb); font-size: 16px; font-weight: 900; }
.generator-media-notice div { min-width: 0; display: grid; gap: 3px; }
.generator-media-notice strong { color: #dfffe8; font-size: 11px; }
.generator-media-notice small { color: #91aa9a; font-size: 10px; line-height: 1.35; }
.generator-form-panel label { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 0; min-width: 0; border: 1px solid rgba(255,255,255,.07); border-bottom: 0; background: rgba(15,16,27,.82); }
.generator-form-panel label:first-child { border-radius: 10px 10px 0 0; }
.generator-form-panel label > span { align-self: stretch; display: flex; align-items: center; padding: 12px 14px; border-right: 1px solid rgba(255,255,255,.08); color: #e0e4eb; background: rgba(106,81,31,.12); font-size: 12px; font-weight: 900; }
.generator-dictionary-card h3 { color: #8e94a3; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.generator-form-panel input, .generator-form-panel select, .generator-form-panel textarea { width: 100%; min-width: 0; min-height: 44px; border: 0; border-radius: 0; color: #f5f7fb; background: rgba(4,5,13,.42); box-shadow: none; resize: vertical; }
.generator-dictionary-add textarea, .generator-dictionary-search input { width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; color: #f5f7fb; background: rgba(4, 5, 13, .72); }
.generator-form-panel input:focus, .generator-form-panel select:focus, .generator-form-panel textarea:focus { position: relative; z-index: 1; outline: 1px solid #65ee83; }
.generator-form-panel input[readonly] { color: #aeb4c0; background: rgba(8, 9, 17, .48); }
.generator-wide { grid-column: auto; }
.generator-creative-field { grid-template-rows: auto auto auto; }
.generator-creative-picker { grid-column: 2; grid-row: 1 / 3; min-width: 0; background: rgba(4,5,13,.42); }
.generator-creative-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid rgba(255,255,255,.08); }
.generator-creative-search-row button { min-width: 92px; border: 0; border-left: 1px solid rgba(255,255,255,.08); color: #65ee83; background: rgba(101,238,131,.08); font-weight: 800; cursor: pointer; }
.generator-creative-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 190px; padding: 9px; overflow: auto; }
.generator-creative-option { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 8px !important; padding: 8px 9px; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 7px; background: rgba(255,255,255,.03) !important; cursor: pointer; }
.generator-creative-option input { width: 15px; min-height: 15px; accent-color: #16b36b; }
.generator-creative-option span { overflow: hidden; text-overflow: ellipsis; color: #edf1f5; font-size: 11px; font-weight: 750; }
.generator-creative-option small { color: #7f8998; font-size: 9px; white-space: nowrap; }
.generator-creative-empty { padding: 18px; color: #8f97a5; text-align: center; font-size: 11px; grid-column: 1 / -1; }
.generator-selected-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-top: 1px solid rgba(255,255,255,.08); }
.generator-selected-head strong { color: #9aa4b3; font-size: 10px; text-transform: uppercase; }
.generator-selected-head button { padding: 5px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: #ff858f; background: rgba(255,92,104,.08); font-size: 9px; font-weight: 800; cursor: pointer; }
.generator-selected-head button:disabled { opacity: .35; cursor: default; }
.generator-selected-creatives { display: flex; flex-wrap: wrap; gap: 6px; min-height: 45px; max-height: 120px; padding: 8px 10px 10px; overflow: auto; }
.generator-selected-creatives button { display: inline-flex; align-items: center; gap: 7px; max-width: 260px; padding: 6px 8px; border: 1px solid rgba(101,238,131,.25); border-radius: 999px; color: #9feab8; background: rgba(101,238,131,.08); font-size: 10px; cursor: pointer; }
.generator-selected-creatives button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generator-selected-creatives button b { color: #ff858f; font-size: 14px; line-height: 1; }
.generator-selected-empty { align-self: center; color: #747b8b; font-size: 10px; }
.generator-creative-picker .generator-creative-value { position: absolute; width: 1px; min-height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.generator-creative-field > small { grid-column: 2; grid-row: 3; min-height: 16px; padding: 7px 12px 9px; color: #747b8b; background: rgba(4,5,13,.42); font-size: 11px; }
.generator-creative-field small.ready { color: #64ee9a; }
.generator-parse-status { min-height: 43px; padding: 12px 14px; border: 1px solid rgba(255, 191, 72, .28); border-radius: 0 0 10px 10px; color: #d9b46c; background: rgba(117, 72, 9, .12); font-size: 12px; }
.generator-parse-status.ready { border-color: rgba(79, 244, 139, .35); color: #71f0a0; background: rgba(31, 119, 61, .12); }
.generator-parse-status.error { border-color: rgba(255, 81, 101, .35); color: #ff8795; background: rgba(143, 22, 40, .12); }
.generator-results-panel { position: static; min-width: 0; }
.generator-empty { padding: 44px 20px; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; color: #777e8d; text-align: center; }
.generator-results { display: grid; gap: 10px; max-height: 570px; overflow: auto; scrollbar-color: #3e9850 transparent; }
.generator-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid rgba(93, 255, 117, .16); border-radius: 11px; background: rgba(7, 9, 16, .74); }
.generator-result code { overflow-wrap: anywhere; color: #e7ebf3; font: 600 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.generator-result button { align-self: stretch; padding: 8px 12px; border: 1px solid rgba(92, 252, 137, .28); border-radius: 8px; color: #68f398; background: rgba(49, 145, 79, .11); font-weight: 800; cursor: pointer; }
.generator-memory-panel { min-width: 0; }
.generator-history-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.generator-history-search { grid-column: 1 / -1; }
.generator-history-filters label { display: grid; gap: 6px; color: #777e8d; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.generator-history-filters select { min-height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #e7ebf3; background: #0c1018; }
.generator-history-filters input { min-height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #e7ebf3; background: #0c1018; }
.generator-history { display: grid; gap: 9px; max-height: 430px; overflow: auto; }
.generator-history-month { display: grid; gap: 8px; }
.generator-history-month > h3 { display: flex; align-items: center; gap: 8px; margin: 5px 2px 1px; color: #8e96a6; font-size: 11px; text-transform: uppercase; }
.generator-history-month > h3 span { padding: 3px 7px; border-radius: 999px; color: #67ef97; background: rgba(49,145,79,.12); font-size: 9px; }
.generator-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(7,9,16,.62); }
.generator-history-names { display: grid; gap: 4px; min-width: 0; }
.generator-history-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.generator-history-item strong, .generator-history-item small { display: block; }
.generator-history-item strong { overflow: hidden; color: #e7ebf3; font: 700 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.generator-history-item small { margin-top: 4px; color: #777e8d; font-size: 9px; }
.generator-history-item button { padding: 8px 11px; border: 1px solid rgba(92,252,137,.25); border-radius: 8px; color: #68f398; background: rgba(49,145,79,.1); font-weight: 800; cursor: pointer; }
.generator-dictionary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.generator-dictionary-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(5, 6, 14, .62); }
.generator-dictionary-card[open] { border-color: rgba(89, 239, 133, .25); box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.generator-dictionary-card summary { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; color: #e5e8ef; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none; user-select: none; }
.generator-dictionary-card summary::-webkit-details-marker { display: none; }
.generator-dictionary-card summary::after { content: '›'; margin-left: 2px; color: #6e7584; font-size: 22px; line-height: 1; transform: rotate(90deg); transition: transform .15s ease; }
.generator-dictionary-card[open] summary::after { transform: rotate(-90deg); }
.generator-dictionary-card summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generator-dictionary-card summary b { margin-left: auto; padding: 4px 8px; border-radius: 999px; color: #68ef93; background: rgba(50, 159, 83, .13); font-size: 11px; }
.generator-dictionary-body { display: grid; gap: 10px; padding: 0 14px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.generator-dictionary-search { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding-top: 12px; color: #7c8391; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.generator-dictionary-search input { min-height: 38px; padding: 8px 11px; }
.generator-dictionary-values { display: grid; max-height: 230px; overflow: auto; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; scrollbar-color: #338b4a transparent; }
.generator-dictionary-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; min-height: 37px; padding-left: 11px; border-bottom: 1px solid rgba(255,255,255,.06); color: #d9dee7; font-size: 11px; }
.generator-dictionary-row:last-child { border-bottom: 0; }
.generator-dictionary-row:hover { background: rgba(72, 220, 114, .06); }
.generator-dictionary-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generator-dictionary-row button { align-self: stretch; border: 0; border-left: 1px solid rgba(255,255,255,.06); color: #8b91a0; background: transparent; font-size: 17px; cursor: pointer; }
.generator-dictionary-row button:hover { color: #ff6d7d; background: rgba(173, 38, 55, .1); }
.generator-dictionary-empty { margin: 0; padding: 20px 12px; color: #6f7582; font-size: 11px; text-align: center; }
.generator-dictionary-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.generator-dictionary-add textarea { min-height: 64px; padding: 10px 11px; resize: vertical; }
.generator-dictionary-add button { padding: 10px 15px; border: 0; border-radius: 9px; color: #06110b; background: #62ee83; font-weight: 900; cursor: pointer; }
.generator-dictionary-locked { margin: 0; padding: 9px 11px; border-radius: 9px; color: #888f9c; background: rgba(255,255,255,.035); font-size: 11px; }

@media (max-width: 1180px) {
  :is(#generatorBuilderPanel,#unityGeneratorBuilderPanel) { grid-template-columns: 1fr; }
  .generator-results-panel { position: static; }
  .generator-dictionary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .generator-hero { align-items: stretch; flex-direction: column; }
  .generator-tabs { width: 100%; }
  .generator-tabs button { flex: 1; min-width: 0; }
  .generator-form-panel form, .generator-dictionary-grid { grid-template-columns: 1fr; }
  .generator-form-panel label { grid-template-columns: 1fr; }
  .generator-form-panel label > span { padding-bottom: 6px; border-right: 0; }
  .generator-creative-picker, .generator-creative-field > small { grid-column: 1; }
  .generator-creative-picker { grid-row: 2 / 4; }
  .generator-creative-field > small { grid-row: 4; }
  .generator-creative-options { grid-template-columns: 1fr; }
}
/* Database backups */
.database-view { display: grid; gap: 20px; min-width: 0; }
.database-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.database-hero-actions, .database-backup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.database-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.database-summary-card { min-width: 0; padding: 22px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 18px; background: rgba(12,12,22,.82); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.database-summary-card small, .database-summary-card span { display: block; color: var(--muted, #8e92a3); }
.database-summary-card strong { display: block; margin: 9px 0 5px; color: #fff; font-size: clamp(25px, 2.3vw, 38px); overflow-wrap: anywhere; }
.database-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.database-action-card { display: flex; flex-direction: column; min-height: 270px; }
.database-action-card p:not(.eyebrow) { color: var(--muted, #989cab); line-height: 1.65; }
.database-action-card .database-full-button { width: 100%; margin-top: auto; }
.database-danger-card { border-color: rgba(242, 85, 96, .28); }
.database-file-field { display: flex; align-items: center; justify-content: center; min-height: 58px; margin: 12px 0; padding: 12px 16px; border: 1px dashed rgba(255,255,255,.22); border-radius: 13px; color: #dfe2ea; background: rgba(255,255,255,.035); cursor: pointer; text-align: center; }
.database-file-field:hover { border-color: #65f27b; background: rgba(101,242,123,.07); }
.database-file-field input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.database-settings-form { display: grid; grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(170px, .8fr)) minmax(190px, .8fr) auto; gap: 14px; align-items: end; }
.database-settings-form > label:not(.database-switch) { display: grid; gap: 8px; color: var(--muted, #989cab); }
.database-settings-form input[type="number"], .database-settings-form input[type="text"] { width: 100%; }
.database-settings-form label > small { color: var(--muted, #989cab); font-size: 9px; line-height: 1.35; }
.database-switch { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; cursor: pointer; }
.database-switch input { width: 20px; height: 20px; accent-color: #65f27b; }
.database-switch span, .database-switch small, .database-next small { display: block; }
.database-switch small, .database-next small { margin-top: 4px; color: var(--muted, #989cab); }
.database-next { min-height: 58px; padding: 10px 14px; border-radius: 13px; background: rgba(255,255,255,.035); }
.database-next strong { display: block; margin-top: 5px; color: #fff; }
.database-backup-list { display: grid; gap: 8px; max-height: 560px; overflow: auto; padding-right: 5px; }
.database-backup-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(7,7,15,.48); }
.database-backup-row b { display: block; color: #f5f6fa; overflow-wrap: anywhere; }
.database-backup-row small { display: block; margin-top: 5px; color: var(--muted, #989cab); }
.database-backup-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: #08110d; font-weight: 900; background: linear-gradient(135deg, #65f27b, #35ddeb); }

@media (max-width: 1100px) {
  .database-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .database-settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .database-hero { align-items: stretch; flex-direction: column; }
  .database-grid, .database-summary, .database-settings-form { grid-template-columns: 1fr; }
  .database-backup-row { grid-template-columns: 42px minmax(0, 1fr); }
  .database-backup-actions { grid-column: 1 / -1; }
}
.creative-source-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 14px;
  padding: 6px 9px;
  border: 1px solid rgba(91, 255, 104, .22);
  border-radius: 9px;
  background: rgba(91, 255, 104, .06);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.25;
}

.creative-source-note strong {
  color: var(--text);
  font-size: 11px !important;
  font-weight: 800;
}

.creative-source-note__icon,
.creative-source-help > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #07110b;
  background: linear-gradient(135deg, #65f27b, #35ddeb);
  font-size: 10px !important;
  font-weight: 900;
}

.creative-source-note__text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 5px;
  min-width: 0;
}

.creative-source-note__text span { font-size: 11px !important; }

.creative-source-help {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  cursor: help;
  outline: none;
}

.creative-source-help > span:first-child {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.creative-source-help__popover {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(420px, calc(100vw - 64px));
  padding: 12px 14px;
  border: 1px solid rgba(91,255,104,.28);
  border-radius: 12px;
  background: #0b0b14;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  color: #d7d9e2;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  pointer-events: none;
}

.creative-source-help:hover .creative-source-help__popover,
.creative-source-help:focus .creative-source-help__popover,
.creative-source-help:focus-within .creative-source-help__popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .creative-source-note { align-items: flex-start; }
  .creative-source-note__text { display: block; }
  .creative-source-note__text strong,
  .creative-source-note__text span { display: block; }
  .creative-source-help__popover { position: fixed; right: 16px; bottom: 18px; left: 16px; width: auto; }
}

/* Influence CRM editor: keep the composed card styling above generic form/theme rules. */
body:not(.locked) .influence-crm-dialog { padding: 0; background: #f5f7fa; }
body:not(.locked) .influence-crm-dialog .influence-crm-fields input,
body:not(.locked) .influence-crm-dialog .influence-crm-fields select,
body:not(.locked) .influence-crm-dialog .influence-crm-fields textarea {
  border: 1px solid #dce3ea;
  border-radius: 11px;
  color: #1b2431;
  background: #fff;
  box-shadow: 0 2px 7px rgba(28,38,54,.025);
}
body:not(.locked) .influence-crm-dialog .influence-crm-fields input:focus,
body:not(.locked) .influence-crm-dialog .influence-crm-fields select:focus,
body:not(.locked) .influence-crm-dialog .influence-crm-fields textarea:focus {
  border-color: #20ad78;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(20,177,107,.1);
}

/* Persisted white CRM theme. The entry/login screen intentionally stays dark. */
html.theme-light-root { background: #eef1f6; color-scheme: light; }
body.theme-light:not(.locked) {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --ink: #171a22;
  --muted: #717887;
  --line: #e1e5eb;
  --green: #16b36b;
  --green-soft: #e7f8ef;
  --red: #e84f5c;
  --red-soft: #fff0f1;
  --orange: #e99524;
  --navy: #ffffff;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
}
body.theme-light:not(.locked) main {
  position: relative;
  max-width: none;
}
body.theme-light:not(.locked) .sidebar {
  color: var(--ink);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 8px 0 32px rgba(22, 29, 40, .045);
}
body.theme-light:not(.locked) .brand { color: #151922; text-shadow: none; }
body.theme-light:not(.locked) .nav-item { color: #687080; border: 1px solid transparent; background: transparent; }
body.theme-light:not(.locked) .nav-item:hover,
body.theme-light:not(.locked) .nav-item.active { color: #12161e; border-color: #cfe9db; background: #edf8f2; box-shadow: inset 3px 0 var(--green); }
body.theme-light:not(.locked) .sidebar-note { color: var(--ink); border-color: var(--line); background: #f7f9fb; }
body.theme-light:not(.locked) .sidebar-profile-button,
body.theme-light:not(.locked) #sessionUser { color: var(--ink); }

/* Refined workspace rail */
body:not(.locked) .sidebar {
  width: 248px;
  padding: 24px 18px 18px;
  border-right: 1px solid rgba(125, 137, 158, .16);
}
body:not(.locked) main { margin-left: 248px; }
body:not(.locked) .brand {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: .105em;
}
body:not(.locked) .direction-switcher {
  position: relative;
  isolation: isolate;
  gap: 5px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid rgba(126, 139, 161, .2);
  border-radius: 16px;
  background: rgba(126, 139, 161, .09);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06);
}
body:not(.locked) .direction-switcher button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body:not(.locked) .direction-switcher button::before {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
body:not(.locked) #openPerformanceDirection::before { content: 'f'; color: #fff; background: #1877f2; }
body:not(.locked) #openInfluenceDirection::before { content: '✦'; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
body:not(.locked) .direction-switcher button:hover { transform: translateY(-1px); }
body:not(.locked) .direction-switcher button.active {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, #10ad73 0%, #168cc5 100%);
  box-shadow: 0 8px 18px rgba(21, 131, 150, .24), inset 0 1px rgba(255,255,255,.2);
}
body:not(.locked) .nav {
  gap: 4px;
  margin-top: 18px;
  padding: 4px 5px 10px 0;
}
body:not(.locked) .nav-group { gap: 4px; }
body:not(.locked) .nav-item {
  position: relative;
  min-height: 41px;
  display: flex;
  align-items: center;
  padding: 10px 13px 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 760;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
body:not(.locked) .nav-item::before {
  content: '';
  position: absolute;
  left: 7px;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: transparent;
  transform: scaleY(.35);
  transition: background .16s ease, transform .16s ease;
}
body:not(.locked) .nav-item:hover { transform: translateX(2px); }
body:not(.locked) .nav-item.active::before { background: #18c77a; transform: scaleY(1); }
body:not(.locked) .sidebar-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
body:not(.locked) .sidebar-profile-button { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; }
body:not(.locked) .sidebar-photo { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 5px 14px rgba(15,23,42,.12); }
body:not(.locked) #sessionUser { font-size: 12px; }
body:not(.locked) #sessionRole { margin-top: 3px; font-size: 9px; }
body:not(.locked) .sidebar-note-footer { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(125,137,158,.15); }
body:not(.locked) .logout-button { margin-top: 0; text-decoration: none; transition: color .16s ease; }
body:not(.locked) .logout-button:hover { color: #e05262; }
body.theme-light:not(.locked) .sidebar { background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,249,252,.98)); box-shadow: 10px 0 35px rgba(25,34,49,.055); }
body.theme-light:not(.locked) .direction-switcher { border-color: #dce3ed; background: #eef2f7; }
body.theme-light:not(.locked) .direction-switcher button { color: #748095; }
body.theme-light:not(.locked) .direction-switcher button.active { color: #fff; border-color: rgba(20,120,158,.22); background: linear-gradient(135deg, #11ad72, #188cca); box-shadow: 0 9px 20px rgba(23,132,157,.2), inset 0 1px rgba(255,255,255,.25); }
body.theme-light:not(.locked) .nav-item:hover { color: #172033; border-color: #dfe9e5; background: rgba(232,247,240,.7); }
body.theme-light:not(.locked) .nav-item.active { color: #11251d; border-color: #c8e9da; background: linear-gradient(90deg, #e9f8f1, #f3f8fb); box-shadow: 0 7px 16px rgba(22,179,107,.08); }
body.theme-light:not(.locked) .sidebar-note { border-color: #dce3ec; background: rgba(255,255,255,.86); box-shadow: 0 12px 30px rgba(24,34,50,.07); }

/* Quiet workspace selector */
body:not(.locked) .direction-switcher {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body:not(.locked) .direction-switcher-label {
  grid-column: 1 / -1;
  padding: 0 3px;
  color: rgba(148, 158, 178, .72);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}
body:not(.locked) .direction-switcher button {
  min-height: 38px;
  gap: 8px;
  padding: 8px 11px;
  justify-content: flex-start;
  border: 1px solid rgba(132, 145, 166, .16);
  border-radius: 10px;
  color: rgba(194, 201, 215, .66);
  background: rgba(125, 139, 162, .065);
  box-shadow: none;
  font-size: 10px;
  letter-spacing: 0;
}
body:not(.locked) .direction-switcher button::before {
  content: '' !important;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 0;
  border-radius: 50%;
  background: #778196 !important;
  box-shadow: none;
}
body:not(.locked) .direction-switcher button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  transform: none;
}
body:not(.locked) .direction-switcher button.active {
  color: #fff;
  border-color: rgba(78, 226, 154, .25);
  background: rgba(26, 38, 42, .92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 7px 18px rgba(0,0,0,.16);
}
body:not(.locked) .direction-switcher button.active::before {
  background: #39dc8c !important;
  box-shadow: 0 0 0 4px rgba(57,220,140,.12), 0 0 12px rgba(57,220,140,.42);
}
body:not(.locked) #openPerformanceDirection.active {
  border-color: rgba(59,130,246,.38);
  background: rgba(28,74,128,.42);
  box-shadow: inset 0 -2px #3b82f6, 0 7px 18px rgba(20,86,170,.16);
}
body:not(.locked) #openPerformanceDirection.active::before {
  background: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,.13), 0 0 12px rgba(59,130,246,.42);
}
body:not(.locked) #openInfluenceDirection.active {
  border-color: rgba(139,92,246,.4);
  background: rgba(79,50,135,.42);
  box-shadow: inset 0 -2px #8b5cf6, 0 7px 18px rgba(107,70,190,.17);
}
body:not(.locked) #openInfluenceDirection.active::before {
  background: #8b5cf6 !important;
  box-shadow: 0 0 0 4px rgba(139,92,246,.13), 0 0 12px rgba(139,92,246,.42);
}
body.theme-light:not(.locked) .direction-switcher { border: 0; background: transparent; }
body.theme-light:not(.locked) .direction-switcher-label { color: #929bad; }
body.theme-light:not(.locked) .direction-switcher button {
  color: #7a8497;
  border-color: #e0e5ec;
  background: #f5f7fa;
}
body.theme-light:not(.locked) .direction-switcher button:hover {
  color: #263044;
  border-color: #d3dae4;
  background: #fff;
}
body.theme-light:not(.locked) .direction-switcher button.active {
  color: #17231e;
  border-color: #c9e7d8;
  background: #fff;
  box-shadow: 0 7px 18px rgba(35, 55, 47, .08), inset 0 -2px #31c982;
}
body.theme-light:not(.locked) #openPerformanceDirection.active {
  color: #174b91;
  border-color: #bfd7fa;
  background: #f7faff;
  box-shadow: 0 7px 18px rgba(42,99,177,.1), inset 0 -2px #3b82f6;
}
body.theme-light:not(.locked) #openInfluenceDirection.active {
  color: #6941b6;
  border-color: #d9c9fa;
  background: #fbf9ff;
  box-shadow: 0 7px 18px rgba(106,70,176,.1), inset 0 -2px #8b5cf6;
}

@media (max-width: 780px) {
  body:not(.locked) .sidebar { width: auto; padding: 16px; }
  body:not(.locked) main { margin-left: 0; }
  body:not(.locked) .direction-switcher { max-width: 320px; }
  body:not(.locked) .nav { margin-top: 14px; }
  body:not(.locked) .nav-item { min-height: 38px; }
}
body.theme-light:not(.locked) .topbar,
body.theme-light:not(.locked) .panel,
body.theme-light:not(.locked) .kpi-card,
body.theme-light:not(.locked) .buyer-card,
body.theme-light:not(.locked) .designer-column,
body.theme-light:not(.locked) .designer-stat-card,
body.theme-light:not(.locked) .employee-card,
body.theme-light:not(.locked) .table-control-card,
body.theme-light:not(.locked) .docs-card,
body.theme-light:not(.locked) .creative-mini-card,
body.theme-light:not(.locked) .dashboard-leader-row,
body.theme-light:not(.locked) .leave-request,
body.theme-light:not(.locked) .calendar-person,
body.theme-light:not(.locked) .org-settings-card,
body.theme-light:not(.locked) .detail-kpi,
body.theme-light:not(.locked) dialog {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 28, 40, .055);
}
body.theme-light:not(.locked) .topbar {
  padding: 22px 24px;
  border-radius: 22px;
}
body.theme-light:not(.locked) h1,
body.theme-light:not(.locked) h2,
body.theme-light:not(.locked) h3,
body.theme-light:not(.locked) strong,
body.theme-light:not(.locked) b { color: var(--ink); text-shadow: none; }
body.theme-light:not(.locked) .filters select,
body.theme-light:not(.locked) .filters input,
body.theme-light:not(.locked) .reset-filters,
body.theme-light:not(.locked) .search,
body.theme-light:not(.locked) select,
body.theme-light:not(.locked) input,
body.theme-light:not(.locked) textarea,
body.theme-light:not(.locked) .icon-button,
body.theme-light:not(.locked) .open-buyer,
body.theme-light:not(.locked) .secondary-button,
body.theme-light:not(.locked) .view-detail,
body.theme-light:not(.locked) .view-button {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}
body.theme-light:not(.locked) th { color: #697181; background: #f7f8fa; }
body.theme-light:not(.locked) td { color: #252a34; border-color: var(--line); background: #fff; }
body.theme-light:not(.locked) tr:hover td { background: #f7fbf9; }
body.theme-light:not(.locked) .table-wrap {
  max-width: 100%;
  padding: 0;
  border: 1px solid #c7ced8;
  border-radius: 3px;
  background: #fff;
  overscroll-behavior-inline: contain;
}
body.theme-light:not(.locked) .table-wrap > table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}
body.theme-light:not(.locked) .table-wrap > table th,
body.theme-light:not(.locked) .table-wrap > table td {
  border: 0;
  border-right: 1px solid #d3d8df;
  border-bottom: 1px solid #d3d8df;
  border-radius: 0;
  background-clip: padding-box;
}
body.theme-light:not(.locked) .table-wrap > table tr > :last-child { border-right: 0; }
body.theme-light:not(.locked) .table-wrap > table tbody tr:last-child > td { border-bottom: 0; }
body.theme-light:not(.locked) .table-wrap > table th {
  padding: 10px 12px;
  color: #4f5867;
  background: #e9edf2;
  box-shadow: none;
}
body.theme-light:not(.locked) .table-wrap > table td {
  padding: 11px 12px;
  background: #fff;
}
body.theme-light:not(.locked) .table-wrap > table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}
body.theme-light:not(.locked) .table-wrap > table tbody tr:hover td {
  border-color: #b9cfc3;
  background: #edf8f2;
}
body.theme-light:not(.locked) .dialog-note,
body.theme-light:not(.locked) .freshness-banner,
body.theme-light:not(.locked) .company-reconciliation-note,
body.theme-light:not(.locked) .previous-launch-section { color: var(--muted); border-color: var(--line); background: #f7f9fb; }
body.theme-light:not(.locked) .freshness-banner.waiting,
body.theme-light:not(.locked) .freshness-banner.weekend {
  border-color: #e7bd55;
  background: linear-gradient(100deg, #fff4c7 0%, #fffaf0 68%, #fff 100%);
  box-shadow: 0 10px 28px rgba(190, 136, 20, .1), inset 4px 0 #f1b82e;
}
body.theme-light:not(.locked) .freshness-banner.waiting .freshness-icon,
body.theme-light:not(.locked) .freshness-banner.weekend .freshness-icon { color: #e6a719 !important; }
body.theme-light:not(.locked) .freshness-banner.waiting .freshness-action,
body.theme-light:not(.locked) .freshness-banner.weekend .freshness-action {
  color: #3b2900;
  border-color: #e4b741;
  background: linear-gradient(135deg, #ffdc70, #ffc144);
  box-shadow: 0 7px 18px rgba(218, 153, 20, .18);
}
body.theme-light:not(.locked) .export-data-button {
  color: #fff;
  border-color: #5b63ee;
  background: linear-gradient(135deg, #6558e8, #347fe7);
  box-shadow: 0 8px 22px rgba(67, 86, 220, .22);
}

/* Colour hierarchy for actionable controls in the light theme. */
body.theme-light:not(.locked) .detail-primary {
  color: #fff;
  border: 1px solid #12945a;
  background: linear-gradient(135deg, #18b86f, #12a98e);
  box-shadow: 0 7px 18px rgba(18, 169, 111, .2);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
body.theme-light:not(.locked) .detail-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 169, 111, .27);
}
body.theme-light:not(.locked) .secondary-button,
body.theme-light:not(.locked) .open-buyer,
body.theme-light:not(.locked) .view-detail,
body.theme-light:not(.locked) .view-button {
  color: #245faa;
  border-color: #b9d2f2;
  background: linear-gradient(180deg, #f4f8ff, #eaf3ff);
  box-shadow: 0 4px 12px rgba(48, 105, 180, .08);
}
body.theme-light:not(.locked) .secondary-button:hover,
body.theme-light:not(.locked) .open-buyer:hover,
body.theme-light:not(.locked) .view-detail:hover,
body.theme-light:not(.locked) .view-button:hover {
  color: #fff;
  border-color: #3478d4;
  background: linear-gradient(135deg, #438fe8, #356bd2);
  box-shadow: 0 7px 18px rgba(52, 111, 202, .2);
}
body.theme-light:not(.locked) .reset-filters,
body.theme-light:not(.locked) :is(#generatorReset,#unityGeneratorReset),
body.theme-light:not(.locked) #resetTableControlForm {
  color: #985b08;
  border-color: #f0cd91;
  background: linear-gradient(180deg, #fffaf0, #fff2d9);
}
body.theme-light:not(.locked) .reset-filters:hover,
body.theme-light:not(.locked) :is(#generatorReset,#unityGeneratorReset):hover,
body.theme-light:not(.locked) #resetTableControlForm:hover {
  color: #fff;
  border-color: #de8c1f;
  background: linear-gradient(135deg, #f2aa35, #df7e1b);
}
body.theme-light:not(.locked) button[value="cancel"],
body.theme-light:not(.locked) button[id^="cancel"],
body.theme-light:not(.locked) button[id*="Cancel"],
body.theme-light:not(.locked) .danger-link {
  color: #bd3d4c;
  border-color: #efbbc2;
  background: linear-gradient(180deg, #fff7f8, #ffedef);
}
body.theme-light:not(.locked) button[value="cancel"]:hover,
body.theme-light:not(.locked) button[id^="cancel"]:hover,
body.theme-light:not(.locked) button[id*="Cancel"]:hover,
body.theme-light:not(.locked) .danger-link:hover {
  color: #fff;
  border-color: #d94252;
  background: linear-gradient(135deg, #ed5a66, #d83c50);
  box-shadow: 0 7px 18px rgba(210, 54, 72, .18);
}
body.theme-light:not(.locked) #addOfferButton,
body.theme-light:not(.locked) #addDesignTaskButton,
body.theme-light:not(.locked) #addEmployeeButton,
body.theme-light:not(.locked) #addLeaveButton,
body.theme-light:not(.locked) [data-org-add] {
  color: #fff;
  border-color: #705be3;
  background: linear-gradient(135deg, #8067ec, #a14ed2);
  box-shadow: 0 7px 18px rgba(118, 81, 213, .2);
}
body.theme-light:not(.locked) #sendAllPushButton,
body.theme-light:not(.locked) #databaseExport,
body.theme-light:not(.locked) #databaseExportSecondary,
body.theme-light:not(.locked) .push-recipient-save {
  color: #fff;
  border-color: #3479dc;
  background: linear-gradient(135deg, #398be7, #4f66db);
  box-shadow: 0 7px 18px rgba(57, 116, 218, .2);
}
body.theme-light:not(.locked) #resetData {
  color: #2867c7;
  border-color: #bed3f5;
  background: #edf5ff;
}
body.theme-light:not(.locked) .file-button,
body.theme-light:not(.locked) .photo-upload-button {
  color: #17629d;
  border-color: #b9dbef;
  background: #ecf8ff;
}
body.theme-light:not(.locked) .view-button:hover,
body.theme-light:not(.locked) .open-buyer:hover {
  color: #fff;
  border-color: #3478d4;
  background: linear-gradient(135deg, #438fe8, #356bd2);
  box-shadow: 0 7px 18px rgba(52, 111, 202, .2);
}
body.theme-light:not(.locked) .danger-button,
body.theme-light:not(.locked) .row-actions .danger-link {
  color: #c43f4d;
  border-color: #f0bdc3;
  background: #fff1f2;
}
body.theme-light:not(.locked) .danger-button:hover:not(:disabled),
body.theme-light:not(.locked) .row-actions .danger-link:hover {
  color: #fff;
  border-color: #d94252;
  background: linear-gradient(135deg, #eb5562, #d83c50);
  box-shadow: 0 8px 20px rgba(210, 54, 72, .2);
}
body.theme-light:not(.locked) button:disabled {
  box-shadow: none;
  filter: saturate(.45);
  opacity: .58;
  transform: none;
}
body.theme-light:not(.locked) .generator-tabs {
  border-color: #d8dee8;
  background: #eef2f7;
}
body.theme-light:not(.locked) .generator-tabs button { color: #697386; }
body.theme-light:not(.locked) .generator-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #6558e8, #347fe7);
  box-shadow: 0 7px 18px rgba(73, 85, 213, .2);
}
body.theme-light:not(.locked) .generator-sheet-title {
  color: #173126;
  border-bottom-color: #b9dec9;
  background: linear-gradient(100deg, #ccefd9, #e3f6eb);
}
body.theme-light:not(.locked) .generator-form-panel label {
  border-color: #d9dfe8;
  background: #fff;
}
body.theme-light:not(.locked) .generator-form-panel label > span {
  color: #384252;
  border-right-color: #d9dfe8;
  background: #f3f6fa;
}
body.theme-light:not(.locked) .generator-form-panel input,
body.theme-light:not(.locked) .generator-form-panel select,
body.theme-light:not(.locked) .generator-form-panel textarea {
  color: #202733;
  background: #fff;
}
body.theme-light:not(.locked) .generator-form-panel input[readonly],
body.theme-light:not(.locked) .generator-creative-field small {
  color: #697386;
  background: #f6f8fb;
}
body.theme-light:not(.locked) .generator-creative-field select { border-top-color: #d9dfe8; }
body.theme-light:not(.locked) .generator-creative-picker { background: #fff; }
body.theme-light:not(.locked) .generator-creative-search-row,
body.theme-light:not(.locked) .generator-creative-picker textarea { border-color: #d9dfe8; }
body.theme-light:not(.locked) .generator-creative-search-row button { color: #087c4a; border-left-color: #d9dfe8; background: #eef9f3; }
body.theme-light:not(.locked) .generator-creative-option { border-color: #dfe5ec !important; background: #f8fafc !important; }
body.theme-light:not(.locked) .generator-creative-option span { color: #263140; }
body.theme-light:not(.locked) .generator-creative-option small { color: #758094; background: transparent; }
body.theme-light:not(.locked) .generator-creative-picker textarea[readonly] { color: #087c4a; background: #f3fbf7; }
body.theme-light:not(.locked) .generator-selected-head { border-top-color: #d9dfe8; }
body.theme-light:not(.locked) .generator-selected-head strong { color: #697386; }
body.theme-light:not(.locked) .generator-selected-head button { border-color: #f1c8cc; color: #bd3b48; background: #fff2f3; }
body.theme-light:not(.locked) .generator-selected-creatives button { border-color: #b9e2ca; color: #087c4a; background: #eef9f3; }
body.theme-light:not(.locked) .generator-media-notice { color: #08784a; border-color: #a9ddc2; background: linear-gradient(90deg, #edf9f3, #f1fbfb); box-shadow: none; }
body.theme-light:not(.locked) .generator-media-notice strong { color: #11613e; }
body.theme-light:not(.locked) .generator-media-notice small { color: #557066; }
body.theme-light:not(.locked) .generator-selected-empty { color: #7b8494; }
body.theme-light:not(.locked) .generator-parse-status {
  color: #95610a;
  border-color: #efd18f;
  background: #fff8e7;
}
body.theme-light:not(.locked) .generator-parse-status.ready { color: #08784a; border-color: #a9ddc2; background: #edf9f3; }
body.theme-light:not(.locked) .generator-parse-status.error { color: #c43f4d; border-color: #efb8bf; background: #fff0f2; }
body.theme-light:not(.locked) .generator-empty { color: #778195; border-color: #cbd3df; background: #fafbfd; }
body.theme-light:not(.locked) .generator-result { border-color: #c8ddd2; background: #f7fcf9; }
body.theme-light:not(.locked) .generator-result code { color: #26313c; }
body.theme-light:not(.locked) .generator-result button { color: #08784a; border-color: #a9ddc2; background: #eaf8f1; }
body.theme-light:not(.locked) .generator-history-item { border-color: #d9e3dd; background: #f8fbf9; }
body.theme-light:not(.locked) .generator-history-item strong { color: #26313c; }
body.theme-light:not(.locked) .generator-history-item button { color: #08784a; border-color: #a9ddc2; background: #eaf8f1; }
body.theme-light:not(.locked) .generator-history-filters select { color: #26313c; border-color: #d9e3dd; background: #fff; }
body.theme-light:not(.locked) .generator-history-filters input { color: #26313c; border-color: #d9e3dd; background: #fff; }
body.theme-light:not(.locked) .generator-dictionary-card {
  border-color: #d8dee8;
  background: #fff;
  box-shadow: 0 5px 16px rgba(24, 34, 49, .04);
}
body.theme-light:not(.locked) .generator-dictionary-card[open] { border-color: #9dcfb6; box-shadow: 0 10px 26px rgba(24, 91, 59, .09); }
body.theme-light:not(.locked) .generator-dictionary-card summary { color: #374151; background: #f7f9fc; }
body.theme-light:not(.locked) .generator-dictionary-card summary::after { color: #788397; }
body.theme-light:not(.locked) .generator-dictionary-card summary b { color: #08784a; background: #e8f7ef; }
body.theme-light:not(.locked) .generator-dictionary-body { border-top-color: #dfe4eb; background: #fff; }
body.theme-light:not(.locked) .generator-dictionary-search { color: #667085; }
body.theme-light:not(.locked) .generator-dictionary-add textarea,
body.theme-light:not(.locked) .generator-dictionary-search input { color: #202733; border-color: #d6dce5; background: #fff; }
body.theme-light:not(.locked) .generator-dictionary-values { border-color: #d9dfe8; background: #fff; }
body.theme-light:not(.locked) .generator-dictionary-row { color: #303846; border-bottom-color: #e3e7ed; background: #fff; }
body.theme-light:not(.locked) .generator-dictionary-row:nth-child(even) { background: #fafbfd; }
body.theme-light:not(.locked) .generator-dictionary-row:hover { background: #eef9f3; }
body.theme-light:not(.locked) .generator-dictionary-row button { color: #8a94a6; border-left-color: #e0e5ec; }
body.theme-light:not(.locked) .generator-dictionary-row button:hover { color: #cf3e4e; background: #fff0f2; }
body.theme-light:not(.locked) .generator-dictionary-add button { color: #fff; background: linear-gradient(135deg, #18b86f, #12a98e); }
body.theme-light:not(.locked) .generator-dictionary-locked { color: #687386; background: #f2f5f8; }
body.theme-light:not(.locked) .push-rule-card {
  color: #202733;
  border-color: #dce2ea;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 35, 50, .045);
}
body.theme-light:not(.locked) .push-rule-card.enabled { border-color: #9fd8bd; box-shadow: 0 7px 20px rgba(18, 164, 103, .08); }
body.theme-light:not(.locked) .push-rule-card.disabled { opacity: 1; border-color: #e1e5eb; background: #fcfdfe; }
body.theme-light:not(.locked) .push-rule-card h3,
body.theme-light:not(.locked) .push-rule-meta dd { color: #303846; }
body.theme-light:not(.locked) .push-rule-card > p { color: #717b8c; }
body.theme-light:not(.locked) .push-rule-meta div { border: 1px solid #e5e9ef; background: #f6f8fb; }
body.theme-light:not(.locked) .push-rule-meta dt { color: #8a94a6; }
body.theme-light:not(.locked) .push-rule-recipients {
  border-color: #d8e2ec;
  background: #f2f6fa;
}
body.theme-light:not(.locked) .push-rule-recipients > label,
body.theme-light:not(.locked) .push-rule-schedule > label { color: #667085; }
body.theme-light:not(.locked) .push-rule-recipients select,
body.theme-light:not(.locked) .push-rule-schedule > label > div {
  color: #26303d;
  border-color: #ccd5e0;
  background: #fff;
  box-shadow: 0 2px 7px rgba(25, 35, 50, .04);
}
body.theme-light:not(.locked) .push-rule-schedule input { color: #26303d; background: transparent; }
body.theme-light:not(.locked) .push-rule-schedule small,
body.theme-light:not(.locked) .push-recipient-hint { color: #778296; }
body.theme-light:not(.locked) .push-recipient-checks label {
  color: #303846;
  border-color: #dce2e9;
  background: #fff;
}
body.theme-light:not(.locked) .push-recipient-checks label:hover { border-color: #a8d9c1; background: #eef9f3; }
body.theme-light:not(.locked) .push-rule-card.disabled .push-rule-state { color: #b27311; }
body.theme-light:not(.locked) .push-rule-switch span { background: #cfd6df; }
body.theme-light:not(.locked) .push-rule-switch input:checked + span { background: #17b475; }
body.theme-light:not(.locked) .push-message-preview { color: #405062; border-color: #bfe3d1; background: #f1fbf6; }
body.theme-light:not(.locked) .database-summary-card {
  border-color: #d9e1eb;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 34, 49, .06);
}
body.theme-light:not(.locked) .database-summary-card:nth-child(1) { border-top: 4px solid #347fe7; background: #f7faff; }
body.theme-light:not(.locked) .database-summary-card:nth-child(2) { border-top: 4px solid #18b86f; background: #f6fcf9; }
body.theme-light:not(.locked) .database-summary-card:nth-child(3) { border-top: 4px solid #8067ec; background: #faf8ff; }
body.theme-light:not(.locked) .database-summary-card:nth-child(4) { border-top: 4px solid #f0a62d; background: #fffbf3; }
body.theme-light:not(.locked) .database-summary-card small,
body.theme-light:not(.locked) .database-summary-card span { color: #748094; }
body.theme-light:not(.locked) .database-summary-card strong { color: #202733; }
body.theme-light:not(.locked) .database-action-card { border-color: #dce2ea; background: #fff; }
body.theme-light:not(.locked) .database-danger-card { border-color: #efc4ca; background: #fffafb; }
body.theme-light:not(.locked) .database-file-field {
  color: #536174;
  border-color: #cbd4df;
  background: #f7f9fc;
}
body.theme-light:not(.locked) .database-file-field:hover { color: #08784a; border-color: #91d1b1; background: #edf9f3; }
body.theme-light:not(.locked) .database-switch { border-color: #d8dfe8; background: #f8fafc; }
body.theme-light:not(.locked) .database-next { color: #647084; border: 1px solid #e0e5ec; background: #f5f7fa; }
body.theme-light:not(.locked) .database-next strong { color: #26303d; }
body.theme-light:not(.locked) .database-settings-form input[type="number"], body.theme-light:not(.locked) .database-settings-form input[type="text"] { color: #26303d; border-color: #ccd5e0; background: #fff; }
body.theme-light:not(.locked) .database-backup-row {
  border-color: #dce2ea;
  background: #fff;
  box-shadow: 0 5px 16px rgba(24, 34, 49, .045);
}
body.theme-light:not(.locked) .database-backup-row:hover { border-color: #add9c3; background: #f5fcf8; }
body.theme-light:not(.locked) .database-backup-row b { color: #26303d; }
body.theme-light:not(.locked) .database-backup-row small { color: #7a8598; }
body.theme-light:not(.locked) .database-backup-icon { color: #083e2b; background: linear-gradient(135deg, #7af09b, #48dce1); }
.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  overflow: visible;
  transform-origin: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease, filter .2s ease, background-color .2s ease;
}
.dashboard-layout-toggle {
  position: fixed;
  right: 22px;
  bottom: 80px;
  z-index: 80;
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dce7f7;
  background: linear-gradient(145deg, #334155, #172033);
  border-color: #52637a;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  font: 700 22px/1 Arial, sans-serif;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.dashboard-layout-toggle:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 17px 40px rgba(0,0,0,.3), 0 0 22px rgba(74,222,128,.2); }
.dashboard-layout-toggle:active { transform: scale(.92); }
.dashboard-layout-toggle[aria-pressed="true"] { color: #063622; background: linear-gradient(145deg, #70f0a3, #3cd4b0); border-color: #80f2b2; }
body.theme-light .dashboard-layout-toggle { color: #273142; background: linear-gradient(145deg, #fff, #e7ecf3); border-color: #c9d2df; }
body.theme-light .dashboard-layout-toggle[aria-pressed="true"] { color: #063622; background: linear-gradient(145deg, #8df4b5, #51d9b7); border-color: #54c990; }
.locked .dashboard-layout-toggle { display: none; }

.dashboard-sheet-view { margin: 0; min-width: 0; }
.dashboard-sheet-view[hidden] { display: none; }
.sheet-workbook { overflow: hidden; border: 1px solid #aeb7c4; border-radius: 7px; background: #f7f9fc; box-shadow: 0 10px 32px rgba(4,11,24,.16); }
.sheet-toolbar { min-height: 55px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #1c2634; background: #f8f9fb; border-bottom: 1px solid #c9d1dc; }
.sheet-toolbar h2 { margin: 1px 0 2px; color: #182231; font-size: 17px; }
body:not(.locked):not(.theme-light) .sheet-toolbar h2,
body.theme-light:not(.locked) .sheet-toolbar h2 { color: #182231; text-shadow: none; }
.sheet-toolbar > div > span { color: #657286; font-size: 11px; }
.sheet-search { display: flex; align-items: center; gap: 8px; color: #657286; font-size: 10px; font-weight: 700; }
.sheet-search input { width: min(320px, 32vw); height: 34px; padding: 0 10px; color: #202a37; background: #fff; border: 1px solid #b9c4d2; border-radius: 5px; }
.sheet-formula-bar { height: 31px; display: grid; grid-template-columns: 72px 38px minmax(0, 1fr); align-items: center; color: #1f2937; background: #fff; border-bottom: 1px solid #c7ced8; font-size: 11px; }
.sheet-name-box { height: 100%; padding: 0 9px; display: flex; align-items: center; border-right: 1px solid #c7ced8; font-weight: 700; }
.sheet-fx { height: 100%; display: grid; place-items: center; color: #687386; border-right: 1px solid #d7dde5; font: italic 700 12px Georgia, serif; }
.sheet-formula-bar output { min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-grid-wrap { max-height: calc(100dvh - 155px); min-height: 540px; overflow: auto; outline: none; background: #fff; scrollbar-color: #adb6c3 #f0f2f5; scrollbar-width: thin; }
.sheet-grid { width: max-content; min-width: 100%; border-spacing: 0; border-collapse: separate; color: #111820; background: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.sheet-grid th, .sheet-grid td { box-sizing: border-box; height: 27px; min-width: 72px; padding: 3px 7px; white-space: nowrap; border-right: 1px solid #d4d9e0; border-bottom: 1px solid #d4d9e0; text-align: right; }
.sheet-grid td { color: #111820; }
.sheet-grid tr > :first-child { position: sticky; left: 0; z-index: 3; min-width: 42px; width: 42px; color: #5d6877; background: #eef1f5; text-align: center; }
.sheet-grid .sheet-action-cell, .sheet-grid .sheet-action-head { position: sticky; left: 42px; z-index: 3; min-width: 38px !important; width: 38px !important; padding: 2px; background: #f3f5f8; text-align: center; }
.sheet-grid .sheet-action-cell .view-button { width: 25px; height: 23px; min-height: 0; padding: 0; border-radius: 4px; font-size: 13px; }
.sheet-grid tr > :nth-child(2), .sheet-grid tr > :nth-child(3), .sheet-grid tr > :nth-child(19), .sheet-grid tr > :nth-child(20), .sheet-grid tr > :nth-child(33), .sheet-grid tr > :nth-child(34) { min-width: 54px; width: 54px; }
.sheet-grid tr > :nth-child(4), .sheet-grid tr > :nth-child(22), .sheet-grid tr > :nth-child(36) { min-width: 170px; width: 170px; text-align: left; }
.sheet-grid tr > :nth-child(5), .sheet-grid tr > :nth-child(6), .sheet-grid tr > :nth-child(7), .sheet-grid tr > :nth-child(8), .sheet-grid tr > :nth-child(9), .sheet-grid tr > :nth-child(10), .sheet-grid tr > :nth-child(11), .sheet-grid tr > :nth-child(12), .sheet-grid tr > :nth-child(13), .sheet-grid tr > :nth-child(14), .sheet-grid tr > :nth-child(15), .sheet-grid tr > :nth-child(16), .sheet-grid tr > :nth-child(17) { min-width: 91px; width: 91px; }
.sheet-grid tr > :nth-child(18), .sheet-grid tr > :nth-child(32) { min-width: 20px; width: 20px; padding: 0; background: #f1f3f6; }
.sheet-grid tbody tr > :nth-child(3) { position: static; background: #fff; text-align: center; }
.sheet-grid thead { position: sticky; top: 0; z-index: 10; }
.sheet-grid thead tr:nth-child(2) th { position: sticky; top: 23px; z-index: 5; height: 29px; color: #e11919; background: #fff; font-weight: 800; }
.sheet-grid thead tr:nth-child(3) th { position: sticky; top: 52px; z-index: 5; height: 35px; color: #101820; background: #dce5f0; border-bottom: 2px solid #778da8; font-style: italic; }
.sheet-grid thead tr:nth-child(2) th:first-child,
.sheet-grid thead tr:nth-child(3) th:first-child { left: 0; z-index: 8; }
.sheet-grid thead tr:nth-child(2) .sheet-action-head,
.sheet-grid thead tr:nth-child(3) .sheet-action-head { left: 42px; z-index: 8; }
.sheet-grid thead button { width: 100%; padding: 0; display: flex; justify-content: space-between; gap: 5px; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
.sheet-grid thead button span { color: #087b4d; font-style: normal; }
.sheet-grid .sheet-letters th { position: sticky; top: 0; z-index: 6; height: 23px; min-width: 0; padding: 2px 6px; color: #566171; background: #f0f2f5; text-align: center; font-size: 9px; font-weight: 600; }
.sheet-grid .sheet-letters th:first-child { left: 0; z-index: 9; }
.sheet-grid tbody tr:nth-child(even) td { background-color: #fafbfd; }
.sheet-grid tbody tr:nth-child(even) td:nth-child(3) { background-color: #fafbfd; }
.sheet-grid tbody tr:hover td { box-shadow: inset 0 0 0 999px rgba(64,139,255,.055); }
.sheet-grid .sheet-source-head-1 th { font-weight: 800; text-align: center; }
.sheet-grid .sheet-source-green { background-color: #16e313 !important; color: #081d08 !important; }
.sheet-grid .sheet-source-blue { background-color: #8da3bd !important; color: #fff !important; }
.sheet-grid .sheet-source-orange { background-color: #f5a91b !important; color: #171007 !important; }
.sheet-grid .sheet-source-yellow { background-color: #fff018 !important; color: #171700 !important; }
.sheet-grid td.sheet-source-positive { background: #b7dfce !important; font-weight: 800; }
.sheet-grid .sheet-source-total td { background: #dce5f0 !important; border-top: 2px solid #26384e; font-weight: 800; }
.sheet-grid [data-column="2"], .sheet-grid [data-column="20"], .sheet-grid [data-column="33"] { min-width: 190px; width: 190px; text-align: left; }
.sheet-grid [data-column="19"], .sheet-grid [data-column="32"] { min-width: 145px; width: 145px; text-align: left; }
.sheet-grid [data-column="30"] { min-width: 112px; width: 112px; }
.sheet-grid [data-column="0"], .sheet-grid [data-column="1"], .sheet-grid [data-column="17"], .sheet-grid [data-column="18"], .sheet-grid [data-column="29"], .sheet-grid [data-column="31"] { min-width: 62px; width: 62px; }
.sheet-daily-group td { height: 35px !important; padding: 0 !important; background: #e7ebf1 !important; border-top: 1px solid #aeb8c5; }
.sheet-daily-group button { width: 100%; height: 100%; padding: 0 10px; display: flex; align-items: center; gap: 9px; color: #253143; background: transparent; border: 0; text-align: left; font-size: 11px; font-weight: 800; cursor: pointer; }
.sheet-daily-group button span { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: #7e98b0; border-radius: 3px; }
.sheet-daily-group button b { margin-left: auto; color: #687588; font-size: 9px; }
.sheet-grid td.sheet-good { background-color: #aee3c8 !important; color: #06351e; font-weight: 700; }
.sheet-grid td.sheet-warn { background-color: #fff1a8 !important; color: #493900; font-weight: 700; }
.sheet-grid td.sheet-bad { background-color: #ffc5c5 !important; color: #6d1111; font-weight: 700; }
.sheet-grid td.sheet-selected { position: relative; box-shadow: inset 0 0 0 2px #1877f2 !important; outline: none; }
.sheet-grid td.sheet-selected::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; background: #1877f2; }
.sheet-grid tfoot { position: sticky; bottom: 0; z-index: 7; font-weight: 800; }
.sheet-grid tfoot td, .sheet-grid tfoot th { background: #dce5f0 !important; border-top: 2px solid #576b84; }
.sheet-grid tfoot td:nth-child(2) { text-align: left; }
.sheet-empty { height: 120px !important; text-align: center !important; color: #718096; }
.sheet-statusbar { height: 39px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: #5e6a79; background: #f3f5f8; border-top: 1px solid #c7d0dc; font-size: 10px; }
.sheet-tabs { align-self: stretch; display: flex; align-items: stretch; gap: 2px; }
.sheet-tab { padding: 0 20px; color: #5c6878; background: transparent; border: 0; border-bottom: 3px solid transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.sheet-tab:hover { color: #182433; background: #e9edf2; }
.sheet-tab.active { color: #0b7045; background: #fff; border-bottom-color: #20b866; }
body.dashboard-sheet-mode main { height: 100dvh; padding: 10px 12px 8px; overflow: hidden; }
body.dashboard-sheet-mode #mainOverview,
body.dashboard-sheet-mode :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters),
body.dashboard-sheet-mode :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { display: none !important; }
body.theme-light .sheet-workbook { box-shadow: 0 14px 40px rgba(26,39,59,.12); }
.theme-toggle::before { content: ''; position: absolute; inset: -6px; z-index: -1; border: 2px solid currentColor; border-radius: 50%; opacity: 0; scale: .72; transition: opacity .2s ease, scale .25s cubic-bezier(.2,.8,.2,1); }
.theme-toggle:hover { transform: translateY(-4px) scale(1.09) rotate(10deg); filter: brightness(1.08); box-shadow: 0 17px 40px rgba(0, 0, 0, .3), 0 0 24px color-mix(in srgb, currentColor 34%, transparent); }
.theme-toggle:hover::before { opacity: .24; scale: 1; }
.theme-toggle:active { transform: translateY(0) scale(.9) rotate(-18deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); transition-duration: .08s; }
.theme-toggle.theme-toggle-switching { animation: theme-toggle-switch .46s cubic-bezier(.2,.9,.2,1); }
.dashboard-display-button { position: relative; overflow: visible; transform-origin: center; }
.dashboard-display-button > span:first-child { color: inherit; background: transparent; line-height: 1; }
.dashboard-display-button::before { content: ''; position: absolute; inset: -6px; z-index: -1; border: 2px solid currentColor; border-radius: 50%; opacity: 0; scale: .72; transition: opacity .2s ease, scale .25s cubic-bezier(.2,.8,.2,1); }
.dashboard-display-button:hover { transform: translateY(-4px) scale(1.09) rotate(10deg); filter: brightness(1.08); box-shadow: 0 17px 40px rgba(0,0,0,.3),0 0 24px color-mix(in srgb,currentColor 34%,transparent); }
.dashboard-display-button:hover::before { opacity: .24; scale: 1; }
.dashboard-display-button:active { transform: translateY(0) scale(.9) rotate(-18deg); box-shadow: 0 6px 16px rgba(0,0,0,.2); transition-duration: .08s; }
.dashboard-display-button.dashboard-display-switching { animation: theme-toggle-switch .46s cubic-bezier(.2,.9,.2,1); }
@keyframes theme-toggle-switch { 0% { transform: scale(.86) rotate(-25deg); } 45% { transform: scale(1.18) rotate(195deg); } 72% { transform: scale(.96) rotate(330deg); } 100% { transform: scale(1) rotate(360deg); } }
body.theme-light .theme-toggle { color: #f7f8fb; background: linear-gradient(145deg, #273142, #111722); border-color: #4b586b; }
body.theme-light:not(.locked) .dashboard-display-button { color: #111827; background: linear-gradient(145deg,#fff,#f1f4f8); border-color: #d5dce5; }
body.theme-light:not(.locked) dialog::backdrop { background: rgba(28, 34, 45, .38); }
body:not(.theme-light) .theme-toggle { color: #8b5a00; background: linear-gradient(145deg, #fff9dc, #ffe889); border-color: #efcf59; }
body:not(.theme-light) .dashboard-display-button { color: #111827; background: linear-gradient(145deg,#fff,#f1f4f8); border-color: #d5dce5; }
body:not(.locked) { transition: color .18s ease, background-color .18s ease; }

@media (max-width: 780px) {
  .theme-toggle { right: 14px; bottom: 14px; display: inline-flex; }
  .dashboard-layout-toggle { right: 14px; bottom: 66px; width: 40px; height: 40px; font-size: 18px; }
  .sheet-toolbar { align-items: stretch; flex-direction: column; }
  .sheet-search input { width: 100%; }
  .sheet-grid-wrap { max-height: calc(100dvh - 330px); min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle, .theme-toggle::before, .dashboard-display-button, .dashboard-display-button::before { animation: none !important; transition: none !important; } }

@media (max-width: 780px) {
  body:not(.locked) .dashboard-display-control:not([hidden]) {
    position: fixed;
    right: 14px;
    bottom: 66px;
    z-index: 80;
    width: 40px;
    height: 40px;
    display: block !important;
    margin: 0;
  }
  body:not(.locked) .dashboard-display-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 50%;
  }
  body:not(.locked) .dashboard-display-button > span:first-child {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.media-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.media-upload-button { display: inline-flex; align-items: center; white-space: nowrap; }
.media-upload-button[hidden] { display: none; }
.media-reconnect-button { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.media-reconnect-button[hidden] { display: none; }
.media-oauth-button { align-self: center; justify-self: end; text-decoration: none; }
.media-drive-setup { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr); gap: 18px; margin-top: 13px; padding: 20px; }
.media-drive-setup[hidden] { display: none; }
.media-drive-setup form { display: flex; gap: 9px; align-items: center; }
.media-drive-setup input, .media-toolbar input, .media-toolbar select { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); }
.media-drive-setup form input { flex: 1; }
.media-drive-setup > small { grid-column: 1 / -1; color: var(--muted); }
.media-toolbar { display: flex; gap: 9px; margin-top: 13px; padding: 13px; }
.media-toolbar .search { flex: 1; max-width: none; }
.media-upload-progress { margin-top: 13px; padding: 12px 14px; border: 1px solid rgba(71, 219, 142, .3); border-radius: 10px; color: var(--ink); background: var(--green-soft); font-size: 10px; font-weight: 700; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.media-card { overflow: hidden; padding: 0; }
.media-card-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #080a10; }
.media-card-preview img, .media-card-preview video { width: 100%; height: 100%; display: block; object-fit: cover; }
.media-card-preview > span { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .62); }
.media-card-body { padding: 13px; }
.media-card-body h3 { margin: 8px 0 5px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.media-card-body p { color: var(--muted); font-size: 9px; }
.media-card-body .media-card-dates { display: grid; gap: 3px; margin: 7px 0; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.media-card-dates span { display: block; }.media-card-dates b { color: var(--ink); }
.media-card-tags { display: flex; align-items: center; gap: 6px; }
.media-origin { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.media-origin.designer { border-color: rgba(139, 92, 246, .38); color: #a78bfa; background: rgba(139, 92, 246, .11); }
.media-origin.pwa { border-color: rgba(37, 99, 235, .4); color: #60a5fa; background: rgba(37, 99, 235, .12); }
.media-origin.buyer { border-color: rgba(48, 211, 138, .3); color: var(--green); background: rgba(48, 211, 138, .08); }
.media-card-body > div { display: flex; gap: 7px; margin-top: 11px; }
.media-card-body a { text-decoration: none; }
.media-card-actions { display: grid !important; grid-template-columns: .9fr .8fr 1.25fr; }
.media-action { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: #fff; font: inherit; font-size: 8px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; transition: translate .18s ease, scale .18s ease, box-shadow .18s ease, filter .18s ease; }
.media-action:hover { translate: 0 -2px; scale: 1.025; filter: brightness(1.08); }
.media-action:active { translate: 0 0; scale: .98; }
.media-action-view { color: #052014; background: linear-gradient(135deg, #59f58b, #2dd4bf); box-shadow: 0 7px 18px rgba(45, 212, 191, .16); }
.media-action-view:hover { box-shadow: 0 10px 25px rgba(45, 212, 191, .32); }
.media-action-download { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 7px 18px rgba(37, 99, 235, .18); }
.media-action-download:hover { box-shadow: 0 10px 25px rgba(37, 99, 235, .35); }
.media-action-link { background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 7px 18px rgba(124, 58, 237, .18); }
.media-action-link:hover { box-shadow: 0 10px 25px rgba(124, 58, 237, .36); }
.media-preview-dialog { width: min(1100px, calc(100vw - 40px)); padding: 20px; }
.media-preview-stage { display: grid; min-height: 300px; max-height: 72vh; place-items: center; overflow: hidden; border-radius: 14px; background: #05060a; }
.media-preview-stage img, .media-preview-stage video { width: 100%; max-height: 72vh; object-fit: contain; }
.media-preview-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 3px 0; }
.media-preview-info h2 { margin: 8px 0 4px; font-size: 16px; }
.media-preview-info p { color: var(--muted); font-size: 10px; }
.media-duplicate-dialog { width: min(520px, calc(100vw - 32px)); }
.media-duplicate-dialog h2 { margin: 8px 0 16px; }
.media-duplicate-dialog .subtitle { margin-top: 7px; overflow-wrap: anywhere; }

/* Таблицы: мягко показываем выбранную строку и сильнее — ячейку под курсором. */
body:not(.locked):not(.theme-light) table tbody tr:hover > td {
  border-color: rgba(79, 216, 187, .18);
  background: rgba(24, 31, 39, .96);
}
body:not(.locked):not(.theme-light) table tbody tr:hover > td:hover {
  position: relative;
  z-index: 1;
  border-color: rgba(75, 232, 196, .55);
  background: rgba(24, 69, 62, .98);
  box-shadow: inset 0 0 0 2px rgba(75, 232, 196, .34), 0 5px 18px rgba(0, 0, 0, .16);
}
body.theme-light:not(.locked) table tbody tr:hover > td {
  border-color: #c8d6df;
  background: #f0f6fa;
}
body.theme-light:not(.locked) table tbody tr:hover > td:hover {
  position: relative;
  z-index: 1;
  color: #132a26;
  border-color: #50bea0;
  background: #dff5ed;
  box-shadow: inset 0 0 0 2px rgba(25, 166, 126, .32), 0 5px 16px rgba(38, 88, 76, .11);
}

/* Общее для всех пользователей одобрение старта офера. */
#offerTable tr.offer-start-approved > td {
  border-top-color: #8b7cf6;
  border-bottom-color: #8b7cf6;
  background: color-mix(in srgb, #8b7cf6 8%, var(--panel));
}
#offerTable tr.offer-start-approved > td:first-child { border-left-color: #8b7cf6; box-shadow: inset 3px 0 0 #8b7cf6; }
#offerTable tr.offer-start-approved > td:last-child { border-right-color: #8b7cf6; box-shadow: inset -3px 0 0 #8b7cf6; }
#offerTable tr.offer-start-approved:hover > td { border-top-color: #a99cff; border-bottom-color: #a99cff; }
.offer-start-approval { color: #6154c9 !important; border-color: rgba(139, 124, 246, .45) !important; background: rgba(139, 124, 246, .09) !important; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important; }
.offer-start-approval:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 7px 18px rgba(119, 96, 224, .22); }
.offer-start-approval.approved { color: #fff !important; border-color: transparent !important; background: linear-gradient(135deg, #8b5cf6, #5267df) !important; box-shadow: 0 7px 18px rgba(105, 80, 210, .24); }
.offer-start-approval:disabled { cursor: default; opacity: .78; }
.offer-approval-meta { color: #8877e9 !important; font-weight: 750; }
body.theme-light:not(.locked) #offerTable tr.offer-start-approved > td { color: #22213b; border-top-color: #8068df; border-bottom-color: #8068df; background: #f5f1ff; }
body.theme-light:not(.locked) #offerTable tr.offer-start-approved > td:first-child { border-left-color: #8068df; }
body.theme-light:not(.locked) #offerTable tr.offer-start-approved > td:last-child { border-right-color: #8068df; }
.media-duplicate-warning { margin: 18px 0; padding: 12px; border: 1px solid rgba(255, 190, 70, .3); border-radius: 10px; color: var(--muted); background: rgba(255, 190, 70, .08); font-size: 10px; line-height: 1.5; }
.media-replace-button { min-height: 38px; padding: 9px 15px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: translate .18s ease, box-shadow .18s ease, filter .18s ease; }
.media-replace-button:hover { translate: 0 -2px; filter: brightness(1.06); box-shadow: 0 10px 24px rgba(239, 68, 68, .25); }
.media-pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; margin-top: 14px; }
.media-pagination span { color: var(--muted); font-size: 10px; font-weight: 700; }
.media-pages, .media-page-numbers { display: flex; align-items: center; gap: 6px; }
.media-page-number { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: translate .16s ease, border-color .16s ease, color .16s ease, background .16s ease; }
.media-page-number:hover { translate: 0 -2px; border-color: var(--green); color: var(--text); }
.media-page-number.active { border-color: transparent; color: #06170f; background: linear-gradient(135deg, #5df58b, #2dd4bf); box-shadow: 0 7px 18px rgba(45, 212, 191, .2); }
.media-page-arrow:disabled { opacity: .38; cursor: not-allowed; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages { flex-wrap:wrap;gap:8px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button { display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:34px;min-height:34px;border:1px solid #353043;border-radius:8px;background:#171420;color:#bdb2cf;padding:0 12px;font-size:11px;font-weight:600;line-height:1;box-shadow:none;translate:none;transform:translateY(0);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages .media-page-number { width:34px;padding:0; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button:hover:not(:disabled) { color:#fff;border-color:#9c70e7;transform:translateY(-2px);background:#171420; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages .media-page-number.active,
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages .media-page-number.active:hover { color:#fff;border-color:#985cff;background:linear-gradient(135deg,#9450ff,#7033e9);box-shadow:0 3px 10px #7033e926; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button:disabled { opacity:.35;transform:none;cursor:default; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button:focus-visible { outline:2px solid #b78af4;outline-offset:3px; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button:not(.active) { background:#f4f0fa;color:#654d80;border-color:#d8cce5; }
@media(prefers-reduced-motion:reduce) { body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button { transition:none; } body:not(.locked) :is(#mediaView,#unityMediaView) .media-pages button:hover:not(:disabled) { transform:none; } }
.media-geo { display: inline-flex; padding: 4px 7px; border-radius: 6px; color: #087c4a; background: var(--green-soft); font-size: 8px; font-weight: 900; }
.media-empty { grid-column: 1 / -1; padding: 28px; color: var(--muted); text-align: center; }
.media-name-link { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.media-name-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-name-link i { flex: 0 0 auto; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #087c4a; background: var(--green-soft); font-size: 7px; font-style: normal; }
.media-name-link:hover span { color: #079154; text-decoration: underline; }
.creative-media-count { display: inline-flex; margin-left: 7px; padding: 3px 6px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 7px; font-style: normal; white-space: nowrap; }
.creative-media-strip { margin: 16px 0 20px; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2, rgba(127,127,127,.04)); }
.creative-media-strip > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.creative-media-strip > div:first-child span { color: var(--muted); font-size: 9px; }
.creative-media-strip-list { display: flex; gap: 9px; overflow-x: auto; padding: 1px 1px 7px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.creative-media-strip-list button { position: relative; flex: 0 0 150px; min-width: 0; overflow: hidden; padding: 0 0 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); cursor: pointer; transition: translate .16s ease, border-color .16s ease, box-shadow .16s ease; }
.creative-media-strip-list button:hover { translate: 0 -2px; border-color: var(--green); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.creative-media-strip-list img, .creative-media-strip-list video { display: block; width: 100%; height: 92px; object-fit: cover; background: #05060a; }
.creative-media-strip-list b { display: block; padding: 7px 7px 0; overflow: hidden; font-size: 8px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.creative-media-strip-list i { position: absolute; top: 32px; left: 50%; display: grid; width: 27px; height: 27px; place-items: center; translate: -50% 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.66); font-size: 8px; font-style: normal; }
.media-hover-preview { position: fixed; z-index: 300; width: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--panel); box-shadow: 0 22px 60px rgba(0, 0, 0, .32); }
.media-hover-preview.gallery { width: 530px; max-width: calc(100vw - 24px); max-height: min(520px, calc(100vh - 24px)); overflow: auto; }
.media-hover-preview[hidden] { display: none; }
.media-hover-single > img, .media-hover-single > video { display: block; width: 100%; height: 220px; object-fit: contain; background: #05060a; }
.media-hover-single > div { display: grid; gap: 5px; padding: 12px; }
.media-hover-preview b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-hover-preview span { color: var(--muted); font-size: 8px; }
.media-hover-single { cursor: pointer; }
.media-hover-single button { width: fit-content; padding: 6px 9px; border: 0; border-radius: 7px; color: #062014; background: var(--green); font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.media-hover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.media-hover-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.media-hover-gallery button { position: relative; min-width: 0; overflow: hidden; padding: 0 0 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel-2, rgba(127,127,127,.05)); cursor: pointer; transition: translate .16s ease, border-color .16s ease, box-shadow .16s ease; }
.media-hover-gallery button:hover { translate: 0 -2px; border-color: var(--green); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.media-hover-gallery img, .media-hover-gallery video { display: block; width: 100%; height: 105px; object-fit: cover; background: #05060a; }
.media-hover-gallery button b { display: block; padding: 7px 7px 0; text-align: left; }
.media-hover-gallery button i { position: absolute; top: 39px; left: 50%; display: grid; width: 28px; height: 28px; place-items: center; translate: -50% 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.66); font-size: 9px; font-style: normal; }
body:not(.locked):not(.theme-light) .media-drive-setup input,
body:not(.locked):not(.theme-light) .media-toolbar input,
body:not(.locked):not(.theme-light) .media-toolbar select { border-color: rgba(255,255,255,.09); background: rgba(3,4,10,.55); }
body:not(.locked):not(.theme-light) .media-hover-preview { border-color: rgba(255,255,255,.1); background: #0a0b14; }
body:not(.locked):not(.theme-light) .media-name-link i { color: #71ff5b; background: rgba(113,255,91,.12); }
@media (max-width: 1200px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .media-drive-setup { grid-template-columns: 1fr; }.media-drive-setup > small { grid-column: auto; } }
@media (max-width: 520px) { .media-grid { grid-template-columns: 1fr; } .media-toolbar, .media-drive-setup form { flex-direction: column; align-items: stretch; } }
@media (max-width: 680px) { .media-pagination { align-items: flex-start; flex-direction: column; }.media-pages { width: 100%; justify-content: space-between; }.media-page-number { width: 30px; height: 30px; } }

/* Employee development and challenge cards */
.development-view { display: grid; gap: 16px; min-width: 0; }
.development-view[hidden] { display: none; }
.development-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 2px; }
.development-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.development-reset-button { color: #b42332; border-color: rgba(232,79,92,.28); }
.development-hero h1 { margin: 5px 0; font-size: clamp(25px, 3vw, 39px); }
.development-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.development-kpi { display: grid; gap: 8px; min-height: 116px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.development-kpi span, .development-kpi small { color: var(--muted); font-size: 9px; font-weight: 750; }
.development-kpi strong { color: var(--ink); font-size: 24px; }
.development-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px 18px; }
.development-toolbar label { display: grid; min-width: 0; gap: 7px; }
.development-toolbar label span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.development-toolbar select { appearance: auto; width: 100%; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 38px 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background-color: var(--panel); font-size: 11px; font-weight: 750; text-overflow: ellipsis; outline: none; }
.development-toolbar select:focus { border-color: color-mix(in srgb, var(--green) 65%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent); }
.development-layout { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.development-progress-panel { position: sticky; top: 14px; }
.development-person-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.development-person-progress:last-child { border-bottom: 0; }
.development-person-progress div:first-child { display: grid; gap: 3px; }
.development-person-progress small { color: var(--muted); font-size: 8px; }
.development-level { padding: 5px 8px; border-radius: 999px; color: #087c4a; background: var(--green-soft); font-size: 8px; font-weight: 900; }
.development-stage-counts { grid-column: 1 / -1; display: flex !important; gap: 6px !important; }
.development-stage-counts span { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: var(--panel-2); font-size: 8px; font-weight: 750; }
.development-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.development-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #2dd4bf); }
.development-career-path { grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:10px 0;padding:0; }
.development-career-path li { padding:8px 10px;border:1px solid #443653;border-radius:8px;color:#9e90b2;font-size:10px;line-height:1.4; }
.development-career-path li.done { color:#bd9bdf;border-color:#765296;background:#39264c; }
.development-career-path li.current { color:#fff;border-color:#9562ec;background:#7b43d1;font-weight:750; }
.development-rate-note,.development-rate-history { grid-column:1 / -1;margin:4px 0;color:var(--muted);font-size:11px;line-height:1.6; }
.development-rate-history summary { cursor:pointer; }
.development-rate-history p { margin:6px 0; }
body.theme-light .development-career-path li { background:#faf7fd;border-color:#e1d4ed;color:#9a87ac; }
body.theme-light .development-career-path li.done { background:#f1e7f9;border-color:#d8c0ea;color:#805199; }
body.theme-light .development-career-path li.current { background:#8050ce;border-color:#8050ce;color:#fff; }
.development-person-progress > strong { color: var(--muted); font-size: 10px; }
.development-promote-button { grid-column: 1 / -1; width: 100%; min-height: 42px; justify-content: center; margin-top: 4px; }
.development-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.development-card { display: flex; min-height: 225px; flex-direction: column; gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); cursor: pointer; transition: translate .18s ease, border-color .18s ease, box-shadow .18s ease; }
.development-card:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--green) 55%, var(--line)); box-shadow: 0 13px 30px rgba(0,0,0,.12); }
.development-card.status-review { border-color: rgba(245, 158, 11, .55); }
.development-card.status-completed { border-color: rgba(34, 197, 94, .38); }
.development-card.status-locked { opacity: .66; filter: saturate(.55); }
.development-card-head, .development-card footer, .development-checks, .development-meta { display: flex; align-items: center; gap: 7px; }
.development-card-head, .development-card footer { justify-content: space-between; }
.development-code, .development-status, .development-level-name, .development-meta span { padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; }
.development-code { color: #fff; background: #202a3a; }
.development-status { color: #986010; background: rgba(245,158,11,.12); }
.status-completed .development-status { color: #078049; background: var(--green-soft); }
.development-card h3 { margin: 4px 0 0; color: var(--ink); font-size: 17px; }
.development-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.development-card-steps { display: grid; gap: 6px; margin: 0; padding: 11px 12px 11px 27px; border-radius: 10px; color: var(--ink); background: var(--panel-2); font-size: 9px; line-height: 1.4; }
.development-card-steps li::marker { color: var(--green); }
.development-card-steps .more { color: var(--muted); font-weight: 800; list-style: none; }
.development-level-name { align-self: flex-start; color: #6552c9; background: rgba(124,92,246,.1); }
.development-meta { flex-wrap: wrap; }
.development-meta span { color: var(--muted); background: var(--panel-2); }
.development-meta .development-bonus { color: #087c4a; background: var(--green-soft); }
.development-card footer { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.development-checks b { color: var(--muted); font-size: 8px; opacity: .55; }
.development-checks b.done { color: #0a9b59; opacity: 1; }
.development-empty { grid-column: 1 / -1; padding: 32px; color: var(--muted); text-align: center; }
.development-card-dialog { width: min(760px, calc(100vw - 30px)); }
html:has(#developmentCardDialog[open]),body:has(#developmentCardDialog[open]) { overflow:hidden;overscroll-behavior:none; }
#developmentCardDialog { overscroll-behavior:contain;scrollbar-width:none; }
#developmentCardDialog::-webkit-scrollbar { display:none;width:0;height:0; }
.development-dialog-head { position: relative; padding-right: 100px; }
.development-dialog-head .development-status { position: absolute; top: 0; right: 0; }
.development-dialog-description { color: var(--muted); line-height: 1.7; }
.development-criteria { display: grid; gap: 8px; padding-left: 20px; color: var(--ink); font-size: 11px; }
.development-full-steps { display: grid; gap: 8px; margin: 10px 0 18px; padding: 0; list-style: none; }
.development-full-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.development-step-check { position: relative; display: block; width: 28px; height: 28px; cursor: pointer; }
.development-step-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.development-step-check span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #087c4a; background: var(--green-soft); font-size: 10px; font-weight: 900; transition: .16s ease; }
.development-step-check input:focus-visible + span { outline: 2px solid #35ddeb; outline-offset: 2px; }
.development-step-check input:checked + span { color: #fff; border-color: #12a865; background: #12a865; font-size: 0; }
.development-step-check input:checked + span::after { content: '✓'; font-size: 14px; }
.development-step-check input:disabled + span { cursor: default; }
.development-full-steps li.completed { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); background: color-mix(in srgb, var(--green-soft) 52%, var(--panel)); }
.development-full-steps li.completed b { color: #087c4a; }
.development-autosave-note { margin: -2px 0 10px; padding: 9px 11px; border: 1px dashed color-mix(in srgb, var(--green) 45%, var(--line)); border-radius: 9px; color: var(--muted); background: color-mix(in srgb, var(--green-soft) 45%, var(--panel)); font-size: 9px; line-height: 1.5; }
.development-autosave-note b { color: #087c4a; }
.development-full-steps li > div { min-width: 0; }
.development-full-steps b { display: block; color: var(--ink); font-size: 11px; line-height: 1.4; }
.development-full-steps p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.development-evidence { margin: 14px 0 18px; padding: 13px 14px; border-left: 3px solid #8b5cf6; border-radius: 10px; background: rgba(139,92,246,.08); }
.development-evidence b { font-size: 10px; }
.development-evidence p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.development-dialog-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.development-dialog-metrics span { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-size: 10px; }
.development-dialog-metrics b { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.development-result { margin: 14px 0; padding: 13px; border-left: 3px solid #22c55e; border-radius: 9px; background: var(--green-soft); }
.development-result.tl { border-color: #8b5cf6; background: rgba(139,92,246,.08); }
.development-result p { margin: 7px 0 0; white-space: pre-wrap; }
.development-result-field { display: grid; gap: 7px; margin-top: 16px; }
.development-result-field textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 132px; resize: vertical; }
.development-locked-note { margin-top: 15px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--panel-2); font-size: 10px; }
.development-approval-panel { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.development-approval-panel.ready { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); background: color-mix(in srgb, var(--green-soft) 60%, var(--panel)); }
.development-approval-panel.approved { border-color: rgba(232,79,92,.34); background: color-mix(in srgb, var(--red-soft) 48%, var(--panel)); }
.development-approval-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.development-approval-head h3 { margin: 3px 0 0; font-size: 15px; }
.development-approval-head > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: var(--muted); background: var(--panel); font-size: 9px; font-weight: 900; }
.development-approval-panel.ready .development-approval-head > span { color: #087c4a; background: var(--green-soft); }
.development-approval-panel.approved .development-approval-head > span { color: #087c4a; background: var(--green-soft); }
.development-approval-hint { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.development-approval-panel .form-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.development-approval-panel .form-actions button { width: 100%; min-height: 42px; justify-content: center; }
.development-approval-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 14px; }
.development-approval-actions.with-cancel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.development-approval-actions button { width: 100%; min-height: 42px; }
.development-revoke-button { color: #fff; border-color: #c93445; background: linear-gradient(135deg, #e84f5c, #c93445); box-shadow: 0 10px 24px rgba(201,52,69,.18); }
.development-approval-panel button:disabled { cursor: not-allowed; opacity: .45; filter: grayscale(.35); }
.development-approve-button:not(:disabled) { color: #052014; background: linear-gradient(135deg, #65f27b, #35ddeb); box-shadow: 0 10px 24px rgba(53,221,235,.16); }
.challenge-dialog { width: min(780px, calc(100vw - 30px)); }
@media (max-width: 980px) { .development-kpis { grid-template-columns: repeat(2, 1fr); }.development-layout { grid-template-columns: 1fr; }.development-progress-panel { position: static; } }
@media (max-width: 680px) { .development-hero { align-items: stretch; flex-direction: column; }.development-hero-actions, .development-approval-actions { display: grid; grid-template-columns: 1fr; }.development-toolbar, .development-board, .development-kpis { grid-template-columns: 1fr; }.development-dialog-metrics { grid-template-columns: repeat(2, 1fr); } }

/* Advertiser accounts and deliberately limited advertiser workspace. */
.advertiser-directory { display: grid; gap: 18px; }
.advertiser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.advertiser-card { display: flex; min-height: 150px; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2, rgba(127,127,127,.04)); }
.advertiser-card.disabled { opacity: .65; }
.advertiser-card h3 { margin: 12px 0 5px; }
.advertiser-card p { margin: 0 0 7px; color: var(--muted); }
.advertiser-card small { color: var(--muted); }
.advertiser-dialog { width: min(920px, calc(100vw - 28px)); }
.advertiser-access-field { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.advertiser-access-field legend { padding: 0 6px; font-weight: 900; }
.advertiser-access-field > p { margin: 0 0 10px; color: var(--muted); font-size: 9px; }
.advertiser-access-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.advertiser-access-toolbar input { min-width: 0; }
.advertiser-access-toolbar span { color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.advertiser-access-toolbar button { min-height: 38px; padding: 8px 11px; }
.advertiser-check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 270px; overflow: auto; }
.advertiser-check-list label { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2, rgba(127,127,127,.04)); cursor: pointer; }
.advertiser-check-list input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; }
.advertiser-check-list span { display: grid; min-width: 0; gap: 3px; }
.advertiser-check-list b, .advertiser-check-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.advertiser-check-list b { color: var(--ink) !important; }
.advertiser-check-list small { color: var(--muted) !important; }
.advertiser-check-list label, .advertiser-check-list label span { color: var(--ink) !important; }
body.theme-light .advertiser-check-list label { border-color: #cbd5e1; background: #f8fafc; }
body.theme-light .advertiser-access-field { border-color: #cbd5e1; background: rgba(248,250,252,.72); }
.advertiser-mode :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner),
.advertiser-mode :is(#dashboardView,#unityDashboardView) .insight-grid .insight-panel:nth-child(2),
.advertiser-mode :is(#dashboardView,#unityDashboardView) .ranking-panel:has(#worstCampaigns),
.advertiser-mode #creativesView .creative-rankings .ranking-panel:nth-child(2),
.advertiser-mode :is(#mediaUploadButton,#unityMediaUploadButton),
.advertiser-mode :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#directionFilter,#unityDirectionFilter)),
.advertiser-mode :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#teamFilter,#unityTeamFilter)),
.advertiser-mode :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#buyerFilter,#unityBuyerFilter)) { display: none !important; }
.advertiser-mode :is(#dashboardView,#unityDashboardView) .insight-grid,
.advertiser-mode :is(#dashboardView,#unityDashboardView) #campaigns,
.advertiser-mode #creativesView .creative-rankings { grid-template-columns: 1fr; }
.advertiser-mode #offersView .management-hero .subtitle { font-size: 0; }
.advertiser-mode #offersView .management-hero .subtitle::after { content: 'Текущие назначенные оферы: общий бюджет, фактический залив и остаток.'; font-size: 10px; }
@media (max-width: 1000px) { .advertiser-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .advertiser-grid, .advertiser-check-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .advertiser-access-toolbar { grid-template-columns: 1fr 1fr; }.advertiser-access-toolbar input { grid-column: 1 / -1; }.advertiser-access-toolbar span { align-self: center; } }

/* Mobile workspace — compact, touch-friendly and horizontally safe. */
@media (max-width: 780px) {
  html { scroll-padding-top: 112px; }
  body:not(.locked) { overflow-x: hidden; }

  body:not(.locked) .sidebar {
    position: sticky;
    top: 0;
    z-index: 70;
    width: 100%;
    min-height: 0;
    padding: max(10px, env(safe-area-inset-top)) 12px 9px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  }
  body:not(.locked) .brand {
    min-height: 38px;
    align-self: start;
    padding: 0 4px;
    font-size: 14px;
    letter-spacing: .08em;
  }
  body:not(.locked) .nav {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1px 0 3px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  body:not(.locked) .nav::-webkit-scrollbar { display: none; }
  body:not(.locked) .nav-item {
    min-height: 38px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
    scroll-snap-align: start;
  }
  body:not(.locked) .nav-item.active { box-shadow: inset 0 -3px var(--green); }
  body:not(.locked) .sidebar-note { display: none; }

  body:not(.locked) main {
    width: 100%;
    margin-left: 0;
    padding: 16px 12px calc(88px + env(safe-area-inset-bottom));
  }
  .topbar { gap: 12px; align-items: stretch; flex-direction: column; }
  .topbar h1 { font-size: clamp(22px, 7vw, 30px); line-height: 1.08; }
  .topbar .subtitle { display: block; margin-top: 5px; font-size: 10px; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .top-actions .export-data-button { width: 100%; justify-content: center; }
  .top-actions .avatar { display: none; }

  .filters {
    margin-top: 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
  }
  .filters label { min-width: 0; }
  .filters label > span { top: 6px; left: 10px; }
  .filters select,
  .filters input,
  .filters .reset-filters {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding-right: 8px;
    font-size: 12px;
  }
  .filters .reset-filters { grid-column: 1 / -1; }

  .freshness-banner { margin-top: 12px; padding: 13px; gap: 12px; }
  .freshness-banner,
  .freshness-side { align-items: flex-start; flex-direction: column; text-align: left; }
  .freshness-side,
  .freshness-action { width: 100%; }
  .freshness-action { min-height: 42px; }

  .kpi-grid,
  .management-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi-card { min-height: 126px; padding: 14px; }
  .kpi-title { gap: 7px; font-size: 9px; }
  .kpi-icon { width: 23px; height: 23px; }
  .kpi-value { margin-top: 14px; font-size: clamp(18px, 5.5vw, 24px); }
  .kpi-foot { font-size: 8px; line-height: 1.35; }

  .panel { padding: 14px; border-radius: 13px; }
  .panel-heading { gap: 9px; }
  .panel-heading h2 { font-size: 16px; line-height: 1.2; }
  .insight-grid,
  .rankings,
  .campaign-rankings,
  .dashboard-performance-leaders { grid-template-columns: 1fr; gap: 9px; }
  .campaign-rankings .ranking-panel:last-child { grid-column: auto; }
  .insight-row { align-items: flex-start; }
  .insight-row strong,
  .insight-row small { white-space: normal; }

  .performance-panel { overflow: hidden; }
  .performance-panel .panel-heading { align-items: stretch; flex-direction: column; }
  .chart-actions { justify-content: space-between; }
  .chart {
    height: 380px;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }
  .chart svg { width: 960px; min-width: 960px; }
  .chart-label { font-size: 11px; }
  .chart-axis { font-size: 9px; }
  .chart-week-label { font-size: 9px; }

  .campaign-rankings .campaign-row,
  .campaign-row {
    grid-template-columns: 22px repeat(3, minmax(0, 1fr)) 34px;
    gap: 7px 8px;
    padding: 12px 0;
  }
  .campaign-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .campaign-row > :nth-child(2) { grid-column: 2 / 5; grid-row: 1; }
  .campaign-row > :nth-child(6) { grid-column: 5; grid-row: 1; }
  .campaign-row > :nth-child(3) { grid-column: 2; grid-row: 2; justify-self: start; }
  .campaign-row > :nth-child(4) { grid-column: 3; grid-row: 2; justify-self: start; }
  .campaign-row > :nth-child(5) { grid-column: 4; grid-row: 2; justify-self: end; }
  .campaign-name strong,
  .campaign-name small { white-space: normal; }

  .dashboard-leader-row {
    grid-template-columns: 22px repeat(3, minmax(0, 1fr)) 34px;
    gap: 7px 8px;
    padding: 12px 0;
  }
  .dashboard-leader-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .dashboard-leader-row > :nth-child(2) { grid-column: 2 / 5; grid-row: 1; }
  .dashboard-leader-row > :nth-child(6) { grid-column: 5; grid-row: 1; }
  .dashboard-leader-row > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .dashboard-leader-row > :nth-child(4) { grid-column: 3; grid-row: 2; }
  .dashboard-leader-row > :nth-child(5) { grid-column: 4; grid-row: 2; justify-self: end; }
  .dashboard-leader-row .metric,
  .campaign-row .metric { width: 100%; overflow: visible; font-size: 9px; text-align: left; }
  .dashboard-leader-row .metric small,
  .campaign-row .metric small { font-size: 6px; white-space: normal; }
  .dashboard-leader-roas { min-width: 0; width: 100%; padding-inline: 4px; font-size: 9px; }
  .dashboard-leader-name strong,
  .dashboard-leader-name small { white-space: normal; }

  .table-panel { padding-right: 0; }
  .table-panel > .panel-heading { padding-right: 14px; align-items: stretch; flex-direction: column; }
  .table-heading .search,
  .daily-update-controls,
  .daily-update-controls label,
  .daily-update-controls input { width: 100%; max-width: none; }
  .daily-update-controls { align-items: stretch; text-align: left; }
  .table-wrap {
    max-width: 100%;
    margin-right: 0;
    padding-bottom: 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: auto;
  }
  .table-panel .table-wrap { max-height: 68vh; }
  .table-wrap > table { font-size: 9px; }
  .table-wrap > table th,
  .table-wrap > table td { padding: 10px 9px; }
  .table-wrap > table th:first-child,
  .table-wrap > table td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: var(--panel);
    box-shadow: 1px 0 0 var(--line);
  }
  .table-wrap > table th:first-child { z-index: 6; }

  .management-hero,
  .creative-hero,
  .generator-hero,
  .database-hero,
  .buyer-intro,
  .employee-toolbar,
  .media-preview-info { align-items: stretch; flex-direction: column; }
  .hero-actions,
  .offer-table-tools { width: 100%; justify-content: stretch; }
  .hero-actions > *,
  .offer-table-tools > * { flex: 1 1 140px; }
  .creative-filters,
  .company-filters,
  .employee-filters,
  .push-filter-bar { grid-template-columns: 1fr; }
  .creative-filters .search,
  .company-filters .search,
  .employee-filters .search { width: 100%; max-width: none; grid-column: auto; }

  dialog {
    width: calc(100vw - 20px);
    max-width: none;
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 20px 16px;
    overflow: auto;
    border-radius: 16px;
  }
  .toast { right: 12px; bottom: calc(58px + env(safe-area-inset-bottom)); left: 12px; max-width: none; text-align: center; }
  .theme-toggle {
    top: auto;
    right: 9px;
    bottom: calc(9px + env(safe-area-inset-bottom));
    width: 36px;
    height: 36px;
    display: inline-flex;
    font-size: 16px;
    opacity: .82;
  }
}

.offer-buyer-budget-panel { width: min(1180px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 44px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--panel); box-shadow: 0 30px 90px rgba(7,12,22,.28); }
.offer-buyer-budget-panel:not([open]) { display: none; }
.offer-buyer-budget-panel[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.offer-buyer-budget-panel::backdrop { background: rgba(10,15,25,.48); backdrop-filter: blur(5px); }
.offer-buyer-budget-panel > .panel-heading { padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--green) 7%, var(--panel)), var(--panel) 55%); }
#offerBuyerBudgets { padding: 20px 24px 26px; overflow: auto; }
.offer-budget-toggle { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 6px 13px 6px 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); text-align: left; cursor: pointer; box-shadow: 0 4px 12px rgba(17,23,34,.06); transition: translate .16s ease, box-shadow .16s ease, border-color .16s ease; }
.offer-budget-toggle:hover { translate: 0 -1px; border-color: #b8dfcc; box-shadow: 0 7px 17px rgba(17,23,34,.1); }
.offer-budget-toggle > span:last-child { display: grid; gap: 2px; }
.offer-budget-toggle b { font-size: 11px; }
.offer-budget-toggle small { color: var(--muted); font-size: 8px; }
.offer-budget-toggle-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; color: #087c4a; background: var(--green-soft); font-size: 14px; font-weight: 900; }
.offer-budget-toggle[aria-expanded="true"] { border-color: #b8dfcc; background: var(--green-soft); }
.offer-progress-toggle, .offer-brief-toggle { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 6px 13px 6px 7px; border: 1px solid #b8dfcc; border-radius: 10px; color: var(--ink); background: var(--green-soft); text-align: left; cursor: pointer; box-shadow: 0 4px 12px rgba(17,23,34,.06); }
.offer-progress-toggle > span:last-child, .offer-brief-toggle > span:last-child { display: grid; gap: 2px; }
.offer-progress-toggle b, .offer-brief-toggle b { font-size: 11px; }
.offer-progress-toggle small, .offer-brief-toggle small { color: var(--muted); font-size: 8px; }
.offer-progress-dialog { width: min(1080px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 44px); margin: auto; padding: 24px; overflow: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--panel); box-shadow: 0 30px 90px rgba(7,12,22,.28); }
.offer-progress-dialog:not([open]) { display: none; }
.offer-progress-dialog[open] { display: grid; gap: 16px; }
.offer-progress-dialog::backdrop { background: rgba(10,15,25,.48); backdrop-filter: blur(5px); }
.offer-brief-dialog { width: min(780px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 44px); margin: auto; padding: 24px; overflow: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--panel); box-shadow: 0 30px 90px rgba(7,12,22,.28); }
.offer-brief-dialog:not([open]) { display: none; }
.offer-brief-dialog[open] { display: grid; gap: 16px; }
.offer-brief-dialog::backdrop { background: rgba(10,15,25,.48); backdrop-filter: blur(5px); }
.offer-brief-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-right: 34px; }
.offer-brief-heading h2 { margin: 3px 0 4px; }
.offer-brief-heading label { display: grid; min-width: 200px; gap: 6px; }
.offer-brief-heading label > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.offer-brief-actions { display: flex; justify-content: flex-end; }
#offerBriefText { min-height: 260px; margin: 0; padding: 20px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--panel-2, rgba(127,127,127,.04)); font: 600 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.offer-progress-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.offer-progress-heading h2 { margin: 3px 0 4px; }
.offer-progress-person { display: grid; min-width: 260px; gap: 6px; }
.offer-progress-person > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.offer-progress-person select { min-height: 42px; }
.offer-progress-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer-progress-summary article { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2, rgba(127,127,127,.04)); }
.offer-progress-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.offer-progress-summary b { font-size: 19px; }
.offer-progress-summary small { grid-column: 1 / -1; color: var(--muted); }
.offer-progress-summary .offer-progress-track { grid-column: 1 / -1; }
.offer-progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.offer-progress-card { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.offer-progress-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-progress-card header > div { display: grid; gap: 3px; min-width: 0; }
.offer-progress-card header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-progress-card header small { color: var(--muted); }
.offer-progress-card header strong { font-size: 18px; }
.offer-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--muted) 16%, transparent); }
.offer-progress-track i { display: block; height: 100%; border-radius: inherit; background: #687386; transition: width .25s ease; }
.offer-progress-track.good i { background: #18a869; }
.offer-progress-track.near i { background: #f0a020; }
.offer-progress-track.over i { background: #df4555; }
.offer-progress-card footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.offer-progress-card footer span { display: grid; gap: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.offer-progress-card footer b { color: var(--ink); font-size: 11px; text-transform: none; }
.offer-budget-close { position: static; flex: 0 0 auto; }
.offer-budget-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.offer-budget-summary > article { display: grid; gap: 5px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2, rgba(127,127,127,.04)); }
.offer-budget-summary span,
.offer-buyer-budget-metrics span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.offer-budget-summary b { font-size: 22px; }
.offer-budget-summary small,
.offer-buyer-budget-card small { color: var(--muted); }
.offer-buyer-budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.offer-buyer-budget-card { display: grid; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.offer-buyer-budget-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.offer-buyer-budget-card header > div { display: grid; gap: 3px; min-width: 0; }
.offer-buyer-budget-card header b { overflow: hidden; text-overflow: ellipsis; }
.offer-buyer-budget-card p { margin: 0; color: var(--muted); font-size: 12px; }
.offer-buyer-budget-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer-buyer-budget-metrics > div { display: grid; gap: 4px; min-width: 0; padding: 11px; border-radius: 10px; background: var(--panel-2, rgba(127,127,127,.04)); }
.offer-buyer-budget-metrics b { font-size: 16px; }
.offer-buyer-budget-metrics small { line-height: 1.4; }
.offer-budget-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.offer-buyer-budget-table-wrap { margin-top: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.offer-buyer-budget-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.offer-buyer-budget-table th { padding: 11px 13px; color: var(--muted); background: var(--panel-2, rgba(127,127,127,.04)); text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.offer-buyer-budget-table td { padding: 13px; border-top: 1px solid var(--line); vertical-align: top; font-size: 11px; }
.offer-buyer-budget-table td > small { display: block; margin-top: 5px; color: var(--muted); }
.offer-budget-assignments { display: grid; gap: 6px; min-width: 260px; }
.offer-budget-assignment { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 2px 12px; padding: 8px 10px; border-radius: 9px; background: var(--panel-2, rgba(127,127,127,.04)); }
.offer-budget-assignment b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .offer-progress-heading { align-items: stretch; flex-direction: column; }
  .offer-progress-person { min-width: 0; }
  .offer-progress-summary { grid-template-columns: 1fr; }
  .offer-progress-grid { grid-template-columns: 1fr; }
  .offer-progress-card footer { grid-template-columns: 1fr; }
}

/* Fullscreen dashboard tables must win over the dark-theme panel positioning. */
body:not(.locked):not(.theme-light) .table-panel.table-panel-expanded,
body.theme-light:not(.locked) .table-panel.table-panel-expanded {
  position: fixed;
  inset: 18px;
  z-index: 9999;
  background: var(--panel);
}
body:not(.locked):not(.theme-light) .table-panel.table-panel-expanded .table-expand-button b {
  color: #fff;
}
@media (max-width: 680px) {
  .table-panel.table-panel-expanded,
  body:not(.locked):not(.theme-light) .table-panel.table-panel-expanded,
  body.theme-light:not(.locked) .table-panel.table-panel-expanded { inset: 6px; padding: 12px; border-radius: 14px; }
}
.offer-budget-assignment small { grid-column: 1; color: var(--muted); }
.offer-budget-assignment span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--green); font-weight: 900; }
.offer-unassigned-section { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.offer-budget-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer-budget-section-title h3 { margin: 0; font-size: 15px; }
.offer-budget-section-title span { padding: 5px 8px; border-radius: 999px; color: #a56611; background: #fff5df; font-size: 9px; font-weight: 850; }
.offer-unassigned-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 9px; }
.offer-unassigned-grid article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; min-width: 0; padding: 14px 15px; border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--orange) 6%, var(--panel)); }
.offer-unassigned-grid article > div { display: grid; gap: 4px; min-width: 0; }
.offer-unassigned-grid article b { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }
.offer-unassigned-grid small { color: var(--muted); }
.offer-unassigned-grid strong { align-self: center; white-space: nowrap; color: #a56611; }

@media (max-width: 900px) {
  .offer-budget-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .offer-budget-summary,
  .offer-buyer-budget-metrics { grid-template-columns: 1fr; }
  .chart { height: 400px; }
  .chart svg { width: 1000px; min-width: 1000px; }
  .auth-screen { min-height: 100dvh; padding: 0; }
  .brand-gate-frame { height: 100dvh; padding: 14px 14px calc(94px + env(safe-area-inset-bottom)); }
  .brand-gate-layout { align-content: center; }
  .brand-gate-copy h1 { max-width: none; font-size: clamp(48px, 15vw, 64px); line-height: .84; }
  .brand-gate-chip { margin-bottom: 12px; }
  .brand-gate-text { max-width: 30ch; font-size: 11px; line-height: 1.4; }
  .brand-gate-actions { width: 100%; margin-top: 20px; }
  .brand-gate-button { width: 100%; min-width: 0; padding: 16px; font-size: 12px; }
  .brand-gate-contacts { bottom: max(8px, env(safe-area-inset-bottom)); }
  .auth-screen.login-visible .brand-gate { visibility: hidden; }
  .auth-card {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 30px 22px;
    overflow: auto;
    border-radius: 22px;
  }
  .auth-card h1 { font-size: 28px; }
  .auth-card input:not([type="checkbox"]) { min-height: 48px; font-size: 16px; }

  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .reset-filters { grid-column: 1 / -1; }
  .kpi-grid,
  .management-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card { min-height: 120px; }
  .kpi-value { font-size: clamp(17px, 5.4vw, 22px); }
  .legend { flex-wrap: wrap; }
  .chart-actions { align-items: flex-start; flex-direction: column; }
  .chart-actions select { width: 100%; min-height: 42px; font-size: 11px; }
  input,
  select,
  textarea { font-size: 16px; }
}

/* Final mobile contract. Kept last so desktop feature styles cannot break phones. */
@media (max-width: 780px) {
  html {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body { min-width: 320px; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button, [role="button"], .nav-item { touch-action: manipulation; }

  body:not(.locked) .sidebar {
    position: sticky;
    inset: 0 0 auto;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    padding: max(9px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }
  body:not(.locked) .brand { min-height: 36px; padding: 0 2px; }
  body:not(.locked) .direction-switcher {
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: 1fr 1fr;
    align-self: center;
  }
  body:not(.locked) .direction-switcher-label { display: none; }
  body:not(.locked) .direction-switcher button {
    min-height: 36px;
    justify-content: center;
    padding: 7px 8px;
  }
  body:not(.locked) .nav {
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
    margin: 0;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
  }
  body:not(.locked) .nav-group {
    width: max-content;
    min-width: 100%;
    display: flex;
    gap: 6px;
  }
  body:not(.locked) .nav-group[hidden] { display: none; }
  body:not(.locked) .nav-item {
    min-height: 40px;
    padding: 10px 12px;
    justify-content: center;
    white-space: nowrap;
    font-size: 11px;
  }
  body:not(.locked) .nav-item::before { display: none; }
  body:not(.locked) .nav-item:hover { transform: none; }
  body:not(.locked) .dashboard-display-control {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
  body:not(.locked) .dashboard-display-button { width: 100%; min-height: 40px; }
  body:not(.locked) .dashboard-display-menu {
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
  }

  body:not(.locked) main {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  main > [id$="View"], main > section, .view, .panel { min-width: 0; max-width: 100%; }
  h1, h2, h3, p, small, span, b, strong { overflow-wrap: anywhere; }
  .subtitle { line-height: 1.45; }
  .top-actions, .hero-actions, .media-hero-actions, .influence-search-actions,
  .development-hero-actions, .employee-card-actions, .influence-person-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .top-actions > button, .hero-actions > button, .media-hero-actions > *,
  .influence-search-actions > *, .development-hero-actions > * { min-height: 44px; }

  .filters, .creative-filters, .company-filters, .employee-filters,
  .push-filter-bar, .development-toolbar, .design-memory-filters,
  .advertiser-access-toolbar, .media-toolbar {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .filters input, .filters select, .filters button,
  .creative-filters input, .creative-filters select,
  .company-filters input, .company-filters select,
  .employee-filters input, .employee-filters select,
  .development-toolbar select { min-height: 46px; font-size: 16px; }

  .dashboard-matrix-head { gap: 10px; }
  .dashboard-matrix-summary, .development-kpis, .database-summary,
  .offer-budget-summary, .designer-stats-grid, .design-timeline-grid,
  .detail-kpis, .allocation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-pnl-workspace {
    width: 100%;
    max-width: 100%;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-x: visible;
    overflow-y: visible;
  }
  .dashboard-pnl-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
  }
  .dashboard-pnl-panel > header { position: sticky; left: 0; }
  .dashboard-pnl-table-wrap { -webkit-overflow-scrolling: touch; }
  .dashboard-pnl-table { font-size: 10px; }
  .dashboard-pnl-table th, .dashboard-pnl-table td { padding: 9px 8px; }

  .table-wrap, .offer-registry-scroll, .sheet-grid-wrap,
  .organization-viewport, .designer-board, .calendar-panel {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap > table { font-size: 11px; }
  .table-wrap > table th { font-size: 9px; }
  .table-wrap > table th, .table-wrap > table td { padding: 11px 10px; }
  .table-wrap::after, .dashboard-pnl-workspace::after {
    content: 'Проведите в сторону, чтобы увидеть остальные данные';
    position: sticky;
    left: 10px;
    display: block;
    width: max-content;
    max-width: calc(100vw - 52px);
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
  }

  .content-grid, .management-layout, .buyer-layout, .leave-layout,
  .database-grid, .generator-layout, .development-layout,
  .influence-dashboard-grid, .influence-grid, .media-drive-setup,
  .form-grid, .employee-profile-grid, .advertiser-grid {
    grid-template-columns: 1fr;
  }
  .employee-grid, .development-board, .media-grid,
  .design-memory-week-grid, .advertiser-check-list { grid-template-columns: 1fr; }
  .designer-board {
    display: flex;
    gap: 10px;
    scroll-snap-type: x mandatory;
  }
  .designer-column {
    flex: 0 0 min(88vw, 360px);
    min-width: min(88vw, 360px);
    scroll-snap-align: start;
  }
  .calendar-weekdays, .calendar-grid, .calendar-toolbar { min-width: 700px; }
  .organization-viewport { min-height: 390px; }

  dialog, .offer-buyer-budget-panel {
    box-sizing: border-box;
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .offer-buyer-budget-panel { padding: 0; }
  .dialog-close { width: 44px; height: 44px; }
  .form-actions {
    position: sticky;
    bottom: calc(-18px - env(safe-area-inset-bottom));
    z-index: 5;
    margin: 18px -14px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: var(--panel);
    border-top: 1px solid var(--line);
  }
  dialog input:not([type="checkbox"]):not([type="radio"]),
  dialog select, dialog textarea { max-width: 100%; font-size: 16px; }
  .development-full-steps li { align-items: flex-start; }
  .development-step-check { flex: 0 0 auto; }
  .development-dialog-metrics { grid-template-columns: 1fr 1fr; }
  .offer-buyer-budget-panel > .panel-heading, #offerBuyerBudgets { padding: 14px; }
  .offer-buyer-budget-grid { grid-template-columns: 1fr; }

  .media-hover-preview { display: none !important; }
  .toast {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(54px + env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
  }
}

@media (max-width: 430px) {
  body:not(.locked) .sidebar { grid-template-columns: 1fr; }
  body:not(.locked) .brand { display: none; }
  body:not(.locked) .direction-switcher { grid-column: 1; }
  .filters, .creative-filters, .company-filters, .employee-filters,
  .push-filter-bar, .development-toolbar, .design-memory-filters,
  .advertiser-access-toolbar, .media-toolbar { grid-template-columns: 1fr; }
  .kpi-grid, .management-kpis, .dashboard-matrix-summary,
  .development-kpis, .database-summary, .designer-stats-grid,
  .design-timeline-grid, .detail-kpis, .allocation-summary { grid-template-columns: 1fr 1fr; }
  .panel { padding: 12px; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .panel-heading > * { max-width: 100%; }
  .influence-search-head { padding: 14px; align-items: stretch; flex-direction: column; }
  .influence-search-actions > * { flex: 1 1 100%; }
  .development-dialog-metrics, .offer-budget-summary,
  .offer-buyer-budget-metrics { grid-template-columns: 1fr; }
  .employee-photo-editor { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  body:not(.locked) main { padding-inline: 8px; }
  .kpi-grid, .management-kpis, .dashboard-matrix-summary,
  .development-kpis, .database-summary, .designer-stats-grid,
  .detail-kpis { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 21px; }
  .nav-item { font-size: 10px; }
}

@media (max-width: 780px) and (orientation: landscape) and (max-height: 520px) {
  body:not(.locked) .sidebar { position: relative; padding-top: 7px; }
  .auth-card { max-height: calc(100dvh - 12px); }
  dialog, .offer-buyer-budget-panel { max-height: calc(100dvh - 8px); }
}

.mobile-menu-toggle { display: none; }

/* Phones never move the application canvas sideways. */
@media (max-width: 780px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overscroll-behavior-x: none;
  }
  body:not(.locked) .sidebar {
    grid-template-columns: auto minmax(0, 1fr) 44px;
    grid-template-rows: 44px;
    align-items: center;
    column-gap: 10px;
    overflow: visible;
  }
  body:not(.locked) .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    white-space: nowrap;
  }
  body:not(.locked) .direction-switcher {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 270px);
    min-width: 0;
    max-width: 270px;
    justify-self: end;
  }
  body:not(.locked) .direction-switcher button {
    min-width: 0;
    overflow: hidden;
    justify-content: center;
    padding-inline: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body:not(.locked) main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  body:not(.locked) main > *,
  body:not(.locked) main section,
  body:not(.locked) main article,
  body:not(.locked) main form { min-width: 0; max-width: 100%; }

  .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(127, 140, 163, .24);
    border-radius: 11px;
    color: inherit;
    background: rgba(127, 140, 163, .1);
  }
  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  .mobile-nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .mobile-nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  body:not(.locked) .nav {
    position: fixed;
    top: calc(max(9px, env(safe-area-inset-top)) + 54px);
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    z-index: 90;
    width: auto;
    max-height: calc(100dvh - max(9px, env(safe-area-inset-top)) - 70px - env(safe-area-inset-bottom));
    display: none;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  }
  body:not(.locked) .sidebar.mobile-nav-open .nav { display: block; }
  body:not(.locked) .nav-group {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  body:not(.locked) .nav-group[hidden] { display: none; }
  body:not(.locked) .nav-item {
    min-width: 0;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.25;
  }
  body:not(.locked) .dashboard-display-control { display: none !important; }

  .dashboard-pnl-workspace,
  .table-wrap,
  .sheet-grid-wrap,
  .calendar-panel,
  .designer-board,
  .organization-viewport {
    overscroll-behavior-x: contain;
  }
}

@media (max-width: 430px) {
  body:not(.locked) .sidebar { grid-template-columns: minmax(0, 1fr) 44px; }
  body:not(.locked) .brand { display: none; }
  body:not(.locked) .direction-switcher {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  .mobile-menu-toggle { grid-column: 2; grid-row: 1; }
  body:not(.locked) .nav-group { grid-template-columns: 1fr; }
}

@media (min-width: 431px) and (max-width: 560px) {
  body:not(.locked) .sidebar { grid-template-columns: auto minmax(150px, 1fr) 44px; }
  body:not(.locked) .brand { font-size: 12px; letter-spacing: .055em; }
  body:not(.locked) .direction-switcher button { font-size: 9px; }
}

@media (max-width: 780px) {
  .performance-panel { overflow: hidden; }
  .performance-panel .chart {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 8px 0 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .performance-panel .chart svg {
    width: auto;
    min-width: 0;
    height: 286px;
    max-height: 310px;
    display: block;
    flex: 0 0 auto;
  }
  .chart-mobile-axis {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 48px;
    height: 286px;
    margin-bottom: -286px;
    color: var(--muted);
    background: linear-gradient(90deg, var(--panel) 0 78%, color-mix(in srgb, var(--panel) 78%, transparent) 88%, transparent 100%);
    pointer-events: none;
  }
  .chart-mobile-axis b {
    position: absolute;
    top: 6px;
    left: 3px;
    font-size: 7px;
    letter-spacing: .04em;
  }
  .chart-mobile-axis span {
    position: absolute;
    right: 8px;
    translate: 0 -50%;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
  }
  .performance-panel .chart-label { font-size: 9px; font-weight: 750; }
  .performance-panel .chart-axis { font-size: 8px; }
  .chart-mobile-note {
    position: sticky;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
  }
}

/* Mobile dashboard controls: keep the view and theme buttons identical and aligned. */
@media (max-width: 780px) {
  body:not(.locked) .theme-toggle,
  body:not(.locked) .dashboard-display-control:not([hidden]),
  body:not(.locked) .dashboard-display-button,
  body:not(.locked) .dashboard-display-button > span:first-child {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 50%;
  }

  body:not(.locked) .theme-toggle,
  body:not(.locked) .dashboard-display-control:not([hidden]) {
    right: 14px;
  }

  body:not(.locked) .theme-toggle {
    bottom: calc(14px + env(safe-area-inset-bottom));
    opacity: 1;
  }

  body:not(.locked) .dashboard-display-control:not([hidden]) {
    position: fixed;
    bottom: calc(66px + env(safe-area-inset-bottom));
    display: block !important;
    margin: 0;
  }

  body:not(.locked) .dashboard-display-button {
    padding: 0;
  }
}

/* Matrix palette for the dark CRM theme. */
body:not(.theme-light):not(.locked) .dashboard-pnl-panel > header {
  color: #f5f7fb;
  border-bottom-color: #2a3140;
  background: #171b25;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-panel > header > span {
  color: #b6c0d0;
  background: #242a37;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table th {
  color: #c2cada;
  border-right-color: #303746;
  border-bottom-color: #465164;
  background: #1c222d;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table th.metric-spend {
  color: #eff5ff;
  background: #536b8f;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table th.metric-deposit,
body:not(.theme-light):not(.locked) .dashboard-pnl-table th.metric-cpa,
body:not(.theme-light):not(.locked) .dashboard-pnl-table th.metric-roas {
  color: #eafff2;
  background: #137947;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table .matrix-group-row td,
body:not(.theme-light):not(.locked) .dashboard-pnl-table .matrix-group-row.day td {
  color: #f4f7fb;
  border-bottom-color: #343d4d;
  background: #252c38;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table .matrix-subgroup-row td {
  color: #eef2f8;
  background: #1c222c;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table .matrix-group-row td > span,
body:not(.theme-light):not(.locked) .dashboard-pnl-table .matrix-subgroup-row td > span {
  color: #aeb8c8;
}
body:not(.theme-light):not(.locked) .matrix-group-toggle > span {
  color: #f8fbff;
  background: #526b89;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table tfoot td {
  color: #f7f9fc;
  border-top-color: #596579;
  background: #222935;
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table td.metric-good {
  color: #69e4a6;
  background: rgba(24,185,113,.13);
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table td.metric-watch {
  color: #ffc96b;
  background: rgba(240,169,55,.12);
}
body:not(.theme-light):not(.locked) .dashboard-pnl-table td.metric-bad {
  color: #ff8492;
  background: rgba(223,83,100,.12);
}

.analytics-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 12, .72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  cursor: wait;
  pointer-events: all;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
}
.analytics-loading-overlay[hidden] { display: none; }
.analytics-loading-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 48px));
  padding: 34px 28px;
  border: 1px solid rgba(104, 243, 152, .24);
  border-radius: 18px;
  color: #f4f7fb;
  background: rgba(14, 18, 27, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  text-align: center;
}
.analytics-loading-card strong { margin-top: 4px; font-size: 18px; }
.analytics-loading-card small { color: #9099aa; font-size: 11px; }
.analytics-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(104, 243, 152, .16);
  border-top-color: #68f398;
  border-radius: 50%;
  animation: analytics-loading-spin .8s linear infinite;
}
html:has(body.analytics-loading) { overflow: hidden; overscroll-behavior: none; }
body.analytics-loading { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; touch-action: none; overscroll-behavior: none; }
@keyframes analytics-loading-spin { to { transform: rotate(360deg); } }
body.theme-light:not(.locked) .analytics-loading-overlay { background: rgba(235, 240, 246, .76); }
body.theme-light:not(.locked) .analytics-loading-card { color: #17202b; border-color: #a9ddc2; background: rgba(255, 255, 255, .97); }

body:not(.locked) dialog.influence-crm-dialog { padding: 0; border-radius: 24px; background: #f5f7fa; }
body:not(.locked) dialog.influence-crm-dialog .influence-crm-fields input,
body:not(.locked) dialog.influence-crm-dialog .influence-crm-fields select,
body:not(.locked) dialog.influence-crm-dialog .influence-crm-fields textarea { border: 1px solid #dce3ea; border-radius: 11px; color: #1b2431; background: #fff; box-shadow: 0 2px 7px rgba(28,38,54,.025); }
body:not(.locked) dialog.influence-crm-dialog .influence-crm-fields input:focus,
body:not(.locked) dialog.influence-crm-dialog .influence-crm-fields select:focus,
body:not(.locked) dialog.influence-crm-dialog .influence-crm-fields textarea:focus { border-color: #20ad78; outline: 0; box-shadow: 0 0 0 4px rgba(20,177,107,.1); }

/* Reference dashboard: graphite surfaces and violet controls. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { display: none; }
body:not(.locked):not(.theme-light) { --bg:#0b0d14; --panel:#10121b; --ink:#f3f2fa; --muted:#aaa6c6; --line:#262534; --green:#23d891; --green-soft:rgba(35,216,145,.12); --navy:#0e0f18; background:radial-gradient(ellipse at 75% 0%,#161125 0%,#0b0d14 58%); }
body:not(.locked):not(.theme-light) .sidebar { width:184px; padding:24px 12px 12px; background:linear-gradient(160deg,#10111b,#0c0e16); border-right:1px solid #222231; }
body:not(.locked):not(.theme-light) .brand { display:flex; flex-direction:column; gap:3px; align-items:center; margin:0 0 22px; padding:0; color:#fff; font-size:22px; letter-spacing:.02em; }
.brand small { font:500 10px Inter,sans-serif; letter-spacing:.15em; color:#bcb6db; }
body:not(.locked):not(.theme-light) .nav { gap:4px; min-height:0; overflow:auto; }
body:not(.locked):not(.theme-light) .nav-item { min-height:34px; margin:2px 0; padding:8px 12px; border:1px solid transparent; border-radius:8px; color:#bbb4d9; font-size:12px; }
body:not(.locked):not(.theme-light) .nav-item.active { color:#fff; background:linear-gradient(110deg,#8a51ff,#6939ed); border-color:#925bff; box-shadow:0 4px 20px #733cff26; }
body:not(.locked):not(.theme-light) .direction-switcher { margin-bottom:10px; padding:7px; background:#171622; }
body:not(.locked):not(.theme-light) .sidebar-note { margin-top:auto; padding:10px 6px 0; font-size:10px; }
body:not(.locked):not(.theme-light) main { margin-left:184px; max-width:none; padding:18px 22px; }
body:not(.locked):not(.theme-light) .panel { background:linear-gradient(130deg,#11131c,#0f1119); border:1px solid #252432; border-radius:9px; box-shadow:none; }
body:not(.locked):not(.theme-light) input,body:not(.locked):not(.theme-light) select,body:not(.locked):not(.theme-light) textarea { color:#e9e6f5; background:#171722; border-color:#343044; border-radius:8px; }
body:not(.locked):not(.theme-light) .detail-primary,body:not(.locked):not(.theme-light) .view-button { color:#fff; background:linear-gradient(110deg,#8750ff,#6938ed); border-color:#9467ff; }
body:not(.locked):not(.theme-light) #mainOverview { display:none!important; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:10px; padding:0; margin:0 0 14px; border:0; background:transparent; box-shadow:none; }
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label { min-width:0; }
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label span { font-size:9px; font-weight:500; letter-spacing:.08em; color:#b3accf; text-transform:uppercase; margin-bottom:7px; }
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) input,body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) select { width:100%; min-width:0; height:36px; padding:7px 9px; font-size:11px; }
body:not(.locked):not(.theme-light) :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters) {
  font-size:10px;
  padding:0 12px;
  align-self:end;
  height:36px;
  color:#c6b4ea;
  background:#191421;
  border:1px solid #48355e;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
body:not(.locked):not(.theme-light) :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters):hover {
  color:#f2eaff;
  background:#2b203a;
  border-color:#9b76ca;
  box-shadow:0 0 0 3px rgba(155,118,202,.1);
}
body:not(.locked):not(.theme-light) :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters):focus-visible {
  outline:2px solid #b48ae8;
  outline-offset:3px;
}
body:not(.locked):not(.theme-light) :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters):active {
  background:#21182e;
  box-shadow:none;
}
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { margin:0 0 10px; padding:5px 10px; min-height:0; font-size:10px; border-radius:6px; }
body:not(.locked):not(.theme-light) :is(#dashboardView,#unityDashboardView) > :not(:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis)):not(:is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner)):not(:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace)):not(#dashboardMatrixView):not(.dashboard-kpi-row):not(#analyticsStatusDock):not(#unityAnalyticsStatusDock) { display:none!important; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin:0 0 14px; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card { position:relative; min-height:78px; padding:17px 12px 12px 65px; border:1px solid #252432; border-radius:9px; background:linear-gradient(130deg,#131520,#0f1119); box-shadow:none; overflow:hidden; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-title { font-size:9px; text-transform:uppercase; color:#b8b0d1; letter-spacing:.06em; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon { position:absolute; top:16px; left:13px; display:grid; place-items:center; width:40px; height:44px; border-radius:10px; background:linear-gradient(140deg,#a770ff,#743df1); font-size:25px; color:#fff; box-shadow:inset 0 1px 3px #ffffff55; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(2) .kpi-icon,body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(6) .kpi-icon { background:linear-gradient(140deg,#20d58d,#139c68); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(3) .kpi-icon { background:linear-gradient(140deg,#298fff,#0753d8); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(4) .kpi-icon { background:linear-gradient(140deg,#ffb12c,#ed7913); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(5) .kpi-icon { background:linear-gradient(140deg,#ff61b0,#db267e); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-value { margin:5px 0 0; font-size:clamp(16px,1.55vw,25px); line-height:1.2; letter-spacing:-.025em; white-space:nowrap; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-foot { display:none; }
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.8fr) minmax(280px,1fr); grid-template-rows:minmax(210px,1fr) 135px 190px; gap:14px; height:calc(100dvh - 208px); min-height:540px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .panel { padding:14px; min-height:0; min-width:0; overflow:hidden; margin:0; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) header { display:flex; align-items:center; justify-content:space-between; gap:8px; height:28px; margin-bottom:10px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) h2 { font-size:12px; font-weight:700; color:#f4f3f8; margin:0; letter-spacing:.02em; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) header > span { font-size:10px; color:#aaa4c6; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) button { cursor:pointer; border:1px solid #8f5eff; border-radius:6px; color:#fff; background:linear-gradient(130deg,#8b51ff,#6838eb); padding:7px 10px; font:500 10px Inter,sans-serif; white-space:nowrap; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) button:hover { filter:brightness(1.2); }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) button:focus-visible { outline:2px solid #bda0ff; outline-offset:2px; }
.neon-offers { grid-column:1 / 3; grid-row:1 / 3; display:flex; flex-direction:column; }
.neon-budgets { grid-column:3; grid-row:1; }
.neon-actions { grid-column:3; grid-row:2; }
.neon-trend { grid-column:1; grid-row:3; }
.neon-geos { grid-column:2; grid-row:3; }
.neon-launches { grid-column:3; grid-row:3; }
.neon-table-scroll { flex:1; min-height:0; overflow:auto; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) table { width:100%; min-width:0; border-collapse:collapse; font-size:11px; table-layout:auto; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) th { position:sticky; top:0; background:#11131c; color:#bbb3d8; font-size:8px; font-weight:500; padding:10px 7px; border-bottom:1px solid #292636; text-align:left; white-space:nowrap; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td { padding:9px 7px; border-bottom:1px solid #23212e; color:#ebe8f5; white-space:nowrap; max-width:180px; overflow:hidden; text-overflow:ellipsis; }
:is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr { cursor:pointer; }
:is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover { background:#242033; }
:is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:first-child { background:#211e30; }
.neon-flag { display:inline-block; font-size:22px; vertical-align:middle; margin-right:7px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-positive { color:#25df92; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-negative { color:#ff718d; }
.neon-status { display:inline-block; padding:5px 9px; border-radius:6px; font-size:10px; }
.neon-status.active { color:#48e7a5; background:#163d31; }
.neon-status.paused { color:#c1b9dd; background:#282636; }
:is(:is(#neonBudgetRows,#unityNeonBudgetRows),#influenceBudgetList) { height:calc(100% - 38px); overflow:auto; }
.neon-budget { display:grid; grid-template-columns:26px minmax(85px,.85fr) minmax(85px,1fr); gap:9px; align-items:center; margin:15px 0; }
.neon-budget b { display:block; font-size:11px; font-weight:500; }
.neon-budget small { display:block; margin-top:6px; font-size:10px; color:#b6afd0; }
.neon-budget em { float:right; font-style:normal; }
.neon-progress { height:13px; overflow:hidden; border-radius:7px; background:#272434; }
.neon-progress i { display:block; height:100%; border-radius:5px; background:linear-gradient(100deg,#a666ff,#7238f4); }
.neon-actions > div { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-actions button { display:flex; align-items:center; gap:10px; padding:8px 10px; text-align:left; color:#efebfa; border-color:#2c293d; background:linear-gradient(120deg,#1c1a29,#15151f); }
.neon-actions b { font-size:23px; color:#c5b4fa; }
.neon-actions small { display:block; color:#a8a0c0; margin-top:3px; font-size:9px; }
.neon-trend header span { white-space:nowrap; font-size:9px!important; }
.neon-trend header i { display:inline-block; width:8px; height:8px; margin:0 4px 0 8px; border-radius:50%; background:#8652ff; }
.neon-trend header i:last-child { background:#20d58f; }
#neonTrend { height:calc(100% - 38px); }
#neonTrend svg { width:100%; height:100%; overflow:visible; }
#neonTrend text { fill:#a8a0c0; font:10px Inter,sans-serif; }
.neon-chart-note { color:#aaa4c6; font-size:9px; }
:is(#neonGeoChart,#unityNeonGeoChart) { display:flex; align-items:center; justify-content:space-around; gap:12px; height:calc(100% - 38px); }
.neon-donut { width:115px; height:115px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.neon-donut > div { display:flex; flex-direction:column; justify-content:center; align-items:center; width:77px; height:77px; border-radius:50%; background:#11121b; }
.neon-donut b { font-size:24px; }
.neon-donut small { font-size:10px; color:#a8a0c0; margin-top:3px; }
.neon-geo-legend { flex:1; min-width:0; font-size:10px; }
.neon-geo-legend p { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.neon-geo-legend i { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.neon-geo-legend span { margin-left:auto; color:#bdb6d3; }

:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches td { padding:6px; font-size:10px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches th { padding:5px 6px; }
.neon-empty { padding:20px!important; color:#aaa4c6!important; text-align:center; font-size:11px; }
body:not(.locked):not(.theme-light) .theme-toggle { width:28px; height:28px; right:8px; top:auto; bottom:8px; background:#242033; color:#baa6eb; }
body:not(.locked):not(.theme-light) .dashboard-display-control { right:42px; top:auto; bottom:8px; }
@media (min-width:1101px) and (max-height:800px) { body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:minmax(160px,1fr) 130px 170px; min-height:460px; height:calc(100dvh - 195px); } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td { padding:7px 6px; } .neon-budget { margin:12px 0; } }
@media (max-width:1250px) { body:not(.locked):not(.theme-light) main { padding:14px; } body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card { padding-left:48px; } body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon { left:8px; width:32px; font-size:20px; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) table { font-size:10px; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td { padding:8px 4px; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers { padding:10px; } .neon-donut { width:85px;height:85px; } .neon-donut > div { width:60px;height:60px; } }
@media (max-width:1100px) { body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { height:auto; min-height:0; grid-template-columns:minmax(0,1fr) minmax(260px,.7fr); grid-template-rows:400px 170px 200px; } .neon-offers { grid-column:1; grid-row:1 / 3; } .neon-budgets { grid-column:2;grid-row:1; } .neon-actions { grid-column:2;grid-row:2; } .neon-trend { grid-column:1;grid-row:3; } .neon-geos { grid-column:2;grid-row:3; } .neon-launches { grid-column:1 / 3;grid-row:4;min-height:190px!important; } body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(4,minmax(0,1fr)); } body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:780px) { body:not(.locked):not(.theme-light) .sidebar { width:100%;padding:10px 14px; } body:not(.locked):not(.theme-light) .brand { margin:0;align-items:flex-start;font-size:19px; } body:not(.locked):not(.theme-light) main { margin-left:0;padding:80px 12px 24px; } body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { display:flex;flex-direction:column; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers { height:380px; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-budgets { height:270px; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-actions { height:155px; } :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-trend,:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { height:210px; } body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1101px) {
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(8,minmax(0,1fr)) 74px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { display:flex; align-items:center; justify-content:space-between; height:30px; overflow:hidden; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main { display:flex;align-items:center;gap:8px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main > div { display:flex;align-items:center;gap:10px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main strong { font-size:10px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main span { font-size:9px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main > div > span:last-child { display:none; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side { display:flex;align-items:center;gap:10px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side > span { display:none; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side strong { font-size:9px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-action { padding:4px 8px; font-size:9px; min-height:0; }
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { height:calc(100dvh - 225px);min-height:0; }
}
@media (min-width:1101px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { height:calc(100dvh - 240px);grid-template-rows:minmax(150px,1fr) 150px 190px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side { flex:0 0 auto; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side .freshness-action { width:auto; margin:0; line-height:1; }
}
@media (min-width:1101px) {
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side { flex-direction:row; }
}
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-actions button { padding:6px 9px; min-height:36px; }

/* Spacious controls and a full status strip beneath the overview metrics. */
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label > span { position:static; display:block; margin:0 0 8px; padding:0; line-height:1.2; }
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) input,
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) select { height:46px; padding:10px 12px; font-size:12px; }
body:not(.locked):not(.theme-light) :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters) { height:46px; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(4,minmax(0,1fr)); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(4) .kpi-icon { background:linear-gradient(140deg,#20d58d,#139c68); }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { display:flex; align-items:center; justify-content:space-between; gap:18px; height:auto; min-height:62px; padding:12px 16px; margin:0 0 14px; overflow:visible; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main > div { display:grid; gap:5px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main strong { font-size:12px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main span { font-size:11px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side { display:flex; flex-direction:row; align-items:center; gap:14px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side strong { font-size:10px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side .freshness-action { min-height:32px; padding:8px 12px; font-size:10px; }
@media (min-width:1101px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { height:calc(100dvh - 293px); grid-template-rows:minmax(100px,1fr) 150px 190px; }
}
@media (max-width:1100px) {
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(2,minmax(0,1fr)); }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side { flex-direction:column; align-items:flex-end; }
}
@media (max-width:780px) {
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { align-items:flex-start; flex-direction:column; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side { align-items:flex-start; }
}

/* Operational overview: large chart, top-ten GEOs, and recent launches. */
:is(:is(#analyticsStatusDock,#unityAnalyticsStatusDock),#influenceAnalyticsDock) { position:relative; display:flex; justify-content:flex-end; min-height:24px; margin:-3px 0 9px; z-index:8; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) { max-width:100%; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) summary { display:flex; align-items:center; gap:7px; width:max-content; max-width:100%; padding:4px 8px; border-radius:6px; color:var(--muted); cursor:pointer; font-size:10px; list-style:none; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) summary::-webkit-details-marker { display:none; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) summary:hover { color:var(--ink); background:#ffffff08; }
.analytics-status-dot { width:6px; height:6px; flex-shrink:0; border-radius:50%; background:#efb953; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus)[data-tone="good"] .analytics-status-dot { background:#23d99a; }
:is(:is(#analyticsStatusLabel,#unityAnalyticsStatusLabel),#influenceAnalyticsLabel) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner),
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { position:absolute; right:0; top:28px; width:min(640px,calc(100vw - 40px)); margin:0; padding:18px; border:1px solid #4c405f; border-radius:10px; box-shadow:0 16px 45px #0008; background:#181421; color:#e7e2f3; min-height:100px; gap:16px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-main > div { display:grid;gap:7px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-main > div > span:last-child { display:block; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-side { flex-direction:column;align-items:flex-end;gap:9px; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-side > span { display:block;font-size:9px; }
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-columns:minmax(0,2.25fr) minmax(300px,1fr); grid-template-rows:minmax(140px,1fr) 180px 300px; height:calc(100dvh - 246px); min-height:0; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers { grid-column:1;grid-row:1 / 3; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-budgets { grid-column:2;grid-row:1; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches { grid-column:2;grid-row:2;min-height:0!important; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-trend { grid-column:1;grid-row:3; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { grid-column:2;grid-row:3; }
:is(#neonLaunchRows,#unityLaunchRows) { height:calc(100% - 38px);overflow:auto; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches td { padding:7px 6px;font-size:11px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-trend header { margin-bottom:12px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-trend h2 { font-size:13px; }
.neon-trend header span { font-size:11px!important; }
#neonTrend { position:relative;height:calc(100% - 40px);min-height:0; }
#neonTrend svg { display:block;width:100%;height:100%;overflow:hidden; }
#neonTrend text { fill:#b9b3cd;font:12px Inter,sans-serif; }
#neonTrend [data-neon-point] { outline:none; }
.neon-chart-tooltip { position:absolute;top:0;max-width:330px;padding:9px 12px;border:1px solid #6a4c9d;border-radius:7px;background:#21192f;color:#f0eafb;box-shadow:0 5px 20px #0006;font-size:11px;pointer-events:none;z-index:2; }
:is(#neonGeoChart,#unityNeonGeoChart) { justify-content:space-between;gap:16px; }
.neon-donut { width:140px;height:140px; }
.neon-donut > div { width:98px;height:98px; }
.neon-donut b { font-size:28px; }
.neon-geo-legend { height:100%;max-height:100%;overflow:auto;display:flex;flex-direction:column;justify-content:center;gap:7px; }
.neon-geo-legend p { margin:0;line-height:15px;font-size:10px; }
.neon-geo-legend i { width:8px;height:8px; }
.neon-geo-legend span { font-variant-numeric:tabular-nums; }
@media (min-width:1101px) and (max-height:850px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:minmax(100px,1fr) 155px 255px; }
.neon-donut { width:105px;height:105px; }.neon-donut > div { width:73px;height:73px; }
.neon-geo-legend { gap:3px; }
}
@media (max-width:1100px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { height:auto;grid-template-columns:minmax(0,1fr) minmax(270px,.7fr);grid-template-rows:270px 180px 300px 300px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-trend { grid-column:1 / 3;grid-row:3; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { grid-column:1 / 3;grid-row:4; }
:is(#neonGeoChart,#unityNeonGeoChart) { justify-content:center;gap:40px; }
.neon-geo-legend { flex:0 1 240px; }
}
@media (max-width:780px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { display:flex; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-trend { height:320px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { height:310px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches { height:230px; }
#neonTrend { overflow-x:auto;overflow-y:hidden; }
#neonTrend svg { min-width:520px; }
:is(#neonGeoChart,#unityNeonGeoChart) { gap:24px; }
:is(:is(#analyticsStatusDock,#unityAnalyticsStatusDock),#influenceAnalyticsDock) { margin-bottom:12px; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { flex-direction:column;align-items:flex-start; }
}

/* Spend share replaces the chart; the project table uses the full height. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers { grid-row:1 / 4; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { grid-column:2;grid-row:3; }
:is(#neonGeoChart,#unityNeonGeoChart) { gap:14px; }
.neon-donut { width:132px;height:132px; }
.neon-donut > div { width:98px;height:98px; }
.neon-donut b { font-size:16px;letter-spacing:-.035em;font-variant-numeric:tabular-nums; }
.neon-geo-legend p { gap:5px; }
.neon-geo-legend .neon-geo-name { display:inline-flex;align-items:center;gap:5px;margin:0;color:#e7e2f3; }
.neon-geo-legend .neon-geo-flag { font-size:16px;margin:0; }
.neon-geo-volume { font-size:10px; }
.neon-geo-volume small { color:#aaa2be;font-size:9px; }
@media (min-width:1101px) and (max-width:1450px) {
.neon-donut { width:105px;height:105px; }.neon-donut > div { width:82px;height:82px; }.neon-donut b { font-size:13px; }
:is(#neonGeoChart,#unityNeonGeoChart) { gap:9px; }.neon-geo-legend p { font-size:9px;gap:4px; }.neon-geo-volume { font-size:9px; }
}
@media (max-width:1100px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:270px 180px 300px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers { grid-column:1;grid-row:1 / 4; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { grid-column:2;grid-row:3; }
:is(#neonGeoChart,#unityNeonGeoChart) { gap:12px;flex-direction:column; }
.neon-donut { width:105px;height:105px; }.neon-donut > div { width:80px;height:80px; }.neon-donut b { font-size:13px; }
.neon-geo-legend { flex:1;width:100%;max-width:none;justify-content:flex-start;gap:5px; }
}
@media (max-width:780px) {
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { height:320px; }
:is(#neonGeoChart,#unityNeonGeoChart) { flex-direction:row;gap:15px; }
.neon-geo-legend { justify-content:center; }
}

/* Bring budget progress alongside project names; improve filter label legibility. */
.neon-budget { grid-template-columns:26px minmax(100px,125px) minmax(0,1fr); column-gap:10px; }
body:not(.locked):not(.theme-light) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label > span { font-size:11px; font-weight:600; }

.neon-budget > div { min-width:0; }
.neon-budget b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }

/* Consistent vector pictograms for the overview metrics. */
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon { width:42px;height:46px;border-radius:11px;box-shadow:inset 0 1px 2px #ffffff50,0 5px 14px #0002; }
:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon svg { display:block;width:27px;height:27px;flex-shrink:0;filter:drop-shadow(0 1px 2px #0001); }
@media (max-width:1250px) {
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon { width:32px;height:42px; }
:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon svg { width:23px;height:23px; }
}

/* Align the sidebar brand, workspace selector, and profile card. */
body:not(.locked):not(.theme-light) .brand::before { content:none;display:none; }
@media (min-width:781px) {
body:not(.locked):not(.theme-light) .sidebar .brand { align-items:flex-start; width:100%; padding:0 12px; margin:0 0 24px; gap:5px; text-align:left; text-shadow:none; }
body:not(.locked):not(.theme-light) .sidebar .brand small { font-size:9px;letter-spacing:.13em;color:#a49abd; }
body:not(.locked):not(.theme-light) .sidebar .direction-switcher { flex:0 0 auto; margin:0 0 18px; padding:10px 8px; gap:6px; border:1px solid #292538; border-radius:10px; background:#14121e; }
body:not(.locked):not(.theme-light) .sidebar .direction-switcher-label { padding:0 2px 4px; font-size:8px; font-weight:600; line-height:1.4; letter-spacing:.055em;color:#aaa0bf; }
body:not(.locked):not(.theme-light) .sidebar .direction-switcher button { display:flex; justify-content:center; align-items:center; min-height:34px; min-width:0; padding:7px 4px; gap:0; border-radius:7px; border:1px solid #2f293f; background:#1c1828; color:#aca1bf; font-size:10px; font-weight:600; box-shadow:none; transform:none; }
body:not(.locked):not(.theme-light) .sidebar .direction-switcher button::before { content:none!important;display:none; }
body:not(.locked):not(.theme-light) .sidebar #directionSwitcher button.active { color:#fff; border-color:#8155dc; background:linear-gradient(135deg,#7344d5,#5730a7); box-shadow:inset 0 1px #ffffff15; }
body:not(.locked):not(.theme-light) .sidebar .direction-switcher button:hover { border-color:#9e77ed;color:#fff; }
body:not(.locked):not(.theme-light) .sidebar .sidebar-note { flex:0 0 auto; margin:auto 0 0; padding:10px; border:1px solid #2a2539; border-radius:10px; background:#14121e; box-shadow:none; }
body:not(.locked):not(.theme-light) .sidebar .sidebar-profile-button { display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center; }
body:not(.locked):not(.theme-light) .sidebar .sidebar-photo { width:36px;height:36px;border:1px solid #45345f;border-radius:8px;background:#302244;color:#d5c2f8;box-shadow:none; }
body:not(.locked):not(.theme-light) .sidebar #sessionUser { font-size:11px;line-height:1.3;color:#f0e9fc; }
body:not(.locked):not(.theme-light) .sidebar #sessionRole { margin-top:3px;font-size:9px;line-height:1.35;color:#9d92b4;overflow-wrap:anywhere; }
body:not(.locked):not(.theme-light) .sidebar .sidebar-note-footer { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #2a2539; }
body:not(.locked):not(.theme-light) .sidebar .logout-button { margin:0;padding:2px 0;font-size:10px;line-height:1.2;color:#b5a9ca; }
body:not(.locked):not(.theme-light) .sidebar .sidebar-note-footer #systemVersion { font-size:9px;font-weight:500;color:#776a90; }
}

/* Budget list gets the space released by the compact launches entry. */
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:minmax(140px,1fr) 58px 300px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches { display:flex;align-items:center;padding:14px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches header { width:100%;margin:0; }
.neon-launch-dialog { width:min(960px,calc(100vw - 32px)); }
.neon-launch-dialog h2 { margin:0 40px 8px 0; }
.neon-launch-dialog :is(#neonLaunchRows,#unityLaunchRows) { height:auto;max-height:65dvh;overflow:auto;margin-top:20px; }
.neon-launch-dialog table { width:100%;border-collapse:collapse; }
.neon-launch-dialog th { position:sticky;top:0;background:#171320;text-align:left;color:#aca1bf;font-size:11px; }
.neon-launch-dialog td,.neon-launch-dialog th { padding:12px;border-bottom:1px solid #30283e; }
.neon-launch-dialog td { font-size:13px; }
@media (min-width:1101px) and (max-height:850px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:minmax(100px,1fr) 58px 255px; }
}
@media (max-width:1100px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:392px 58px 300px; }
}
@media (max-width:780px) {
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches { height:58px;min-height:58px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-budgets { height:380px; }
}

/* Seven GEOs and a compact launches entry beneath their distribution. */
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:minmax(140px,1fr) 260px 58px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { grid-row:2; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches { grid-row:3; }
.sidebar-display-tools { display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-shrink:0;padding:8px 0; }
body:not(.locked) .sidebar-display-tools .dashboard-display-control { position:static;width:30px;height:30px; }
body:not(.locked) .sidebar-display-tools .dashboard-display-button,
body:not(.locked) .sidebar-display-tools .theme-toggle { position:static;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid #433451;border-radius:8px;background:#241b31;color:#c6afea;box-shadow:none;font-size:17px;transform:none; }
body:not(.locked) .sidebar-display-tools .dashboard-display-button > span:first-child { width:100%;height:100%;font-size:16px;color:inherit; }
body:not(.locked) .sidebar-display-tools button::before { content:none; }
body:not(.locked) .sidebar-display-tools button:hover { background:#352345;border-color:#9670d4;transform:none;filter:none; }
body.theme-light:not(.locked) .sidebar-display-tools button { background:#eee7f7;color:#674490;border-color:#d3c5e5; }
@media (min-width:1101px) and (max-height:850px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:minmax(100px,1fr) 230px 58px; }
}
@media (max-width:1100px) {
body:not(.locked):not(.theme-light):not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { grid-template-rows:392px 260px 58px; }
}
@media (max-width:780px) {
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos { height:280px; }
.sidebar-display-tools { position:fixed;right:60px;top:12px;padding:0;z-index:90; }
}

/* Keep display controls anchored in their original bottom-right corner. */
body .dashboard-display-control { position:fixed;inset:auto 52px 12px auto;width:32px;height:32px;z-index:80; }
body .dashboard-display-control .dashboard-display-button,
body .theme-toggle { position:fixed;inset:auto 12px 12px auto;display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #433451;border-radius:8px;background:#241b31;color:#c6afea;box-shadow:0 2px 8px #0003;font-size:17px;transform:none;z-index:80; }
body .dashboard-display-control .dashboard-display-button { position:static; }
body .dashboard-display-button > span:first-child { width:100%;height:100%;font-size:16px;color:inherit; }
body .dashboard-display-button::before,body .theme-toggle::before { content:none; }
body .dashboard-display-button:hover,body .theme-toggle:hover { transform:none;filter:none; }
body:not(.locked):not(.theme-light) .dashboard-display-control { right:52px;bottom:12px;top:auto; }
body:not(.locked):not(.theme-light) .theme-toggle { right:12px;bottom:12px;top:auto;width:32px;height:32px; }
body.theme-light:not(.locked) .theme-toggle,body.theme-light:not(.locked) .dashboard-display-button { background:#eee7f7;color:#674490;border-color:#d3c5e5; }

/* Install costs and a single appearance control. */
#dashboardDisplayControl { display:none!important; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(5,minmax(0,1fr)); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(4) .kpi-icon { background:linear-gradient(135deg,#f3b746,#dd8120); }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(5) .kpi-icon { background:linear-gradient(135deg,#30d991,#149366); }
@media(max-width:1100px) { body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:780px) { body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) { grid-template-columns:repeat(2,minmax(0,1fr)); } }

body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs { position:relative;overflow:visible;z-index:15; }
.install-cost-tooltip { display:none;position:absolute;top:calc(100% + 8px);right:0;width:360px;max-width:calc(100vw - 32px);z-index:30;padding:16px;border:1px solid #674a8f;border-radius:10px;background:#21192e;color:#eee5fc;box-shadow:0 12px 36px #0008;white-space:pre-line;font-size:12px;line-height:1.8;font-weight:400; }
.kpi-installs:hover .install-cost-tooltip,.kpi-installs:focus .install-cost-tooltip { display:block; }

/* Use a single installs tooltip and a larger appearance button. */
body .theme-toggle,
body:not(.locked):not(.theme-light) .theme-toggle { width:46px;height:46px;min-height:46px;font-size:25px;border-radius:12px;right:12px;bottom:12px; }

/* Overview rows highlight uniformly; details only open through the button. */
:is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr { cursor:default; }
body:not(.locked):not(.theme-light) :is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover > td,
body:not(.locked):not(.theme-light) :is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover > td:hover { position:static;z-index:auto;background:#242033;border-color:#393044;box-shadow:none; }
body.theme-light:not(.locked) :is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover > td,
body.theme-light:not(.locked) :is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover > td:hover { position:static;z-index:auto;background:#f0f6fa;border-color:#c8d6df;box-shadow:none; }
:is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) button { cursor:pointer; }

:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td.neon-neutral { color:#9690a5; }

body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit { position:relative;overflow:visible;z-index:15; }
.kpi-profit:hover .install-cost-tooltip,.kpi-profit:focus .install-cost-tooltip { display:block; }

/* Keep all scrolling row content beneath the opaque sticky table header. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-table-scroll { isolation:isolate; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-table-scroll thead { position:sticky;top:0;z-index:10;background:#11131c; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-table-scroll th { z-index:10;background:#11131c; }
:is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) button { position:relative;z-index:0; }

/* Spend distribution switches between countries and offers. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos header { gap:8px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-geos h2 { min-width:0;font-size:12px; }
.neon-distribution-name { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0; }
.neon-geo-name { min-width:0; }

:is(#neonGeoChart,#unityNeonGeoChart) .neon-donut { cursor:pointer; }
:is(#neonGeoChart,#unityNeonGeoChart) .neon-donut:focus-visible { outline:2px solid #ba94ff;outline-offset:5px; }

/* Reserve space for the fixed appearance control beside launch details. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-launches { padding-right:14px; }

/* Place the appearance switch immediately above the sidebar profile. */
body:not(.locked) .sidebar-display-tools { position:static;inset:auto;display:flex;justify-content:flex-end;padding:6px 0; }
body:not(.locked) .sidebar-display-tools #themeToggle { position:static;inset:auto;width:46px;height:46px;min-height:46px;font-size:25px;border-radius:12px; }

body:not(.locked) .sidebar-display-tools { justify-content:space-between;gap:8px; }
body:not(.locked) .sidebar-display-tools #themeToggle { width:32px;height:32px;min-height:32px;font-size:19px;border-radius:8px;flex-shrink:0; }

body:not(.locked) .sidebar-display-tools #toggleWorkspace { height:32px;padding:0 10px;border:1px solid #433451;border-radius:8px;background:#241b31;color:#c6afea;font-size:11px;white-space:nowrap;cursor:pointer; }

body:not(.locked) .sidebar-display-tools { justify-content:flex-end; }
body:not(.locked) .sidebar-display-tools #toggleWorkspace { display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;font-size:19px;flex-shrink:0; }

/* Hide the menu scrollbar without disabling wheel or keyboard scrolling. */
body .sidebar,body .sidebar .nav { scrollbar-width:none; }
body .sidebar::-webkit-scrollbar,body .sidebar .nav::-webkit-scrollbar { display:none;width:0;height:0; }
body:not(.locked) .sidebar .nav-item { display:flex;align-items:center;gap:9px; }
.nav-section-icon { width:17px;height:17px;flex:0 0 17px;opacity:.85; }
.sidebar .nav-item.active .nav-section-icon { opacity:1; }
.sidebar .nav-item > span { min-width:0; }
body:not(.locked) .sidebar .nav { padding-right:0; }
body:not(.locked) .sidebar .nav-item { padding-left:10px;padding-right:6px;gap:7px;font-size:10.5px; }
.sidebar .nav-item > span { white-space:nowrap; }
/* Keep dashboard lists scrollable without visible scrollbar tracks. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-table-scroll,
:is(:is(#neonBudgetRows,#unityNeonBudgetRows),#influenceBudgetList) { scrollbar-width:none; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-table-scroll::-webkit-scrollbar,
:is(:is(#neonBudgetRows,#unityNeonBudgetRows),#influenceBudgetList)::-webkit-scrollbar { display:none;width:0;height:0; }

:is(#neonLaunchDialog,#unityLaunchDialog) { width:min(1480px,calc(100vw - 40px));max-width:calc(100vw - 40px); }
html:has(:is(#neonLaunchDialog,#unityLaunchDialog)[open]),body:has(:is(#neonLaunchDialog,#unityLaunchDialog)[open]) { overflow:hidden;overscroll-behavior:none; }
:is(#neonLaunchDialog,#unityLaunchDialog) { max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { height:auto;max-height:calc(100dvh - 360px);min-height:140px;overscroll-behavior:contain;margin-top:16px; }
:is(#neonLaunchRows,#unityLaunchRows) td.neon-positive { color:#25df92;font-weight:650; }
:is(#neonLaunchRows,#unityLaunchRows) td.neon-negative { color:#ff718d;font-weight:650; }
:is(#neonLaunchRows,#unityLaunchRows) td.neon-neutral { color:#9690a5;font-weight:650; }
body.theme-light:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) td.neon-positive { color:#23875e; }
body.theme-light:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) td.neon-negative { color:#c25570; }
body.theme-light:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) td.neon-neutral { color:#b27b26; }
.launch-day-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 12px; }
.launch-buyer-toggle { display:flex;align-items:center;gap:8px;width:fit-content;font-size:13px;color:var(--ink);cursor:pointer; }
.launch-buyer-toggle input { width:17px;height:17px;margin:0;accent-color:#8652ff;cursor:pointer; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0 12px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-toolbar .neon-launch-date { margin:0; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) { margin:0;font-size:12px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-metrics { margin:16px 0; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-card { padding:16px 18px;gap:8px; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { max-height:calc(100dvh - 290px); }
.launch-day-card { display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #453653;border-radius:12px;background:#21192e;min-width:0; }
.launch-day-card small { color:#b9a7cf;font-size:12px; }
.launch-day-card strong { color:#f4eaff;font-size:25px;letter-spacing:-.04em;overflow-wrap:anywhere; }
.launch-day-card span,.launch-day-note { font-size:11px;line-height:1.5;color:#ac9cbd; }
.launch-day-card.launch-gain strong { color:#20bc87; }
.launch-day-card.launch-loss strong { color:#ed7588; }
body.theme-light .launch-day-card { background:#faf7fd;border-color:#e5d9ef; }
body.theme-light .launch-day-card small,body.theme-light .launch-day-card span,body.theme-light .launch-day-note { color:#89749f; }
body.theme-light .launch-day-card strong { color:#604775; }
body.theme-light .launch-day-card.launch-gain strong { color:#168663; }
body.theme-light .launch-day-card.launch-loss strong { color:#c44561; }
@media(max-width:780px) { .launch-day-metrics { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }.launch-day-card { padding:12px; }.launch-day-card strong { font-size:21px; } }
.neon-launch-date { display:flex;align-items:center;gap:12px;margin:16px 0;font-size:13px; }
.neon-launch-date input { width:180px; }
:is(#neonLaunchRows,#unityLaunchRows) { overflow:auto;max-height:60vh; }
:is(#neonLaunchRows,#unityLaunchRows) th { position:sticky;top:0;background:#171320;z-index:1;white-space:nowrap; }
:is(#neonLaunchRows,#unityLaunchRows) td { white-space:nowrap; }
body:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) tbody tr:hover > td,
body:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) tbody tr:hover > td:hover { position:static;z-index:auto;background:#242033;box-shadow:none;outline:none;border-color:#393044; }
body.theme-light:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) tbody tr:hover > td,
body.theme-light:not(.locked) :is(#neonLaunchRows,#unityLaunchRows) tbody tr:hover > td:hover { background:#faf7fd;border-color:#faf7fd; }

.neon-launch-date { flex-wrap:wrap;gap:12px; }
.neon-launch-date-controls { display:flex;align-items:center;gap:6px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date input { width:180px;height:42px;padding:8px 12px;border-radius:8px;font-size:15px;color-scheme:dark; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date button { height:42px;min-width:42px;border:1px solid #544367;border-radius:8px;background:#241b31;color:#e4d6fa;cursor:pointer; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchPrev,#unityLaunchPrev),:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchNext,#unityLaunchNext) { padding:0;font-size:27px; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchYesterday,#unityLaunchYesterday) { padding:0 18px;background:linear-gradient(130deg,#8b51ff,#6838eb);color:#fff;border-color:#8f5eff; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date button:hover { filter:brightness(1.2); }
body.theme-light :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date input { color-scheme:light; }

:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchPrev,#unityLaunchPrev),:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchNext,#unityLaunchNext) { display:grid;place-items:center;width:42px;height:42px;min-width:42px;padding:0;line-height:1;box-sizing:border-box; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date-controls button svg { display:block;width:20px;height:20px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date-controls { align-items:center; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchYesterday,#unityLaunchYesterday) { display:flex;align-items:center;justify-content:center;line-height:1; }

:is(#neonLaunchDialog,#unityLaunchDialog),:is(#neonLaunchRows,#unityLaunchRows) { scrollbar-width:none; }
:is(#neonLaunchDialog,#unityLaunchDialog)::-webkit-scrollbar,:is(#neonLaunchRows,#unityLaunchRows)::-webkit-scrollbar { display:none;width:0;height:0; }
:is(#neonLaunchRows,#unityLaunchRows) button { padding:7px 10px;border:1px solid #8f5eff;border-radius:6px;background:linear-gradient(130deg,#8b51ff,#6838eb);color:#fff;cursor:pointer; }
:is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#buyerFilter,#unityBuyerFilter)) { position:relative; }
.buyer-search-list { position:absolute;top:100%;left:0;right:0;z-index:100;margin-top:6px;padding:5px;border:1px solid #544367;border-radius:9px;background:#171320;box-shadow:0 12px 28px #0007;max-height:280px;overflow:auto;scrollbar-width:none; }
.buyer-search-list[hidden] { display:none; }
.buyer-search-list button { display:block;width:100%;text-align:left;padding:10px;border:0;border-radius:5px;background:transparent;color:#e4d6fa;font-size:12px;cursor:pointer; }
.buyer-search-list button:hover,.buyer-search-list button:focus { background:#392653;outline:none; }
.buyer-search-list p { padding:8px;font-size:12px;color:#aaa1bd; }

:is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#geoFilter,#unityGeoFilter)),:is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#projectFilter,#unityProjectFilter)) { position:relative; }
/* Month is the only date selector in the dashboard filter bar. */
:is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#periodFilter,#unityPeriodFilter)),:is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label:has(:is(#specificDay,#unitySpecificDay)) { display:none!important; }
body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(6,minmax(0,1fr)) 74px; }
@media(max-width:1100px) { body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:780px) { body:not(.locked):not(.theme-light):has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(2,minmax(0,1fr)); } }

:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-buyer-mode { display:flex;align-items:center;gap:6px;margin-left:auto;color:#bbb3d8;font-size:11px;white-space:nowrap;cursor:pointer; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-buyer-mode input { width:14px;height:14px;min-height:0;margin:0;accent-color:#8652ff; }
/* The analytics popover must sit above KPI cards and their hover hints. */
:is(:is(#analyticsStatusDock,#unityAnalyticsStatusDock),#influenceAnalyticsDock) { z-index:50;overflow:visible; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { z-index:51; }
:is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus)[open] summary { background:#241b31;color:#e7e2f3; }

:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-buyer-mode[hidden] { display:none!important; }

:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers th:not(:last-child) { cursor:pointer; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) th.neon-sort-active { color:#c9a8ff;background:#241b35; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) th.neon-sort-active::after { content:' ↓';color:#bb8bff;font-size:12px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) th.neon-sort-active[data-sort-dir="asc"]::after { content:' ↑'; }
/* Sort indicators do not participate in header sizing or baseline alignment. */
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers th { height:36px;box-sizing:border-box;vertical-align:middle;line-height:16px;padding-top:10px;padding-bottom:10px;padding-right:23px; }
:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-offers th.neon-sort-active::after { position:absolute;right:7px;top:50%;transform:translateY(-50%);line-height:16px;font-size:12px; }
/* Lift only the active tooltip card so later KPI cards cannot cover it. */
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs,
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit { z-index:1; }
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs:hover,
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs:focus,
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit:hover,
body:not(.locked):not(.theme-light) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit:focus { z-index:40; }
@media(max-width:780px) {
:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .install-cost-tooltip { width:calc(100vw - 48px);max-width:calc(100vw - 48px);box-sizing:border-box;padding:14px;font-size:12px;line-height:1.6;max-height:60vh;overflow:auto; }
:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-profit .install-cost-tooltip { left:0;right:auto; }
:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-installs .install-cost-tooltip { right:0;left:auto; }
}
/* Compact mobile header and a single coherent dropdown menu. */
html.mobile-menu-open { overflow:hidden;overscroll-behavior:none; }
body.mobile-menu-open { position:fixed;top:var(--mobile-menu-scroll-top,0);left:0;width:100%;overflow:hidden;overscroll-behavior:none; }
@media(max-width:780px) {
body:not(.locked) .sidebar { position:fixed;inset:0 0 auto 0;width:100%;height:68px;min-height:0;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;z-index:100;background:#101019;border-bottom:1px solid #292636; }
body:not(.locked) .sidebar .brand { display:flex;margin:0;align-items:flex-start;font-size:19px; }
body:not(.locked) .sidebar .mobile-menu-toggle { display:grid;flex:0 0 44px; }
body:not(.locked) .sidebar .sidebar-display-tools { display:none; }
body:not(.locked) .sidebar.mobile-nav-open .sidebar-display-tools { display:flex;position:fixed;top:76px;right:14px;left:14px;height:44px;padding:6px 10px;box-sizing:border-box;z-index:102;background:#171320;border:1px solid #353044;border-radius:10px;justify-content:flex-end; }
body:not(.locked) .sidebar .nav { display:none;margin:0;top:126px;left:14px;right:14px;width:auto;padding:8px;max-height:calc(100dvh - 142px);z-index:101;background:#171320; }
body:not(.locked) .sidebar.mobile-nav-open .nav { display:block; }
body:not(.locked) .sidebar .nav-item { font-size:13px;min-height:42px;padding:10px;gap:10px; }
body:not(.locked) .sidebar .nav-item > span { white-space:normal; }
body:not(.locked) main { margin-left:0;padding-top:84px; }
body:not(.locked) .sidebar .sidebar-note { display:none; }
}
@media(max-width:780px) {
body:not(.locked) .sidebar #mobileMenuToggle { position:absolute;inset:12px 14px auto auto;margin:0;transform:none;width:44px;height:44px; }
}

/* Shared interaction for the workspace and theme controls. */
body:not(.locked) .sidebar-display-tools #toggleWorkspace,
body:not(.locked) .sidebar-display-tools #themeToggle {
  background:#241b31;
  color:#c6afea;
  border:1px solid #433451;
  box-shadow:none;
  transform:none;
  filter:none;
  animation:none;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
body:not(.locked) .sidebar-display-tools #toggleWorkspace:hover,
body:not(.locked) .sidebar-display-tools #themeToggle:hover {
  background:#30243f;
  color:#f2eaff;
  border-color:#8966b3;
  box-shadow:0 0 0 3px rgba(155,118,202,.09);
  transform:none;
  filter:none;
}
body:not(.locked) .sidebar-display-tools #toggleWorkspace:active,
body:not(.locked) .sidebar-display-tools #themeToggle:active {
  background:#1e1729;
  box-shadow:none;
  transform:none;
}
body:not(.locked) .sidebar-display-tools #toggleWorkspace:focus-visible,
body:not(.locked) .sidebar-display-tools #themeToggle:focus-visible {
  outline:2px solid #b48ae8;
  outline-offset:3px;
}
body.theme-light:not(.locked) .sidebar-display-tools #toggleWorkspace,
body.theme-light:not(.locked) .sidebar-display-tools #themeToggle {
  background:#eee7f7;
  color:#674490;
  border-color:#d3c5e5;
}
body.theme-light:not(.locked) .sidebar-display-tools #toggleWorkspace:hover,
body.theme-light:not(.locked) .sidebar-display-tools #themeToggle:hover {
  background:#e4d8f2;
  color:#4e2d75;
  border-color:#a082c3;
}
body.theme-light:not(.locked) .sidebar-display-tools #toggleWorkspace:active,
body.theme-light:not(.locked) .sidebar-display-tools #themeToggle:active {
  background:#d9c9eb;
}
@media (prefers-reduced-motion:reduce) {
  body:not(.locked) .sidebar-display-tools #toggleWorkspace,
  body:not(.locked) .sidebar-display-tools #themeToggle { transition:none; }
}

/* Companies dashboard: compact filters, four KPIs and the original table. */
body:not(.locked) :is(#companiesView, #creativesView, #unityView) { --company-surface:#11111c;--company-border:#302b40;--company-text:#f1ecfa;--company-muted:#a89cbe; }
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) { --company-surface:#fff;--company-border:#ded5ea;--company-text:#292034;--company-muted:#776584; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .management-hero { padding:0 0 18px;background:none;border:0;box-shadow:none;display:flex;align-items:center;justify-content:space-between;gap:16px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .management-hero h2 { font-size:28px;margin:0 0 5px;color:var(--company-text); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .management-hero .subtitle { font-size:13px;color:var(--company-muted); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companyCount { color:#c6b4ea;background:#241b31;border:1px solid #433451;white-space:nowrap; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filter-panel { padding:0;border:0;background:none;box-shadow:none;margin:0 0 18px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters { grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters label { display:block; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters label > span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters select,
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters input { height:42px;font-size:12px;font-weight:500;color:var(--company-text);background:var(--company-surface);border:1px solid var(--company-border);border-radius:8px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companySearch { grid-row:2;grid-column:1 / 3; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companyTypeFilter { grid-row:2;grid-column:3; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companyLandFilter { grid-row:2;grid-column:4; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #resetCompanyFilters { height:42px;min-height:42px;font-size:12px;color:#c6b4ea;border:1px solid #755398;background:#21172e;transition:background-color .18s ease,border-color .18s ease,color .18s ease; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #resetCompanyFilters:hover { color:#f4ebff;background:#30243f;border-color:#a082c3;box-shadow:none; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) :is(#companyKpis, #creativeKpis) { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 12px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi { display:flex;align-items:center;gap:14px;padding:18px 16px;min-height:110px;border:1px solid var(--company-border);border-radius:10px;background:var(--company-surface);box-shadow:none; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi-icon { display:grid;place-items:center;flex:0 0 46px;height:48px;border:1px solid #664398;border-radius:10px;background:linear-gradient(140deg,#45306b,#29203f);color:#be92f8; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi-profit .company-kpi-icon { background:linear-gradient(140deg,#214b43,#18302f);border-color:#32695a;color:#67dec0; }
:is(#companiesView, #creativesView, #unityView) .company-kpi-icon svg { width:25px;height:25px; }
:is(#companiesView, #creativesView, #unityView) .company-kpi-content { min-width:0; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .kpi-title { font-size:12px;color:var(--company-muted); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .kpi-value { font-size:clamp(18px,1.65vw,28px);color:var(--company-text);margin:7px 0;white-space:nowrap; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .kpi-foot { font-size:10px;color:var(--company-muted);line-height:1.5; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companyReconciliation { padding:0 0 14px;margin:0;color:var(--company-muted);border:0;background:none; }
#companyReconciliation summary { display:flex;align-items:center;gap:7px;width:fit-content;cursor:pointer;font-size:11px;list-style:none; }
#companyReconciliation summary::-webkit-details-marker { display:none; }
#companyReconciliation summary svg { width:15px;height:15px; }
#companyReconciliation p { font-size:12px;line-height:1.6; }
.company-reconciliation-metrics { display:flex;flex-wrap:wrap;gap:12px 24px;font-size:11px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table-panel { padding:0;background:none;border:0;box-shadow:none; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .table-heading { margin:0 0 12px;gap:12px; }
:is(#companiesView, #creativesView, #unityView) .table-heading .eyebrow { display:none; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .table-heading h2 { font-size:18px;color:var(--company-text); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .table-heading > .subtitle { font-size:11px;color:var(--company-muted); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .table-wrap { border:1px solid var(--company-border);border-radius:10px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#80659f var(--company-surface); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table { min-width:1720px;background:var(--company-surface); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table th { background:color-mix(in srgb,var(--company-surface) 88%,#9a77bf);color:var(--company-muted);font-size:10px;padding:14px 12px;white-space:normal; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td { padding:13px 12px;font-size:12px;color:var(--company-text);border-color:var(--company-border); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tr:hover td { background:rgba(128,84,191,.09); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td small { font-size:10px;color:var(--company-muted); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table code { background:rgba(149,119,197,.12);color:var(--company-text);padding:4px 6px;border-radius:5px;font-size:10px; }
:is(#companiesView, #creativesView, #unityView) .company-geo span { font-size:16px;vertical-align:middle;margin-right:3px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .view-button { display:grid;place-items:center;width:34px;height:34px;padding:0;background:#382354;border:1px solid #684393;border-radius:8px;color:#dbc4fc;transition:background-color .18s ease,border-color .18s ease; }
:is(#companiesView, #creativesView, #unityView) .view-button svg { width:19px;height:19px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .view-button:hover { background:#4b306d;border-color:#aa82d7;color:#fff;box-shadow:none; }
:is(#companiesView, #creativesView, #unityView) button:focus-visible { outline:2px solid #b48ae8;outline-offset:3px; }
@media(max-width:1100px) {
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) :is(#companyKpis, #creativeKpis) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:780px) {
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters > * { grid-row:auto!important;grid-column:auto!important; }
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companySearch { grid-column:1 / -1!important; }
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .table-heading > .subtitle { display:none; }
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .management-hero h2 { font-size:24px; }
}
@media(max-width:520px) {
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) :is(#companyKpis, #creativeKpis) { grid-template-columns:1fr; }
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi { min-height:92px; }
}

/* Align the company controls independently of native select styling. */
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters { align-items:stretch; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters label { margin:0;min-width:0; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters select,
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters input,
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #resetCompanyFilters {
  box-sizing:border-box;width:100%;height:42px;min-height:42px;margin:0;
  border-radius:8px;font-family:inherit;font-size:12px;font-weight:500;
  padding:0 14px;line-height:normal;vertical-align:middle;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters select {
  appearance:none;-webkit-appearance:none;padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a89cbe' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:16px;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #resetCompanyFilters { display:flex;align-items:center;justify-content:center; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td:has(:is([data-company-fill], [data-creative-detail])) { text-align:center;vertical-align:middle; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table :is([data-company-fill], [data-creative-detail]) { display:inline-grid;place-items:center;margin:0 auto;vertical-align:middle; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table :is([data-company-fill], [data-creative-detail]) svg { display:block; }

/* Match the Offers by GEO table surface and row treatment. */
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table-panel {
  padding:16px 14px;border:1px solid var(--company-border);border-radius:10px;
  background:var(--company-surface);box-shadow:none;
}
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table-panel {
  background:#10121b;border-color:#252330;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table-panel .table-heading { margin-bottom:16px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table-panel .table-heading h2 { font-size:14px;font-weight:800; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table-panel .table-wrap {
  border:0;border-radius:0;background:transparent;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table {
  width:100%;border-collapse:collapse;border-spacing:0;background:transparent;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table th,
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td {
  border:0;border-bottom:1px solid var(--company-border);border-radius:0;
  text-align:left;vertical-align:middle;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table th {
  background:var(--company-surface);color:var(--company-muted);
  font-size:9px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;
  padding:12px 10px;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td { padding:12px 10px;font-size:12px;background:transparent; }
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table th { background:#10121b;color:#bbb3d8;border-bottom-color:#292636; }
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table td { color:#ebe8f5;border-bottom-color:#23212e; }
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover td { background:#242033; }
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover td { background:#f0eaf8; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td b { font-weight:500; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table :is([data-company-fill], [data-creative-detail]) {
  background:linear-gradient(135deg,#9450ff,#7033e9);border:1px solid #985cff;color:#fff;
  border-radius:7px;box-shadow:none;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table :is([data-company-fill], [data-creative-detail]):hover {
  background:linear-gradient(135deg,#a365ff,#8245ef);border-color:#b487fa;box-shadow:none;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table td:has(:is([data-company-fill], [data-creative-detail])),
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table th:first-child { text-align:center; }
@media(max-width:780px) {
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table-panel { padding:12px 10px; }
}

/* Highlight the whole campaign row without a separate cell outline. */
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td,
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td:hover {
  position:static;z-index:auto;background:#242033;border-color:#23212e;box-shadow:none;
}
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td,
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td:hover {
  position:static;z-index:auto;background:#f0eaf8;color:var(--company-text);border-color:var(--company-border);box-shadow:none;
}

:is(#companiesView, #creativesView, #unityView) .table-personalize-toolbar { display:none; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table .company-profit-positive { color:#25df92; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table .company-profit-negative { color:#ff718d; }
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table .company-profit-positive { color:#098358; }
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table .company-profit-negative { color:#c33450; }
:is(#companiesView, #creativesView, #unityView) .company-profit { font-variant-numeric:tabular-nums; }
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td.company-profit-positive,
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr > td.company-profit-positive { color:#25df92; }
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td.company-profit-negative,
body:not(.locked):not(.theme-light) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr > td.company-profit-negative { color:#ff718d; }
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr > td.company-profit-positive { color:#098358; }
body.theme-light:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr > td.company-profit-negative { color:#c33450; }
:is(#companiesView, #creativesView, #unityView) [data-table-pager="companies"] { position:relative;justify-content:center;padding:12px 0 0; }
:is(#companiesView, #creativesView, #unityView) .company-scroll-sentinel { position:absolute;bottom:0;left:0;width:100%;height:1px;pointer-events:none; }

/* Company KPI icons share the dashboard palette and white linework. */
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi-icon {
  flex:0 0 40px;width:40px;height:44px;border:0;border-radius:10px;
  color:#fff;background:linear-gradient(140deg,#a770ff,#743df1);
  box-shadow:inset 0 1px 3px #ffffff55;
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi-deposits .company-kpi-icon { background:linear-gradient(140deg,#20d58d,#139c68); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi-campaigns .company-kpi-icon { background:linear-gradient(140deg,#298fff,#0753d8); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-kpi-coverage .company-kpi-icon { background:linear-gradient(135deg,#f3b746,#dd8120); }
:is(#companiesView, #creativesView, #unityView) .company-kpi-icon svg { display:block;width:23px;height:23px;flex-shrink:0;filter:drop-shadow(0 1px 2px #0001); }

body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table :is([data-company-fill], [data-creative-detail]) {
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;min-width:88px;height:34px;padding:0 12px;
  font-size:12px;font-weight:600;line-height:1;white-space:nowrap;
}

/* Compact campaign action and calm, consistent sidebar selection. */
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table :is([data-company-fill], [data-creative-detail]) {
  min-width:72px;height:28px;padding:0 9px;border-radius:6px;font-size:11px;
}
body:not(.locked) .sidebar .nav-item {
  transform:none;box-shadow:none;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
body:not(.locked) .sidebar .nav-item::before,
body:not(.locked) .sidebar .nav-item.active::before { content:none;display:none; }
body:not(.locked):not(.theme-light) .sidebar .nav-item:hover {
  color:#e8dff9;background:#211b2d;border-color:#373044;box-shadow:none;transform:none;
}
body:not(.locked):not(.theme-light) .sidebar .nav-item.active,
body:not(.locked):not(.theme-light) .sidebar .nav-item.active:hover {
  color:#f4edff;background:#302343;border-color:#644780;box-shadow:none;transform:none;
}
body:not(.locked) .sidebar .nav-item.active .nav-section-icon { color:#caa2ff;opacity:1; }
body.theme-light:not(.locked) .sidebar .nav-item:hover {
  color:#513868;background:#f1ebf7;border-color:#e0d3ed;box-shadow:none;transform:none;
}
body.theme-light:not(.locked) .sidebar .nav-item.active,
body.theme-light:not(.locked) .sidebar .nav-item.active:hover {
  color:#56347e;background:#e9ddf6;border-color:#c5addf;box-shadow:none;transform:none;
}
body.theme-light:not(.locked) .sidebar .nav-item.active .nav-section-icon { color:#7948ad; }
body:not(.locked) .sidebar .nav-item:focus-visible { outline:2px solid #b48ae8;outline-offset:2px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr > td.company-profit-neutral,
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-table tbody tr:hover > td.company-profit-neutral { color:var(--company-muted); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-supplier-panel { padding:18px;margin:0 0 20px;border:1px solid var(--company-border);border-radius:10px;background:var(--company-surface); }
.company-supplier-heading { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px; }
.company-supplier-heading h2 { margin:0;font-size:16px;color:var(--company-text); }
#companySupplierMode { font-size:12px;color:var(--company-muted); }
.company-supplier-chart { display:flex;align-items:center;gap:32px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-supplier-donut { display:grid;place-items:center;flex:0 0 170px;width:170px;height:170px;border:0;border-radius:50%;padding:0;cursor:pointer;box-shadow:none; }
.company-supplier-donut > span { display:flex;flex-direction:column;justify-content:center;gap:7px;width:130px;height:130px;border-radius:50%;background:var(--company-surface);color:var(--company-text); }
.company-supplier-donut b { font-size:19px; }
.company-supplier-donut small { font-size:11px;color:var(--company-muted); }
.company-supplier-donut em { font-size:10px;font-style:normal;color:var(--company-muted); }
.company-supplier-donut:focus-visible { outline:2px solid #b48ae8;outline-offset:5px; }
.company-supplier-legend { flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px;min-width:0; }
.company-supplier-legend > div { display:grid;grid-template-columns:10px minmax(0,1fr) auto 56px;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid var(--company-border);font-size:12px;color:var(--company-text); }
.company-supplier-legend i { width:9px;height:9px;border-radius:3px; }
.company-supplier-legend span { overflow-wrap:anywhere; }
.company-supplier-legend b { font-weight:600;font-variant-numeric:tabular-nums; }
.company-supplier-legend small { text-align:right;color:var(--company-muted);font-size:10px; }
@media(max-width:780px) { .company-supplier-chart { flex-direction:column;gap:18px; }.company-supplier-legend { width:100%;grid-template-columns:1fr; }.company-supplier-heading { align-items:flex-start;flex-direction:column;gap:6px; } }

/* Keep KPIs and supplier distribution in one compact overview row. */
:is(#companiesView, #creativesView, #unityView) .company-overview-grid { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch;margin-bottom:14px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-overview-grid :is(#companyKpis, #creativeKpis) { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-panel { margin:0;padding:16px;min-width:0; }
:is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-heading { margin-bottom:12px; }
:is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-chart { gap:20px; }
:is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-legend { grid-template-columns:1fr;gap:3px;max-height:190px;overflow-y:auto;scrollbar-width:thin; }
:is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-legend > div { font-size:11px;grid-template-columns:9px minmax(0,1fr) auto 50px;gap:7px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-kpi { padding:14px 12px;min-height:104px;gap:10px; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-overview-grid .kpi-value { font-size:clamp(18px,1.7vw,26px); }
@media(max-width:1100px) {
  :is(#companiesView, #creativesView, #unityView) .company-overview-grid { grid-template-columns:1fr; }
  :is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-legend { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:780px) {
  :is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-chart { flex-direction:row; }
  :is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-legend { grid-template-columns:1fr; }
}
@media(max-width:520px) {
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-overview-grid :is(#companyKpis, #creativeKpis) { grid-template-columns:1fr; }
  :is(#companiesView, #creativesView, #unityView) .company-overview-grid .company-supplier-chart { flex-direction:column; }
}
body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters { grid-template-columns:repeat(6,minmax(0,1fr)); }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companySupplierFilter { grid-column:6;grid-row:1; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companySearch { grid-column:1 / 4; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companyTypeFilter { grid-column:4; }
body:not(.locked) :is(#companiesView, #creativesView, #unityView) #companyLandFilter { grid-column:5; }
@media(max-width:780px) {
  body:not(.locked) :is(#companiesView, #creativesView, #unityView) .company-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

#creativesView .creative-source-note { display:none; }
#creativesView .creative-rankings-details { margin:0 0 16px;color:var(--company-muted);font-size:12px; }
#creativesView .creative-rankings-details > summary { cursor:pointer;margin-bottom:10px; }
body:not(.locked) #creativesView .creative-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
body:not(.locked) #creativesView .creative-filters input { grid-column:span 3; }
#creativesView .view-button { margin:auto; }
@media(max-width:780px) { body:not(.locked) #creativesView .creative-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }body:not(.locked) #creativesView .creative-filters input { grid-column:1 / -1; } }
#creativeSupplierMode { font-size:12px;color:var(--company-muted); }
body:not(.locked) #creativesView .creative-filter-panel { padding:0;border:0;background:none;box-shadow:none;margin:0 0 18px; }
body:not(.locked) #creativesView #resetCreativeFilters { display:flex;align-items:center;justify-content:center;height:42px;min-height:42px;border:1px solid #755398;border-radius:8px;background:#21172e;color:#c6b4ea;font-size:12px;transition:background-color .18s ease,border-color .18s ease; }
body:not(.locked) #creativesView #resetCreativeFilters:hover { background:#30243f;border-color:#a082c3;box-shadow:none; }
.creative-format-profit-note { display:block;margin-top:5px;line-height:1.4;font-size:10px!important;text-align:left!important; }

/* Buyer leaderboard in the dashboard design language. */
body:not(.locked) #buyersView { --buyer-bg:#10121b;--buyer-line:#292636;--buyer-text:#ebe8f5;--buyer-muted:#bbb3d8; }
body.theme-light:not(.locked) #buyersView { --buyer-bg:#fff;--buyer-line:#ded5ea;--buyer-text:#292034;--buyer-muted:#776584; }
body:not(.locked) #buyersView .buyer-intro { padding:0 0 16px;border:0;background:none;box-shadow:none; }
#buyersView .buyer-intro .eyebrow { display:none; }
body:not(.locked) #buyersView .buyer-intro h2 { font-size:26px;color:var(--buyer-text); }
#buyersView .buyer-intro .subtitle { max-width:920px;font-size:12px;line-height:1.6;color:var(--buyer-muted); }
body:not(.locked) #buyersView #buyerCount { background:#302343;color:#dfcaf8;border:1px solid #644780; }
#buyersView .buyer-podium { margin:0 0 18px;gap:14px; }
body:not(.locked) #buyersView .buyer-card { padding:18px;border:1px solid var(--buyer-line);border-radius:10px;background:var(--buyer-bg);color:var(--buyer-text);min-height:0;box-shadow:none; }
body:not(.locked) #buyersView .buyer-card:first-child { border-color:#755398;background:linear-gradient(135deg,rgba(127,78,199,.14),var(--buyer-bg) 75%); }
.buyer-leader-head { display:flex;align-items:center;gap:12px; }
.buyer-leader-head > div { min-width:0;flex:1; }
#buyersView .buyer-leader-head h2 { font-size:18px;margin:5px 0;overflow-wrap:anywhere; }
.buyer-leader-head small { color:var(--buyer-muted);font-size:10px; }
.buyer-rank-medal { display:grid;place-items:center;width:38px;height:42px;flex:0 0 38px;border-radius:10px;background:linear-gradient(140deg,#a770ff,#743df1);color:#fff;font-size:20px;font-weight:800;box-shadow:inset 0 1px 3px #ffffff55; }
.buyer-leader-2 .buyer-rank-medal { background:linear-gradient(140deg,#298fff,#0753d8); }
.buyer-leader-3 .buyer-rank-medal { background:linear-gradient(140deg,#20d58d,#139c68); }
.buyer-rank-medal svg { display:block;width:24px;height:24px; }
.buyer-leader-score { display:flex;flex-direction:column;align-items:flex-end;gap:3px; }
.buyer-leader-score b { font-size:28px;color:#caa2ff; }
.buyer-score-track { margin:16px 0 8px;height:5px;border-radius:5px;background:rgba(142,109,184,.15);overflow:hidden; }
.buyer-score-track i { display:block;height:100%;background:linear-gradient(90deg,#9560f5,#b791f2);border-radius:inherit; }
.buyer-leader-caption { display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--buyer-muted); }
body:not(.locked) #buyersView .buyer-card-metrics { grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px;margin:18px 0; }
body:not(.locked) #buyersView .buyer-card-metrics small { color:var(--buyer-muted);font-size:10px;font-weight:400; }
body:not(.locked) #buyersView .buyer-card-metrics span { font-size:13px;color:var(--buyer-text);font-variant-numeric:tabular-nums; }
body:not(.locked) #buyersView .open-buyer { background:linear-gradient(135deg,#9450ff,#7033e9);border:1px solid #985cff;color:#fff;border-radius:8px;padding:7px 11px;font-size:11px;box-shadow:none;transform:translateY(0);filter:none;animation:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
body:not(.locked) #buyersView .open-buyer:hover { background:linear-gradient(135deg,#9450ff,#7033e9);border-color:#b487fa;color:#fff;transform:translateY(-2px);filter:none;box-shadow:0 5px 12px rgba(112,51,233,.22); }
body:not(.locked) #buyersView .open-buyer:active { transform:translateY(0);box-shadow:none; }
body:not(.locked) #buyersView .open-buyer:focus-visible { outline:2px solid #cfb5ff;outline-offset:3px; }
body:not(.locked) #buyersView .buyer-table-panel { padding:16px 14px;border:1px solid var(--buyer-line);border-radius:10px;background:var(--buyer-bg); }
#buyersView .buyer-table-panel .eyebrow { display:none; }
#buyersView .buyer-table-panel h2 { font-size:16px; }
body:not(.locked) #buyersView .table-wrap { border:0;border-radius:0;background:transparent;scrollbar-width:thin; }
body:not(.locked) #buyersView .buyer-table { border-collapse:collapse;background:transparent; }
body:not(.locked) #buyersView .buyer-table th,body:not(.locked) #buyersView .buyer-table td { border:0;border-bottom:1px solid var(--buyer-line);padding:12px 10px;vertical-align:middle; }
body:not(.locked) #buyersView .buyer-table th { background:var(--buyer-bg);color:var(--buyer-muted);font-size:9px;font-weight:500;letter-spacing:.04em; }
body:not(.locked) #buyersView .buyer-table td { color:var(--buyer-text);font-size:12px;background:transparent; }
body:not(.locked) #buyersView .buyer-table tbody tr:hover > td,body:not(.locked) #buyersView .buyer-table tbody tr:hover > td:hover { background:#242033;position:static;z-index:auto;box-shadow:none;border-color:var(--buyer-line); }
body.theme-light:not(.locked) #buyersView .buyer-table tbody tr:hover > td,body.theme-light:not(.locked) #buyersView .buyer-table tbody tr:hover > td:hover { background:#f0eaf8; }
.buyer-table-score { display:flex;align-items:center;gap:8px;min-width:95px; }
.buyer-table-score b { width:22px;color:#be9beb; }
.buyer-table-score i { width:58px;height:4px;border-radius:4px;background:linear-gradient(to right,#9560f5 var(--buyer-score),rgba(142,109,184,.15) var(--buyer-score)); }
#buyersView .table-personalize-toolbar { display:none; }
@media(max-width:1100px) { #buyersView .buyer-podium { grid-template-columns:1fr; } }

/* Buyer controls align on a single baseline, with compact consistent actions. */
body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { display:grid;grid-template-columns:1fr .8fr 1fr 1fr 1.1fr 1.3fr auto;gap:10px;align-items:end;padding:14px;border:1px solid #302b40;border-radius:10px;background:#11111c;margin-bottom:16px; }
body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label { min-width:0; }
body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label span { font-size:9px;letter-spacing:.05em;margin-bottom:7px; }
body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) input,
body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) select,
body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters) { width:100%;height:40px;min-height:40px;box-sizing:border-box;padding:0 11px;border-radius:8px;font-size:11px; }
body:not(.locked) #buyersView .buyer-card { display:flex;flex-direction:column; }
body:not(.locked) #buyersView .card-open { align-self:flex-start;margin-top:auto; }
body:not(.locked) #buyersView .open-buyer { display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;min-height:32px;padding:0 12px;font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap; }
@media(prefers-reduced-motion:reduce) { body:not(.locked) #buyersView .open-buyer { transition:none; } body:not(.locked) #buyersView .open-buyer:hover { transform:none; } }
body:not(.locked) #buyersView .buyer-profit.positive { color:#25df92; }
body:not(.locked) #buyersView .buyer-profit.negative { color:#ff718d; }
body:not(.locked) #buyersView .buyer-table tr:hover > td.buyer-profit.positive { color:#25df92; }
body:not(.locked) #buyersView .buyer-table tr:hover > td.buyer-profit.negative { color:#ff718d; }
@media(max-width:1100px) { body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:780px) { body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { grid-template-columns:repeat(2,minmax(0,1fr)); } }

body:not(.locked):has(#buyersView:not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) { display:none; }
body:not(.locked) #buyersView .buyer-table td.buyer-profit.positive,
body:not(.locked) #buyersView .buyer-table tbody tr:hover > td.buyer-profit.positive { color:#25df92;font-weight:600; }
body:not(.locked) #buyersView .buyer-table td.buyer-profit.negative,
body:not(.locked) #buyersView .buyer-table tbody tr:hover > td.buyer-profit.negative { color:#ff718d;font-weight:600; }
body.theme-light:not(.locked) #buyersView .buyer-table td.buyer-profit.positive { color:#098358; }
body.theme-light:not(.locked) #buyersView .buyer-table td.buyer-profit.negative { color:#c33450; }

/* Media summary uses the dashboard's compact metric tiles. */
body:not(.locked) :is(#mediaKpis,#unityMediaKpis) { gap:14px;margin:16px 0; }
body:not(.locked) :is(#mediaKpis,#unityMediaKpis) .media-summary-card { display:flex;align-items:center;gap:14px;padding:20px 18px;border:1px solid #292536;border-radius:10px;background:#11111b;min-width:0; }
.media-summary-card > div { min-width:0; }
.media-summary-card p { margin:0 0 7px;color:#afa4c1;font-size:11px;font-weight:600; }
.media-summary-card strong { display:block;color:#f1edfa;font-size:26px;line-height:1.15;font-weight:800;font-variant-numeric:tabular-nums; }
.media-summary-card small { display:block;margin-top:8px;color:#a69ab9;font-size:10px;line-height:1.5; }
.media-summary-icon { display:grid;place-items:center;flex:0 0 44px;width:44px;height:48px;border-radius:11px;color:#fff;box-shadow:inset 0 1px 3px #ffffff55; }
.media-summary-icon svg { width:25px;height:25px; }
.media-summary-icon.purple { background:linear-gradient(140deg,#a770ff,#743df1); }
.media-summary-icon.blue { background:linear-gradient(140deg,#298fff,#0753d8); }
.media-summary-icon.green { background:linear-gradient(140deg,#20d58d,#139c68); }
.media-summary-icon.orange { background:linear-gradient(140deg,#ffc350,#dd841b); }
body.theme-light:not(.locked) :is(#mediaKpis,#unityMediaKpis) .media-summary-card { background:#fff;border-color:#e1d9eb; }
body.theme-light .media-summary-card strong { color:#282034; }
body.theme-light .media-summary-card p,body.theme-light .media-summary-card small { color:#766485; }
@media(max-width:1100px) { :is(#mediaKpis,#unityMediaKpis) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { :is(#mediaKpis,#unityMediaKpis) { grid-template-columns:1fr; } }

.media-category-tabs { display:flex;gap:6px;margin:0 0 12px;padding:5px;width:fit-content;border:1px solid #30283e;border-radius:10px;background:#12101b; }
.media-category-tabs button { padding:9px 16px;border:1px solid transparent;border-radius:7px;background:transparent;color:#b6aac8;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:color .18s ease,border-color .18s ease; }
.media-category-tabs button:hover { color:#fff;border-color:#755398; }
.media-category-tabs button.active { background:linear-gradient(135deg,#9450ff,#7033e9);color:#fff;border-color:#985cff; }
.media-category-tabs button:focus-visible { outline:2px solid #cfb5ff;outline-offset:2px; }
body.theme-light .media-category-tabs { background:#f4f0fa;border-color:#ddd1e8; }
body.theme-light .media-category-tabs button:not(.active) { color:#705582; }

body:not(.locked) :is(#mediaView,#unityMediaView) .media-format-panel { display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:18px 20px;background:#11111b;border:1px solid #292536;border-radius:10px;margin-bottom:14px; }
.media-format-panel h2 { margin:0 0 12px;font-size:15px; }
.media-format-chart { display:flex;align-items:center;gap:20px; }
.media-format-ring { width:110px;height:110px;flex:0 0 110px;border-radius:50%;background:conic-gradient(#3588ff 0 var(--video-share),#a16aff var(--video-share) 100%);padding:12px;box-sizing:border-box; }
.media-format-ring > div { display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;height:100%;background:#11111b; }
.media-format-ring strong { font-size:20px;color:#f1edfa; }
.media-format-ring small,.media-format-legend small { font-size:10px;color:#a99aba; }
.media-format-legend { flex:1;max-width:310px; }
.media-format-legend p { display:flex;align-items:center;gap:9px;font-size:12px; }
.media-format-legend b { margin-left:auto; }
.media-format-legend i { width:9px;height:9px;border-radius:3px;background:#a16aff; }
.media-format-legend i.video { background:#3588ff; }
.media-pwa-actions { align-self:center;border-left:1px solid #30283e;padding-left:24px; }
.media-pwa-actions > div { display:flex;flex-wrap:wrap;gap:8px;margin-top:14px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions button { border:1px solid #7953ac;border-radius:8px;padding:9px 12px;background:#261c36;color:#e7d6ff;font-size:11px;cursor:pointer;transition:transform .18s ease; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions button:hover:not(:disabled) { transform:translateY(-2px);background:#352448;color:#fff; }
body:not(.locked) :is(#mediaView,#unityMediaView) #mediaShowPwa { background:linear-gradient(135deg,#9450ff,#7033e9);color:#fff; }
.media-pwa-actions button:disabled { opacity:.55;cursor:default; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-format-panel,body.theme-light .media-format-ring > div { background:#fff; }
body.theme-light .media-format-ring strong { color:#282034; }
@media(max-width:780px) { body:not(.locked) :is(#mediaView,#unityMediaView) .media-format-panel { grid-template-columns:1fr; } .media-pwa-actions { border-left:0;border-top:1px solid #30283e;padding:16px 0 0; } }

body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button { min-height:40px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button.active { background:linear-gradient(135deg,#9450ff,#7033e9);border-color:#ae7aff;color:#fff; }
:is(#mediaGrid,#unityMediaGrid).media-pwa-grid { display:flex;flex-direction:column;gap:18px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-pack { padding:20px;background:#11111b;border:1px solid #30283e;border-radius:12px; }
.media-pwa-pack header { margin-bottom:16px; }
.media-pwa-pack h2 { margin:0 0 6px;font-size:20px; }
.media-pwa-pack header small { color:#b2a5c4;font-size:12px; }
.media-pwa-gallery { display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,240px));gap:16px;align-items:start; }
.media-pwa-gallery > div { min-width:0;display:flex;flex-direction:column;gap:8px; }
.media-pwa-gallery button { display:block;width:100%;padding:8px;background:#1c1728;border:1px solid #3c2f50;border-radius:10px;cursor:pointer; }
.media-pwa-gallery img,.media-pwa-gallery video { display:block;width:100%;height:230px;object-fit:contain;border-radius:6px; }
.media-pwa-gallery b { font-size:11px;overflow-wrap:anywhere;color:#e0d4ef; }
.media-pwa-gallery a { width:fit-content;padding:6px 12px;border-radius:6px;background:#342448;color:#dfc6ff;font-size:11px;text-decoration:none; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-pack { background:#fff; }
body.theme-light .media-pwa-gallery b { color:#493558; }

/* Compact media selector, aligned with the chart. */
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions { padding-left:22px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions h2 { font-size:14px;margin-bottom:14px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options { display:flex;flex-wrap:wrap;gap:8px;margin:0; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 14px;border:1px solid #353043;border-radius:8px;background:#191522;color:#ac9fbd;font-size:11px;font-weight:600;box-shadow:none;transition:transform .18s ease,border-color .18s ease,color .18s ease; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button svg { width:17px;height:17px;flex-shrink:0; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button:hover { background:#211a2d;color:#e6d4fc;border-color:#74518f;transform:translateY(-1px); }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button.active { background:#30203f;color:#ead9ff;border-color:#9765ce;box-shadow:inset 0 0 0 1px #9765ce22; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button:focus-visible { outline:2px solid #b78af4;outline-offset:3px; }
body:not(.locked) :is(#mediaView,#unityMediaView) #mediaDownloadPwa { margin-top:12px; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button { background:#f5f1fa;color:#766086;border-color:#d8cbe2; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button.active { background:#ece0fa;color:#6936a0;border-color:#a376ce; }
@media(max-width:780px) { body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions { padding-left:0; } }

body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:320px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button { justify-content:flex-start;min-height:40px;padding:0 14px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button svg { width:20px;height:20px; }

/* Consistent media actions in cards and PWA packs. */
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions { display:flex;flex-wrap:wrap;gap:6px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action { display:inline-flex;align-items:center;justify-content:center;flex:1 1 auto;width:auto;min-height:32px;box-sizing:border-box;padding:7px 10px;border:1px solid;border-radius:7px;font-family:inherit;font-size:10px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:none;transition:transform .18s ease,border-color .18s ease; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-view { background:#30203f;color:#e6caff;border-color:#775096; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-download { background:#19293e;color:#b9d5ff;border-color:#3c608f; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-link { background:#1b302d;color:#afe6d7;border-color:#3f7567; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action:hover { transform:translateY(-2px);filter:none;box-shadow:none;border-color:currentColor; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action:focus-visible { outline:2px solid #b78af4;outline-offset:2px; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-view { background:#efe3fb;color:#6b3a91;border-color:#c9a9e1; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-download { background:#e7effc;color:#355c95;border-color:#b0c7e7; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-link { background:#e4f2ed;color:#326d5b;border-color:#a4cdbf; }
@media(prefers-reduced-motion:reduce) { body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action { transition:none; } body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action:hover { transform:none; } }

.media-materials-heading { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading h2 { margin:0; }
:is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions { display:flex;flex-wrap:wrap;gap:8px; }
:is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > a,
:is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > label { display:inline-flex;align-items:center;justify-content:center;min-height:32px;box-sizing:border-box;padding:7px 10px;border-radius:7px;font-size:10px;line-height:1.2; }

/* Material categories and Drive actions share one visual system. */
body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions { display:grid;grid-template-columns:minmax(180px,1fr) minmax(155px,.85fr);gap:14px 18px; }
:is(#mediaView,#unityMediaView) .media-materials-heading { display:contents; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading h2 { grid-column:1 / -1;margin:0;font-size:15px; }
:is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions { grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr;gap:8px;align-content:start; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options { grid-column:1;grid-row:2;max-width:none; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > a,
body:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > label { gap:8px;justify-content:flex-start;width:100%;min-height:40px;padding:0 12px;border:1px solid #353043;border-radius:8px;background:#191522;color:#c3b2d5;box-shadow:none;font-family:inherit;font-size:11px;font-weight:600;text-decoration:none;cursor:pointer;transition:transform .18s ease,border-color .18s ease; }
:is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions svg { width:20px;height:20px;flex-shrink:0; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading :is(#mediaUploadButton,#unityMediaUploadButton) { background:#30203f;border-color:#775096;color:#ead9ff; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > :hover { transform:translateY(-1px);border-color:#9765ce; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > a,
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > label { background:#f5f1fa;color:#705582;border-color:#d8cbe2; }
@media(max-width:1100px) { body:not(.locked) :is(#mediaView,#unityMediaView) .media-pwa-actions { grid-template-columns:1fr; } :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions { grid-column:1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Offers share the dashboard's cards, controls and table rhythm. */
body:not(.locked) #offersView { --offer-panel:#11111b;--offer-line:#2c283b;--offer-muted:#aa9cbb;--offer-text:#eee8f8; }
body.theme-light:not(.locked) #offersView { --offer-panel:#fff;--offer-line:#e2d9ed;--offer-muted:#877393;--offer-text:#2d2238; }
body:not(.locked) #offersView > .management-hero { border:0;background:transparent;padding:0;margin:0 0 18px;box-shadow:none;gap:20px; }
#offersView > .management-hero .eyebrow { display:none; }
body:not(.locked) #offersView > .management-hero h2 { font-size:26px;color:var(--offer-text); }
#offersView > .management-hero .subtitle { font-size:12px;color:var(--offer-muted);line-height:1.6; }
#offersView .hero-actions { flex-wrap:wrap;gap:8px; }
body:not(.locked) #offersView .hero-actions button { min-height:40px;border:1px solid var(--offer-line);border-radius:8px;background:var(--offer-panel);color:var(--offer-text);padding:8px 12px;box-shadow:none;transition:transform .18s ease,border-color .18s ease; }
#offersView .hero-actions button small { color:var(--offer-muted);font-size:9px; }
body:not(.locked) #offersView .hero-actions button:hover { transform:translateY(-2px);border-color:#9a6bc8; }
body:not(.locked) #offersView #addOfferButton { background:linear-gradient(135deg,#9450ff,#7033e9);border-color:#985cff;color:#fff;font-size:11px; }
body:not(.locked) #offersView .offer-budget-toggle-icon { background:#30203f;color:#d2b1fa;border-radius:7px;box-shadow:none; }
#offerKpis { gap:14px;margin-bottom:18px; }
body:not(.locked) #offerKpis .offer-summary-card { display:flex;align-items:center;gap:14px;padding:20px 18px;min-width:0;border:1px solid var(--offer-line);border-radius:10px;background:var(--offer-panel);box-shadow:none; }
#offerKpis .offer-summary-card > div { min-width:0; }
body:not(.locked) #offerKpis .kpi-title { color:var(--offer-muted);font-size:11px;margin-bottom:8px; }
body:not(.locked) #offerKpis .kpi-value { color:var(--offer-text);font-size:26px;font-weight:800;line-height:1.2; }
body:not(.locked) #offerKpis .kpi-foot { color:var(--offer-muted);font-size:10px;margin-top:8px;line-height:1.5; }
body:not(.locked) #offersView .management-table-panel { padding:18px;border:1px solid var(--offer-line);border-radius:10px;background:var(--offer-panel); }
#offersView .management-table-panel > .panel-heading { align-items:flex-start;flex-wrap:wrap;gap:18px; }
#offersView .management-table-panel .eyebrow { display:none; }
#offersView .management-table-panel h2 { font-size:17px; }
#offersView .offer-table-tools { flex:1 1 680px;display:flex;align-items:end;flex-wrap:wrap;gap:10px; }
#offersView .offer-table-tools .search { flex:1 1 200px; }
body:not(.locked) #offersView .offer-table-tools input,body:not(.locked) #offersView .offer-table-tools select,body:not(.locked) #offersView .offer-sort-direction { height:38px;min-height:38px;box-sizing:border-box;padding:0 12px;border:1px solid var(--offer-line);border-radius:8px;background:var(--offer-panel);color:var(--offer-text);font-size:11px; }
#offersView .offer-table-tools label > span { color:var(--offer-muted);font-size:9px; }
body:not(.locked) #offersView .offer-registry-scroll { border:0;border-radius:0;scrollbar-width:thin; }
body:not(.locked) #offersView .offer-registry-table { border-collapse:collapse;background:transparent; }
body:not(.locked) #offersView .offer-registry-table th,body:not(.locked) #offersView .offer-registry-table td { border:0;border-bottom:1px solid var(--offer-line);padding:14px 10px;vertical-align:middle;box-shadow:none; }
body:not(.locked) #offersView .offer-registry-table th { background:var(--offer-panel);color:var(--offer-muted);font-size:9px;letter-spacing:.04em; }
body:not(.locked) #offersView .offer-registry-table td { color:var(--offer-text);background:transparent;font-size:11px; }
body:not(.locked) #offersView .offer-registry-table td small { color:var(--offer-muted); }
body:not(.locked) #offersView .offer-registry-table tbody tr:hover > td { background:#242033;box-shadow:none; }
body.theme-light:not(.locked) #offersView .offer-registry-table tbody tr:hover > td { background:#f2eafa; }
body:not(.locked) #offersView .offer-registry-table td:hover { outline:none; }
#offersView .offer-geo { display:inline-flex;gap:6px;align-items:center;white-space:nowrap; }
body:not(.locked) #offersView .row-actions button { padding:6px 9px;border:1px solid #684782;border-radius:6px;background:#2a1e37;color:#ddc6f4;font-size:10px;box-shadow:none; }
body:not(.locked) #offersView .row-actions button:hover { border-color:#ab7cd4; }
body:not(.locked) #offersView .row-actions .danger-link { color:#f0a0b2;background:#34202c;border-color:#764152; }
@media(max-width:1100px) { #offerKpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { #offerKpis { grid-template-columns:1fr; } }

/* Only the registry scrolls on desktop; summary and controls stay visible. */
@media(min-width:1101px) {
 body:not(.locked):has(#offersView:not([hidden])) { overflow:hidden; }
 body:not(.locked):has(#offersView:not([hidden])) main { height:100dvh;box-sizing:border-box;overflow:hidden;padding-bottom:16px; }
 body:not(.locked) #offersView:not([hidden]) { display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden; }
 body:not(.locked) #offersView > .management-hero,body:not(.locked) #offersView > #offerKpis { flex-shrink:0; }
 body:not(.locked) #offersView > .management-table-panel { flex:1;min-height:0;display:flex;flex-direction:column; }
 body:not(.locked) #offersView .offer-registry-scroll { flex:1;height:auto;min-height:0;max-height:none; }
}

body:not(.locked) #offersView .management-table-panel > .panel-heading { display:flex;flex-direction:column;align-items:stretch;gap:14px;flex-shrink:0; }
body:not(.locked) #offersView .offer-table-tools { flex:none;display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(200px,2fr) minmax(160px,1fr) 38px;align-items:end;gap:10px;width:100%; }
#offersView .offer-table-tools label { min-width:0; }
body:not(.locked) #offersView .offer-table-tools input,body:not(.locked) #offersView .offer-table-tools select { width:100%;min-width:0;height:40px;min-height:40px; }
body:not(.locked) #offersView .offer-table-tools label > span { display:block;margin-bottom:6px;line-height:1.2; }
body:not(.locked) #offersView .offer-sort-direction { height:40px;min-height:40px; }
body:not(.locked) #offersView .offer-table-tools input:focus,body:not(.locked) #offersView .offer-table-tools select:focus { outline:2px solid #8052ad;outline-offset:1px;box-shadow:none; }
@media(max-width:1000px) { body:not(.locked) #offersView .offer-table-tools { grid-template-columns:repeat(2,minmax(0,1fr)); } #offersView #offerSearch { grid-column:1 / -1; } }

.offer-overview-layout { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px;flex-shrink:0; }
body:not(.locked) #offersView .offer-overview-layout #offerKpis { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:12px; }
body:not(.locked) #offersView .offer-actions-panel { display:flex;align-items:stretch;padding:18px;border:1px solid var(--offer-line);border-radius:10px;background:var(--offer-panel); }
#offersView .offer-actions-panel .hero-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%; }
body:not(.locked) #offersView .offer-actions-panel button { display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-width:0;padding:14px;border-radius:9px; }
#offersView .offer-actions-panel button > span:last-child { min-width:0;text-align:left; }
#offersView .offer-actions-panel button b { font-size:12px;white-space:normal; }
#offersView .offer-actions-panel button small { margin-top:5px;white-space:normal; }
body:not(.locked) #offersView .offer-actions-panel #addOfferButton { justify-content:center;font-size:12px; }
@media(max-width:1000px) { .offer-overview-layout { grid-template-columns:1fr; } }
@media(max-width:550px) { body:not(.locked) #offersView .offer-overview-layout #offerKpis,#offersView .offer-actions-panel .hero-actions { grid-template-columns:1fr; } }

body:not(.locked) #offersView .offer-actions-panel { padding:0;border:0;background:transparent; }
body:not(.locked) #offersView .offer-actions-panel .hero-actions { gap:12px; }
body:not(.locked) #offersView .offer-actions-panel button,
body:not(.locked) #offersView .offer-actions-panel #addOfferButton { justify-content:flex-start;padding:18px;gap:14px;border:1px solid var(--offer-line);border-radius:10px;background:var(--offer-panel);color:var(--offer-text);box-shadow:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
body:not(.locked) #offersView .offer-actions-panel .offer-budget-toggle-icon { display:grid;place-items:center;flex:0 0 42px;width:42px;height:44px;border-radius:10px;background:#30203f;color:#d5b8fa; }
#offersView .offer-actions-panel .offer-budget-toggle-icon svg { width:23px;height:23px; }
body:not(.locked) #offersView .offer-actions-panel #openOfferProgress .offer-budget-toggle-icon { background:#1c2a44;color:#9ac2ff; }
body:not(.locked) #offersView .offer-actions-panel #toggleOfferBuyerBudgets .offer-budget-toggle-icon { background:#19352c;color:#92dec0; }
body:not(.locked) #offersView .offer-actions-panel #addOfferButton { border-color:#60427e;background:linear-gradient(130deg,#21172e,var(--offer-panel)); }
body:not(.locked) #offersView .offer-actions-panel #addOfferButton .offer-budget-toggle-icon { background:linear-gradient(135deg,#9450ff,#7033e9);color:#fff; }
body:not(.locked) #offersView .offer-actions-panel button:hover { transform:translateY(-2px);border-color:#9365bd;box-shadow:0 5px 16px #00000020; }
body:not(.locked) #offersView .offer-actions-panel button:focus-visible { outline:2px solid #ba8dec;outline-offset:3px; }
body.theme-light:not(.locked) #offersView .offer-actions-panel #addOfferButton { background:#f6effd;border-color:#c4a8df; }
@media(prefers-reduced-motion:reduce) { body:not(.locked) #offersView .offer-actions-panel button { transition:none; } body:not(.locked) #offersView .offer-actions-panel button:hover { transform:none; } }

#offersView .table-personalize-toolbar { display:none; }
body:not(.locked) #offersView .management-table-panel > .panel-heading { margin:0 0 16px;gap:16px; }
body:not(.locked) #offersView .offer-table-tools { display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(220px,2fr) minmax(150px,1fr) 40px;gap:10px;align-items:end;justify-content:stretch;padding:12px;border:1px solid var(--offer-line);border-radius:9px;background:var(--offer-panel);box-sizing:border-box; }
body:not(.locked) #offersView .offer-table-tools > label { display:flex;flex-direction:column;gap:0;min-width:0;width:auto; }
body:not(.locked) #offersView .offer-table-tools #offerSearch { width:100%;max-width:none;min-width:0;flex:none;margin:0; }
body:not(.locked) #offersView .offer-table-tools input,body:not(.locked) #offersView .offer-table-tools select { font-weight:500;border-radius:7px; }
body:not(.locked) #offersView .offer-registry-table th { padding:13px 12px;font-weight:600;text-align:left;white-space:nowrap; }
body:not(.locked) #offersView .offer-registry-table td { padding:16px 12px;line-height:1.5; }
body:not(.locked) #offersView .offer-registry-table td small { display:block;margin-top:4px;font-size:9px; }
body:not(.locked) #offersView .offer-registry-table td:hover { position:static;z-index:auto;box-shadow:none; }
body:not(.locked) #offersView .offer-team-pills .team-pill { border-radius:6px;padding:5px 8px;font-size:10px; }
@media(max-width:1000px) { body:not(.locked) #offersView .offer-table-tools { grid-template-columns:repeat(2,minmax(0,1fr)); } #offersView .offer-search-field { grid-column:1 / -1; } }

/* Compact offer registry density. */
body:not(.locked) #offersView .management-table-panel { padding:12px 14px; }
body:not(.locked) #offersView .management-table-panel > .panel-heading { gap:10px;margin-bottom:8px; }
body:not(.locked) #offersView .management-table-panel h2 { font-size:15px;margin:0; }
body:not(.locked) #offersView .offer-table-tools { padding:8px 10px;gap:8px;grid-template-columns:minmax(140px,.9fr) minmax(140px,.9fr) minmax(180px,2fr) minmax(140px,.9fr) 32px; }
body:not(.locked) #offersView .offer-table-tools label > span { font-size:8px;margin-bottom:4px; }
body:not(.locked) #offersView .offer-table-tools input,body:not(.locked) #offersView .offer-table-tools select,body:not(.locked) #offersView .offer-sort-direction { height:32px;min-height:32px;padding:0 9px;font-size:10px;border-radius:6px; }
body:not(.locked) #offersView .offer-registry-table th { padding:9px 10px;font-size:8px; }
body:not(.locked) #offersView .offer-registry-table td { padding:8px 10px;font-size:10px;line-height:1.25; }
body:not(.locked) #offersView .offer-registry-table td small { margin-top:2px;font-size:8px;line-height:1.25; }
body:not(.locked) #offersView .offer-team-pills { gap:4px; }
body:not(.locked) #offersView .offer-team-pills .team-pill { padding:3px 6px;font-size:9px;line-height:1.2; }
body:not(.locked) #offersView .row-actions { gap:4px; }
body:not(.locked) #offersView .row-actions button { padding:4px 6px;font-size:9px;min-height:0;line-height:1.25; }
body:not(.locked) #offersView .allocation-chips { gap:3px; }
body:not(.locked) #offersView .allocation-chips span { padding:2px 5px;font-size:8px;line-height:1.2; }
@media(max-width:1000px) { body:not(.locked) #offersView .offer-table-tools { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Slightly smaller offer overview leaves more room for the registry. */
body:not(.locked) #offersView .offer-overview-layout { gap:12px;margin-bottom:12px; }
body:not(.locked) #offersView .offer-overview-layout #offerKpis,
body:not(.locked) #offersView .offer-actions-panel .hero-actions { gap:10px; }
body:not(.locked) #offersView #offerKpis .offer-summary-card { padding:14px;gap:11px; }
body:not(.locked) #offersView #offerKpis .media-summary-icon { flex-basis:36px;width:36px;height:40px;border-radius:9px; }
body:not(.locked) #offersView #offerKpis .media-summary-icon svg { width:22px;height:22px; }
body:not(.locked) #offersView #offerKpis .kpi-title { font-size:10px;margin-bottom:6px; }
body:not(.locked) #offersView #offerKpis .kpi-value { font-size:23px; }
body:not(.locked) #offersView #offerKpis .kpi-foot { font-size:9px;margin-top:6px; }
body:not(.locked) #offersView .offer-actions-panel button,
body:not(.locked) #offersView .offer-actions-panel #addOfferButton { padding:14px;gap:11px;min-height:0; }
body:not(.locked) #offersView .offer-actions-panel .offer-budget-toggle-icon { flex-basis:36px;width:36px;height:40px;border-radius:9px; }
#offersView .offer-actions-panel .offer-budget-toggle-icon svg { width:21px;height:21px; }
#offersView .offer-actions-panel button > span:last-child { display:flex;flex-direction:column;gap:4px; }
#offersView .offer-actions-panel button b { font-size:11px;line-height:1.3; }
#offersView .offer-actions-panel button small { display:block;margin:0;font-size:9px;line-height:1.3; }

/* Allow raised action cards to paint beyond their layout bounds. */
body:not(.locked) #offersView .offer-overview-layout,
body:not(.locked) #offersView .offer-actions-panel,
body:not(.locked) #offersView .offer-actions-panel .hero-actions { overflow:visible; }
body:not(.locked) #offersView .offer-overview-layout { padding-top:4px; }
body:not(.locked) #offersView .offer-actions-panel button { position:relative; }
body:not(.locked) #offersView .offer-actions-panel button:hover { z-index:1; }

body:not(.locked) #offersView .offer-registry-table { font-variant-numeric:tabular-nums; }
body:not(.locked) #offersView .offer-registry-table th { background:var(--offer-panel);color:var(--offer-muted);font-size:9px;letter-spacing:.03em; }
body:not(.locked) #offersView .offer-registry-table td { background:var(--offer-panel);font-size:11px; }
body:not(.locked) #offersView .offer-registry-table tbody tr:hover > td { background:#252033; }
body:not(.locked) #offersView .offer-registry-table .offer-fact-cell { min-width:125px; }
body:not(.locked) #offersView .offer-registry-table .offer-fact-cell > b { font-size:12px;font-weight:600; }
body:not(.locked) #offersView .offer-registry-table .offer-fact-cell small span { color:var(--offer-text);font-weight:500; }
.offer-usage-track { width:90px;height:4px;background:#30283e;border-radius:5px;margin:5px 0;overflow:hidden; }
.offer-usage-track i { display:block;height:100%;background:#a574e8;border-radius:5px; }
.offer-usage-track.over i { background:#ff718d; }
body:not(.locked) #offersView .offer-registry-table td.trend-down { color:#ff718d; }
body.theme-light:not(.locked) #offersView .offer-registry-table tbody tr:hover > td { background:#f2eafa; }
body.theme-light .offer-usage-track { background:#e8ddf3; }

/* Calm, aligned offer actions and filter controls. */
body:not(.locked) #offersView .row-actions { display:flex;flex-wrap:nowrap;align-items:center;gap:5px; }
body:not(.locked) #offersView .row-actions button { display:inline-flex;align-items:center;justify-content:center;gap:5px;height:28px;min-height:28px;padding:0 8px;border:1px solid #453450;border-radius:6px;background:#21182d;color:#d7c6e8;font-family:inherit;font-size:9px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:none;transition:border-color .18s ease,background-color .18s ease; }
#offersView .row-actions button svg { width:13px;height:13px;flex-shrink:0; }
body:not(.locked) #offersView .row-actions button:hover:not(:disabled) { border-color:#9b73c3;background:#332342;color:#f0e3ff;transform:none; }
body:not(.locked) #offersView .row-actions .offer-start-approval { color:#bfc4ff;background:#21223a;border-color:#4d4b79; }
body:not(.locked) #offersView .row-actions .offer-start-approval.approved { color:#9ce1c3;background:#1c3028;border-color:#3b6f57; }
body:not(.locked) #offersView .row-actions .danger-link { color:#efa2b4;background:#30202a;border-color:#62414d; }
body:not(.locked) #offersView .row-actions button:disabled { opacity:.55;cursor:default; }
body:not(.locked) #offersView .row-actions button:focus-visible { outline:2px solid #b58bdc;outline-offset:2px; }
body:not(.locked) #offersView .offer-table-tools { border:0;background:transparent;padding:0 0 10px;gap:8px; }
body:not(.locked) #offersView .offer-table-tools input,body:not(.locked) #offersView .offer-table-tools select,body:not(.locked) #offersView .offer-sort-direction { border-color:#353043;background:#15121e;color:#d9cee6;box-shadow:none;font-size:10px;height:34px;min-height:34px; }
body:not(.locked) #offersView .offer-table-tools select { padding-right:28px; }
body:not(.locked) #offersView .offer-sort-direction { display:grid;place-items:center;padding:0;color:#d5b8f5;font-size:16px; }
body.theme-light:not(.locked) #offersView .row-actions button { background:#f1eaf8;color:#6c477f;border-color:#d6c5e2; }
body.theme-light:not(.locked) #offersView .offer-table-tools input,body.theme-light:not(.locked) #offersView .offer-table-tools select,body.theme-light:not(.locked) #offersView .offer-sort-direction { background:#faf7fe;color:#503763;border-color:#dacde4; }

body:not(.locked) #offersView .offer-table-tools { grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) minmax(180px,2fr) minmax(140px,1fr) 34px auto; }
body:not(.locked) #offersView .offer-table-tools select { appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b6a6c9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px;padding-right:32px; }
#offersView #offerSortDirection svg { display:block;width:17px;height:17px; }
#offersView #offerSortDirection.sort-ascending svg { transform:rotate(180deg); }
body:not(.locked) #offersView #resetOfferFilters { height:34px;min-height:34px;padding:0 12px;border:1px solid #65477e;border-radius:6px;background:#281d35;color:#dbc5ef;font-family:inherit;font-size:10px;font-weight:500;white-space:nowrap;box-shadow:none; }
body:not(.locked) #offersView #resetOfferFilters:hover { background:#352448;border-color:#a27ac3;color:#fff; }
@media(max-width:1000px) { body:not(.locked) #offersView .offer-table-tools { grid-template-columns:repeat(2,minmax(0,1fr)); } }

#offersView .offer-assignees { display:flex;flex-wrap:wrap;gap:4px;min-width:220px;max-width:340px; }
body:not(.locked) #offersView .offer-assignee { display:inline-flex;align-items:center;gap:8px;padding:4px 7px;border:1px solid #483756;border-radius:6px;background:#261d33;color:#d7c5e8;font-size:9px;line-height:1.2; }
#offersView .offer-assignee b { color:#f0e4ff;font-weight:600;white-space:nowrap; }
body:not(.locked) #offersView .offer-registry-table .offer-free-budget { display:flex;align-items:center;gap:7px;margin-top:6px;color:var(--offer-muted); }
#offersView .offer-free-budget b { color:var(--offer-text);font-weight:500; }
body:not(.locked) #offersView .offer-registry-table .offer-assignee-more { padding:3px 6px;margin:0;color:#c1a1e0; }
body.theme-light:not(.locked) #offersView .offer-assignee { background:#f2eafa;border-color:#dbcbe8;color:#725680; }
body.theme-light #offersView .offer-assignee b { color:#563269; }

body:not(.locked) #offerBriefDialog { width:min(900px,calc(100vw - 40px));padding:24px;border:1px solid #40314f;border-radius:14px;background:#11111b;color:#eee8f8; }
#offerBriefDialog .eyebrow { display:none; }
#offerBriefDialog h2 { font-size:22px;margin:0 0 8px; }
#offerBriefDialog .subtitle { font-size:12px; }
#offerBriefDialog #offerBriefTeam { height:36px;padding:0 32px 0 12px;font-size:12px;border:1px solid #574069;border-radius:7px;background:#21182d;color:#dfceef; }
#offerBriefDialog #offerBriefText { min-height:0;max-height:60dvh;overflow:auto;margin:12px 0 0;padding:18px;border:1px solid #34283f;border-radius:9px;background:#17121f;color:#e5d9ef;font-family:inherit;font-size:13px;font-weight:400;line-height:1.7;white-space:pre-wrap; }
#offerBriefDialog #copyOfferBrief { padding:8px 12px;border:1px solid #755192;border-radius:7px;background:#30203f;color:#e6cefc;font-size:11px; }
body.theme-light:not(.locked) #offerBriefDialog { background:#fff;color:#302039; }
body.theme-light #offerBriefDialog #offerBriefText { background:#f8f3fc;color:#51365f; }

body:not(.locked) #offerProgressPanel { width:min(1100px,calc(100vw - 40px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #40314f;border-radius:14px;background:#11111b;color:#eee8f8; }
#offerProgressPanel .eyebrow { display:none; }
#offerProgressPanel .offer-progress-heading { display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px; }
#offerProgressPanel h2 { font-size:22px; }
#offerProgressPanel .subtitle { font-size:12px; }
#offerProgressPanel #offerProgressPerson { height:36px;font-size:12px;border:1px solid #574069;border-radius:7px;background:#21182d;color:#dfceef;padding:0 12px; }
#offerProgressPanel .offer-progress-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
body:not(.locked) #offerProgressPanel .offer-progress-card { padding:16px;border:1px solid #352a42;border-radius:10px;background:#17121f; }
#offerProgressPanel .offer-progress-card header small { display:block;margin-top:5px;color:#b2a1c3;font-size:10px; }
#offerProgressPanel .offer-progress-card footer { gap:12px;font-size:10px; }
#offerProgressPanel .offer-progress-track { height:5px;background:#30253e;border-radius:5px; }
#offerProgressPanel .offer-progress-track i { background:#a875e7; }
#offerProgressPanel .offer-progress-track.over i { background:#ff718d; }
@media(max-width:700px) { #offerProgressPanel .offer-progress-grid { grid-template-columns:1fr; } #offerProgressPanel .offer-progress-heading { flex-direction:column;align-items:stretch; } }

body:not(.locked) #offerBriefDialog #offerBriefTeam,
body:not(.locked) #offerProgressPanel #offerProgressPerson { appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-height:36px;height:36px;padding:0 36px 0 12px;line-height:normal;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8b4df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px;box-shadow:none;outline:none; }
body:not(.locked) #offerBriefDialog #offerBriefTeam:focus,
body:not(.locked) #offerProgressPanel #offerProgressPerson:focus { border-color:#a878d5;box-shadow:0 0 0 2px #a878d526;outline:none; }
#offerBriefDialog .offer-brief-heading { align-items:center;gap:20px;padding-right:34px; }
#offerBriefDialog #offerBriefTeamField { flex:0 0 230px;min-width:0; }
@media(max-width:700px) { #offerBriefDialog #offerBriefTeamField { flex-basis:auto;width:100%; } }

body:not(.locked) #offerBuyerBudgetsPanel { width:min(1100px,calc(100vw - 40px));max-height:85dvh;overflow:auto;border:1px solid #40314f;border-radius:14px;background:#11111b;color:#eee8f8; }
#offerBuyerBudgetsPanel > .panel-heading { padding:20px 24px;background:#11111b;border-bottom:1px solid #35283f; }
#offerBuyerBudgetsPanel .eyebrow { display:none; }
#offerBuyerBudgetsPanel h2 { font-size:22px; }
#offerBuyerBudgetsPanel .subtitle { font-size:12px; }
#offerBuyerBudgets { padding:18px 24px; }
#offerBuyerBudgetsPanel .offer-budget-summary { gap:10px;margin-bottom:16px; }
#offerBuyerBudgetsPanel .offer-budget-summary article { padding:12px;border:1px solid #35283f;border-radius:9px;background:#191322; }
#offerBuyerBudgetsPanel .offer-budget-summary article b { font-size:20px;color:#e7d5fc; }
#offerBuyerBudgetsPanel .offer-budget-summary article span,#offerBuyerBudgetsPanel .offer-budget-summary article small { font-size:10px; }
.budget-person-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start; }
.budget-person-card { padding:16px;border:1px solid #3d2d4b;border-radius:10px;background:#18121f; }
.budget-person-card header { display:flex;align-items:start;justify-content:space-between;gap:12px; }
.budget-person-card h3 { margin:0;font-size:16px; }
.budget-person-card small { display:block;color:#ae9dbf;font-size:10px;margin-top:4px; }
.budget-person-card header > span { padding:4px 8px;border-radius:6px;background:#30203f;color:#d4b5ed;font-size:10px; }
.budget-person-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0; }
.budget-person-metrics b { display:block;font-size:14px;margin-top:6px;font-variant-numeric:tabular-nums; }
.budget-person-card summary { padding-top:12px;border-top:1px solid #35283f;color:#d8b9f2;font-size:11px;cursor:pointer; }
.budget-person-offers { max-height:300px;overflow:auto;margin-top:10px; }
.budget-offer-line { display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #35283f;font-size:11px; }
.budget-offer-line > div:last-child { text-align:right; }
@media(max-width:700px) { .budget-person-grid { grid-template-columns:1fr; } }

body:not(.locked) #offerDialog { width:min(850px,calc(100vw - 40px));max-height:88dvh;overflow:auto;padding:24px;border:1px solid #40314f;border-radius:14px;background:#11111b;color:#eee8f8; }
#offerDialog .eyebrow { display:none; }
#offerDialog #offerDialogTitle { font-size:23px;margin:0 0 18px; }
#offerDialog .form-grid { gap:12px 16px; }
#offerDialog .offer-form-section { margin:8px 0 0;padding:10px 0 0;border-top:1px solid #34283f;color:#d3b8ea;font-size:12px;font-weight:600; }
#offerDialog label > span { font-size:10px;letter-spacing:.025em;color:#b3a2c3;margin-bottom:6px; }
body:not(.locked) #offerDialog input:not([type=checkbox]),body:not(.locked) #offerDialog select { height:36px;min-height:36px;padding:0 11px;font-size:12px;border:1px solid #3b2d49;border-radius:7px;background:#191322;color:#eee1f9;box-shadow:none; }
#offerDialog label > small { font-size:10px;line-height:1.4; }
body:not(.locked) #offerDialog textarea { padding:10px;font-size:12px;border:1px solid #3b2d49;border-radius:7px;background:#191322;color:#eee1f9; }
body:not(.locked) #offerDialog .offer-team-allocation-editor { padding:14px;border:1px solid #3b2d49;border-radius:9px;background:#16111f; }
#offerDialog .offer-team-editor-head b { font-size:11px; }
#offerDialog .offer-team-editor-head small { font-size:10px;line-height:1.4; }
#offerDialog .offer-team-limit-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px; }
body:not(.locked) #offerDialog .offer-team-limit-row { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;min-height:0;border:1px solid #34283f;border-radius:7px;background:#1d1627; }
#offerDialog .offer-team-limit-row label { display:flex;align-items:center;gap:8px;margin:0; }
#offerDialog .offer-team-limit-row label span { font-size:11px;margin:0;color:#e1d2ee; }
#offerDialog .offer-team-limit-row input[type=checkbox] { width:15px;height:15px;accent-color:#a571dd; }
body:not(.locked) #offerDialog .offer-team-limit-row input[type=number] { width:110px;min-width:0;height:30px;min-height:30px;font-size:11px; }
#offerDialog .form-actions { position:sticky;bottom:-24px;padding:14px 0;background:#11111b;border-top:1px solid #34283f;margin-top:18px; }
body:not(.locked) #offerDialog .form-actions button { padding:9px 18px;border-radius:7px;font-size:12px; }
body:not(.locked) #offerDialog .form-actions .detail-primary { background:linear-gradient(135deg,#9450ff,#7033e9);color:#fff; }
@media(max-width:650px) { #offerDialog .offer-team-limit-list { grid-template-columns:1fr; } }

body:not(.locked) #offerDialog { scrollbar-width:none; }
body:not(.locked) #offerDialog::-webkit-scrollbar { display:none;width:0;height:0; }

body:not(.locked) #offerDialog select { appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8b4df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px; }
body:not(.locked) #offerDialog select:focus { outline:none;border-color:#a878d5;box-shadow:0 0 0 2px #a878d526; }

/* Compact designer overview */
#designerKpis { margin-top:0;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr)); }
#designerKpis .kpi-card { display:flex;align-items:center;gap:16px;min-height:112px;padding:20px;border-radius:14px;border:1px solid var(--border,#292334);background:linear-gradient(135deg,#191323,#11101b);box-shadow:none; }
#designerKpis .media-summary-icon { display:grid;place-items:center;width:46px;height:48px;flex:0 0 46px;border-radius:12px;margin:0; }
#designerKpis .media-summary-icon svg { width:24px;height:24px; }
#designerKpis .kpi-card > div { min-width:0; }
#designerKpis .kpi-title { font-size:12px;line-height:1.4;margin:0;color:#b7a9c8; }
#designerKpis .kpi-value { font-size:28px;line-height:1.15;margin:6px 0;font-weight:750; }
#designerKpis .kpi-foot { font-size:11px;line-height:1.4;margin:0;color:#958aa5; }
.designer-board-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 12px; }
.designer-board-toolbar h2 { font-size:18px;margin:0; }
.designer-board-toolbar .detail-primary { min-height:38px;padding:9px 16px;border-radius:9px;font-size:12px; }
body.theme-light #designerKpis .kpi-card { background:var(--panel,#fff); }
body.theme-light #designerKpis .kpi-title,body.theme-light #designerKpis .kpi-foot { color:#716582; }
@media(max-width:1000px) { #designerKpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { #designerKpis .kpi-card { padding:14px;gap:10px;min-height:100px; } #designerKpis .media-summary-icon { width:34px;height:38px;flex-basis:34px; } #designerKpis .kpi-value { font-size:24px; } }

/* Designer board columns and status counters */
#designerView .designer-board { gap:16px;align-items:start; }
#designerView .designer-column { --column-accent:#b28ae6;--column-tint:#a878d518; padding:14px;border:1px solid #30263e;border-top:1px solid #30263e;border-radius:16px;background:#100e19;min-height:380px;box-shadow:none; }
#designerView .designer-column.in-process { --column-accent:#e5b56e;--column-tint:#e5b56e16; }
#designerView .designer-column.done { --column-accent:#7bcbb5;--column-tint:#7bcbb516; }
#designerView .designer-column-head { min-height:42px;margin:0 0 14px;padding:0 2px 12px;border-bottom:1px solid #ffffff0a; }
#designerView .designer-column-head h2 { display:flex;align-items:center;gap:9px;margin:0;font-size:14px;font-weight:700; }
#designerView .designer-column-head h2::before { content:'';width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--column-accent); }
#designerView .designer-column-head span { min-width:30px;height:28px;padding:0 8px;border-radius:8px;border:1px solid color-mix(in srgb,var(--column-accent) 28%,transparent);background:var(--column-tint);color:var(--column-accent);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums; }
#designerView .designer-done-tools { gap:8px; }
#designerView .designer-memory-button { height:28px;padding:0 10px;border-radius:8px;border:1px solid #3a3048;background:#211a2c;color:#c2afd8;font-size:10px;font-weight:600; }
#designerView .designer-memory-button:hover { background:#30233f;border-color:#79579f; }
#designerView .designer-card-list { gap:12px; }
#designerView .design-empty { display:grid;place-items:center;min-height:90px;border:1px dashed #3a2c4b;border-radius:12px;background:#a878d505;color:#9f90b2;font-size:12px; }
#designerView .designer-column.drag-over { border-color:var(--column-accent);background:var(--column-tint);box-shadow:inset 0 0 0 1px var(--column-accent); }
body.theme-light #designerView .designer-column { background:#faf8fd;border-color:#e3dbea; }
body.theme-light #designerView .designer-column-head { border-bottom-color:#e3dbea; }
body.theme-light #designerView .designer-memory-button { background:#f0eaf6;color:#77568f;border-color:#dfd1e9; }

/* CRM naming generator */
:is(#generatorView,#unityGeneratorView) .generator-hero { padding:18px 22px;border-radius:14px;background:var(--panel,#12101b); }
:is(#generatorView,#unityGeneratorView) .generator-tabs { padding:4px;background:#100d17;border-color:#35283f;border-radius:10px; }
:is(#generatorView,#unityGeneratorView) .generator-tabs button { min-width:110px;padding:9px 14px;font-size:12px;font-weight:650; }
:is(#generatorView,#unityGeneratorView) .generator-tabs button.active { color:#f3eafa;background:#7540c1;box-shadow:none; }
:is(#generatorView,#unityGeneratorView) .generator-form-panel { border-radius:16px;background:#120f1c; }
:is(#generatorView,#unityGeneratorView) .generator-sheet-title { padding:18px 22px;text-align:left;font-size:17px;color:#e9def5;background:transparent;border-bottom:1px solid #302439; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) { grid-template-columns:repeat(3,minmax(0,1fr));padding:20px 22px;gap:16px; }
:is(#generatorView,#unityGeneratorView) .generator-wide,:is(#generatorView,#unityGeneratorView) .generator-group-title { grid-column:1 / -1; }
:is(#generatorView,#unityGeneratorView) .generator-group-title { font-size:13px;margin:6px 0 0;padding-top:16px;border-top:1px solid #302439;color:#cbb5e1; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label { display:grid;grid-template-columns:minmax(0,1fr);gap:7px;border:0;background:transparent;border-radius:0;align-content:start; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label > span { padding:0;border:0;background:transparent;color:#ac9cbd;font-size:11px;font-weight:650; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:not([type=checkbox]),:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select { height:38px;min-height:38px;padding:0 12px;border:1px solid #3a2d47;border-radius:8px;background:#1a1424;color:#e9def4;font-size:12px;box-shadow:none; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:focus,:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select:focus { outline:none;border-color:#a477cf;box-shadow:0 0 0 2px #a477cf20; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input[readonly] { color:#9587a6;background:#14101d; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select { appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bba3d2' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-size:14px;background-repeat:no-repeat;background-position:right 12px center; }
:is(#generatorView,#unityGeneratorView) .generator-media-notice { margin:0;padding:10px 12px;border:1px solid #453054;background:#a878d50b;color:#d2b9e9; }
:is(#generatorView,#unityGeneratorView) .generator-media-notice > span { color:#d2b9e9;background:#49305f; }
:is(#generatorView,#unityGeneratorView) .generator-media-notice strong { color:#d8c6ec; }
:is(#generatorView,#unityGeneratorView) .generator-media-notice small { color:#9f90af; }
:is(#generatorView,#unityGeneratorView) .generator-creative-picker { grid-column:1;grid-row:auto;border:1px solid #35283f;border-radius:10px;background:#16111f;overflow:hidden; }
:is(#generatorView,#unityGeneratorView) .generator-creative-search-row { gap:8px;padding:10px;border-color:#35283f; }
:is(#generatorView,#unityGeneratorView) .generator-creative-search-row button { border:1px solid #61417f;border-radius:8px;background:#33213f;color:#dfc6f4;font-size:12px; }
:is(#generatorView,#unityGeneratorView) .generator-creative-options { padding:10px;gap:8px;max-height:220px; }
:is(#generatorView,#unityGeneratorView) .generator-creative-option span { padding:0;border:0;background:transparent;font-size:11px; }
:is(#generatorView,#unityGeneratorView) .generator-creative-option input { accent-color:#a878d5; }
:is(#generatorView,#unityGeneratorView) .generator-creative-option:has(input:checked) { border-color:#8052a8 !important;background:#a878d515 !important; }
:is(#generatorView,#unityGeneratorView) .generator-selected-creatives button { border-color:#714494;background:#a878d514;color:#d4b6ed;border-radius:7px; }
:is(#generatorView,#unityGeneratorView) .generator-creative-field > small { grid-column:1;grid-row:auto;padding:0;background:transparent;color:#9485a3;font-size:11px; }
:is(#generatorView,#unityGeneratorView) .generator-parse-status { padding:10px 12px;border-radius:8px;font-size:11px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) .form-actions { margin:0;padding-top:14px;border-top:1px solid #302439;gap:10px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) .form-actions button { min-height:38px;padding:9px 18px;border-radius:8px;font-size:12px; }
body.theme-light :is(#generatorView,#unityGeneratorView) .generator-form-panel,body.theme-light :is(#generatorView,#unityGeneratorView) .generator-creative-picker { background:#fff; }
body.theme-light :is(#generatorView,#unityGeneratorView) .generator-sheet-title,body.theme-light :is(#generatorView,#unityGeneratorView) .generator-group-title { color:#624477; }
body.theme-light :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:not([type=checkbox]),body.theme-light :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select { background:#faf7fd;color:#34263f;border-color:#dfd2e9; }
@media(max-width:1000px) { :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) { grid-template-columns:1fr;padding:16px; } :is(#generatorView,#unityGeneratorView) .generator-creative-options { grid-template-columns:1fr; } }

/* Naming sheet: restore the familiar one-row-per-field layout */
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) { grid-template-columns:minmax(0,1fr);gap:0;padding:18px 22px 22px; }
:is(#generatorView,#unityGeneratorView) .generator-group-title { display:none; }
:is(#generatorView,#unityGeneratorView) .generator-media-notice { margin-bottom:16px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label { grid-template-columns:190px minmax(0,1fr);gap:0;border:1px solid #33283f;border-bottom:0;background:#17121f;align-content:normal;align-items:center; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label > span { display:flex;align-items:center;align-self:stretch;padding:12px 16px;border-right:1px solid #33283f;background:#21192b;color:#c9b7db;font-size:12px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:not([type=checkbox]),:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select { height:44px;min-height:44px;border:0;border-radius:0;padding-left:16px;background:#17121f;font-size:13px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input[readonly] { background:#14101c; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:focus,:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select:focus { box-shadow:inset 0 0 0 1px #9363bc; }
:is(#generatorView,#unityGeneratorView) .generator-creative-picker { grid-column:2;grid-row:1 / 3;border:0;border-radius:0; }
:is(#generatorView,#unityGeneratorView) .generator-creative-field > small { grid-column:2;grid-row:3;padding:8px 12px;background:#17121f; }
:is(#generatorView,#unityGeneratorView) .generator-creative-search-row { padding:10px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) .generator-creative-search-row input { border:1px solid #3a2d47;border-radius:7px;min-height:38px;height:38px; }
:is(#generatorView,#unityGeneratorView) .generator-parse-status { margin-top:14px; }
:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) .form-actions { margin-top:14px; }
body.theme-light :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label { background:#faf7fd;border-color:#dfd2e9; }
body.theme-light :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label > span { background:#f0e9f6;color:#624477;border-color:#dfd2e9; }
@media(max-width:600px) {
 :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) { padding:14px; }
 :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label { grid-template-columns:110px minmax(0,1fr); }
 :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label > span { padding:10px;font-size:10px; }
 :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:not([type=checkbox]),:is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select { padding-left:10px;font-size:12px; }
 :is(#generatorView,#unityGeneratorView) .generator-creative-options { grid-template-columns:1fr; }
}

/* Naming results and archive */
:is(#generatorView,#unityGeneratorView) :is(.generator-results-panel,.generator-memory-panel) { padding:20px 22px;border:1px solid #30263d;border-radius:15px;background:#120f1b; }
:is(#generatorView,#unityGeneratorView) :is(.generator-results-panel,.generator-memory-panel) .panel-heading { margin-bottom:16px;align-items:center;gap:12px; }
:is(#generatorView,#unityGeneratorView) :is(.generator-results-panel,.generator-memory-panel) .eyebrow { color:#a987c8;font-size:10px;letter-spacing:.1em; }
:is(#generatorView,#unityGeneratorView) :is(.generator-results-panel,.generator-memory-panel) h2 { font-size:18px;margin:4px 0; }
:is(#generatorView,#unityGeneratorView) .generator-memory-panel .subtitle { font-size:12px;color:#998aa9;margin-top:6px; }
:is(#generatorView,#unityGeneratorView) :is(.generator-result,.generator-history-item) { gap:16px;padding:15px 16px;border:1px solid #382a45;border-radius:10px;background:#191320; }
:is(#generatorView,#unityGeneratorView) .generator-result code,:is(#generatorView,#unityGeneratorView) .generator-history-item strong { font:500 12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;color:#dfd3ed;white-space:normal;overflow-wrap:anywhere; }
:is(#generatorView,#unityGeneratorView) .generator-history-item small { font-size:10px;line-height:1.6;color:#9b8aad;margin-top:7px; }
:is(#generatorView,#unityGeneratorView) :is(.generator-result button,.generator-history-item button,:is(#generatorCopyAll,#unityGeneratorCopyAll)) { align-self:center;min-height:34px;padding:7px 12px;border:1px solid #62417f;border-radius:8px;background:#342140;color:#dfc7f3;font-size:11px;font-weight:650;cursor:pointer;box-shadow:none;white-space:nowrap; }
:is(#generatorView,#unityGeneratorView) :is(.generator-result button,.generator-history-item button,:is(#generatorCopyAll,#unityGeneratorCopyAll)):hover { border-color:#a174ca;background:#492c5d; }
:is(#generatorView,#unityGeneratorView) .generator-history-item button[data-generator-restore] { background:transparent;border-color:#43304f;color:#bca6cf; }
:is(#generatorView,#unityGeneratorView) .generator-history-filters { grid-template-columns:minmax(150px,1fr) minmax(180px,1fr) minmax(220px,2fr);gap:12px;margin:0 0 20px;padding:14px;border:1px solid #302439;border-radius:10px;background:#100d17; }
:is(#generatorView,#unityGeneratorView) .generator-history-search { grid-column:auto; }
:is(#generatorView,#unityGeneratorView) .generator-history-filters label { gap:7px;color:#ab97bf;font-size:10px;font-weight:650;letter-spacing:.04em; }
:is(#generatorView,#unityGeneratorView) .generator-history-filters :is(select,input) { width:100%;height:36px;min-height:36px;padding:0 11px;border:1px solid #3a2c46;border-radius:7px;background:#1b1424;color:#ddcfea;font-size:12px;box-shadow:none; }
:is(#generatorView,#unityGeneratorView) .generator-history-filters select { appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bba3d2' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-size:14px;background-repeat:no-repeat;background-position:right 11px center; }
:is(#generatorView,#unityGeneratorView) .generator-history-filters :is(select,input):focus { outline:none;border-color:#a174ca;box-shadow:0 0 0 2px #a174ca20; }
:is(#generatorView,#unityGeneratorView) :is(#generatorHistoryCount,#unityGeneratorHistoryCount),:is(#generatorView,#unityGeneratorView) .generator-history-month > h3 span { display:inline-grid;place-items:center;min-width:27px;min-height:25px;padding:2px 7px;border:1px solid #604077;border-radius:7px;background:#a878d515;color:#ccb0e3;font-size:11px;font-weight:650; }
:is(#generatorView,#unityGeneratorView) .generator-history-month > h3 { color:#aa97be;font-size:10px;margin-bottom:4px; }
:is(#generatorView,#unityGeneratorView) :is(.generator-history,.generator-results) { scrollbar-color:#634879 transparent; }
body.theme-light :is(#generatorView,#unityGeneratorView) :is(.generator-results-panel,.generator-memory-panel,.generator-history-filters) { background:#fff;border-color:#e0d4e9; }
body.theme-light :is(#generatorView,#unityGeneratorView) :is(.generator-result,.generator-history-item,.generator-history-filters input,.generator-history-filters select) { background:#faf7fd;border-color:#dfd2e9;color:#4b355e; }
body.theme-light :is(#generatorView,#unityGeneratorView) :is(.generator-result code,.generator-history-item strong) { color:#4b355e; }
@media(max-width:850px) { :is(#generatorView,#unityGeneratorView) .generator-history-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } :is(#generatorView,#unityGeneratorView) .generator-history-search { grid-column:1 / -1; } :is(#generatorView,#unityGeneratorView) .generator-history-item { grid-template-columns:1fr; } :is(#generatorView,#unityGeneratorView) .generator-history-actions { justify-content:flex-start; } }
@media(max-width:520px) { :is(#generatorView,#unityGeneratorView) .generator-result { grid-template-columns:1fr; } :is(#generatorView,#unityGeneratorView) .generator-result button { justify-self:start; } :is(#generatorView,#unityGeneratorView) .generator-history-filters { grid-template-columns:1fr; } }

/* Employee overview */
.employee-page-actions { display:flex;justify-content:flex-end;margin-bottom:14px; }
.employee-page-actions .detail-primary { padding:10px 16px;min-height:38px;border-radius:9px;font-size:12px; }
#employeeKpis { margin-top:0;gap:14px; }
#employeeKpis .kpi-card { display:flex;align-items:center;gap:16px;min-height:112px;padding:20px;border:1px solid #30263d;border-radius:14px;background:linear-gradient(135deg,#191323,#11101b);box-shadow:none; }
#employeeKpis .media-summary-icon { display:grid;place-items:center;flex:0 0 46px;width:46px;height:48px;margin:0;border-radius:12px; }
#employeeKpis .media-summary-icon svg { width:24px;height:24px; }
#employeeKpis .kpi-card > div { min-width:0; }
#employeeKpis .kpi-title { margin:0;font-size:12px;color:#b7a9c8;line-height:1.4; }
#employeeKpis .kpi-value { margin:6px 0;font-size:28px;line-height:1.15; }
#employeeKpis .kpi-foot { margin:0;font-size:11px;color:#958aa5;line-height:1.4; }
body.theme-light #employeeKpis .kpi-card { background:#fff;border-color:#e0d4e9; }
@media(max-width:600px) { #employeeKpis .kpi-card { padding:14px;gap:10px; } #employeeKpis .media-summary-icon { flex-basis:34px;width:34px;height:38px; } }

/* Employee directory cards */
#employeesView .employee-page-actions { margin:14px 0; }
#employeesView .employee-card { display:flex;flex-direction:column;padding:20px;border:1px solid #33263f;border-radius:16px;background:linear-gradient(145deg,#191321,#110e19);box-shadow:none;transition:border-color .18s,box-shadow .18s; }
#employeesView .employee-card:hover { transform:none;border-color:#785099;box-shadow:0 6px 20px #00000018; }
#employeesView .employee-card-top { align-items:center;gap:7px;min-height:52px; }
#employeesView .employee-card .employee-avatar { width:52px;height:52px;flex-basis:52px;border-radius:14px;border:1px solid #81649b55;box-shadow:none;background:#49305f;color:#e1ccf2; }
#employeesView .employee-card h3 { margin:15px 0 5px;font-size:17px;font-weight:700;color:#eee3f7; }
#employeesView .employee-card .employee-role { color:#bc93df;font-size:12px;line-height:1.5; }
#employeesView .employee-card .employee-meta { margin-top:15px;gap:7px; }
#employeesView .employee-card .employee-meta span { padding:5px 8px;border:1px solid #473152;border-radius:7px;background:#a878d50b;color:#b9a5cc;font-size:10px;font-weight:550; }
#employeesView .employee-card .employee-contact { margin:13px 0 0;color:#9f8fb0;font-size:11px;line-height:1.6; }
#employeesView .employee-card-actions { margin-top:16px;padding-top:13px;border-top:1px solid #ffffff0a;gap:8px; }
#employeesView .employee-card-actions button { min-height:32px;padding:7px 12px;border:1px solid #4b345b;border-radius:8px;background:#24192e;color:#ccb5df;font-size:11px;font-weight:600;box-shadow:none; }
#employeesView .employee-card-actions button:first-child { background:#372144;border-color:#63417d;color:#e0c8f1; }
#employeesView .employee-card-actions button:hover { background:#49305c;border-color:#996bbe; }
#employeesView .employee-card.absent-today { background:linear-gradient(145deg,#271722,#17101c);border-color:#653543; }
#employeesView .employee-card.birthday-today { border-color:#a98245;box-shadow:inset 3px 0 #a98245; }
#employeesView .employee-card .pill { padding:4px 8px;border-radius:7px;font-size:9px;font-weight:600; }
body.theme-light #employeesView .employee-card { background:#fff;border-color:#e0d4e9; }
body.theme-light #employeesView .employee-card h3 { color:#392545; }
body.theme-light #employeesView .employee-card.absent-today { background:#fff6f8;border-color:#e6b9c4; }

/* Purple employee navigation controls */
body:not(.locked) #employeesView :is(.employee-section-tabs,.view-switch) { background:#15101e;border:1px solid #3a2949;border-radius:10px;padding:4px;gap:4px; }
body:not(.locked) #employeesView :is(.employee-section-tabs,.view-switch) button { color:#ad98bf;background:transparent;border-radius:7px;font-weight:650;box-shadow:none;transition:background .15s,color .15s; }
body:not(.locked) #employeesView :is(.employee-section-tabs,.view-switch) button:hover { color:#ead9f8;background:#33213f; }
body:not(.locked) #employeesView :is(.employee-section-tabs,.view-switch) button.active { color:#fff;background:linear-gradient(135deg,#9652ed,#7135d2);box-shadow:0 2px 8px #7135d222; }
body:not(.locked) #employeesView :is(.employee-section-tabs,.view-switch) button:focus-visible { outline:2px solid #ba8fe4;outline-offset:2px; }
body.theme-light #employeesView :is(.employee-section-tabs,.view-switch) { background:#f5effa;border-color:#dfcfea; }
body.theme-light #employeesView :is(.employee-section-tabs,.view-switch) button:not(.active) { color:#806295; }

/* Shared light palette for refreshed CRM sections; layout stays unchanged. */
body.theme-light:not(.locked) { --light-surface:#ffffff;--light-soft:#f7f3fb;--light-line:#e3d9ec;--light-ink:#30213f;--light-muted:#80718d; }
body.theme-light:not(.locked) :is(#employeesView,#designerView,:is(#generatorView,#unityGeneratorView),#offersView,:is(#mediaView,#unityMediaView)) { color:var(--light-ink); }
body.theme-light:not(.locked) :is(#employeeKpis,#designerKpis) .kpi-card { background:linear-gradient(135deg,#fff,#faf7fd);border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#employeeKpis,#designerKpis) .kpi-title { color:#776485; }
body.theme-light:not(.locked) :is(#employeeKpis,#designerKpis) .kpi-value { color:var(--light-ink); }
body.theme-light:not(.locked) :is(#employeeKpis,#designerKpis) .kpi-foot { color:var(--light-muted); }
body.theme-light:not(.locked) #employeesView .employee-card { background:linear-gradient(145deg,#fff,#faf7fd);border-color:var(--light-line); }
body.theme-light:not(.locked) #employeesView .employee-card h3 { color:var(--light-ink); }
body.theme-light:not(.locked) #employeesView .employee-card .employee-role { color:#8955b0; }
body.theme-light:not(.locked) #employeesView .employee-card .employee-contact { color:var(--light-muted); }
body.theme-light:not(.locked) #employeesView .employee-card .employee-meta span { color:#7b5d90;background:#f3edf8;border-color:#e1d3eb; }
body.theme-light:not(.locked) #employeesView .employee-card-actions { border-top-color:var(--light-line); }
body.theme-light:not(.locked) #employeesView .employee-card-actions button { color:#79518f;background:#f5effa;border-color:#ddc9eb; }
body.theme-light:not(.locked) #employeesView .employee-card-actions button:first-child { background:#eee2f7;color:#754398; }
body.theme-light:not(.locked) #employeesView .employee-card-actions button:hover { background:#e6d6f2;border-color:#b38acb; }
body.theme-light:not(.locked) #employeesView .employee-card .employee-avatar-fallback { background:#eee1f7;color:#8052a0; }
body.theme-light:not(.locked) #employeesView .employee-card.absent-today { background:#fff5f7;border-color:#ebc7d1; }
body.theme-light:not(.locked) #employeesView :is(.employee-section-tabs,.view-switch) button:not(.active):hover { background:#e9dcf4;color:#71458f; }
body.theme-light:not(.locked) #designerView .designer-column { background:#faf8fd;border-color:var(--light-line);--column-accent:#9562bb;--column-tint:#eee2f8; }
body.theme-light:not(.locked) #designerView .designer-column.in-process { --column-accent:#b5802e;--column-tint:#fbf0dc; }
body.theme-light:not(.locked) #designerView .designer-column.done { --column-accent:#3e967e;--column-tint:#e4f4ef; }
body.theme-light:not(.locked) #designerView .designer-column-head { border-bottom-color:var(--light-line); }
body.theme-light:not(.locked) #designerView .designer-column-head h2 { color:var(--light-ink); }
body.theme-light:not(.locked) #designerView .design-empty { background:#f5effa;border-color:#d9c9e5;color:#8a729c; }
body.theme-light:not(.locked) #designerView .designer-memory-button:hover { background:#e9dcf4;border-color:#b68fcc; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(.generator-hero,.generator-form-panel,.generator-results-panel,.generator-memory-panel,.generator-dictionary-panel) { background:#fff;border-color:var(--light-line);color:var(--light-ink); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-sheet-title { color:var(--light-ink);border-bottom-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-tabs { background:#f5effa;border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-tabs button { color:#8a719c; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-tabs button.active { color:#fff;background:#8550c7; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label { background:#fff;border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) > label > span { background:#f5effa;color:#795c8c;border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input:not([type=checkbox]),body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) select { background:#fff;color:var(--light-ink);border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) input[readonly] { background:#faf7fd;color:#877392; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-media-notice { background:#f6effb;border-color:#e2d2ee; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-media-notice > span { background:#e9d8f5;color:#8953ae; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-media-notice strong { color:#795190; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-media-notice small { color:#917a9f; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-creative-picker { background:#fff; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-creative-search-row { border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-creative-search-row button { background:#eee2f7;color:#754398;border-color:#d9bee9; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-creative-option:has(input:checked) { background:#f0e6f8 !important;border-color:#b488cf !important; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-selected-creatives button { background:#f1e7f8;color:#795092;border-color:#d9c1e8; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-creative-field > small { background:#fff;color:var(--light-muted); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(#generatorForm,#unityGeneratorForm) .form-actions { border-top-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(.generator-result,.generator-history-item) { background:#faf7fd;border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(.generator-result code,.generator-history-item strong) { color:#51355f; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-history-item small { color:var(--light-muted); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(.generator-result button,.generator-history-item button,:is(#generatorCopyAll,#unityGeneratorCopyAll)) { background:#eee2f7;border-color:#d7bce8;color:#754398; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(.generator-result button,.generator-history-item button,:is(#generatorCopyAll,#unityGeneratorCopyAll)):hover { background:#e4d1f2;border-color:#af81cb; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-history-filters { background:#faf7fd;border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) .generator-history-filters :is(input,select) { background:#fff;color:var(--light-ink);border-color:#ded0e8; }
body.theme-light:not(.locked) :is(#generatorView,#unityGeneratorView) :is(:is(#generatorHistoryCount,#unityGeneratorHistoryCount),.generator-history-month > h3 span) { color:#8354a4;background:#efe3f8;border-color:#d7bce8; }
body.theme-light:not(.locked) #offersView { --offer-panel:#fff;--offer-text:#352340;--offer-muted:#84718f; }
body.theme-light:not(.locked) #offersView :is(.offer-summary-card,.offer-actions-panel button,.management-table-panel) { background:#fff;color:var(--light-ink);border-color:var(--light-line); }
body.theme-light:not(.locked) #offersView .offer-actions-panel #addOfferButton { background:linear-gradient(135deg,#f2e8fb,#fff);color:#73439a;border-color:#dac1eb; }
body.theme-light:not(.locked) #offersView .offer-actions-panel button small { color:var(--light-muted); }
body.theme-light:not(.locked) #offersView .offer-table-tools { background:#faf7fd;border-color:var(--light-line); }
body.theme-light:not(.locked) #offersView .offer-table-tools :is(input,select),body.theme-light:not(.locked) #offersView .offer-sort-direction { background:#fff;color:#634b75;border-color:#ded0e8; }
body.theme-light:not(.locked) #offersView #resetOfferFilters { background:#f1e7f8;color:#795092;border-color:#d9c1e8; }
body.theme-light:not(.locked) #offersView #resetOfferFilters:hover { background:#e4d1f2;color:#694083; }
body.theme-light:not(.locked) #offersView .offer-registry-table tbody tr:hover > td { background:#f4edf9; }
body.theme-light:not(.locked) #offersView .row-actions button { background:#f3ebfa;color:#795190;border-color:#d9c4e7; }
body.theme-light:not(.locked) #offersView .row-actions button.danger-link { background:#fff1f4;color:#b65570;border-color:#efc6d0; }
body.theme-light:not(.locked) :is(#offerDialog,#offerBriefDialog,#offerProgressPanel,#offerBuyerBudgetsPanel) { background:#fff;color:var(--light-ink);border-color:var(--light-line); }
body.theme-light:not(.locked) #offerDialog :is(input:not([type=checkbox]),select,textarea),body.theme-light:not(.locked) #offerBriefDialog #offerBriefTeam,body.theme-light:not(.locked) #offerProgressPanel #offerProgressPerson { background-color:#faf7fd;color:#51355f;border-color:#dfd0e9; }
body.theme-light:not(.locked) #offerDialog :is(.form-actions,.offer-team-allocation-fields) { background:#fff;border-color:var(--light-line); }
body.theme-light:not(.locked) #offerBuyerBudgetsPanel > .panel-heading { background:#fff;border-color:var(--light-line); }
body.theme-light:not(.locked) #offerBuyerBudgetsPanel .offer-budget-summary article,body.theme-light:not(.locked) #offerProgressPanel .offer-progress-card,body.theme-light:not(.locked) .budget-person-card { background:#faf7fd;border-color:var(--light-line);color:var(--light-ink); }
body.theme-light:not(.locked) #offerBuyerBudgetsPanel .offer-budget-summary article b { color:#71478f; }
body.theme-light:not(.locked) .budget-person-card :is(small,summary) { color:#8a719c;border-color:var(--light-line); }
body.theme-light:not(.locked) .budget-person-card header > span { background:#eee2f7;color:#795092; }
body.theme-light:not(.locked) #offerProgressPanel .offer-progress-card header small { color:var(--light-muted); }
body.theme-light:not(.locked) #offerProgressPanel .offer-progress-track { background:#e9deef; }
body.theme-light:not(.locked) #offerBriefDialog #copyOfferBrief { background:#eee2f7;border-color:#d7bce8;color:#754398; }
body.theme-light:not(.locked) #offerDialog .offer-form-section { color:#8955aa;border-color:var(--light-line); }
body.theme-light:not(.locked) #offerDialog label > span { color:#80658f; }
body.theme-light:not(.locked) #offerDialog .offer-team-allocation-editor { background:#faf7fd;border-color:var(--light-line); }
body.theme-light:not(.locked) #offerDialog .offer-team-limit-row { background:#fff;border-color:var(--light-line); }
body.theme-light:not(.locked) #offerDialog .offer-team-limit-row label span { color:#634674; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > :is(a,label) { background:#faf7fd;color:#7a5591;border-color:#dfcfea; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading :is(#mediaUploadButton,#unityMediaUploadButton) { background:#eee2f7;color:#754398;border-color:#d7bce8; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button { background:#faf7fd;color:#80658f;border-color:var(--light-line); }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button.active { background:#ede0f8;color:#744596;border-color:#b88dd1; }

/* Light theme uses the same dashboard composition as dark. */
body:not(.locked).theme-light{ --bg:#faf7fd; --panel:#faf7fd; --ink:#604775; --muted:#aaa6c6; --line:#faf7fd; --green:#23d891; --green-soft:rgba(35,216,145,.12); --navy:#faf7fd; background:radial-gradient(ellipse at 75% 0%,#faf7fd 0%,#faf7fd 58%); }
body:not(.locked).theme-light .sidebar{ width:184px; padding:24px 12px 12px; background:linear-gradient(160deg,#faf7fd,#faf7fd); border-right:1px solid #faf7fd; }
body:not(.locked).theme-light .brand{ display:flex; flex-direction:column; gap:3px; align-items:center; margin:0 0 22px; padding:0; color:#604775; font-size:22px; letter-spacing:.02em; }
body:not(.locked).theme-light .nav{ gap:4px; min-height:0; overflow:auto; }
body:not(.locked).theme-light .nav-item{ min-height:34px; margin:2px 0; padding:8px 12px; border:1px solid transparent; border-radius:8px; color:#604775; font-size:12px; }
body:not(.locked).theme-light .nav-item.active{ color:#604775; background:linear-gradient(110deg,#8a51ff,#6939ed); border-color:#925bff; box-shadow:0 4px 20px #733cff26; }
body:not(.locked).theme-light .direction-switcher{ margin-bottom:10px; padding:7px; background:#faf7fd; }
body:not(.locked).theme-light .sidebar-note{ margin-top:auto; padding:10px 6px 0; font-size:10px; }
body:not(.locked).theme-light main{ margin-left:184px; max-width:none; padding:18px 22px; }
body:not(.locked).theme-light .panel{ background:linear-gradient(130deg,#faf7fd,#faf7fd); border:1px solid #faf7fd; border-radius:9px; box-shadow:none; }
body:not(.locked).theme-light input,body:not(.locked).theme-light select,body:not(.locked).theme-light textarea{ color:#604775; background:#faf7fd; border-color:#faf7fd; border-radius:8px; }
body:not(.locked).theme-light .detail-primary,body:not(.locked).theme-light .view-button{ color:#604775; background:linear-gradient(110deg,#8750ff,#6938ed); border-color:#9467ff; }
body:not(.locked).theme-light #mainOverview{ display:none!important; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:10px; padding:0; margin:0 0 14px; border:0; background:transparent; box-shadow:none; }
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label{ min-width:0; }
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label span{ font-size:9px; font-weight:500; letter-spacing:.08em; color:#604775; text-transform:uppercase; margin-bottom:7px; }
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) input,body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) select{ width:100%; min-width:0; height:36px; padding:7px 9px; font-size:11px; }
body:not(.locked).theme-light :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters){
  font-size:10px;
  padding:0 12px;
  align-self:end;
  height:36px;
  color:#604775;
  background:#faf7fd;
  border:1px solid #48355e;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
body:not(.locked).theme-light :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters):hover{
  color:#604775;
  background:#faf7fd;
  border-color:#9b76ca;
  box-shadow:0 0 0 3px rgba(155,118,202,.1);
}
body:not(.locked).theme-light :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters):focus-visible{
  outline:2px solid #604775;
  outline-offset:3px;
}
body:not(.locked).theme-light :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters):active{
  background:#faf7fd;
  box-shadow:none;
}
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner){ margin:0 0 10px; padding:5px 10px; min-height:0; font-size:10px; border-radius:6px; }
body:not(.locked).theme-light :is(#dashboardView,#unityDashboardView) > :not(:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis)):not(:is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner)):not(:is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace)):not(#dashboardMatrixView):not(.dashboard-kpi-row):not(#analyticsStatusDock):not(#unityAnalyticsStatusDock){ display:none!important; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin:0 0 14px; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card{ position:relative; min-height:78px; padding:17px 12px 12px 65px; border:1px solid #faf7fd; border-radius:9px; background:linear-gradient(130deg,#faf7fd,#faf7fd); box-shadow:none; overflow:hidden; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-title{ font-size:9px; text-transform:uppercase; color:#604775; letter-spacing:.06em; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon{ position:absolute; top:16px; left:13px; display:grid; place-items:center; width:40px; height:44px; border-radius:10px; background:linear-gradient(140deg,#a770ff,#743df1); font-size:25px; color:#604775; box-shadow:inset 0 1px 3px #ffffff55; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(2) .kpi-icon,body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(6) .kpi-icon{ background:linear-gradient(140deg,#20d58d,#139c68); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(3) .kpi-icon{ background:linear-gradient(140deg,#298fff,#0753d8); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(4) .kpi-icon{ background:linear-gradient(140deg,#ffb12c,#ed7913); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(5) .kpi-icon{ background:linear-gradient(140deg,#ff61b0,#db267e); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-value{ margin:5px 0 0; font-size:clamp(16px,1.55vw,25px); line-height:1.2; letter-spacing:-.025em; white-space:nowrap; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-foot{ display:none; }
body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.8fr) minmax(280px,1fr); grid-template-rows:minmax(210px,1fr) 135px 190px; gap:14px; height:calc(100dvh - 208px); min-height:540px; }
body:not(.locked).theme-light .theme-toggle{ width:28px; height:28px; right:8px; top:auto; bottom:8px; background:#faf7fd; color:#604775; }
body:not(.locked).theme-light .dashboard-display-control{ right:42px; top:auto; bottom:8px; }
@media (min-width:1101px) and (max-height:800px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:minmax(160px,1fr) 130px 170px; min-height:460px; height:calc(100dvh - 195px); }}
@media (max-width:1250px){body:not(.locked).theme-light main{ padding:14px; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card{ padding-left:48px; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon{ left:8px; width:32px; font-size:20px; }}
@media (max-width:1100px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ height:auto; min-height:0; grid-template-columns:minmax(0,1fr) minmax(260px,.7fr); grid-template-rows:400px 170px 200px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ grid-template-columns:repeat(4,minmax(0,1fr)); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ grid-template-columns:repeat(3,minmax(0,1fr)); }}
@media (max-width:780px){body:not(.locked).theme-light .sidebar{ width:100%;padding:10px 14px; }
body.theme-light:not(.locked) .sidebar .nav,
body.theme-light:not(.locked) .sidebar.mobile-nav-open .sidebar-display-tools{ background:#faf7fd;border-color:#ded3e8;box-shadow:0 12px 28px rgba(60,42,78,.14); }
body:not(.locked).theme-light .brand{ margin:0;align-items:flex-start;font-size:19px; }
body:not(.locked).theme-light main{ margin-left:0;padding:80px 12px 24px; }
body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ display:flex;flex-direction:column; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media (min-width:1101px){body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ grid-template-columns:repeat(8,minmax(0,1fr)) 74px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner){ display:flex; align-items:center; justify-content:space-between; height:30px; overflow:hidden; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main{ display:flex;align-items:center;gap:8px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main > div{ display:flex;align-items:center;gap:10px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main strong{ font-size:10px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main span{ font-size:9px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main > div > span:last-child{ display:none; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side{ display:flex;align-items:center;gap:10px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side > span{ display:none; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side strong{ font-size:9px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-action{ padding:4px 8px; font-size:9px; min-height:0; }
body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ height:calc(100dvh - 225px);min-height:0; }}
@media (min-width:1101px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ height:calc(100dvh - 240px);grid-template-rows:minmax(150px,1fr) 150px 190px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side{ flex:0 0 auto; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side .freshness-action{ width:auto; margin:0; line-height:1; }}
@media (min-width:1101px){body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side{ flex-direction:row; }}
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label > span{ position:static; display:block; margin:0 0 8px; padding:0; line-height:1.2; }
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) input,
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) select{ height:46px; padding:10px 12px; font-size:12px; }
body:not(.locked).theme-light :is(:is(#resetFilters,#unityResetFilters),#influenceResetFilters){ height:46px; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ grid-template-columns:repeat(4,minmax(0,1fr)); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(4) .kpi-icon{ background:linear-gradient(140deg,#20d58d,#139c68); }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner){ display:flex; align-items:center; justify-content:space-between; gap:18px; height:auto; min-height:62px; padding:12px 16px; margin:0 0 14px; overflow:visible; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main > div{ display:grid; gap:5px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main strong{ font-size:12px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-main span{ font-size:11px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side{ display:flex; flex-direction:row; align-items:center; gap:14px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side strong{ font-size:10px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side .freshness-action{ min-height:32px; padding:8px 12px; font-size:10px; }
@media (min-width:1101px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ height:calc(100dvh - 293px); grid-template-rows:minmax(100px,1fr) 150px 190px; }}
@media (max-width:1100px){body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ grid-template-columns:repeat(2,minmax(0,1fr)); }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side{ flex-direction:column; align-items:flex-end; }}
@media (max-width:780px){body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner){ align-items:flex-start; flex-direction:column; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) .freshness-side{ align-items:flex-start; }}
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-main > div{ display:grid;gap:7px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-main > div > span:last-child{ display:block; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-side{ flex-direction:column;align-items:flex-end;gap:9px; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) .freshness-side > span{ display:block;font-size:9px; }
body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-columns:minmax(0,2.25fr) minmax(300px,1fr); grid-template-rows:minmax(140px,1fr) 180px 300px; height:calc(100dvh - 246px); min-height:0; }
@media (min-width:1101px) and (max-height:850px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:minmax(100px,1fr) 155px 255px; }}
@media (max-width:1100px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ height:auto;grid-template-columns:minmax(0,1fr) minmax(270px,.7fr);grid-template-rows:270px 180px 300px 300px; }}
@media (max-width:780px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ display:flex; }}
@media (max-width:1100px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:270px 180px 300px; }}
body:not(.locked).theme-light :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters) label > span{ font-size:11px; font-weight:600; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon{ width:42px;height:46px;border-radius:11px;box-shadow:inset 0 1px 2px #ffffff50,0 5px 14px #0002; }
@media (max-width:1250px){body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon{ width:32px;height:42px; }}
body:not(.locked).theme-light .brand::before{ content:none;display:none; }
@media (min-width:781px){body:not(.locked).theme-light .sidebar .brand{ align-items:flex-start; width:100%; padding:0 12px; margin:0 0 24px; gap:5px; text-align:left; text-shadow:none; }
body:not(.locked).theme-light .sidebar .brand small{ font-size:9px;letter-spacing:.13em;color:#a49abd; }
body:not(.locked).theme-light .sidebar .direction-switcher{ flex:0 0 auto; margin:0 0 18px; padding:10px 8px; gap:6px; border:1px solid #faf7fd; border-radius:10px; background:#faf7fd; }
body:not(.locked).theme-light .sidebar .direction-switcher-label{ padding:0 2px 4px; font-size:8px; font-weight:600; line-height:1.4; letter-spacing:.055em;color:#aaa0bf; }
body:not(.locked).theme-light .sidebar .direction-switcher button{ display:flex; justify-content:center; align-items:center; min-height:34px; min-width:0; padding:7px 4px; gap:0; border-radius:7px; border:1px solid #faf7fd; background:#faf7fd; color:#aca1bf; font-size:10px; font-weight:600; box-shadow:none; transform:none; }
body:not(.locked).theme-light .sidebar .direction-switcher button::before{ content:none!important;display:none; }
body:not(.locked).theme-light .sidebar #directionSwitcher button.active{ color:#604775; border-color:#8155dc; background:linear-gradient(135deg,#7344d5,#5730a7); box-shadow:inset 0 1px #ffffff15; }
body:not(.locked).theme-light .sidebar .direction-switcher button:hover{ border-color:#9e77ed;color:#604775; }
body:not(.locked).theme-light .sidebar .sidebar-note{ flex:0 0 auto; margin:auto 0 0; padding:10px; border:1px solid #faf7fd; border-radius:10px; background:#faf7fd; box-shadow:none; }
body:not(.locked).theme-light .sidebar .sidebar-profile-button{ display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center; }
body:not(.locked).theme-light .sidebar .sidebar-photo{ width:36px;height:36px;border:1px solid #45345f;border-radius:8px;background:#faf7fd;color:#604775;box-shadow:none; }
body:not(.locked).theme-light .sidebar #sessionUser{ font-size:11px;line-height:1.3;color:#604775; }
body:not(.locked).theme-light .sidebar #sessionRole{ margin-top:3px;font-size:9px;line-height:1.35;color:#9d92b4;overflow-wrap:anywhere; }
body:not(.locked).theme-light .sidebar .sidebar-note-footer{ display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #faf7fd; }
body:not(.locked).theme-light .sidebar .logout-button{ margin:0;padding:2px 0;font-size:10px;line-height:1.2;color:#604775; }
body:not(.locked).theme-light .sidebar .sidebar-note-footer #systemVersion{ font-size:9px;font-weight:500;color:#776a90; }}
body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:minmax(140px,1fr) 58px 300px; }
@media (min-width:1101px) and (max-height:850px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:minmax(100px,1fr) 58px 255px; }}
@media (max-width:1100px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:392px 58px 300px; }}
body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:minmax(140px,1fr) 260px 58px; }
@media (min-width:1101px) and (max-height:850px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:minmax(100px,1fr) 230px 58px; }}
@media (max-width:1100px){body:not(.locked).theme-light:not(.dashboard-matrix-mode) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace){ grid-template-rows:392px 260px 58px; }}
body:not(.locked).theme-light .dashboard-display-control{ right:52px;bottom:12px;top:auto; }
body:not(.locked).theme-light .theme-toggle{ right:12px;bottom:12px;top:auto;width:32px;height:32px; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ grid-template-columns:repeat(5,minmax(0,1fr)); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(4) .kpi-icon{ background:linear-gradient(135deg,#f3b746,#dd8120); }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card:nth-child(5) .kpi-icon{ background:linear-gradient(135deg,#30d991,#149366); }
@media(max-width:1100px){body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ grid-template-columns:repeat(3,minmax(0,1fr)); }}
@media(max-width:780px){body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis){ grid-template-columns:repeat(2,minmax(0,1fr)); }}
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs{ position:relative;overflow:visible;z-index:15; }
body .theme-toggle,
body:not(.locked).theme-light .theme-toggle{ width:46px;height:46px;min-height:46px;font-size:25px;border-radius:12px;right:12px;bottom:12px; }
body:not(.locked).theme-light :is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover > td,
body:not(.locked).theme-light :is(:is(#neonOfferRows,#unityNeonOfferRows),#influenceResultsBody) tr:hover > td:hover{ position:static;z-index:auto;background:#faf7fd;border-color:#faf7fd;box-shadow:none; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit{ position:relative;overflow:visible;z-index:15; }
body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ grid-template-columns:repeat(6,minmax(0,1fr)) 74px; }
@media(max-width:1100px){body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ grid-template-columns:repeat(3,minmax(0,1fr)); }}
@media(max-width:780px){body:not(.locked).theme-light:has(:is(:is(#dashboardView,#unityDashboardView),#influenceView):not([hidden])) :is(:is(#analyticsFilters,#unityAnalyticsFilters),#influenceDashboardFilters){ grid-template-columns:repeat(2,minmax(0,1fr)); }}
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs,
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit{ z-index:1; }
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs:hover,
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-installs:focus,
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit:hover,
body:not(.locked).theme-light :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card.kpi-profit:focus{ z-index:40; }

/* Light CRM surfaces and accents across every section. */
body.theme-light:not(.locked) :is(.panel,.neon-panel,.dashboard-matrix-panel,.management-table-panel,.buyer-card,.development-card,.database-action-card,.docs-card,.generator-dictionary-card) { background:#fff;color:#34243f;border-color:#e1d6eb;box-shadow:0 4px 18px #40245505; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) { color:#34243f; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(article,.neon-offer-row,.neon-budget-row,.neon-action-row,.neon-launch-row) { background:#fff;border-color:#e5daed;color:#392645; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(h2,h3,b,strong) { color:#392645; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(small,p,.neon-label) { color:#8a7798; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(input,select,button) { background:#f4ebfb;border-color:#d9c4e8;color:#805199; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(table,thead,tbody,tr,th,td) { background:#fff;border-color:#e5daed;color:#634c72; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-donut > div { background:#fff; }
body.theme-light:not(.locked) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-card { background:linear-gradient(135deg,#fff,#faf7fd);border-color:#e1d6eb;color:#34243f; }
body.theme-light:not(.locked) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-title { color:#8a7798; }
body.theme-light:not(.locked) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-value { color:#34243f; }
body.theme-light:not(.locked) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-foot { color:#8a7798; }
body.theme-light:not(.locked) :is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis) .kpi-icon { color:#fff; }
body.theme-light:not(.locked) :is(.secondary-button,.compact-button,.row-actions button,.neon-action-button) { background:#f3eafb;color:#805199;border-color:#dbc7ea;box-shadow:none; }
body.theme-light:not(.locked) .table-personalize-toolbar button { background:#f3eafb;color:#805199;border-color:#dbc7ea;box-shadow:none; }
body.theme-light:not(.locked) .table-personalize-toolbar button:hover { background:#e9daf5;border-color:#b68acc;color:#70418a; }
body.theme-light:not(.locked) :is(.secondary-button,.compact-button,.row-actions button):hover { background:#e9daf5;border-color:#b68acc;color:#70418a; }
body.theme-light:not(.locked) :is(.detail-primary,.database-full-button.detail-primary) { background:linear-gradient(135deg,#9755ed,#7638d3);color:#fff;border-color:#8750cd; }
body.theme-light:not(.locked) :is(.danger-link,.danger-button) { background:#fff0f4;color:#b74e70;border-color:#edc3d1; }
body.theme-light:not(.locked) :is(#companiesView,#creativesView,#unityView) :is(#companyCount,#resetCompanyFilters,#resetCreativeFilters) { background:#f2e7fa;border-color:#d9c0e9;color:#84559f; }
body.theme-light:not(.locked) :is(#companiesView,#creativesView,#unityView) :is(#resetCompanyFilters,#resetCreativeFilters):hover { background:#e7d5f3;color:#70418a; }
body.theme-light:not(.locked) :is(#companiesView,#creativesView,#unityView) .company-kpi-icon { color:#fff; }
body.theme-light:not(.locked) :is(#buyersView,#developmentView,#calendarView,#pushView,#databaseView,#docsView) :is(input:not([type=checkbox]),select,textarea) { background-color:#fff;border-color:#ded0e9;color:#51345f; }
body.theme-light:not(.locked) :is(.view-switch,.employee-section-tabs,.calendar-mode-switch,.development-tabs) { background:#f7f1fb;border-color:#e1d6eb; }
body.theme-light:not(.locked) :is(.view-switch,.employee-section-tabs,.calendar-mode-switch,.development-tabs) button.active { background:#8950ce;color:#fff;box-shadow:none; }
body.theme-light:not(.locked) .install-cost-tooltip { background:#fff;color:#634b74;border-color:#dbc7ea;box-shadow:0 8px 28px #51306018; }

/* Softer light-theme contrast and lavender progress tracks. */
body.theme-light:not(.locked) { --light-ink:#625071;--light-muted:#9483a2;--ink:#625071;--muted:#9483a2;color:#625071; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-progress { background:#ede4f5;box-shadow:inset 0 0 0 1px #e4d7ef; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-progress i { background:linear-gradient(100deg,#b688e5,#9461cb); }
body.theme-light:not(.locked) :is(:is(:is(#kpiGrid,#unityKpiGrid),#influenceKpis),#employeeKpis,#designerKpis) .kpi-value { color:#685078; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(h2,h3,b,strong) { color:#6c537d; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(table,thead,tbody,tr,th,td) { color:#7b638d; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) :is(small,p,.neon-label) { color:#9683a6; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) .neon-donut b { color:#6b527c; }
body.theme-light:not(.locked) :is(.offer-progress-track,.offer-usage-track,.development-progress-track,.progress-track) { background:#ede4f5; }
body.theme-light:not(.locked) :is(.panel,.employee-card,.designer-column) :is(h2,h3) { color:#6c537d; }

/* Preserve profit/KPI meaning over the light palette. */
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td.neon-positive { color:#23875e;background:#f2faf5;font-weight:650; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td.neon-neutral { color:#b27b26;background:#fff9ed;font-weight:650; }
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td.neon-negative { color:#c25570;background:#fff3f6;font-weight:650; }

/* Profit status colors apply to numbers only. */
body.theme-light:not(.locked) :is(:is(#neonDashboard,#unityNeonDashboard),#influenceWorkspace) td:is(.neon-positive,.neon-neutral,.neon-negative) { background:inherit; }

/* Keep sidebar links inside their track, including long section names. */
@media(min-width:781px) {
 body:not(.locked) .sidebar .nav { grid-template-columns:minmax(0,1fr);min-width:0;width:100%;box-sizing:border-box;overflow-x:hidden;padding-right:0; }
 body:not(.locked) .sidebar .nav-item { box-sizing:border-box;width:100%;min-width:0;max-width:100%; }
 body:not(.locked) .sidebar .nav-item > span { white-space:normal;overflow-wrap:break-word;line-height:1.35; }
 body.theme-light:not(.locked) .sidebar .nav-item.active { background:#eadcf5;border-color:#d9beec;color:#774795;box-shadow:none; }
}

/* Offer overview and registry header in light theme. */
body.theme-light:not(.locked) #offersView .offer-actions-panel .offer-budget-toggle-icon { background:#efe3f8;color:#9365b4; }
body.theme-light:not(.locked) #offersView .offer-actions-panel #openOfferProgress .offer-budget-toggle-icon { background:#e9f0fc;color:#6a94cf; }
body.theme-light:not(.locked) #offersView .offer-actions-panel #toggleOfferBuyerBudgets .offer-budget-toggle-icon { background:#e6f4ee;color:#579f85; }
body.theme-light:not(.locked) #offersView .offer-actions-panel #addOfferButton .offer-budget-toggle-icon { background:linear-gradient(135deg,#b486e7,#925bcf);color:#fff; }
body.theme-light:not(.locked) #offersView :is(.offer-summary-card,.offer-actions-panel button) { border-color:#e4d9ef;background:linear-gradient(135deg,#fff,#fdfbff); }
body.theme-light:not(.locked) #offersView .offer-actions-panel button:hover { box-shadow:0 5px 16px #9461cb12;border-color:#c6a4de; }
body.theme-light:not(.locked) #offersView #offerKpis .kpi-value { color:#6a507b; }
body.theme-light:not(.locked) #offersView .management-table-panel > .panel-heading { gap:12px;margin-bottom:12px; }
body.theme-light:not(.locked) #offersView .offer-table-tools { padding:12px;border:1px solid #e6dcf0;background:#faf7fd;border-radius:10px; }
body.theme-light:not(.locked) #offersView .offer-table-tools > label { gap:6px; }
body.theme-light:not(.locked) #offersView .offer-table-tools label > span { margin:0;padding:0;color:#9480a4;line-height:1.4; }
body.theme-light:not(.locked) #offersView .offer-table-tools :is(input,select),body.theme-light:not(.locked) #offersView .offer-sort-direction,body.theme-light:not(.locked) #offersView #resetOfferFilters { height:34px;min-height:34px;box-sizing:border-box; }
body.theme-light:not(.locked) #offersView .offer-registry-table thead th { background:#faf7fd;border-bottom:1px solid #e3d6ed;color:#8f76a2; }
.team-transparency-control { display:flex;align-items:center;gap:12px;padding:14px 16px;margin:12px 0;border:1px solid #60427a;border-radius:10px;background:#a878d50c;cursor:pointer; }
.team-transparency-control[hidden] { display:none; }
.team-transparency-control input { width:18px;height:18px;accent-color:#9560d4; }
.team-transparency-control b { display:block;font-size:12px;color:#cca8e8; }
.team-transparency-control small { display:block;margin-top:4px;font-size:11px;color:#a897b9; }
body.theme-light .team-transparency-control { border-color:#dac3e9;background:#f8f2fc; }
body.theme-light .team-transparency-control b { color:#8956a9; }
body.theme-light .team-transparency-control small { color:#9480a1; }
.team-transparency-admin[hidden] { display:none; }
.team-transparency-admin { margin:14px 0; }
.team-transparency-admin h3 { margin:0;font-size:14px; }
.team-transparency-admin p { font-size:11px;color:var(--muted); }
.team-transparency-admin > div { display:flex;flex-wrap:wrap;gap:10px; }
.team-transparency-admin .team-transparency-control { margin:0;min-width:140px; }

/* Employee header: one aligned toolbar and a contained team-access panel. */
#employeesView .employee-section-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 14px; }
#employeesView .employee-section-toolbar .employee-section-tabs { margin:0;min-width:0; }
#employeesView .employee-section-toolbar .employee-page-actions { margin:0;flex-shrink:0; }
#employeesView .team-transparency-admin { padding:16px 18px;margin:0 0 16px;border:1px solid #453052;border-radius:12px;background:#17111f; }
#employeesView .team-transparency-admin h3 { font-size:13px;margin:0 0 5px; }
#employeesView .team-transparency-admin p { margin:0 0 12px;font-size:11px;line-height:1.5; }
#employeesView .team-transparency-admin > div { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px; }
#employeesView .team-transparency-admin .team-transparency-control { min-width:0;padding:10px 12px;border-radius:8px;gap:10px;background:#a878d508; }
#employeesView .team-transparency-admin .team-transparency-control b { font-size:11px; }
#employeesView .team-transparency-control input { margin:0;flex:0 0 16px;width:16px;height:16px;cursor:pointer; }
#employeesView .employee-directory { padding:18px; }
#employeesView .employee-toolbar { margin-bottom:16px;gap:12px;align-items:center; }
body.theme-light:not(.locked) #employeesView .team-transparency-admin { background:#fff;border-color:#e3d6ed; }
body.theme-light:not(.locked) #employeesView .team-transparency-admin .team-transparency-control { background:#faf7fd;border-color:#e4d6ef; }
#employeesView .team-transparency-control:has(input:checked) { border-color:#9d6ac7;background:#a878d518; }
@media(max-width:1100px) { #employeesView .employee-section-toolbar { flex-wrap:wrap; } #employeesView .team-transparency-admin > div { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { #employeesView .team-transparency-admin > div { grid-template-columns:repeat(2,minmax(0,1fr)); } #employeesView .employee-section-toolbar .employee-page-actions { width:100%; } }

/* Project overview: key results, activity, conversions and deposit breakdown. */
.project-overview {
  --project-surface: #fff;
  --project-soft: #f8f5fc;
  --project-line: #e7def1;
  --project-text: #544268;
  --project-muted: #9584a8;
  --project-positive: #168459;
  --project-positive-bg: #edf9f2;
  --project-warning: #b4781d;
  --project-warning-bg: #fff7e9;
  margin: 24px 0 18px;
}
.project-metric-primary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.project-metric { min-width: 0; }
.project-metric small { display: block; color: var(--project-muted); font-size: 11px; font-weight: 600; line-height: 1.5; }
.project-metric strong { display: block; margin-top: 8px; color: var(--project-text); font-size: 23px; font-weight: 750; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.project-metric span { display: block; margin-top: 8px; color: var(--project-muted); font-size: 10px; line-height: 1.5; }
.project-metric-primary > .project-metric { padding: 20px; border: 1px solid var(--project-line); border-radius: 14px; background: var(--project-surface); }
.project-metric-primary > .project-metric:first-child { background: var(--project-soft); }
.project-metric-primary .within-plan { background: var(--project-positive-bg); }
.project-metric-primary .within-plan strong { color: var(--project-positive); }
.project-metric-primary .above-plan { background: var(--project-warning-bg); }
.project-metric-primary .above-plan strong { color: var(--project-warning); }
.project-metric-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.project-metric-group { padding: 20px; border: 1px solid var(--project-line); border-radius: 14px; background: var(--project-surface); }
.project-metric-group h3 { margin: 0 0 18px; color: var(--project-text); font-size: 13px; font-weight: 700; }
.project-metric-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
.project-metric-group .project-metric strong { margin-top: 5px; font-size: 18px; }
.project-metric-group .project-metric span { margin-top: 4px; }
body:not(.locked):not(.theme-light) .project-overview {
  --project-surface: #181925;
  --project-soft: #252036;
  --project-line: #343044;
  --project-text: #f0edf7;
  --project-muted: #aaa0be;
  --project-positive: #7bddae;
  --project-positive-bg: #1a3029;
  --project-warning: #f0bf76;
  --project-warning-bg: #33291e;
}
@media (max-width: 1100px) {
  .project-metric-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-metric-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .project-metric-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .project-metric-primary > .project-metric { padding: 16px; }
  .project-metric strong { font-size: 20px; }
  .project-metric-groups { grid-template-columns: 1fr; }
}

.detail-kpis.project-overview { display: block; }
.project-overview .project-metric-group .detail-kpi.project-metric { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.project-overview .project-metric-primary > .detail-kpi.project-metric { padding: 20px; border: 1px solid var(--project-line); border-radius: 14px; background: var(--project-surface); }
.project-overview .project-metric-primary > .detail-kpi.project-metric:first-child { background: var(--project-soft); }
.project-overview .detail-kpi.metric-positive strong { color: var(--project-positive); }
.project-overview .detail-kpi.metric-negative strong { color: var(--red); }
.project-metric-primary:has(> :nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-metric-groups:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .project-metric-primary:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .project-metric-primary:has(> :nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-metric-groups:has(> :nth-child(4)) { grid-template-columns: 1fr; } }
.project-overview .project-metric-primary > .detail-kpi.project-metric.within-plan { background: var(--project-positive-bg); }
.project-overview .project-metric-primary > .detail-kpi.project-metric.above-plan { background: var(--project-warning-bg); }
.project-overview .project-metric-primary > .detail-kpi.project-metric.within-plan strong { color: var(--project-positive); }
.project-overview .project-metric-primary > .detail-kpi.project-metric.above-plan strong { color: var(--project-warning); }

/* Latest launches: light controls and table header follow the light palette. */
body.theme-light :is(#neonLaunchRows,#unityLaunchRows) th { background: #f6f0fb; color: #89749f; border-bottom-color: #e5d9ef; }
body.theme-light :is(#neonLaunchRows,#unityLaunchRows) td { border-bottom-color: #eee6f5; }
body.theme-light :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date input { border: 1px solid #dfd1eb; background: #fbf8fe; color: #665078; box-shadow: none; }
body.theme-light :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date-controls button { border-color: #dfd1eb; background: #f5eefb; color: #8660a2; }
body.theme-light :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date-controls button:hover { background: #ece0f6; border-color: #c9b2df; filter: none; }
body.theme-light :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date-controls :is(button,input):focus-visible { outline: 2px solid #a781d1; outline-offset: 3px; }

/* Analytics status and confirmation popover in the light theme. */
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) summary { padding: 6px 10px; border: 1px solid #e3d7ef; background: #f7f2fc; color: #705783; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus):is([open], :hover) summary { border-color: #cdb5e1; background: #eee3f7; color: #604372; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) summary:focus-visible { outline: 2px solid #a781d1; outline-offset: 3px; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { top: calc(100% + 8px); margin: 0; padding: 20px; border: 1px solid #e1d3ed; background: #fff; color: #5e476f; box-shadow: 0 12px 36px rgba(76, 48, 98, .16); height: auto; min-height: 0; align-items: stretch; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-main { align-items: flex-start; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-main > div { display: grid; gap: 7px; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-main strong { color: #5e476f; font-size: 13px; line-height: 1.5; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-main span { color: #897397; font-size: 12px; line-height: 1.5; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-main > div > span:last-child { display: block; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-side { align-items: flex-end; gap: 10px; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-side strong { color: #79618b; font-size: 11px; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-side > span { display: block; color: #9786a3; font-size: 10px; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-action { min-height: 36px; padding: 9px 14px; border: 1px solid #eacb85; background: #fff1cb; color: #865c12; box-shadow: none; font-size: 11px; line-height: 1.4; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-action:not(:disabled):hover { border-color: #dcac49; background: #ffe8aa; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-action.cancel { border-color: #ebc7d0; background: #fff1f4; color: #a85269; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-action:disabled { cursor: default; border-color: #e5ddec; background: #f6f2fa; color: #998aa5; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus)[data-tone="fresh"] .analytics-status-dot { background: #20a779; }
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus)[data-tone="stale"] .analytics-status-dot { background: #d16b70; }
@media (max-width: 780px) {
  body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) { width: min(640px, calc(100vw - 32px)); padding: 16px; }
  body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) :is(:is(#freshnessBanner,#unityFreshnessBanner),#influenceFreshnessBanner) .freshness-side { align-items: flex-start; text-align: left; }
}

body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus) summary,
body.theme-light :is(:is(#analyticsStatus,#unityAnalyticsStatus),#influenceAnalyticsStatus):is([open], :hover) summary { border: 0; background: transparent; box-shadow: none; }

/* Image flags also render on Windows, independently of emoji fonts. */
.geo-flag-image { display:inline-block; width:24px; height:18px; max-width:none; object-fit:cover; vertical-align:middle; border-radius:2px; }
.neon-geo-flag .geo-flag-image { width:20px; height:15px; }

.creative-group-toggle { display:flex; align-items:center; gap:8px; margin-top:14px; font-size:14px; cursor:pointer; }
.creative-group-toggle input { width:17px; height:17px; accent-color:#8b5cf6; margin:0; }

.creative-group-options { display:flex; flex-wrap:wrap; column-gap:24px; }

.creative-hide-type [data-custom-column="column-2"], .creative-hide-type tbody td:nth-child(3):not([data-custom-column]) { display:none !important; }

.media-access-toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:16px 0; }
.media-access-toolbar[hidden] { display:none; }
.media-select-access { display:flex; gap:6px; align-items:center; font-size:13px; }
.media-select-access input, .media-access-employees input { accent-color:#8b5cf6; width:17px; height:17px; }
.media-access-dialog { width:min(640px,calc(100vw - 32px)); max-height:85dvh; overflow:auto; overscroll-behavior:contain; padding:28px; }
.media-access-dialog h2 { padding-right:24px; }
.media-access-dialog > .search { width:100%; }
.media-access-employees { display:grid; gap:8px; max-height:40dvh; overflow:auto; margin:16px 0; }
.media-access-employees label { display:flex; align-items:center; gap:10px; border:1px solid var(--border,#ddd); padding:12px; border-radius:10px; cursor:pointer; }
.media-access-employees small { display:block; margin-top:4px; opacity:.75; }
.media-access-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
html:has(#mediaAccessDialog[open]), body:has(#mediaAccessDialog[open]) { overflow:hidden; }

body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-access { background:#4c267b; color:#f2e8ff; border:1px solid #9663cf; box-shadow:none; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-access { background:#8b5cf6; color:#fff; border-color:#7c3aed; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-access:hover { background:#7c3aed; color:#fff; border-color:#6d28d9; }

.media-name-link.media-preview-selected { background:rgba(139,92,246,.18); color:#b995ff; outline:2px solid #8b5cf6; outline-offset:4px; border-radius:5px; }
body.theme-light .media-name-link.media-preview-selected { background:#ede2ff; color:#6d28d9; }
.media-hover-preview.pinned { outline:2px solid #8b5cf6; outline-offset:2px; }

.design-task-chat { margin-top:24px; padding-top:22px; border-top:1px solid #8b5cf644; }
.design-task-chat[hidden] { display:none; }
.design-chat-heading h3 { margin:0 0 6px; }
.design-chat-heading small { opacity:.7; }
.design-chat-messages { display:flex; flex-direction:column; gap:10px; max-height:340px; overflow:auto; overscroll-behavior:contain; margin:16px 0; padding:4px; }
.design-chat-message { align-self:flex-start; max-width:90%; padding:12px 14px; border:1px solid #8b5cf633; background:#8b5cf610; border-radius:12px; overflow-wrap:anywhere; }
.design-chat-message.own { align-self:flex-end; background:#8b5cf626; }
.design-chat-message header { display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:12px; }
.design-chat-message time { opacity:.65; }
.design-chat-message p { white-space:pre-wrap; margin:8px 0 0; line-height:1.5; }
.design-chat-form { display:flex; align-items:flex-end; gap:10px; }
.design-chat-form textarea { flex:1; min-width:0; width:100%; resize:vertical; }
.design-chat-form button { flex-shrink:0; }
.design-chat-card-mark { font-size:12px; color:#8b5cf6; font-weight:700; }
.design-chat-unread-badge { margin-left:auto; background:#8b5cf6; color:white; border-radius:12px; padding:2px 7px; font-size:11px; }
.design-chat-unread-badge[hidden] { display:none; }
.design-chat-notice { position:fixed; right:20px; bottom:20px; z-index:1100; display:flex; width:min(400px,calc(100vw - 40px)); background:#241832; color:#fff; border:1px solid #8b5cf6; box-shadow:0 12px 36px #0003; border-radius:14px; padding:12px; }
.design-chat-notice button { background:transparent; color:inherit; border:0; text-align:left; padding:4px; cursor:pointer; }
.design-chat-notice button:first-child { flex:1; min-width:0; }
.design-chat-notice b,.design-chat-notice span { display:block; overflow-wrap:anywhere; }
.design-chat-notice span { margin-top:8px; opacity:.85; font-size:13px; }
body.theme-light .design-chat-notice { background:#faf6ff; color:#513d68; }
@media(max-width:520px) { .design-chat-form { flex-direction:column; align-items:stretch; } .design-chat-message { max-width:100%; } }

.design-chat-card-mark { display:inline-flex; align-items:center; align-self:flex-start; width:fit-content; padding:4px 9px; border-radius:8px; border:1px solid #7954aa66; background:#332344; color:#d0b9ef; font-size:12px; font-weight:600; }
body.theme-light .design-chat-card-mark { background:#f0e7fa; border-color:#ddc9ef; color:#76518d; }

#designTaskDialog[open].has-chat { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,420px); width:min(1500px,calc(100vw - 32px)); max-width:1500px; height:min(900px,calc(100dvh - 32px)); padding:0; overflow:hidden; }
#designTaskDialog.has-chat > #designTaskForm { min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; padding:28px; }
#designTaskDialog.has-chat > #designTaskForm > .form-actions { position:static; }
#designTaskDialog.has-chat > .design-task-chat { display:flex; flex-direction:column; margin:0; padding:24px 20px 20px; min-width:0; min-height:0; border-top:0; border-left:1px solid #8b5cf633; background:#8b5cf607; }
#designTaskDialog.has-chat .dialog-close { top:12px; right:12px; width:36px; height:36px; z-index:3; font-size:24px; }
#designTaskDialog.has-chat .design-chat-heading { padding-right:38px; flex-shrink:0; padding-bottom:14px; border-bottom:1px solid #8b5cf622; }
#designTaskDialog.has-chat .design-chat-messages { flex:1; min-height:0; max-height:none; padding:12px 2px; margin:0; }
#designTaskDialog.has-chat .design-chat-form { display:block; flex-shrink:0; padding-top:12px; border-top:1px solid #8b5cf622; }
.design-chat-composer { display:flex; align-items:flex-end; gap:8px; }
#designTaskDialog .design-chat-composer textarea { min-height:64px; max-height:150px; overflow:auto; resize:none; font-family:inherit; }
.design-chat-attach { flex-shrink:0; width:36px; height:40px; display:grid; place-items:center; border:0; border-radius:9px; background:#8b5cf615; color:#9c77cf; cursor:pointer; }
.design-chat-attach svg { width:22px; height:22px; }
.design-chat-composer > .detail-primary { padding:10px 12px; min-width:0; }
.design-chat-pending:empty, #designChatError:empty { display:none; }
.design-chat-pending > div { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 9px; margin-bottom:7px; border:1px solid #8b5cf633; border-radius:9px; font-size:12px; }
.design-chat-pending span { min-width:0; overflow-wrap:anywhere; }
.design-chat-pending small { opacity:.65; }
.design-chat-pending button { background:none; border:0; color:inherit; font-size:20px; cursor:pointer; }
.design-chat-file { margin-top:10px; min-width:0; }
.design-chat-file img, .design-chat-file video { display:block; width:100%; max-height:260px; object-fit:contain; border-radius:8px; background:#00000009; }
.design-chat-file audio { width:100%; max-width:100%; }
.design-chat-file-download { display:block; margin-top:7px; color:inherit; text-decoration:none; }
.design-chat-file-download span,.design-chat-file-download small { display:block; overflow-wrap:anywhere; }
.design-chat-file-download small { margin-top:3px; opacity:.65; font-size:11px; }
.design-chat-message { max-width:94%; }
@media(max-width:1000px) { #designTaskDialog[open].has-chat { display:block; height:auto; overflow:auto; } #designTaskDialog.has-chat > #designTaskForm { overflow:visible; padding:24px; } #designTaskDialog.has-chat > .design-task-chat { border-left:0; border-top:1px solid #8b5cf633; height:550px; max-height:75dvh; min-height:360px; padding:20px; } }
@media(max-width:520px) { .design-chat-composer { flex-wrap:wrap; } .design-chat-composer textarea { flex:1; width:calc(100% - 50px); } .design-chat-composer > .detail-primary { margin-left:auto; } #designTaskDialog.has-chat > #designTaskForm { padding:22px 18px; } }

/* Keep the task chat composer aligned in one compact row. */
#designTaskDialog .design-chat-composer { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:10px; }
#designTaskDialog .design-chat-composer textarea { width:100%; min-width:0; height:44px; min-height:44px; max-height:120px; box-sizing:border-box; padding:11px 12px; margin:0; line-height:20px; border-radius:10px; }
#designTaskDialog .design-chat-attach { width:40px; height:44px; margin:0; padding:0; border-radius:10px; }
#designTaskDialog .design-chat-composer > .detail-primary { display:flex; align-items:center; justify-content:center; height:44px; min-height:44px; margin:0; padding:0 14px; border-radius:10px; line-height:20px; }
@media(max-width:520px) { #designTaskDialog .design-chat-composer { grid-template-columns:36px minmax(0,1fr) auto; gap:7px; } #designTaskDialog .design-chat-attach { width:36px; } #designTaskDialog .design-chat-composer > .detail-primary { padding:0 10px; font-size:12px; } }


/* Influence uses Facebook dashboard components; only its content differs. */
#influenceDashboardContent [hidden] { display:none!important; }
#influenceDashboardFilters label > span { position:static;display:block; }
#influenceDashboardFilters label { display:block; }
#influenceWorkspace .influence-data-note { margin:8px 0 0;font-size:9px;line-height:1.5;color:var(--muted); }
#influenceWorkspace .influence-empty { margin:12px 0;font-size:10px;color:var(--muted); }
#influenceWorkspace .view-button { display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:70px;height:30px; }
#influenceWorkspace .influence-positive { color:#25df92; }
#influenceWorkspace .influence-warning { color:#e5ad42; }
#influenceWorkspace td small { display:block;margin-top:3px;font-size:9px;color:var(--muted); }
#influenceWorkspace .influence-geo-label { display:inline-flex;align-items:center;gap:7px; }
#influenceWorkspace .neon-table-scroll { scrollbar-width:none; }
#influenceWorkspace .neon-table-scroll::-webkit-scrollbar { display:none; }
#influenceWorkspace .neon-launches header { margin:0; }
#influenceWorkspace .influence-geo-summary { display:flex;align-items:center;gap:14px;min-height:150px; }
#influenceWorkspace .influence-donut { width:130px;height:130px;border-radius:50%;padding:17px;flex:none; }
#influenceWorkspace .influence-donut > div { display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%;border-radius:50%;background:var(--panel); }
#influenceWorkspace .influence-donut b { font-size:16px; }
#influenceWorkspace .influence-donut small { font-size:9px;margin-top:4px;color:var(--muted); }
#influenceWorkspace .influence-geo-legend { flex:1;min-width:0; }
#influenceWorkspace .influence-geo-legend > div { display:grid;grid-template-columns:7px 28px minmax(0,1fr) auto;gap:6px;align-items:center;margin:12px 0;font-size:10px; }
#influenceWorkspace .influence-geo-legend i { width:7px;height:7px;border-radius:50%; }
#influenceWorkspace .influence-geo-legend b { font-weight:500;text-align:right; }
#influenceWorkspace .influence-geo-legend small { font-size:9px;color:var(--muted); }

#influenceWorkspace tfoot td,#influenceWorkspace tfoot th { font-weight:700; }
.influence-result-dialog { width:min(620px,calc(100vw - 30px));padding:30px; }
.influence-payment-brief { display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px; }
@media(max-width:780px) { #influenceWorkspace .influence-geo-summary { flex-wrap:wrap; } }
/* Child countries belong to the preceding influencer total. */
#influenceWorkspace .influence-country-child td { color:var(--muted);font-size:10px;background:#8d61b508; }
#influenceWorkspace .influence-country-child td:first-child { padding-left:20px;border-left:2px solid #8653bf55; }
#influenceWorkspace .influence-country-indent { display:inline-block;padding-left:12px;color:var(--muted); }
#influenceWorkspace .influence-blogger-summary td { font-weight:550; }

/* Search workspace, scoped independently of the blogger CRM. */
#influenceSearchContent { --search-accent:#8c50df;--search-soft:#8c50df12;--search-border:#8c50df28;display:grid;gap:16px; }
#influenceSearchContent[hidden] { display:none; }
#influenceSearchContent > .panel { margin:0;border-radius:14px; }
#influenceSearchContent .influence-search-head { padding:24px 26px;border:1px solid var(--search-border);background:linear-gradient(115deg,var(--panel) 60%,var(--search-soft)); }
#influenceSearchContent .influence-search-head .eyebrow { color:var(--search-accent);font-size:9px;letter-spacing:.14em; }
#influenceSearchContent .influence-search-head h1 { font-size:25px;letter-spacing:-.035em;margin:7px 0; }
#influenceSearchContent .influence-search-head .subtitle { font-size:11px;line-height:1.6; }
#influenceSearchContent .influence-add-person { border-color:#8c50df;background:linear-gradient(120deg,#985ce9,#793ac7);box-shadow:0 5px 14px #793ac71c;min-width:180px;height:42px;border-radius:9px; }
#influenceSearchContent .influence-add-person small { color:#fff;background:#ffffff24; }
#influenceSearchContent .influence-add-geo { min-width:125px;height:42px;border:1px solid var(--search-border);box-shadow:none;background:var(--panel);color:var(--ink);border-radius:9px; }
#influenceSearchContent .influence-add-geo > span { background:var(--search-soft);color:var(--search-accent); }
#influenceSearchContent .influence-geo-tabs { gap:8px;align-items:center;padding:4px 0 5px;scrollbar-width:thin; }
#influenceSearchContent .influence-geo-tabs button { display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 13px;min-height:42px;border:1px solid var(--search-border);background:var(--panel);border-radius:9px;box-shadow:none;font-size:12px; }
#influenceSearchContent .influence-geo-tabs button img { width:22px;height:16px;border-radius:3px;object-fit:cover; }
#influenceSearchContent .influence-geo-tabs button small { padding:2px 6px;min-width:20px;border-radius:5px;background:var(--search-soft);font-size:9px;font-weight:650; }
#influenceSearchContent .influence-geo-tabs button.active { background:var(--search-accent);border-color:var(--search-accent);color:#fff;box-shadow:0 4px 12px #793ac71c; }
#influenceSearchContent .influence-geo-tabs button.active small { color:#fff;background:#ffffff25; }
#influenceSearchContent .influence-geo-tabs .influence-manage-geo { margin-left:auto;font-size:10px;font-weight:600;color:var(--muted);background:transparent;border-style:dashed;flex:none; }
#influenceSearchContent .influence-search-filters { padding:18px 20px;border:1px solid var(--search-border);gap:12px; }
#influenceSearchContent .influence-search-filters label > span { font-size:9px;font-weight:650;letter-spacing:.05em; }
#influenceSearchContent .influence-search-filters :is(input,select) { height:42px;font-size:11px;font-weight:500;border:1px solid var(--search-border);background:var(--search-soft);padding:0 12px;border-radius:8px; }
#influenceSearchContent .influence-search-filters :is(input,select):focus { border-color:var(--search-accent);box-shadow:0 0 0 3px #8c50df12; }
#influenceSearchContent .influence-search-filters .reset-filters { background:transparent;color:var(--muted);border:1px solid var(--search-border);font-size:10px;box-shadow:none; }
#influenceSearchContent .influence-search-table { padding:20px;border:1px solid var(--search-border); }
#influenceSearchContent .influence-search-table .panel-heading { margin-bottom:16px; }
#influenceSearchContent .influence-search-table .eyebrow { font-size:8px;letter-spacing:.14em; }
#influenceSearchContent .influence-search-table h2 { font-size:16px;margin-top:5px; }
#influenceSearchContent #influenceSearchCount { padding:6px 10px;border:1px solid var(--search-border);border-radius:6px;font-size:10px;background:var(--search-soft); }
#influenceSearchContent .influence-search-table th { padding:12px 10px;background:var(--search-soft);border:0;border-bottom:1px solid var(--search-border);font-size:8px;letter-spacing:.05em;color:var(--muted); }
#influenceSearchContent .influence-search-table td { padding:14px 10px;border:0;border-bottom:1px solid var(--search-border);font-size:11px;background:transparent; }
#influenceSearchContent .influence-search-table tbody tr:hover { background:var(--search-soft); }
body:not(.locked) #influenceSearchContent .influence-search-table tbody tr:hover > td,
body:not(.locked) #influenceSearchContent .influence-search-table tbody tr:hover > td:hover { position:static;z-index:auto;box-shadow:none;outline:none;transform:none;background:#242033;border-color:var(--search-border); }
body.theme-light:not(.locked) #influenceSearchContent .influence-search-table tbody tr:hover > td,
body.theme-light:not(.locked) #influenceSearchContent .influence-search-table tbody tr:hover > td:hover { background:#f5effc; }
body:not(.locked) #influenceSearchContent .influence-search-table tbody tr:hover > td.influence-link-cell,
body:not(.locked) #influenceSearchContent .influence-search-table tbody tr:hover > td.influence-link-cell:hover { position:relative; }
#influenceSearchContent .influence-search-table td.influence-search-empty { white-space:normal;padding:50px 24px;border-bottom:0;text-align:center; }
#influenceSearchContent .influence-search-empty > div { max-width:360px;margin:0 auto; }
#influenceSearchContent .influence-empty-icon { display:grid;place-items:center;width:56px;height:56px;margin:0 auto 16px;background:var(--search-soft);border:1px solid var(--search-border);border-radius:16px;color:var(--search-accent); }
#influenceSearchContent .influence-empty-icon svg { width:26px;height:26px; }
#influenceSearchContent .influence-search-empty h3 { font-size:14px;font-weight:650;margin:0 0 8px; }
#influenceSearchContent .influence-search-empty p { margin:0;color:var(--muted);font-size:11px;line-height:1.7; }
#influenceSearchContent .influence-empty-action { margin-top:18px;padding:10px 16px;border:1px solid var(--search-border);border-radius:8px;background:var(--search-soft);color:var(--search-accent);font-size:11px;cursor:pointer; }
#influenceSearchContent button:focus-visible { outline:2px solid var(--search-accent);outline-offset:3px; }
@media(max-width:900px) { #influenceSearchContent .influence-search-head { align-items:flex-start;flex-direction:column;gap:16px;padding:20px; } #influenceSearchContent .influence-search-actions { flex-wrap:wrap;justify-content:flex-start; } }
@media(max-width:520px) { #influenceSearchContent .influence-search-head h1 { font-size:22px; } #influenceSearchContent .influence-search-filters { grid-template-columns:minmax(0,1fr);padding:16px; } #influenceSearchContent .influence-search-table { padding:14px; } #influenceSearchContent .influence-geo-tabs .influence-manage-geo { margin-left:0; } }
#influenceSearchContent .influence-geo-tabs button.active b { color:#fff; }

/* A single aligned country navigation instead of separate floating chips. */
#influenceSearchContent .influence-geo-tabs { display:flex;align-items:center;gap:4px;width:100%;padding:7px;border:1px solid var(--search-border);border-radius:12px;background:var(--panel);overflow-x:auto;scrollbar-width:thin; }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo] { display:grid;grid-template-columns:22px 25px 23px;align-items:center;justify-content:center;gap:8px;flex:0 0 114px;width:114px;min-width:114px;height:42px;min-height:42px;margin:0;padding:0 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);box-shadow:none;line-height:1; }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo] b { color:inherit;text-align:left;font-size:12px;font-weight:650; }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo] img { display:block;width:22px;height:16px;object-fit:cover;border-radius:2px;margin:0; }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo] small { display:grid;place-items:center;width:23px;min-width:23px;height:20px;padding:0;border-radius:5px;font-size:9px;font-weight:600;color:var(--muted);background:var(--search-soft); }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo]:hover { background:var(--search-soft); }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo].active { color:var(--search-accent);border-color:var(--search-border);background:var(--search-soft);box-shadow:inset 0 -2px 0 var(--search-accent); }
#influenceSearchContent .influence-geo-tabs button[data-influence-geo].active b,#influenceSearchContent .influence-geo-tabs button[data-influence-geo].active small { color:var(--search-accent); }
#influenceSearchContent .influence-geo-tabs .influence-manage-geo { display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:118px;height:30px;min-height:30px;margin:0 0 0 8px;padding:0 12px;border:0;border-left:1px solid var(--search-border);border-radius:0;background:transparent;font-size:10px;font-weight:500;color:var(--muted);box-shadow:none; }
@media(max-width:700px) { #influenceSearchContent .influence-geo-tabs button[data-influence-geo] { flex-basis:104px;width:104px;min-width:104px;gap:5px; } }

/* Influ source: a readable workspace for placements and agreed terms. */
#influenceCrmContent { --crm-accent:#9256d9;--crm-soft:#9256d90d;--crm-line:#9256d927;display:grid;gap:16px; }
#influenceCrmContent[hidden] { display:none; }
#influenceCrmContent > .panel { margin:0;border:1px solid var(--crm-line);border-radius:13px;box-shadow:none; }
#influenceCrmContent .influence-crm-head { padding:24px;background:linear-gradient(110deg,var(--panel) 65%,var(--crm-soft)); }
#influenceCrmContent .influence-crm-head .eyebrow { color:var(--crm-accent);font-size:9px;letter-spacing:.13em; }
#influenceCrmContent .influence-crm-head h1 { font-size:25px;margin:7px 0;letter-spacing:-.03em; }
#influenceCrmContent .influence-crm-head .subtitle { font-size:11px;line-height:1.6; }
#influenceCrmContent .influence-add-person { background:linear-gradient(120deg,#985ce9,#793ac7);border-color:#8c50df;box-shadow:0 5px 14px #793ac71c;min-width:180px;height:42px; }
#influenceCrmContent .influence-payment-kpis { gap:12px; }
#influenceCrmContent .influence-payment-kpis article { min-height:98px;padding:17px 20px;border:1px solid var(--crm-line);border-radius:11px;background:var(--panel);box-shadow:none;position:relative;overflow:hidden; }
#influenceCrmContent .influence-payment-kpis article:before { content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;background:#a277dc;border-radius:0 3px 3px 0; }
#influenceCrmContent .influence-payment-kpis article:nth-child(2):before { background:#20b57d; }
#influenceCrmContent .influence-payment-kpis article:nth-child(3):before { background:#e5b346; }
#influenceCrmContent .influence-payment-kpis article:nth-child(4):before { background:#dd7b90; }
#influenceCrmContent .influence-payment-kpis strong { margin:8px 0 5px;font-size:26px; }
#influenceCrmContent .influence-crm-filters { padding:17px 20px;grid-template-columns:minmax(220px,1.8fr) repeat(5,minmax(115px,1fr)) auto;gap:12px;background:var(--panel); }
#influenceCrmContent .influence-crm-filters label { font-size:8px;font-weight:650;gap:7px;min-width:0;color:var(--muted); }
#influenceCrmContent .influence-crm-filters :is(input,select) { height:40px;min-height:40px;border:1px solid var(--crm-line);border-radius:8px;box-shadow:none;background:var(--crm-soft);color:var(--ink);font-size:10px;font-weight:500; }
#influenceCrmContent .influence-crm-filters .reset-filters { min-height:40px;height:40px;border:1px solid var(--crm-line);border-radius:8px;background:transparent;color:var(--muted);font-size:10px;padding:0 12px; }
#influenceCrmContent .influence-crm-table { padding:20px; }
#influenceCrmContent .influence-crm-table h2 { font-size:16px; }
#influenceCrmContent #influenceCrmCount { padding:6px 10px;border:1px solid var(--crm-line);border-radius:6px;font-size:10px;background:var(--crm-soft); }
#influenceCrmContent .influence-crm-table table { min-width:1050px;width:100%;table-layout:auto;border-collapse:collapse; }
#influenceCrmContent .influence-crm-table th { padding:12px 10px;font-size:8px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);background:var(--crm-soft);border:0;border-bottom:1px solid var(--crm-line);white-space:nowrap; }
#influenceCrmContent .influence-crm-table td { padding:15px 10px;max-width:230px;border:0;border-bottom:1px solid var(--crm-line);font-size:11px;background:transparent;vertical-align:middle; }
#influenceCrmContent .influence-crm-table tbody tr:hover { background:var(--crm-soft); }
#influenceCrmContent .influence-crm-table td small { display:block;margin-top:5px;font-size:9px;color:var(--muted);line-height:1.5;font-weight:450; }
#influenceCrmContent .crm-profile { display:flex;align-items:center;gap:10px; }
#influenceCrmContent .crm-profile > i { display:grid;place-items:center;width:32px;height:32px;flex:none;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-soft);color:var(--crm-accent);font-style:normal;font-weight:700; }
#influenceCrmContent .crm-profile a { text-decoration:none;color:var(--ink); }
#influenceCrmContent .influence-geo-label { display:inline-flex;align-items:center;gap:6px; }
#influenceCrmContent .crm-price > b { font-size:13px;color:var(--crm-accent); }
#influenceCrmContent .crm-stats-link { display:inline-block;font-size:9px;color:var(--crm-accent);margin-top:4px;text-decoration:none; }
#influenceCrmContent .crm-notes span { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.6;font-size:10px;max-width:210px;color:var(--muted); }
#influenceCrmContent .influence-edit-person { color:var(--crm-accent);border-color:var(--crm-line);background:var(--crm-soft);font-size:10px; }
#influenceCrmContent .crm-no-results { text-align:center;padding:40px!important;color:var(--muted); }
@media(max-width:1250px) { #influenceCrmContent .influence-crm-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { #influenceCrmContent .influence-crm-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } #influenceCrmContent .influence-crm-filters label:first-child { grid-column:1/-1; } #influenceCrmContent .influence-crm-head { padding:18px; } #influenceCrmContent .influence-crm-head .top-actions { flex-wrap:wrap; } }

/* Spreadsheet parity: one source field per column, in original Influ order. */
#influenceCrmContent .influence-crm-head { padding:20px 24px;background:var(--panel); }
#influenceCrmContent .influence-crm-head h1 { font-size:23px; }
#influenceCrmContent .influence-payment-kpis article { min-height:82px;padding:14px 18px;background:var(--panel); }
#influenceCrmContent .influence-payment-kpis strong { font-size:24px;margin:5px 0 3px; }
#influenceCrmContent .influence-crm-filters { background:var(--panel);padding:15px 18px; }
#influenceCrmContent .influence-crm-filters :is(input,select) { background:var(--panel); }
#influenceCrmContent .influence-crm-table { padding:18px 0 0;overflow:hidden; }
#influenceCrmContent .influence-crm-table > .panel-heading { padding:0 20px;margin-bottom:15px; }
#influenceCrmContent .crm-sheet-hint { color:var(--muted);font-size:9px;font-weight:450;margin:7px 0 0; }
#influenceCrmContent .influence-crm-table .table-wrap { max-height:65vh;min-height:240px;overflow:auto;position:relative;border:0;border-top:1px solid var(--crm-line);border-radius:0;scrollbar-width:thin;scrollbar-color:#aa85d055 transparent; }
#influenceCrmContent .influence-crm-table table { width:2950px;min-width:2950px;table-layout:fixed;margin:0; }
#influenceCrmContent .influence-crm-table th { position:sticky;top:0;z-index:3;box-sizing:border-box;height:48px;padding:10px 13px;border:0;border-right:1px solid var(--crm-line);border-bottom:1px solid var(--crm-line);background:#f6f2fb;color:#81728f;font-size:9px;font-weight:650;letter-spacing:.035em;white-space:normal;line-height:1.5; }
#influenceCrmContent .influence-crm-table td { height:49px;box-sizing:border-box;padding:10px 13px;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;border-right:1px solid #9256d910;border-bottom:1px solid #9256d919;background:#fff;font-size:11px;font-weight:450; }
#influenceCrmContent .influence-crm-table tbody tr:nth-child(even) td { background:#fcfaff; }
#influenceCrmContent .influence-crm-table tbody tr:hover td { background:#f3ecfc; }
#influenceCrmContent .influence-crm-table .crm-sheet-name { font-weight:650;color:var(--ink); }
#influenceCrmContent .influence-crm-table .crm-sheet-number { text-align:right;font-variant-numeric:tabular-nums; }
#influenceCrmContent .influence-crm-table .crm-sheet-final { font-weight:650;color:var(--crm-accent); }
#influenceCrmContent .influence-crm-table .crm-sheet-link a { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--crm-accent);font-size:10px;text-decoration:none; }
#influenceCrmContent .influence-crm-table .crm-sheet-link a:hover { text-decoration:underline; }
#influenceCrmContent .influence-crm-table .crm-sheet-note { color:var(--muted);font-size:10px; }
#influenceCrmContent .influence-crm-table th:last-child,#influenceCrmContent .influence-crm-table td:last-child { position:sticky;right:0;text-align:center;box-shadow:-3px 0 8px #38204e07;border-left:1px solid var(--crm-line); }
#influenceCrmContent .influence-crm-table th:last-child { z-index:4; }
#influenceCrmContent .influence-crm-table .influence-edit-person { display:grid;place-items:center;width:28px;height:28px;padding:0;margin:0 auto;border:1px solid var(--crm-line);border-radius:7px;background:var(--crm-soft);color:var(--crm-accent);font-size:15px; }
#influenceCrmContent .influence-crm-pagination { margin:0;padding:12px 20px; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table th { background:#1a1723;color:#afa1c2; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table td { background:#12121c;border-right-color:#8c67b718;border-bottom-color:#8c67b725; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:nth-child(even) td { background:#15131e; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:hover td { background:#211b2e; }
@media(min-width:1101px) {
#influenceCrmContent .influence-crm-table th:nth-child(1),#influenceCrmContent .influence-crm-table td:nth-child(1) { position:sticky;left:0;z-index:2; }
#influenceCrmContent .influence-crm-table th:nth-child(2),#influenceCrmContent .influence-crm-table td:nth-child(2) { position:sticky;left:105px;z-index:2; }
#influenceCrmContent .influence-crm-table th:nth-child(3),#influenceCrmContent .influence-crm-table td:nth-child(3) { position:sticky;left:215px;z-index:2; }
#influenceCrmContent .influence-crm-table th:nth-child(4),#influenceCrmContent .influence-crm-table td:nth-child(4) { position:sticky;left:325px;z-index:2;box-shadow:3px 0 8px #38204e08; }
#influenceCrmContent .influence-crm-table thead th:nth-child(-n+4) { z-index:5; }
}

/* Dashboard-style summary cards and a continuous spreadsheet grid. */
#influenceCrmContent #influenceCrmKpis .crm-overview-card { display:flex;align-items:center;gap:15px;min-height:96px;padding:18px 20px;background:var(--panel); }
#influenceCrmContent #influenceCrmKpis .crm-overview-card:before { display:none; }
#influenceCrmContent #influenceCrmKpis .crm-overview-icon { display:grid;place-items:center;width:46px;height:48px;flex:none;border:1px solid #ffffff35;border-radius:12px;color:#fff;box-shadow:inset 0 1px 2px #ffffff55,0 5px 12px #4c246716; }
#influenceCrmContent .crm-overview-icon svg { width:26px;height:26px; }
#influenceCrmContent .crm-overview-0 { background:linear-gradient(135deg,#b270ff,#7738eb); }
#influenceCrmContent .crm-overview-1 { background:linear-gradient(135deg,#2ad69a,#0c9e75); }
#influenceCrmContent .crm-overview-2 { background:linear-gradient(135deg,#ffc25a,#e89415); }
#influenceCrmContent .crm-overview-3 { background:linear-gradient(135deg,#f47f9f,#dc4c71); }
#influenceCrmContent #influenceCrmKpis small { font-size:9px;letter-spacing:.05em;text-transform:uppercase; }
#influenceCrmContent #influenceCrmKpis strong { margin:4px 0;font-size:29px;line-height:1.1; }
#influenceCrmContent #influenceCrmKpis span { font-size:9px; }
#influenceCrmContent .influence-crm-table table { width:2992px;min-width:2992px; }
#influenceCrmContent .influence-crm-table .table-wrap { height:65vh;max-height:none;min-height:320px;overflow:scroll;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#b9a5d0 #eee8f5; }
#influenceCrmContent .influence-crm-table .table-wrap::-webkit-scrollbar { width:12px;height:12px; }
#influenceCrmContent .influence-crm-table .table-wrap::-webkit-scrollbar-track { background:#eee8f5; }
#influenceCrmContent .influence-crm-table .table-wrap::-webkit-scrollbar-thumb { background:#b9a5d0;border:3px solid #eee8f5;border-radius:7px; }
#influenceCrmContent .influence-crm-table td { height:34px;padding:6px 10px;font-size:11px;border-right:1px solid #ded5e8;border-bottom:1px solid #e7dfef; }
#influenceCrmContent .influence-crm-table th { height:40px;padding:6px 10px; }
#influenceCrmContent .influence-crm-table .influence-crm-status { padding:4px 7px;font-size:8px; }
#influenceCrmContent .influence-crm-table .influence-edit-person { width:24px;height:24px;font-size:13px; }
#influenceCrmContent .influence-crm-table .crm-row-number { background:#f2edf7;color:#9788a7;text-align:center;font-size:9px;font-variant-numeric:tabular-nums; }
#influenceCrmContent .influence-crm-pagination:empty { display:none; }
@media(min-width:1101px) {
#influenceCrmContent .influence-crm-table :is(th,td):nth-child(1) { left:0;width:42px; }
#influenceCrmContent .influence-crm-table :is(th,td):nth-child(2) { left:42px; }
#influenceCrmContent .influence-crm-table :is(th,td):nth-child(3) { left:147px; }
#influenceCrmContent .influence-crm-table :is(th,td):nth-child(4) { left:257px;box-shadow:none; }
#influenceCrmContent .influence-crm-table :is(th,td):nth-child(5) { position:sticky;left:367px;z-index:2;box-shadow:3px 0 8px #38204e08; }
#influenceCrmContent .influence-crm-table thead th:nth-child(-n+5) { z-index:5; }
}
body:not(.theme-light) #influenceCrmContent .influence-crm-table .crm-row-number { background:#201c2b;color:#9d90b0; }
@media(max-width:650px) { #influenceCrmContent #influenceCrmKpis .crm-overview-card { padding:14px;gap:10px; } #influenceCrmContent #influenceCrmKpis .crm-overview-icon { width:38px;height:40px; } #influenceCrmContent .influence-crm-table .table-wrap { height:70vh; } }
#influenceCrmContent .crm-table-tools { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
#toggleInfluenceCrmDateOrder { display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:7px 12px;border:1px solid var(--crm-line);border-radius:7px;background:var(--crm-soft);color:var(--crm-accent);font-size:10px;font-weight:600;cursor:pointer; }
#toggleInfluenceCrmDateOrder:hover { border-color:var(--crm-accent); }
#toggleInfluenceCrmDateOrder:focus-visible { outline:2px solid var(--crm-accent);outline-offset:2px; }
.crm-platform-label { display:inline-flex;align-items:center;gap:7px;vertical-align:middle; }
.crm-platform-icon { display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:18px;padding:1px;border-radius:4px;vertical-align:middle;box-sizing:border-box;box-shadow:0 0 0 1px #00000009; }
.crm-platform-icon svg { display:block;width:16px;height:16px; }
.crm-platform-inst { background:radial-gradient(circle at 25% 105%,#ffdc80 0%,#fcaf45 18%,#f56040 38%,#e1306c 58%,#833ab4 85%); }
.crm-platform-tiktok { background:#111; }
#influenceCrmDialog .crm-platform-select { position:relative;min-width:0; }
#influenceCrmDialog .crm-platform-select > i { position:absolute;left:13px;top:50%;transform:translateY(-50%);display:flex;align-items:center;pointer-events:none;z-index:1; }
#influenceCrmDialog .crm-platform-select select { padding-left:44px; }
#influenceCrmDialog .crm-platform-icon { margin:0; }

/* Table toolbar: period, ordering and record count in a single aligned group. */
#influenceCrmContent .influence-crm-table > .panel-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px 17px;margin-bottom:0;flex-wrap:wrap; }
#influenceCrmContent .influence-crm-table > .panel-heading > div:first-child { flex:1 1 260px; }
#influenceCrmContent .influence-crm-table > .panel-heading .eyebrow { margin:0 0 6px;font-size:8px;letter-spacing:.12em; }
#influenceCrmContent .influence-crm-table > .panel-heading h2 { margin:0;font-size:17px; }
#influenceCrmContent .crm-table-tools { flex:0 1 auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:5px;border:1px solid var(--crm-line);border-radius:11px;background:var(--crm-soft); }
#influenceCrmContent .crm-table-period { display:flex;align-items:center;gap:8px;min-width:170px;margin:0;padding:0 10px;border:1px solid var(--crm-line);border-radius:7px;background:var(--panel);color:var(--crm-accent);height:34px; }
#influenceCrmContent .crm-table-period svg { width:16px;height:16px;flex:none; }
#influenceCrmContent .crm-table-period select { min-width:0;width:100%;height:32px;padding:0 20px 0 0;border:0;border-radius:0;background-color:transparent;box-shadow:none;color:var(--ink);font-family:inherit;font-size:11px;font-weight:500;outline:none; }
#influenceCrmContent #toggleInfluenceCrmDateOrder { min-height:34px;height:34px;padding:0 12px;border:1px solid transparent;background:var(--panel);border-radius:7px;font-size:10px;white-space:nowrap; }
#influenceCrmContent #toggleInfluenceCrmDateOrder:hover { border-color:var(--crm-line);background:var(--crm-soft); }
#influenceCrmContent #influenceCrmCount { display:flex;align-items:center;min-height:34px;padding:0 10px;border:0;background:none;font-size:10px;color:var(--muted);white-space:nowrap; }
#influenceCrmContent .crm-table-period:focus-within { outline:2px solid var(--crm-accent);outline-offset:2px; }
@media(max-width:900px) { #influenceCrmContent .crm-table-tools { justify-content:flex-start;flex-wrap:wrap; } }
@media(max-width:520px) { #influenceCrmContent .influence-crm-table > .panel-heading { padding:0 14px 15px;gap:12px; } #influenceCrmContent .crm-table-tools { width:100%; } #influenceCrmContent .crm-table-period { flex:1 1 100%; } }
#influenceCrmContent .influence-crm-table table { width:2732px;min-width:2732px; }
#influenceCrmContent .influence-crm-table .crm-sheet-action .influence-edit-person { display:inline-flex;align-items:center;justify-content:center;width:110px;height:27px;padding:0 8px;font-size:10px;font-weight:600;white-space:nowrap; }
#influenceCrmContent .influence-crm-table .crm-sheet-note { white-space:normal;line-height:1.5;overflow-wrap:anywhere;padding-top:8px;padding-bottom:8px; }
#influenceCrmContent .influence-crm-table td.crm-sheet-action { overflow:visible;text-overflow:clip;white-space:normal; }
#influenceCrmContent .influence-crm-table .crm-sheet-action .influence-edit-person { background:linear-gradient(120deg,#985ce9,#793ac7);border-color:#8646d5;color:#fff;box-shadow:0 2px 5px #793ac718; }
#influenceCrmContent .influence-crm-table .crm-sheet-action .influence-edit-person:hover { background:linear-gradient(120deg,#894bda,#6b2db7);border-color:#793ac7;color:#fff; }

/* Keep hovered cell content below the opaque pinned action column. */
#influenceCrmContent .influence-crm-table .table-wrap { isolation:isolate; }
#influenceCrmContent .influence-crm-table tbody tr:hover > td:nth-child(n+6):not(.crm-sheet-action) { position:static;z-index:auto;box-shadow:none; }
#influenceCrmContent .influence-crm-table td.crm-sheet-action,
#influenceCrmContent .influence-crm-table tbody tr:hover > td.crm-sheet-action,
#influenceCrmContent .influence-crm-table tbody tr:hover > td.crm-sheet-action:hover { position:sticky;right:0;z-index:6;overflow:hidden;text-overflow:clip;box-shadow:-4px 0 8px #38204e09;background:#fff; }
#influenceCrmContent .influence-crm-table tbody tr:nth-child(even) td.crm-sheet-action { background:#fcfaff; }
#influenceCrmContent .influence-crm-table tbody tr:hover td.crm-sheet-action { background:#f3ecfc; }
#influenceCrmContent .influence-crm-table thead th:last-child { z-index:8; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table td.crm-sheet-action { background:#12121c; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:nth-child(even) td.crm-sheet-action { background:#15131e; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:hover td.crm-sheet-action { background:#211b2e; }
#influenceCrmContent { gap:12px; }
#influenceCrmContent .influence-crm-table > .panel-heading { gap:12px; }
#influenceCrmContent .influence-crm-table > .panel-heading > .top-actions { display:flex;align-items:center;gap:8px;flex:0 0 auto; }
#influenceCrmContent .influence-crm-table .top-actions .influence-add-person { min-width:155px;height:34px;padding:0 11px;border-radius:8px; }
#influenceCrmContent .influence-crm-table .top-actions .influence-add-person b { font-size:10px; }
#influenceCrmContent .influence-crm-table .top-actions .influence-add-person > span { width:20px;height:20px;flex-basis:20px; }
#influenceCrmContent .influence-crm-table .top-actions .secondary-button { min-height:32px;padding:7px 11px;font-size:10px; }
#influenceCrmContent #influenceCrmKpis .crm-overview-card { min-height:82px;padding:14px 18px; }
@media(max-width:700px) { #influenceCrmContent .influence-crm-table > .panel-heading > .top-actions { flex-wrap:wrap; } }
#influenceCrmContent .influence-crm-filters select,
#influenceCrmContent .crm-table-period select {
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%239181a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;padding-right:36px;box-sizing:border-box;
}
#influenceCrmContent .crm-table-period select { background-position:right 2px center;padding-right:24px; }
:is(#mediaView,#unityMediaView) [hidden] { display:none!important; }
:is(#influenceMediaHint,#unityInfluenceMediaHint) { padding:12px 16px;margin:0 0 14px;border:1px solid var(--line);border-radius:9px;background:var(--panel);font-size:11px;line-height:1.7;color:var(--muted); }
:is(#influenceMediaDriveLink,#unityInfluenceMediaDriveLink) { display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;font-size:10px; }

#influenceCrmContent .crm-media-badge { display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:6px 10px;background:#edf0f5;color:#7b8494;font-family:inherit;font-size:10px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:default;text-decoration:none; }
#influenceCrmContent .crm-media-badge.has-media { background:rgba(139,92,246,.13);color:var(--crm-accent,#8b5cf6);border-color:rgba(139,92,246,.22);cursor:pointer; }
#influenceCrmContent .crm-media-badge.has-media:hover,#influenceCrmContent .crm-media-badge:focus-visible { background:rgba(139,92,246,.23);outline:2px solid rgba(139,92,246,.35);outline-offset:2px; }
#influenceCrmContent .crm-media-badge span { font-size:9px;padding:2px 4px;border-radius:4px;background:rgba(139,92,246,.12); }
body:not(.theme-light) #influenceCrmContent .crm-media-badge:not(.has-media) { background:#242532;color:#9393a7; }

/* Keep status tint across the whole row, including frozen cells and actions. */
#influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status.approved) { --crm-status-row:#eaf8ef;--crm-status-row-hover:#dcf1e4; }
#influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status.cancelled) { --crm-status-row:#fff0f1;--crm-status-row-hover:#fce0e3; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status.approved) { --crm-status-row:#142b22;--crm-status-row-hover:#1b3b2d; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status.cancelled) { --crm-status-row:#321d26;--crm-status-row-hover:#452532; }
#influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status:is(.approved,.cancelled)) > td { background:var(--crm-status-row) !important; }
#influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status:is(.approved,.cancelled)):hover > td { background:var(--crm-status-row-hover) !important; }

#influenceSearchContent .influence-search-table > .panel-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap; }
#influenceSearchContent .influence-search-table-actions { display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-left:auto; }
#influenceSearchContent .influence-search-table-settings .table-personalize-toolbar { margin:0; }
#influenceSearchContent .influence-search-table-actions .influence-search-actions { display:flex;gap:8px; }
#influenceSearchContent .influence-search-table-actions .influence-search-actions > button { min-height:34px;height:34px;padding:0 12px;border-radius:9px;font-size:11px;box-shadow:none; }
#influenceSearchContent .influence-search-table-actions .influence-search-actions > button > span { width:21px;height:21px;flex-basis:21px;font-size:0; }
@media(max-width:600px) { #influenceSearchContent .influence-search-table-actions { width:100%;justify-content:space-between;gap:8px; } }

#influenceSearchContent .influence-search-filters { display:block;padding:18px 20px;overflow:visible; }
#influenceSearchContent .influence-search-filter-main { display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr));gap:14px; }
#influenceSearchContent .influence-search-filter-main label { gap:8px; }
#influenceSearchContent .influence-search-filter-main label > span { font-size:10px;letter-spacing:.03em; }
#influenceSearchContent .influence-search-filter-main :is(input,select) { height:42px;font-size:12px;padding:0 13px; }
#influenceSearchContent .influence-search-filters select { appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%239278a7' stroke-width='1.7'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:35px; }
#influenceSearchContent .influence-search-filter-footer { display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--search-border);margin-top:16px;padding-top:14px; }
#influenceSearchContent .influence-search-filter-footer { justify-content:flex-end; }
#influenceSearchContent .influence-search-sort-controls { display:flex;align-items:center;gap:10px;min-width:0; }
#influenceSearchContent .influence-search-sort-controls > label { color:var(--muted);font-size:11px;white-space:nowrap; }
#influenceSearchContent .influence-search-sort-controls > select { width:185px;height:36px;font-size:11px;background-color:var(--panel); }
#influenceSearchContent #influenceSearchSortDirection { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:150px;height:36px;padding:0 12px;border:1px solid var(--search-border);border-radius:8px;background:var(--search-soft);color:var(--search-accent);font-family:inherit;font-size:11px;font-weight:600;white-space:nowrap;box-shadow:none; }
#influenceSearchContent #influenceSearchSortDirection svg { width:17px;height:17px;flex:none; }
#influenceSearchContent .influence-search-filter-footer .reset-filters { width:auto;min-height:36px;height:36px;padding:0 12px;font-size:11px; }
#influenceSearchContent .influence-search-table .table-wrap { max-height:65vh;overflow:auto;overscroll-behavior:contain; }
#influenceSearchContent .influence-search-table th { position:sticky;top:0;z-index:4;background:#1b1625; }
body.theme-light #influenceSearchContent .influence-search-table th { background:#f7f3fc; }
#influenceSearchContent .influence-search-filters input[type="month"] { color-scheme:dark; }
body.theme-light #influenceSearchContent .influence-search-filters input[type="month"] { color-scheme:light; }
#influenceSearchContent .influence-search-pagination { display:flex;align-items:center;justify-content:flex-end;gap:22px;padding:16px 0 0;color:var(--muted);font-size:12px; }
#influenceSearchContent #influenceSearchPageSummary { margin-right:auto; }
#influenceSearchContent .influence-search-pagination label { display:flex;align-items:center;gap:10px;font-size:11px; }
#influenceSearchContent .influence-search-pagination select { width:66px;height:34px;padding:0 8px;border:1px solid var(--search-border);border-radius:8px;background:var(--search-soft);color:var(--ink);font-family:inherit;font-size:12px; }
#influenceSearchContent .influence-search-page-buttons { display:flex;align-items:center;gap:12px; }
#influenceSearchContent .influence-search-page-buttons button { display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--search-border);border-radius:8px;background:var(--panel);color:var(--search-accent);font-size:18px;box-shadow:none; }
#influenceSearchContent .influence-search-page-buttons button:disabled { opacity:.35;cursor:default; }
#influenceSearchContent .influence-search-page-buttons span { min-width:42px;text-align:center;font-variant-numeric:tabular-nums; }
#influenceSearchContent :is(#influenceSearchSortDirection,.influence-search-page-buttons button):focus-visible { outline:2px solid var(--search-accent);outline-offset:3px; }
@media(max-width:1150px) { #influenceSearchContent .influence-search-filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { #influenceSearchContent .influence-search-filter-footer { flex-wrap:wrap; } #influenceSearchContent .influence-search-sort-controls { flex-wrap:wrap;gap:8px; } #influenceSearchContent .influence-search-sort-controls > label { flex-basis:100%; } #influenceSearchContent .influence-search-pagination { flex-wrap:wrap;gap:14px; } }
@media(max-width:480px) { #influenceSearchContent .influence-search-filter-main { grid-template-columns:minmax(0,1fr); } #influenceSearchContent .influence-search-filters { padding:16px; } #influenceSearchContent .influence-search-sort-controls { width:100%; } #influenceSearchContent .influence-search-sort-controls > select { flex:1;width:140px; } #influenceSearchContent #influenceSearchSortDirection { min-width:140px; } #influenceSearchContent #influenceSearchPageSummary { flex-basis:100%; } }

/* Keep paging controls in the viewport; only the rows consume remaining space. */
#influenceSearchContent .influence-search-duplicate > td { background:#fdf2c5!important; }
#influenceSearchContent .influence-search-duplicate:hover > td { background:#fbea9f!important; }
body:not(.theme-light) #influenceSearchContent .influence-search-duplicate > td { background:#3a3018!important; }
body:not(.theme-light) #influenceSearchContent .influence-search-duplicate:hover > td { background:#493b1a!important; }
#influenceSearchContent .influence-duplicate-badge { display:block;width:max-content;max-width:100%;margin-top:4px;padding:2px 5px;border:1px solid #ce9a2966;border-radius:4px;background:#ffe58a;color:#72500b;font-size:9px;font-weight:650;line-height:1.3; }
#influenceSearchContent button.influence-duplicate-badge { min-height:22px;height:auto;font-family:inherit;box-shadow:none;cursor:pointer; }
#influenceSearchContent .influence-search-result-geo { display:block;margin-top:4px;color:var(--muted);font-size:9px; }
#influenceSearchContent select.influence-inline-status { appearance:none;display:block;width:100%;max-width:160px;min-width:0;height:29px;min-height:29px;padding:4px 22px 4px 8px;border-width:1px;border-style:solid;border-radius:7px;font-family:inherit;font-size:10px;font-weight:650;line-height:1.3;text-overflow:ellipsis;cursor:pointer;box-shadow:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none' stroke='%238c7898' stroke-width='1.8'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center; }
#influenceSearchContent select.influence-inline-status option { background:var(--panel);color:var(--ink); }
#influenceSearchContent select.influence-inline-status { color:var(--inline-status-color,#687183);background-color:var(--inline-status-bg,#f2f4f7);border-color:var(--inline-status-border,#dce1e8); }
.influence-inline-status.influence-status-new { --inline-status-color:#2862c7;--inline-status-bg:#edf4ff;--inline-status-border:#c9dafd; }
.influence-inline-status.influence-status-silent { --inline-status-color:#a26306;--inline-status-bg:#fff6df;--inline-status-border:#f5d99d; }
.influence-inline-status.influence-status-interested { --inline-status-color:#7650c7;--inline-status-bg:#f5f0ff;--inline-status-border:#ddcffb; }
.influence-inline-status.influence-status-ready { --inline-status-color:#087a53;--inline-status-bg:#e8f8f1;--inline-status-border:#b8ead7; }
.influence-inline-status.influence-status-price { --inline-status-color:#b25b12;--inline-status-bg:#fff0e4;--inline-status-border:#f4c9a7; }
.influence-inline-status.influence-status-rejected { --inline-status-color:#be3341;--inline-status-bg:#ffedf0;--inline-status-border:#f0c1c6; }
#influenceSearchContent select.influence-inline-status:focus-visible { outline:2px solid var(--search-accent);outline-offset:2px; }
#influenceSearchContent select.influence-inline-status:disabled { opacity:.55;cursor:wait; }
.influence-duplicate-error:not([hidden]) { display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #d6ac46;border-radius:8px;background:#fff2bf;color:#745410;font-size:12px; }
.influence-duplicate-error button { flex:none;padding:8px 10px;border:1px solid #d6ac46;border-radius:6px;background:#fff;color:#745410;font:inherit;cursor:pointer; }
#influenceSearchContent .influence-search-filter-extras { display:flex;align-items:center;gap:16px;flex-wrap:wrap; }
#influenceSearchContent .influence-duplicates-toggle { display:flex;align-items:center;gap:7px;color:var(--ink);font-size:11px;white-space:nowrap;cursor:pointer; }
#influenceSearchContent .influence-duplicates-toggle input { width:15px;height:15px;padding:0;margin:0;accent-color:var(--search-accent); }
body.influence-search-screen:not(.locked) { height:100dvh;overflow:hidden; }
body.influence-launches-screen:not(.locked) { height:100dvh;overflow:hidden; }
body.influence-launches-screen:not(.locked) main { display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box;overflow:hidden;padding-bottom:12px; }
body.influence-launches-screen:not(.locked) #influenceView { display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden; }
#influenceLaunchesContent[hidden] { display:none; }
#influenceLaunchesContent { --launch-line:#ded3ee;--launch-soft:#f7f3fc;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);flex:1;min-height:0;gap:14px;color:var(--ink); }
body:not(.theme-light) #influenceLaunchesContent { --launch-line:#352b46;--launch-soft:#211b2d; }
#influenceLaunchesContent .launches-heading { display:flex;align-items:center;justify-content:space-between;gap:16px; }
#influenceLaunchesContent .launches-heading h1 { margin:4px 0;font-size:25px;letter-spacing:-.03em; }
#influenceLaunchesContent .launches-heading p:not(.eyebrow) { margin:0;color:var(--muted);font-size:12px; }
#influenceLaunchesContent .eyebrow { color:#9557e4;font-size:9px; }
#influenceLaunchesContent .launches-heading .influence-add-person { min-width:160px;height:38px;background:#8b4dde;border-color:#8b4dde;box-shadow:none; }
#influenceLaunchesContent .launches-kpis { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px; }
#influenceLaunchesContent .launches-kpis article { padding:13px 16px;background:var(--panel);border:1px solid var(--launch-line);border-radius:10px; }
#influenceLaunchesContent .launches-kpis span { display:block;color:var(--muted);font-size:10px; }
#influenceLaunchesContent .launches-kpis strong { display:block;margin-top:7px;font-size:22px;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums; }
#influenceLaunchesContent .launches-filters { display:grid;grid-template-columns:minmax(160px,1fr) minmax(220px,2fr) repeat(3,minmax(125px,1fr)) auto;gap:12px;align-items:end;margin:0;padding:14px 18px;max-height:24dvh;overflow:auto;overscroll-behavior:contain; }
#influenceLaunchesContent label { display:grid;gap:7px;min-width:0; }
#influenceLaunchesContent label > span { color:var(--muted);font-size:10px; }
#influenceLaunchesContent .launches-filters :is(input,select) { width:100%;height:38px;min-width:0;padding:0 11px;border:1px solid var(--launch-line);border-radius:8px;background:var(--launch-soft);color:var(--ink);font-family:inherit;font-size:11px; }
#influenceLaunchesContent .launches-filters select { appearance:none;-webkit-appearance:none;box-sizing:border-box;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%239278a7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 12px center; }
#influenceLaunchesContent .launches-filters button { height:38px;min-height:38px;font-size:11px; }
#influenceLaunchesContent .launches-panel { display:flex;flex-direction:column;min-height:0;padding:16px 18px;margin:0;overflow:hidden; }
#influenceLaunchesContent .panel-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;margin:0 0 12px; }
#influenceLaunchesContent .panel-heading h2 { margin:0;text-transform:capitalize;font-size:16px; }
#influenceLaunchesContent .launches-hint { margin:6px 0 0;color:var(--muted);font-size:10px; }
#influenceLaunchesContent .launches-scroll { position:relative;flex:1;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;border:1px solid var(--launch-line);border-radius:8px; }
body:not(.locked) #influenceLaunchesContent .launches-table { width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0; }
#influenceLaunchesContent .launches-table :is(th,td) { box-sizing:border-box;min-width:84px;width:84px;max-width:190px;padding:10px 9px;white-space:nowrap;border:0;border-right:1px solid var(--launch-line);border-bottom:1px solid var(--launch-line);font-size:11px;text-align:right;background:var(--panel); }
#influenceLaunchesContent .launches-table th { position:sticky;top:0;z-index:4;height:47px;background:#f7f3fc;color:var(--muted);font-size:9px;font-weight:600; }
body:not(.theme-light) #influenceLaunchesContent .launches-table th { background:#211b2d; }
#influenceLaunchesContent .launches-table .launch-identity { position:sticky;left:0;z-index:2;min-width:195px;width:195px;max-width:195px;text-align:left; }
#influenceLaunchesContent .launches-table th.launch-identity { z-index:6; }
#influenceLaunchesContent .launch-identity > div { display:flex;align-items:center;justify-content:space-between;gap:8px; }
#influenceLaunchesContent .launch-identity small { display:block;margin-top:5px;font-size:9px;color:var(--muted); }
#influenceLaunchesContent .launch-name { min-width:0;min-height:0;padding:0;border:0;background:none;box-shadow:none;color:var(--ink);font:inherit;font-weight:650;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-align:left; }
#influenceLaunchesContent .launches-table a { color:#8b4dde;text-decoration:none;font-size:11px; }
#influenceLaunchesContent .launch-identity a { display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid var(--launch-line);border-radius:6px;background:var(--launch-soft);font-size:15px; }
#influenceLaunchesContent .launches-table .launch-ref { min-width:115px;text-align:center; }
#influenceLaunchesContent .launch-remaining { padding:4px 7px;border-radius:5px;background:var(--launch-soft);color:#9457d7;font-size:11px; }
#influenceLaunchesContent .launch-remaining.ready { background:#def5e9;color:#1a8257; }
#influenceLaunchesContent .launches-table :is(.launch-day-head,.launch-day) { min-width:48px;width:48px;max-width:48px;padding:4px;text-align:center; }
#influenceLaunchesContent .launch-day-head small { display:block;margin-top:4px;font-size:8px;font-weight:400; }
#influenceLaunchesContent .launch-day-head.weekend { color:#a570d3; }
#influenceLaunchesContent .launch-day input { appearance:textfield;width:36px;min-width:0;height:31px;min-height:31px;padding:0;border:1px solid transparent;border-radius:5px;text-align:center;font-family:inherit;font-size:11px;color:var(--ink);background:transparent;box-shadow:none; }
#influenceLaunchesContent .launch-day input::-webkit-inner-spin-button { -webkit-appearance:none; }
#influenceLaunchesContent .launch-day.has-plan input { background:#ede1ff;color:#7440b5;font-weight:650; }
body:not(.theme-light) #influenceLaunchesContent .launch-day.has-plan input { background:#3e285c;color:#d9b6ff; }
#influenceLaunchesContent .launch-day input:focus { outline:2px solid #a16ae7;outline-offset:0;background:var(--launch-soft); }
#influenceLaunchesContent .launch-day input:disabled { opacity:.5; }
#influenceLaunchesContent .launches-table tbody tr:hover > td,
#influenceLaunchesContent .launches-table tbody tr:hover > td:hover { position:static;z-index:auto;background:var(--launch-soft);box-shadow:none;outline:none;border-color:var(--launch-line); }
#influenceLaunchesContent .launches-table tbody tr:hover > td.launch-identity { position:sticky;z-index:2; }
#influenceLaunchesContent .launches-table tfoot td { position:sticky;bottom:0;z-index:3;background:#f2eafa;font-weight:650;height:38px; }
body:not(.theme-light) #influenceLaunchesContent .launches-table tfoot td { background:#2b2139; }
#influenceLaunchesContent .launches-table tfoot td.launch-identity { z-index:5; }
#influenceLaunchesContent .launches-footer { display:flex;align-items:center;gap:18px;justify-content:space-between;flex:none;padding-top:12px;color:var(--muted);font-size:10px; }
#influenceLaunchesContent .launches-footer button { min-height:30px;height:30px;font-size:10px; }
#influenceLaunchesContent .launch-empty { height:100px;text-align:center; }
#launchesDialog { width:min(760px,calc(100vw - 24px));max-height:90dvh;overflow:auto; }
#launchesDialog .form-grid { margin:18px 0; }
#launchesDialog label { display:grid;gap:7px; }
#launchesDialog label span { font-size:11px;color:var(--muted); }
@media(max-width:1200px) { #influenceLaunchesContent .launches-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } #influenceLaunchesContent .launches-kpis article { padding:10px; } #influenceLaunchesContent .launches-kpis strong { font-size:18px; } }
@media(max-width:650px) { #influenceLaunchesContent { gap:10px; } #influenceLaunchesContent .launches-heading h1 { font-size:20px; } #influenceLaunchesContent .launches-heading p:not(.eyebrow) { display:none; } #influenceLaunchesContent .launches-kpis { grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; } #influenceLaunchesContent .launches-filters { grid-template-columns:repeat(2,minmax(0,1fr));padding:12px; } #influenceLaunchesContent .launches-panel { padding:12px; } #influenceLaunchesContent .launches-footer > span:nth-child(2) { display:none; } #influenceLaunchesContent .launches-hint { max-width:200px; } }
@media(max-height:650px) { #influenceLaunchesContent { gap:8px; } #influenceLaunchesContent .launches-heading :is(.eyebrow,p:not(.eyebrow)) { display:none; } #influenceLaunchesContent .launches-heading h1 { margin:0;font-size:19px; } #influenceLaunchesContent .launches-kpis article { padding:7px 10px; } #influenceLaunchesContent .launches-kpis strong { margin-top:3px;font-size:16px; } #influenceLaunchesContent .launches-kpis span { font-size:9px; } #influenceLaunchesContent .launches-filters { max-height:19dvh;padding:8px 12px; } #influenceLaunchesContent .launches-panel { padding:10px 12px; } #influenceLaunchesContent .launches-hint { display:none; } }
@media(max-height:650px) { #influenceLaunchesContent .panel-heading { margin-bottom:6px; } #influenceLaunchesContent .launches-footer { padding-top:6px; } #influenceLaunchesContent .launches-filters { max-height:17dvh; } }
body.influence-search-screen:not(.locked) main { display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box;overflow:hidden;padding-bottom:12px; }
body.influence-search-screen:not(.locked) #influenceView { display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden; }
body.influence-search-screen:not(.locked) #influenceSearchContent { display:flex;flex:1;flex-direction:column;min-height:0;gap:12px;overflow:hidden; }
body.influence-search-screen #influenceSearchContent .influence-search-filters { max-height:26dvh;overflow:auto;overscroll-behavior:contain;margin:0; }
body.influence-search-screen #influenceSearchContent .influence-search-table { display:flex;flex-direction:column;min-height:0;margin:0;padding:14px 20px; }
body.influence-search-screen #influenceSearchContent .influence-search-table > .panel-heading { flex:none; }
body.influence-search-screen #influenceSearchContent .influence-search-table .table-wrap { flex:1;min-height:0;max-height:none;overflow:auto; }
body.influence-search-screen #influenceSearchContent .influence-search-pagination { flex:none;padding-top:12px; }
@media(max-height:650px) {
  body.influence-search-screen #influenceSearchContent #influenceSearchSortDirection { min-width:0;padding:0 8px;font-size:10px;gap:4px; }
  body.influence-search-screen #influenceSearchContent .influence-search-table-actions { gap:8px; }
  body.influence-search-screen #influenceSearchContent .influence-search-filters { max-height:23dvh;padding:10px 14px; }
  body.influence-search-screen #influenceSearchContent .influence-search-table { padding:10px 14px; }
  body.influence-search-screen #influenceSearchContent .influence-search-table > .panel-heading { margin-bottom:10px; }
}
@media(max-height:650px) and (max-width:780px) {
  body.influence-search-screen #influenceSearchContent { gap:8px; }
  body.influence-search-screen #influenceSearchContent .influence-search-table > .panel-heading > div:first-child { display:none; }
  body.influence-search-screen #influenceSearchContent .influence-search-table { padding:8px 12px; }
}

/* Confirmed payment ledger: the page stays within the viewport; rows scroll internally. */
body.influence-payments-screen:not(.locked) { height:100dvh;overflow:hidden; }
body.influence-payments-screen:not(.locked) main { display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box;overflow:hidden;padding-bottom:12px; }
body.influence-payments-screen:not(.locked) #influenceView { display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden; }
.influence-payments { flex:1;min-height:0;grid-template-rows:auto auto auto minmax(100px,1fr);gap:10px; }
.influence-payments-head { padding:14px 20px; }
.influence-payments-head h1 { margin:4px 0;font-size:26px; }
.influence-payments-head p { margin:4px 0; }
.influence-payment-kpis article { min-height:80px;padding:12px 16px; }
.influence-payment-kpis strong { margin:8px 0 4px; }
.influence-payment-filters { padding:12px 18px;max-height:24dvh;overflow:auto; }
.influence-payment-filters select { appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c759c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat; }
.influence-payments-table { display:flex;flex-direction:column;min-height:0;padding:14px 18px; }
.influence-payments-table .table-wrap { flex:1;min-height:0;overflow:auto;isolation:isolate; }
.influence-payments-table table { min-width:1510px; }
.influence-payments-table thead th { position:sticky;top:0;z-index:2;background:var(--panel); }
.influence-payments-table th:nth-child(7) { width:130px; }
.influence-payments-table th:nth-child(8) { width:210px; }
.influence-payments-table th:nth-child(9) { width:235px; }
.influence-payments-table th:nth-child(10) { width:115px; }
.influence-payments-table td { height:58px; }
.influence-payments-table tbody tr:hover td { background:#f5effc; }
.influence-payments-table td:hover { box-shadow:none;outline:none; }
.payment-spend { color:#078b60;font-weight:800; }
.payment-proof-cell { white-space:normal !important; }
.payment-proof-badge { display:inline-block;font-size:10px;padding:5px 8px;border-radius:7px;background:#fff2d3;color:#8c610b; }
.payment-proof-badge.verified { background:#e4f8ed;color:#08794f; }
.payment-proof-badge.confirmed { background:#edf2ff;color:#4561a6; }
.payment-receipt-link,.payment-check-chain { display:inline-block;margin:4px 6px 0 0;font-size:10px;color:#4561a6; }
.payment-check-chain { border:0;background:transparent;cursor:pointer;padding:0;text-decoration:underline; }
.influence-payment-hash { padding-right:76px !important; }
.influence-payment-hash small { display:block;color:var(--muted);font:10px system-ui;margin-top:4px; }
.influence-payment-hash > div { position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;gap:5px; }
.influence-payment-hash > div > * { width:25px;height:25px;display:grid;place-items:center;border:1px solid #c9d5f4;border-radius:6px;background:#f4f7ff;color:#315fd6;text-decoration:none;cursor:pointer; }
.payment-confirm-check { display:flex !important;align-items:center;gap:10px; }
.payment-confirm-check input { width:18px !important;height:18px !important;flex:0 0 auto; }
@media (max-height:750px) { .influence-payments-head { padding:10px 16px; }.influence-payments-head p { display:none; }.influence-payment-kpis article { min-height:65px;padding:8px 12px; }.influence-payment-kpis strong { font-size:19px; }.influence-payment-filters { max-height:22dvh; } }
@media (max-width:700px) { .influence-payments-head { flex-direction:row;gap:8px; }.influence-payments-head h1 { font-size:20px; }.influence-payments-head .influence-add-person { padding:10px;font-size:11px; }.influence-payment-kpis { gap:6px;grid-template-columns:repeat(4,minmax(0,1fr)); }.influence-payment-kpis article { padding:8px; }.influence-payment-kpis strong { font-size:16px; }.influence-payment-kpis small { display:none; } }
@media (max-height:600px) { .influence-payments { gap:6px;grid-template-rows:auto auto minmax(65px,18dvh) minmax(140px,1fr); }.influence-payments-head { padding:8px 14px; }.influence-payments-head h1 { font-size:20px; }.influence-payments-table { padding:8px 12px; }.influence-payments-table .section-head { margin-bottom:6px; }.influence-payments-table .section-head h2 { font-size:17px;margin:3px 0; }.influence-payment-kpis article { min-height:50px;padding:6px 10px; }.influence-payment-kpis strong { margin:3px 0;font-size:17px; }.influence-payment-kpis small { display:none; } }
body:not(.locked) #influenceView .influence-payments-table tbody td:hover { box-shadow:none !important;outline:none !important;border-color:var(--line) !important; }
body:not(.locked) #influenceView .influence-payments-table tbody tr:hover td { background:#f5effc !important; }

/* Launch ledger: quiet row separators and a distinct calendar, with no bottom scrollbar. */
#influenceLaunchesContent { --launch-surface:#fff;--launch-row-hover:#f5f1fc;--launch-calendar:#faf9fd;--launch-line:#ebe5f2;--launch-header:#f6f3fa; }
body:not(.theme-light) #influenceLaunchesContent { --launch-surface:#1b1724;--launch-row-hover:#2b2239;--launch-calendar:#1e1929;--launch-line:#332a41;--launch-header:#272032; }
#influenceLaunchesContent .launches-scroll { border-radius:12px;scrollbar-width:none;isolation:isolate;background:var(--launch-surface); }
#influenceLaunchesContent .launches-scroll::-webkit-scrollbar { width:6px;height:0; }
#influenceLaunchesContent .launches-scroll::-webkit-scrollbar-thumb { border-radius:6px;background:#aa98bb70; }
#influenceLaunchesContent .launches-scroll:focus-visible { outline:2px solid #a16cdb;outline-offset:2px; }
body:not(.locked) #influenceLaunchesContent .launches-table :is(th,td) { border-right:0;border-bottom:1px solid var(--launch-line);font-variant-numeric:tabular-nums; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody td { height:60px;padding:10px 12px;background:var(--launch-surface);color:var(--ink);font-size:11px; }
body:not(.locked) #influenceLaunchesContent .launches-table th { background:var(--launch-header) !important;position:sticky;top:0;z-index:8;height:48px;font-size:9px;font-weight:650;letter-spacing:.025em;color:var(--muted);box-shadow:0 1px 0 var(--launch-line); }
body:not(.locked) #influenceLaunchesContent .launches-table th.launch-identity { z-index:10; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-identity { min-width:280px;width:280px;max-width:280px;box-shadow:1px 0 0 var(--launch-line); }
body:not(.locked) #influenceLaunchesContent .launches-table tbody td.launch-identity { background:var(--launch-surface) !important;z-index:3; }
#influenceLaunchesContent .launch-name { font-size:12px;font-weight:650; }
#influenceLaunchesContent .launch-identity small { margin-top:6px;font-size:10px;opacity:.85; }
#influenceLaunchesContent .launch-product { display:inline-block;padding:5px 8px;border-radius:6px;background:var(--launch-header);font-size:10px;font-weight:600; }
#influenceLaunchesContent .launch-geo > span { display:inline-flex;align-items:center;gap:7px; }
#influenceLaunchesContent .launch-geo b { font-size:10px;font-weight:600; }
#influenceLaunchesContent .launch-geo .geo-flag-image { width:21px;height:15px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #00000008; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-section-start { border-left:1px solid var(--launch-line); }
body:not(.locked) #influenceLaunchesContent .launches-table tbody td.launch-day { background:var(--launch-calendar);padding:4px;border-left:1px solid var(--launch-line); }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-day-head { border-left:1px solid var(--launch-line); }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td,
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td:hover { background:var(--launch-row-hover) !important;box-shadow:none !important;outline:none !important;transform:none; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td.launch-identity { box-shadow:1px 0 0 var(--launch-line) !important; }
#influenceLaunchesContent .launch-day input { width:32px;height:30px;min-height:30px;border-radius:8px;transition:background .12s; }
#influenceLaunchesContent .launch-day input:hover { background:var(--launch-header); }
#influenceLaunchesContent .launch-day.has-plan input { background:#ece2fb;color:#793ebc;font-weight:700; }
body:not(.theme-light) #influenceLaunchesContent .launch-day.has-plan input { background:#483064;color:#e5c7ff; }
body:not(.locked) #influenceLaunchesContent .launches-table tfoot td { background:var(--launch-header) !important;border-top:1px solid var(--launch-line);height:42px;font-size:11px;z-index:6; }
body:not(.locked) #influenceLaunchesContent .launches-table tfoot td.launch-identity { z-index:7; }
body:not(.locked) #influenceLaunchesContent .launches-table .payment-spend { color:#178562; }
body:not(.theme-light) #influenceLaunchesContent .launches-table .payment-spend { color:#60c9a4; }
body:not(.locked) #influenceLaunchesContent .launch-day.has-plan input { background:#ece2fb !important;color:#7134ab !important; }
body:not(.locked):not(.theme-light) #influenceLaunchesContent .launch-day.has-plan input { background:#483064 !important;color:#e5c7ff !important; }
body:not(.locked) #influenceLaunchesContent .launch-day input:focus-visible { outline:2px solid #9c60de !important;outline-offset:0; }
/* Remaining placements stay beside the blogger even after personal column reordering. */
#influenceLaunchesContent .launches-table { --launch-pinned-left:210px; }
#influenceLaunchesContent .launches-table:has(th.launch-identity[hidden]) { --launch-pinned-left:0px; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-pinned-remaining,
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td.launch-pinned-remaining { position:sticky !important;left:var(--launch-pinned-left);z-index:4;box-shadow:1px 0 0 var(--launch-line),5px 0 8px #28123906 !important;background:var(--launch-surface); }
body:not(.locked) #influenceLaunchesContent .launches-table th.launch-pinned-remaining { z-index:9; }
body:not(.locked) #influenceLaunchesContent .launches-table tfoot td.launch-pinned-remaining { z-index:7; }
/* GEO leads the frozen columns; selection remains visible across the whole calendar. */
#influenceLaunchesContent .launches-table { --launch-geo-width:78px;--launch-pinned-left:358px;--launch-selected:#e3eefc;--launch-selected-hover:#dceafb; }
body:not(.theme-light) #influenceLaunchesContent .launches-table { --launch-selected:#243b54;--launch-selected-hover:#2b4661; }
#influenceLaunchesContent .launches-table:has(th.launch-identity[hidden]) { --launch-pinned-left:78px; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-geo,
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td.launch-geo { position:sticky !important;left:0;z-index:5;width:var(--launch-geo-width);min-width:var(--launch-geo-width);max-width:var(--launch-geo-width);text-align:center;background:var(--launch-surface);box-shadow:1px 0 0 var(--launch-line) !important; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-identity { left:var(--launch-geo-width); }
body:not(.locked) #influenceLaunchesContent .launches-table th.launch-geo { z-index:11; }
body:not(.locked) #influenceLaunchesContent .launches-table tfoot td.launch-geo { z-index:8; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td { background:#eef3fc !important; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr.launch-selected > td { background:var(--launch-selected) !important; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr.launch-selected:hover > td { background:var(--launch-selected-hover) !important; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr.launch-selected > td.launch-geo { box-shadow:inset 3px 0 #5089d8,1px 0 0 var(--launch-line) !important; }
body:not(.locked):not(.theme-light) #influenceLaunchesContent .launches-table tbody tr:hover > td { background:#2a3045 !important; }
body:not(.locked):not(.theme-light) #influenceLaunchesContent .launches-table tbody tr.launch-selected > td { background:var(--launch-selected) !important; }
#influenceLaunchesContent .launch-remaining.open { background:#fff0ce;color:#9c650a;font-weight:700; }
#influenceLaunchesContent .launch-remaining.ready { background:#d8f3e5;color:#18784f;font-weight:700; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-unpaid { color:#a56b0a;font-weight:650; }
body:not(.locked) #influenceLaunchesContent .launches-table .launch-paid { color:#24845e; }
body:not(.locked) #influenceLaunchesContent .launch-day.has-plan input { background:#dceaff !important;color:#3269b1 !important; }
body:not(.locked):not(.theme-light) #influenceLaunchesContent .launch-day.has-plan input { background:#294c70 !important;color:#b4d7ff !important; }
body:not(.theme-light) #influenceLaunchesContent .launch-remaining.open { background:#503e20;color:#f2cb7b; }
body:not(.theme-light) #influenceLaunchesContent .launch-remaining.ready { background:#214838;color:#8bdbb1; }
body:not(.locked):not(.theme-light) #influenceLaunchesContent .launches-table .launch-unpaid { color:#edc477; }
#influenceLaunchesContent .launch-platform { display:inline-flex;align-items:center;gap:5px;vertical-align:middle;font-size:10px; }
#influenceLaunchesContent .launch-platform > svg { width:13px;height:13px;flex:none;color:#c45c8d; }
body:not(.locked) #influenceLaunchesContent .launch-identity .launch-profile-link { display:flex;align-items:center;justify-content:center;gap:3px;width:36px;height:30px;border:1px solid #e8d5e7;border-radius:9px;background:linear-gradient(135deg,#fff6ed,#fbeafa 60%,#efe8ff);color:#ac4d91;box-shadow:0 2px 5px #753c7a09;transition:background .15s,box-shadow .15s; }
#influenceLaunchesContent .launch-profile-link > svg { width:17px;height:17px;flex:none; }
#influenceLaunchesContent .launch-profile-link > svg.launch-external-icon { width:9px;height:9px; }
body:not(.locked) #influenceLaunchesContent .launch-identity .launch-profile-link:hover { background:linear-gradient(135deg,#ffebd5,#f6d9ee 60%,#e8d9ff);box-shadow:0 3px 8px #753c7a18; }
body:not(.locked) #influenceLaunchesContent .launch-profile-link:focus-visible { outline:2px solid #b362b0;outline-offset:2px; }
body:not(.theme-light) #influenceLaunchesContent .launch-identity .launch-profile-link { border-color:#69445f;background:linear-gradient(135deg,#49312e,#4c2c48 60%,#392a53);color:#f0b3d8; }
.offer-kpi-block { border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--panel); }
.offer-kpi-block[hidden],.offer-kpi-grid label[hidden] { display:none; }
.offer-kpi-block h3 { margin:0 0 6px;font-size:14px; }
.offer-kpi-block p { margin:0 0 14px;color:var(--muted);font-size:11px;line-height:1.5; }
.offer-kpi-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.offer-kpi-grid label { display:grid;gap:7px;min-width:0; }
.offer-kpi-grid label > span { font-size:11px;color:var(--muted); }
.offer-kpi-block > small { display:block;margin-top:12px;color:#8a5daf;font-size:11px;line-height:1.5; }
.offer-kpi-block:not(.is-influence) { padding:0;border:0;background:none; }
.offer-kpi-block:not(.is-influence) .offer-kpi-grid { grid-template-columns:1fr; }
@media(max-width:500px) { .offer-kpi-grid { grid-template-columns:1fr; } }
#influenceWorkspace #influenceResultsBody .company-profit-positive { color:#20c98b;font-weight:750; }
body.theme-light #influenceWorkspace #influenceResultsBody .company-profit-positive { color:#118457; }
#influenceWorkspace #influenceResultsBody .company-profit-neutral { color:var(--muted); }
.offer-kpi-grid label { align-self:start;align-content:start; }
#influenceWorkspace #influenceResultsBody .company-profit-negative { color:#f46b7c;font-weight:700; }
body.theme-light #influenceWorkspace #influenceResultsBody .company-profit-negative { color:#d34b60; }
#influenceWorkspace .influence-metric-badge { display:inline-block;min-width:52px;padding:5px 8px;border-radius:7px;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;font-weight:700;line-height:1.3; }
#influenceWorkspace .influence-metric-badge.tone-good { color:#80e1b3;background:#1b4438; }
#influenceWorkspace .influence-metric-badge.tone-warn { color:#f0cd85;background:#483b23; }
#influenceWorkspace .influence-metric-badge.tone-bad { color:#ffa1ac;background:#4b2935; }
#influenceWorkspace .influence-metric-badge.tone-neutral { color:var(--muted);background:transparent; }
body.theme-light #influenceWorkspace .influence-metric-badge.tone-good { color:#167b51;background:#e6f5ed; }
body.theme-light #influenceWorkspace .influence-metric-badge.tone-warn { color:#9a670d;background:#fff2d5; }
body.theme-light #influenceWorkspace .influence-metric-badge.tone-bad { color:#bb4054;background:#fce9ed; }
/* KPI status colors apply to the figures only. */
body #influenceWorkspace .influence-metric-badge { min-width:0;padding:0;border-radius:0;background:transparent; }
body #influenceWorkspace .influence-metric-badge:is(.tone-good,.tone-warn,.tone-bad,.tone-neutral) { background:transparent; }
body.theme-light #influenceWorkspace .influence-metric-badge:is(.tone-good,.tone-warn,.tone-bad,.tone-neutral) { background:transparent; }
/* Compact Influence media header and consistent light hover states in both directions. */
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button:hover { background:#eee3f7;color:#754391;border-color:#c7a6dc;transform:none; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-view-options button.active:hover { background:#e5d4f2;color:#6b3989;border-color:#b88fd1; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > :hover,
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-toolbar :is(button,a):hover { background:#eee3f7;color:#754391;border-color:#c7a6dc;filter:none;transform:none; }
body:not(.locked):not(.theme-light) :is(#mediaView,#unityMediaView) .media-view-options button:hover,
body:not(.locked):not(.theme-light) :is(#mediaView,#unityMediaView) .media-materials-heading .media-hero-actions > :hover { background:#352844;color:#ead9ff;filter:none;transform:none; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-view:hover { background:#e7d5f5;color:#69358c; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-download:hover { background:#dce8fa;color:#315d9e; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-link:hover { background:#d8eee4;color:#28664f; }
body.theme-light:not(.locked) :is(#mediaView,#unityMediaView) .media-card-actions .media-action-access:hover { background:#e4d3f5;color:#683a90;border-color:#c2a0db; }
body:not(.locked) :is(#mediaView,#unityMediaView) .media-toolbar select { appearance:none;-webkit-appearance:none;box-sizing:border-box;min-width:130px;padding:0 36px 0 13px;line-height:normal;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%239077a4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 12px center; }
#influenceLaunchesContent .launches-kpis { grid-template-columns:repeat(7,minmax(0,1fr)); }
#influenceLaunchesContent .launches-calendar-mode { display:inline-flex;gap:3px;margin-top:8px;padding:3px;border-radius:8px;background:var(--launch-soft); }
#influenceLaunchesContent .launches-calendar-mode button { min-height:26px;padding:4px 12px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px; }
#influenceLaunchesContent .launches-calendar-mode button[aria-pressed="true"] { background:#8751cd;color:#fff; }
body:not(.locked) #influenceLaunchesContent .launches-actual-mode .launch-day.has-plan input { background:#def3e8 !important;color:#177a52 !important; }
@media(max-width:650px) { #influenceLaunchesContent .launches-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-height:650px) { #influenceLaunchesContent .launches-calendar-mode { margin-top:3px; } #influenceLaunchesContent .launches-calendar-mode button { min-height:22px;padding:2px 10px;font-size:10px; } }
@media(max-height:650px) { #influenceLaunchesContent .panel-heading > div:first-child { display:flex;align-items:center;gap:10px;flex-wrap:wrap; } #influenceLaunchesContent .launches-calendar-mode { margin-top:0; } }
@media(max-height:650px) { #influenceLaunchesContent { gap:6px; } #influenceLaunchesContent .launches-panel { padding:6px 10px; } #influenceLaunchesContent .launches-footer { padding-top:4px; } }
@media(max-width:650px) { #influenceLaunchesContent .launches-kpis { grid-template-columns:repeat(4,minmax(0,1fr));gap:6px; } #influenceLaunchesContent .launches-kpis article { padding:7px; } #influenceLaunchesContent .launches-kpis span { font-size:9px;line-height:1.3; } #influenceLaunchesContent .launches-kpis strong { font-size:15px; } }

.launch-package-summary { display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:5px; }
.launch-repurchase { border:1px solid #ddccf3;background:#f6f0fc;color:#8753b2;border-radius:6px;padding:3px 6px;font:inherit;cursor:pointer; }
.launch-repurchase:hover {background:#eadcf8;color:#6f3b9c;}

#influenceLaunchesContent .launch-identity small.launch-package-summary { display:flex;align-items:center;justify-content:space-between;gap:6px;max-width:100%;white-space:normal;opacity:1; }
#influenceLaunchesContent .launch-package-summary > span { flex:1;min-width:0;font-size:9px;line-height:1.5;overflow-wrap:anywhere; }
#influenceLaunchesContent .launch-package-summary .launch-repurchase { flex:0 0 auto;min-width:0;min-height:26px;max-width:90px;padding:4px 7px;font-size:10px;line-height:1.2;white-space:nowrap;box-shadow:none; }
#influenceLaunchesContent .launches-calendar-mode button { cursor:pointer;transition:background .15s,color .15s;box-shadow:none; }
#influenceLaunchesContent .launches-calendar-mode button[aria-pressed="false"]:hover { background:#eadff6;color:#73449f; }
#influenceLaunchesContent .launches-calendar-mode button[aria-pressed="true"]:hover { background:#7944bd;color:#fff; }
#influenceLaunchesContent .launches-calendar-mode button:focus-visible,
#influenceLaunchesContent .launch-repurchase:focus-visible { outline:2px solid #a678da;outline-offset:2px; }
#influenceLaunchesContent .launches-calendar-mode button:disabled { cursor:wait;opacity:.65; }

#influenceLaunchesContent #launchesCalendarMode[hidden] { display:none; }

#influenceLaunchesContent .launch-identity small.launch-package-summary { flex-direction:column;align-items:stretch;gap:7px; }
#influenceLaunchesContent .launch-package-summary .launch-repurchase { width:100%;max-width:none;min-height:28px;text-align:center; }

#influenceLaunchesContent .launches-table .launch-actions { min-width:130px;width:130px;max-width:130px;text-align:center; }
#influenceLaunchesContent .launch-actions > div { display:flex;flex-direction:column;gap:6px;align-items:stretch; }
#influenceLaunchesContent .launch-actions :is(button,a) { display:flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;width:100%;min-height:28px;padding:5px 8px;border:1px solid #dfcfee;border-radius:7px;background:#f5eefb;color:#8052a4;font-size:10px;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none; }
#influenceLaunchesContent .launch-actions a { border-color:#efd3e4;background:#fff0f7;color:#b34f91; }
#influenceLaunchesContent .launch-actions svg { width:14px;height:14px;flex:none; }
#influenceLaunchesContent .launch-actions button:hover { background:#eaddf6;color:#6b3b91; }
#influenceLaunchesContent .launch-actions a:hover { background:#fbe0ef;color:#9a3c79; }

/* Highlight information rows uniformly; reserve cell emphasis for calendar days. */
#influenceLaunchesContent .launches-table tbody tr { --launch-active-row:#eef3fc; }
body:not(.theme-light) #influenceLaunchesContent .launches-table tbody tr { --launch-active-row:#2a3045; }
#influenceLaunchesContent .launches-table tbody tr.launch-selected { --launch-active-row:var(--launch-selected-hover); }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td:not(.launch-day),
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td:not(.launch-day):hover { background:var(--launch-active-row) !important;border-color:var(--launch-line);outline:none !important; }
body:not(.locked) #influenceLaunchesContent .launches-table tbody tr:hover > td.launch-day:hover { background:#dbe8fb !important;box-shadow:inset 0 0 0 2px #8aafe0 !important;outline:none !important;border-color:var(--launch-line); }
body:not(.locked):not(.theme-light) #influenceLaunchesContent .launches-table tbody tr:hover > td.launch-day:hover { background:#304b69 !important;box-shadow:inset 0 0 0 2px #648db9 !important; }

#influenceLaunchesContent { grid-template-rows:auto auto minmax(0,1fr); }
#influenceLaunchesContent #launchesKpis { margin:0; }
#influenceLaunchesContent #launchesKpis .kpi-card { position:relative;min-height:78px;box-sizing:border-box;padding:16px 10px 13px 60px;border:1px solid var(--launch-line);border-radius:10px;background:linear-gradient(135deg,var(--panel),var(--launch-soft));box-shadow:none;overflow:hidden; }
#influenceLaunchesContent #launchesKpis .kpi-icon { position:absolute;top:17px;left:11px;display:grid;place-items:center;width:38px;height:43px;border-radius:10px;background:linear-gradient(140deg,#a770ff,#743df1);color:#fff;box-shadow:inset 0 1px 2px #ffffff50,0 5px 12px #0002; }
#influenceLaunchesContent #launchesKpis .kpi-icon svg { width:24px;height:24px; }
#influenceLaunchesContent #launchesKpis .kpi-card:nth-child(2) .kpi-icon { background:linear-gradient(140deg,#298fff,#0753d8); }
#influenceLaunchesContent #launchesKpis .kpi-card:nth-child(3) .kpi-icon { background:linear-gradient(135deg,#f3b746,#dd8120); }
#influenceLaunchesContent #launchesKpis .kpi-card:nth-child(4) .kpi-icon { background:linear-gradient(140deg,#aa79eb,#8954c3); }
#influenceLaunchesContent #launchesKpis .kpi-card:nth-child(5) .kpi-icon { background:linear-gradient(140deg,#20d58d,#139c68); }
#influenceLaunchesContent #launchesKpis .kpi-card:nth-child(6) .kpi-icon { background:linear-gradient(140deg,#29bed0,#198caa); }
#influenceLaunchesContent #launchesKpis .kpi-card:nth-child(7) .kpi-icon { background:linear-gradient(140deg,#ffa753,#e77a2b); }
#influenceLaunchesContent #launchesKpis .kpi-title { font-size:9px;line-height:1.4;letter-spacing:.035em;text-transform:uppercase;color:var(--muted); }
#influenceLaunchesContent #launchesKpis .kpi-value { font-size:clamp(16px,1.3vw,23px);font-weight:800;line-height:1.25;margin-top:5px;color:var(--ink); }
#influenceLaunchesContent .table-heading-actions #launchesAdd { min-height:34px;padding:7px 12px;white-space:nowrap;box-shadow:none; }
@media(max-width:1400px) { #influenceLaunchesContent #launchesKpis { grid-template-columns:repeat(4,minmax(0,1fr));gap:8px; } }
@media(max-width:650px) { #influenceLaunchesContent #launchesKpis { grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; } #influenceLaunchesContent #launchesKpis .kpi-card { min-height:56px;padding:9px 7px 9px 43px; } #influenceLaunchesContent #launchesKpis .kpi-icon { left:7px;top:11px;width:28px;height:32px;border-radius:8px; } #influenceLaunchesContent #launchesKpis .kpi-icon svg { width:19px;height:19px; } #influenceLaunchesContent #launchesKpis .kpi-title { font-size:8px; } #influenceLaunchesContent #launchesKpis .kpi-value { font-size:16px;margin-top:3px; } }
@media(max-height:650px) { #influenceLaunchesContent #launchesKpis .kpi-card { min-height:50px;padding-top:8px;padding-bottom:8px; } #influenceLaunchesContent #launchesKpis .kpi-icon { top:9px;height:32px;width:30px; } #influenceLaunchesContent #launchesKpis .kpi-value { font-size:16px;margin-top:2px; } }

#influenceLaunchesContent { grid-template-rows:auto minmax(0,1fr); }
#influenceLaunchesContent .launches-panel > .panel-heading { flex:none;align-items:center;margin-bottom:12px;gap:12px; }
#influenceLaunchesContent .launches-panel > .launches-filters { flex:none;border:0;border-top:1px solid var(--launch-line);border-bottom:1px solid var(--launch-line);border-radius:0;background:transparent;box-shadow:none;padding:12px 0;margin:0 0 12px; }
#influenceLaunchesContent .table-heading-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end; }
body:not(.locked) #influenceLaunchesContent .table-heading-actions #launchesAdd { display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:0;height:32px;min-height:32px;padding:0 11px;border:1px solid #8750cb;border-radius:7px;background:#8750cb;color:#fff;box-shadow:none;font:inherit;font-size:11px;line-height:1;white-space:nowrap;cursor:pointer; }
body:not(.locked) #influenceLaunchesContent #launchesAdd > span { display:inline;flex:none;width:auto;height:auto;background:none;border:0;font-size:18px;font-weight:400;line-height:1; }
body:not(.locked) #influenceLaunchesContent #launchesAdd > b { font-size:11px;font-weight:600; }
body:not(.locked) #influenceLaunchesContent #launchesAdd:hover { background:#7841b9;border-color:#7841b9;transform:none;box-shadow:none; }
body:not(.locked) #influenceLaunchesContent #launchesAdd:focus-visible { outline:2px solid #ba93e6;outline-offset:2px; }
@media(max-width:650px) { #influenceLaunchesContent .launches-panel > .panel-heading { align-items:flex-start;flex-wrap:wrap;gap:8px;margin-bottom:8px; } #influenceLaunchesContent .launches-panel > .launches-filters { padding:9px 0;margin-bottom:8px; } }
@media(max-height:650px) { #influenceLaunchesContent .launches-panel > .panel-heading { margin-bottom:6px; } #influenceLaunchesContent .launches-panel > .launches-filters { padding:6px 0;margin-bottom:6px; } }

body:not(.locked) #influenceLaunchesContent #launchesAdd > :is(span,b) { color:#fff; }

#influenceLaunchesContent .launch-day-button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:40px;padding:4px 2px;border:0;background:transparent;color:var(--muted);border-radius:7px;box-shadow:none;cursor:pointer; }
#influenceLaunchesContent .launch-day-button:hover { background:transparent;box-shadow:none;transform:none; }
#influenceLaunchesContent .launch-placement-chip { display:inline-flex;align-items:center;justify-content:center;gap:3px;padding:5px;border-radius:7px;background:#e8ddfb;color:#7942b0;min-width:26px;font-size:11px; }
#influenceLaunchesContent .launch-placement-chip small { font-size:9px; }
#influenceLaunchesContent .launch-placement-chip i { font-style:normal; }
#influenceLaunchesContent .launch-placement-chip.published { background:#dbf3e7;color:#14845b; }
#influenceLaunchesContent .launch-placement-chip.missed { background:#fee4e7;color:#c5374c; }
.launches-placement-dialog { width:min(660px,calc(100vw - 30px)); }
.launch-placement-note { color:var(--muted);font-size:12px;line-height:1.6; }
.launch-placement-entry { display:grid;grid-template-columns:1fr 1.2fr 1.5fr 32px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line); }
.launch-placement-entry label { display:grid;gap:7px;color:var(--muted);font-size:11px;min-width:0; }
.launch-placement-entry :is(input,select) { width:100%;min-width:0;box-sizing:border-box;height:38px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:var(--panel);color:var(--ink); }
.launch-placement-entry [data-entry-remove] { height:38px;min-width:0;border:1px solid #f2ccd3;background:#fff0f2;color:#b63b50;border-radius:8px;cursor:pointer; }
#launchPlacementAdd { margin-top:14px; }
#launchPlacementError { color:#c5374c;font-size:12px; }
.launches-placement-dialog footer { display:flex;justify-content:flex-end;margin-top:16px; }
.launch-placement-save { border:0;border-radius:8px;padding:10px 18px;background:#8750cb;color:#fff;cursor:pointer; }
@media(max-width:500px) { .launch-placement-entry { grid-template-columns:1fr 1fr 32px; } .launch-placement-entry label:nth-child(3) { grid-column:1 / 3;grid-row:2; } .launch-placement-entry [data-entry-remove] { grid-column:3;grid-row:1 / 3;align-self:center; } }
@media(max-width:650px) {
 #influenceLaunchesContent .launches-table { --launch-geo-width:48px;--launch-pinned-left:178px; }
 #influenceLaunchesContent .launches-table:has(th.launch-identity[hidden]) { --launch-pinned-left:48px; }
 body:not(.locked) #influenceLaunchesContent .launches-table .launch-identity { min-width:130px;width:130px;max-width:130px;white-space:normal; }
 body:not(.locked) #influenceLaunchesContent .launches-table .launch-pinned-remaining { min-width:58px;width:58px;max-width:58px;padding-left:5px;padding-right:5px; }
 body:not(.locked) #influenceLaunchesContent .launches-table .launch-geo { padding-left:4px;padding-right:4px; }
 #influenceLaunchesContent .launch-geo > span { flex-direction:column;gap:3px; }
}

#launchPlacementDialog .launch-placement-entry select { appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%239278a7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 12px center; }

body.theme-light:not(.locked) #influenceSearchContent .influence-search-table tbody tr.influence-search-ready > td { background:#eefaf3; }
body.theme-light:not(.locked) #influenceSearchContent .influence-search-table tbody tr.influence-search-ready:hover > td,
body.theme-light:not(.locked) #influenceSearchContent .influence-search-table tbody tr.influence-search-ready:hover > td:hover { background:#e1f5e9; }
body:not(.theme-light):not(.locked) #influenceSearchContent .influence-search-table tbody tr.influence-search-ready > td { background:#173b30; }
body:not(.theme-light):not(.locked) #influenceSearchContent .influence-search-table tbody tr.influence-search-ready:hover > td,
body:not(.theme-light):not(.locked) #influenceSearchContent .influence-search-table tbody tr.influence-search-ready:hover > td:hover { background:#204a3b; }

body.theme-light:not(.locked) #influenceCrmContent .influence-crm-table tbody tr.influence-crm-finalized > td { background:#eefaf3; }
body.theme-light:not(.locked) #influenceCrmContent .influence-crm-table tbody tr.influence-crm-finalized:hover > td { background:#e1f5e9; }
body:not(.theme-light):not(.locked) #influenceCrmContent .influence-crm-table tbody tr.influence-crm-finalized > td { background:#173b30; }

#influenceCrmContent .crm-sheet-action .influence-finalize-blogger { display:block;width:100%;min-height:30px;margin-bottom:6px;padding:6px 9px;border:1px solid #c5dfcf;border-radius:7px;background:#e8f6ed;color:#25815a;font-size:10px;font-weight:650;white-space:nowrap;cursor:pointer; }
#influenceCrmContent .crm-sheet-action .influence-finalize-blogger:hover { background:#d6eddf;color:#176b46; }
#influenceCrmContent .crm-sheet-action .influence-finalize-blogger:disabled { opacity:.6;cursor:wait; }
body.theme-light:not(.locked) #influenceCrmContent .influence-crm-table tbody tr.influence-crm-finalized:hover > td:hover { background:#e1f5e9; }
body:not(.theme-light):not(.locked) #influenceCrmContent .influence-crm-table tbody tr.influence-crm-finalized:hover > td,
body:not(.theme-light):not(.locked) #influenceCrmContent .influence-crm-table tbody tr.influence-crm-finalized:hover > td:hover { background:#204a3b; }

/* Blogger base uses row dividers and a uniform hover across frozen and regular cells. */
body:not(.locked) #influenceCrmContent .influence-crm-table :is(th,td) { border-left:0 !important;border-right:0 !important; }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td,
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td:hover { background:var(--crm-status-row-hover,#f2ebfa) !important;box-shadow:none !important;outline:none !important;border-bottom-color:var(--line); }
body:not(.locked):not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:hover > td,
body:not(.locked):not(.theme-light) #influenceCrmContent .influence-crm-table tbody tr:hover > td:hover { background:var(--crm-status-row-hover,#282034) !important; }

#influenceCrmDialog .influence-crm-fields select { appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23877199' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 13px center; }
#influenceCrmDialog .influence-crm-fields :is(input,textarea)[readonly] { background:#f0edf6;color:#81728d;border-color:#e5dfed;box-shadow:none;cursor:default; }
#influenceCrmDialog .influence-crm-fields :is(input,textarea)[readonly]:focus { box-shadow:none;border-color:#d5c9e1; }
#influenceCrmDialog .influence-crm-fields select:disabled,
#influencePersonDialog select:disabled,
#launchesDialog select:disabled { opacity:1;background-color:#f0edf6;color:#81728d;cursor:default; }

#influencePersonDialog select { appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23877199' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 13px center; }
#influencePersonDialog .search-platform-select { position:relative;min-width:0; }
#influencePersonDialog .search-platform-select > i { position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;align-items:center;pointer-events:none;z-index:1; }
#influencePersonDialog .search-platform-select select { padding-left:46px; }
#influencePersonDialog .search-platform-select .crm-platform-icon { margin:0; }

#influenceCrmContent .crm-sheet-media .crm-statistics-preview { display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:34px;padding:7px 12px;border:1px solid rgba(139,92,246,.22);border-radius:8px;background:rgba(139,92,246,.13);color:var(--crm-accent,#8b5cf6);font-size:12px;font-weight:600;line-height:18px;box-shadow:none; }


#influenceSearchBody .archive-purge-button { display:block;margin-top:6px;color:#c7354b;border-color:#f2c7ce;background:#fff0f2; }

/* Unity workspace shares the CRM components and keeps its data separate. */
#unityView { display:grid;gap:18px; }
#unityView[hidden] { display:none; }
.unity-heading { margin-bottom:0; }
.unity-workspace-chip { padding:8px 15px;border:1px solid var(--line);border-radius:10px;color:var(--purple);font-weight:700; }
.unity-filters { grid-template-columns:repeat(5,minmax(100px,1fr)) auto;margin:0; }
.unity-kpis { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.unity-dashboard-grid { display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:16px; }
.unity-dashboard-grid .unity-offers { grid-row:span 3;min-width:0; }
#unityView .panel { min-width:0; }
#unityView .panel-heading h2 { font-size:15px; }
.unity-empty { display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:30px;text-align:center;color:var(--muted);white-space:normal; }
.unity-empty > svg { width:30px;height:30px;opacity:.45; }
.unity-empty p { max-width:480px;margin:0;line-height:1.6; }
.unity-generator .unity-empty { min-height:330px; }
@media(max-width:1100px){.unity-dashboard-grid{grid-template-columns:1fr}.unity-dashboard-grid .unity-offers{grid-row:auto}.unity-filters{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.unity-filters{grid-template-columns:repeat(2,minmax(0,1fr));}.unity-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Equal-size workspace, visibility and theme controls. */
body:not(.locked) .sidebar-display-tools :is(#toggleWorkspace,#toggleProfitVisibility,#themeToggle) { display:grid;place-items:center;box-sizing:border-box;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;padding:0;border:1px solid #433451;border-radius:8px;box-shadow:none;color:#c6afea;background:#241b31; }
body:not(.locked) .sidebar-display-tools :is(#toggleWorkspace,#toggleProfitVisibility,#themeToggle)[hidden] { display:none; }
body:not(.locked) .sidebar-display-tools :is(#toggleWorkspace,#toggleProfitVisibility,#themeToggle) svg { display:block;width:22px;height:22px; }
body.theme-light:not(.locked) .sidebar-display-tools :is(#toggleWorkspace,#toggleProfitVisibility,#themeToggle) { background:#f0e7f8;border-color:#d9c6eb;color:#795092; }
body:not(.locked) .sidebar-display-tools #toggleProfitVisibility[aria-pressed="true"] { background:#7842bd;border-color:#9968d9;color:#fff; }

#unityView:has(#unityDashboardContent),#unityView:has(#unityDashboardView) { display:block; }

.unity-media { display:grid;gap:16px; }
.unity-media .media-format-panel { margin:0; }
.unity-media-count { display:flex;align-items:center;justify-content:center;flex-direction:column;width:112px;height:112px;border:10px solid var(--line);border-radius:50%;margin-top:14px;color:var(--muted); }
.unity-media-count strong { font-size:26px;color:var(--ink); }
.unity-media-count span { font-size:11px; }

#unityView:has(#unityMediaView) { display:block; }


#employeeForm .employee-access-levels { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;min-width:0; }
#employeeForm .employee-access-levels > label { display:flex;flex-direction:column;gap:8px;min-width:0; }
#employeeForm .employee-access-levels select { width:100%;min-width:0; }
@media(max-width:900px){#employeeForm .employee-access-levels { grid-template-columns:1fr; }}

.unity-media-rules { padding:12px 16px;margin:12px 0;color:var(--muted);font-size:12px; }
.unity-media-rules summary { cursor:pointer;font-weight:600; }
.unity-media-rules p { margin:10px 0 0;line-height:1.7; }

#unityView:has(#unityGeneratorView) { display:block; }
.unity-generator-length { margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap; }
/* One workspace control; the menu opens beside it on desktop and mobile. */
body:not(.locked) .sidebar-display-tools #directionSwitcher { display:block;position:static; }
body:not(.locked) .sidebar-display-tools #toggleWorkspace { position:relative; }
body:not(.locked) .sidebar-display-tools #toggleWorkspace:disabled { opacity:.7;cursor:default; }
body:not(.locked) .sidebar-display-tools #workspaceMenu { position:fixed;z-index:1200;box-sizing:border-box;padding:7px;border:1px solid #49345f;border-radius:13px;background:#21182d;color:#e7d9f3;box-shadow:0 12px 36px #0005;text-align:left; }
body:not(.locked) .sidebar-display-tools #workspaceMenu[hidden] { display:none; }
body:not(.locked) .sidebar-display-tools #workspaceMenu p { margin:5px 9px 8px;font-size:10px;font-weight:700;letter-spacing:.04em;opacity:.7; }
body:not(.locked) .sidebar-display-tools #workspaceMenu button { display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;max-width:none;min-width:0;height:42px;min-height:42px;padding:8px 10px;margin:2px 0;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font-size:12px;font-weight:700;text-align:left;box-shadow:none;cursor:pointer; }
body:not(.locked) .sidebar-display-tools #workspaceMenu button[hidden] { display:none; }
body:not(.locked) .sidebar-display-tools #workspaceMenu button:is(:hover,:focus-visible) { background:#38254d;outline:2px solid #a578da;outline-offset:-2px; }
body:not(.locked) .sidebar-display-tools #workspaceMenu button[aria-checked="true"] { background:#423052;border-color:#765095;color:#f5eaff; }
.workspace-menu-icon { display:flex;flex:0 0 22px; }
.workspace-menu-check { margin-left:auto;visibility:hidden; }
[aria-checked="true"] > .workspace-menu-check { visibility:visible; }
body.theme-light:not(.locked) .sidebar-display-tools #workspaceMenu { background:#fff;color:#674b7e;border-color:#dfcdeb;box-shadow:0 12px 36px #40235d26; }
body.theme-light:not(.locked) .sidebar-display-tools #workspaceMenu button:is(:hover,:focus-visible) { background:#f7f0fc; }
body.theme-light:not(.locked) .sidebar-display-tools #workspaceMenu button[aria-checked="true"] { background:#eee0f8;border-color:#dac0ee;color:#7343a1; }

body:not(.locked) .sidebar-display-tools #workspaceMenu button::before { content:none; }

body:not(.locked) .sidebar-display-tools #workspaceMenu button[aria-checked="false"] { background:transparent;border-color:transparent;box-shadow:none; }
body:not(.locked) .sidebar-display-tools #workspaceMenu button[aria-checked="false"]:hover { background:#38254d; }
body.theme-light:not(.locked) .sidebar-display-tools #workspaceMenu button[aria-checked="false"]:hover { background:#f7f0fc; }
body:not(.locked) .sidebar-display-tools #workspaceMenu .workspace-menu-icon { width:26px;height:26px;align-items:center;justify-content:center;flex-basis:26px; }
body:not(.locked) .sidebar-display-tools #workspaceMenu .workspace-logo { width:24px;height:24px;display:block; }
body:not(.locked) .sidebar-display-tools #toggleWorkspace > .workspace-logo { width:23px;height:23px; }
/* Dashboard filters keep their existing controls and handlers inside a drawer. */
#dashboardFilterToggle { position:fixed;right:18px;top:45%;z-index:85;display:flex;align-items:center;gap:8px;padding:12px 16px;border:1px solid #b98be5;border-radius:12px 0 0 12px;background:#8650c5;color:white;box-shadow:0 6px 22px #59347933;font:inherit;font-size:12px;font-weight:700;cursor:pointer; }
#dashboardFilterToggle[hidden] { display:none; }
#dashboardFilterToggle:hover { background:#7541b4; }
#dashboardFilterToggle:focus-visible { outline:3px solid #bc94ed;outline-offset:3px; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) { position:fixed;inset:0 0 0 auto;margin:0;width:min(390px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:0;border:0;border-left:1px solid #49345f;border-radius:18px 0 0 18px;background:#21182d;color:#e7d9f3;box-shadow:-12px 0 44px #0004; }
:is(#dashboardFilterDialog,#unityPerformanceFilters)[open] { display:flex;flex-direction:column; }
:is(#dashboardFilterDialog,#unityPerformanceFilters)::backdrop { background:#19112355; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) > header { display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid #49345f; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) h2 { margin:0;font-size:20px; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) header p { margin:6px 0 0;font-size:11px;opacity:.7; }
:is(#dashboardFilterClose,#unityPerformanceFilters .dialog-close) { width:34px;height:34px;padding:0;border:1px solid #65487e;border-radius:9px;background:transparent;color:inherit;font-size:24px;cursor:pointer; }
:is(#dashboardFilterBody,#unityPerformanceFilterBody) { flex:1;overflow:auto;padding:24px; }
body :is(#dashboardFilterDialog,#unityPerformanceFilters) :is(#dashboardFilterBody,#unityPerformanceFilterBody) .filters { display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:20px!important; }
body :is(#dashboardFilterDialog,#unityPerformanceFilters) .filters label:not([hidden]) { display:grid!important;gap:8px;min-width:0; }
body :is(#dashboardFilterDialog,#unityPerformanceFilters) .filters label[hidden] { display:none!important; }
body :is(#dashboardFilterDialog,#unityPerformanceFilters) .filters :is(input,select) { box-sizing:border-box;width:100%;max-width:100%;height:46px;padding:10px 12px;border:1px solid #65487e;border-radius:10px;background:#2b203a;color:#e7d9f3;font-size:13px; }
body :is(#dashboardFilterDialog,#unityPerformanceFilters) .filters label > span { font-size:11px;font-weight:700; }
body :is(#dashboardFilterDialog,#unityPerformanceFilters) .filters button { min-height:42px; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) > footer { padding:16px 24px 24px;border-top:1px solid #49345f; }
#dashboardFilterDone { width:100%;padding:13px;border:0;border-radius:10px;background:#8650c5;color:white;font-weight:700;cursor:pointer; }
body.theme-light :is(#dashboardFilterDialog,#unityPerformanceFilters) { background:#fff;color:#674b7e;border-color:#dfcdeb; }
body.theme-light :is(#dashboardFilterDialog,#unityPerformanceFilters) > :is(header,footer) { border-color:#ede3f4; }
body.theme-light :is(#dashboardFilterDialog,#unityPerformanceFilters) :is(#dashboardFilterClose,#unityPerformanceFilters .dialog-close) { border-color:#e7d9f1; }
body.theme-light :is(#dashboardFilterDialog,#unityPerformanceFilters) .filters :is(input,select) { background:#faf6fd;border-color:#e7d9f1;color:#674b7e; }
body #dashboardView > #analyticsStatusDock,body #unityDashboardView > #unityAnalyticsStatusDock,body #influenceDashboardContent > #influenceAnalyticsDock { margin:8px 0 12px; }
@media(max-width:780px){#dashboardFilterToggle{right:10px;top:auto;bottom:24px;border-radius:12px;}:is(#dashboardFilterDialog,#unityPerformanceFilters) > header{padding-top:max(24px,env(safe-area-inset-top));}:is(#dashboardFilterDialog,#unityPerformanceFilters) > footer{padding-bottom:max(24px,env(safe-area-inset-bottom));}}

body.locked #dashboardFilterToggle { display:none; }

#dashboardFilterToggle { right:24px;bottom:24px;top:auto;width:56px;height:56px;box-sizing:border-box;justify-content:center;padding:0;border-radius:50%; }
#dashboardFilterToggle > span { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
#dashboardFilterToggle > svg { width:24px;height:24px; }
@media(min-width:1101px){
body:not(.locked):not(.dashboard-matrix-mode) :is(#neonDashboard,#unityNeonDashboard,#influenceWorkspace) { height:var(--dashboard-fit-height,calc(100dvh - 170px))!important; }
}
@media(max-width:780px){#dashboardFilterToggle{right:16px;bottom:max(20px,env(safe-area-inset-bottom));width:52px;height:52px;border-radius:50%;}}

/* Analytics lives with the dashboard filters rather than taking up dashboard space. */
:is(#dashboardFilterBody,#unityPerformanceFilterBody) > :is(#analyticsStatusDock,#unityAnalyticsStatusDock,#influenceAnalyticsDock) { display:block;margin:24px 0 0;padding-top:20px;border-top:1px solid #65487e; }
body.theme-light :is(#dashboardFilterBody,#unityPerformanceFilterBody) > :is(#analyticsStatusDock,#unityAnalyticsStatusDock,#influenceAnalyticsDock) { border-color:#e7d9f1; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) :is(#dashboardFilterBody,#unityPerformanceFilterBody) details { width:100%; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) :is(#dashboardFilterBody,#unityPerformanceFilterBody) summary { width:auto;white-space:normal;line-height:1.5; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) :is(#dashboardFilterBody,#unityPerformanceFilterBody) :is(#analyticsStatus,#unityAnalyticsStatus,#influenceAnalyticsStatus) :is(#freshnessBanner,#unityFreshnessBanner,#influenceFreshnessBanner) { position:static!important;box-sizing:border-box;width:100%!important;max-width:100%;margin:12px 0 0!important;padding:14px!important;box-shadow:none!important;flex-direction:column;align-items:stretch;height:auto!important; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) .freshness-main { min-width:0; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) .freshness-side { align-items:stretch!important;text-align:left; }
@media(min-width:1101px){
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) { grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-card { box-sizing:border-box;min-height:92px;padding:18px 14px 16px 72px;display:flex;flex-direction:column;justify-content:center; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-icon { width:42px;height:46px;left:15px;top:50%;transform:translateY(-50%);border-radius:11px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-icon svg { width:26px;height:26px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-title { font-size:9px;line-height:1.4; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-value { font-size:clamp(18px,1.45vw,28px);line-height:1.2;margin-top:5px; }
}

@media(min-width:1101px) and (max-width:1350px){
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-card { padding:44px 12px 12px;min-height:100px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-icon { width:28px;height:30px;left:12px;top:9px;transform:none;border-radius:9px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-icon svg { width:21px;height:21px; }
}

/* Two square dashboard actions share the KPI row. */
.dashboard-kpi-row { display:flex;align-items:stretch;gap:12px;margin-bottom:14px;min-width:0; }
body:not(.locked) .dashboard-kpi-row > :is(#kpiGrid,#unityKpiGrid,#influenceKpis) { flex:1;min-width:0;margin:0!important; }
#dashboardKpiActions { display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;box-sizing:border-box;padding:12px;border:1px solid #49345f;border-radius:10px;background:#21182d; }
#dashboardKpiActions[hidden],body.locked #dashboardKpiActions { display:none; }
body #dashboardKpiActions > button { position:static;display:grid;place-items:center;box-sizing:border-box;width:42px;height:42px;padding:0;border:1px solid #8054a7;border-radius:9px;background:#39254d;color:#dec5f1;box-shadow:none;cursor:pointer; }
body #dashboardKpiActions > button:hover { background:#7042a1;color:white; }
body #dashboardKpiActions > button:focus-visible { outline:2px solid #ac79d9;outline-offset:2px; }
body.theme-light #dashboardKpiActions { border-color:#e5d7f0;background:#fbf8fd; }
body.theme-light #dashboardKpiActions > button { border-color:#dfc9ef;background:#eee3f8;color:#795092; }
body.theme-light #dashboardKpiActions > button:hover { background:#dcc3ee; }
#dashboardFilterFields[hidden],#dashboardAnalyticsFields[hidden] { display:none!important; }
#dashboardAnalyticsFields > :is(#analyticsStatusDock,#unityAnalyticsStatusDock,#influenceAnalyticsDock) { display:block;margin:0;padding:0;border:0; }
@media(min-width:1101px){
body:not(.locked):is(.theme-light,:not(.theme-light)) .dashboard-kpi-row :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-card { padding-left:64px;padding-right:10px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) .dashboard-kpi-row :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-icon { left:12px;width:38px;height:42px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) .dashboard-kpi-row :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-value { font-size:clamp(16px,1.3vw,26px); }
}
@media(min-width:1101px) and (max-width:1350px){
body:not(.locked):is(.theme-light,:not(.theme-light)) .dashboard-kpi-row :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-card { padding-left:10px;padding-top:44px; }
body:not(.locked):is(.theme-light,:not(.theme-light)) .dashboard-kpi-row :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-icon { width:28px;height:30px; }
}
@media(max-width:1100px){.dashboard-kpi-row{flex-wrap:wrap;}#dashboardKpiActions{margin-left:auto;}.dashboard-kpi-row > .kpi-grid{flex-basis:100%!important;}}
/* Stacked actions finish the KPI row at exactly the cards' height. */
body #dashboardKpiActions { flex-direction:column;justify-content:stretch;align-items:stretch;gap:8px;width:42px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none; }
body.theme-light #dashboardKpiActions { border:0;background:transparent; }
body #dashboardKpiActions > button { flex:1;width:42px;height:auto;min-height:0;border-radius:9px; }
body #dashboardKpiActions > button svg { width:20px;height:20px; }
@media(max-width:1100px){body #dashboardKpiActions{height:84px;}}
/* Dashboard actions use the same quiet surfaces as their neighbouring cards. */
body #dashboardKpiActions > button { border-color:#493d5a;border-radius:9px;background:linear-gradient(130deg,#211b2b,#241d30);color:#c8b3df;box-shadow:none;transition:background .15s,border-color .15s; }
body #dashboardKpiActions > button:hover { background:#30253d;border-color:#87659f;color:#eee2fa; }
body.theme-light #dashboardKpiActions > button { border-color:#e5d7f0;background:linear-gradient(130deg,#fbf8fd,#faf7fd);color:#826a96; }
body.theme-light #dashboardKpiActions > button:hover { background:#f3edf8;border-color:#cdb5df;color:#674b7e; }
body #dashboardKpiActions > button:focus-visible { outline:2px solid #b292cc;outline-offset:2px; }
body #dashboardKpiActions > button[aria-expanded="true"] { border-color:#a583c2; }
@media(prefers-reduced-motion:reduce){body #dashboardKpiActions > button{transition:none;}}
/* One unified card finishes the KPI row; each half is an independent action. */
body #dashboardKpiActions { width:46px;gap:0;padding:0;overflow:hidden;border:1px solid #493d5a;border-radius:9px;background:linear-gradient(130deg,#211b2b,#241d30); }
body.theme-light #dashboardKpiActions { border:1px solid #e5d7f0;background:linear-gradient(130deg,#fbf8fd,#faf7fd); }
body #dashboardKpiActions > button,body.theme-light #dashboardKpiActions > button { width:100%;border:0;border-radius:0;background:transparent;box-shadow:none; }
body #dashboardKpiActions > button + button { border-top:1px solid #493d5a; }
body.theme-light #dashboardKpiActions > button + button { border-top:1px solid #e5d7f0; }
body #dashboardKpiActions > button:focus-visible { outline:2px solid #b292cc;outline-offset:-3px; }
/* KPI cards and their action card share the white table surface. */
body.theme-light:not(.locked) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-card,
body.theme-light:not(.locked) #dashboardKpiActions { background:#fff; }

body #dashboardKpiActions > #dashboardAnalyticsToggle { position:relative; }
.dashboard-analytics-indicator { position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:#efb43c;box-shadow:0 0 0 2px #fff;pointer-events:none; }
#dashboardAnalyticsToggle[data-ready="true"] .dashboard-analytics-indicator { background:#20b47d; }
body:not(.theme-light) .dashboard-analytics-indicator { box-shadow:0 0 0 2px #211b2b; }

/* Analytics is a compact, non-modal popover beneath its KPI button. */
#dashboardAnalyticsPopover { position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px;border:1px solid #493d5a;border-radius:12px;background:#211b2b;color:#e7d9f3;box-shadow:0 12px 36px #0004; }
#dashboardAnalyticsPopover::backdrop { background:transparent;backdrop-filter:none; }
#dashboardAnalyticsPopover > :is(#analyticsStatusDock,#unityAnalyticsStatusDock,#influenceAnalyticsDock) { display:block;margin:0;padding:0; }
#dashboardAnalyticsPopover details { max-width:100%;width:100%; }
#dashboardAnalyticsPopover summary { width:auto;white-space:normal;line-height:1.5; }
#dashboardAnalyticsPopover :is(#analyticsStatus,#unityAnalyticsStatus,#influenceAnalyticsStatus) :is(#freshnessBanner,#unityFreshnessBanner,#influenceFreshnessBanner) { position:static!important;box-sizing:border-box;width:100%!important;max-width:100%;height:auto!important;min-height:0;margin:12px 0 0!important;padding:16px!important;box-shadow:none!important;display:flex;flex-direction:column;align-items:stretch;gap:16px; }
#dashboardAnalyticsPopover .freshness-main { align-items:flex-start;min-width:0; }
#dashboardAnalyticsPopover .freshness-main > div { display:grid;gap:8px; }
#dashboardAnalyticsPopover .freshness-side { flex-direction:column;align-items:stretch!important;text-align:left;gap:10px; }
#dashboardAnalyticsPopover .freshness-side > span { display:block; }
#dashboardAnalyticsPopover .freshness-action { width:100%; }
body.theme-light #dashboardAnalyticsPopover { background:#fff;color:#674b7e;border-color:#e5d7f0;box-shadow:0 12px 36px #40235d26; }

#dashboardAnalyticsPopover { transition:none;animation:none; }

/* Shared daily release history. */
.nav-updates { margin-top:12px; }
.nav-updates span { white-space:nowrap; }
.updates-view { --u-surface:#211d30;--u-soft:#282238;--u-border:#ffffff12;--u-text:#eee9f8;--u-muted:#a49ab5;--u-accent:#bda2ff;width:100%;max-width:none;min-width:0;margin:0;box-sizing:border-box;color:var(--u-text); }
body.theme-light .updates-view { --u-surface:#fff;--u-soft:#f7f4fc;--u-border:#ece6f3;--u-text:#40334f;--u-muted:#8d809c;--u-accent:#8260c4; }
.updates-hero { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:34px 38px;margin-bottom:30px;border:1px solid var(--u-border);border-radius:24px;background:linear-gradient(120deg,var(--u-surface) 50%,var(--u-soft));overflow:hidden; }
.updates-hero .eyebrow { color:var(--u-accent);font-size:10px;letter-spacing:2px;margin:0 0 14px; }
.updates-hero h1 { margin:0;font-size:clamp(25px,3vw,38px);line-height:1.2;letter-spacing:-1px;color:var(--u-text); }
.updates-hero h1 span { color:var(--u-accent); }
.updates-hero p:not(.eyebrow) { font-size:13px;line-height:1.7;color:var(--u-muted);margin:12px 0 20px; }
.updates-hero-meta { display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--u-muted); }
.updates-hero-meta b { color:var(--u-text);font-weight:600; }
#updatesLatestDate { border-left:1px solid var(--u-border);padding-left:12px; }
.updates-live-dot { width:6px;height:6px;border-radius:50%;background:#56b493;box-shadow:0 0 0 4px #56b49312; }
.updates-hero-mark { flex:0 0 100px;height:100px;display:grid;place-items:center;transform:rotate(-12deg);border-radius:28px;background:linear-gradient(140deg,#aa86ee20,#aa86ee07);color:var(--u-accent); }
.updates-hero-mark svg { width:52px;height:52px; }
.updates-layout { display:grid;grid-template-columns:210px minmax(0,1fr);gap:32px;align-items:start; }
.updates-archive { position:sticky;top:24px;padding:16px 0; }
.updates-label { margin:0 0 14px;font-size:9px;font-weight:700;letter-spacing:1.7px;color:var(--u-muted); }
#updatesMonths { display:grid;gap:6px; }
#updatesMonths button { display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;border:1px solid transparent;border-radius:10px;padding:12px;color:var(--u-muted);background:transparent;font:inherit;font-size:12px;cursor:pointer; }
#updatesMonths button span::first-letter { text-transform:uppercase; }
#updatesMonths button:hover { background:var(--u-soft);color:var(--u-text); }
#updatesMonths button[aria-pressed="true"] { background:var(--u-surface);border-color:var(--u-border);color:var(--u-accent);font-weight:650;box-shadow:0 3px 14px #23123304; }
#updatesMonths small { font-size:10px;min-width:20px;text-align:center;padding:3px;border-radius:5px;background:var(--u-soft); }
.updates-archive-note { display:flex;gap:10px;border-top:1px solid var(--u-border);margin-top:24px;padding:18px 10px;color:var(--u-muted); }
.updates-archive-note>span { color:var(--u-accent); }
.updates-archive-note p { font-size:11px;line-height:1.8;margin:0; }
.updates-content { min-width:0; }
.updates-toolbar { display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px; }
.updates-toolbar .updates-label { margin:0 0 6px; }
#updatesResultCount { font-size:11px;color:var(--u-muted); }
.updates-search { display:flex;align-items:center;gap:9px;width:238px;max-width:100%;border:1px solid var(--u-border);border-radius:10px;padding:10px 12px;background:var(--u-surface); }
.updates-search svg { width:16px;height:16px;color:var(--u-muted);flex-shrink:0; }
.updates-view .updates-search input { width:100%;min-width:0;border:0;background:transparent;padding:0;margin:0;box-shadow:none;color:var(--u-text);font:inherit;font-size:12px;outline:none; }
.updates-search:focus-within { outline:2px solid var(--u-accent);outline-offset:2px; }
.updates-month-heading { text-transform:capitalize;font-size:21px;letter-spacing:-.4px;margin:32px 0 18px;color:var(--u-text); }
.updates-month-heading:first-child { margin-top:0; }
.updates-week-heading { display:flex;align-items:center;gap:12px;font-size:10px;color:var(--u-muted);margin:22px 0 18px; }
.updates-week-heading span:first-child { font-size:10px;font-weight:650;padding:5px 9px;border-radius:6px;border:1px solid var(--u-border);color:var(--u-accent);background:var(--u-surface);white-space:nowrap; }
.updates-week-heading:after { content:'';height:1px;flex:1;background:var(--u-border); }
.updates-day { position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);gap:16px;margin-bottom:20px; }
.updates-day:before { content:'';position:absolute;width:1px;top:55px;bottom:-20px;left:23px;background:var(--u-border); }
.updates-date-tile { height:53px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;border-radius:11px;background:var(--u-surface);border:1px solid var(--u-border); }
.updates-date-tile b { font-size:21px;font-weight:650;color:var(--u-text); }
.updates-date-tile span { font-size:9px;text-transform:uppercase;color:var(--u-muted); }
.updates-release { min-width:0;background:var(--u-surface);border:1px solid var(--u-border);border-radius:16px;box-shadow:0 6px 24px #1c0d3303;overflow:hidden; }
.updates-release summary { display:block;list-style:none;padding:21px 24px;cursor:pointer; }
.updates-release summary::-webkit-details-marker { display:none; }
.updates-release summary:focus-visible { outline:2px solid var(--u-accent);outline-offset:-3px; }
.updates-release-meta { display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:10px;color:var(--u-muted); }
.updates-release-meta time::first-letter { text-transform:uppercase; }
.updates-latest { font-size:9px;padding:3px 6px;border-radius:5px;color:var(--u-accent);background:#ab83ee10; }
.updates-release-title { display:flex;align-items:center;gap:12px;margin:12px 0 8px; }
.updates-release-title h3 { flex:1;min-width:0;font-size:18px;font-weight:650;letter-spacing:-.3px;line-height:1.4;margin:0;color:var(--u-text); }
.release-version { font-size:10px;font-weight:650;padding:5px 8px;border-radius:6px;background:#aa86ee14;color:var(--u-accent);white-space:nowrap; }
.updates-chevron { color:var(--u-muted);font-size:18px;transition:transform .15s; }
.updates-release[open] .updates-chevron { transform:rotate(180deg); }
.updates-item-count { font-size:10px;color:var(--u-muted); }
.updates-view .release-list { list-style:none;counter-reset:release-item;display:grid;gap:0;padding:0 24px 8px;margin:0; }
.release-list li { position:relative;counter-increment:release-item;display:block;margin:0;padding:17px 0 17px 35px;border-top:1px solid var(--u-border);overflow-wrap:anywhere; }
.release-list li:before { content:counter(release-item,decimal-leading-zero);position:absolute;left:0;top:18px;color:var(--u-accent);font-size:10px;font-weight:600; }
.release-list strong { display:block;font-size:12px;font-weight:650;line-height:1.6;color:var(--u-text); }
.release-list p { font-size:12px;line-height:1.85;color:var(--u-muted);margin:5px 0 0; }
.updates-empty { text-align:center;padding:50px 20px;border:1px dashed var(--u-border);border-radius:16px;color:var(--u-muted);font-size:13px; }
.updates-empty p { font-size:12px;line-height:1.6; }
@media(max-width:1000px) { .updates-layout { grid-template-columns:170px minmax(0,1fr);gap:20px; }.updates-hero { padding:28px; }.updates-hero-mark { flex-basis:80px;height:80px; } }
@media(max-width:700px) { .updates-hero { padding:24px;border-radius:18px;margin-bottom:20px; }.updates-hero-mark { display:none; }.updates-layout { grid-template-columns:minmax(0,1fr);gap:16px; }.updates-archive { position:static;padding:0; }.updates-archive>.updates-label,.updates-archive-note { display:none; }#updatesMonths { display:flex;overflow:auto;padding:2px; }#updatesMonths button { width:auto;flex-shrink:0; }.updates-toolbar { gap:10px;margin-bottom:22px; }.updates-search { width:180px;padding:10px; }.updates-day { grid-template-columns:36px minmax(0,1fr);gap:10px; }.updates-day:before { left:18px; }.updates-date-tile { height:46px; }.updates-date-tile b { font-size:18px; }.updates-release summary { padding:16px; }.updates-release-title { flex-wrap:wrap;gap:8px; }.updates-release-title h3 { flex-basis:100%;font-size:17px; }.updates-chevron { margin-left:auto; }.updates-view .release-list { padding:0 16px 4px; }.release-list li { padding-left:27px; }.updates-hero-meta { font-size:10px;gap:8px; }.updates-week-heading { gap:8px;font-size:9px; } }

/* Compact archive above the full-width timeline. */
.updates-layout { display:block; }
.updates-hero { padding:26px 32px;margin-bottom:22px; }
.updates-hero-mark { flex-basis:80px;height:80px;border-radius:23px; }
.updates-hero-mark svg { width:43px;height:43px; }
.updates-archive { position:static;display:flex;align-items:center;gap:24px;padding:0 0 20px;margin-bottom:22px;border-bottom:1px solid var(--u-border); }
.updates-archive>.updates-label { display:block;margin:0;flex-shrink:0; }
#updatesMonths { display:flex;gap:8px;overflow-x:auto;min-width:0;padding:2px; }
#updatesMonths button { width:auto;flex-shrink:0;padding:10px 14px; }
.updates-toolbar { margin-bottom:20px; }
.updates-toolbar>div { display:flex;align-items:center;gap:14px; }
.updates-toolbar .updates-label { margin:0; }
.updates-release summary { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;padding:20px 24px; }
.updates-release-meta { grid-column:1;grid-row:1; }
.updates-release-title { display:contents; }
.updates-release-title h3 { grid-column:1;grid-row:2; }
.updates-release-title .release-version { grid-column:2;grid-row:1;justify-self:start;margin-right:32px; }
.updates-chevron { grid-column:2;grid-row:1 / 3;justify-self:end;align-self:center; }
.updates-item-count { grid-column:2;grid-row:2;margin-right:32px; }
@media(max-width:700px) {
 .updates-hero { padding:24px; }
 .updates-archive { display:block;padding-bottom:14px;margin-bottom:18px; }
 .updates-archive>.updates-label { display:none; }
 .updates-release summary { padding:16px;gap:10px; }
 .updates-release-meta { grid-column:1 / 3; }
 .updates-release-title h3 { grid-column:1 / 3;grid-row:2; }
 .updates-release-title .release-version { grid-column:1;grid-row:3;margin:0; }
 .updates-item-count { grid-column:1;grid-row:4;margin:0; }
 .updates-chevron { grid-column:2;grid-row:3 / 5;margin:0; }
}

/* Filter count sits above the funnel without clipping the shared action card. */
body #dashboardKpiActions { overflow:visible; }
body #dashboardFilterToggle { overflow:visible; }
body #dashboardFilterToggle #dashboardFilterCount { position:absolute;right:-6px;top:-7px;display:grid;place-items:center;min-width:18px;height:18px;box-sizing:border-box;padding:0 4px;border:2px solid #241d30;border-radius:999px;background:#a270df;color:#fff;font-size:10px;font-weight:750;line-height:1;z-index:2;pointer-events:none; }
body.theme-light #dashboardFilterToggle #dashboardFilterCount { border-color:#fff;background:#9561cd; }
body #dashboardFilterToggle #dashboardFilterCount[hidden] { display:none; }
body #dashboardKpiActions > #dashboardFilterToggle { position:relative;inset:auto; }


/* Keep the page still while the filter drawer scrolls independently. */
html:has(:is(#dashboardFilterDialog,#unityPerformanceFilters)[open]) { overflow:hidden;overscroll-behavior:none; }
body.filter-drawer-open { position:fixed;top:var(--filter-scroll-offset,0);left:0;right:0;width:100%;overflow:hidden;overscroll-behavior:none; }
:is(#dashboardFilterDialog,#unityPerformanceFilters) { overscroll-behavior:contain; }
:is(#dashboardFilterBody,#unityPerformanceFilterBody) { min-height:0;overscroll-behavior:contain; }
body :is(#dashboardFilterClose,#unityPerformanceFilters .dialog-close) { display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;box-sizing:border-box;padding:0;margin:0;line-height:1; }
:is(#dashboardFilterClose,#unityPerformanceFilters .dialog-close) svg { display:block;width:18px;height:18px;pointer-events:none; }

/* Filter drawer entrance. */
@keyframes filter-drawer-enter { from { transform:translateX(100%);opacity:.5; } to { transform:translateX(0);opacity:1; } }
@keyframes filter-backdrop-enter { from { opacity:0; } to { opacity:1; } }
:is(#dashboardFilterDialog,#unityPerformanceFilters)[open] { animation:filter-drawer-enter 260ms cubic-bezier(.22,1,.36,1) both; }
:is(#dashboardFilterDialog,#unityPerformanceFilters)[open]::backdrop { animation:filter-backdrop-enter 220ms ease-out both; }
@media(prefers-reduced-motion:reduce) { :is(#dashboardFilterDialog,#unityPerformanceFilters)[open],:is(#dashboardFilterDialog,#unityPerformanceFilters)[open]::backdrop { animation:none; } }

/* KPI explanations are explicit tap/click disclosures, never hover popups. */
body .kpi-card .install-cost-tooltip { display:none!important; }
body .kpi-card.kpi-hint-open .install-cost-tooltip { display:block!important; }
body:not(.locked) :is(#kpiGrid,#unityKpiGrid,#influenceKpis) .kpi-card.kpi-hint-open { z-index:45!important; }
.kpi-card:has(.install-cost-tooltip) { cursor:pointer; }

/* Budget lists fill remaining card height, with complete rows and visible scrolling. */
:is(#neonDashboard,#unityNeonDashboard,#influenceWorkspace) .neon-budgets { display:flex;flex-direction:column; }
:is(#neonDashboard,#unityNeonDashboard,#influenceWorkspace) .neon-budgets > header { flex:0 0 auto;height:auto;min-height:32px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgba(145,119,175,.15); }
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList) { flex:1 1 0;height:auto;min-height:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:2px 10px 2px 0;scrollbar-width:thin;scrollbar-color:#ad8bc9 transparent;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-snap-type:y proximity; }
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList)::-webkit-scrollbar { display:block;width:5px;height:5px; }
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList)::-webkit-scrollbar-thumb { background:#ad8bc9;border-radius:5px; }
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList) .neon-budget { margin:0;padding:12px 0;min-height:52px;box-sizing:border-box;scroll-snap-align:start;border-bottom:1px solid rgba(145,119,175,.1); }
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList) .neon-budget:last-child { border-bottom:0; }

/* Scroll budgets without a visible scrollbar. */
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList) { scrollbar-width:none;scrollbar-gutter:auto; }
:is(#neonBudgetRows,#unityNeonBudgetRows,#influenceBudgetList)::-webkit-scrollbar { display:none;width:0;height:0; }

.neon-donut-click-hint { display:block;margin-top:5px;font-size:8px;line-height:1.3;font-weight:500;color:inherit;opacity:.75;white-space:nowrap; }

/* Dashboard view actions keep the same purple treatment in both themes. */
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard,#influenceWorkspace) button { background:linear-gradient(130deg,#8b51ff,#6838eb);border-color:#8f5eff;color:#fff; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard,#influenceWorkspace) button:hover { background:linear-gradient(130deg,#8b51ff,#6838eb);border-color:#8f5eff;color:#fff;filter:brightness(1.12); }

/* Budget progress uses the same purple as dashboard view buttons. */
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard,#influenceWorkspace) .neon-progress i { background:linear-gradient(130deg,#8b51ff,#6838eb); }

/* Shared purple accent for filter count and confirmation. */
body:not(.locked):is(.theme-light,:not(.theme-light)) #dashboardFilterToggle #dashboardFilterCount,
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#dashboardFilterDialog,#unityPerformanceFilters) #dashboardFilterDone { background:linear-gradient(130deg,#8b51ff,#6838eb);color:#fff; }


/* Compact launches entry with yesterday spend immediately before the action. */
:is(#neonDashboard,#unityNeonDashboard) .neon-launches { display:flex;align-items:center;box-sizing:border-box;padding:10px 14px; }
:is(#neonDashboard,#unityNeonDashboard) .neon-launches > header { width:100%;height:auto;min-height:0;margin:0;gap:12px; }
.neon-launch-spend-actions { display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0; }
:is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) { display:flex;flex-direction:column;gap:4px;text-align:right;font-size:9px;line-height:1.3;color:#aaa4c6; }
:is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) b { font-size:12px;font-weight:700;color:#e7d9f3;white-space:nowrap; }
body.theme-light :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) { color:#8a7798; }
body.theme-light :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) b { color:#6b527c; }
@media(max-width:500px){:is(#neonDashboard,#unityNeonDashboard) .neon-launches { height:auto;min-height:70px!important; }:is(#neonDashboard,#unityNeonDashboard) .neon-launches h2 { font-size:10px; } .neon-launch-spend-actions { gap:8px; }:is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) { font-size:8px; } }

/* Keep the launches heading, yesterday spend and action on one line. */
:is(#neonDashboard,#unityNeonDashboard) .neon-launches > header { flex-wrap:nowrap;gap:10px; }
:is(#neonDashboard,#unityNeonDashboard) .neon-launches h2 { flex:0 0 auto;white-space:nowrap;font-size:clamp(9px,.85vw,12px); }
.neon-launch-spend-actions { flex:0 0 auto;flex-wrap:nowrap;gap:10px; }
:is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) { flex-direction:row;align-items:center;gap:6px;white-space:nowrap;text-align:left;font-size:10px; }
:is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) > span { white-space:nowrap; }
:is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) b { font-size:12px; }
#neonAllLaunches { flex-shrink:0; }
@media(max-width:600px) {
 :is(#neonDashboard,#unityNeonDashboard) .neon-launches { padding:9px 8px;min-height:58px!important; }
 :is(#neonDashboard,#unityNeonDashboard) .neon-launches > header { gap:6px; }
 :is(#neonDashboard,#unityNeonDashboard) .neon-launches h2 { font-size:8px;letter-spacing:0; }
 .neon-launch-spend-actions { gap:6px; }
 :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) { gap:4px;font-size:8px; }
 :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) b { font-size:10px; }
 :is(#neonDashboard,#unityNeonDashboard) #neonAllLaunches { font-size:8px;padding:7px 6px; }
}
:is(#neonDashboard,#unityNeonDashboard) .neon-launches { container-type:inline-size; }
@container(max-width:450px) {
 :is(#neonDashboard,#unityNeonDashboard) .neon-launches h2 { font-size:9px;letter-spacing:0; }
 :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) > span { font-size:0; }
 :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) > span::after { content:'Спенд вчера';font-size:9px; }
 :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) b { font-size:10px; }
 .neon-launch-spend-actions { gap:6px; }
 :is(#neonDashboard,#unityNeonDashboard) #neonAllLaunches { padding:7px 6px;font-size:9px; }
}
@container(max-width:350px) {
 :is(#neonLaunchCardSummary,#unityNeonLaunchCardSummary) > span::after { content:'Вчера'; }
 :is(#neonDashboard,#unityNeonDashboard) .neon-launches > header { gap:6px; }
}

/* Compact personal column controls in the GEO table header. */
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header > h2 { margin-right:auto; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar { display:flex;align-items:center;gap:6px;margin:0;padding:0;border:0;background:transparent;flex-shrink:0; }
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar button { padding:5px 8px;font-size:9px;line-height:1.3;border:1px solid #a784cc55;background:transparent;color:#a889ce; }
body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar button { color:#805199; }
:is(#neonDashboard,#unityNeonDashboard) :is(#neonOfferCount,#unityNeonOfferCount) { display:none!important; }
@media(max-width:600px){:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header { flex-wrap:wrap;height:auto;min-height:28px; } }

/* Matching, right-aligned controls for grouping and personal columns. */
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header { align-items:center;gap:8px; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode,
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar button { display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;box-sizing:border-box;margin:0;padding:5px 8px;border:1px solid #a784cc55;border-radius:7px;background:transparent;color:#a889ce;font-family:inherit;font-size:9px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer; }
body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode { color:#805199; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode input { appearance:none;-webkit-appearance:none;width:12px;height:12px;margin:0;padding:0;border:1px solid currentColor;border-radius:3px;background:transparent;display:grid;place-items:center;cursor:pointer; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode input:checked { background:#8050d0;border-color:#8050d0; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode input:checked::after { content:'';width:5px;height:3px;border-left:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:translateY(-1px) rotate(-45deg); }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode:has(input:focus-visible) { outline:2px solid #a784cc;outline-offset:2px; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .neon-buyer-mode[hidden] { display:none; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar { align-items:center;align-self:center; }

/* Row actions share the header controls' right edge. */
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers td:has(> :is([data-neon-detail],[data-unity-row])) { text-align:right;padding-right:0;white-space:nowrap;width:1%; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers :is([data-neon-detail],[data-unity-row]) { margin-right:0; }

body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar [data-customize-table] { color:#805199;font-weight:500; }
body:not(.locked):not(.theme-light) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar [data-customize-table] { color:#a889ce;font-weight:500; }

/* Center the GEO heading against the shared header controls. */
body:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header { height:auto;min-height:28px;align-items:center; }
body:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header > h2 { display:flex;align-items:center;align-self:center;min-height:28px;margin-top:0;margin-bottom:0;padding:0;line-height:1; }

html:has(#tableCustomizerDialog[open]) { overflow:hidden;overscroll-behavior:none; }
body.table-customizer-open { position:fixed;top:var(--table-custom-scroll-offset,0);left:0;right:0;width:100%;overflow:hidden;overscroll-behavior:none; }
#tableCustomizerDialog,.table-customizer-pool,.table-customizer-list { overscroll-behavior:contain; }

:is(#neonDashboard,#unityNeonDashboard) .neon-offers th[data-custom-label="Действие"] { text-align:center;padding-left:0;padding-right:0; }

#tableCustomizerDialog .form-actions { flex-wrap:wrap;gap:10px; }
#fullAnalyticsTablePreset { margin-right:auto; }
#fullAnalyticsTablePreset[hidden] { display:none; }

body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar [data-reset-custom-table] { color:#805199;font-weight:500; }
body:not(.locked):not(.theme-light) :is(#neonDashboard,#unityNeonDashboard) .neon-offers > header .table-personalize-toolbar [data-reset-custom-table] { color:#a889ce;font-weight:500; }

/* Filled, distinct editor cards and adjacent preset controls. */
#tableCustomizerDialog .table-pool-item { background:#30263f;border:1px solid #614877; }
#tableCustomizerDialog .table-pool-item:has(input:checked) { background:#493260;border-color:#8654b5; }
#tableCustomizerDialog .table-customizer-row { background:#3c2a50;border-color:#6e488d;transition:opacity .12s ease,border-color .12s ease; }
#tableCustomizerDialog .table-customizer-row.is-dragging { background:#624080;opacity:.6;transform:none;border-color:#b992e2; }
body.theme-light #tableCustomizerDialog .table-pool-item { background:#f2eafa;border-color:#e2d2f0; }
body.theme-light #tableCustomizerDialog .table-pool-item:has(input:checked) { background:#e9d9f7;border-color:#cfafe9; }
body.theme-light #tableCustomizerDialog .table-customizer-row { background:#ebddf7;border-color:#d8bee9; }
body.theme-light #tableCustomizerDialog .table-customizer-row.is-dragging { background:#dbc2ef;border-color:#ad80ce; }
#tableCustomizerDialog .form-actions { justify-content:flex-start; }
#tableCustomizerDialog .form-actions #resetTableCustomizer { margin-right:0; }
#tableCustomizerDialog .form-actions #fullAnalyticsTablePreset { margin-right:0; }
#tableCustomizerDialog .form-actions #saveTableCustomizer { margin-left:auto; }

/* Launch history keeps a stable viewport-sized frame regardless of row count. */
:is(#neonLaunchDialog,#unityLaunchDialog) { height:calc(100dvh - 32px);max-height:calc(100dvh - 32px); }
:is(#neonLaunchDialog,#unityLaunchDialog)[open] { display:flex;flex-direction:column;overflow:hidden; }
:is(#neonLaunchDialog,#unityLaunchDialog) > :not(:is(#neonLaunchRows,#unityLaunchRows)) { flex-shrink:0; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { flex:1 1 0;height:auto;min-height:0;max-height:none;overflow:auto; }
@media(max-height:540px) { :is(#neonLaunchDialog,#unityLaunchDialog)[open] { overflow:auto; }:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { flex:1 0 160px;min-height:160px; } }

/* Daily launch analytics: clear header, compact controls and two metric groups. */
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading { padding:0 40px 16px 0;border-bottom:1px solid #a784cc26; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading > p { margin:0 0 7px;color:#a889ce;font-size:9px;font-weight:700;letter-spacing:1.8px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading h2 { margin:0;font-size:23px;line-height:1.3; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-toolbar { margin:16px 0 10px;padding:12px 14px;border:1px solid #a784cc26;border-radius:12px;background:#a784cc09;gap:12px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date { gap:8px;font-size:11px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date input { width:155px;height:36px;font-size:12px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date button { height:36px;min-width:36px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-buyer-toggle { display:flex;align-items:center;gap:7px;font-size:11px; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchSummary,#unityLaunchSummary) { margin:0 0 12px;font-size:11px;opacity:.7; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchMetrics,#unityLaunchMetrics) { display:block;margin:0 0 14px; }
.launch-primary-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
.launch-secondary-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-card { min-width:0;padding:12px 15px;border-radius:10px;gap:6px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-card small { font-size:10px; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-primary-metrics strong { font-size:23px;line-height:1.2; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-secondary-metrics .launch-day-card { padding:9px 14px;background:#a784cc0a; }
:is(#neonLaunchDialog,#unityLaunchDialog) .launch-secondary-metrics strong { font-size:18px;line-height:1.2; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { margin-top:0; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) table { min-width:1060px; }
:is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) :is(th,td) { white-space:nowrap; }
@media(max-width:700px){ .launch-primary-metrics { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }.launch-secondary-metrics { grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; }:is(#neonLaunchDialog,#unityLaunchDialog) .launch-primary-metrics strong { font-size:19px; }:is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-card { padding:10px; }:is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading { padding-bottom:10px; }:is(#neonLaunchDialog,#unityLaunchDialog) .launch-toolbar { margin:10px 0;padding:10px; }:is(#neonLaunchDialog,#unityLaunchDialog) .launch-buyer-toggle { font-size:10px; } }

/* Hide editor scrollbars while retaining wheel and touch scrolling. */
#tableCustomizerDialog,#tableCustomizerDialog * { scrollbar-width:none; }
#tableCustomizerDialog::-webkit-scrollbar,#tableCustomizerDialog *::-webkit-scrollbar { display:none;width:0;height:0; }

/* On phones the two actions occupy the sixth KPI cell beside profit. */
@media(max-width:780px) {
 body:not(.locked) .dashboard-kpi-row { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch; }
 body:not(.locked) .dashboard-kpi-row > :is(#kpiGrid,#unityKpiGrid,#influenceKpis) { display:contents!important; }
 body:not(.locked) .dashboard-kpi-row > #dashboardKpiActions { display:flex;flex-direction:row;align-self:stretch;justify-self:stretch;width:100%;height:auto;min-height:64px;margin:0;gap:0;box-sizing:border-box; }
 body:not(.locked) .dashboard-kpi-row > #dashboardKpiActions[hidden] { display:none; }
 body:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button { flex:1 1 0;width:50%;height:100%;min-height:64px;position:relative;inset:auto;border:0;border-radius:0; }
 body:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button + button { border-top:0;border-left:1px solid #493d5a; }
 body.theme-light:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button + button { border-left-color:#e5d7f0; }
 body:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button svg { width:22px;height:22px; }
}

/* Labeled mobile actions: two separate tiles rather than a split control. */
#dashboardAnalyticsToggle > .dashboard-action-label { display:none; }
@media(max-width:780px) {
 body:not(.locked) .dashboard-kpi-row > #dashboardKpiActions,
 body.theme-light:not(.locked) .dashboard-kpi-row > #dashboardKpiActions { gap:8px;padding:0;border:0;border-radius:0;background:transparent; }
 body:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;flex:1 1 0;width:0;height:100%;min-height:64px;padding:12px 4px;border:1px solid #493d5a;border-radius:12px;background:#211b2b; }
 body.theme-light:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button { border:1px solid #e5d7f0;background:#fff; }
 body:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button + button { border:1px solid #493d5a; }
 body.theme-light:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button + button { border-color:#e5d7f0; }
 body:not(.locked) #dashboardFilterToggle > span,
 body:not(.locked) #dashboardAnalyticsToggle > .dashboard-action-label { display:block;position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip-path:none;font-size:9px;font-weight:600;line-height:1.2;white-space:nowrap; }
 body:not(.locked) #dashboardFilterToggle #dashboardFilterCount { top:6px;right:6px;min-width:16px;height:16px;font-size:9px;border:0; }
 body:not(.locked) #dashboardAnalyticsToggle .dashboard-analytics-indicator { top:9px;right:9px;width:6px;height:6px;box-shadow:none; }
 body:not(.locked) .dashboard-kpi-row #dashboardKpiActions > button:focus-visible { outline-offset:2px; }
}

/* Conferences share the absence calendar without consuming leave quotas. */
.conference-panel { margin-bottom:18px; }
.conference-panel .panel-heading { gap:14px;flex-wrap:wrap;align-items:center; }
.conference-card { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border:1px solid #a784cc35;border-radius:12px;margin-top:10px;background:#a784cc0b; }
.conference-card small { display:block;margin-top:6px;color:var(--muted); }
.conference-card p { margin:8px 0;line-height:1.5; }
.conference-card.cancelled { opacity:.65; }
.conference-participant-field { border:0;padding:0;margin:18px 0;min-width:0; }
.conference-participant-field legend { font-weight:650;margin-bottom:10px; }
.conference-participants { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;margin-top:10px; }
.conference-participants label { display:flex;align-items:center;gap:10px;border:1px solid #a784cc35;border-radius:10px;padding:10px;background:#a784cc0b;cursor:pointer; }
.conference-participants label[hidden] { display:none; }
.conference-participants input { width:16px;height:16px;min-height:0;flex-shrink:0; }
.conference-participants small { display:block;margin-top:4px;font-size:11px;opacity:.7; }
.leave-event.conference { background:#dbeafe;color:#1d4ed8;border-color:#93c5fd;box-shadow:inset 3px 0 #3b82f6; }
body:not(.locked):not(.theme-light) .leave-event.conference { background:#19355b;color:#bfdbfe;border-color:#3b82f6;box-shadow:inset 3px 0 #60a5fa; }
@media(max-width:600px){.conference-card{align-items:flex-start;flex-direction:column;}.conference-participants{grid-template-columns:1fr;}.conference-panel .panel-heading>button{width:100%;}}
.calendar-legend .conference::before { background:#3b82f6; }
#calendarKpis:has(> :nth-child(5)) { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:780px){#calendarKpis:has(> :nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr));}}
#conferenceParticipantSearch { display:block;box-sizing:border-box;width:100%;min-height:38px;padding:9px 12px;border:1px solid #a784cc35;border-radius:9px;background:#a784cc0b;color:inherit;font:inherit; }

.creative-name-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.creative-name-actions .media-name-link{margin:0}.creative-upload-button{display:inline-grid;place-items:center;flex:0 0 19px;width:19px;height:19px;margin:0;padding:0;border:0;border-radius:50%;background:#efe5fc;color:#7540aa;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.creative-upload-button:hover{background:#e1cff7}.creative-upload-button:focus-visible{outline:2px solid #8d4dff;outline-offset:3px}.creative-upload-status{padding:12px 16px;margin-bottom:16px;border-radius:12px;background:#efe5fc;color:#634787;overflow-wrap:anywhere}

.creative-upload-hint{position:relative;width:min(460px,calc(100vw - 32px));box-sizing:border-box;padding:24px;border:1px solid #e2d5f5;border-radius:18px;background:var(--panel,#fff);color:inherit}.creative-upload-hint::backdrop{background:rgba(25,15,40,.4)}.creative-upload-hint h3{padding-right:24px;margin:0 0 12px}.creative-upload-hint p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.creative-missing-list{display:flex;flex-wrap:wrap;gap:6px;max-height:220px;overflow:auto}.creative-missing-list code{padding:5px 8px;background:#efe5fc;color:#7540aa;border-radius:6px;font-size:12px}

html.creative-upload-modal-open,html.creative-upload-modal-open body,html.creative-upload-modal-open main{overflow:hidden!important;overscroll-behavior:none}.creative-upload-hint{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}.creative-upload-choose{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-height:38px;padding:10px 16px;border:0;border-radius:9px;background:linear-gradient(110deg,#8750ff,#6938ed);color:#fff;font:inherit;font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}.creative-upload-choose:hover{filter:brightness(1.08)}.creative-upload-choose:focus-visible{outline:2px solid #8d4dff;outline-offset:3px}
#creativeUploadHint.creative-upload-hint{position:fixed;inset:0;margin:auto;transform:none;}

.section-search-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 16px;width:100%;box-sizing:border-box}.section-search-toolbar>input,.section-search-toolbar>label{flex:1;min-width:0;margin:0}.section-search-toolbar>label>span{display:none}.section-search-toolbar>label>input{width:100%;box-sizing:border-box}.section-search-toolbar #dashboardKpiActions.section-filter-actions{display:flex!important;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;align-self:center}.section-filter-actions #dashboardFilterToggle{width:44px;height:44px;border-radius:12px}.section-filter-actions #dashboardAnalyticsToggle[hidden]{display:none!important}#dashboardFilterFields :is(#companyFilterFields,#creativeFilterFields){border:0;padding:0;margin:0;background:transparent;box-shadow:none}#dashboardFilterFields .company-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}#dashboardFilterFields .company-filters>*{width:100%;min-width:0;grid-column:auto}#dashboardFilterFields .creative-group-options{display:grid;gap:12px;margin-top:16px}@media(max-width:600px){#dashboardFilterFields .company-filters{grid-template-columns:1fr}}

#companiesView>.management-hero{display:none}#companiesView>.section-search-toolbar{width:100%;max-width:none;align-self:stretch;display:flex;grid-template-columns:none}#companiesView>.section-search-toolbar>#companySearch{flex:1 1 0;width:0;max-width:none;min-width:0}#companiesView>.section-search-toolbar>#dashboardKpiActions{margin-left:auto;flex:0 0 44px}#companiesView>.company-overview-grid{margin-top:0}
#companiesView>.management-hero{display:none!important}

#creativesView>.section-search-toolbar{width:100%;max-width:none;align-self:stretch;display:flex;grid-template-columns:none}#creativesView>.section-search-toolbar>#creativeSearch{flex:1 1 0;width:0;max-width:none;min-width:0}#creativesView>.section-search-toolbar>#dashboardKpiActions{margin-left:auto;flex:0 0 44px}
#creativesView>.creative-hero{display:none!important}
/* Shared search treatment follows the analytics cards in both themes. */
body:not(.locked) input:is([type="search"],.search){box-sizing:border-box;min-height:44px;height:44px;border:1px solid #d8c9e8;border-radius:12px;background-color:#fff;color:var(--ink);font:inherit;font-size:13px;line-height:1.4;padding:11px 36px 11px 42px;box-shadow:0 2px 8px rgba(91,58,126,.025);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239483a2' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:15px center;background-size:18px 18px;transition:border-color .15s,box-shadow .15s}
body:not(.locked) input:is([type="search"],.search)::placeholder{color:#9483a2;opacity:1;font-weight:400}
body:not(.locked) input:is([type="search"],.search):hover{border-color:#bda1db}
body:not(.locked) input:is([type="search"],.search):focus{outline:none;border-color:#a574e4;box-shadow:0 0 0 3px rgba(151,91,220,.12)}
body:not(.locked):not(.theme-light) input:is([type="search"],.search){background-color:#171321;border-color:#3c2d50;color:#eee5fa}
body:not(.locked):not(.theme-light) input:is([type="search"],.search):focus{border-color:#a574e4}
body:not(.locked) .section-search-toolbar #dashboardFilterToggle{background-color:#fff;border:1px solid #d8c9e8;border-radius:12px;box-shadow:0 2px 8px rgba(91,58,126,.025)}
body:not(.locked):not(.theme-light) .section-search-toolbar #dashboardFilterToggle{background-color:#171321;border-color:#3c2d50}
/* Dark dashboard actions use the same surface and border as the KPI cards. */
body:not(.locked):not(.theme-light) .dashboard-kpi-row>#dashboardKpiActions{background:linear-gradient(130deg,#131520,#0f1119);border-color:#252432}
body:not(.locked):not(.theme-light) .dashboard-kpi-row>#dashboardKpiActions>button{background:transparent;border-color:#252432}
@media(max-width:1100px){body:not(.locked):not(.theme-light) .dashboard-kpi-row>#dashboardKpiActions{background:transparent}body:not(.locked):not(.theme-light) .dashboard-kpi-row>#dashboardKpiActions>button{background:linear-gradient(130deg,#131520,#0f1119);border-color:#252432}}

/* Development overview: metrics first, matching dashboard icon tiles. */
#developmentView #developmentKpis{order:0;gap:14px}#developmentView>.development-hero{order:1;padding:0;justify-content:flex-end;min-height:0}#developmentView>.development-toolbar{order:2}#developmentView>.development-layout{order:3}
#developmentView .development-kpi{display:flex;align-items:center;gap:16px;min-height:150px;box-sizing:border-box;padding:24px;border-radius:14px;background:linear-gradient(130deg,#131520,#0f1119);border:1px solid #252432;box-shadow:none}
#developmentView .development-kpi-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:54px;border-radius:13px;color:#fff;box-shadow:inset 0 2px 3px #ffffff38,0 7px 16px #00000018;background:linear-gradient(140deg,#ab73ff,#7438ee)}#developmentView .development-kpi-icon svg{width:27px;height:27px}#developmentView .development-kpi-1 .development-kpi-icon{background:linear-gradient(140deg,#298fff,#0753d8)}#developmentView .development-kpi-2 .development-kpi-icon{background:linear-gradient(140deg,#f5ba4c,#df851a)}#developmentView .development-kpi-3 .development-kpi-icon{background:linear-gradient(140deg,#20d58d,#139c68)}
#developmentView .development-kpi-content{display:grid;gap:9px;min-width:0}#developmentView .development-kpi-content>span{font-size:11px;line-height:1.4}#developmentView .development-kpi strong{font-size:28px;line-height:1.1}#developmentView .development-kpi small{font-size:10px;line-height:1.5}body.theme-light #developmentView .development-kpi{background:#fff;border-color:#e5d7f0}#developmentView .development-toolbar{border-radius:14px}#developmentView .development-card{border-radius:16px}
@media(max-width:1100px){#developmentView .development-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#developmentView .development-kpi{padding:18px;min-height:134px;gap:12px}}
@media(max-width:480px){#developmentView .development-kpi{align-items:flex-start;flex-direction:column;min-height:170px;padding:16px}#developmentView .development-kpi-icon{flex-basis:40px;width:38px;height:40px;border-radius:11px}#developmentView .development-kpi-icon svg{width:23px;height:23px}#developmentView .development-kpi strong{font-size:24px}#developmentView .development-hero-actions{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}#developmentView .development-hero-actions button{font-size:10px;padding:10px 8px}}

.development-no-program-message{padding:20px 4px}.development-no-program-message strong{font-size:18px;color:var(--ink)}.development-no-program-message p{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.6}

#developmentBoard>.development-no-program-message{grid-column:1 / -1;padding:28px;align-self:start}

#developmentView>.development-toolbar{grid-template-columns:minmax(160px,1.2fr) minmax(120px,1fr) minmax(120px,1fr) auto;align-items:end}#developmentView .development-toolbar>.development-hero-actions{align-self:end;gap:8px;flex-wrap:nowrap}#developmentView .development-toolbar>.development-hero-actions>button{min-height:44px;white-space:nowrap}#developmentView .development-toolbar>.development-hero-actions>button[hidden]{display:none!important}@media(max-width:1100px){#developmentView>.development-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}#developmentView .development-toolbar>.development-hero-actions{grid-column:1 / -1}}@media(max-width:600px){#developmentView>.development-toolbar{grid-template-columns:1fr}#developmentView .development-toolbar>.development-hero-actions{display:flex;flex-wrap:wrap;width:100%}#developmentView .development-toolbar>.development-hero-actions>button{flex:1}}
/* Keep select chevrons inside the development filter fields. */
#developmentView .development-toolbar select{-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239483a2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px 16px;background-position:right 14px center}

/* Project detail — a focused overview with a compact daily activity chart. */
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) {
  --pd-surface:#fff; --pd-page:#faf9fd; --pd-line:#eae5f2; --pd-text:#453653; --pd-muted:#8c7d9f;
  --pd-accent:#8750df; --pd-soft:#f0e8fc; --pd-table:#f5f2fa;
  padding:28px; background:var(--pd-page); color:var(--pd-text); border:1px solid var(--pd-line); border-radius:24px;
}
body:not(.theme-light) :is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) {
  --pd-surface:#201b2b; --pd-page:#17131f; --pd-line:#352c43; --pd-text:#eee7fa; --pd-muted:#ac9dbf;
  --pd-accent:#b18aef; --pd-soft:#352546; --pd-table:#282032;
}
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header {
  position:relative; min-height:176px; padding:26px 38% 24px 26px; border:1px solid var(--pd-line); border-radius:18px;
  background:linear-gradient(115deg,var(--pd-surface) 35%,var(--pd-soft));
}
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header h1 { margin:12px 0 8px; font-size:34px; line-height:1.15; letter-spacing:-1.2px; color:var(--pd-text); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .subtitle { color:var(--pd-muted); font-size:12px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-badge { padding:5px 9px; background:var(--pd-soft); color:var(--pd-accent); font-size:9px; letter-spacing:.5px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions { flex-wrap:wrap; margin-top:20px; gap:8px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions button { min-height:36px; padding:9px 13px; border-radius:9px; font-size:10px; box-shadow:none; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-primary { background:#8750df; color:#fff; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions button:not(.detail-primary) { color:var(--pd-accent); background:var(--pd-surface); border:1px solid var(--pd-line); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-spend-trend { position:absolute; top:27px; right:28px; bottom:22px; width:30%; display:flex; flex-direction:column; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-caption { display:flex; flex-direction:column; gap:6px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-caption span { font-size:8px; letter-spacing:1.5px; color:var(--pd-muted); font-weight:750; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-caption b { font-size:12px; color:var(--pd-text); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars { height:68px; display:flex; align-items:flex-end; gap:4px; margin-top:12px; border-bottom:1px solid var(--pd-line); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars > span { flex:1; height:var(--bar-height); min-width:2px; border-radius:4px 4px 0 0; background:linear-gradient(0deg,#8750df,#c2a0f4); transition:filter .15s; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars > span:hover { filter:brightness(1.2); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars > .is-empty { background:var(--pd-line); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-range { display:flex; justify-content:space-between; margin-top:7px; font-size:9px; color:var(--pd-muted); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-overview { margin:18px 0 0; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary { gap:10px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .project-metric { position:relative; padding:18px 16px; border-radius:15px; background:var(--pd-surface); border-color:var(--pd-line); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .project-metric:first-child { background:linear-gradient(135deg,#8d52e1,#6936ba); border-color:transparent; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .project-metric:first-child :is(small,strong) { color:#fff; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .project-metric:nth-child(2) { background:var(--project-positive-bg); border-color:transparent; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .project-metric:nth-child(2) strong { color:var(--project-positive); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary strong { margin-top:10px; font-size:24px; letter-spacing:-.7px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary small { font-size:10px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-stat-icon { display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin-bottom:15px; border-radius:9px; color:var(--pd-accent); background:var(--pd-soft); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-stat-icon svg { width:18px; height:18px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric:first-child > .project-stat-icon { color:var(--pd-accent); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:first-child > .project-stat-icon { color:white; background:#ffffff25; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(2) > .project-stat-icon { color:var(--project-positive); background:color-mix(in srgb,var(--project-positive) 12%,transparent); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .above-plan { background:var(--project-warning-bg); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .within-plan { background:var(--project-positive-bg); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-groups { gap:10px; margin-top:10px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-group { padding:20px; background:var(--pd-surface); border-color:var(--pd-line); border-radius:15px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-group h3 { display:flex; align-items:center; gap:8px; margin-bottom:18px; font-size:12px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-group h3:before { content:''; width:4px; height:14px; border-radius:3px; background:var(--pd-accent); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-group-grid { gap:16px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-group .project-metric small { font-size:10px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-group .project-metric strong { font-size:19px; letter-spacing:-.4px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-section { margin-top:24px; padding:20px; border:1px solid var(--pd-line); border-radius:18px; background:var(--pd-surface); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .panel-heading { flex-wrap:wrap; gap:10px; margin-bottom:16px; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .panel-heading h2 { font-size:18px; letter-spacing:-.4px; color:var(--pd-text); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .eyebrow { color:var(--pd-accent); font-size:8px; letter-spacing:1.6px; margin-bottom:6px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-estimate-note { color:var(--pd-muted); font-size:10px; padding:6px 9px; border-radius:7px; background:var(--pd-table); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .table-wrap { max-height:490px; overflow:auto; border:1px solid var(--pd-line); border-radius:11px; scrollbar-width:thin; scrollbar-color:var(--pd-line) transparent; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily { border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily th { position:sticky; top:0; z-index:2; background:var(--pd-table); color:var(--pd-muted); border:0; border-bottom:1px solid var(--pd-line); padding:13px 12px; font-size:9px; white-space:nowrap; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily td { padding:12px; border:0; border-bottom:1px solid var(--pd-line); color:var(--pd-text); font-size:11px; background:var(--pd-surface); white-space:nowrap; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily tbody tr:nth-child(even) td { background:color-mix(in srgb,var(--pd-table) 45%,var(--pd-surface)); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily tbody tr:hover td { background:var(--pd-soft); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily :is(th,td):first-child { position:sticky; left:0; z-index:1; font-weight:700; box-shadow:1px 0 0 var(--pd-line); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-daily th:first-child { z-index:3; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-bar { height:6px; width:85px; background:var(--pd-soft); }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-bar span { background:linear-gradient(90deg,#ad7bea,#8750df); }
@media(max-width:1100px) {
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { padding-right:36%; }
  :is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary strong { font-size:23px; }
}
@media(max-width:680px) {
  :is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); padding:14px; border-radius:18px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { padding:20px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header h1 { font-size:28px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-spend-trend { position:static; width:100%; margin-top:24px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars { height:58px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions button { flex:1 1 auto; }
  :is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary > .project-metric { padding:15px 12px; }
  :is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .project-metric-primary strong { font-size:21px; }
  :is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .detail-section { padding:14px; }
}
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header > .subtitle { display:block; }

/* Compact project header: context and actions above a full-width chart. */
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header {
  min-height:0; padding:20px 24px 17px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px 20px;
}
:is(#campaignDialog, #unityAnalyticsDetail) .project-header-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; min-width:0; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header h1 { margin:0; font-size:25px; letter-spacing:-.7px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-header-context { font-size:11px; color:var(--pd-muted); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions { margin:0; gap:6px; align-items:center; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions button { min-height:32px; padding:7px 12px; font-size:10px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-spend-trend { position:static; grid-column:1/-1; width:100%; margin:0; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-caption { flex-direction:row; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-caption b { font-size:9px; font-weight:600; color:var(--pd-muted); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars { height:72px; margin-top:6px; gap:6px; background:linear-gradient(var(--pd-line),var(--pd-line)) center/100% 1px no-repeat; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars > span { border-radius:4px 4px 0 0; opacity:.9; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars > span:hover { opacity:1; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-trend-range { margin-top:6px; font-size:9px; }
@media(max-width:680px) {
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { padding:18px 16px 14px; grid-template-columns:minmax(0,1fr); gap:14px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-header-title { align-items:flex-start; flex-direction:column; gap:6px; padding-right:20px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header h1 { font-size:24px; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions { flex-wrap:nowrap; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions button { flex:1; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-spend-trend { margin:0; }
  :is(#campaignDialog, #unityAnalyticsDetail) .project-trend-bars { height:62px; gap:3px; }
}

:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { display:flex; justify-content:flex-end; min-height:0; padding:0 28px 0 0; border:0; border-radius:0; background:transparent; }
@media(max-width:680px) { :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { padding:22px 0 0; } :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header .detail-actions { width:100%; } }

:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { align-items:center; gap:18px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint { display:flex; flex-direction:column; gap:4px; text-align:right; min-width:0; max-width:260px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint strong { color:var(--pd-text); font-size:14px; line-height:1.3; overflow-wrap:anywhere; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint span { color:var(--pd-muted); font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
@media(max-width:680px) {
 :is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { flex-wrap:wrap; gap:12px; }
 :is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint { order:-1; max-width:100%; margin-left:auto; padding-right:12px; }
}

/* Keep scrolling available without visible tracks in project analytics. */
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header),
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .table-wrap { scrollbar-width:none; -ms-overflow-style:none; }
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header)::-webkit-scrollbar,
:is(#campaignDialog, #unityAnalyticsDetail):has(.project-detail-header) .table-wrap::-webkit-scrollbar { display:none; width:0; height:0; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header { justify-content:space-between; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint { order:-1; text-align:left; max-width:60%; margin:0 auto 0 0; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint strong { font-size:22px; letter-spacing:-.5px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint span { font-size:12px; }
@media(max-width:680px) {
 :is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint { max-width:100%; width:100%; padding-right:20px; }
 :is(#campaignDialog, #unityAnalyticsDetail) .project-context-hint strong { font-size:21px; }
}

/* Match the dashboard's dimensional KPI icon tiles. */
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric > .project-stat-icon {
 width:40px; height:44px; border-radius:11px; color:#fff; background:linear-gradient(140deg,#a770ff,#743df1);
 box-shadow:inset 0 1px 2px #ffffff60,0 5px 14px #0002; margin-bottom:16px;
}
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(2) > .project-stat-icon { background:linear-gradient(140deg,#20d58d,#139c68); color:#fff; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(3) > .project-stat-icon { background:linear-gradient(140deg,#298fff,#0753d8); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(4) > .project-stat-icon { background:linear-gradient(135deg,#f3b746,#dd8120); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(5) > .project-stat-icon { background:linear-gradient(140deg,#ff61b0,#db267e); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(6) > .project-stat-icon { background:linear-gradient(135deg,#30d991,#149366); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-stat-icon svg { width:25px; height:25px; filter:drop-shadow(0 1px 2px #0001); }
@media(max-width:680px) { :is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric > .project-stat-icon { width:36px; height:40px; } }

:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary:has(> :nth-child(7)) { grid-template-columns:repeat(7,minmax(0,1fr)); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .project-metric:nth-child(7) > .project-stat-icon { background:linear-gradient(135deg,#30d991,#149366); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .profit-positive { background:var(--project-positive-bg); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .profit-positive strong { color:var(--project-positive); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary > .profit-negative strong { color:var(--red); }
@media(max-width:1200px) { :is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary:has(> :nth-child(7)) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) { :is(#campaignDialog, #unityAnalyticsDetail) .project-metric-primary:has(> :nth-child(7)) { grid-template-columns:repeat(2,minmax(0,1fr)); } }

:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header [role="tablist"] { padding:4px; border:1px solid var(--pd-line); border-radius:11px; background:var(--pd-surface); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header [role="tab"] { border:0; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-detail-header [role="tab"][aria-selected="false"] { background:transparent; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-tab-body > .detail-kpis { margin-top:18px; }
:is(#campaignDialog, #unityAnalyticsDetail) .project-tab-body .project-metric-primary strong { overflow-wrap:normal; font-size:clamp(17px,1.5vw,24px); }
:is(#campaignDialog, #unityAnalyticsDetail) .project-tab-body .project-metric-primary > .project-metric { min-width:0; }

/* Unity uses the same cards, supplier donut and table surfaces as Facebook. */
.unity-performance { display:grid; gap:0; }
#unityView .unity-performance .company-overview-grid .unity-performance-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
#unityView .unity-performance .unity-performance-chart { display:flex; padding:0; }
#unityView .unity-performance .unity-performance-chart > .company-supplier-legend { display:grid; }
#unityView .unity-performance .company-kpi-coverage .company-kpi-icon { background:linear-gradient(135deg,#f3b746,#dd8120); }
#unityView .unity-performance .unity-performance-toolbar { display:flex; align-items:center; gap:12px; margin:0 0 16px; }
#unityView .unity-performance .unity-performance-toolbar .search { flex:1; width:0; max-width:none; min-width:0; padding:14px 18px 14px 40px; border:1px solid var(--company-border); border-radius:12px; background:var(--company-surface); color:var(--company-text); }
#unityView .unity-filter-trigger { position:relative; display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border:1px solid var(--company-border); border-radius:12px; color:var(--company-muted); background:var(--company-surface); cursor:pointer; }
#unityView .unity-filter-count { position:absolute; top:-5px; right:-5px; min-width:16px; height:16px; display:grid; place-items:center; border-radius:50%; background:#8750ef; color:white; font-size:9px; border:2px solid var(--company-surface); }
#unityView .unity-performance .company-table th button { color:inherit; background:none; border:0; font:inherit; font-weight:inherit; text-transform:inherit; letter-spacing:inherit; cursor:pointer; padding:0; text-align:left; }
#unityView .unity-performance .company-table { min-width:1600px; }
#unityView .unity-performance .company-table td small { display:block; color:var(--company-muted); margin-top:5px; max-width:300px; overflow-wrap:anywhere; }
#unityView .unity-performance .view-button { width:auto; min-width:72px; padding:6px 10px; }
.unity-performance .table-wrap { scrollbar-width:none; }
.unity-performance .table-wrap::-webkit-scrollbar { display:none; }
.unity-performance-filters { width:min(700px,calc(100vw - 24px)); }
.unity-performance-filters h2 { margin-bottom:24px; }
.unity-performance-status:empty { display:none; }
@media(max-width:520px){ #unityView .unity-performance .company-overview-grid .unity-performance-kpis { grid-template-columns:1fr; } }
#unityView .unity-performance, #unityView .unity-performance > *, #unityView .unity-performance .company-overview-grid > * { min-width:0; }
#unityView .unity-performance .table-wrap { width:100%; max-width:100%; overflow:auto; }
#unityView .unity-filter-count { right:-1px; }
body:not(.locked) #unityView .unity-performance .view-button {
 display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:0; height:28px; min-height:0;
 padding:5px 10px; border:0; border-radius:6px; color:#fff; background:linear-gradient(110deg,#8750ff,#6938ed);
 font-size:10px; font-weight:700; line-height:1; box-shadow:none; white-space:nowrap;
}
body:not(.locked) #unityView .unity-performance .view-button:hover { color:#fff; background:linear-gradient(110deg,#7941ee,#5e2ddc); }

/* Keep filter columns aligned when team access hides the team selector. */
body:not(.locked) #offersView .offer-table-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) minmax(0,1fr) 34px auto; min-width:0; }
body:not(.locked) #offersView .offer-table-tools:has(> #offerTeamFilterField[hidden]) { grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr) 34px auto; }
body:not(.locked) #offersView .offer-table-tools > label { min-width:0; }
body:not(.locked) #offersView .offer-table-tools :is(input,select) { width:100%; min-width:0; max-width:none; box-sizing:border-box; }
body:not(.locked) #offersView #offerSortDirection { width:34px; min-width:34px; max-width:34px; justify-self:start; }
@media(max-width:1000px) {
 body:not(.locked) #offersView .offer-table-tools,
 body:not(.locked) #offersView .offer-table-tools:has(> #offerTeamFilterField[hidden]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px) {
 body:not(.locked) #offersView #resetOfferFilters { padding:0 8px; font-size:9px; }
}

.employee-loading { display:flex; align-items:center; justify-content:center; gap:12px; min-height:170px; color:var(--text-muted,#8c7d9f); font-size:14px; }
.employee-loading[hidden] { display:none; }
.employee-loading .analytics-loading-spinner { width:26px; height:26px; border-width:3px; border-color:#8750df22; border-top-color:#8750df; flex:none; }

#unityAnalyticsDetail .project-metric-primary:has(> :nth-child(8)) { grid-template-columns:repeat(8,minmax(0,1fr)); }
#unityAnalyticsDetail .project-metric-primary > .project-metric:nth-child(8) > .project-stat-icon { background:linear-gradient(135deg,#f3b746,#dd8120); }
@media(max-width:1400px) { #unityAnalyticsDetail .project-metric-primary:has(> :nth-child(8)) { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:680px) { #unityAnalyticsDetail .project-metric-primary:has(> :nth-child(8)) { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Unity campaign profit uses the same green emphasis throughout its workspace. */
#unityView td.unity-profit-value, #unityView .kpi-profit .kpi-value,
#unityLaunchDialog td.unity-profit-value,
#unityAnalyticsDetail [data-profit-sensitive] strong,
#creativeDialog .unity-profit-card strong { color:#20b978 !important; }

#unityView td.unity-profit-warning,
#unityLaunchDialog td.unity-profit-warning,
#unityAnalyticsDetail [data-profit-sensitive].unity-profit-warning strong,
#creativeDialog .unity-profit-card.unity-profit-warning strong { color:#d5a135 !important; }

/* Offer rows highlight only while the pointer is over them. */
body:not(.locked) :is(#neonOfferRows, #unityNeonOfferRows) > tr:not(:hover),
body:not(.locked) :is(#neonOfferRows, #unityNeonOfferRows) > tr:not(:hover) > td { background:transparent !important; box-shadow:none !important; outline:none !important; }
body:not(.locked) :is(#neonOfferRows, #unityNeonOfferRows) > tr:hover > td,
body:not(.locked) :is(#neonOfferRows, #unityNeonOfferRows) > tr:hover > td:hover { background:#242033 !important; box-shadow:none !important; outline:none !important; }
body.theme-light:not(.locked) :is(#neonOfferRows, #unityNeonOfferRows) > tr:hover > td,
body.theme-light:not(.locked) :is(#neonOfferRows, #unityNeonOfferRows) > tr:hover > td:hover { background:#f2eafa !important; }

/* Calendar: calm dark surfaces and readable event colours. */
body:not(.locked):not(.theme-light) #calendarView { --line:#303344; --muted:#a2a6bd; --ink:#eceef8; }
body:not(.locked):not(.theme-light) #calendarView :is(.panel,.kpi-card) { background:#171923; border-color:#2c2f40; box-shadow:0 5px 18px #00000012; }
body:not(.locked):not(.theme-light) #calendarView .calendar-grid { background:#303344; background-image:none; border-color:#303344; }
body:not(.locked):not(.theme-light) #calendarView .calendar-day { background:#191c28; background-image:none; border-color:#303344; color:#e3e6f3; box-shadow:none; transition:background .15s ease; }
body:not(.locked):not(.theme-light) #calendarView .calendar-day.weekend { background:#1e2030; }
body:not(.locked):not(.theme-light) #calendarView .calendar-day.outside { background:#141721; color:#687087; }
body:not(.locked):not(.theme-light) #calendarView .calendar-day:hover { background:#29253d; box-shadow:inset 0 0 0 1px #a78bfa80; }
body:not(.locked):not(.theme-light) #calendarView .calendar-day.today { background:#242238; }
body:not(.locked):not(.theme-light) #calendarView .calendar-day.today .calendar-day-number { background:#a78bfa; color:#191326; }
body:not(.locked):not(.theme-light) #calendarView .calendar-toolbar button { background:#242635; color:#e4e5f1; border-color:#3a3d51; }
body:not(.locked):not(.theme-light) #calendarView .calendar-toolbar button:hover { background:#35304a; border-color:#a78bfa; }
body:not(.locked):not(.theme-light) #calendarView :is(.leave-request,.calendar-person,.conference-card) { background:#1e2130; border-color:#34384b; }
body:not(.locked):not(.theme-light) #calendarView .leave-request blockquote { background:#292c40; color:#bfc5df; border-color:#8b83cf; }
body:not(.locked):not(.theme-light) #calendarView :is(.leave-event,.leave-status.approved) { background:#203c35; color:#94ddbd; box-shadow:inset 3px 0 #59b995; }
body:not(.locked):not(.theme-light) #calendarView .leave-event.dayoff { background:#3d3225; color:#e6c28b; box-shadow:inset 3px 0 #c99d58; }
body:not(.locked):not(.theme-light) #calendarView .leave-event.conference { background:#273650; color:#a9caff; box-shadow:inset 3px 0 #759ee1; }
body:not(.locked):not(.theme-light) #calendarView .leave-event.birthday { background:#3b2e49; color:#e3b6ee; box-shadow:inset 3px 0 #bd86ce; }
body:not(.locked):not(.theme-light) #calendarView :is(.leave-event.pending,.leave-status.pending) { background:#3b3425; color:#dfc58b; box-shadow:inset 3px 0 #bfa15d; }
body:not(.locked):not(.theme-light) #calendarView :is(.leave-status.rejected,.leave-status.cancelled) { background:#402b36; color:#e6acbd; box-shadow:none; }
body:not(.locked):not(.theme-light) #calendarView .leave-status { box-shadow:none; }
body:not(.locked):not(.theme-light) #calendarView .calendar-person.absent { background:#292333; border-color:#60435a; }
body:not(.locked):not(.theme-light) #calendarView .calendar-person.birthday { border-color:#8c669b; box-shadow:inset 3px 0 #bd86ce; }
body:not(.locked):not(.theme-light) #calendarView .leave-request-list { scrollbar-color:#55536e transparent; }

#influenceGeoTabs { scrollbar-width:none; -ms-overflow-style:none; }
#influenceGeoTabs::-webkit-scrollbar { display:none; width:0; height:0; }

/* Blogger CRM: a distinct frozen identity pane and a quiet, compact data grid. */
#influenceCrmContent .influence-crm-table { --crm-grid-bg:#fff; --crm-grid-alt:#fbfaff; --crm-frozen-bg:#f3f0f9; --crm-grid-hover:#ede7f7; --crm-grid-edge:#d7cbe7; --crm-grid-header:#f8f6fc; }
body:not(.theme-light) #influenceCrmContent .influence-crm-table { --crm-grid-bg:#191b26; --crm-grid-alt:#1d1f2c; --crm-frozen-bg:#242335; --crm-grid-hover:#322d46; --crm-grid-edge:#514462; --crm-grid-header:#222333; }
#influenceCrmContent .crm-freeze-guide { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:11px 18px; border-top:1px solid var(--crm-grid-edge); background:var(--crm-grid-header); color:var(--crm-accent); font-size:10px; }
#influenceCrmContent .crm-freeze-guide > span { display:inline-flex; align-items:center; gap:7px; font-weight:650; }
#influenceCrmContent .crm-freeze-guide svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
#influenceCrmContent .crm-freeze-guide small { color:var(--muted); font-size:10px; }
#influenceCrmContent .crm-freeze-guide small b { margin-left:8px; color:var(--crm-accent); }
body:not(.locked) #influenceCrmContent .influence-crm-table thead th { height:58px; background:var(--crm-grid-header) !important; padding:10px 12px; font-size:9px; letter-spacing:.02em; vertical-align:middle; }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr { background:transparent !important; }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr > td { height:52px; padding:10px 12px; background:var(--crm-grid-bg) !important; border-bottom:1px solid var(--crm-line); font-size:11px; }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:nth-child(even) > td { background:var(--crm-grid-alt) !important; }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td,
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td:hover { background:var(--crm-grid-hover) !important; }
#influenceCrmContent .crm-frozen-label { display:flex; align-items:center; gap:4px; margin-top:3px; color:var(--crm-accent); font-size:8px; font-weight:550; letter-spacing:0; text-transform:none; }
#influenceCrmContent .crm-frozen-label::before { content:''; width:10px; height:10px; background:currentColor; clip-path:polygon(25% 0,75% 0,68% 38%,95% 65%,95% 75%,55% 75%,55% 100%,45% 100%,45% 75%,5% 75%,5% 65%,32% 38%); }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status.approved) > td:first-child { box-shadow:inset 3px 0 #53b692 !important; }
body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:has(.influence-crm-status.cancelled) > td:first-child { box-shadow:inset 3px 0 #d48b9d !important; }
@media(min-width:1101px) {
 body:not(.locked) #influenceCrmContent .influence-crm-table :is(th,td):nth-child(-n+5) { background:var(--crm-frozen-bg) !important; }
 body:not(.locked) #influenceCrmContent .influence-crm-table :is(th,td):nth-child(5),
 body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td:nth-child(5) { border-right:1px solid var(--crm-grid-edge) !important; box-shadow:8px 0 13px -8px #36224f75 !important; }
 body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td:nth-child(-n+5) { background:var(--crm-grid-hover) !important; }
}
@media(max-width:1100px) {
 body:not(.locked) #influenceCrmContent .influence-crm-table :is(th,td):nth-child(-n+4) { background:var(--crm-frozen-bg) !important; }
 body:not(.locked) #influenceCrmContent .influence-crm-table :is(th,td):nth-child(4),
 body:not(.locked) #influenceCrmContent .influence-crm-table tbody tr:hover > td:nth-child(4) { border-right:1px solid var(--crm-grid-edge) !important; box-shadow:8px 0 13px -8px #36224f75 !important; }
 #influenceCrmContent .crm-frozen-label { display:none; }
 #influenceCrmContent .influence-crm-table th:nth-child(4)::after { content:'Закреплено'; display:block; color:var(--crm-accent); font-size:8px; text-transform:none; }
}
body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:has(.influence-crm-status) > td { background:var(--crm-grid-bg) !important; }
body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:nth-child(even):has(.influence-crm-status) > td { background:var(--crm-grid-alt) !important; }
@media(min-width:1101px) {
 body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:has(.influence-crm-status) > td:nth-child(-n+5) { background:var(--crm-frozen-bg) !important; }
 body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:has(.influence-crm-status) > td:nth-child(5) { box-shadow:8px 0 13px -8px #36224f75 !important; border-right:1px solid var(--crm-grid-edge) !important; }
}
@media(max-width:1100px) {
 body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:has(.influence-crm-status) > td:nth-child(-n+4) { background:var(--crm-frozen-bg) !important; }
}
body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:hover:has(.influence-crm-status) > td { background:var(--crm-grid-hover) !important; }

.candidate-lead-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;max-height:260px;overflow:auto; }
.candidate-lead-list label { display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);cursor:pointer; }
.candidate-lead-list label:has(input:checked) { border-color:#9564dc;background:#9564dc12; }
.candidate-lead-list input { width:16px;height:16px;accent-color:#8750df; }
.candidate-lead-list small,.candidate-evidence-file small { display:block;margin-top:4px;color:var(--muted);font-size:10px; }
.candidate-evidence-list { display:grid;gap:8px;margin:14px 0; }
.candidate-evidence-file { display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0; }
.candidate-evidence-file img { width:64px;height:54px;object-fit:cover;border-radius:7px; }
.candidate-evidence-file > div { flex:1;min-width:0;overflow-wrap:anywhere; }
.candidate-evidence-file a { color:var(--ink);font-size:12px; }
.candidate-file-icon { display:grid;place-items:center;width:54px;height:54px;background:#8750df16;border-radius:8px;color:#9b71df;font-size:28px; }
.candidate-upload { display:grid;gap:10px;padding:14px;border:1px dashed #a47dd4;border-radius:10px; }
.candidate-pending-files { display:grid;gap:6px;margin-top:10px;font-size:11px;color:var(--muted); }
.candidate-pending-files button { margin-left:8px; }
#candidateUploadStatus { color:var(--muted);font-size:12px; }
@media(max-width:650px) { .candidate-lead-list { grid-template-columns:1fr; } }

#neonLaunchRows .launch-child-name { display:inline-flex;gap:8px;align-items:center;padding-left:18px;color:#8c73a8;font-weight:600; }
#neonLaunchRows .launch-child-geo { display:inline-flex;gap:5px;align-items:center;padding-left:14px; }
body:not(.locked) #neonLaunchRows .launch-buyer-child > td { background:#f7f3fc !important;font-size:11px; }
body:not(.locked):not(.theme-light) #neonLaunchRows .launch-buyer-child > td { background:#242033 !important; }
body:not(.locked) #neonLaunchRows .launch-project-summary.is-expanded > td { border-bottom-color:#cbb7e1; }
#neonLaunchRows button { background:linear-gradient(135deg,#914bff,#7139ef) !important;color:#fff !important;border:1px solid transparent !important;box-shadow:none !important;transition:filter .15s ease,box-shadow .15s ease; }
#neonLaunchRows button:hover { filter:brightness(1.1);box-shadow:0 3px 10px #7840da33 !important; }
#neonLaunchRows button:focus-visible { outline:2px solid #b797f6;outline-offset:3px; }
.launch-breakdown-toggles { display:flex;gap:18px;align-items:center;flex-wrap:wrap; }
#neonLaunchRows .launch-account-panel { padding:12px 16px;margin:3px 0 8px 30px;border-left:2px solid #a783df;border-radius:6px;background:#a783df08; }
#neonLaunchRows .launch-account-panel > b { display:block;margin-bottom:8px;font-size:11px;color:var(--muted); }
#neonLaunchRows .launch-account-scroll { overflow:auto; }
#neonLaunchRows .launch-account-panel td,#neonLaunchRows .launch-account-panel th { font-size:11px;white-space:nowrap; }
#neonLaunchRows .launch-account-panel small { display:block;margin-top:4px;color:var(--muted); }
#neonLaunchRows .launch-account-empty { margin:8px 0 8px 30px;color:var(--muted);font-size:11px; }

#neonLaunchRows .launch-account-note { margin:0 0 10px;font-size:10px;color:var(--muted); }

#neonOfferRows .neon-offer-buyer-name { display:inline-flex;gap:9px;align-items:center;padding-left:18px;color:var(--muted);font-size:.92em; }
body:not(.locked):is(.theme-light,:not(.theme-light)) #neonOfferRows .neon-offer-buyer-child > td { background:color-mix(in srgb,#9b76d6 6%,transparent) !important; }
body:not(.locked):is(.theme-light,:not(.theme-light)) #neonOfferRows .neon-offer-buyer-child:hover > td { background:color-mix(in srgb,#9b76d6 14%,transparent) !important; }
#neonOfferRows .neon-offer-buyer-child > td:first-child { padding-left:24px; }

#neonSpendDialog { width:min(1150px,95vw);max-height:92vh;padding:28px;border:1px solid #9b7dba33;border-radius:22px;background:var(--panel,#15151f);color:var(--ink);overflow:auto; }
body.theme-light #neonSpendDialog { background:#fcfaff; }
#neonSpendDialog h2 { margin:8px 0;font-size:25px; }
#neonSpendDialog .spend-analytics-heading { padding-right:32px; }
.spend-analytics-controls { display:grid;grid-template-columns:1.3fr 1fr 1fr .8fr 1fr;gap:12px;margin:22px 0 12px; }
.spend-analytics-controls label { display:grid;gap:6px;font-size:11px;color:var(--muted); }
#neonSpendDialog :is(input,select) { width:100%;min-width:0;height:40px;border:1px solid #a783df40;border-radius:10px;background:transparent;color:var(--ink);padding:8px;font:inherit; }
#neonSpendError { color:#dc667c;font-size:12px; }
.spend-analytics-kpis { display:grid;grid-template-columns:repeat(4,1fr);gap:12px; }
.spend-analytics-kpis article { padding:18px;border:1px solid #a783df30;border-radius:14px;display:flex;flex-direction:column;gap:8px; }
.spend-analytics-kpis small,.spend-analytics-kpis span { color:var(--muted);font-size:11px; }
.spend-analytics-kpis strong { font-size:25px; }
.spend-analytics-kpis .spend-total { background:linear-gradient(135deg,#9555eb,#6e36c4);color:white; }
.spend-analytics-kpis .spend-total small { color:#eee1ff; }
.spend-analytics-chart,.spend-analytics-ranking { margin-top:16px;padding:20px;border:1px solid #a783df30;border-radius:16px; }
.spend-section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.spend-section-heading h3 { font-size:15px;margin:0; }
.spend-section-heading > span { font-size:11px;color:var(--muted); }
.spend-daily-scroll { overflow-x:auto;margin-top:24px; }
.spend-daily-bars { display:flex;align-items:stretch;gap:7px;min-width:100%;height:235px; }
#neonSpendDialog .spend-day-bar { flex:1;min-width:30px;max-width:180px;display:flex;align-items:center;flex-direction:column;padding:0 2px;border:0;background:transparent;color:var(--muted);box-shadow:none; }
.spend-bar-value { font-size:9px;white-space:nowrap;opacity:0;height:16px; }
.spend-bar-track { height:190px;width:100%;display:flex;align-items:end;border-bottom:1px solid #a783df40; }
.spend-bar-track i { display:block;width:100%;min-height:2px;background:linear-gradient(0deg,#7c44d7,#b398f4);border-radius:5px 5px 0 0;transition:filter .15s; }
#neonSpendDialog .spend-day-bar:hover .spend-bar-track i { filter:brightness(1.15); }
.spend-day-bar:is(:hover,:focus-visible,.is-peak) .spend-bar-value { opacity:1; }
.spend-day-bar small { font-size:9px;margin-top:8px; }
.spend-chart-hint { color:var(--muted);font-size:10px;margin:12px 0 0; }
.spend-rank-row { display:grid;grid-template-columns:minmax(110px,1.1fr) 2fr 120px;gap:18px;align-items:center;padding:14px 0;border-bottom:1px solid #a783df20; }
.spend-rank-row:last-child { border-bottom:0;padding-bottom:0; }
.spend-rank-label small,.spend-rank-value small { display:block;font-size:10px;color:var(--muted);margin-top:5px; }
#neonSpendDialog .spend-rank-label button { background:none;border:0;padding:0;color:var(--ink);display:flex;align-items:center;gap:8px;box-shadow:none; }
.spend-rank-label :is(b,button) { font-size:12px; }
.spend-rank-label img { width:26px; }
.spend-rank-track { height:10px;background:#a783df15;border-radius:8px;overflow:hidden; }
.spend-rank-track i { display:block;height:100%;border-radius:8px; }
.spend-rank-value { text-align:right;font-size:13px; }
@media(max-width:700px) { #neonSpendDialog { padding:20px 14px; }.spend-analytics-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }.spend-analytics-kpis { grid-template-columns:repeat(2,1fr); }.spend-analytics-kpis strong { font-size:20px; }.spend-rank-row { grid-template-columns:1fr 1fr 100px;gap:8px; }.spend-section-heading { flex-wrap:wrap; }.spend-analytics-chart,.spend-analytics-ranking { padding:14px; } }

#neonSpendDialog .spend-total strong { color:#fff !important; }
#neonSpendDialog #neonSpendContext { display:block !important;line-height:1.5; }
#neonSpendDialog .spend-daily-bars { gap:5px; }
#neonSpendDialog .spend-day-bar { min-width:24px; }
@media(max-width:700px) { #neonSpendDialog .spend-day-bar { min-width:32px; } }

#neonSpendDialog .spend-analytics-kpis article { position:relative;padding:18px 18px 18px 72px;min-height:112px;justify-content:center; }
#neonSpendDialog .spend-summary-icon { position:absolute;left:17px;top:21px;display:grid;place-items:center;width:40px;height:44px;border-radius:13px;background:linear-gradient(145deg,#b496ff,#8050de);color:#fff;box-shadow:0 5px 12px #8050de26,inset 0 1px 2px #ffffff70; }
#neonSpendDialog .spend-summary-icon svg { width:25px;height:25px; }
#neonSpendDialog .spend-summary-icon-1 { background:linear-gradient(145deg,#5eaefa,#286ed4); }
#neonSpendDialog .spend-summary-icon-2 { background:linear-gradient(145deg,#f6c762,#e69a2d); }
#neonSpendDialog .spend-summary-icon-3 { background:linear-gradient(145deg,#45d6b2,#15a88b); }
#neonSpendDialog .spend-total .spend-summary-icon { background:#ffffff26;box-shadow:inset 0 1px 2px #ffffff60; }
#neonSpendDialog .spend-week-grid { display:flex;gap:12px;min-width:100%;padding-top:2px; }
#neonSpendDialog .spend-week { flex:var(--week-days) 0 calc(var(--week-days) * 68px + 20px);min-width:0;padding:12px 10px 4px;border:1px solid #a783df30;border-radius:12px;background:#a783df05; }
#neonSpendDialog .spend-week:nth-child(even) { background:#a783df0d; }
#neonSpendDialog .spend-week > header { display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:10px;color:var(--muted);margin:0 0 28px;white-space:nowrap; }
#neonSpendDialog .spend-week > header b { color:var(--ink);font-size:11px; }
#neonSpendDialog .spend-daily-bars { height:225px;gap:6px; }
#neonSpendDialog .spend-day-bar { min-width:60px;max-width:none; }
#neonSpendDialog .spend-bar-track { position:relative;height:190px; }
#neonSpendDialog .spend-bar-value { position:absolute;left:50%;transform:translateX(-50%);height:auto;opacity:1;font-size:10px;font-weight:600;color:var(--ink);white-space:nowrap;pointer-events:none; }
@media(max-width:1100px) { #neonSpendDialog .spend-analytics-kpis article { padding:70px 14px 14px;min-height:140px; }#neonSpendDialog .spend-summary-icon { top:14px;left:14px; } }
#neonSpendDialog .spend-week { min-width:148px; }
#neonSpendDialog .spend-week > header { flex-direction:column;align-items:flex-start;gap:5px;min-height:32px; }
html:has(#neonSpendDialog[open]),body:has(#neonSpendDialog[open]) { overflow:hidden !important;overscroll-behavior:none; }
#neonSpendDialog { overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain; }
#neonSpendDialog::-webkit-scrollbar { display:none; }
#neonSpendDialog .spend-daily-scroll { overflow:visible; }
#neonSpendDialog .spend-week-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0; }
#neonSpendDialog .spend-week { width:auto;min-width:0; }
#neonSpendDialog .spend-daily-bars { min-width:0; }
#neonSpendDialog .spend-day-bar { min-width:0; }
@media(max-width:850px) { #neonSpendDialog .spend-week-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:500px) { #neonSpendDialog .spend-daily-bars { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:auto;row-gap:28px; }#neonSpendDialog .spend-day-bar { height:225px; }#neonSpendDialog .spend-bar-value { font-size:9px; } }

.org-person .org-person-edit { display:block;width:fit-content;margin:5px 0 0;padding:4px 8px;border:1px solid #a783df50;border-radius:6px;background:#a783df14;color:var(--ink);font-size:9px;line-height:1.3;box-shadow:none;cursor:pointer; }
.org-person .org-person-edit:hover { background:#a783df30;border-color:#a783df; }
.org-person .org-person-edit:focus-visible { outline:2px solid #9869df;outline-offset:2px; }

#neonOfferRows .neon-offer-team-child .neon-offer-buyer-name { font-weight:700;color:var(--ink); }
body:not(.locked):is(.theme-light,:not(.theme-light)) #neonOfferRows .neon-offer-team-child > td { background:color-mix(in srgb,#9b76d6 10%,transparent) !important; }
#neonOfferRows .neon-under-team .neon-offer-buyer-name { padding-left:36px; }
#neonDashboard .neon-offers > header .neon-buyer-mode + .neon-buyer-mode { margin-left:0; }

#neonSpendDialog { width:calc(100vw - 40px);max-width:1900px;max-height:94vh;padding:26px 30px; }
#neonSpendDialog .spend-analytics-heading { margin-bottom:22px; }
#neonSpendDialog .spend-analytics-chart { margin-top:18px;padding:20px 16px 10px; }
#neonSpendDialog .spend-month-chart { display:block;width:100%;height:auto;max-height:54vh;overflow:visible;margin-top:18px; }
#neonSpendDialog .spend-chart-gridline { stroke:#a783df30;stroke-dasharray:4 5; }
#neonSpendDialog .spend-week-separator { stroke:#a783df50;stroke-dasharray:5 6; }
#neonSpendDialog .spend-axis-label { fill:var(--muted);font-size:13px;font-family:inherit; }
#neonSpendDialog .spend-month-amount { fill:var(--ink);font-size:12px;font-weight:600;font-family:inherit;pointer-events:none; }
#neonSpendDialog .spend-month-day { cursor:pointer;outline:none; }
#neonSpendDialog .spend-month-column { transition:filter .15s; }
#neonSpendDialog .spend-month-day:is(:hover,:focus-visible) .spend-month-column { filter:brightness(1.14);stroke:#8750d5;stroke-width:2; }
#neonSpendDialog .spend-day-details { display:block;min-height:25px;text-align:center;color:var(--muted);font-size:11px;padding:5px; }
@media(max-width:700px) { #neonSpendDialog { width:calc(100vw - 16px);padding:20px 12px; }#neonSpendDialog .spend-analytics-chart { padding:14px 6px 6px; }#neonSpendDialog .spend-day-details { font-size:10px; } }

#neonSpendDialog .spend-analytics-kpis { gap:14px; }
#neonSpendDialog .spend-analytics-kpis .spend-summary-card { position:relative;min-height:148px;padding:22px;justify-content:flex-start;gap:0;border:1px solid #a783df24;border-radius:18px;box-shadow:0 4px 18px #57407206;overflow:hidden;background:linear-gradient(135deg,#ffffff,#f7f2fe); }
#neonSpendDialog .spend-analytics-kpis .spend-summary-card-1 { background:linear-gradient(135deg,#ffffff,#edf5ff);border-color:#548fe522; }
#neonSpendDialog .spend-analytics-kpis .spend-summary-card-2 { background:linear-gradient(135deg,#ffffff,#fff7e8);border-color:#d6a03f28; }
#neonSpendDialog .spend-analytics-kpis .spend-summary-card-3 { background:linear-gradient(135deg,#ffffff,#eaf9f2);border-color:#1dad8a22; }
#neonSpendDialog .spend-analytics-kpis .spend-total { background:linear-gradient(120deg,#9957ef,#7136ce);border-color:transparent;box-shadow:0 6px 22px #8144d726; }
#neonSpendDialog .spend-summary-card > small { color:var(--ink);opacity:.8;font-size:12px;font-weight:600;line-height:1.5;min-height:36px;padding-right:48px; }
#neonSpendDialog .spend-summary-card > strong { margin-top:7px;font-size:clamp(24px,2vw,34px);font-weight:800;line-height:1.2;letter-spacing:-.6px; }
#neonSpendDialog .spend-summary-card > .spend-summary-note { margin-top:9px;font-size:11px;color:#93859f; }
#neonSpendDialog .spend-total > :is(small,.spend-summary-note) { color:#f0e2ff;opacity:1; }
#neonSpendDialog .spend-summary-card .spend-summary-icon { left:auto;right:18px;top:18px;width:42px;height:44px;border-radius:13px; }
body:not(.theme-light) #neonSpendDialog .spend-analytics-kpis .spend-summary-card-1 { background:linear-gradient(135deg,#1d2031,#1a2a42); }
body:not(.theme-light) #neonSpendDialog .spend-analytics-kpis .spend-summary-card-2 { background:linear-gradient(135deg,#25202e,#352a21); }
body:not(.theme-light) #neonSpendDialog .spend-analytics-kpis .spend-summary-card-3 { background:linear-gradient(135deg,#1c252c,#18382f); }
body:not(.theme-light) #neonSpendDialog .spend-summary-card > .spend-summary-note { color:#b0a4c0; }
body:not(.theme-light) #neonSpendDialog .spend-total > .spend-summary-note { color:#f0e2ff; }
@media(max-width:700px) { #neonSpendDialog .spend-analytics-kpis { gap:9px; }#neonSpendDialog .spend-analytics-kpis .spend-summary-card { padding:15px;min-height:154px; }#neonSpendDialog .spend-summary-card .spend-summary-icon { width:32px;height:34px;top:14px;right:12px; }#neonSpendDialog .spend-summary-card .spend-summary-icon svg { width:21px;height:21px; }#neonSpendDialog .spend-summary-card > small { padding-right:32px;min-height:52px;font-size:10px; }#neonSpendDialog .spend-summary-card > strong { font-size:21px; } }

.spend-toolbar{display:flex;align-items:end;justify-content:flex-end;gap:12px;margin:-10px 0 20px}.spend-toolbar label{display:grid;gap:6px;color:var(--muted);font-size:12px}.spend-toolbar select{min-width:190px;padding:10px 14px;border-radius:12px}.spend-toolbar button{min-height:42px;border-radius:12px}.spend-toolbar button[aria-pressed="true"]{background:#8652ff;color:white;border-color:#8652ff}.spend-week-separator{stroke:#9865d4;stroke-width:1.5;stroke-dasharray:5 5}.spend-week-label{fill:var(--muted);font-size:12px;font-weight:600}@media(max-width:700px){.spend-toolbar{justify-content:flex-start;flex-wrap:wrap;margin-top:0}.spend-week-label{font-size:10px}}

/* Spend analytics: compact header and calendar-week focus. */
#neonSpendDialog{outline:none;border:1px solid #bfa5e044;box-shadow:0 28px 100px #21113735}
#neonSpendDialog .spend-analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-right:34px;margin-bottom:24px}
#neonSpendDialog .spend-analytics-heading h2{margin:0 0 7px;font-size:26px;letter-spacing:-.6px}
#neonSpendDialog .spend-analytics-heading .subtitle{margin:0;font-size:12px}
#neonSpendDialog .spend-toolbar{margin:0;align-items:center;gap:10px;flex-shrink:0;padding:8px;background:#9970cb09;border:1px solid #a783df22;border-radius:16px}
#neonSpendDialog .spend-toolbar label{gap:0;font-size:0}
#neonSpendDialog .spend-toolbar select{font-size:13px;min-width:165px;height:42px;background:transparent;border-color:transparent;cursor:pointer}
#neonSpendDialog .spend-toolbar button{padding:10px 16px;font-size:13px;box-shadow:none;border:1px solid #a783df35;background:transparent;color:var(--ink);transition:background .15s,box-shadow .15s}
#neonSpendDialog .spend-toolbar button:hover{background:#9970cb16}
#neonSpendDialog .spend-toolbar button[aria-pressed="true"]{background:#8652ff;color:#fff;border-color:#8652ff;box-shadow:0 3px 10px #8652ff26}
#neonSpendDialog .spend-analytics-chart{border-radius:20px}
.spend-week-band{fill:#9969d505;pointer-events:none;transition:fill .15s}.spend-week-band.is-active{fill:#9969d51a}
#neonSpendDialog .spend-day-details{display:block;width:fit-content;max-width:100%;margin:12px auto 0;padding:9px 16px;border-radius:10px;background:#9865d40c;color:var(--ink);font-weight:600;font-size:12px}
@media(max-width:850px){#neonSpendDialog .spend-analytics-heading{align-items:flex-start;flex-direction:column;gap:14px}#neonSpendDialog .spend-toolbar{flex-wrap:wrap}#neonSpendDialog .spend-analytics-heading h2{font-size:23px}}

/* Separate month field and week switch with consistent alignment. */
#neonSpendDialog .spend-toolbar{padding:0;border:0;background:transparent;gap:14px}
#neonSpendDialog .spend-toolbar label{position:relative;display:block;border:1px solid #a783df38;border-radius:12px;background:#9970cb06;overflow:hidden}
#neonSpendDialog .spend-toolbar label::after{content:"";position:absolute;right:16px;top:17px;width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);pointer-events:none;color:var(--ink)}
#neonSpendDialog .spend-toolbar select{appearance:none;-webkit-appearance:none;display:block;width:190px;min-width:0;height:44px;line-height:22px;padding:10px 42px 10px 15px;border:0;border-radius:12px;background:none;color:var(--ink);box-shadow:none}
#neonSpendDialog .spend-toolbar select:focus-visible{outline:2px solid #9865d4;outline-offset:-3px}
#neonSpendDialog .spend-toolbar button,#neonSpendDialog .spend-toolbar button[aria-pressed="true"]{display:flex;align-items:center;gap:9px;height:44px;padding:0 4px;border:0;background:transparent;color:var(--ink);box-shadow:none;border-radius:8px;font-weight:600}
#neonSpendDialog .spend-toolbar button:hover{background:#9970cb08}
.spend-week-toggle-track{display:inline-flex;align-items:center;width:36px;height:22px;padding:3px;border-radius:20px;background:#a497b53d;transition:background .18s;box-sizing:border-box}
.spend-week-toggle-track i{display:block;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 4px #20103026;transition:transform .18s}
#neonSpendByWeeks[aria-pressed="true"] .spend-week-toggle-track{background:#8652ff}
#neonSpendByWeeks[aria-pressed="true"] .spend-week-toggle-track i{transform:translateX(14px)}

/* Keep offer actions comfortably inside the row edge. */
body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers td:has(> :is([data-neon-detail],[data-unity-row])) { padding-right:16px;padding-left:12px; }
:is(#neonDashboard,#unityNeonDashboard) .neon-offers th[data-custom-label="Действие"] { padding-right:16px;padding-left:12px; }

.source-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:20px 0}.source-filters label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.source-filters input,.source-filters select{min-height:42px}.source-search{flex:1;min-width:200px}.source-table-scroll{overflow:auto;max-height:72vh}.source-table-scroll table{width:100%;font-size:12px}.source-table-scroll th{position:sticky;top:0;background:var(--panel,#191725);z-index:2;white-space:nowrap}.source-table-scroll td{padding:12px;vertical-align:top}.source-campaign-name{min-width:240px;max-width:450px;overflow-wrap:anywhere}.source-table-scroll code{white-space:nowrap;font-size:11px}.source-day-heading td{background:#9865d415!important;padding:13px}.source-day-heading span{float:right;color:var(--muted)}.source-panel{padding:24px}body.theme-light .source-table-scroll th{background:#f6f1fa}

/* Keep source names within their column rather than expanding the table. */
#sourceView{min-width:0;max-width:100%}#sourceView .source-panel{min-width:0;overflow:hidden}#sourceView .source-table-scroll{overflow-x:hidden;width:100%}#sourceView table{table-layout:fixed;width:100%;min-width:0}#sourceView th,#sourceView td{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:12px 9px}#sourceView .source-campaign-name{min-width:0;max-width:none}#sourceView .source-campaign-name span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#sourceView th:nth-child(1){width:7%}#sourceView th:nth-child(2){width:13%}#sourceView th:nth-child(3){width:12%}#sourceView th:nth-child(4){width:10%}#sourceView th:nth-child(5){width:10%}#sourceView th:nth-child(6){width:7%}#sourceView th:nth-child(7){width:21%}#sourceView th:nth-child(8){width:9%}#sourceView th:nth-child(9){width:11%}#sourceView th:last-child,#sourceView td:last-child{text-align:right}#sourceView .source-day-heading td{text-align:left}#sourceView .source-filters #sourceAllDays{height:42px;padding:0 16px;border:1px solid #a783df40;border-radius:12px;background:#9865d40b;color:var(--ink);font-size:13px}

/* Source workspace: controls first, compact totals and clear day groups. */
#sourceView .source-panel{padding:22px;border-radius:20px}
#sourceView .source-filters{margin:0 0 18px;gap:12px;display:grid;grid-template-columns:180px 165px 140px minmax(200px,1fr);align-items:end}
#sourceView .source-filters label{gap:8px;font-size:11px;font-weight:600;letter-spacing:.02em}
#sourceView .source-filters :is(input,select){width:100%;height:44px;min-width:0;box-sizing:border-box;border:1px solid #a783df30;border-radius:12px;background:#9865d407;color:var(--ink);padding:10px 13px;box-shadow:none;outline-offset:2px}
#sourceView .source-filters input[type="date"]{color-scheme:dark}
body.theme-light #sourceView .source-filters input[type="date"]{color-scheme:light}
#sourceView .source-filters #sourceAllDays{height:44px;background:#8652ff;color:white;border-color:#8652ff;font-weight:600;transition:filter .15s}
#sourceView .source-filters #sourceAllDays:hover{filter:brightness(1.08)}
#sourceView #sourceSummary{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px;margin:0 0 20px}
#sourceView #sourceSummary>span{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #a783df22;border-radius:13px;padding:15px 18px;background:#9865d406}
#sourceView #sourceSummary small{font-size:12px;color:var(--muted)}
#sourceView #sourceSummary b{font-size:20px;color:var(--ink);letter-spacing:-.4px}
#sourceView #sourceSummary .source-total{background:linear-gradient(120deg,#9865d414,#9865d407);border-color:#a783df38}
#sourceView .source-table-scroll{border:1px solid #a783df22;border-radius:14px}
#sourceView .source-table-scroll th{height:42px;font-size:10px;letter-spacing:.04em;border-bottom:1px solid #a783df25}
#sourceView .source-table-scroll tbody tr:not(.source-day-heading):hover td{background:#9865d409}
#sourceView .source-table-scroll td{height:46px;box-sizing:border-box;border-bottom:1px solid #a783df10}
#sourceView .source-day-heading td{height:44px;background:#9865d410!important;border-top:1px solid #a783df25;border-bottom:1px solid #a783df20;padding:10px 14px}
#sourceView .source-day-heading b{font-size:12px}#sourceView .source-day-heading span{font-size:11px}
#sourceView .source-table-scroll td:last-child:not([colspan]){font-weight:600}
@media(max-width:850px){#sourceView .source-filters{grid-template-columns:1fr 1fr}#sourceView #sourceSummary{grid-template-columns:1fr}#sourceView .source-panel{padding:14px}}

/* Source controls and summary cards. */
#sourceView .source-filters{grid-template-columns:220px minmax(200px,1fr);gap:16px}
.source-month-field{display:block;position:relative;border:1px solid #a783df30;border-radius:12px;overflow:hidden;background:#9865d407}
.source-month-field::after{content:"";position:absolute;right:17px;top:16px;width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);pointer-events:none;color:var(--ink)}
#sourceView .source-filters #sourceMonth{appearance:none;-webkit-appearance:none;border:0;background:none;padding:10px 42px 10px 15px;width:100%;cursor:pointer;outline-offset:-3px}
#sourceView #sourceSummary{grid-template-columns:1fr 1fr 1.4fr;gap:14px;margin:22px 0}
#sourceView #sourceSummary>.source-stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;position:relative;min-height:125px;padding:20px 24px;border-radius:17px;box-sizing:border-box;box-shadow:0 4px 16px #35145404}
#sourceView #sourceSummary>.source-stat-0{background:linear-gradient(125deg,#9463d90d,#9463d903);border-color:#9463d925}
#sourceView #sourceSummary>.source-stat-1{background:linear-gradient(125deg,#4099db0c,#4099db03);border-color:#4099db25}
#sourceView #sourceSummary>.source-stat-2{background:linear-gradient(115deg,#9051e8,#7135cb);border-color:transparent;box-shadow:0 6px 20px #8652ff1a}
#sourceView #sourceSummary small{padding-right:48px;font-size:12px;font-weight:600}
#sourceView #sourceSummary b{font-size:30px;line-height:1.15;letter-spacing:-.7px}
#sourceView #sourceSummary em{font-style:normal;color:var(--muted);font-size:10px}
.source-stat-icon{position:absolute;right:20px;top:20px;display:grid;place-items:center;width:38px;height:40px;border-radius:12px;background:#9563db14;color:#9563db}
.source-stat-icon svg{width:23px;height:23px}.source-stat-1 .source-stat-icon{background:#4099db14;color:#4099db}
#sourceView #sourceSummary .source-stat-2 :is(small,b,em){color:white}.source-stat-2 .source-stat-icon{background:#ffffff25;color:white}
@media(max-width:750px){#sourceView .source-filters{grid-template-columns:1fr}#sourceView #sourceSummary{grid-template-columns:1fr}#sourceView #sourceSummary>.source-stat{min-height:120px}}

/* Dashboard-style metrics above the filter strip; collapsed daily breakdowns. */
#sourceView #sourceSummary{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 18px}
#sourceView #sourceSummary>.source-stat{min-height:104px;padding:20px 20px 20px 82px;gap:6px;border:1px solid #a783df2b;background:transparent;box-shadow:none;border-radius:14px}
#sourceView #sourceSummary .source-stat :is(small,b,em){color:var(--ink)}
#sourceView #sourceSummary small{text-transform:uppercase;font-size:10px;letter-spacing:.06em;color:var(--muted)!important;padding:0}
#sourceView #sourceSummary b{font-size:28px}#sourceView #sourceSummary em{display:none}
#sourceView .source-stat-icon{left:20px;right:auto;top:50%;transform:translateY(-50%);width:45px;height:48px;border-radius:13px;background:linear-gradient(140deg,#ad74ff,#793bf0);color:white;box-shadow:0 5px 12px #8850db24}
#sourceView .source-stat-1 .source-stat-icon{background:linear-gradient(140deg,#4da8ff,#2070e6);color:white}
#sourceView .source-stat-2 .source-stat-icon{background:linear-gradient(140deg,#2bd3a5,#0da780);color:white}
#sourceView .source-filters{padding:16px;background:#9865d405;border:1px solid #a783df22;border-radius:14px;margin:0 0 20px}
#sourceView .source-day-heading td{padding:0;height:auto;background:#9865d408!important}
#sourceView .source-day-toggle{display:flex;align-items:center;gap:14px;width:100%;padding:17px 16px;background:none;border:0;border-radius:0;color:var(--ink);text-align:left;box-shadow:none;cursor:pointer}
#sourceView .source-day-toggle:hover{background:#9865d40d}
#sourceView .source-day-toggle i{font-style:normal;font-size:23px;line-height:16px;color:#9563db;transition:transform .15s}
#sourceView .source-day-toggle[aria-expanded="true"] i{transform:rotate(90deg)}
#sourceView .source-day-toggle span{float:none;color:var(--muted);font-size:11px;margin-left:auto}
#sourceView .source-day-toggle strong{font-size:13px;min-width:100px;text-align:right}
#sourceView .source-day-toggle[aria-expanded="true"]{background:#9865d410}
#sourceView [data-source-child][hidden]{display:none!important}
@media(max-width:750px){#sourceView #sourceSummary{grid-template-columns:1fr}#sourceView #sourceSummary>.source-stat{min-height:90px}}

#sourceView .source-filters{grid-template-columns:220px minmax(180px,1fr) auto}#sourceFilterToggle{display:flex;gap:8px;align-items:center;height:44px;padding:0 16px;border:1px solid #a783df40;border-radius:12px;background:#9865d40b;color:var(--ink)}#sourceFilterToggle svg{width:18px;height:18px}#sourceFilterToggle[aria-expanded="true"]{background:#9865d420}#sourceExtraFilters:not([hidden]){display:flex;gap:16px;margin:-8px 0 20px;flex-wrap:wrap}#sourceExtraFilters label{display:grid;gap:6px;font-size:12px;min-width:150px}#sourceExtraFilters select{height:40px;border-radius:10px}
#sourceView th:nth-child(1){width:6%}#sourceView th:nth-child(2){width:12%}#sourceView th:nth-child(3){width:11%}#sourceView th:nth-child(4){width:9%}#sourceView th:nth-child(5){width:9%}#sourceView th:nth-child(6){width:6%}#sourceView th:nth-child(7){width:21%}#sourceView th:nth-child(8){width:8%}#sourceView th:nth-child(9){width:8%}#sourceView th:nth-child(10){width:10%}
#sourceView [data-source-child] td{outline:none!important;box-shadow:none!important;background:transparent!important}#sourceView [data-source-child]:hover td,#sourceView [data-source-child]:focus-within td{background:#9865d410!important}
#sourceView .source-campaign-name span{cursor:pointer}#sourceView .source-campaign-name span:hover,#sourceView .source-campaign-name span:focus,#sourceView .source-campaign-name span.is-expanded{white-space:normal;overflow-wrap:anywhere;overflow:visible}#sourceView .source-campaign-name:has(span.is-expanded){white-space:normal}
@media(max-width:750px){#sourceView .source-filters{grid-template-columns:1fr auto}#sourceView .source-month-label{grid-column:1/-1}}

#sourceView #sourceFilterToggle{position:relative;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid #d8c9e8;border-radius:12px;background:#fff;color:#9780ad;box-shadow:0 2px 8px #5b3a7e06}
#sourceView #sourceFilterToggle svg{width:20px;height:20px}#sourceView #sourceFilterCount{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;box-sizing:border-box;border:2px solid #fff;border-radius:10px;background:#8652ff;color:#fff;font-size:9px;line-height:1}
body:not(.theme-light) #sourceView #sourceFilterToggle{background:#171321;border-color:#3c2d50}body:not(.theme-light) #sourceView #sourceFilterCount{border-color:#171321}#sourceView #sourceFilterToggle:hover{background:#9865d40d}#sourceView #sourceFilterToggle[aria-expanded="true"]{border-color:#9865d4;background:#9865d414}

#sourceView .source-table-scroll { scrollbar-width:none; -ms-overflow-style:none; }
#sourceView .source-table-scroll::-webkit-scrollbar { display:none; width:0; height:0; }

#sourceView .source-filters{grid-template-columns:minmax(180px,1fr) auto}
#dashboardFilterFields #sourceExtraFilters{display:grid;grid-template-columns:1fr;gap:20px;margin:0;padding:0}
#dashboardFilterFields #sourceExtraFilters label{display:grid;gap:12px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:600;color:inherit;min-width:0}
#dashboardFilterFields #sourceExtraFilters select{width:100%;height:52px;border:1px solid #a783df33;border-radius:12px;padding:12px 16px;color:inherit;background:#9865d409;font-size:14px;text-transform:none;letter-spacing:normal}
#dashboardFilterFields #sourceExtraFilters .source-month-field{background:transparent}
#dashboardFilterFields #sourceExtraFilters .source-month-field select{appearance:none;-webkit-appearance:none;padding-right:40px;border:0}
#dashboardFilterFields #sourceResetFilters{height:48px;width:100%;border:1px solid #a783df55;border-radius:12px;background:#9865d406;color:inherit;font-weight:600}

#offerSpendKpiBlock{padding:20px;border:1px solid #a783df33;border-radius:14px;background:#9865d408}#offerSpendKpiBlock h3{margin:0 0 16px;font-size:16px}.offer-spend-kpi-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}#offerSpendKpiBlock small{display:block;color:var(--muted);margin-top:14px;line-height:1.6}@media(max-width:600px){.offer-spend-kpi-fields{grid-template-columns:1fr}}
body :is(#companyTable,#creativeTable) .company-profit-neutral{color:#c5871b}

body:not(.locked) :is(#companiesView,#creativesView) .company-table tbody tr>td.company-profit-neutral,body:not(.locked) :is(#companiesView,#creativesView) .company-table tbody tr:hover>td.company-profit-neutral{color:#c5871b!important}

/* Planned offer price, separate from actual Spend / FTD. */
#offersView .offer-deposit-price-cell { min-width:170px; max-width:220px; white-space:normal; }
#offersView .offer-deposit-price-cell small { display:block; white-space:normal; }

#offersView .offer-kpi-cell { min-width:190px; white-space:normal; }
#offersView .offer-kpi-cell small { display:block; white-space:normal; }

#offerUncappedField > span { display:flex; align-items:center; gap:10px; }
#offerUncappedFtd { width:18px; height:18px; min-height:0; flex-shrink:0; accent-color:#8547ff; }

/* Keep the visible GEO/PROJECT identities readable while swiping mobile metrics. */
@media (max-width:780px) {
  body:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers .dashboard-mobile-pinned {
    position:sticky;left:var(--dashboard-pin-left,0px);z-index:3;background:#11131c;
  }
  body:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers th.dashboard-mobile-pinned { z-index:12; }
  body:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers .dashboard-mobile-project {
    width:min(42vw,180px);max-width:min(42vw,180px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    box-shadow:4px 0 5px -4px #0008;
  }
  body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers .dashboard-mobile-pinned { background:#fff; }
  body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers tr:hover .dashboard-mobile-pinned { background:#f2eafa; }
}
/* Frozen cells must override the transparent row/child-row backgrounds. */
@media (max-width:780px) {
  body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers :is(thead,tbody) tr > :is(th,td).dashboard-mobile-pinned {
    background:#11131c !important;
  }
  body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers :is(thead,tbody) tr > :is(th,td).dashboard-mobile-pinned {
    background:#fff !important;
  }
  body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers tbody tr:hover > td.dashboard-mobile-pinned { background:#242033 !important; }
  body.theme-light:not(.locked) :is(#neonDashboard,#unityNeonDashboard) .neon-offers tbody tr:hover > td.dashboard-mobile-pinned { background:#f2eafa !important; }
}
/* Touch browsers retain :hover after a tap; legacy row hover must not unpin cells. */
@media (max-width:780px) {
  body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers :is(thead,tbody) tr > :is(th,td).dashboard-mobile-pinned {
    position:sticky !important;left:var(--dashboard-pin-left,0px) !important;z-index:3 !important;
  }
  body:not(.locked):is(.theme-light,:not(.theme-light)) :is(#neonDashboard,#unityNeonDashboard) .neon-offers thead tr > th.dashboard-mobile-pinned { z-index:12 !important; }
}

.session-reload-dialog { width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink); }
.session-reload-dialog::backdrop { background:#15102299;backdrop-filter:blur(3px); }
.session-reload-dialog h2 { margin:0 0 12px;font-size:22px;line-height:1.3; }
.session-reload-dialog p { margin:0 0 22px;color:var(--muted);line-height:1.6; }
.session-reload-dialog button { width:100%;padding:13px 20px;border:0;border-radius:10px;background:#8547ff;color:white;font:inherit;font-weight:700;cursor:pointer; }
/* Reserve most of the phone launch dialog for the scrollable report. */
@media (max-width:700px) {
  :is(#neonLaunchDialog,#unityLaunchDialog) { width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:6px;padding:12px;border-radius:14px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .dialog-close { top:8px;right:8px;width:32px;height:32px;font-size:24px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading { padding:0 36px 8px 0; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading > p { margin-bottom:3px;font-size:8px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-dialog-heading h2 { font-size:20px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-toolbar { margin:8px 0;padding:8px;gap:8px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date { width:100%;gap:6px;flex-wrap:nowrap; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date > label { display:none; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date-controls { flex:1;min-width:0;gap:4px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date input { flex:1;width:0;min-width:0;height:34px;padding:5px;font-size:12px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .neon-launch-date button { height:34px;min-width:32px;padding:4px 8px;font-size:11px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-breakdown-toggles { display:flex;flex-wrap:wrap;gap:8px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-buyer-toggle { font-size:10px;gap:5px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchMetrics,#unityLaunchMetrics) { margin-bottom:8px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) :is(.launch-primary-metrics,.launch-secondary-metrics) { grid-template-columns:repeat(4,minmax(0,1fr));gap:5px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-secondary-metrics { margin-top:5px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-card,
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-secondary-metrics .launch-day-card { padding:7px 5px;gap:3px;border-radius:8px; }
  :is(#neonLaunchDialog,#unityLaunchDialog) .launch-day-card small { font-size:9px;line-height:1.25;overflow-wrap:anywhere; }
  :is(#neonLaunchDialog,#unityLaunchDialog) :is(.launch-primary-metrics,.launch-secondary-metrics) strong { font-size:15px;line-height:1.2;overflow-wrap:anywhere; }
  :is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { flex:1 1 220px;min-height:180px;overscroll-behavior:contain;border-top:1px solid #a784cc26; }
  :is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) th { position:sticky;top:0;z-index:2;background:#21182d; }
  body.theme-light :is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) th { background:#f5effa; }
}
@media (max-width:700px) and (max-height:580px) {
  :is(#neonLaunchDialog,#unityLaunchDialog)[open] { overflow-y:auto; }
  :is(#neonLaunchDialog,#unityLaunchDialog) :is(#neonLaunchRows,#unityLaunchRows) { flex-shrink:0;min-height:200px; }
}

/* Keep focused form controls above iOS Safari's automatic zoom threshold. */
@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

#neonLaunchDialog .launch-primary-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }

.salary-period small { color:#eee1fc; }
.salary-period strong { font-size:20px; }
.salary-status { margin:12px 2px; min-height:1.3em; }
.salary-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0 22px; }
.salary-summary article { border:1px solid var(--line); border-radius:14px; padding:16px; background:var(--panel); }
.salary-summary small,.salary-person small,.salary-payable small,.salary-card dt { display:block; color:var(--muted); }
.salary-summary strong { display:block; margin-top:5px; font-size:clamp(16px,2.1vw,26px); overflow-wrap:anywhere; }
.salary-roster { padding:clamp(12px,2vw,22px); border:1px solid var(--line); border-radius:18px; background:var(--panel); }
.salary-filters { display:flex; flex-wrap:wrap; gap:10px; }
.salary-filters label,.salary-form label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:650; }
.salary-filters :is(input,select),.salary-form :is(input,textarea) { width:100%; min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:var(--panel); color:var(--ink); font:inherit; }
.salary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:12px; }
.salary-card { min-width:0; display:grid; gap:12px; padding:14px; border:1px solid var(--line); border-radius:14px; }
.salary-person { display:flex; align-items:center; gap:10px; min-width:0; }
.salary-person h3 { margin:0 0 3px; font-size:16px; overflow-wrap:anywhere; }
.salary-person small { overflow-wrap:anywhere; }
.salary-avatar { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:12px; background:#8653c529; color:var(--ink); font-weight:800; }
.salary-payable { padding:10px 12px; border-radius:10px; background:#8653c518; }
.salary-payable strong { display:block; margin-top:2px; font-size:24px; font-variant-numeric:tabular-nums; }
.salary-card-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; }
.salary-card-metrics dt { font-size:11px; }
.salary-card-metrics dd { margin:3px 0 0; font-weight:750; overflow-wrap:anywhere; }
.salary-card-action { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); cursor:pointer; font:inherit; font-weight:700; }
.salary-card-action:hover { border-color:#a875e4; background:#8653c518; }
.salary-empty { grid-column:1 / -1; padding:16px; color:var(--muted); }
.salary-dialog { width:min(1080px,calc(100% - 24px)); max-width:none; max-height:92dvh; overflow:auto; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--panel); color:var(--ink); }
.salary-dialog::backdrop { background:#10101980; }
.salary-detail-head { padding:16px; border-radius:12px; background:#8653c522; }
.salary-detail-head h2 { margin:4px 0; }
.salary-detail-head strong { font-size:26px; }
.salary-breakdown { display:grid; gap:1px; }
.salary-breakdown div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.salary-breakdown dd { margin:0; font-weight:750; white-space:nowrap; }
.salary-form { display:grid; gap:10px; margin-top:14px; }
.salary-form button { justify-self:start; }
@media (max-width:600px) {
  .salary-period { min-width:0; }
  .salary-summary { gap:6px; }
  .salary-summary article { padding:9px; }
  .salary-filters { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .salary-dialog { padding:14px; }
}

/* Dedicated surfaces keep payroll cards distinct from the workspace background. */
#salaryView, #salaryDialog {
  --salary-surface: #171523;
  --salary-border: #393047;
  --salary-accent: #c19af4;
  --salary-soft: #282039;
}
body.theme-light #salaryView, body.theme-light #salaryDialog {
  --salary-surface: #fff;
  --salary-border: #e7dcf0;
  --salary-accent: #7041aa;
  --salary-soft: #f5eefc;
}
#salaryView .salary-period strong { color: var(--ink); }
#salaryView .salary-summary article,
#salaryView .salary-card { background: var(--salary-surface); border: 1px solid var(--salary-border); box-shadow: 0 3px 12px #2715350a; }
#salaryView .salary-roster { padding: 0; border: 0; background: transparent; }
#salaryView .salary-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
#salaryView .salary-card { padding: 16px; grid-template-rows: auto auto 1fr auto; }
#salaryView .salary-payable { background: var(--salary-soft); }
#salaryView .salary-payable strong { color: var(--salary-accent); }
#salaryView .salary-card-metrics { grid-template-columns: 1fr; gap: 0; }
#salaryView .salary-card-metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--salary-border); }
#salaryView .salary-card-metrics dd { white-space: nowrap; margin: 0; }
#salaryView .salary-card-action { color: var(--salary-accent); border-color: var(--salary-border); background: var(--salary-surface); }
#salaryView .salary-card-action:hover { background: var(--salary-soft); }
#salaryDialog { background: var(--salary-surface); border-color: var(--salary-border); }
#salaryDialog .salary-detail-head { background: var(--salary-soft); }
#salaryDialog .salary-breakdown div { border-color: var(--salary-border); }


.salary-icon { width:18px; height:18px; flex:none; vertical-align:middle; }
#salaryView .salary-summary article { display:flex; align-items:center; gap:13px; }
#salaryView .salary-summary .salary-icon { width:60px; height:60px; padding:12px; border-radius:16px; color:#fff; box-shadow:inset 0 2px 3px #ffffff38,0 5px 13px #18132c20; background:linear-gradient(140deg,#3195ff,#1354ce); }
#salaryView .salary-summary .salary-icon-trend { background:linear-gradient(140deg,#20ce91,#098760); }
#salaryView .salary-summary .salary-icon-wallet { background:linear-gradient(140deg,#ae75fc,#743ae1); }
.salary-payable .salary-icon, .salary-card-metrics .salary-icon { width:14px; height:14px; margin-right:4px; color:var(--salary-accent); }
#salaryView .salary-card { transition:border-color .15s, box-shadow .15s; }
#salaryView .salary-card:hover { border-color:#a875e4; box-shadow:0 5px 18px #562b7d15; }
@media(max-width:600px) {
  #salaryView .salary-summary article { align-items:flex-start; flex-direction:column; gap:6px; }
  #salaryView .salary-summary .salary-icon { width:38px; height:38px; padding:7px; border-radius:10px; }
}

#salaryView .salary-summary { margin-top:0; }
#salaryView .salary-card-metrics .salary-icon-trend { color:#139971; }
#salaryView .salary-card-metrics .salary-icon-percent { color:#cc8a25; }
#salaryView .salary-card:nth-child(3n+1) .salary-avatar { color:#2877cc; background:#278aff20; }
#salaryView .salary-card:nth-child(3n+2) .salary-avatar { color:#168765; background:#19aa7920; }

body.theme-light #salaryView .salary-summary article { background:#fff; }
#salaryView .salary-summary { margin-bottom:10px; }
#salaryView .salary-toolbar {
  display:grid; grid-template-columns:auto minmax(0,620px); justify-content:space-between; align-items:center; gap:18px;
  padding:14px 16px; border:1px solid var(--salary-border); border-radius:14px; background:var(--salary-surface);
}
.salary-toolbar-title h2 { margin:0 0 4px; font-size:16px; }
#salaryView .salary-roster { margin-top:14px; }
#salaryView .salary-status { margin:0; min-width:0; overflow-wrap:anywhere; }
#salaryView .salary-toolbar .salary-filters { display:grid; grid-template-columns:1.05fr 1fr 1.25fr; gap:10px; width:100%; }
#salaryView .salary-toolbar label { min-width:0; }
#salaryView .salary-toolbar :is(label, .salary-period-menu summary small) {
  font-size:13px; line-height:18px; font-weight:650;
}
#salaryView .salary-toolbar :is(input, select, .salary-period-menu summary strong) {
  box-sizing:border-box; height:44px; min-height:44px; padding:0 12px;
  border:1px solid var(--salary-border); border-radius:10px;
  background:var(--salary-surface); font-size:13px; line-height:1.25;
}
@media(max-width:820px) {
  #salaryView .salary-toolbar { grid-template-columns:1fr; gap:12px; padding:12px; }
}

.salary-period-menu { position:relative; min-width:0; }
.salary-period-menu summary { display:grid; gap:6px; list-style:none; cursor:pointer; }
.salary-period-menu summary::-webkit-details-marker { display:none; }
.salary-period-menu summary small { color:var(--muted); font-size:13px; font-weight:650; }
.salary-period-menu summary strong { display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:650; }
.salary-period-menu summary strong::after { content:""; width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); flex:none; }
.salary-period-menu[open] summary strong::after { transform:rotate(225deg); }
.salary-period-popup { position:absolute; top:calc(100% + 6px); left:0; z-index:8; width:max(100%,220px); padding:12px; background:var(--salary-surface); border:1px solid var(--salary-border); border-radius:10px; box-shadow:0 8px 20px #27153520; }
@media(max-width:480px) {
  #salaryView .salary-toolbar .salary-filters { grid-template-columns:1fr 1fr; }
  .salary-period-menu { grid-column:1 / -1; }
}

#salaryView .salary-team-field { position:relative; }
#salaryView #salaryTeam { appearance:none; -webkit-appearance:none; padding-right:32px; }
#salaryView .salary-team-field::after {
  content:""; position:absolute; right:14px; bottom:20px; width:7px; height:7px;
  border:solid var(--ink); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); pointer-events:none;
}

.salary-offer-breakdown { margin:18px 0; padding:14px; border:1px solid var(--salary-border); border-radius:12px; }
.salary-offer-breakdown h3 { margin:0 0 12px; }
.salary-offer-breakdown table { min-width:660px; }
.salary-offer-breakdown th, .salary-offer-breakdown td { padding:9px 10px; }

.salary-offer-breakdown .subtitle { margin:10px 0 0; }

#salaryDialog .salary-detail-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:16px 42px 16px 16px; }
#salaryDialog .salary-detail-head p { margin:0; }
#salaryDialog .salary-detail-head h2 { font-size:24px; }
.salary-slip-payable { display:flex; align-items:center; gap:12px; color:var(--salary-accent); }
.salary-slip-payable svg { width:38px; height:38px; padding:8px; border-radius:10px; background:var(--salary-surface); }
.salary-slip-payable small,.salary-slip-payable strong { display:block; }
.salary-slip-groups { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.salary-slip-group { min-width:0; padding:12px 14px; border:1px solid var(--salary-border); border-radius:12px; }
.salary-slip-group h3,.salary-form h3 { margin:0 0 6px; font-size:15px; }
.salary-slip-group .salary-breakdown { margin:0; }
#salaryDialog .salary-slip-group .salary-breakdown div:last-child { border-bottom:0; }
.salary-slip-net dd,.salary-slip-bonus dd { color:var(--salary-accent); }
.salary-slip-warning { padding:8px 12px; border-radius:8px; background:#e7a4361a; }
.salary-offer-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.salary-offer-heading h3 { margin:0; }
.salary-offer-heading span { color:var(--muted); font-size:12px; }
#salaryDialog .salary-offer-breakdown .table-wrap { overflow:auto; border-radius:8px; border:1px solid var(--salary-border); }
#salaryDialog .salary-offer-breakdown table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
#salaryDialog .salary-offer-breakdown :is(td,th) { border:0; border-bottom:1px solid var(--salary-border); background:var(--salary-surface); text-align:right; white-space:nowrap; }
#salaryDialog .salary-offer-breakdown :is(td,th):first-child { text-align:left; }
#salaryDialog .salary-offer-breakdown tbody td:first-child { white-space:normal; font-weight:700; }
#salaryDialog .salary-offer-breakdown :is(thead th,tfoot td,tfoot th) { background:var(--salary-soft); }
.salary-geo { padding:3px 6px; border-radius:5px; background:var(--salary-soft); font-size:11px; font-weight:700; }
.salary-slip-help { padding:10px 12px; border:1px solid var(--salary-border); border-radius:9px; }
.salary-slip-help summary { cursor:pointer; color:var(--salary-accent); font-weight:700; }
#salaryDialog .salary-form { grid-template-columns:1fr 1fr; padding:14px; border:1px solid var(--salary-border); border-radius:12px; }
.salary-form h3,.salary-form label:has(textarea),#salarySaveError { grid-column:1 / -1; }
#salarySaveError:empty { display:none; }
@media(max-width:600px) {
  .salary-slip-groups { grid-template-columns:1fr; }
  #salaryDialog .salary-form { grid-template-columns:1fr; }
}

html:has(:is(#salaryDialog, #salaryPayoutsDialog)[open]), body:has(:is(#salaryDialog, #salaryPayoutsDialog)[open]) { overflow:hidden !important; overscroll-behavior:none; }
#salaryDialog .salary-dialog-scroll { overscroll-behavior:contain; scrollbar-width:none; }
#salaryDialog .table-wrap { overscroll-behavior-x:contain; scrollbar-width:none; }
#salaryDialog .salary-dialog-scroll::-webkit-scrollbar, #salaryDialog .table-wrap::-webkit-scrollbar { display:none; width:0; height:0; }
#salaryDialog .salary-slip-group h3, #salaryDialog .salary-offer-heading h3 { display:flex; align-items:center; gap:8px; }
#salaryDialog .salary-slip-group h3 .salary-icon, #salaryDialog .salary-offer-heading .salary-icon {
  width:30px; height:30px; padding:6px; border-radius:8px; background:var(--salary-soft); color:var(--salary-accent);
}
#salaryDialog .salary-slip-group h3 .salary-icon-trend { color:#16946e; }
#salaryDialog .salary-offer-breakdown tbody tr:hover td { background:var(--salary-soft); }


#salaryDialog .salary-offer-breakdown { --salary-green:#4fd9ad; --salary-red:#ff8da3; --salary-amber:#f5b961; --salary-blue:#8ec1ff; }
body.theme-light #salaryDialog .salary-offer-breakdown { --salary-green:#107751; --salary-red:#bd3053; --salary-amber:#925d12; --salary-blue:#2867a9; }
#salaryDialog .salary-offer-breakdown :is(thead,tbody) :is(td,th):nth-child(2) { text-align:left; }
#salaryDialog .salary-offer-breakdown tbody td.salary-offer-name { white-space:normal; font-weight:750; }
#salaryDialog .salary-geo { display:inline-flex; align-items:center; gap:7px; background:transparent; padding:0; }
#salaryDialog .salary-geo img { width:24px; height:17px; border-radius:3px; object-fit:cover; }
#salaryDialog .salary-offer-overhead { color:var(--salary-amber); }
#salaryDialog .salary-offer-installs { color:var(--salary-blue); }
#salaryDialog .salary-offer-net { display:inline-block; padding:4px 8px; border-radius:7px; color:var(--muted); background:var(--salary-soft); }
#salaryDialog .salary-net-positive { color:var(--salary-green); background:#1ba97919; }
#salaryDialog .salary-net-negative { color:var(--salary-red); background:#de42671a; }
#salaryDialog .salary-offer-breakdown tfoot :is(td,th) { font-weight:750; border-bottom:0; }
#salaryDialog .salary-offer-breakdown thead th { color:var(--muted); }

#salaryDialog { padding:0; overflow:hidden; }
#salaryDialog .salary-dialog-scroll { box-sizing:border-box; max-height:calc(92dvh - 2px); overflow:auto; padding:22px; }
#salaryDialog #salaryClose { z-index:10; background:var(--salary-surface); border-radius:8px; }
#salaryDialog .salary-slip-payable svg,
#salaryDialog .salary-slip-group h3 .salary-icon-wallet {
  color:#fff; background:linear-gradient(140deg,#ad74ff,#7139d6);
}
#salaryDialog .salary-slip-group h3 .salary-icon-trend {
  color:#fff; background:linear-gradient(140deg,#2aca99,#087e59);
}
#salaryDialog .salary-offer-heading .salary-icon {
  color:#fff; background:linear-gradient(140deg,#419fff,#2159cd);
}
@media(max-width:600px) {
  #salaryDialog .salary-dialog-scroll { padding:14px; }
}

.salary-loading:not([hidden]) {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 50vh;
  font-weight: 700;
}

.salary-loading .analytics-loading-spinner {
  border-color: rgba(135, 80, 223, .18);
  border-top-color: #8750df;
}

.salary-card.salary-card-confirmed { border-color: #18a875; box-shadow: inset 0 3px #18a875; }
.salary-confirmed-label { color: var(--salary-green, #16835d); font-weight: 700; }
#salaryDialog .salary-offer-excluded td { opacity: .55; }
#salaryDialog .salary-offer-excluded td:last-child { opacity: 1; }
#salaryDialog input[data-salary-offer] { width: 18px; height: 18px; accent-color: #8750df; }
#salaryConfirm[hidden] { display: none; }

#salaryPayoutsButton {
  align-self: end;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  white-space: nowrap;
  color: #fff;
  background: #7738e8;
}
#salaryPayoutsRows input { width: 92px; }
#salaryPayoutsDialog { width: min(720px, calc(100vw - 28px)); max-height: 92dvh; padding: 0; }
#salaryPayoutsDialog .salary-dialog-scroll { max-height: 90dvh; overflow: auto; overscroll-behavior: contain; padding: 22px; }
@media (min-width: 1001px) {
  #salaryView .salary-toolbar .salary-filters { grid-template-columns: auto 1.05fr 1fr 1.25fr; }
}
#salaryPayoutsDialog { width: min(1180px, calc(100vw - 28px)); }
#salaryPayoutsForm .table-wrap { max-height: 62dvh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
#salaryPayoutsForm table { min-width: 860px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
#salaryPayoutsForm :is(th, td) { padding: 10px 12px; border-inline: 0; text-align: right; }
#salaryPayoutsForm :is(th, td):nth-child(-n+2) { text-align: left; }
#salaryPayoutsForm thead th { position: sticky; top: 0; z-index: 1; background: var(--salary-soft, var(--panel)); }
#salaryPayoutsRows .salary-geo { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#salaryPayoutsRows td:last-child strong { color: var(--salary-green, #16835d); }
@media (min-width: 1001px) {
  #salaryView .salary-toolbar { grid-template-columns: auto minmax(0, 800px); }
  #salaryView .salary-toolbar .salary-filters { grid-template-columns: auto minmax(155px, 1fr) 1fr 1.2fr; }
  #salaryPeriod { white-space: nowrap; }
}

#salaryPayoutsDialog :is(.salary-dialog-scroll, .table-wrap) {
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#salaryPayoutsDialog :is(.salary-dialog-scroll, .table-wrap)::-webkit-scrollbar { display: none; }

#salaryPayoutsForm tfoot :is(th, td) { background: var(--salary-soft, var(--panel)); font-weight: 750; }
#salaryPayoutsForm #salaryPayoutsTotal { white-space: nowrap; }

#salaryForm [hidden] { display: none; }
.salary-expense-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.salary-expense-item button { min-height: 40px; }

#salaryDialog .salary-expense-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.salary-expense-summary { margin-top: 12px; }
#salaryExpenseEditor .salary-expense-item {
  padding: 10px;
  border: 1px solid var(--salary-border);
  border-radius: 10px;
  background: var(--salary-soft);
}
#salaryExpenseEditor button {
  padding: 8px 12px;
  border: 1px solid var(--salary-border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--salary-surface);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
#salaryExpenseEditor [data-remove-expense] { color: #bd3053; }
.salary-expense-form #salarySaveError:empty { display: none; }
.salary-expense-form #salarySave { justify-self: end; }

#salaryPayoutsRows input[data-has-payout] { width: 18px; height: 18px; accent-color: #8750df; }
#salaryPayoutsRows input[data-payout-key]:disabled { visibility: hidden; }

#teamCreativeAccessButton { justify-self: start; margin: 8px 0; }
#teamTransparencyAdmin [data-team-creative-access] { margin-top: 6px; }
#teamCreativeAccessDialog { width: min(620px, calc(100vw - 24px)); max-height: 88dvh; overflow: auto; }
#teamCreativeAccessForm { margin-top: 0; }
#teamCreativeAccessForm select { min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
#teamCreativeFiles { max-height: 35dvh; overflow: auto; margin-top: 8px; }
#teamCreativeFiles label { display: flex; align-items: center; padding: 8px 4px; }
#teamCreativeFiles label[hidden] { display: none; }
#teamCreativeFiles input { width: 18px; height: 18px; flex: none; }


.allocation-branch-group { margin: 0 0 10px 20px; padding: 0 0 0 10px; border-left: 2px solid #a47ce8; }
.allocation-branch { margin-top: 8px; }
.allocation-branch .allocation-branch { margin-left: 14px; }
.allocation-branch-personal { display: flex; justify-content: flex-end; padding: 4px 12px; }
.allocation-branch-group .allocation-branch-personal label { display: flex; align-items: center; gap: 10px; }
.allocation-branch-personal input { max-width: 120px; }
.allocation-branch-group label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; }
.allocation-branch-group label input { width: 120px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font: inherit; font-size: 9px; }
.allocation-personal-field { grid-column: 1 / -1; justify-self: end; }
@media(max-width:520px) {
  .allocation-branch-group { margin-left: 8px; padding-left: 6px; }
}


.allocation-branch-group .allocation-branch-personal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; margin-top: 8px; }
.allocation-branch-group .allocation-branch-personal label { display: grid; gap: 4px; }
.allocation-branch-personal input { max-width: none; }

.salary-payout-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin:12px 0}
.salary-payout-filters label{display:grid;gap:6px;min-width:0}
.salary-payout-filters select{width:100%;min-width:0;height:42px}
@media(max-width:650px){.salary-payout-filters{grid-template-columns:1fr 1fr}}

/* Unity performance uses the Facebook analytics controls and spacing. */
#unityPerformanceFilters .dialog-close{position:static;inset:auto}
#unityPerformanceFilters footer button{width:100%}
#unityPerformanceFilters .unity-reset-filters{width:100%;min-height:44px;margin-top:20px}
#unityPerformanceFilters .creative-group-options{display:grid;gap:14px;margin-top:20px}
#unityPerformanceFilters .creative-group-toggle{display:flex;gap:10px;align-items:flex-start;font-size:13px}
#unityPerformanceFilters .creative-group-toggle input{flex:0 0 18px;width:18px;height:18px}
#unityView .unity-performance .company-supplier-heading>span{font-size:12px;color:var(--company-muted)}
#unityView .unity-performance .unity-performance-toolbar{margin-bottom:18px}
#unityView .unity-performance .unity-performance-toolbar .search{border:0;background:var(--company-surface)}
#unityView .unity-performance .company-table{width:100%;min-width:1720px}
#unityView .unity-performance .company-table td{white-space:nowrap}
#unityView .unity-performance .company-table td:nth-child(4){max-width:340px;white-space:normal;overflow-wrap:anywhere}

body:has(#unityPerformanceFilters[open]){overflow:hidden;overscroll-behavior:none}

/* Keep Unity filter captions above controls, matching the dashboard drawer. */
body #unityPerformanceFilters .filters label>span{
 position:static;inset:auto;display:block;z-index:auto;margin:0;
 color:inherit;font-size:11px;font-weight:700;line-height:1.5;
 text-transform:uppercase;letter-spacing:.08em;
}
body #unityPerformanceFilters .filters label{position:static;gap:16px}
body #unityPerformanceFilters .filters :is(input,select){font-family:inherit;font-weight:600}
body #unityPerformanceFilters>footer .detail-primary{
 display:block;width:100%;min-height:46px;padding:13px;border:0;border-radius:10px;
 background:linear-gradient(130deg,#8b51ff,#6838eb);color:#fff;
 font-family:inherit;font-size:16px;font-weight:700;box-shadow:none;
}
body #unityPerformanceFilters .unity-reset-filters{
 border:1px solid currentColor;background:transparent;color:inherit;
 border-radius:10px;font-family:inherit;font-size:12px;font-weight:700;
}

/* Shared campaign detail design for Facebook and Unity. */
#creativeDialog:has(.company-detail-head){width:min(1480px,calc(100vw - 40px));max-width:none;background:#faf8fd;scrollbar-width:none;overscroll-behavior:contain}
#creativeDialog:has(.company-detail-head)::-webkit-scrollbar{display:none}
body:has(#creativeDialog[open] .company-detail-head){overflow:hidden}
#creativeDialog:has(.company-detail-head) .company-detail-head h1{font-size:clamp(22px,2vw,32px);overflow-wrap:anywhere;margin:12px 0}
#creativeDialog:has(.company-detail-head) .project-metric-primary{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#creativeDialog:has(.company-detail-head) .project-metric-primary>.project-metric{display:flex;flex-direction:column;gap:16px;min-width:0;padding:22px 18px;border:1px solid #e8def4;border-radius:18px;background:#fff;box-shadow:none}
#creativeDialog:has(.company-detail-head) .project-metric-primary>.project-metric:first-child{background:linear-gradient(135deg,#9452e3,#6d36bc);color:#fff}
#creativeDialog:has(.company-detail-head) .project-metric-primary>.project-metric:first-child :is(small,strong){color:#fff}
#creativeDialog:has(.company-detail-head) .project-stat-icon{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;color:#fff;background:linear-gradient(135deg,#a36aff,#783ee8);box-shadow:0 6px 14px #57368b1c}
#creativeDialog:has(.company-detail-head) .project-stat-icon svg{width:28px;height:28px}
#creativeDialog:has(.company-detail-head) [data-company-metric=deposits] .project-stat-icon{background:linear-gradient(135deg,#25ce91,#0d9968)}
#creativeDialog:has(.company-detail-head) [data-company-metric=deposits]{background:#eefaf4}
#creativeDialog:has(.company-detail-head) [data-company-metric=ftd] .project-stat-icon{background:linear-gradient(135deg,#368fff,#0860db)}
#creativeDialog:has(.company-detail-head) [data-company-metric=roas] .project-stat-icon{background:linear-gradient(135deg,#29cf9a,#07976a)}
#creativeDialog:has(.company-detail-head) [data-company-metric=price] .project-stat-icon{background:linear-gradient(135deg,#faad3c,#e38219)}
#creativeDialog:has(.company-detail-head) .project-metric small{font-size:12px;font-weight:600;line-height:1.5;text-transform:none}
#creativeDialog:has(.company-detail-head) .project-metric strong{font-size:clamp(20px,1.8vw,30px);line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#creativeDialog:has(.company-detail-head) .project-metric-groups{gap:12px;margin-top:12px}
#creativeDialog:has(.company-detail-head) .project-metric-group{background:#fff;border:1px solid #e8def4;border-radius:18px;padding:20px}
#creativeDialog:has(.company-detail-head) .project-metric-group h3{border-left:4px solid #8950eb;padding-left:10px;font-size:14px}
#creativeDialog:has(.company-detail-head) .project-metric-group strong{font-size:20px}
#creativeDialog:has(.company-detail-head) .detail-section{background:#fff;border:1px solid #e8def4;border-radius:18px;padding:20px;margin-top:20px}
#creativeDialog:has(.company-detail-head) .table-wrap{border:1px solid #e8def4;border-radius:12px;scrollbar-width:none;overflow:auto}
#creativeDialog:has(.company-detail-head) table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
#creativeDialog:has(.company-detail-head) table th{background:#f5effb;color:#8e7aa4;font-size:10px;padding:15px 12px;border:0;border-bottom:1px solid #e8def4}
#creativeDialog:has(.company-detail-head) table td{background:#fff;padding:15px 12px;border:0;border-bottom:1px solid #eee5f6;font-size:12px}
#creativeDialog:has(.company-detail-head) table tr:nth-child(even) td{background:#fcfaff}
#creativeDialog:has(.company-detail-head) table tr:hover td{background:#f3edfb}
@media(max-width:1100px){#creativeDialog:has(.company-detail-head) .project-metric-primary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){#creativeDialog:has(.company-detail-head){width:calc(100vw - 16px);padding:18px}#creativeDialog:has(.company-detail-head) .project-metric-primary{grid-template-columns:repeat(2,minmax(0,1fr))}#creativeDialog:has(.company-detail-head) .project-metric-primary>.project-metric{padding:16px;gap:12px}}
body:not(.theme-light) #creativeDialog:has(.company-detail-head){background:#1e1729}
body:not(.theme-light) #creativeDialog:has(.company-detail-head) :is(.project-metric-group,.detail-section,.project-metric-primary>.project-metric,table td){background:#261d33;border-color:#443352}
body:not(.theme-light) #creativeDialog:has(.company-detail-head) table th{background:#332342;color:#c0a9d5}

#offersView[data-load-state="pending"]>:not(.offers-load-status){display:none!important}
.offers-load-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:45vh;text-align:center;color:var(--muted)}
.offers-load-status p{font-size:16px;font-weight:600}

.creative-name-actions{flex-wrap:wrap}
.creative-upload-state{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:7px;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}
.creative-upload-state.complete{color:#078459;background:#e7f8ef}
.creative-upload-state.incomplete{color:#a36812;background:#fff4dd}
.creative-upload-state.checking{color:#8c789f;background:#f4eff9}

/* Keep dashboard indicators inside the action rail, including clipped Influence views. */
body .dashboard-kpi-row #dashboardFilterToggle #dashboardFilterCount {
  top:4px;
  right:4px;
  min-width:16px;
  height:16px;
  padding:0 3px;
  font-size:9px;
}
body .dashboard-kpi-row #dashboardKpiActions > button:first-child { border-radius:9px 9px 0 0; }
body .dashboard-kpi-row #dashboardKpiActions > button:last-child { border-radius:0 0 9px 9px; }

.crm-statistics-upload{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:10px 16px;border:1px solid #edb83e;border-radius:12px;background:#fff0b8;color:#84500b;font:inherit;font-size:13px;font-weight:750;white-space:nowrap;cursor:pointer}.crm-statistics-upload:hover{background:#ffe28a}.crm-statistics-upload:disabled{opacity:.55;cursor:wait}.crm-sheet-media .crm-media-badge{margin-top:8px}

body .crm-sheet-media .crm-statistics-upload {
  min-height:30px;
  padding:6px 10px;
  border-radius:8px;
  font-size:11px;
  line-height:1.2;
  font-weight:650;
}

#influenceCrmContent .crm-statistics-actions{display:flex;flex-direction:column;align-items:flex-start;gap:7px;white-space:normal;min-width:170px}#influenceCrmContent .crm-sheet-media{overflow:visible;text-overflow:clip;white-space:normal}#influenceCrmContent .crm-statistics-view{padding:6px 10px;min-height:28px;border:1px solid #bda3e8;border-radius:8px;background:#f1e9ff;color:#7443ad;font:inherit;font-size:11px;font-weight:650;cursor:pointer}.influence-statistics-dialog{width:min(900px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #dacbea;border-radius:20px;background:var(--panel,#fff);color:var(--ink);overscroll-behavior:contain}.influence-statistics-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.influence-statistics-dialog h3{margin:0 0 6px}.influence-statistics-dialog button{cursor:pointer}.influence-statistics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.influence-statistics-grid article{min-width:0;border:1px solid #dacbea;border-radius:12px;padding:12px}.statistics-thumbnail{position:relative;display:block;width:100%;height:180px;padding:0;border:0;background:#f6f1fb;border-radius:8px;overflow:hidden}.statistics-thumbnail img,.statistics-thumbnail video{width:100%;height:100%;object-fit:contain}.statistics-thumbnail span{position:absolute;inset:40% 0;text-align:center}.influence-statistics-grid p{font-size:12px;overflow-wrap:anywhere}.statistics-file-actions{display:flex;gap:8px}.statistics-file-actions button,[data-close-stats]{padding:7px 12px;border:1px solid #dacbea;border-radius:8px;background:#f2eafa;color:#70419f}.statistics-file-actions .statistics-delete{background:#fff0f2;border-color:#f0bac2;color:#bd3651}body:has(#influenceStatisticsDialog[open]){overflow:hidden}

#influenceCrmContent .crm-statistics-actions{width:168px;min-width:168px;gap:6px}#influenceCrmContent .crm-statistics-actions .crm-statistics-upload{box-sizing:border-box;width:168px;min-height:32px;padding:7px 8px;font-size:11px}#influenceCrmContent .crm-statistics-actions.has-statistics .crm-statistics-upload{min-height:25px;padding:4px 8px;font-size:10px}#influenceCrmContent .crm-statistics-actions .crm-statistics-view{box-sizing:border-box;width:168px;min-height:32px;padding:7px 10px;background:#e7f7ee;border-color:#a8dcc1;color:#168354;font-size:12px;font-weight:700}#influenceCrmContent .crm-statistics-actions .crm-statistics-view:hover{background:#d5f1e1}

#influenceCrmContent .crm-statistics-actions.has-statistics .crm-statistics-upload {
  width:140px;
  min-height:23px;
  padding:4px 6px;
  font-size:9px;
  align-self:center;
}

/* Influence base: neutral surfaces and a consistent row highlight across pinned cells. */
body.theme-light #influenceCrmContent .panel.influence-crm-table {
 --crm-grid-bg:#ffffff;--crm-grid-alt:#fafbfd;--crm-frozen-bg:#f5f7fa;
 --crm-grid-header:#edf1f6;--crm-grid-hover:#eaf3f5;--crm-grid-edge:#dce3eb;--crm-line:#e5eaf0;
}
body:not(.theme-light) #influenceCrmContent .panel.influence-crm-table {
 --crm-grid-bg:#10141b;--crm-grid-alt:#131820;--crm-frozen-bg:#141a23;
 --crm-grid-header:#19212b;--crm-grid-hover:#1b2932;--crm-grid-edge:#28323e;--crm-line:#222b36;
}
body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table tbody tr:is(:hover,:focus-within):has(.influence-crm-status) > td {
 background:var(--crm-grid-hover) !important;
}
body:not(.locked):is(.theme-light,:not(.theme-light)) #influenceCrmContent .panel.influence-crm-table thead th {
 background:var(--crm-grid-header) !important;border-bottom-color:var(--crm-grid-edge);
}
body.theme-light #influenceCrmContent .panel.influence-crm-table thead th {color:#657487;}
body:not(.theme-light) #influenceCrmContent .panel.influence-crm-table thead th {color:#b1c0cf;}
body:not(.locked) #influenceCrmContent .influence-crm-table td.sheet-selected {
 outline:1px solid #63a5b1;outline-offset:-2px;box-shadow:none !important;
}
#influenceCrmContent .influence-crm-table td.sheet-selected::after {display:none;}
#influenceCrmContent .crm-freeze-guide {color:#7893a8;}

/* Low-glare Influence base palette: keep color cues without luminous surfaces. */
body:not(.theme-light) #influenceCrmContent {--ink:#c8ced8;--muted:#929cab;--panel:#10141b;--crm-accent:#aa8bc7;}
body:not(.theme-light) #influenceCrmContent .panel.influence-crm-table thead th {color:#98a5b6;}
body:not(.theme-light) #influenceCrmContent .crm-statistics-actions .crm-statistics-upload {background:#30291a;border-color:#64502a;color:#c6a766;box-shadow:none;}
body:not(.theme-light) #influenceCrmContent .crm-statistics-actions .crm-statistics-upload:hover {background:#3a301d;}
body:not(.theme-light) #influenceCrmContent .crm-statistics-actions .crm-statistics-view,
body:not(.theme-light) #influenceCrmContent .crm-sheet-action .influence-finalize-blogger {background:#183027;border-color:#315344;color:#8dbba3;box-shadow:none;}
body:not(.theme-light) #influenceCrmContent .crm-statistics-actions .crm-statistics-view:hover,
body:not(.theme-light) #influenceCrmContent .crm-sheet-action .influence-finalize-blogger:hover {background:#203b30;}
body:not(.theme-light) #influenceCrmContent .influence-crm-table .crm-sheet-action .influence-edit-person {background:#332443;border-color:#513963;color:#c5acd9;box-shadow:none;}
body:not(.theme-light) #influenceCrmContent .influence-crm-table .crm-sheet-action .influence-edit-person:hover {background:#402d52;}
body:not(.theme-light) #influenceCrmContent .influence-crm-status.hold {background:#30291d;color:#c3a568;}
body:not(.theme-light) #influenceCrmContent .influence-crm-status.approved {background:#193027;color:#8dbba3;}
body:not(.theme-light) #influenceCrmContent .influence-crm-status.cancelled {background:#352129;color:#c095a0;}
body:not(.theme-light) #influenceCrmContent .influence-crm-status.empty {background:#242b35;color:#a1aab8;}
body:not(.theme-light) #influenceCrmContent .crm-sheet-link a {color:#aa8bc7;}
body:not(.theme-light) #influenceCrmContent #influenceCrmKpis .crm-overview-icon {background:#30233e;border-color:#4a365c;color:#c4a8dd;box-shadow:none;}
body:not(.theme-light) #influenceCrmContent #influenceCrmKpis .crm-overview-card:nth-child(2) .crm-overview-icon {background:#18352b;border-color:#2b5544;color:#8fc2a9;}
body:not(.theme-light) #influenceCrmContent #influenceCrmKpis .crm-overview-card:nth-child(3) .crm-overview-icon {background:#392d1c;border-color:#5c4828;color:#cfb077;}
body:not(.theme-light) #influenceCrmContent #influenceCrmKpis .crm-overview-card:nth-child(4) .crm-overview-icon {background:#38212c;border-color:#573243;color:#cc9bae;}

.influence-search-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}
#influenceSearchFilterToggle{position:relative;display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted);cursor:pointer}
#influenceSearchFilterCount{border-radius:20px;padding:2px 6px;background:#8550df;color:#fff;font-size:10px}
#influenceSearchFilterDialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:1px solid var(--line);border-radius:20px 0 0 20px;background:var(--panel);color:var(--ink);overflow:hidden}
#influenceSearchFilterDialog[open]{display:flex;flex-direction:column}
#influenceSearchFilterDialog::backdrop{background:#14101e66;backdrop-filter:blur(3px)}
#influenceSearchFilterDialog header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid var(--line)}
#influenceSearchFilterDialog h2{margin:0;font-size:22px}#influenceSearchFilterDialog header p{color:var(--muted);font-size:12px;margin:8px 0 0}
#influenceSearchFilterDialog header button{background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:10px;width:34px;height:34px;font-size:24px;cursor:pointer}
#influenceSearchFilterDialog .search-filter-drawer-body{overflow:auto;flex:1;min-height:0;padding:24px;scrollbar-width:none}
#influenceSearchFilterDialog .influence-geo-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0 0 24px;border:0;background:transparent}
#influenceSearchFilterDialog .influence-geo-tabs button{min-width:0;padding:8px;font-size:11px}
#influenceSearchFilterDialog .influence-search-filters{padding:0;border:0;box-shadow:none;background:transparent}
#influenceSearchFilterDialog .influence-search-filter-main{display:flex;flex-direction:column;gap:20px}
#influenceSearchFilterDialog label{width:100%;display:grid;gap:9px}
#influenceSearchFilterDialog :is(input:not([type=checkbox]),select){width:100%;min-width:0;min-height:46px;font-size:16px}
#influenceSearchFilterDialog .influence-search-filter-extras{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%}
#influenceSearchFilterDialog .influence-duplicates-toggle{display:flex;align-items:center;gap:8px}
#influenceSearchFilterDialog footer{padding:18px 24px;border-top:1px solid var(--line)}
#influenceSearchFilterDialog footer button{width:100%;padding:14px;border:0;border-radius:10px;background:#7945d2;color:white;font-weight:700;cursor:pointer}
body:has(#influenceSearchFilterDialog[open]){overflow:hidden}

body #influenceSearchContent #influenceSearchFilterToggle{display:grid;place-items:center;position:relative;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:10px;border:1px solid #dacbea;border-radius:11px;background:var(--panel);color:#8b6aa5;box-shadow:none}
#influenceSearchFilterToggle>span{display:none}
#influenceSearchFilterToggle #influenceSearchFilterCount{position:absolute;top:-5px;right:-5px;min-width:15px;height:15px;padding:0 3px;border:2px solid var(--panel);font-size:9px;line-height:15px;text-align:center}
body:not(.theme-light) #influenceSearchContent #influenceSearchFilterToggle{border-color:#3b304b;background:#15131c;color:#af95c5}

body #influenceSearchContent #influenceSearchFilterToggle{box-sizing:border-box;width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;border-radius:12px;background:#fff;border:1px solid #deceed;color:#8b70a0;overflow:visible;align-self:center}
body #influenceSearchContent #influenceSearchFilterToggle>svg{display:block;width:24px;height:24px;flex:none}
body #influenceSearchContent #influenceSearchFilterToggle #influenceSearchFilterCount{display:grid;place-items:center;box-sizing:border-box;right:-6px;top:-7px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#8650e8;color:#fff;font-size:10px;font-weight:750;line-height:1;z-index:2;pointer-events:none}
body #influenceSearchContent #influenceSearchFilterToggle #influenceSearchFilterCount[hidden]{display:none}
body:not(.theme-light) #influenceSearchContent #influenceSearchFilterToggle{background:#15131c;border-color:#3b304b;color:#af95c5}
body:not(.theme-light) #influenceSearchContent #influenceSearchFilterToggle #influenceSearchFilterCount{border-color:#15131c}

#influenceSearchContent:not([hidden]){height:var(--search-viewport-height,calc(100dvh - 48px));min-height:0;display:flex;flex-direction:column;overflow:hidden}
#influenceSearchContent>.influence-geo-tabs{flex:none}
#influenceSearchContent>.influence-search-table{display:flex;flex-direction:column;flex:1;min-height:0;margin-bottom:0;overflow:hidden}
#influenceSearchContent .influence-search-table>.panel-heading{flex:none}
#influenceSearchContent .influence-search-table>.table-wrap{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;overscroll-behavior:contain}
#influenceSearchContent .influence-search-pagination{flex:none}
html:has(#influenceView:not([hidden]) #influenceSearchContent:not([hidden])){overflow:hidden}
body #influenceSearchContent .influence-search-table-actions button{box-sizing:border-box;height:42px;min-height:42px;max-height:42px;display:inline-flex;align-items:center;justify-content:center;margin-top:0;margin-bottom:0}
body #influenceSearchContent #influenceSearchFilterToggle{width:42px;height:42px;min-height:42px;max-height:42px;flex-basis:42px}
#influenceSearchContent .influence-search-table-actions,#influenceSearchContent .influence-search-actions{align-items:center}

/* Compact typography in blogger search filters. */
#influenceSearchFilterDialog h2{font-size:20px}
#influenceSearchFilterDialog header p{font-size:11px}
#influenceSearchFilterDialog label{font-size:11px}
#influenceSearchFilterDialog :is(input:not([type=checkbox]),select){font-size:14px}
#influenceSearchFilterDialog :is(.influence-duplicates-toggle,button){font-size:12px}
@media(max-width:780px){#influenceSearchFilterDialog :is(input:not([type=checkbox]),select){font-size:16px}}

#influenceCrmFilterDialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:1px solid var(--line);border-radius:20px 0 0 20px;background:var(--panel);color:var(--ink);overflow:hidden}
#influenceCrmFilterDialog[open]{display:flex;flex-direction:column}
#influenceCrmFilterDialog::backdrop{background:#14101e66;backdrop-filter:blur(3px)}
#influenceCrmFilterDialog header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid var(--line)}
#influenceCrmFilterDialog h2{margin:0;font-size:22px}#influenceCrmFilterDialog header p{color:var(--muted);font-size:12px;margin:8px 0 0}
#influenceCrmFilterDialog header button{background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:10px;width:34px;height:34px;font-size:24px;cursor:pointer}
#influenceCrmFilterDialog .search-filter-drawer-body{overflow:auto;flex:1;min-height:0;padding:24px;scrollbar-width:none}
#influenceCrmFilterDialog .influence-geo-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0 0 24px;border:0;background:transparent}
#influenceCrmFilterDialog .influence-geo-tabs button{min-width:0;padding:8px;font-size:11px}
#influenceCrmFilterDialog .influence-search-filters{padding:0;border:0;box-shadow:none;background:transparent}
#influenceCrmFilterDialog .influence-search-filter-main{display:flex;flex-direction:column;gap:20px}
#influenceCrmFilterDialog label{width:100%;display:grid;gap:9px}
#influenceCrmFilterDialog :is(input:not([type=checkbox]),select){width:100%;min-width:0;min-height:46px;font-size:16px}
#influenceCrmFilterDialog .influence-search-filter-extras{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%}
#influenceCrmFilterDialog .influence-duplicates-toggle{display:flex;align-items:center;gap:8px}
#influenceCrmFilterDialog footer{padding:18px 24px;border-top:1px solid var(--line)}
#influenceCrmFilterDialog footer button{width:100%;padding:14px;border:0;border-radius:10px;background:#7945d2;color:white;font-weight:700;cursor:pointer}
body:has(#influenceCrmFilterDialog[open]){overflow:hidden}
#influenceCrmFilterDialog h2{font-size:20px}
#influenceCrmFilterDialog header p{font-size:11px}
#influenceCrmFilterDialog label{font-size:11px}
#influenceCrmFilterDialog :is(input:not([type=checkbox]),select){font-size:14px}
#influenceCrmFilterDialog :is(.influence-duplicates-toggle,button){font-size:12px}
@media(max-width:780px){#influenceCrmFilterDialog :is(input:not([type=checkbox]),select){font-size:16px}}
#influenceCrmFilterDialog .influence-crm-filters{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
#influenceCrmFilterDialog .influence-crm-filters label{display:grid;gap:9px;font-size:11px;color:var(--muted)}
body.theme-light #influenceCrmContent #influenceCrmKpis article{background:#fff}

#influenceCrmFilterToggle{position:relative;display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted);cursor:pointer}
#influenceCrmFilterCount{border-radius:20px;padding:2px 6px;background:#8550df;color:#fff;font-size:10px}
body #influenceCrmContent #influenceCrmFilterToggle{display:grid;place-items:center;position:relative;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:10px;border:1px solid #dacbea;border-radius:11px;background:var(--panel);color:#8b6aa5;box-shadow:none}
#influenceCrmFilterToggle>span{display:none}
#influenceCrmFilterToggle #influenceCrmFilterCount{position:absolute;top:-5px;right:-5px;min-width:15px;height:15px;padding:0 3px;border:2px solid var(--panel);font-size:9px;line-height:15px;text-align:center}
body:not(.theme-light) #influenceCrmContent #influenceCrmFilterToggle{border-color:#3b304b;background:#15131c;color:#af95c5}
body #influenceCrmContent #influenceCrmFilterToggle{box-sizing:border-box;width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;border-radius:12px;background:#fff;border:1px solid #deceed;color:#8b70a0;overflow:visible;align-self:center}
body #influenceCrmContent #influenceCrmFilterToggle>svg{display:block;width:24px;height:24px;flex:none}
body #influenceCrmContent #influenceCrmFilterToggle #influenceCrmFilterCount{display:grid;place-items:center;box-sizing:border-box;right:-6px;top:-7px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#8650e8;color:#fff;font-size:10px;font-weight:750;line-height:1;z-index:2;pointer-events:none}
body #influenceCrmContent #influenceCrmFilterToggle #influenceCrmFilterCount[hidden]{display:none}
body:not(.theme-light) #influenceCrmContent #influenceCrmFilterToggle{background:#15131c;border-color:#3b304b;color:#af95c5}
body:not(.theme-light) #influenceCrmContent #influenceCrmFilterToggle #influenceCrmFilterCount{border-color:#15131c}
body #influenceCrmContent #influenceCrmFilterToggle{width:42px;height:42px;min-height:42px;max-height:42px;flex-basis:42px}
#influenceCrmContent .influence-crm-table .table-wrap{max-height:none;min-height:0;overflow:auto}

.creative-kind.mix { color: #98701d; background: #fff4d8; }
body:not(.locked):not(.theme-light) .creative-kind.mix { color: #e6c879; background: #332c1c; }

/* Chief-only motivational task preview. */
.development-bonus-heading{grid-column:1/-1}.development-bonus-heading h2{margin:0 0 8px}.development-bonus-heading p{margin:0;color:var(--muted);font-size:13px}
.development-card.development-bonus-preview{cursor:default;background:var(--panel)}
.development-card.development-bonus-preview:hover{translate:none;border-color:var(--line);box-shadow:none}

/* Owner-only gold bonus tasks, in both themes. */
#developmentBoard .development-bonus-preview{background:linear-gradient(135deg,#fff9df,#f5dfa0);border:1px solid #d4aa48;box-shadow:0 5px 20px #a97c1620;color:#604612}
#developmentBoard .development-bonus-preview:hover{border-color:#bd8f29;box-shadow:0 5px 20px #a97c1620}
#developmentBoard .development-bonus-preview h3,#developmentBoard .development-bonus-preview .development-card-steps{color:#604612}
#developmentBoard .development-bonus-preview p,#developmentBoard .development-bonus-preview footer,#developmentBoard .development-bonus-preview .development-checks b{color:#80632a}
#developmentBoard .development-bonus-preview .development-code{background:#795715;color:#fff6d7}
#developmentBoard .development-bonus-preview .development-status,#developmentBoard .development-bonus-preview .development-bonus{background:#e9c56b;color:#60420c}
#developmentBoard .development-bonus-preview footer{border-color:#cda84e55}
.development-bonus-action{display:flex;align-items:flex-start;flex-direction:column;gap:6px;margin:10px 0 16px}
.development-bonus-action small{color:#80632a}
#developmentBoard .development-bonus-action button{background:#795715;color:#fff9e4;border:1px solid #60420c}

/* Gold cards: staggered entrance, soft lift and a single light sweep. */
#developmentBoard .development-bonus-preview{position:relative;isolation:isolate;overflow:hidden;animation:bonus-card-enter .55s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--bonus-delay,0ms);transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s,border-color .3s}
#developmentBoard .development-bonus-preview::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#fff9 46%,transparent 66%);transform:translateX(-120%)}
#developmentBoard .development-bonus-preview:focus-within{border-color:#b08120;box-shadow:0 12px 30px #a97c1630}
#developmentBoard .development-bonus-preview .development-card-steps li::marker{color:#b28120}
#developmentBoard .development-bonus-action button{box-shadow:0 4px 12px #79571524;transition:transform .2s,background .2s,box-shadow .2s}
#developmentBoard .development-bonus-action button:hover{background:#60420c;transform:translateY(-2px);box-shadow:0 6px 16px #79571540}
#developmentBoard .development-bonus-action button:active{transform:translateY(0)}
@media(hover:hover) and (pointer:fine){
 #developmentBoard .development-bonus-preview:hover{transform:translateY(-6px);border-color:#b08120;box-shadow:0 18px 38px #a97c1633,0 2px 8px #a97c1615}
 #developmentBoard .development-bonus-preview:hover::after{animation:bonus-card-shine .85s ease-out}
}
@keyframes bonus-card-enter{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@keyframes bonus-card-shine{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@media(prefers-reduced-motion:reduce){
 #developmentBoard .development-bonus-preview,#developmentBoard .development-bonus-preview::after,#developmentBoard .development-bonus-action button{animation:none!important;transition:none!important;transform:none!important}
 #developmentBoard .development-bonus-preview::after{display:none}
}

/* Product branding, sourced from the SwaNowa partner gallery and Pinco. */
#developmentBoard .development-bonus-preview{--brand:#efefef;--brand-rgb:239,239,239;--brand-ink:#151515;background:radial-gradient(ellipse at 100% 0,rgba(var(--brand-rgb),.15),transparent 65%),linear-gradient(135deg,#191d26,#10131a);color:#f6f7fa;border-color:rgba(var(--brand-rgb),.4);box-shadow:0 8px 26px #10131a18}
#developmentBoard .bonus-brand-pinco{--brand:#ff304b;--brand-rgb:255,48,75;--brand-ink:#fff}
#developmentBoard .bonus-brand-pinup{--brand:#00c8a2;--brand-rgb:0,200,162;--brand-ink:#06271f;background:radial-gradient(ellipse at 100% 0,#ee391b24,transparent 65%),linear-gradient(135deg,#182822,#101a18)}
#developmentBoard .bonus-brand-1xbet{--brand:#20a8ef;--brand-rgb:32,168,239;--brand-ink:#051c30;background:radial-gradient(ellipse at 100% 0,#20a8ef30,transparent 65%),linear-gradient(135deg,#123455,#0a1a2c)}
#developmentBoard .bonus-brand-melbet{--brand:#ffd329;--brand-rgb:255,211,41;--brand-ink:#221d08;background:radial-gradient(ellipse at 100% 0,#ffd32922,transparent 65%),linear-gradient(135deg,#24231f,#111211)}
#developmentBoard .development-bonus-preview h3{color:#fff;font-size:24px;line-height:1.35;margin-top:4px}
#developmentBoard .development-bonus-preview p,#developmentBoard .development-bonus-preview .development-card-steps{color:#d3d9e3}
#developmentBoard .development-bonus-preview footer,#developmentBoard .development-bonus-preview .development-checks b,#developmentBoard .development-bonus-preview .development-bonus-action small{color:#aeb8c7}
#developmentBoard .development-bonus-preview footer{border-color:rgba(var(--brand-rgb),.18)}
#developmentBoard .development-bonus-preview .development-code,#developmentBoard .development-bonus-preview .development-status{color:var(--brand);background:rgba(var(--brand-rgb),.12);border:1px solid rgba(var(--brand-rgb),.2)}
#developmentBoard .development-bonus-preview .development-bonus{color:var(--brand-ink);background:var(--brand);padding:9px 14px;font-size:14px}
#developmentBoard .development-bonus-preview .development-card-steps li::marker{color:var(--brand)}
#developmentBoard .development-bonus-preview .development-bonus-action strong{color:var(--brand)}
#developmentBoard .development-bonus-preview .development-bonus-action button{background:var(--brand);color:var(--brand-ink);border-color:transparent;box-shadow:0 4px 18px rgba(var(--brand-rgb),.15)}
#developmentBoard .development-bonus-preview .development-bonus-action button:hover{background:var(--brand);box-shadow:0 6px 24px rgba(var(--brand-rgb),.3);filter:brightness(1.08)}
#developmentBoard .development-bonus-preview:hover,#developmentBoard .development-bonus-preview:focus-within{border-color:var(--brand);box-shadow:0 18px 38px rgba(var(--brand-rgb),.14),0 3px 12px #0002}
.bonus-brand-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:90px;margin:12px 0 14px}
.bonus-brand-logo{display:block;width:192px;height:64px;object-fit:contain;object-position:left center}
.bonus-partner-logo{width:128px;height:40px;object-fit:contain}
.bonus-brand-caption{font-size:10px;font-weight:800;letter-spacing:.18em;color:var(--brand);opacity:.65}
#developmentBoard .bonus-brand-melbet .bonus-brand-logo{width:112px;height:86px}
@media(max-width:540px){.bonus-brand-banner{gap:12px}.bonus-brand-logo{width:156px}.bonus-partner-logo{width:100px}.bonus-brand-caption{display:none}#developmentBoard .development-bonus-preview h3{font-size:21px}}

/* Only DaleWin and Melbet: horizontal wordmarks with no visible image tile. */
#developmentBoard .bonus-brand-dalewin .bonus-brand-logo,#developmentBoard .bonus-brand-melbet .bonus-brand-logo{width:192px;height:64px;object-fit:contain;object-position:left center;mix-blend-mode:screen}

.bonus-participant-buttons{display:flex;flex-wrap:wrap;gap:10px}.bonus-participant-summary{margin-bottom:8px}
#developmentBoard .bonus-participant-buttons .secondary-button{border:1px solid rgba(var(--brand-rgb),.35);background:transparent;color:var(--brand);border-radius:12px;padding:12px 16px;cursor:pointer}
#bonusParticipantsDialog{width:min(520px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #ffffff25;border-radius:20px;padding:26px;background:#191d26;color:#f5f7fb;box-shadow:0 25px 80px #0006}
#bonusParticipantsDialog::backdrop{background:#0b1020aa;backdrop-filter:blur(5px)}
#bonusParticipantsDialog header{display:flex;justify-content:space-between;align-items:start;gap:16px}#bonusParticipantsDialog h2{margin:8px 0;font-size:24px}#bonusParticipantsDialog small,#bonusParticipantsDialog p{color:#b6c0d0}#bonusParticipantsDialog button{background:#ffffff12;border:0;border-radius:10px;color:#fff;padding:4px 12px;font-size:26px;cursor:pointer}#bonusParticipantsDialog ul{list-style:none;padding:0;margin:20px 0 0}#bonusParticipantsDialog li{padding:16px 0;border-top:1px solid #ffffff18;display:grid;gap:8px}#bonusParticipantsDialog li span{color:#b6c0d0;font-size:13px}

#developmentBoard .development-bonus-action button:disabled{opacity:.4;cursor:not-allowed;filter:saturate(.4);transform:none;box-shadow:none}
#developmentBoard .development-bonus-action button:disabled:hover{transform:none;box-shadow:none}
#developmentBoard .bonus-eligibility-note{max-width:540px;line-height:1.5;color:#b6c0d0;font-size:12px}

/* Bonus tasks continue the ordinary card grid with the same typography and spacing. */
#developmentBoard .development-bonus-preview{min-height:225px;padding:17px;gap:10px;border-radius:16px;grid-column:auto;align-self:stretch}
#developmentBoard .development-bonus-preview h3{font-size:17px;line-height:1.35;margin:4px 0 0}
#developmentBoard .development-bonus-preview>p{font-size:10px;line-height:1.55;min-height:48px;margin:0}
.bonus-compact-brand{display:flex;align-items:center;gap:10px;min-width:0}
.bonus-compact-brand img{display:block;width:96px;height:28px;object-fit:contain;object-position:left center}
#developmentBoard .bonus-brand-dalewin .bonus-compact-brand img,#developmentBoard .bonus-brand-melbet .bonus-compact-brand img{mix-blend-mode:screen}
#developmentBoard .development-bonus-preview .development-bonus{font-size:8px;padding:5px 8px}
#developmentBoard .development-bonus-preview .development-bonus-action{gap:6px;margin:0}
#developmentBoard .bonus-participant-summary{margin:0;line-height:1.4}
#developmentBoard .bonus-participant-summary strong,#developmentBoard .bonus-participant-summary small{font-size:10px}
#developmentBoard .bonus-participant-buttons{gap:7px}
#developmentBoard .bonus-participant-buttons button{min-height:32px;padding:7px 10px;font-size:9px;border-radius:9px;line-height:1.4}
#developmentBoard .bonus-eligibility-note{font-size:9px;line-height:1.4}
@media(max-width:420px){.bonus-compact-brand{gap:6px}.bonus-compact-brand img{width:74px;height:25px}.bonus-compact-brand .development-code{font-size:7px}}
/* Personal Offers design preview: only the owner renderer enables this class. */
#offersView:not(.offers-owner-design) #ownerOffersHeader,#offersView:not(.offers-owner-design) #ownerOfferTabs,#offersView:not(.offers-owner-design) #ownerOfferRegistry,#offersView:not(.offers-owner-design) #ownerOffersSidebar{display:none}
#offersView.offers-owner-design{display:grid;grid-template-columns:minmax(0,2.65fr) minmax(265px,1fr);gap:20px;align-items:start;color:#654e7a}
#offersView.offers-owner-design[hidden]{display:none}
#ownerOffersHeader{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 2px}
#ownerOffersHeader h1{font-size:28px;line-height:1.2;margin:0 0 5px;font-weight:850;letter-spacing:-.6px;color:#513163}#ownerOffersHeader p{margin:0;font-size:13px;color:#927da5}
.owner-offers-header-actions{display:flex;gap:12px;align-items:center}.owner-offers-header-actions select{min-width:190px;background:#fff;border:1px solid #e3d4f4;border-radius:10px;padding:12px 16px;color:#654e7a;font:inherit}.owner-offers-header-actions button{white-space:nowrap;background:linear-gradient(120deg,#8848ff,#7134f3);border-radius:10px;padding:12px 18px}
#offersView.offers-owner-design .offer-overview-layout{display:contents}#offersView.offers-owner-design .offer-actions-panel{display:none}
#offersView.offers-owner-design #offerKpis{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
#offersView.offers-owner-design #offerKpis .offer-summary-card{display:flex;align-items:center;gap:14px;min-height:92px;padding:18px;border:1px solid #e4d6f4;border-radius:13px;background:#fff;box-shadow:none}
#offersView.offers-owner-design #offerKpis .media-summary-icon{width:48px;height:52px;min-width:48px;border-radius:13px}
#offersView.offers-owner-design #offerKpis .kpi-title{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#917aa4}#offersView.offers-owner-design #offerKpis .kpi-value{font-size:25px;line-height:1.25;letter-spacing:-.6px;color:#654b79}#offersView.offers-owner-design #offerKpis .kpi-foot{display:none}
#offersView.offers-owner-design .management-table-panel{grid-column:1;min-width:0;background:#fff;border:1px solid #e5d8f4;border-radius:13px;padding:16px;overflow:visible}
#offersView.offers-owner-design .offer-registry-scroll{display:none}
#offersView.offers-owner-design .management-table-panel>.panel-heading{display:block;padding:0;margin:12px 0 18px;border:0;background:none}
#offersView.offers-owner-design .management-table-panel>.panel-heading>div:first-child{display:none}
#offersView.offers-owner-design .offer-table-tools{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;padding:0;background:none;border:0;margin:0;min-width:0}
#offersView.offers-owner-design .offer-table-tools>label:first-child{display:none}#offersView.offers-owner-design .offer-search-field{grid-column:1;grid-row:1}#offersView.offers-owner-design #offerTeamFilterField{grid-column:2;grid-row:1}
#offersView.offers-owner-design .offer-table-tools label>span{display:none}#offersView.offers-owner-design .offer-table-tools label{min-width:0;width:auto}
#offersView.offers-owner-design .offer-table-tools input,#offersView.offers-owner-design .offer-table-tools select{width:100%;height:38px;min-height:38px;box-sizing:border-box;border:1px solid #e3d3f5;border-radius:9px;background:#fff;color:#624b76;font-size:11px;padding:8px 11px}
#offersView.offers-owner-design #offerSortDirection,#offersView.offers-owner-design #resetOfferFilters{display:none}
#ownerOfferTabs{display:flex;gap:8px;flex-wrap:wrap}#ownerOfferTabs button{padding:10px 14px;border:1px solid #e4d5f6;border-radius:9px;color:#634979;background:#f8f3fd;font-size:11px;font-weight:650;cursor:pointer}#ownerOfferTabs button.selected{background:linear-gradient(120deg,#8848ff,#7034f6);color:#fff;border-color:transparent;box-shadow:0 4px 12px #8248ff20}
#ownerOfferRegistry{overflow-x:auto}#ownerOfferRegistry table{width:100%;table-layout:fixed;border-collapse:collapse;background:#fff;min-width:660px}#ownerOfferRegistry th{background:#f9f5fd;color:#80658f;font-size:9px;font-weight:650;text-transform:uppercase;text-align:left;padding:12px 9px;white-space:nowrap}#ownerOfferRegistry td{padding:17px 9px;border-bottom:1px solid #eee5f7;color:#624a76;vertical-align:middle;font-size:11px;line-height:1.45;background:#fff}#ownerOfferRegistry tr:last-child td{border-bottom:0}#ownerOfferRegistry tbody tr:hover td{background:#fcf9ff}#ownerOfferRegistry th:nth-child(1){width:20%}#ownerOfferRegistry th:nth-child(2){width:17%}#ownerOfferRegistry th:nth-child(3){width:19%}#ownerOfferRegistry th:nth-child(4){width:26%}#ownerOfferRegistry th:nth-child(5){width:15%}#ownerOfferRegistry th:last-child{width:3%}
#ownerOfferRegistry small{display:block;font-size:9px;color:#9985aa;margin-top:4px}.owner-offer-name{display:flex;gap:10px;align-items:center}.owner-offer-name b{font-size:12px;color:#4f3061;overflow-wrap:anywhere}.owner-offer-name small{display:flex!important;align-items:center;gap:6px}.owner-offer-name img{width:23px;height:16px;object-fit:cover}.owner-offer-dot{flex:0 0 10px;width:10px;height:10px;background:#15c98d;border-radius:50%;box-shadow:0 0 0 4px #14c68d19}.owner-offer-dot.muted{background:#a9a0b4;box-shadow:0 0 0 4px #a9a0b419}
.owner-offer-teams{display:flex;flex-wrap:wrap;gap:4px}.owner-offer-teams>span{border-radius:6px;padding:3px 6px;font-size:9px;font-weight:750}.owner-offer-kpi{font-size:10px;color:#9276aa}.owner-offer-kpi b{font-weight:500}.owner-offer-kpi small{display:none!important}
.owner-offer-budget{font-size:10px;white-space:normal}.owner-offer-budget b{color:#553367}.owner-offer-budget small{float:right;margin:0!important;font-size:8px!important}.owner-offer-track{height:7px;border:1px solid #e7d9f4;background:#eee5f5;border-radius:30px;overflow:hidden;margin:6px 0}.owner-offer-track i{display:block;height:100%;background:linear-gradient(90deg,#9758ff,#7337ee);border-radius:30px}
#ownerOfferRegistry .owner-offer-avatars{display:flex;align-items:center;background:none;border:0;padding:0;cursor:pointer}#ownerOfferRegistry .owner-offer-avatars span{display:grid;place-items:center;background:#eadbff;color:#704b94;border:2px solid #fff;min-width:28px;height:28px;margin-left:-5px;border-radius:50%;font-size:9px;font-weight:700}#ownerOfferRegistry .owner-offer-avatars span:nth-child(2){background:#d8efff;color:#4d78a2}#ownerOfferRegistry .owner-offer-avatars span:nth-child(3){background:#d8f4e3;color:#558b70}
.owner-offer-assign{border:1px solid #a071fc;background:#fff;color:#8348f5;border-radius:7px;padding:8px 10px;font-size:9px;font-weight:600;cursor:pointer}.owner-offer-open{border:0;background:transparent;color:#684579;font-size:25px;cursor:pointer;padding:3px}
#ownerOffersSidebar{display:grid;gap:12px;grid-column:2;grid-row:3}#ownerOffersSidebar .panel{background:#fff;border:1px solid #e5d8f4;border-radius:13px;padding:16px;box-shadow:none}#ownerOffersSidebar h2{font-size:16px;color:#644b77;margin:0 0 18px;letter-spacing:-.3px}#ownerOffersSidebar article>small{font-size:9px;color:#a18bb2}.owner-offer-donut-row{display:flex;align-items:center;gap:16px;margin-bottom:12px}.owner-offer-donut{width:156px;height:156px;flex:0 0 156px;border-radius:50%;background:conic-gradient(#8543ff var(--utilization),#eadbff 0);display:grid;place-items:center}.owner-offer-donut>div{width:124px;height:124px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}.owner-offer-donut strong{font-size:26px;line-height:1.2;color:#77568d}.owner-offer-donut b{font-size:12px}.owner-offer-donut small{font-size:10px;color:#9a83aa}.owner-offer-legend{display:grid;gap:18px;font-size:10px;color:#80549c}.owner-offer-legend b{display:block;font-size:10px;margin:5px 0 0 12px;font-weight:500}
.owner-offer-alert{display:flex;width:100%;box-sizing:border-box;align-items:center;gap:8px;text-align:left;background:#fff7e9;color:#725375;border:1px solid #ffe2ba;padding:12px;border-radius:9px;font-size:10px;margin-top:9px;cursor:pointer}.owner-offer-alert span{margin-left:auto;font-size:18px}.owner-offer-team-budget{margin:17px 0}.owner-offer-team-budget>div:first-child{display:flex;align-items:center;gap:8px;justify-content:space-between}.owner-offer-team-budget .team-pill{font-size:9px;border-radius:6px;padding:4px 7px}.owner-offer-team-budget small{font-size:9px}.owner-all-budgets{width:100%;margin-top:8px;padding:10px}.owner-offer-extra-tools{display:flex;gap:8px}.owner-offer-extra-tools button{flex:1;background:transparent;border:1px solid #dfcef2;border-radius:8px;color:#8d71a4;padding:9px;font-size:10px;cursor:pointer}
#ownerOfferDetailDialog{max-width:850px;width:calc(100vw - 40px)}.owner-offer-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.owner-offer-detail-grid section>small{display:block;color:var(--muted);margin-bottom:8px}.owner-offer-detail-grid section small{font-size:11px}
@media(max-width:1200px){#offersView.offers-owner-design{grid-template-columns:minmax(0,1fr)}#ownerOffersSidebar{grid-column:1;grid-row:auto;grid-template-columns:repeat(3,minmax(0,1fr))}.owner-offer-donut-row{flex-wrap:wrap}.owner-offer-donut{width:130px;height:130px;flex-basis:130px}.owner-offer-donut>div{width:102px;height:102px}.owner-offer-extra-tools{grid-column:1/-1}}
@media(max-width:760px){#ownerOffersHeader{align-items:flex-start;flex-direction:column}#ownerOffersHeader h1{font-size:24px}#offersView.offers-owner-design #offerKpis{grid-template-columns:repeat(2,minmax(0,1fr))}#offersView.offers-owner-design #offerKpis .kpi-value{font-size:20px}#ownerOffersSidebar{grid-template-columns:1fr}#offersView.offers-owner-design .offer-table-tools{grid-template-columns:1fr 1fr}#offersView.offers-owner-design .offer-search-field{grid-column:1/-1}#offersView.offers-owner-design #offerTeamFilterField{grid-column:1;grid-row:2}.owner-offer-detail-grid{grid-template-columns:1fr 1fr}}
body:not(.locked) #offersView.offers-owner-design .offer-overview-layout #offerKpis{grid-template-columns:repeat(4,minmax(0,1fr))}
body:not(.locked) #offersView.offers-owner-design .offer-table-tools{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 38px}
#offersView.offers-owner-design .offer-table-tools>label:has(#offerSort){display:none}
#offersView.offers-owner-design .owner-offer-status-field{grid-column:3;grid-row:1}
#offersView:not(.offers-owner-design) .owner-offer-status-field,#offersView:not(.offers-owner-design) .owner-offer-export{display:none}
#offersView.offers-owner-design .owner-offer-export{grid-column:4;grid-row:1;width:38px;min-height:38px;border:1px solid #e3d3f5;border-radius:9px;background:#fff;color:#80549c;font-size:22px;cursor:pointer}
#ownerOfferRegistry .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){body:not(.locked) #offersView.offers-owner-design .offer-overview-layout #offerKpis{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.locked) #offersView.offers-owner-design .offer-table-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px}#offersView.offers-owner-design .offer-search-field{grid-column:1/-1;grid-row:1}#offersView.offers-owner-design #offerTeamFilterField{grid-column:1;grid-row:2}#offersView.offers-owner-design .owner-offer-status-field{grid-column:2;grid-row:2}#offersView.offers-owner-design .owner-offer-export{grid-column:3;grid-row:2}}
body:not(.locked) #offersView.offers-owner-design:not([hidden]){display:grid;height:auto;min-height:0;overflow:visible}
body:not(.locked):has(#offersView.offers-owner-design:not([hidden])) main{overflow:auto}
body:not(.locked) #offersView.offers-owner-design>.management-table-panel{display:block;margin-top:0}
body:not(.locked) #offersView.offers-owner-design .management-table-panel>.panel-heading{display:block;margin:12px 0 18px;padding:0}
body:not(.locked) #offersView.offers-owner-design .offer-table-tools input,body:not(.locked) #offersView.offers-owner-design .offer-table-tools select{background:#fff;color:#624b76;border-color:#e3d3f5;height:38px;min-height:38px}
/* Isolate the personal layout from the older Offers rules. */
body:not(.locked) #offersView.offers-owner-design .offer-actions-panel{display:none!important}
body:not(.locked) #offersView.offers-owner-design .offer-overview-layout{display:contents!important}
body:not(.locked) #offersView.offers-owner-design #ownerOffersHeader{grid-column:1/-1;grid-row:1}
body:not(.locked) #offersView.offers-owner-design #offerKpis{grid-column:1/-1;grid-row:2}
body:not(.locked) #offersView.offers-owner-design>.management-table-panel{grid-column:1;grid-row:3;align-self:start}
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-column:2;grid-row:3;align-self:start}
body:not(.locked) #offersView.offers-owner-design .offer-table-tools{padding:0!important;background:transparent!important;border:0!important;border-radius:0;align-items:center}
body:not(.locked) #offersView.offers-owner-design .offer-table-tools label>span{display:none!important}
body:not(.locked) #offersView.offers-owner-design #ownerOffersHeader select{background:#fff!important;border:1px solid #e3d4f4!important;border-radius:10px!important;padding:11px 16px!important;height:40px;font-size:12px}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry td{padding:13px 9px;height:54px;box-sizing:border-box}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry table{font-variant-numeric:tabular-nums}
@media(max-width:1200px){body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-column:1;grid-row:4}}
/* Owner's table-only workspace: fixed controls, independently scrolling registry. */
body:not(.locked):has(#offersView.offers-owner-design:not([hidden])){overflow:hidden}
body:not(.locked):has(#offersView.offers-owner-design:not([hidden])) main{height:100dvh;box-sizing:border-box;overflow:hidden;padding-bottom:16px}
body:not(.locked) #offersView.offers-owner-design:not([hidden]){display:flex!important;flex-direction:column;height:100%;min-height:0;overflow:hidden;gap:0}
body:not(.locked) #offersView.offers-owner-design #ownerOffersHeader,body:not(.locked) #offersView.offers-owner-design .offer-overview-layout,body:not(.locked) #offersView.offers-owner-design #offerKpis,body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{display:none!important}
body:not(.locked) #offersView.offers-owner-design>.management-table-panel{display:flex!important;flex-direction:column;flex:1;min-height:0;width:100%;box-sizing:border-box;overflow:hidden;margin:0;gap:0}
body:not(.locked) #offersView.offers-owner-design #ownerOfferTabs{flex-shrink:0;padding-right:0}
body:not(.locked) #offersView.offers-owner-design #ownerOfferCompactActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0;margin:0 0 12px}
#ownerOfferCompactActions select{height:36px;border:1px solid #e3d4f4;border-radius:9px;background:#fff;color:#654e7a;padding:6px 12px;font-size:11px}
#ownerOfferCompactActions button{min-height:36px;padding:8px 13px;border-radius:9px;font-size:11px}
body:not(.locked) #offersView.offers-owner-design .management-table-panel>.panel-heading{flex-shrink:0;margin:12px 0}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#ownerOfferRegistry thead{position:sticky;top:0;z-index:2;background:#f9f5fd}
#offersView:not(.offers-owner-design) #ownerOfferCompactActions{display:none}
@media(max-width:600px){#ownerOfferCompactActions{flex-wrap:wrap}#ownerOfferCompactActions select{flex:1;min-width:130px}}
/* Restore the right summary while retaining the fixed-height offer registry. */
body:not(.locked) #offersView.offers-owner-design:not([hidden]){display:grid!important;grid-template-columns:minmax(0,2.65fr) minmax(285px,1fr);grid-template-rows:minmax(0,1fr);gap:20px;height:100%;min-height:0;overflow:hidden}
body:not(.locked) #offersView.offers-owner-design>.management-table-panel{grid-column:1;grid-row:1;height:100%;min-height:0}
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{display:grid!important;grid-column:2;grid-row:1;grid-template-columns:1fr;align-content:start;gap:12px;height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body:not(.locked) #offersView.offers-owner-design #ownerOffersSidebar .owner-offer-extra-tools{display:none}
@media(max-width:900px){body:not(.locked) #offersView.offers-owner-design:not([hidden]){grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:12px}#ownerOffersSidebar .owner-offer-donut-row{flex-wrap:wrap}#ownerOffersSidebar .owner-offer-donut{width:130px;height:130px;flex-basis:130px}#ownerOffersSidebar .owner-offer-donut>div{width:102px;height:102px}}
@media(max-width:600px){body:not(.locked) #offersView.offers-owner-design:not([hidden]){display:flex!important;flex-direction:row;overflow-x:auto}body:not(.locked) #offersView.offers-owner-design>.management-table-panel{flex:0 0 100%;min-width:0}body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{flex:0 0 280px}}
/* Four compact summary squares above the right-hand chart. */
#ownerOffersSidebar .owner-offer-mini-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body:not(.locked) #offersView.offers-owner-design #ownerOffersSidebar .owner-offer-mini-kpis .offer-summary-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;aspect-ratio:1.25;box-sizing:border-box;padding:14px;border:1px solid #e5d8f4;border-radius:13px;background:#fff;box-shadow:0 3px 12px #7951a007}
#ownerOffersSidebar .owner-offer-mini-kpis .media-summary-icon{display:grid;place-items:center;width:32px;height:34px;min-width:32px;flex:0 0 34px;border-radius:9px;margin:0}
#ownerOffersSidebar .owner-offer-mini-kpis .media-summary-icon svg{width:21px;height:21px}
#ownerOffersSidebar .owner-offer-mini-kpis .kpi-title{font-size:9px;line-height:1.3;color:#927ca5;letter-spacing:.2px;text-transform:uppercase;margin-bottom:5px}
#ownerOffersSidebar .owner-offer-mini-kpis .kpi-value{font-size:19px;line-height:1.2;font-weight:800;letter-spacing:-.5px;color:#654b79;overflow-wrap:anywhere}
#ownerOffersSidebar .owner-offer-mini-kpis .kpi-foot{display:none}
#ownerOffersSidebar .owner-offer-mini-kpis .offer-summary-card>div{width:100%;min-width:0}
@media(max-width:1300px){#ownerOffersSidebar .owner-offer-mini-kpis .kpi-value{font-size:16px}body:not(.locked) #offersView.offers-owner-design #ownerOffersSidebar .owner-offer-mini-kpis .offer-summary-card{padding:11px;aspect-ratio:1.05}}
#ownerOffersSidebar .owner-mini-uncapped{display:block;font-size:10px;font-weight:500;color:#9985aa;margin-top:4px;letter-spacing:0}
/* Fit the whole summary column into the available height; only offers scroll. */
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{overflow:hidden!important;display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr);align-content:start;gap:8px}
#ownerOffersSidebar .owner-offer-mini-kpis{gap:8px}
body:not(.locked) #offersView.offers-owner-design #ownerOffersSidebar .owner-offer-mini-kpis .offer-summary-card{aspect-ratio:auto!important;height:76px;min-height:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding:10px!important;border-radius:11px}
#ownerOffersSidebar .owner-offer-mini-kpis .media-summary-icon{width:28px;height:30px;min-width:28px;flex:0 0 28px;border-radius:8px}
#ownerOffersSidebar .owner-offer-mini-kpis .media-summary-icon svg{width:18px;height:18px}
#ownerOffersSidebar .owner-offer-mini-kpis .kpi-title{font-size:8px;line-height:1.25;margin-bottom:4px;letter-spacing:0}
#ownerOffersSidebar .owner-offer-mini-kpis .kpi-value{font-size:17px;line-height:1.1;letter-spacing:-.4px}
#ownerOffersSidebar .owner-mini-uncapped{font-size:8px;margin-top:3px}
#ownerOffersSidebar .panel{padding:12px!important;min-height:0;box-sizing:border-box;overflow:hidden}
#ownerOffersSidebar h2{font-size:14px;margin:0 0 10px}
#ownerOffersSidebar .owner-offer-donut-row{margin:0 0 6px;gap:12px;flex-wrap:nowrap}
#ownerOffersSidebar .owner-offer-donut{width:112px;height:112px;flex:0 0 112px}
#ownerOffersSidebar .owner-offer-donut>div{width:88px;height:88px;gap:3px}
#ownerOffersSidebar .owner-offer-donut strong{font-size:21px}
#ownerOffersSidebar .owner-offer-donut b{font-size:10px}
#ownerOffersSidebar .owner-offer-donut small{font-size:8px}
#ownerOffersSidebar .owner-offer-legend{gap:12px;font-size:9px}
#ownerOffersSidebar .owner-offer-legend b{font-size:9px;margin-top:3px}
#ownerOffersSidebar .owner-offer-alert{font-size:9px;padding:8px 10px;margin-top:6px;min-height:30px}
#ownerOffersSidebar .owner-offer-team-budget{margin:9px 0}
#ownerOffersSidebar .owner-offer-team-budget small{font-size:8px}
#ownerOffersSidebar .owner-offer-team-budget .team-pill{font-size:8px;padding:3px 6px}
#ownerOffersSidebar .owner-offer-track{height:5px;margin:5px 0}
#ownerOffersSidebar .owner-all-budgets{margin-top:4px;padding:7px;font-size:9px}
@media(max-height:800px){body:not(.locked) #offersView.offers-owner-design #ownerOffersSidebar .owner-offer-mini-kpis .offer-summary-card{height:60px;padding:8px!important}#ownerOffersSidebar .owner-offer-mini-kpis .kpi-value{font-size:15px}#ownerOffersSidebar .panel{padding:10px!important}#ownerOffersSidebar h2{font-size:12px;margin-bottom:7px}#ownerOffersSidebar .owner-offer-donut{width:90px;height:90px;flex-basis:90px}#ownerOffersSidebar .owner-offer-donut>div{width:70px;height:70px}#ownerOffersSidebar .owner-offer-donut strong{font-size:18px}#ownerOffersSidebar .owner-offer-team-budget{margin:7px 0}}
/* Distribute the right-hand summary across the full workspace height. */
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:auto minmax(170px,1.15fr) minmax(105px,.65fr) minmax(170px,1fr);align-content:stretch;align-items:stretch;height:100%;gap:10px}
#ownerOffersSidebar>article.panel{display:flex;flex-direction:column;height:100%;min-height:0}
#ownerOffersSidebar>article.panel:has(.owner-offer-donut-row) .owner-offer-donut-row{flex:1;align-items:center;justify-content:center;margin:0;gap:18px}
#ownerOffersSidebar>article.panel:has(.owner-offer-alert){justify-content:space-evenly}
#ownerOffersSidebar>article.panel:has(.owner-offer-team-budget){justify-content:space-between}
#ownerOffersSidebar>article.panel:has(.owner-offer-team-budget) h2{margin-bottom:4px}
#ownerOffersSidebar>article.panel:has(.owner-offer-team-budget) .owner-offer-team-budget{margin:6px 0}
#ownerOffersSidebar .owner-offer-donut{width:clamp(112px,12vh,180px);height:clamp(112px,12vh,180px);flex-basis:clamp(112px,12vh,180px)}
#ownerOffersSidebar .owner-offer-donut>div{width:80%;height:80%}
@media(max-height:700px){body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:auto minmax(130px,1fr) minmax(95px,.65fr) minmax(150px,1fr);gap:7px}#ownerOffersSidebar .owner-offer-donut{width:90px;height:90px;flex-basis:90px}}
/* Refined sidebar: compact statistics, a large mode-switching chart and yellow attention tiles. */
#ownerOffersSidebar .owner-offer-mini-kpis{gap:8px}
#ownerOffersSidebar .owner-mini-stat{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #e8dcf5;border-radius:12px;background:linear-gradient(135deg,#fff,#fcf9ff)}
#ownerOffersSidebar .owner-mini-stat .media-summary-icon{width:32px;height:34px;min-width:32px;flex:0 0 32px;border-radius:10px}
#ownerOffersSidebar .owner-mini-stat>div{min-width:0}
#ownerOffersSidebar .owner-mini-stat small{display:block;font-size:9px;font-weight:600;color:#9985aa;margin-bottom:4px}
#ownerOffersSidebar .owner-mini-stat strong{display:block;font-size:20px;line-height:1.15;letter-spacing:-.4px;color:#674d7c;overflow-wrap:anywhere}
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:auto minmax(210px,1.3fr) minmax(130px,.7fr) minmax(180px,1fr)}
.owner-budget-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.owner-budget-chart-heading h2{margin:0!important}
.owner-budget-mode{display:flex;background:#f4edfc;border:1px solid #e9dcf6;border-radius:9px;padding:3px;gap:3px;flex-shrink:0}.owner-budget-mode button{border:0;border-radius:6px;padding:5px 8px;font-size:9px;color:#9271aa;background:transparent;cursor:pointer}.owner-budget-mode button.selected{background:#8543ff;color:#fff;box-shadow:0 2px 5px #8243ff20}
#ownerOffersSidebar .owner-budget-chart .owner-offer-donut-row{gap:20px;margin:12px 0}
#ownerOffersSidebar .owner-offer-donut{width:clamp(150px,20vh,240px);height:clamp(150px,20vh,240px);flex:0 0 clamp(150px,20vh,240px);border:0;padding:0;cursor:pointer;color:#654b79;font-family:inherit}
#ownerOffersSidebar .owner-offer-donut>div{width:80%;height:80%;margin:auto}
#ownerOffersSidebar .owner-offer-donut strong{font-size:30px}#ownerOffersSidebar .owner-offer-donut b{font-size:12px}#ownerOffersSidebar .owner-offer-donut small{font-size:10px}
#ownerOffersSidebar .owner-offer-donut:focus-visible{outline:2px solid #8543ff;outline-offset:4px}
#ownerOffersSidebar .owner-attention-panel{justify-content:flex-start!important}
.owner-attention-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;flex:1;min-height:0}
#ownerOffersSidebar .owner-attention-tiles .owner-offer-alert{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;margin:0;padding:12px;border:1px solid #f0cf55;background:linear-gradient(140deg,#fff6b9,#ffe68b);border-radius:11px;color:#856119;min-height:0}
#ownerOffersSidebar .owner-attention-tiles .owner-offer-alert strong{font-size:25px;line-height:1;font-weight:800}
#ownerOffersSidebar .owner-attention-tiles .owner-offer-alert span{font-size:10px;line-height:1.3;margin:0;text-align:left}
#ownerOffersSidebar .owner-offer-team-budget small{font-size:11px}#ownerOffersSidebar .owner-offer-team-budget small strong{font-size:13px;color:#624674}#ownerOffersSidebar .owner-offer-team-budget .team-pill{font-size:10px;padding:4px 7px}#ownerOffersSidebar .owner-all-budgets{font-size:11px;padding:10px}
@media(max-height:800px){body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:auto minmax(165px,1.2fr) minmax(105px,.7fr) minmax(165px,1fr);gap:7px}#ownerOffersSidebar .owner-mini-stat{padding:8px;gap:7px}#ownerOffersSidebar .owner-mini-stat strong{font-size:17px}#ownerOffersSidebar .owner-offer-donut{width:140px;height:140px;flex-basis:140px}#ownerOffersSidebar .owner-offer-donut strong{font-size:25px}#ownerOffersSidebar .owner-offer-team-budget small{font-size:9px}#ownerOffersSidebar .owner-offer-team-budget small strong{font-size:11px}}
/* Dashboard-style chart switch lives inside the clickable ring. */
#ownerOffersSidebar .owner-budget-chart .owner-offer-donut-row{justify-content:space-evenly;gap:16px;margin:8px 0 0;min-height:0}
#ownerOffersSidebar .owner-budget-chart .owner-offer-donut{width:clamp(170px,25vh,300px);height:clamp(170px,25vh,300px);flex:0 0 clamp(170px,25vh,300px)}
#ownerOffersSidebar .owner-chart-mode-label{font-size:11px;color:#9a83aa;font-weight:500;letter-spacing:.4px;margin-top:3px}
#ownerOffersSidebar .owner-chart-switch-hint{font-size:9px;line-height:1.3;color:#8c799c;margin-top:4px}
#ownerOffersSidebar .owner-budget-chart .owner-offer-donut>div{gap:4px}
@media(max-height:800px){#ownerOffersSidebar .owner-budget-chart .owner-offer-donut{width:160px;height:160px;flex-basis:160px}#ownerOffersSidebar .owner-budget-chart .owner-offer-donut strong{font-size:23px}#ownerOffersSidebar .owner-chart-mode-label{font-size:9px}#ownerOffersSidebar .owner-chart-switch-hint{font-size:8px}}
/* Rebalance statistics against the smaller chart. */
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:minmax(160px,.9fr) minmax(185px,.95fr) minmax(130px,.7fr) minmax(180px,1fr)}
#ownerOffersSidebar .owner-offer-mini-kpis{grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
#ownerOffersSidebar .owner-mini-stat{padding:15px;gap:12px}
#ownerOffersSidebar .owner-mini-stat .media-summary-icon{width:38px;height:40px;min-width:38px;flex-basis:38px;border-radius:11px}
#ownerOffersSidebar .owner-mini-stat small{font-size:10px;margin-bottom:5px}
#ownerOffersSidebar .owner-mini-stat strong{font-size:23px}
#ownerOffersSidebar .owner-budget-chart .owner-offer-donut{width:clamp(140px,17vh,205px);height:clamp(140px,17vh,205px);flex-basis:clamp(140px,17vh,205px)}
#ownerOffersSidebar .owner-budget-chart .owner-offer-donut strong{font-size:26px}
@media(max-height:800px){body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:minmax(140px,.9fr) minmax(155px,.95fr) minmax(105px,.7fr) minmax(165px,1fr)}#ownerOffersSidebar .owner-mini-stat{padding:10px;gap:8px}#ownerOffersSidebar .owner-mini-stat strong{font-size:19px}#ownerOffersSidebar .owner-mini-stat .media-summary-icon{width:32px;height:34px;min-width:32px;flex-basis:32px}#ownerOffersSidebar .owner-budget-chart .owner-offer-donut{width:135px;height:135px;flex-basis:135px}#ownerOffersSidebar .owner-budget-chart .owner-offer-donut strong{font-size:22px}}
/* Hide the three registry status tabs in the owner's preview. */
body:not(.locked) #offersView.offers-owner-design #ownerOfferTabs{display:none!important}
/* One shared toolbar row: filters followed by month and actions. */
body:not(.locked) #offersView.offers-owner-design>.management-table-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);column-gap:10px;row-gap:12px}
body:not(.locked) #offersView.offers-owner-design .management-table-panel>.panel-heading{grid-column:1;grid-row:1;margin:0!important;min-width:0;align-self:center}
body:not(.locked) #offersView.offers-owner-design #ownerOfferCompactActions{grid-column:2;grid-row:1;margin:0!important;gap:8px;flex-wrap:nowrap;align-self:center}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry{grid-column:1/-1;grid-row:2;min-height:0}
body:not(.locked) #offersView.offers-owner-design .offer-table-tools{grid-template-columns:minmax(130px,2fr) minmax(100px,1fr) minmax(100px,1fr) 36px!important;gap:8px}
body:not(.locked) #offersView.offers-owner-design .offer-search-field{grid-column:1!important;grid-row:1!important}
body:not(.locked) #offersView.offers-owner-design #offerTeamFilterField{grid-column:2!important;grid-row:1!important}
body:not(.locked) #offersView.offers-owner-design .owner-offer-status-field{grid-column:3!important;grid-row:1!important}
body:not(.locked) #offersView.offers-owner-design .owner-offer-export{grid-column:4!important;grid-row:1!important}
#ownerOfferCompactActions select{width:140px;min-width:0}
#ownerOfferCompactActions button{white-space:nowrap}
body:not(.locked) #offersView.offers-owner-design #ownerOfferCompactActions :is(button,select),body:not(.locked) #offersView.offers-owner-design .offer-table-tools :is(input,select,button){height:38px;min-height:38px;box-sizing:border-box}
@media(max-width:1100px){body:not(.locked) #offersView.offers-owner-design>.management-table-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}body:not(.locked) #offersView.offers-owner-design .management-table-panel>.panel-heading{overflow-x:auto;padding-right:0!important}body:not(.locked) #offersView.offers-owner-design .offer-table-tools{padding-right:400px!important;min-width:800px;box-sizing:border-box}body:not(.locked) #offersView.offers-owner-design #ownerOfferCompactActions{grid-column:1;justify-self:end;z-index:1;background:#fff;padding-left:8px}}
/* Simplified personal toolbar. */
body:not(.locked) #offersView.offers-owner-design #ownerOfferCompactActions [data-owner-offer-action="budgets"],body:not(.locked) #offersView.offers-owner-design .owner-offer-export{display:none!important}
body:not(.locked) #offersView.offers-owner-design .offer-table-tools{grid-template-columns:minmax(130px,2fr) minmax(100px,1fr) minmax(100px,1fr)!important}
body:not(.locked) #offersView.offers-owner-design #ownerOfferCompactMonth{appearance:none!important;-webkit-appearance:none!important;background-image:none!important;padding-right:12px!important}
@media(max-width:1100px){body:not(.locked) #offersView.offers-owner-design .offer-table-tools{padding-right:300px!important;min-width:700px}}

/* Whole-row highlight and system-managed team colors. */
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry tbody tr>td,body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry tbody tr>td:hover{outline:none!important;box-shadow:none!important;position:static;z-index:auto;transition:background .15s}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry tbody tr:hover>td,body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry tbody tr:focus-within>td{background:#f3ecfc!important;outline:none!important;box-shadow:none!important}
.owner-offer-condition{display:flex;align-items:center;gap:9px}
.owner-offer-type-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:30px;border-radius:8px;background:#eee5fc;color:#8656b5}
.owner-offer-type-icon svg{width:20px;height:20px}
.owner-offer-type-icon.type-prepay{background:#e2f6ee;color:#169269}
.owner-offer-type-icon.type-postpay{background:#e7efff;color:#3c79c9}
.owner-offer-type-icon.type-cpa{background:#f0e5ff;color:#9255cf}
.owner-offer-type-icon.type-hybrid{background:#fff0d8;color:#c58a27}
/* Keep wheel/touch scrolling without a visible scrollbar in the personal registry. */
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry{scrollbar-width:none;-ms-overflow-style:none;scrollbar-gutter:auto}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry::-webkit-scrollbar{display:none;width:0;height:0}
#ownerOfferRegistry .owner-offer-unassigned{display:inline-block;font-size:10px;color:#a18cac;line-height:1.4}
#ownerOfferRegistry .owner-offer-open{display:grid;place-items:center;width:28px;height:32px;padding:0;border:0;border-radius:9px;background:linear-gradient(135deg,#9652ff,#7535ed);color:#fff;font-size:24px;line-height:1;box-shadow:0 3px 9px #8144ed20;transition:background .15s,box-shadow .15s;cursor:pointer}
#ownerOfferRegistry .owner-offer-open:hover{background:#7535ed;box-shadow:0 4px 12px #8144ed40}
#ownerOfferRegistry .owner-offer-open:focus-visible{outline:2px solid #a67af3;outline-offset:3px}
#ownerOfferRegistry th:nth-child(4){width:24%}#ownerOfferRegistry th:last-child{width:5%}
/* Dashboard-style text action. */
#ownerOfferRegistry .owner-offer-open{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:72px;height:32px;padding:0 11px;border-radius:7px;font-size:11px;font-weight:650;line-height:1.2;white-space:nowrap;box-shadow:none}
#ownerOfferRegistry th:nth-child(1){width:19%}#ownerOfferRegistry th:nth-child(2){width:16%}#ownerOfferRegistry th:nth-child(3){width:19%}#ownerOfferRegistry th:nth-child(4){width:23%}#ownerOfferRegistry th:nth-child(5){width:14%}#ownerOfferRegistry th:last-child{width:9%}
/* Stable dashboard-style action with a subtle hover lift. */
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry .owner-offer-open{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center;justify-content:center;min-width:66px;width:auto;height:28px;padding:0 9px;border:1px solid transparent;border-radius:8px;background:linear-gradient(135deg,#9452ff,#7639ef)!important;color:#fff!important;font-size:10px;font-weight:650;line-height:1.2;transform:none;filter:none;box-shadow:0 3px 8px #8041ed1a;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry .owner-offer-open:hover{display:inline-flex!important;visibility:visible!important;opacity:1!important;background:linear-gradient(135deg,#8844f4,#6b2fdf)!important;color:#fff!important;transform:translateY(-2px);filter:none;box-shadow:0 6px 13px #8041ed38}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry .owner-offer-open:active{transform:translateY(0);box-shadow:0 2px 5px #8041ed20}
body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry .owner-offer-open:focus-visible{outline:2px solid #ac84ef!important;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry .owner-offer-open{transition:none}body:not(.locked) #offersView.offers-owner-design #ownerOfferRegistry .owner-offer-open:hover{transform:none}}
#ownerOfferRegistry .owner-offer-dot{display:none}
/* Only Budget and Spend, side by side. */
#ownerOffersSidebar .owner-offer-mini-kpis{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:minmax(88px,.45fr) minmax(185px,.95fr) minmax(130px,.7fr) minmax(180px,1fr)}
@media(max-height:800px){body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:minmax(72px,.45fr) minmax(155px,.95fr) minmax(105px,.7fr) minmax(165px,1fr)}}
/* Stack the two summary cards: budget, then spend. */
#ownerOffersSidebar .owner-offer-mini-kpis{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
#ownerOffersSidebar .owner-mini-stat{padding:10px 15px}
body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:minmax(140px,.65fr) minmax(185px,.95fr) minmax(130px,.7fr) minmax(180px,1fr)}
@media(max-height:800px){body:not(.locked) #offersView.offers-owner-design>#ownerOffersSidebar{grid-template-rows:minmax(120px,.65fr) minmax(155px,.95fr) minmax(105px,.7fr) minmax(165px,1fr)}}
#ownerOfferRegistry .owner-cpa-kpi-text{font-size:9px;line-height:1.4;color:#987eaa;margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere}
/* Drawer filters must not inherit the old inline panel's 23–26vh cap. */
#influenceSearchFilterDialog .influence-search-filters,#influenceCrmFilterDialog .influence-crm-filters{max-height:none!important;height:auto!important;min-height:0;overflow:visible!important;display:block!important;flex:none;margin:0!important;padding:0!important}
#influenceSearchFilterDialog .search-filter-drawer-body,#influenceCrmFilterDialog .search-filter-drawer-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:24px;box-sizing:border-box}
#influenceSearchFilterDialog header,#influenceSearchFilterDialog>footer,#influenceCrmFilterDialog header,#influenceCrmFilterDialog>footer{flex:0 0 auto}
#influenceSearchFilterDialog .influence-search-filter-main{display:flex!important;flex-direction:column;gap:18px}
#influenceSearchFilterDialog .influence-search-filter-main>label{flex:0 0 auto;min-width:0}
#influenceSearchFilterDialog .influence-search-filter-footer{margin-top:22px;overflow:visible}
#influenceSearchFilterDialog .influence-search-filter-extras{gap:14px}
#influenceSearchFilterDialog .influence-search-query input{font-size:14px;box-sizing:border-box}
@media(max-width:520px){#influenceSearchFilterDialog .search-filter-drawer-body,#influenceCrmFilterDialog .search-filter-drawer-body{padding:20px}#influenceSearchFilterDialog .influence-search-query input{font-size:16px}}
/* Keep horizontal GEO navigation without a visible scrollbar. */
#influenceSearchContent>.influence-geo-tabs{scrollbar-width:none;-ms-overflow-style:none}
#influenceSearchContent>.influence-geo-tabs::-webkit-scrollbar{display:none;width:0;height:0}

/* White summary cards in Influence launches. */
#influenceLaunchesContent #launchesKpis .kpi-card { background:#fff; }

/* Keep hierarchy budget fields aligned with the participant rows. */
#allocationDialog .allocation-row { grid-template-columns:minmax(150px,1fr) 120px 86px 120px; min-width:0; }
#allocationDialog .allocation-row > .allocation-personal-field { grid-column:4; grid-row:1; justify-self:stretch; display:grid; gap:4px; min-width:0; margin:0; color:var(--muted); font-size:8px; font-weight:500; line-height:1.3; }
#allocationDialog .allocation-personal-field input { width:100%; min-width:0; box-sizing:border-box; }
#allocationDialog .allocation-branch-group { margin:0 0 10px 20px; padding:0 0 0 10px; }
#allocationDialog .allocation-branch-group .allocation-branch-personal { grid-template-columns:minmax(150px,1fr) 120px 86px 120px; align-items:center; gap:12px; padding:10px 12px; }
#allocationDialog .allocation-branch-personal > label { grid-column:4; min-width:0; font-size:8px; line-height:1.3; }
#allocationDialog .allocation-branch-personal > label input { width:100%; box-sizing:border-box; }
#allocationDialog .allocation-branch-row > .allocation-personal-field { grid-column:4; grid-row:2; }
#allocationDialog .allocation-row small { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:650px) {
 #allocationDialog .allocation-row, #allocationDialog .allocation-branch-group .allocation-branch-personal { grid-template-columns:minmax(0,1fr) 100px; gap:8px; }
 #allocationDialog .allocation-row > span:first-child { grid-column:1 / -1; }
 #allocationDialog .allocation-row > .allocation-fact { grid-column:1; }
 #allocationDialog .allocation-row > button { grid-column:1; }
 #allocationDialog .allocation-row > input, #allocationDialog .allocation-row > .allocation-personal-field, #allocationDialog .allocation-branch-personal > label { grid-column:2; grid-row:auto; }
 #allocationDialog .allocation-branch-group { margin-left:8px; padding-left:8px; }
}

body #influenceCrmContent .crm-sheet-action .influence-finalize-blogger.ready { background:#20b978;color:#fff;border-color:#19a46a;box-shadow:0 3px 10px #20b97835; }
body #influenceCrmContent .crm-sheet-action .influence-finalize-blogger.ready:hover { background:#169f65;color:#fff;box-shadow:0 4px 12px #20b97850; }
body #influenceCrmContent .crm-sheet-action .influence-finalize-blogger.unavailable { background:#eef1f0;color:#8a9c94;border-color:#dce4e0;box-shadow:none;cursor:not-allowed; }

/* Launch dialogs: contained controls and a stationary background. */
html:has(#launchesDialog[open]),body:has(#launchesDialog[open]) { overflow:hidden!important;overscroll-behavior:none; }
body:has(#launchesDialog[open]) main { overflow:hidden!important; }
#launchesDialog { overscroll-behavior:contain;scrollbar-gutter:stable;box-sizing:border-box; }
#launchesDialog .form-grid > label { min-width:0; }
#launchesDialog input,#launchesDialog select,#launchesDialog textarea { width:100%;min-width:0;max-width:100%;box-sizing:border-box; }
#launchesDialog select { appearance:none;-webkit-appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238e75a4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px 16px!important; }
#launchesDialog #launchesClose { display:grid;place-items:center;position:absolute;top:14px;right:14px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border:1px solid var(--line);border-radius:10px;font-size:26px;line-height:1;background:var(--panel);color:var(--muted);cursor:pointer;z-index:2; }
#launchesDialog #launchesClose:hover { color:var(--ink);background:var(--panel-soft,var(--panel)); }
#launchesDialog h2 { padding-right:32px; }
#launchesDialog .launch-icon-control { position:relative;min-width:0; }
#launchesDialog .launch-field-icon { position:absolute;left:13px;top:50%;transform:translateY(-50%);width:22px;height:22px;display:grid;place-items:center;pointer-events:none;z-index:1; }
#launchesDialog .launch-field-icon.is-instagram { color:#fff;background:linear-gradient(35deg,#ffbd55,#ed387f 52%,#8549dc);border-radius:6px;padding:3px;box-sizing:border-box; }
#launchesDialog .launch-field-icon svg { width:17px;height:17px; }
#launchesDialog .launch-field-icon img { width:23px;height:16px;object-fit:cover;border-radius:2px; }
#launchesDialog #launchGeo,#launchesDialog select.has-field-icon { padding-left:45px!important; }
#launchPlacementDialog .launch-placement-entry { grid-template-columns:minmax(130px,1fr) minmax(230px,1.4fr) 34px;align-items:end; }
#launchPlacementDialog .placement-quick-status { display:grid;gap:7px;min-width:0; }
#launchPlacementDialog .placement-quick-status > span { font-size:11px;color:var(--muted); }
#launchPlacementDialog .placement-quick-status > div { display:flex;gap:8px; }
#launchPlacementDialog [data-entry-result] { flex:1;min-height:36px;border:1px solid #c9dfd2;border-radius:8px;padding:7px 10px;background:#edf9f2;color:#168256;font:inherit;font-size:11px;font-weight:650;cursor:pointer; }
#launchPlacementDialog [data-entry-result="missed"] { border-color:#f1cdd5;background:#fff1f3;color:#b83b55; }
#launchPlacementDialog [data-entry-result="published"][aria-pressed="true"] { background:#15965f;color:white; }
#launchPlacementDialog [data-entry-result="missed"][aria-pressed="true"] { background:#c34560;color:white; }
@media(max-width:550px){#launchPlacementDialog .launch-placement-entry{grid-template-columns:minmax(0,1fr) 30px;}#launchPlacementDialog .placement-quick-status{grid-column:1;}#launchPlacementDialog [data-entry-remove]{grid-column:2;grid-row:1 / 3;}}
html:has(#launchPlacementDialog[open]),body:has(#launchPlacementDialog[open]) { overflow:hidden!important;overscroll-behavior:none; }
body:has(#launchPlacementDialog[open]) main { overflow:hidden!important; }
#launchPlacementDialog { overscroll-behavior:contain; }
#launchPlacementDialog .launch-placement-entry { grid-template-columns:minmax(130px,1fr) minmax(320px,1.6fr); }
#launchPlacementDialog [data-entry-result="cancelled"] { background:#f2eef7;border-color:#ddd1ea;color:#816b93; }
#launchPlacementDialog [data-entry-result="cancelled"][aria-pressed="true"] { background:#816b93;color:#fff; }
.launch-placement-chip.cancelled { opacity:.6;text-decoration:line-through; }
@media(max-width:550px){#launchPlacementDialog .launch-placement-entry{grid-template-columns:minmax(0,1fr);}#launchPlacementDialog .placement-quick-status>div{flex-wrap:wrap;}}

/* Payments share the compact Search workspace layout. */
html:has(#influenceView:not([hidden]) #influencePaymentsContent:not([hidden])) { overflow:hidden; }
#influencePaymentsContent:not([hidden]) { display:flex;flex-direction:column;height:calc(100dvh - 64px);min-height:0;gap:12px; }
#influencePaymentsContent .influence-payment-kpis { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;flex:none; }
#influencePaymentsContent .influence-payment-kpis article { padding:12px 16px;min-height:74px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:none; }
#influencePaymentsContent .influence-payment-kpis strong { font-size:22px;margin:5px 0; }
#influencePaymentsContent .influence-payment-kpis small { font-size:9px;letter-spacing:.035em;color:var(--muted); }
#influencePaymentsContent .influence-payment-kpis article>span { font-size:9px; }
#influencePaymentsContent .influence-payments-table { flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:18px;border-radius:16px; }
#influencePaymentsContent .influence-payments-table>.panel-heading { flex:none;gap:16px;align-items:center;margin-bottom:16px; }
#influencePaymentsContent .panel-heading h2 { font-size:18px;margin:3px 0; }
#influencePaymentsContent .panel-heading .eyebrow { color:var(--muted);font-size:9px; }
#influencePaymentsContent .panel-heading .subtitle { font-size:10px; }
#influencePaymentsContent .influence-payment-toolbar { display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:1;flex-wrap:wrap; }
#influencePaymentsContent .influence-payment-toolbar label { display:block;margin:0; }
#influencePaymentsContent .influence-payment-toolbar label>span { display:none; }
#influencePaymentsContent .influence-payment-toolbar input,#influencePaymentsContent .influence-payment-toolbar select { min-height:38px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--panel);color:var(--ink);box-sizing:border-box; }
#influencePaymentsContent .influence-payment-search { width:min(260px,30vw); }
#influencePaymentsContent .influence-payment-search input { width:100%;padding-left:12px; }
#influencePaymentsContent .influence-payment-search::before { display:none; }
#influencePaymentsContent .influence-add-person { min-width:0;min-height:38px;padding:9px 16px;background:linear-gradient(135deg,#9754e8,#7737db);border:0;border-radius:10px;box-shadow:none; }
#influencePaymentsContent .influence-payments-table>.table-wrap { flex:1;min-height:0;max-height:none;overflow:auto;border:1px solid var(--line);border-radius:10px;overscroll-behavior:contain; }
#influencePaymentsContent .influence-payments-table table { width:100%;border-collapse:separate;border-spacing:0; }
#influencePaymentsContent .influence-payments-table th { position:sticky;top:0;z-index:2;background:#f7f2fc;color:#917aa5;font-size:9px;letter-spacing:.03em;padding:12px 10px;border:0;border-bottom:1px solid var(--line); }
#influencePaymentsContent .influence-payments-table td { padding:12px 10px;font-size:11px;border:0;border-bottom:1px solid var(--line);background:var(--panel);vertical-align:middle; }
#influencePaymentsContent .influence-edit-person { color:#fff;background:linear-gradient(135deg,#9656e7,#7738d4);border:0;border-radius:8px;padding:8px 12px; }
#influencePaymentsContent .influence-payment-hash>span { font-size:10px; }
#influencePaymentsContent .influence-payment-hash button,#influencePaymentsContent .influence-payment-hash a { color:#8750ba;border-color:#e2d3f1;background:#faf5ff; }
#influencePaymentFilterDialog { position:fixed;inset:0 0 0 auto;margin:0;width:min(410px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:1px solid var(--line);border-radius:20px 0 0 20px;background:var(--panel);color:var(--ink);overflow:hidden; }
#influencePaymentFilterDialog[open] { display:flex;flex-direction:column; }
#influencePaymentFilterDialog header { display:flex;justify-content:space-between;align-items:flex-start;padding:24px;gap:15px; }
#influencePaymentFilterDialog header h2 { margin:0 0 8px;font-size:22px; }
#influencePaymentFilterClose { width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);font-size:24px; }
#influencePaymentFilterDialog .influence-payment-filters { display:flex;flex-direction:column;gap:18px;flex:1;min-height:0;overflow:auto;padding:12px 24px; }
#influencePaymentFilterDialog label { display:grid;gap:8px;font-size:10px;color:var(--muted); }
#influencePaymentFilterDialog input,#influencePaymentFilterDialog select { width:100%;box-sizing:border-box;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink); }
#influencePaymentFilterDialog footer { padding:20px 24px; }
#influencePaymentFilterDone { width:100%;padding:12px;background:#8243d5;color:white;border:0;border-radius:10px;font-weight:700; }
body:has(#influencePaymentFilterDialog[open]),body:has(#influencePaymentDialog[open]) { overflow:hidden; }
@media(max-width:800px){#influencePaymentsContent:not([hidden]){height:calc(100dvh - 40px);}#influencePaymentsContent .influence-payment-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}#influencePaymentsContent .influence-payment-kpis article{min-height:50px;padding:8px 12px;}#influencePaymentsContent .influence-payment-kpis article>span{display:none;}#influencePaymentsContent .influence-payments-table>.panel-heading{align-items:flex-start;flex-direction:column;}#influencePaymentsContent .influence-payment-toolbar{justify-content:flex-start;width:100%;}#influencePaymentsContent .influence-payment-search{flex:1;width:auto;min-width:150px;}}
body:not(.locked) #influencePaymentsContent #influencePaymentKpis article { position:relative;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;padding:16px 16px 16px 72px;min-height:100px;background:#fff!important;border:1px solid #e4d6f3!important;border-radius:15px;box-shadow:none;gap:3px; }
body:not(.locked) #influencePaymentsContent #influencePaymentKpis article strong { display:block;font-size:25px;line-height:1.2;margin:2px 0;color:var(--ink); }
body:not(.locked) #influencePaymentsContent #influencePaymentKpis .payment-kpi-icon { position:absolute;left:16px;top:50%;transform:translateY(-50%);width:42px;height:46px;display:grid;place-items:center;background:linear-gradient(135deg,#ab70ff,#783bef);color:#fff;border-radius:12px;box-shadow:inset 0 1px 2px #ffffff70,0 5px 12px #7d4bcb20; }
#influencePaymentKpis .payment-kpi-icon svg { width:26px;height:26px; }
body:not(.locked) #influencePaymentsContent #influencePaymentKpis .payment-kpi-icon-1 { background:linear-gradient(135deg,#25d394,#0d9b6a); }
body:not(.locked) #influencePaymentsContent #influencePaymentKpis .payment-kpi-icon-2 { background:linear-gradient(135deg,#ffc357,#e48a1b); }
body:not(.locked) #influencePaymentsContent #influencePaymentKpis .payment-kpi-icon-3 { background:linear-gradient(135deg,#399aff,#125adf); }
#influencePaymentsContent #influencePaymentMonth { appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2385759d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-position:right 13px center!important;background-repeat:no-repeat!important;background-size:14px!important;padding-right:38px!important;min-width:170px; }
html:has(#influencePaymentDialog[open]),body:has(#influencePaymentDialog[open]) { overflow:hidden!important;overscroll-behavior:none; }
body:has(#influencePaymentDialog[open]) main { overflow:hidden!important; }
#influencePaymentDialog { width:min(600px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:26px;border-radius:18px; }
#influencePaymentDialog .influence-person-form { padding:0; }
#influencePaymentDialog .panel-heading { margin-bottom:16px; }
#influencePaymentDialog h2 { font-size:21px;margin:5px 0;padding-right:28px; }
#influencePaymentDialog .eyebrow { font-size:9px; }
#influencePaymentDialog .influence-person-fields { margin:16px 0;gap:12px; }
#influencePaymentDialog .influence-person-fields label[hidden] { display:none!important; }
#influencePaymentDialog .influence-person-fields input:not([type=checkbox]),#influencePaymentDialog .influence-person-fields select { min-height:38px;height:38px;font-size:12px;padding:8px 12px;box-sizing:border-box; }
#influencePaymentDialog textarea { min-height:50px;max-height:100px;font-size:11px;box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:10px;padding:10px; }
#influencePaymentPackageSummary { background:#f7f2fc;border:1px solid #e7d9f3;border-radius:12px;padding:13px 15px; }
#influencePaymentPackageSummary>div { display:flex;justify-content:space-between;align-items:center;gap:12px; }
#influencePaymentPackageSummary b { font-size:15px; }
#influencePaymentPackageSummary p { margin:7px 0;font-size:12px;color:var(--ink); }
#influencePaymentPackageSummary small { font-size:10px;color:var(--muted); }
#influencePaymentExtra { border-top:1px solid var(--line);padding:12px 0;margin-bottom:10px; }
#influencePaymentExtra summary { color:var(--muted);font-size:11px;cursor:pointer; }
#influencePaymentDialog #closeInfluencePaymentDialog { top:12px;right:12px;width:32px;height:32px;font-size:24px;display:grid;place-items:center;padding:0;border-radius:9px; }
#influencePaymentDialog select { appearance:none;-webkit-appearance:none;padding-right:32px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2385759d' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-position:right 12px center!important;background-repeat:no-repeat!important; }
#influencePaymentDialog .payment-confirm-check { display:none; }
#influencePaymentDialog #splitInfluencePayment { margin-top:10px;font-size:11px;padding:8px 12px; }
#influencePaymentDialog .influence-person-actions { display:flex;flex-wrap:wrap;gap:10px; }
#influencePaymentDialog .influence-person-actions button { flex:1;min-height:40px;padding:10px;font-size:12px; }
#influencePaymentDialog .influence-person-actions button[type=submit]:not(#influencePaymentMarkPaid) { background:#f5effb;color:#8751b4;box-shadow:none; }
.payment-installment-label { display:block;font-size:10px;color:var(--muted);margin-top:5px; }
#paymentSplitDialog { width:min(540px,calc(100vw - 24px));max-height:85dvh;overflow:auto;overscroll-behavior:contain;padding:24px;box-sizing:border-box; }
#paymentSplitDialog h2 { padding-right:25px;font-size:20px; }
.payment-split-row { display:grid;grid-template-columns:minmax(0,1fr) 120px 28px;align-items:end;gap:8px;margin:14px 0; }
.payment-split-row label { display:grid;gap:6px;font-size:11px;color:var(--muted); }
.payment-split-row input { width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink); }
.payment-split-row button { height:36px;border:0;background:#fff0f3;color:#bd465d;border-radius:7px; }
#paymentSplitDialog [type=submit] { width:100%;margin-top:12px;padding:12px;border:0;border-radius:10px;background:#8944da;color:#fff;font-weight:700; }
#paymentSplitDialog [data-split-error] { font-size:11px;color:#bc3d59; }
html:has(#paymentSplitDialog[open]),body:has(#paymentSplitDialog[open]) { overflow:hidden!important; }
#influenceExitsContent .exits-calendar-panel { padding:20px; }
.exits-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px; }
.exits-toolbar h2 { margin:4px 0;font-size:22px; }.exits-toolbar .eyebrow{font-size:9px;color:#9765ce;}.exits-toolbar .subtitle{font-size:11px;}
.exits-controls { display:flex;gap:8px;align-items:center;flex-wrap:wrap; }
.exits-controls button,.exits-controls input,.exits-filters input,.exits-filters select { padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font:inherit;font-size:11px; }
.exits-controls button{cursor:pointer;}.exits-controls button:hover{background:#f3eafa;}
.exits-filters { display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap; }.exits-filters input{min-width:200px;}.exits-filters>span{font-size:10px;color:var(--muted);margin-left:auto;}
.exits-calendar { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px; }
.exits-weekday { padding:8px;text-align:center;color:var(--muted);font-size:11px;font-weight:700; }
.exits-day { min-height:140px;padding:9px;border:1px solid var(--line);border-radius:11px;background:var(--panel);min-width:0; }.exits-day.is-empty{background:transparent;border-color:transparent;}.exits-day.is-today{border-color:#a66fe8;box-shadow:0 0 0 1px #a66fe8;}
.exits-day>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;}.exits-day>header>b{font-size:12px;}.exits-day>header>small{background:#f0e5fc;color:#9355c7;padding:2px 6px;border-radius:10px;font-size:9px;}
.exits-event { display:flex;flex-direction:column;gap:4px;width:100%;box-sizing:border-box;text-align:left;margin-bottom:7px;border:1px solid #dfc9f5;border-left:3px solid #9a5cdc;border-radius:8px;background:#faf5ff;color:var(--ink);padding:8px;cursor:pointer;overflow-wrap:anywhere; }.exits-event strong{font-size:12px;color:#8d45c4;}.exits-event b{font-size:11px;}.exits-event span,.exits-event small{font-size:9px;color:var(--muted);}.exits-event.published{background:#effbf4;border-color:#c3e8d5;border-left-color:#22af78;}.exits-event.missed{background:#fff3f5;border-color:#f2cdd6;border-left-color:#d55b78;}.exits-event.cancelled{opacity:.6;background:#f5f4f7;border-color:#ddd7e3;border-left-color:#a49aaa;}.exits-event:hover{box-shadow:0 3px 10px #7b4aa51a;}
@media(max-width:900px){.exits-calendar{min-width:850px;}#influenceExitsContent .exits-calendar-panel{overflow-x:auto;}.exits-toolbar{align-items:flex-start;flex-direction:column;}}

/* The month grid fills the workspace, including days without scheduled exits. */
#influenceExitsContent .exits-calendar-panel { min-height:calc(100dvh - 64px);box-sizing:border-box;display:flex;flex-direction:column; }
.exits-calendar { flex:1;grid-template-rows:32px;grid-auto-rows:minmax(150px,1fr);gap:8px; }
.exits-day { box-sizing:border-box;min-height:150px; }
.exits-day>header>b { font-size:16px; }
.exits-event { padding:10px;gap:5px; }
.exits-event strong { font-size:14px; }
.exits-event b { font-size:13px; }
.exits-event span,.exits-event small { font-size:11px; }
.exits-day.is-today>header>b { background:#8d46dc;color:white;border-radius:50%;width:28px;height:28px;display:grid;place-items:center; }

html:has(#influenceView:not([hidden]) #influenceExitsContent:not([hidden])),body:has(#influenceView:not([hidden]) #influenceExitsContent:not([hidden])) { overflow:hidden; }
body:has(#influenceView:not([hidden]) #influenceExitsContent:not([hidden])) main { overflow:hidden; }
#influenceExitsContent .exits-calendar-panel { height:calc(100dvh - 64px);min-height:0;margin:0;overflow:hidden; }
.exits-toolbar,.exits-filters { flex:none; }
.exits-workspace { display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,29%);gap:18px;flex:1;min-height:0; }
.exits-workspace .exits-calendar { min-width:0;min-height:0;gap:0;overflow:hidden;border:1px solid var(--line);border-radius:12px; }
.exits-workspace .exits-day { min-height:0;padding:9px;border:0;border-right:1px solid #f1edf6;border-bottom:1px solid #f1edf6;border-radius:0;overflow:hidden;text-align:left;color:var(--ink);cursor:pointer;background:white; }
.exits-workspace .exits-day.outside { background:#f8f9fb;color:#a8afba; }
.exits-workspace .exits-day:hover { background:#faf5ff; }
.exits-workspace .exits-day.is-selected { background:#f0e6fc;box-shadow:inset 0 0 0 2px #a36ce0; }
.exits-day-number { display:block;font-size:12px;margin-bottom:6px; }
.exits-workspace .exits-day.is-today .exits-day-number { background:#17cb8b;color:white;border-radius:50%;width:24px;height:24px;display:grid;place-items:center; }
.exits-day-previews { display:grid;gap:3px; }
.exits-preview { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#e9ddfb;color:#7541ae;border-left:3px solid #9c62db;border-radius:5px;padding:4px;font-size:10px; }
.exits-preview.published { background:#dcf7ec;color:#087d50;border-color:#18bf83; }
.exits-preview.missed { background:#ffe7ec;color:#b43c59;border-color:#e76c87; }
.exits-preview.cancelled { background:#eeeaf2;color:#93869e;border-color:#aa9db5; }
.exits-day-panel { min-height:0;display:flex;flex-direction:column;padding:16px;border:1px solid var(--line);border-radius:12px;background:white; }
.exits-day-panel h3 { margin:6px 0 12px;font-size:18px; }
#exitsDayResults { min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1; }
.exits-day-summary,.exits-empty { color:var(--muted);font-size:12px;margin:0 0 14px; }
@media(max-width:900px){.exits-workspace{grid-template-columns:minmax(0,1fr) 230px;gap:8px;}.exits-workspace .exits-day{padding:4px;}.exits-preview{font-size:9px;}.exits-toolbar{flex-direction:row;}.exits-filters>span{display:none;}}

/* A single compact command bar leaves the month grid in focus. */
#influenceExitsContent .exits-calendar-panel { padding:18px;gap:16px;background:#fff; }
#influenceExitsContent .exits-toolbar { display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:16px;margin:0;padding:0 0 16px;border-bottom:1px solid #eee6f6; }
#influenceExitsContent .exits-toolbar>div:first-child { flex:0 0 auto; }
#influenceExitsContent .exits-toolbar h2 { font-size:19px;line-height:1.2;margin:4px 0; }
#influenceExitsContent .exits-toolbar .eyebrow { font-size:8px;letter-spacing:.08em; }
#influenceExitsContent .exits-toolbar .subtitle { margin:4px 0 0;font-size:10px; }
#influenceExitsContent .exits-filters { flex:1;min-width:0;flex-wrap:nowrap;margin:0;gap:8px;justify-content:flex-end; }
#influenceExitsContent .exits-filters input { min-width:80px;width:100%;max-width:230px; }
#influenceExitsContent .exits-filters select { width:135px;flex:none; }
#influenceExitsContent .exits-controls { flex:none;flex-wrap:nowrap;gap:6px; }
#influenceExitsContent .exits-toolbar input,#influenceExitsContent .exits-toolbar select,#influenceExitsContent .exits-toolbar button { box-sizing:border-box;height:36px;min-height:36px;padding:8px 10px;border:1px solid #e9ddf5;border-radius:9px;font-size:11px;box-shadow:none;background:#fbf8fe;color:#705783; }
#influenceExitsContent .exits-controls input { width:145px; }
#influenceExitsContent .exits-controls button { white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s; }
#influenceExitsContent .exits-controls button:hover { background:#efe3fc;border-color:#c6a4ec; }
#influenceExitsContent #exitsToday { color:#8649c8;background:#f1e7fc;font-weight:700; }
#influenceExitsContent .exits-weekday { background:#faf7fd;font-size:10px;text-transform:uppercase;padding:8px 0; }
#influenceExitsContent .exits-workspace { gap:16px; }
#influenceExitsContent .exits-day { display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;transition:background .15s; }
#influenceExitsContent .exits-day-number { align-self:flex-start;line-height:24px;min-width:24px;text-align:center;font-size:11px;margin:0 0 5px; }
#influenceExitsContent .exits-day.is-selected { background:#f8f1ff;box-shadow:inset 0 0 0 2px #b481eb; }
#influenceExitsContent .exits-day-panel { background:#fcfaff;border-color:#e9ddf5;padding:18px; }
#influenceExitsContent .exits-day-panel>.eyebrow { color:#a283bb;font-size:9px;letter-spacing:.1em;margin:0; }
#influenceExitsContent .exits-day-panel h3 { font-size:20px;margin:10px 0 16px; }
#influenceExitsContent .exits-event { background:white;border-radius:11px;padding:14px;margin-bottom:10px; }
#influenceExitsContent .exits-event strong { font-size:17px; }
#influenceExitsContent .exits-event small { align-self:flex-start;border-radius:6px;background:#f1e7fb;padding:4px 7px; }
#influenceExitsContent .exits-empty { padding:28px 16px;text-align:center;border:1px dashed #e1cfee;border-radius:12px;background:white; }
@media(max-width:1100px){#influenceExitsContent .exits-toolbar{gap:8px;}#influenceExitsContent .exits-toolbar h2{font-size:16px;}#influenceExitsContent .exits-filters select{width:115px;}#influenceExitsContent .exits-controls input{width:125px;}#influenceExitsContent .exits-controls button{padding:8px;}#influenceExitsContent .exits-toolbar .eyebrow{display:none;}}

/* Color accents and softly separated day cards. */
#influenceExitsContent #exitsToday { background:linear-gradient(135deg,#a15aef,#7834df);color:#fff;border-color:transparent;box-shadow:0 4px 12px #8540d526; }
#influenceExitsContent #exitsRefresh { background:#e7f8f0;border-color:#c5ead9;color:#15835e;font-weight:700; }
#influenceExitsContent #exitsPrev,#influenceExitsContent #exitsNext { background:#eee3fb;border-color:#dfc9f5;color:#8646c4;font-size:19px;width:32px;padding:0; }
#influenceExitsContent #exitsToday:hover { background:linear-gradient(135deg,#ad6af4,#8641e6); }
#influenceExitsContent #exitsRefresh:hover { background:#d8f2e6;border-color:#a6d9c2; }
#influenceExitsContent .exits-workspace .exits-calendar { gap:5px;border:0;border-radius:12px;background:#f7f3fc;padding:6px; }
#influenceExitsContent .exits-weekday { background:transparent;color:#9a80ad;font-size:10px; }
#influenceExitsContent .exits-workspace .exits-day { border:1px solid #eee5f6;border-radius:9px;background:#fff;transition:background .18s,border-color .18s,box-shadow .18s; }
#influenceExitsContent .exits-workspace .exits-day:nth-child(7n),#influenceExitsContent .exits-workspace .exits-day:nth-child(7n - 1) { background:#fdfaff; }
#influenceExitsContent .exits-workspace .exits-day.outside { background:#f3f2f7;border-color:transparent;color:#b4abbf; }
#influenceExitsContent .exits-workspace .exits-day:has(.exits-preview) { background:linear-gradient(160deg,#fff,#f7efff);border-color:#ddc7f3; }
#influenceExitsContent .exits-workspace .exits-day:hover { background:#f5edfd;border-color:#cba5eb;box-shadow:inset 0 0 0 1px #dfc9f4; }
#influenceExitsContent .exits-workspace .exits-day.is-selected { background:linear-gradient(145deg,#eee0ff,#faf5ff);border-color:#ac77e2;box-shadow:inset 0 0 0 1px #b784e9; }
#influenceExitsContent .exits-preview { background:#ede0ff;color:#7d3fbb;border:0;border-left:3px solid #a464e2;border-radius:6px;padding:5px 6px;font-weight:600; }
#influenceExitsContent .exits-preview.published { background:#dcf7ec;color:#128461;border-left-color:#22bb86; }
#influenceExitsContent .exits-preview.missed { background:#ffe7ed;color:#bd4768;border-left-color:#e37895; }
#influenceExitsContent .exits-preview.cancelled { background:#eeebf3;color:#9789a3;border-left-color:#b4a4c2; }
#influenceExitsContent .exits-day-panel { background:linear-gradient(170deg,#fcf9ff,#fff);box-shadow:0 4px 18px #8040ba06; }
#influenceExitsContent .exits-day-panel h3 { color:#6c477f; }
#influenceExitsContent .exits-day-summary { background:#f1e7fb;border-radius:8px;padding:10px 12px;color:#8b62a8; }
@media(prefers-reduced-motion:reduce){#influenceExitsContent .exits-day,#influenceExitsContent .exits-controls button{transition:none;}}

#influenceExitsContent .exits-workspace .exits-day.is-today .exits-day-number { background:linear-gradient(135deg,#a35df1,#7c35df);color:#fff;box-shadow:0 3px 8px #8742d52b;border-radius:50%; }
#influenceExitsContent .exits-preview { display:flex;align-items:center;gap:5px; }
#influenceExitsContent .exits-preview>span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0; }
#influenceExitsContent .exits-preview .geo-flag-image { width:17px;height:12px;object-fit:cover;border-radius:2px;flex:none; }
#influenceExitsContent .exits-blogger-name { display:flex;align-items:center;gap:7px; }
#influenceExitsContent .exits-blogger-name .geo-flag-image { width:22px;height:16px;object-fit:cover;border-radius:3px;flex:none; }

#influenceExitsContent .exits-quick-actions { display:flex;gap:6px;flex-wrap:wrap;margin-top:8px; }
#influenceExitsContent .exits-quick-actions button { flex:1;padding:8px 6px;border-radius:8px;border:1px solid #c7e9d9;background:#eefaf4;color:#16845c;font-size:11px;font-weight:700;cursor:pointer; }
#influenceExitsContent .exits-quick-actions [data-quick-status=missed] { border-color:#f4ccd7;background:#fff1f5;color:#c44768; }
#influenceExitsContent .exits-quick-actions [data-quick-status=cancelled] { border-color:#e4d5f0;background:#f4eff9;color:#8a709e; }
#influenceExitsContent .exits-quick-actions button[aria-pressed=true] { box-shadow:inset 0 0 0 2px currentColor; }
#influenceExitsContent .exits-quick-actions button:disabled { opacity:.5;cursor:wait; }
#influenceExitsContent .exits-edit-time { align-self:flex-start;border:0;background:transparent;color:#9661bd;padding:6px 0;font-size:10px;cursor:pointer; }

#influenceExitsContent .exits-instagram { display:inline-flex;align-items:center;align-self:flex-start;gap:6px;padding:8px 12px;margin-top:6px;border:1px solid #f1cbe4;border-radius:8px;background:#fff2f9;color:#c44896;text-decoration:none;font-size:11px;font-weight:700; }
#influenceExitsContent .exits-instagram svg { width:16px;height:16px; }
#influenceExitsContent .exits-instagram:hover { background:#fce4f3;border-color:#e6a8cf; }

#influenceLaunchesContent .launch-cost-status { display:inline-block;padding:6px 9px;border-radius:7px;font-weight:800;white-space:nowrap; }
#influenceLaunchesContent .launch-cost-status.unpaid { color:#ca3554;background:#ffedf1; }
#influenceLaunchesContent .launch-cost-status.partial { color:#a46c00;background:#fff2bf; }
#influenceLaunchesContent .launch-cost-status.paid { color:#078859;background:#e0f7ed; }
/* Keep the secondary save action legible inside the payment footer. */
#influencePaymentDialog .influence-person-actions button[type=submit]:not(#influencePaymentMarkPaid) { background:#f1e7fc!important;color:#8146b5!important;border:1px solid #d9bfef!important;box-shadow:none!important;opacity:1; }
#influencePaymentDialog .influence-person-actions button[type=submit]:not(#influencePaymentMarkPaid) b { color:inherit!important;background:transparent!important; }
#influencePaymentDialog .influence-person-actions button[type=submit]:not(#influencePaymentMarkPaid):hover:not(:disabled) { background:#e7d5fa!important;color:#7136a8!important;transform:none!important; }
#influencePaymentDialog .influence-person-actions button:focus-visible { outline:2px solid #a15cde;outline-offset:3px; }
#influencePaymentDialog .influence-person-actions button:disabled { opacity:.55;cursor:wait; }
#influencePaymentDialog .payment-confirm-check { display:none!important; }

#launchPackagesHistory { width:min(720px,calc(100vw - 32px));max-height:85dvh;overflow:auto;overscroll-behavior:contain;padding:24px;border:1px solid var(--line);border-radius:18px;background:white;color:var(--ink); }
#launchPackagesHistory header { display:flex;align-items:center;justify-content:space-between;gap:16px; }
#launchPackagesHistory h2 { font-size:21px; } #launchPackagesHistory header button { border:0;border-radius:8px;background:#f4ecfb;color:#8864a3;font-size:26px;cursor:pointer; }
#launchPackagesHistory article { border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:12px; } #launchPackagesHistory h3 { margin:0;font-size:16px; } #launchPackagesHistory p { font-size:12px; } #launchPackagesHistory small { color:var(--muted); }
#launchPackagesHistory .launch-cost-status { font-weight:700; } #launchPackagesHistory .unpaid{color:#ca3554;}#launchPackagesHistory .partial{color:#a46c00;}#launchPackagesHistory .paid{color:#078859;}
html:has(#launchPackagesHistory[open]),body:has(#launchPackagesHistory[open]){overflow:hidden!important;}

/* Blogger ledger: keep controls visible and scroll every row inside the viewport. */
html:has(#influenceView:not([hidden]) #influenceCrmContent:not([hidden])),body:has(#influenceView:not([hidden]) #influenceCrmContent:not([hidden])){overflow:hidden}
body:has(#influenceView:not([hidden]) #influenceCrmContent:not([hidden])) main{overflow:hidden;min-width:0}
#influenceCrmContent:not([hidden]){height:calc(100dvh - 64px);min-height:0;min-width:0;grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}
#influenceCrmContent>.influence-crm-table{display:flex;flex-direction:column;min-height:0;min-width:0;margin:0;overflow:hidden}
#influenceCrmContent>.influence-crm-table>.panel-heading{flex:0 0 auto;padding-top:14px;padding-bottom:14px}
#influenceCrmContent>.influence-crm-table>.table-wrap{flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#influenceCrmContent .influence-crm-table thead th{position:sticky;top:0;z-index:12}
#influenceCrmContent .influence-crm-table thead th:nth-child(-n+5){z-index:15}
#influenceCrmPagination:empty{display:none}
#influenceCrmContent #influenceCrmKpis article{min-height:0;padding:14px 18px}
#influenceCrmContent #influenceCrmKpis strong{font-size:26px}
