:root {
	--bg: #eee;
	--surface: #fff;
	--surface-soft: #f8f8fc;
	--line: #ededf2;
	--line-strong: #dedee9;
	--text: #444;
	--muted: #888;
	--accent: #6a64f6;
	--accent-end: #976acb;
	--green: #269b71;
	--amber: #a66a17;
	--red: #c94855;
	--shadow: 0 30px 60px -12px rgba(50, 50, 93, .05), 0 18px 36px -18px rgba(0, 0, 0, .1), 0 -12px 36px -8px rgba(0, 0, 0, .005);
}

.emd-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.emd-shell h1 { margin: 0; color: var(--accent); font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: 0; }
.emd-shell .eyebrow { letter-spacing: 0; }
.emd-mode-badge { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.emd-stats { width: min(560px, 100%); }
.emd-stats .stat { min-width: 0; border-radius: 8px; }
.emd-stats .stat span, .emd-stats .stat strong { letter-spacing: 0; }
.emd-stats #emdMatchedCount { color: var(--green); }
.emd-stats #emdMissesCount { color: var(--amber); }
.emd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 22px; }
.emd-main { display: grid; align-content: start; gap: 20px; min-width: 0; }
.emd-workspace, .emd-settings { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.emd-tool-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.emd-tool-head h2 { margin: 0; color: #3d3b4d; font-size: 19px; line-height: 1.3; }
.emd-workspace-body { padding: 22px 24px 24px; }
.emd-workspace .content-field > span, .emd-settings .content-field > span { height: auto; min-height: 20px; line-height: 1.5; }
#emdDomains { height: 160px; min-height: 120px; }
.emd-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.emd-status { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.emd-status:empty { display: none; }
.emd-status.is-error { color: var(--red); }
#emdMovies, #emdResults { height: 160px; min-height: 120px; white-space: nowrap; }
#emdResults { line-height: 1.7; }
.emd-purchase-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; }
.emd-purchase-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; }
.emd-workspace textarea[readonly] { background: var(--surface-soft); }
.emd-settings-head { padding: 21px 22px 19px; border-bottom: 1px solid var(--line); }
.emd-settings-head h2 { margin: 0; color: #3d3b4d; font-size: 20px; font-weight: 600; line-height: 1.3; }
.emd-settings-section { padding: 20px 22px; }
.emd-settings-section + .emd-settings-section { border-top: 1px solid var(--line); }
.emd-settings .content-field textarea { font-size: 12px; line-height: 1.6; }
#emdTemplates { height: 152px; min-height: 132px; }
#emdZones { height: 240px; min-height: 112px; }
.emd-variable-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.emd-variable-tools select { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; }
.emd-variable-tools .button { flex: none; }
.emd-policy { padding: 0 22px 20px; }
.emd-policy dl { margin: 0; font-size: 11px; }
.emd-policy dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.emd-policy dt { color: var(--muted); }
.emd-policy dd { margin: 0; font-weight: 600; text-align: right; }
.emd-mock-notice { margin: 10px 0 0; color: var(--amber); font-size: 11px; line-height: 1.6; }
.emd-mock-notice:empty { display: none; }
.emd-settings .partner-issues-panel { border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.emd-settings .partner-issues-panel .panel-heading { padding: 18px 22px 10px; align-items: start; gap: 8px; }
.emd-settings .partner-issues-panel h2 { font-size: 16px; }
.emd-settings .partner-issues-list { padding-left: 22px; padding-right: 22px; }
.emd-queue { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.emd-queue .count-badge { margin-left: auto; }
.emd-queue .jobs-list { padding: 20px 24px; max-height: none; overflow: visible; }
.emd-queue .job { padding: 0; border: 0; background: var(--surface); }
.emd-queue .job-title { font-size: 13px; }
.emd-queue .job-time, .emd-queue .job-log, .emd-queue .job-progress-meta { font-size: 11px; }
.emd-queue .job-progress-meta span:first-child { flex-shrink: 0; }
.emd-queue .job-title, .emd-queue .job-log { min-width: 0; overflow-wrap: anywhere; }
.emd-queue .job-status { flex-shrink: 0; font-size: 10px; letter-spacing: 0; }
.emd-queue .empty-copy { margin: 0; padding: 16px 0; border: 0; text-align: left; }
.emd-registered { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.emd-registered-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.emd-registered textarea { width: 100%; height: 108px; min-height: 80px; font-size: 12px; line-height: 1.6; }
.emd-approval { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 1180px) {
	.emd-main { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
	.emd-tool-head { min-height: 65px; padding: 14px 20px; }
	.emd-workspace-body, .emd-queue .jobs-list { padding: 16px 20px 18px; }
	#emdDomains { height: 140px; }
	.emd-approval { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.emd-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.emd-shell h1 { font-size: 36px; }
	.emd-heading { gap: 20px; }
	.emd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.emd-stats .stat { padding: 12px 14px; }
	.emd-tool-head, .emd-workspace-body { padding-left: 17px; padding-right: 17px; }
	.emd-settings-head, .emd-settings-section { padding-left: 17px; padding-right: 17px; }
	.emd-policy { padding-left: 17px; padding-right: 17px; }
	.emd-queue .jobs-list { padding-left: 17px; padding-right: 17px; }
	.emd-queue .job { padding: 12px; }
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
	margin: 0;
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	color: var(--text);
	background: var(--bg);
}

/* Style inner scroll areas; html/body keep the browser's page scrollbar. */
body * { scrollbar-width: thin; scrollbar-color: #b6b1cf transparent; }
@supports selector(::-webkit-scrollbar) {
	body * { scrollbar-width: auto; scrollbar-color: auto; }
	body *::-webkit-scrollbar { width: 8px; height: 8px; }
	body *::-webkit-scrollbar-track { background: transparent; }
	body *::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #b6b1cf; background-clip: padding-box; }
	body *::-webkit-scrollbar-thumb:hover { background-color: #9690b2; }
	body *::-webkit-scrollbar-corner { background: transparent; }
}

button, input, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.ambient { display: none; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); padding: 50px 40px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h1, .hero h1, .content-hero h1, .emd-heading h1 {
	color: var(--accent);
	background: linear-gradient(90deg, var(--accent), var(--accent-end));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.login-card h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; }
.login-card > .muted { margin: 12px 0 30px; line-height: 1.6; }
.brand-mark {
	width: 48px;
	height: 48px;
	margin-bottom: 26px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--accent), var(--accent-end));
	color: #fff;
	font-weight: 800;
	letter-spacing: -.04em;
}
.brand-mark-small { width: 38px; height: 38px; margin: 0; border-radius: 8px; font-size: 13px; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field span { color: #666; font-size: 12px; font-weight: 600; }
input, textarea {
	width: 100%;
	border: 1px solid #e8e8ee;
	border-radius: 4px;
	outline: none;
	background: #fff;
	color: var(--text);
	transition: border-color .2s, box-shadow .2s;
}
input { height: 42px; padding: 0 16px; }
textarea { min-height: 170px; padding: 12px 16px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #aaa; }
input:hover, textarea:hover, input:focus, textarea:focus { border-color: var(--accent-end); }
.field select { height: 42px; padding: 0 12px; border: 1px solid #e8e8ee; border-radius: 4px; background: #fff; color: var(--text); }
.field select:hover, .field select:focus { border-color: var(--accent-end); }
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.form-error { min-height: 20px; margin: 14px 0 0; color: var(--red); font-size: 13px; }

.button {
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: #fff;
	color: var(--accent);
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.button:hover { border-color: var(--accent-end); background: #f7f4ff; }
.button[aria-pressed="true"] { border-color: var(--accent); background: #f1edfd; color: #514bc9; }
.button:disabled { opacity: .45; pointer-events: none; }
.button-primary {
	border-color: transparent;
	background: linear-gradient(90deg, var(--accent) .44%, var(--accent-end) 113.3%);
	color: #fff;
}
.button-primary:hover {
	border-color: transparent;
	background: linear-gradient(90deg, #4840ff, #973aff);
	box-shadow: 0 7px 18px rgba(106, 100, 246, .2);
}
.button-warn { border-color: #f0dfc6; color: var(--amber); }
.button-warn:hover { border-color: #d4a24c; background: #fff9ef; }
.button-danger { border-color: #e8b6bb; background: #fff7f7; color: var(--red); }
.button-danger:hover { border-color: var(--red); background: #fff0f1; }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-ghost:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--text); }
.button-wide { width: 100%; min-height: 42px; }
.icon-button {
	width: 38px;
	height: 38px;
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: #fff;
	color: var(--accent);
	cursor: pointer;
	font-size: 19px;
}
.icon-button:hover { border-color: var(--accent-end); background: #f7f4ff; }

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	height: 68px;
	padding: 0 max(24px, calc((100vw - 1500px) / 2));
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(12px);
}
.brand, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 14px; }
.brand span, .updated-at { color: var(--muted); font-size: 11px; }

.shell { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 70px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.hero h1 { margin: 0; font-size: 48px; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.hero .muted { margin: 14px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; }
.stat { min-width: 120px; padding: 14px 16px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.stat span, .stat strong { display: block; }
.stat span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { margin-top: 6px; color: var(--accent); font-size: 24px; letter-spacing: -.04em; }

.control-strip {
	position: sticky;
	top: 80px;
	z-index: 15;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding: 12px;
	border-radius: 10px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.control-start { display: flex; align-items: center; gap: 16px; }
.select-all { display: flex; align-items: center; gap: 9px; white-space: nowrap; cursor: pointer; font-size: 12px; font-weight: 600; }
.select-all .domain-check { flex: none; }
.view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.view-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.view-control select, .bulk-actions select { min-width: 125px; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; outline: none; background: #fff; color: var(--text); cursor: pointer; font-size: 12px; }
.view-control select:hover, .bulk-actions select:hover { border-color: var(--accent-end); }
.view-control select:focus-visible, .bulk-actions select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-left: auto; }
.bulk-actions select { min-width: 230px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.users-list { display: grid; gap: 14px; }
.all-traffic-summary { display: grid; gap: 20px; min-width: 0; padding: 20px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.all-traffic-summary .eyebrow { margin-bottom: 5px; }
.all-traffic-summary h2 { margin: 0; color: var(--text); font-size: 18px; }
.all-traffic-description { max-width: 460px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.all-summary-metrics { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; min-width: 0; }
.summary-metric { min-width: 0; }
.summary-metric-title { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.all-traffic-chart { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; }
.sidebar { display: grid; gap: 14px; min-width: 0; }
.loading-card, .user-card, .jobs-panel, .unmatched-panel, .partner-issues-panel, .partner-sync-panel, .unmonetized-panel { background: var(--surface); box-shadow: var(--shadow); }
.loading-card { padding: 40px; border-radius: 10px; color: var(--muted); text-align: center; }
.spinner { display: inline-block; width: 15px; height: 15px; margin-right: 8px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.user-card { container: user-card / inline-size; overflow: hidden; border-radius: 10px; }
.user-card.has-error { box-shadow: inset 0 0 0 1px #e8b6bb, var(--shadow); }
.user-error { padding: 0 20px 16px; }
.align-right { text-align: right; }
.user-head { padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.user-head:hover { background: #faf9ff; }
.user-card.is-expanded .user-head { border-bottom: 1px solid var(--line); }
.user-identity { display: flex; flex: 1 1 230px; align-items: center; gap: 13px; min-width: 0; }
.user-check { flex: none; }
.user-toggle { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.user-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.user-toggle:hover .user-name { color: var(--accent); }
.user-details { min-width: 0; flex: 1; }
.user-name-line { display: flex; align-items: center; gap: 6px; }
.user-copy { width: 23px; height: 23px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #aaa6b8; cursor: pointer; }
.user-copy:hover { background: #f1effa; color: var(--accent); }
.user-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-copy svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.user-traffic { flex: 0 1 580px; width: 580px; min-width: 0; max-width: 100%; margin-left: auto; display: flex; align-items: flex-start; justify-content: flex-end; gap: 20px; }
.user-chevron { flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-box: view-box; transform-origin: 50% 50%; transition: transform .15s; }
.user-toggle[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }
.user-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #f1edfd; color: var(--accent); font-weight: 800; }
.user-name { display: block; font-size: 16px; color: #555; }
.user-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.domain-table-head, .domain-row { display: grid; grid-template-columns: 24px minmax(160px, 1fr) minmax(0, 580px); gap: 12px; align-items: center; }
.domain-table-head { padding: 10px 20px; color: #999; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.domain-row { min-height: 66px; padding: 10px 20px; border-top: 1px solid var(--line); }
.domain-row:hover { background: #faf9ff; }
.domain-name-wrap { min-width: 0; }
.domain-name { overflow: hidden; display: block; color: var(--text); font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.domain-flags { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #bbb; box-shadow: 0 0 0 3px #f1f1f1; }
.status-dot.good { background: var(--green); box-shadow: 0 0 0 3px #e5f4ec; }
.status-dot.bad { background: var(--red); box-shadow: 0 0 0 3px #fae9ea; }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px #fbf0dc; }
.partner-badge { padding: 2px 5px; border-radius: 4px; font-size: 9px; white-space: nowrap; }
.partner-badge.added { background: #e5f4ec; color: var(--green); }
.partner-badge.missing { background: #fff3dd; color: var(--amber); }
.partner-badge.unknown { background: #f1f1f4; color: var(--muted); }

.domain-check { appearance: none; width: 17px; height: 17px; display: grid; place-content: center; padding: 0; border: 1px solid #c7c3e8; border-radius: 3px; background: #fff; cursor: pointer; }
.domain-check::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--accent); transform: scale(0); transition: transform .12s; }
.domain-check:checked { border-color: var(--accent); }
.domain-check:checked::before { transform: scale(1); }
.domain-check:indeterminate { border-color: var(--accent); background: var(--accent); }
.domain-check:indeterminate::before { width: 9px; height: 2px; background: #fff; transform: scale(1); }
.domain-check:disabled { opacity: .45; cursor: not-allowed; }

.traffic-cell { width: 280px; max-width: 100%; min-width: 0; display: flex; justify-content: flex-end; }
.traffic-chart { width: 280px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.metrics-stack { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 14px 20px; }
.metrics-stack > .traffic-cell { flex: 0 0 280px; max-width: 100%; }
.metric-income { width: 280px; min-width: 0; max-width: 100%; flex: 0 0 280px; display: flex; justify-content: flex-end; }
#revenueStatus.is-error { color: var(--red); }
.traffic-total { height: 12px; min-width: 0; display: flex; align-items: baseline; gap: 5px; flex: none; line-height: 12px; }
.traffic-total strong { font-size: 10px; font-weight: 600; }
.traffic-total span { color: var(--muted); font-size: 9px; }
.sparkline { display: block; width: 280px; max-width: 100%; min-width: 0; height: 40px; flex: none; overflow: visible; }
.traffic-single { color: var(--muted); font-size: 10px; white-space: nowrap; }
.spark-area { fill: rgba(106, 100, 246, .08); }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.traffic-point { fill: #fff; stroke: var(--accent); stroke-width: 1.5; pointer-events: none; vector-effect: non-scaling-stroke; }
.traffic-point.active { r: 3px; fill: var(--accent); stroke-width: 2; }
.user-traffic-comparison { width: 280px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.user-traffic-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: 12px; }
.user-traffic-legend-item { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 9px; line-height: 12px; }
.user-traffic-legend-item span { display: flex; align-items: center; gap: 3px; color: var(--muted); white-space: nowrap; }
.user-traffic-legend-item i { width: 5px; height: 5px; border-radius: 50%; background: var(--traffic-color); }
.user-traffic-legend-item strong { overflow: hidden; color: var(--text); font-size: 10px; font-weight: 600; text-overflow: ellipsis; }
.user-traffic-yandex { --traffic-color: #6a64f6; color: var(--traffic-color); }
.user-traffic-local { --traffic-color: #269b71; color: var(--traffic-color); }
.user-traffic-svg { display: block; width: 280px; max-width: 100%; height: 40px; overflow: visible; flex: none; }
.user-traffic-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.user-traffic-point { fill: #fff; stroke: currentColor; stroke-width: 1.5; pointer-events: none; vector-effect: non-scaling-stroke; }
.user-traffic-point.active { r: 3px; fill: currentColor; stroke-width: 2; }
.user-traffic-hit { fill: transparent; cursor: crosshair; }
.local-daily-status { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.local-daily-status.is-error { color: var(--red); }
.sparkline-hit { fill: transparent; cursor: crosshair; }
.traffic-empty { display: flex; align-items: center; min-height: 40px; color: #aaa; font-size: 10px; }
.chart-tooltip-partner { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.chart-tooltip-partner strong { font-weight: 600; }

.jobs-panel, .unmatched-panel, .partner-issues-panel, .partner-sync-panel, .unmonetized-panel { overflow: hidden; border-radius: 10px; }
.unmonetized-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; max-width: 600px; padding: 8px 18px 18px; }
.unmonetized-item { display: grid; gap: 3px; padding: 12px 0; }
.unmonetized-item + .unmonetized-item { padding-left: 12px; border-left: 1px solid var(--line); }
.unmonetized-item span { color: var(--muted); font-size: 11px; }
.unmonetized-item strong { color: var(--accent); font-size: 22px; }
.unmonetized-item small { color: var(--muted); font-size: 11px; }
.unmonetized-note { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.partner-sync-body { display: grid; gap: 8px; padding: 14px 18px 18px; }
.partner-sync-body p { margin: 0 0 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.partner-sync-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.partner-sync-body .button { width: 100%; }
.panel-heading { padding: 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; color: #555; font-size: 20px; font-weight: 600; }
.panel-tools { display: flex; align-items: center; gap: 8px; }
.panel-tools .icon-button { width: 27px; height: 27px; font-size: 17px; }
.count-badge { min-width: 25px; height: 25px; padding: 0 8px; display: grid; place-items: center; border-radius: 5px; background: #f1edfd; color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.unmatched-list { max-height: 260px; overflow: auto; margin: 0; padding: 10px 18px 16px 32px; color: var(--red); font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.unmatched-list li + li { margin-top: 4px; }
.partner-issues-list { max-height: 280px; overflow: auto; margin: 0; padding: 12px 18px 18px; color: var(--text); font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.jobs-list { max-height: calc(100vh - 235px); overflow: auto; padding: 10px; }
.job { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.job + .job { margin-top: 8px; }
.job-top { display: flex; justify-content: space-between; gap: 10px; }
.job-title { font-size: 12px; font-weight: 700; }
.job-status { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.job-status.running, .job-status.queued, .job-status.stopping, .job-status.warning { color: var(--amber); }
.job-status.completed { color: var(--green); }
.job-status.failed { color: var(--red); }
.job-status.cancelled { color: var(--muted); }
.job-time, .job-log { color: var(--muted); font-size: 10px; }
.job-time { margin-top: 4px; }
.job-log { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--line); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.job-error { margin: 8px 0 0; color: var(--red); font-size: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.job-failure { margin-top: 10px; padding: 8px; border-left: 2px solid var(--red); background: var(--surface); font-size: 10px; overflow-wrap: anywhere; }
.job-failure-stage, .job-rollback-status { margin-top: 5px; color: var(--muted); }
.job-copy { margin-top: 8px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 10px; cursor: pointer; }
.job-users { display: grid; gap: 8px; margin-top: 10px; }
.job-user { padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 10px; }
.job-user-heading { display: flex; justify-content: space-between; gap: 8px; }
.job-user-stage { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.job-rebuild-meta { margin-top: 8px; }
.job-user .job-progress { margin-top: 5px; }
.job-rebuild-time { margin-top: 5px; color: var(--muted); }
.job-user-warning { margin-top: 5px; color: var(--amber); overflow-wrap: anywhere; }
.job-journal { margin-top: 10px; color: var(--muted); font-size: 10px; }
.job-journal summary { cursor: pointer; }
.job-journal-output { max-height: 240px; overflow: auto; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 10px/1.5 ui-monospace, monospace; }
.job-journal-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.job-journal-line + .job-journal-line { margin-top: 5px; }
.job-journal-line time { color: var(--muted); }
.job-journal-line.is-error { color: var(--red); }
.job-progress-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 10px; }
.job-progress-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-progress { display: block; width: 100%; height: 6px; margin-top: 5px; overflow: hidden; appearance: none; border: 0; border-radius: 99px; background: var(--line-strong); }
.job-progress::-webkit-progress-bar { border-radius: 99px; background: var(--line-strong); }
.job-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-end)); }
.job-progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-end)); }
.job-stop { margin-top: 10px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--red); font-size: 10px; cursor: pointer; }
.job-stop:hover:not(:disabled) { border-color: var(--red); }
.job-stop:disabled { opacity: .6; cursor: default; }
.empty-copy { padding: 18px 8px; color: var(--muted); font-size: 12px; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(35, 28, 56, .42); backdrop-filter: blur(6px); }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 10px; background: var(--surface); box-shadow: 0 30px 70px rgba(50, 50, 93, .22); }
.modal-head { padding: 22px 24px 18px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; color: #555; font-size: 21px; }
.modal-body { padding: 22px 24px; }
.modal-actions { padding: 16px 24px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.traffic-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#domainSearchInput { height: 110px; min-height: 80px; }
.modal:has(#domainSearchInput) .modal-actions { position: sticky; bottom: 0; z-index: 1; background: var(--surface); }
.modal-note summary { cursor: pointer; }
.dashboard-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: -6px 0 14px; color: var(--muted); font-size: 11px; }
.dashboard-status .is-error { color: var(--red); }
.domain-preview { max-height: 150px; overflow: auto; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-soft); color: #666; font: 11px/1.6 ui-monospace, monospace; }
.modal-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ip-change-option { display: flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; }
.ip-change-option input { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--accent); }

.chart-tooltip { position: fixed; z-index: 200; pointer-events: none; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; box-shadow: var(--shadow); color: var(--text); font-size: 11px; }
.chart-tooltip strong { color: var(--accent); }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { max-width: 380px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .2s ease-out; }
.toast.error { border-color: #e8b6bb; color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1240px) {
	.content-grid { grid-template-columns: 1fr; }
	.jobs-list { max-height: 420px; }
}

@media (max-width: 1180px) {
	.hero { align-items: start; flex-direction: column; }
	.stats-grid { width: 100%; }
}

@media (max-width: 900px) {
	.domain-table-head { display: none; }
	.domain-row { grid-template-columns: 28px minmax(0, 1fr); padding: 14px; }
	.domain-row > .metrics-stack { grid-column: 2; }
}

@media (max-width: 820px) {
	.shell { width: min(100% - 24px, 1500px); padding-top: 28px; }
	.topbar { padding: 0 12px; }
	.updated-at { display: none; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.control-strip { position: static; align-items: stretch; flex-direction: column; }
	.control-start { justify-content: space-between; flex-wrap: wrap; }
	.view-controls { justify-content: space-between; }
	.view-control { flex: 1 1 150px; }
	.view-control select { flex: 1; min-width: 0; }
	.bulk-actions { justify-content: stretch; margin-left: 0; }
	.bulk-actions select { flex: 1 1 220px; min-width: 0; }
	.bulk-actions .button { flex: 1 1 145px; }
	.user-head { align-items: flex-start; flex-direction: column; }
	.user-identity { flex: 0 1 auto; width: 100%; }
	.user-traffic { flex: 0 1 auto; min-width: 0; width: 100%; justify-content: flex-start; padding-left: 30px; }
	.all-summary-metrics { grid-template-columns: 1fr; }
}

@container user-card (max-width: 960px) {
	.domain-table-head { display: none; }
	.domain-row { grid-template-columns: 24px minmax(0, 1fr); }
	.domain-row > .metrics-stack { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
	.traffic-range { grid-template-columns: 1fr; }
}

/* Content queue prototype */
.primary-nav { display: flex; align-items: center; gap: 4px; margin: auto auto auto 40px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.primary-nav-link { min-height: 34px; padding: 0 16px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.primary-nav-link:hover { color: var(--accent); }
.primary-nav a.primary-nav-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary-nav-link.is-active { background: #fff; color: var(--accent); box-shadow: 0 2px 7px rgba(46, 37, 89, .08); }
.primary-nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.content-shell { max-width: 1500px; }
.content-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.content-hero h1 { margin: 0; font-size: 48px; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.content-hero .muted { max-width: 700px; margin: 12px 0 0; line-height: 1.5; }
.content-demo-badge { flex: none; padding: 9px 13px; border: 1px solid #e7dcbc; border-radius: 99px; background: #fff8e8; color: #926817; font-size: 11px; font-weight: 700; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); align-items: start; gap: 22px; }
.content-form-stack { display: grid; gap: 18px; min-width: 0; }
.content-card, .content-preview { overflow: hidden; border: 1px solid #e7e6ee; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.content-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 26px 19px; border-bottom: 1px solid var(--line); }
.content-step { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #eceafd; color: var(--accent); font-size: 12px; font-weight: 800; }
.content-card-head h2 { margin: 1px 0 5px; color: #3d3b4d; font-size: 19px; line-height: 1.2; }
.content-card-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.content-card-body { padding: 22px 26px 25px; }
.content-field { display: flex; gap: 9px; min-width: 0; flex-direction: column; justify-content: stretch; align-items: stretch; }
.content-field > span { color: #4f4d60; font-size: 12px; font-weight: 700; height: 20px; }
.content-field textarea, .content-field select, .content-field input { width: 100%; min-width: 0; border: 1px solid #dcdbe7; border-radius: 8px; background: #fff; color: #3d3b4d; font-family: inherit; font-size: 13px; line-height: 1.5; }
.content-field textarea { min-height: 82px; padding: 13px 14px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.content-field select, .content-field input { height: 42px; padding: 0 12px; }
.content-field textarea:hover, .content-field select:hover, .content-field input:hover { border-color: #bbb7dc; }
.content-field textarea:focus, .content-field select:focus, .content-field input:focus { border-color: var(--accent); outline: 3px solid rgba(106, 100, 246, .13); }
.content-field textarea::placeholder { color: #aaa8b6; }
.content-field small, .content-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.content-input-preview { margin-top: 11px; padding: 11px 13px; border: 1px dashed #d7d4e4; border-radius: 8px; background: #faf9fd; color: var(--muted); font-size: 11px; }
.content-input-preview.has-value { border-color: #c7bff4; background: #f7f5ff; color: #6659ac; }
.content-lookup-status { margin-top: 10px; color: #777387; font-size: 11px; line-height: 1.45; }
.content-help { margin-top: 12px; }
.content-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.content-choice { display: flex; align-items: flex-start; gap: 11px; min-height: 82px; padding: 15px 14px; border: 1px solid #dedde7; border-radius: 9px; cursor: pointer; }
.content-choice:has(input:checked) { border-color: var(--accent); background: #f8f7ff; box-shadow: inset 0 0 0 1px var(--accent); }
.content-choice input { width: auto; height: auto; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.content-choice strong, .content-choice small { display: block; }
.content-choice strong { color: #454354; font-size: 12px; }
.content-choice small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.content-row { margin-top: 19px; }
.content-home-row { display: grid; gap: 11px; }
.content-home-row > strong { color: #4f4d60; font-size: 12px; }
.content-home-options { display: flex; flex-wrap: wrap; gap: 9px; }
.content-home-options label { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #e5e4eb; border-radius: 7px; color: #5d5b68; font-size: 11px; cursor: pointer; }
.content-home-options label:has(input:checked) { border-color: #beb9f6; background: #f8f7ff; color: #5148a8; }
.content-home-options input { width: auto; height: auto; margin: 0; padding: 0; accent-color: var(--accent); }
.content-publish-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 420px; margin-top: 17px; }
.content-publish-range.is-disabled { opacity: .5; }
.content-publish-error { margin: 10px 0 0; color: #b54747; font-size: 11px; }
.content-subsection { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.content-subsection-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 13px; }
.content-subsection-heading strong { font-size: 12px; }
.content-subsection-heading span { color: var(--muted); font-size: 10px; }
.content-depth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.content-depth-grid label { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid #e5e4eb; border-radius: 6px; color: #5d5b68; font-size: 11px; cursor: pointer; }
.content-depth-grid label:has(input:checked) { border-color: #beb9f6; background: #f8f7ff; color: #5148a8; }
.content-depth-grid input { width: auto; height: auto; margin: 0; padding: 0; accent-color: var(--accent); }
.content-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.content-meta-grid .content-field > span { min-height: 32px; display: flex; align-items: flex-end; }
.content-meta-grid .content-field textarea { height: 112px; min-height: 112px; }
.content-template-groups { display: grid; gap: 14px; }
.content-template-card { padding: 15px; border: 1px solid #e7e6ee; border-radius: 8px; background: #fcfbff; }
.content-template-card h3 { margin: 0 0 5px; color: #454354; font-size: 13px; }
.content-template-card > p { margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.content-template-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-template-fields textarea { min-height: 90px; height: 100%; }
.content-players-layout.has-franchise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.content-players-list { display: grid; gap: 7px; }
.content-player { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 6px 9px 6px 8px; border: 1px solid #e7e6ee; border-radius: 7px; background: #fff; }
.content-player.dragging { border-color: var(--accent); background: #f5f3ff; opacity: .55; }
.content-player-main { display: flex; align-items: center; gap: 9px; }
.content-player-grip { width: 22px; height: 27px; display: grid; place-items: center; color: #aaa6bc; cursor: grab; font-size: 16px; letter-spacing: -4px; user-select: none; }
.content-player-grip:active { cursor: grabbing; }
.content-player-grip:hover { color: var(--accent); }
.content-player.is-disabled { background: #fafafa; opacity: .62; }
.content-player label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.content-player input { width: auto; height: auto; padding: 0; accent-color: var(--accent); }
.content-player strong { font-size: 12px; }
.content-player-controls { display: flex; gap: 3px; opacity: .45; }
.content-player:hover .content-player-controls, .content-player:focus-within .content-player-controls { opacity: 1; }
.content-player-move { width: 27px; height: 27px; border: 1px solid #e3e1ec; border-radius: 5px; background: #fff; color: var(--accent); font-size: 15px; cursor: pointer; }
.content-player-move:hover:not(:disabled) { background: #f4f2ff; }
.content-player-move:disabled { color: #c5c3ce; cursor: default; }
.content-players-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.content-players-footer .content-help { margin-top: 0; }
.content-players-footer .button { flex: none; font-size: 11px; }
.content-extra-players { min-width: 0; }
.content-extra-players > strong { display: block; margin-bottom: 12px; color: #4f4d60; font-size: 12px; }
.content-extra-players-list { display: grid; gap: 14px; }
.content-extra-players-list textarea { min-height: 120px; }
.content-extra-players > small { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.content-preview-head { padding: 23px 25px 18px; }
.content-preview-head h2 { margin: 0; color: #3d3b4d; font-size: 24px; letter-spacing: -.025em; }
.content-preview-head p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.content-preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content-preview-stats div { padding: 14px 10px 15px; text-align: center; }
.content-preview-stats div + div { border-left: 1px solid var(--line); }
.content-preview-stats span, .content-preview-stats strong { display: block; }
.content-preview-stats span { min-height: 25px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.content-preview-stats strong { margin-top: 3px; color: var(--accent); font-size: 23px; line-height: 1; }
.content-preview-section { padding: 18px 25px 0; }
.content-preview-label { color: #9995aa; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.content-tree-help { margin-top: 8px; }
.content-tree { display: grid; gap: 6px; margin-top: 12px; }
.content-tree-row { display: flex; align-items: baseline; gap: 9px; padding: 9px 11px; border-radius: 6px; background: #f8f7fb; color: #514f5e; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.content-tree-row.is-child { margin-left: 18px; background: #f4f2ff; }
.content-tree-row.is-existing { border: 1px dashed #d8d4e9; background: #fff; color: var(--muted); }
.content-tree-mark { color: var(--accent); font-weight: 700; }
.content-tree-check { width: 15px; height: 15px; flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }
.content-tree-row:has(.content-tree-check) { align-items: center; }
.content-tree-row:has(.content-tree-check):hover { background: #f0edff; }
.content-tree-season { margin-left: 18px; border: 1px solid #e9e7f4; border-radius: 6px; background: #faf9ff; }
.content-tree-season-head { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 11px; color: #56506f; font-size: 11px; font-weight: 600; }
.content-tree-season-label { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
.content-tree-season-label > span { overflow-wrap: anywhere; }
.content-tree-season-toggle { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 0; border: 0; background: transparent; color: #56506f; font: inherit; cursor: pointer; }
.content-tree-season-toggle::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.content-tree-season-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.content-tree-season-toggle:hover, .content-tree-season-toggle:focus-visible { color: var(--accent); }
.content-tree-season-body { padding-top: 2px; }
.content-tree-season .content-tree-row { margin: 0 7px 6px 18px; background: #fff; }
.content-empty { margin: 0; padding: 15px; border: 1px dashed #dddbe6; border-radius: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.content-settings-preview { display: grid; gap: 0; margin-top: 9px; }
.content-settings-preview > div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.content-settings-preview span { flex: none; color: var(--muted); }
.content-settings-preview strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.content-preview-notice { margin: 20px 25px 0; padding: 12px; border-radius: 7px; background: #f6f5fb; color: #777387; font-size: 10px; line-height: 1.5; }
.content-preview-footer { display: grid; gap: 9px; margin-top: 21px; padding: 18px 25px 22px; border-top: 1px solid var(--line); text-align: center; }
.content-preview-footer .button:disabled { opacity: .52; cursor: not-allowed; }
.content-preview-footer > span { color: var(--muted); font-size: 10px; }

@media (max-width: 1080px) {
	.content-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
	.topbar { gap: 8px; }
	.brand span { display: none; }
	.primary-nav-link { padding: 0 11px; }
	.content-hero { align-items: flex-start; flex-direction: column; }
	.content-card-head, .content-card-body { padding-left: 17px; padding-right: 17px; }
	.content-meta-grid { grid-template-columns: 1fr; }
	.content-players-layout.has-franchise { grid-template-columns: 1fr; }
	.content-players-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
	.topbar { height: auto; min-height: 68px; flex-wrap: wrap; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
	.primary-nav { order: 3; width: 100%; justify-content: center; }
	.primary-nav { margin: 8px 0 0; }
	.primary-nav-link { flex: 1; }
	.content-mode-grid, .content-depth-grid, .content-template-fields, .content-publish-range { grid-template-columns: 1fr; }
	.hero h1, .content-hero h1 { font-size: 36px; }
	.content-preview-stats strong { font-size: 20px; }
}
