/* MS Analytics v1.9.3 — unified V3 layout stylesheet.
   No legacy overrides; all screen sizes share the same typography scale. */
:root {
  color-scheme: dark;
  --bg: #0b0c0e; --side: #101114; --surface: #151719; --raised: #1b1c1e;
  --surface-hover: #1f2022; --line: #303137; --line-soft: #28292d;
  --text: #f6f3ee; --muted: #c7c3bc; --subtle: #a4a09a;
  --gold: #d6b77e; --gold-soft: #c1a16d; --green: #91d5a7;
  --radius: 13px;
  font: 16px/1.48 Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { background: var(--bg); color: var(--text); min-height: 100vh; margin: 0; }
body::before { content:""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 95% 0%, rgba(153,112,53,.048), transparent 43%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* App shell */
.shell { min-height: 100vh; display:grid; grid-template-columns: 205px minmax(0, 1fr); }
.sidebar { background: var(--side); border-right: 1px solid var(--line-soft);
  display:flex; flex-direction:column; min-height:100vh; padding: 23px 12px 15px;
  position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:10px; padding: 0 7px 33px; }
.brand-logo { width:43px; height:43px; object-fit: contain; flex-shrink:0; }
.brand-logo.large { width:78px; height:78px; margin-bottom:15px; }
.brand-text { font-size: 14px; font-weight:780; letter-spacing:.025em; white-space:nowrap; }
.brand-text b { color:var(--gold); }
.brand-text small { display:block; font-size:9px; color:var(--subtle); letter-spacing:.15em; font-weight:500; margin-top:3px; }
.sidebar-caption { font-size:10px; color:var(--subtle); letter-spacing:.15em; padding:0 12px 10px; }
.nav { display:flex; align-items:center; gap:12px; min-height:44px; padding:0 13px;
  border-radius:8px; margin:2px 0; border:1px solid transparent;
  font-size:14px; font-weight:540; color:var(--muted); }
.nav:hover { background:#222225; color:#fff; }
.nav.active { background:#2b261f; border-color:#50432f; color:#f2ddb9; font-weight:680; }
.nav-icon { width:21px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.nav-icon img { width:18px; height:18px; display:block; }
.sidebar-bottom { margin-top:auto; padding:16px 8px 3px; border-top:1px solid var(--line-soft);
  color:var(--subtle); display:flex; align-items:center; gap:8px; font-size:10px; }
.sidebar-bottom small { margin-left:auto; }
.pulse-dot { background:var(--green); display:inline-block; flex-shrink:0; width:7px; height:7px;
  border-radius:50%; box-shadow:0 0 0 3px #91d5a713; }
.content-shell { display:flex; flex-direction:column; min-width:0; }
/* Workspace header stays visible while the document scrolls (no content overlay). */
.topbar { position:sticky; top:0; z-index:19; min-height:59px;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 clamp(22px, 2.5vw, 42px);
  background:rgba(16,17,19,.97); border-bottom:1px solid var(--line-soft);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  box-shadow:0 7px 23px rgba(0,0,0,.22); gap:12px; }
.breadcrumbs { color:var(--subtle); font-size:13px; }
.breadcrumbs span { color:#706d69; margin:0 11px; }
.breadcrumbs strong { color:var(--text); font-weight:650; }
.top-actions { display:flex; align-items:center; gap:20px; }
.connected { display:flex; align-items:center; gap:8px; color:var(--green); font-size:12px; }
.offline { color:#e79f9f; }
.tiny-btn { font-size:12px; color:#ebd7b3; background:#1d1d20; border:1px solid #514335;
  padding:9px 12px; border-radius:8px; }
/* Page-level type and filters */
main { width:100%; max-width:1630px; margin:0 auto; flex:1;
  padding: 27px clamp(22px, 2.5vw, 42px) 25px; }
.page-heading { display:flex; justify-content:space-between; align-items:end; gap:22px; margin-bottom:18px; }
.eyebrow, .panel-eyebrow { font-size:10px; letter-spacing:.16em; color:var(--gold-soft); font-weight:750; }
h1 { font-size:clamp(32px, 2.7vw, 42px); line-height:1.08; letter-spacing:-.038em;
  margin:6px 0 8px; font-weight:760; }
h2 { font-size:19px; letter-spacing:-.02em; line-height:1.25; margin:5px 0 0; font-weight:710; }
h3 { margin:0; font-size:14px; font-weight:690; letter-spacing:-.01em; }
p { margin:0; line-height:1.54; font-size:14px; color:var(--muted); }
.page-heading p { max-width:660px; }
.gold { color:var(--gold); }
select,input { color:var(--text); background:#1d1e21; border:1px solid #454549; border-radius:9px;
  min-height:42px; padding:9px 11px; min-width:0; font-size:14px; }
select:focus,input:focus { border-color:var(--gold); }
select { min-width:128px; max-width:230px; }
select option { background:#1d1e21; }
.filters, .custom-range, .pages-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:8px; }
.custom-range label { display:flex; flex-direction:column; color:var(--muted); gap:4px; font-size:11px; }
.custom-range input { max-width:148px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px;
  padding:9px 15px; border:1px solid #6b5538; border-radius:9px; font-size:13px;
  font-weight:700; white-space:nowrap; }
.btn.primary { background:var(--gold); color:#17120d; }
.btn.secondary { color:#f1d6ad; background:#31281e; }
.btn:hover,.tiny-btn:hover { filter:brightness(1.15); }
/* Only four important KPIs. Small supplemental numbers stay in the trend heading. */
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:13px; }
.metric, .panel { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
/* KPI: centered value is the focal point, labels and context follow a fixed rhythm. */
.metric { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  position:relative; padding:14px 18px 16px; min-height:156px; }
.metric:first-child { background:linear-gradient(120deg,#211e19,#171819 65%); border-color:#52412c; }
.metric-symbol { width:22px; height:22px; object-fit:contain; margin-bottom:7px; opacity:.92; }
.metric-title { display:flex; gap:7px; justify-content:center; align-items:center;
  font-size:14px; color:var(--muted); line-height:1.25; font-weight:600; }
.metric-title span { display:none; }
.metric-value { font-size:clamp(40px, 3vw, 54px); font-weight:780; line-height:1;
  letter-spacing:-.055em; margin:9px 0 8px; font-variant-numeric:tabular-nums; }
.metric-hint { font-size:12px; color:var(--subtle); line-height:1.36; }
.panel { padding:19px 20px; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.soft-label { color:var(--subtle); background:#242324; border:1px solid #3f3b37;
  padding:6px 9px; border-radius:7px; font-size:11px; white-space:nowrap; }
/* Trend chart: deliberately compact, but legible. */
.trend { margin-bottom:20px; }
.trend-heading { align-items:center; margin-bottom:8px; }
.trend-aside { display:flex; align-items:center; gap:10px; }
.mini-stat { display:flex; align-items:center; gap:9px; border-right:1px solid var(--line);
  padding-right:12px; min-height:29px; }
.mini-stat-label { color:var(--subtle); font-size:12px; display:flex; align-items:center; gap:7px; }
.mini-stat strong { color:var(--text); font-size:18px; font-variant-numeric:tabular-nums; }
.chart-wrapper { height:169px; position:relative; }
.chart { display:block; width:100%; height:100%; overflow:visible; }
.chart text { font-family:inherit; }
.chart-key { font-size:12px; color:var(--muted); padding-top:7px; display:flex; align-items:center; gap:8px; }
.chart-key i { width:17px; height:2px; background:var(--gold); }
.chart-key span { margin-left:auto; color:var(--subtle); }
.empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.empty,.empty-row { color:var(--subtle); font-size:13px; padding:13px 5px; text-align:center; }
/* Two purpose-built detail panels, not six empty cards. */
.section-lead { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 1px 13px; }
.section-lead h2 { font-size:22px; margin:3px 0 0; }
.section-caption { color:var(--subtle); font-size:13px; }
.intelligence-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; align-items:start; }
.intelligence-panel { padding:0; overflow:hidden; }
.intelligence-heading { display:flex; align-items:center; gap:13px; padding:18px 20px 15px;
  border-bottom:1px solid var(--line-soft); background:linear-gradient(90deg,rgba(194,145,66,.057),transparent); }
.intelligence-heading h2 { font-size:20px; }
.intelligence-mark { display:grid; place-items:center; height:39px; width:39px; border-radius:10px;
  border:1px solid #55442d; background:#29231b; color:var(--gold); }
.intelligence-mark img { width:19px; height:19px; display:block; }
.intelligence-section { padding:15px 20px 16px; border-bottom:1px solid var(--line-soft); }
.intelligence-section:last-child { border-bottom:0; }
.intelligence-section h3 { color:#f0e8db; margin-bottom:11px; }
/* Split the longer audience categories into two tracks instead of creating tall cards.
   Every item remains visible; no inner scrollbar. */
.intelligence-panel[aria-label="Audience profile"] .intelligence-section:nth-child(n+3) .rank-list {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 17px;
}
.rank-list { min-height:0; }
.rank { margin:0 0 11px; }
.rank:last-child { margin-bottom:0; }
.rank-line { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:5px; }
/* Semantic identity of each value is a first-class reading aid, not decoration. */
.rank-label { min-width:0; flex:1; color:#eae5dd; font-size:14px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; direction:ltr; }
.semantic-label { display:inline-flex; gap:9px; align-items:center; min-width:0; vertical-align:middle; max-width:100%; }
.semantic-text { display:inline-block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.semantic-icon { display:block; width:18px; height:18px; flex:none; object-fit:contain; }
.flag-icon { display:block; flex:none; width:23px; height:17px; object-fit:cover;
  border-radius:2px; border:1px solid #ffffff25; background:#252526; }
.flag-fallback { opacity:.66; width:18px; height:18px; }

.rank-count { color:#e8d2ad; font-size:13px; font-variant-numeric:tabular-nums; }
.rank-track { height:4px; background:#3a3736; border-radius:5px; overflow:hidden; }
.rank-fill { height:100%; border-radius:5px; background:linear-gradient(90deg,#9c784c,#dfbd80); }
/* Smaller world map with the entire countries list adjacent and fully visible */
.geography-section { margin-top:13px; }
.geography-panel { padding:19px 20px 17px; }
.geo-content { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:start; gap:20px; }
.geo-map-block { min-width:0; }
.country-map { background:#101113; border:1px solid var(--line-soft); border-radius:9px; overflow:hidden; }
.country-map svg { width:100%; height:auto; display:block; color:var(--gold-soft); }
.country-map circle { cursor:pointer; }
.country-map circle:hover, .country-map circle:focus { fill:#f4d493; stroke:#fff; stroke-width:2; }
.geo-list-block { min-width:0; }
.geo-list-block .rank-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 17px; }
.geo-list-block .rank { margin-bottom:8px; }
.helper { color:var(--subtle); font-size:12px; line-height:1.5; margin:9px 0; }
.events-section { margin-top:13px; }
.events-section:has(.events-panel[hidden]) { display:none; }
.events-panel .rank-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.bottom-toolbar { display:flex; justify-content:space-between; align-items:center; gap:15px;
  margin-top:14px; color:var(--subtle); font-size:12px; }
/* Unified workspace modules — consistent typography, iconography, information density. */
#page-pages>.panel,#page-sites>.panel,#page-settings>.panel,#page-setup>.panel,#page-visits>.panel { max-width:100%; }
.workspace-panel { padding:0; overflow:hidden; }
.module-heading { display:flex; align-items:center; gap:15px; padding:22px 23px;
  border-bottom:1px solid var(--line-soft); background:linear-gradient(100deg,rgba(194,145,66,.052),transparent 70%); }
.module-mark { display:grid; place-items:center; width:43px; height:43px; flex:none;
  background:#28231c; border:1px solid #55452f; border-radius:12px; }
.module-mark img { height:22px; width:22px; display:block; }
.module-heading-copy { min-width:0; flex:1; }
.module-heading-copy h2 { font-size:20px; margin-top:4px; }
.module-heading-copy p { font-size:13px; margin-top:4px; max-width:710px; }
.module-count { display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:102px; padding:3px 14px 3px 22px; border-left:1px solid var(--line); }
.module-count strong { font-size:27px; line-height:1.08; font-variant-numeric:tabular-nums; }
.module-count span { font-size:12px; color:var(--muted); margin-top:4px; }
.workspace-toolbar { padding:16px 23px; background:#18191b; border-bottom:1px solid var(--line-soft);
  margin:0; gap:13px; align-items:end; }
.control-group { display:flex; flex-direction:column; gap:6px; color:var(--muted);
  font-size:12px; font-weight:650; min-width:0; }
.control-group.grow { flex:1; }
.control-group input,.control-group select { min-width:0; width:100%; max-width:none; }
.control-group:not(.grow) { min-width:168px; }
.list-context { display:flex; justify-content:space-between; gap:10px; padding:15px 23px 12px;
  color:var(--muted); font-size:13px; }
.list-context span:first-child { font-weight:720; color:#eee6db; }
.page-table-heading,.page-result { display:grid; grid-template-columns:minmax(0,1fr) minmax(145px, .28fr) 85px;
  gap:18px; align-items:center; }
.page-table-heading { padding:11px 23px; color:#d8b986; font-size:12px; font-weight:730;
  background:#202020; border-top:1px solid var(--line-soft); border-bottom:1px solid #4f4436; }
.page-table-heading span:last-child { text-align:right; }
.page-result { padding:13px 23px; min-height:57px; border-bottom:1px solid var(--line-soft); }
.page-result:last-child { border-bottom:0; }
.page-result:hover,.site-row:hover { background:rgba(214,183,126,.035); }
.page-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.page-identity img { width:19px; height:19px; display:block; flex:none; }
.page-path { min-width:0; font-size:14px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#f1dbb9; white-space:normal; overflow-wrap:anywhere; }
.page-share { display:flex; align-items:center; gap:11px; }
.page-share-track { flex:1; height:6px; background:#363433; border-radius:8px; overflow:hidden; }
.page-share-fill { height:100%; background:linear-gradient(90deg,#987449,#e7c383);border-radius:8px; }
.page-share-percent { min-width:36px; text-align:right; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.page-views { font-size:16px; text-align:right; color:#f7e4c1; font-variant-numeric:tabular-nums; }
.site-list-heading,.site-row { display:grid; grid-template-columns:minmax(175px,1.05fr) minmax(180px,1fr) minmax(180px,1fr) minmax(135px,.62fr); align-items:center; gap:16px; }
.site-list-heading { padding:12px 23px; font-size:12px; color:#d8b986; font-weight:730;
  border-bottom:1px solid #4f4436; background:#202020; }
.site-list-heading span:last-child { text-align:right; }
.site-row { padding:14px 23px; min-height:96px; border-bottom:1px solid var(--line-soft); }
.site-row:last-child { border-bottom:0; }
.site-identity { display:flex; align-items:center; gap:13px; min-width:0; }
.site-avatar { display:grid; place-items:center; width:39px; height:39px; border-radius:11px;
  background:#2a231b; border:1px solid #51432f; flex:none; }
.site-avatar img { width:20px; height:20px; }
.site-info { min-width:0; display:flex; flex-direction:column; gap:3px; }
.site-info strong { font-size:15px; color:#f3e8d8; overflow-wrap:anywhere; }
.site-info span { font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.site-pulse-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 23px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);background:#171719;}
.site-pulse-note {display:flex;align-items:center;gap:11px;min-width:0;}
.site-pulse-note>img{width:23px;height:23px;flex:none;}
.site-pulse-note>span{display:flex;flex-direction:column;gap:3px;min-width:0;}
.site-pulse-note strong{font-size:14px;color:var(--text);}
.site-pulse-note small{font-size:12px;color:var(--subtle);line-height:1.4;}
.site-pulse-toolbar-actions{display:flex;align-items:center;gap:12px;flex:none;}
.site-pulse-toolbar-actions>span{font-size:11px;color:var(--subtle);}
.site-activity {min-width:0;display:flex;flex-direction:column;gap:4px;}
.site-activity-metrics{display:flex;gap:22px;align-items:center;}
.site-activity-metric{display:flex;align-items:baseline;gap:5px;}
.site-activity-metric strong{font-size:19px;font-weight:750;color:var(--text);font-variant-numeric:tabular-nums;}
.site-activity-metric span{font-size:12px;color:var(--gold-soft);font-weight:700;}
.site-last-hit{display:flex;gap:5px;align-items:center;color:var(--muted);font-size:12px;line-height:1.4;}
.site-last-hit .semantic-icon{width:14px;height:14px;flex:none;}
.site-privacy-hint{color:var(--subtle);font-size:11px;}
.site-meta { display:flex; align-items:center; gap:8px; min-width:0; }
.site-key { padding:9px 10px; border-radius:8px; background:#0e0f11; border:1px solid #343230;
  color:#e5c59a; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.site-meta .tiny-btn { white-space:nowrap; flex:none; }
.site-status { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.site-state { display:inline-flex; gap:7px; align-items:center; font-size:12px; font-weight:680; }
.site-state::before { content:''; width:7px; height:7px; border-radius:100%; background:currentColor; }
.site-state.enabled { color:#9ce0af; }
.site-state.paused { color:#e0be88; }
.status-button { border:1px solid #605036; border-radius:8px; color:#f1d7aa; background:#30271b;
  padding:9px 12px; font-size:12px; font-weight:700; }
.status-button:hover { background:#463625; }
.form-panel { margin-top:14px; }
.site-form { padding:20px 23px 16px; display:flex; align-items:end; gap:13px; flex-wrap:wrap; }
.site-form label,.stack label,.field-label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:620; color:var(--muted); }
.site-form label { flex:1; min-width:200px; }
.site-form input { width:100%; }
.site-form button { min-width:148px; }
.btn-icon { width:17px; height:17px; flex:none; }
.btn.primary .btn-icon { filter:brightness(0); }
.notice { margin:0 23px 14px; font-size:14px; color:var(--gold); }
.settings-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:start; gap:14px; }
.settings-grid .panel { padding:0; overflow:hidden; }
.settings-grid .module-heading { padding:20px; }
.privacy-toggle { display:flex; align-items:center; gap:14px; padding:25px 20px;
  border-bottom:1px solid var(--line-soft); cursor:pointer; }
.privacy-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.privacy-copy strong { font-size:16px; color:#f3e8d8; }
.privacy-copy small { font-size:13px; color:var(--muted); }
.privacy-toggle input { width:1px; height:1px; padding:0; margin:0; min-height:0; position:absolute; opacity:0; }
.toggle-track { display:block; height:26px; width:49px; border-radius:99px; background:#44454a;
  border:1px solid #636269; position:relative; flex:none; transition:background .16s; }
.toggle-track::before { content:''; position:absolute; width:18px; height:18px; left:3px; top:3px;
  border-radius:50%; background:#f1ece4; transition:transform .16s; }
.privacy-toggle input:checked + .toggle-track { background:#947446; border-color:#c1a16d; }
.privacy-toggle input:checked + .toggle-track::before { transform:translateX(23px); }
.privacy-toggle input:focus-visible + .toggle-track { outline:2px solid var(--gold);outline-offset:4px; }
.privacy-signals { padding:14px 20px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; border-bottom:1px solid var(--line-soft); }
.privacy-signals>div { display:flex; flex-direction:column; gap:5px; padding:12px; border-radius:9px; background:#1b1c1e; border:1px solid #303137; }
.privacy-signals span { color:var(--muted); font-size:12px; }
.privacy-signals strong { color:#ecd4ae; font-size:14px; }
@media(max-width:720px) { .privacy-signals { grid-template-columns:1fr; padding:12px 16px; } .privacy-signals>div { flex-direction:row; justify-content:space-between; } }
.inline-feedback { color:var(--gold); padding:0 20px; font-size:13px; }
.inline-feedback:empty { display:none; }
.inline-note { display:flex; gap:13px; padding:16px 20px; background:#191a1b; }
.inline-note img { width:20px; height:20px; opacity:.85; flex:none; }
.inline-note p { color:var(--muted); font-size:13px; }
.inline-note strong { color:#f0dac0; }
.settings-secondary .snippet { margin:22px 20px 6px; }
.settings-secondary .helper { padding:0 20px 19px; }
.privacy-policy-panel { grid-column:1/-1; padding:0; overflow:hidden; }
.privacy-policy-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:20px; }
.privacy-policy-form .control-group { min-width:0; display:flex; flex-direction:column; gap:8px; margin:0; font-size:13px; color:var(--muted); }
.privacy-policy-form select { width:100%; min-width:0; }
/* v2.0.2 — site-specific automatic consent bar preference */
.privacy-policy-form .privacy-bar-toggle { grid-column:1/-1; min-width:0; padding:13px 15px; margin:0; border:1px solid var(--line-soft); border-radius:12px; background:rgba(212,172,106,.035); }
.privacy-policy-form .privacy-bar-toggle .privacy-copy { min-width:0; }
.privacy-policy-form .privacy-bar-toggle .privacy-copy small { max-width:720px; line-height:1.5; }
.privacy-policy-actions { grid-column:1/-1; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.privacy-policy-actions .inline-feedback { padding:0; }
.privacy-policy-example { padding:18px 20px 20px; border-top:1px solid var(--line-soft); }
.privacy-policy-example p { font-size:13px; color:var(--muted); line-height:1.6; margin:7px 0 10px; }
.privacy-policy-example code { color:#edd3a4; }
.privacy-policy-example .snippet { margin:10px 0; }
@media(max-width:720px) { .privacy-policy-form { grid-template-columns:1fr; padding:16px; } .privacy-policy-example { padding:16px; } }
.snippet { white-space:pre-wrap; overflow:auto; overflow-wrap:anywhere; font-size:13px; line-height:1.7;
  background:#0c0d0f; color:#eacb96; border:1px solid #3c3630;
  border-radius:10px; padding:15px; }
.integration-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-bottom:14px; }
.integration-step { display:flex; align-items:center; gap:14px; padding:16px 18px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.integration-step>span { display:grid; place-items:center; flex:none; height:35px; width:35px;
  border-radius:10px; background:#292219; border:1px solid #584631; color:#eac58d; font-size:13px; font-weight:790; }
.integration-step>div { display:flex; flex-direction:column; gap:3px; }
.integration-step strong { color:#f5eadb; font-size:14px; }
.integration-step small { color:var(--muted); font-size:12px; }
.integration-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:start; gap:14px; }
.integration-grid .form-panel { margin-top:0; padding:0 0 18px; }
.integration-grid .module-heading { padding:20px; }
.integration-grid .control-group { margin:20px 20px 14px; }
.integration-grid .snippet { margin:20px; }
.integration-grid .control-group+.snippet { margin-top:14px; }
.integration-grid .btn { margin:0 20px; }
.integration-grid .helper { margin:15px 20px 0; }
/* Visit log — surface controls, easy-to-scan summary with no new API calls. */
#page-visits .pages-toolbar { align-items:center; }
#visits-search { flex:1; min-width:180px; }
#visits-status { min-width:127px; }
#page-visits .helper { margin:10px 0; }
.visits-result-title { display:flex; align-items:center; gap:9px; }
.visits-result-title img { width:19px; height:19px; }
.visits-breakdown { display:flex; gap:7px; flex-wrap:wrap; margin-left:auto; }
.visit-summary-chip { display:inline-flex; align-items:center; gap:7px; background:#29251e;
  border:1px solid #4a4032; border-radius:8px; padding:5px 9px; font-size:12px; color:var(--muted); }
.visit-summary-chip b { color:#edcd97; font-variant-numeric:tabular-nums; }
/* Visit log: readable condensed table, no tiny data type or oversized row. */
#page-visits .pages-toolbar { align-items:center; }
#visits-search { flex:1; min-width:180px; }
#visits-status { min-width:127px; }
#page-visits .helper { margin:10px 0; }
.visits-result-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  color:var(--muted); font-size:14px; padding:12px 1px; }
.visits-result-bar strong { color:var(--text); }
.visits-list { overflow-x:auto; }
.visits-table { width:100%; border-collapse:collapse; text-align:left; }
.visits-table th { padding:0; position:sticky; top:0; background:#222222; border-bottom:1px solid #55493c; }
.visit-sort { border:0; padding:12px; background:transparent; text-align:left;
  color:#efd2a4; white-space:nowrap; font-weight:700; font-size:13px; }
.visit-sort:hover { color:#ffe1b1; }
.visits-table td { font-size:14px; color:#ebe5dc; padding:13px 12px;
  border-bottom:1px solid var(--line-soft); white-space:nowrap; }
.visits-table tbody tr { cursor:pointer; }
.visits-table tbody tr:hover, .visits-table tbody tr:focus { background:#dbb77b0d; outline:none; }
.visits-table .visit-date { font-variant-numeric:tabular-nums; color:#d6cdc1; }
.visits-table .visit-country .semantic-label { gap:9px; }
.visit-device-icons { display:flex; align-items:center; gap:13px; }
.visit-device-icons .semantic-label { gap:6px; }
.visit-device-icons .semantic-icon { height:19px; width:19px; }

.visits-table .visit-id { font:13px ui-monospace, SFMono-Regular, Consolas, monospace; color:#ebcc99; }
.visits-table .visit-page { max-width:235px; overflow:hidden; text-overflow:ellipsis; }
.visit-pill { display:inline-block; border-radius:5px; border:1px solid #6e5940;
  padding:4px 9px; font-size:12px; font-weight:700; }
.visit-pill.repeat { color:#f0cc90; background:#d4b47c12; }
.visit-pill.first { color:#b3e5c0; background:#4a71571c; border-color:#4a7157; }
.visit-pill.event { color:#deccef; border-color:#685a80; }
.visits-timeline { margin-top:14px; padding:17px; border:1px solid #655033;
  border-radius:10px; background:#1d1b19; font-size:14px; }
.visits-timeline strong { color:var(--gold); }
.visit-timeline-list { display:grid; gap:8px; margin-top:9px; }
.visit-timeline-list>div { padding:9px 0; border-bottom:1px solid var(--line); }
/* Footer + login */
footer { display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-top:1px solid var(--line-soft); margin:0 clamp(22px, 2.5vw, 42px);
  padding:17px 0 21px; color:var(--subtle); font-size:12px; }
footer a,.signature a { color:var(--gold); }
.login-wrap { display:flex; min-height:100vh; justify-content:center; align-items:center; padding:25px; }
.login-card { width:min(100%,460px); padding:38px; background:var(--surface);
  border:1px solid #675238; border-radius:18px; box-shadow:0 30px 90px #0008; }
.login-card h1 { margin:9px 0 12px; }
.login-card .stack { display:flex; flex-direction:column; gap:16px; margin-top:26px; }
.login-card input { width:100%; }
.signature { border-top:1px solid var(--line); margin-top:25px; padding-top:18px;
  color:var(--subtle); font-size:12px; text-align:center; }
.error { color:#e8aaa9; font-size:14px; }
/* Responsive: preserve comfortable text sizes; adapt layout instead of shrinking text. */
@media(max-width:1350px) {
  .page-heading { align-items:flex-start; flex-direction:column; }
  .filters { width:100%; }
  .metric { padding:16px; }
}
@media(max-width:1050px) {
  .shell { grid-template-columns:76px minmax(0,1fr); }
  .sidebar { padding:16px 9px; }
  .brand { padding:0 3px 22px; }
  .brand-text, .sidebar-caption, .sidebar-bottom span:not(.pulse-dot),.sidebar-bottom small,.nav span:not(.nav-icon) { display:none; }
  .nav { justify-content:center; padding:0; }
  .nav-icon { width:auto; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-grid,.integration-grid { grid-template-columns:1fr; }
  .site-list-heading { display:none; }
  .site-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); row-gap:12px; }
  .site-status { grid-column:auto; justify-content:flex-end; }
  .site-pulse-toolbar{align-items:flex-start;flex-wrap:wrap;}
  .geo-content { grid-template-columns:1fr 1fr; }
  .visits-table { min-width:850px; }
}
@media(max-width:720px) {
  .shell { display:block; }
  .sidebar { min-height:0; height:auto; position:sticky; top:0; z-index:20; flex-direction:row;
    align-items:center; padding:8px 10px; gap:3px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { padding:0; margin-right:auto; }
  .brand-logo { width:35px; height:35px; }
  .nav { width:39px; min-height:40px; flex:0 0 auto; }
  .sidebar-bottom { display:none; }
  /* Mobile workspace nav is a separate sticky row of 61px; keep the header directly below. */
  .topbar { top:61px; min-height:48px; padding:0 16px; }
  html { scroll-padding-top:118px; }
  .top-actions { gap:8px; }
  .connected { display:none; }
  main { padding:19px 15px 22px; }
  .page-heading { margin-bottom:17px; }
  .page-heading h1 { font-size:34px; }
  .page-heading p { font-size:14px; }
  .filters { align-items:stretch; }
  .filters>select { flex:1; max-width:none; }
  .custom-range { width:100%; }
  .custom-range label { flex:1; min-width:115px; }
  .custom-range input { width:100%; max-width:none; }
  .metrics { gap:9px; }
  .metric { min-height:148px; padding:13px 9px; }
  .metric-symbol { width:19px; height:19px; }
  .metric-title { font-size:12px; }
  .metric-value { font-size:38px; }
  .metric-hint { font-size:11px; }
  .panel { padding:15px; }
  .intelligence-panel { padding:0; }
  .intelligence-heading { padding:15px; }
  .intelligence-section { padding:15px; }
  .intelligence-layout, .geo-content { grid-template-columns:1fr; }
  .intelligence-panel[aria-label="Audience profile"] .intelligence-section:nth-child(n+3) .rank-list {
    display:block;
  }
  .trend { margin-bottom:17px; }
  .trend-heading { align-items:flex-start; flex-wrap:wrap; }
  .trend-aside { width:100%; justify-content:space-between; }
  .chart-wrapper { height:165px; }
  .section-lead { display:block; }
  .section-caption { display:none; }
  .geo-list-block .rank-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .geo-list-block .semantic-text { max-width:105px; }
  .pages-toolbar { flex-direction:column; align-items:stretch; }
  .pages-toolbar select { max-width:none; }
  .module-heading { padding:18px 15px; }
  .module-mark { width:37px; height:37px; }
  .module-count { min-width:72px; padding:2px 6px; }
  .module-count strong { font-size:23px; }
  .module-heading-copy h2 { font-size:18px; }
  .workspace-toolbar { padding:15px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .workspace-toolbar .control-group { min-width:0; }
  .workspace-toolbar .control-group.grow { grid-column:1/-1; }
  .list-context { padding:13px 15px; flex-wrap:wrap; }
  .page-table-heading,.page-result { grid-template-columns:minmax(0,1fr) 69px; gap:10px; }
  .page-table-heading { padding:12px 15px; }
  .page-table-heading span:nth-child(2),.page-share { display:none; }
  .page-result { padding:13px 15px; }
  .site-list-heading { display:none; }
  .site-pulse-toolbar{padding:12px 15px;}
  .site-pulse-toolbar-actions{width:100%;justify-content:space-between;}
  .site-row { display:grid; grid-template-columns:1fr 1fr; padding:15px; gap:13px; }
  .site-identity { grid-column:1/-1; }
  .site-activity { grid-column:1/-1; }
  .site-meta { grid-column:1/-1; }
  .site-status { grid-column:1/-1; justify-content:space-between; }
  .site-key { max-width:128px; }
  .site-form { padding:16px; }
  .settings-grid .module-heading,.integration-grid .module-heading { padding:16px; }
  .integration-steps { grid-template-columns:1fr; gap:8px; }
  .integration-step { padding:12px 14px; }
  .integration-grid .snippet { margin:16px; }
  .integration-grid .control-group { margin:16px; }
  .integration-grid .helper { margin:10px 16px 0; }
  #page-visits .visits-result-bar { align-items:flex-start; }
  #page-visits .visits-breakdown { order:3; width:100%; margin-left:0; }
  .site-form { align-items:stretch; flex-direction:column; }
  .site-form label { width:100%; }
  .events-panel .rank-list { grid-template-columns:1fr; }
  #page-visits .pages-toolbar { display:grid; grid-template-columns:1fr 1fr; }
  #page-visits .pages-toolbar select { width:100%; max-width:none; }
  #visits-search, #visits-reload { grid-column:1/-1; }
  .visits-list { overflow:visible; }
  .visits-table, .visits-table tbody, .visits-table tr, .visits-table td { display:block; min-width:0; }
  .visits-table thead { display:none; }
  .visits-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto;
    border:1px solid var(--line); border-radius:10px; margin:10px 0; padding:12px 14px; gap:5px 10px; }
  .visits-table td { border:0; padding:0; white-space:normal; text-align:left;
    min-width:0; font-size:13px; }
  .visits-table td::before { display:none; }
  .visits-table .visit-date { grid-column:1/-1; grid-row:1; color:var(--muted);
    padding-bottom:6px; border-bottom:1px solid var(--line-soft); }
  .visits-table .visit-device { grid-column:1; grid-row:2; font-weight:650; }
  .visit-device-icons { gap:8px; flex-wrap:wrap; }
  .visits-table .visit-country { grid-column:2; grid-row:2; color:var(--gold); text-align:right; }
  .visits-table .visit-page { grid-column:1; grid-row:3; max-width:none;
    overflow-wrap:anywhere; color:var(--muted); }
  .visits-table .visit-views { grid-column:2; grid-row:3; text-align:right; }
  .visits-table .visit-views::before { display:inline; content:"Views "; color:var(--subtle); }
  .visits-table .visit-id { grid-column:1; grid-row:4; font-size:12px; }
  .visits-table .visit-state { grid-column:2; grid-row:4; text-align:right; }
  .bottom-toolbar { flex-wrap:wrap; }
  footer { margin:0 15px; flex-wrap:wrap; }
  .login-card { padding:27px; }
}
@media(max-width:370px) {
  .nav { width:34px; }
  .brand-logo { width:29px; height:29px; }
  .geo-list-block .rank-list { grid-template-columns:1fr; }
}

/* Advanced intelligence workspace: a self-contained component, not a global override. */
.intelligence-workspace {overflow:hidden}
.intel-toolbar {display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:19px 20px;border-bottom:1px solid var(--line)}
.intel-toolbar .control-group{min-width:166px}
.intel-toolbar .btn{height:43px}
.intel-count{font-size:12px;color:var(--muted);margin-left:auto;align-self:center}
.intel-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:19px 20px;background:rgba(0,0,0,.11)}
.intel-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;min-height:150px;padding:16px 10px;background:#151619;border:1px solid var(--line);border-radius:12px}
.intel-metric img{height:20px;width:20px;object-fit:contain}
.intel-metric span{font-weight:700;font-size:13px;color:var(--text)}
.intel-metric strong{font-size:34px;line-height:1.15;color:#fff;font-weight:800;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.intel-metric small{font-size:11px;line-height:1.5;color:var(--muted)}
.intel-result-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 20px 15px;border-top:1px solid var(--line)}
.intel-result-heading h2{font-size:19px;margin:5px 0 4px}
.intel-result-heading p,.intel-result-heading>span{font-size:12px;color:var(--muted);margin:0}
.intel-table-head,.intel-row{display:grid;grid-template-columns:1.65fr 1.5fr 1.25fr .5fr 1.05fr .8fr;align-items:center;gap:13px}
.intel-table-head{padding:11px 20px;font-size:11px;color:var(--gold);font-weight:750;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(0,0,0,.12)}
.intel-entry+.intel-entry{border-top:1px solid var(--line)}
.intel-row{width:100%;background:transparent;border:0;color:var(--text);padding:15px 20px;cursor:pointer;text-align:left;font:inherit;transition:background .15s}
.intel-row:hover,.intel-row:focus-visible{background:rgba(195,159,96,.08);outline:none}
.intel-row:focus-visible{box-shadow:inset 0 0 0 2px var(--gold)}
.intel-date{font-size:12px;font-variant-numeric:tabular-nums}
.intel-device,.intel-country{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;font-size:12px}
.intel-device small{color:var(--muted);font-weight:400}
.intel-device img,.intel-country img{width:20px;height:16px;object-fit:contain;flex-shrink:0}
.intel-pages{font-weight:750;font-variant-numeric:tabular-nums}
.intel-visitor{color:var(--gold);font-size:12px}
.intel-status{display:inline-flex;align-items:center;justify-content:center;max-width:max-content;padding:5px 8px;font-size:11px;border-radius:7px;border:1px solid rgba(204,173,112,.27);color:#d9ba7b;white-space:nowrap}
.intel-status.returning{color:#9bd4ae;border-color:rgba(116,194,139,.32);background:rgba(65,125,80,.10)}
.intel-detail{background:#101113;padding:16px 24px 18px;border-top:1px solid var(--line)}
.intel-detail[hidden]{display:none}
.intel-detail-meta{font-weight:700;color:var(--gold);font-size:12px;margin-bottom:10px}
.intel-paths{list-style:decimal;padding-left:24px;margin:0;display:grid;gap:7px}
.intel-paths li{color:var(--text);font-size:13px;overflow-wrap:anywhere}
.intel-paths li::marker{color:var(--gold)}
.intel-privacy{display:flex;align-items:start;gap:13px;border-top:1px solid var(--line);padding:17px 20px;color:var(--muted);font-size:12px;line-height:1.65}
.intel-privacy img{width:20px;height:20px;flex-shrink:0}
.intel-privacy p{margin:0}
@media(max-width:1100px){.intel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.intel-table-head,.intel-row{grid-template-columns:1.25fr 1.35fr 1fr .45fr 1.1fr .9fr;gap:8px}}
@media(max-width:760px){
 .intel-toolbar{padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .intel-toolbar .control-group{min-width:0}
 .intel-toolbar .btn,.intel-count{grid-column:1/-1;margin:0}
 .intel-metrics{padding:13px;gap:8px}
 .intel-metric{min-height:125px;padding:10px 7px}
 .intel-metric strong{font-size:29px}
 .intel-result-heading{padding:16px;align-items:start;flex-wrap:wrap}
 .intel-table-head{display:none}
 .intel-entry{margin:9px 12px;border:1px solid var(--line);border-radius:9px;overflow:hidden}
 .intel-entry+.intel-entry{border-top:1px solid var(--line)}
 .intel-row{display:grid;grid-template-columns:1fr auto;gap:9px;padding:14px}
 .intel-date{grid-column:1/-1;color:var(--muted)}
 .intel-device{grid-column:1}.intel-country{grid-column:2}
 .intel-pages{grid-column:1}.intel-pages::before{content:'Pages: ';font-weight:400;color:var(--muted)}
 .intel-visitor{grid-column:1}.intel-status{grid-column:2;grid-row:4}
 .intel-privacy{padding:15px}.intel-detail{padding:15px}
}

/* v1.9.4 — compact inline tracking diagnostics; no dialogs, no wasted page-wide cards */
.site-record { border-bottom:1px solid var(--line-soft); }
.site-record:last-child { border-bottom:0; }
.site-record .site-row { border-bottom:0; }
.site-status { flex-wrap:wrap; row-gap:8px; }
.site-check-button { white-space:nowrap; }
.site-diagnostic { margin:0 21px 13px; padding:13px 15px; border:1px solid var(--line-soft); background:rgba(214,183,126,.035); border-radius:12px; color:var(--text); }
.site-diagnostic-heading { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:14px; }
.site-diagnostic-heading img { height:17px; width:17px; }
.site-diag-time { color:var(--muted); font-size:12px; margin-left:auto; font-weight:500; }
.site-diagnostic-checks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; }
.site-diagnostic-check { border:1px solid var(--line-soft); border-radius:9px; padding:10px 12px; min-width:0; }
.site-diag-check-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.site-diag-check-head strong { font-size:13px; }
.site-diagnostic-check p { margin:8px 0 0; font-size:12px; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; }
.diag-pill { display:inline-flex; align-items:center; border:1px solid var(--line-soft); border-radius:5px; padding:3px 6px; font-size:9px; font-weight:800; letter-spacing:.06em; }
.diag-pill.pass { color:#96d5ac; background:rgba(76,180,119,.07); border-color:rgba(76,180,119,.25); }
.diag-pill.warn { color:#e5bc72; background:rgba(229,188,114,.06); border-color:rgba(229,188,114,.3); }
.diag-pill.unknown,.diag-pill.paused { color:var(--muted); }
.site-diag-footer { display:flex; align-items:center; gap:8px; margin-top:12px; font-size:12px; }
.site-diag-footer img { width:15px; height:15px; }
.site-diag-disclaimer { margin:7px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.site-diag-notice { margin:0; font-size:13px; }
@media(max-width:1050px){.site-diagnostic-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.site-diagnostic{margin:0 12px 12px;padding:12px}.site-diagnostic-checks{grid-template-columns:1fr}.site-diag-time{margin-left:0}.site-status{justify-content:flex-start;gap:9px}}

/* v1.9.5 — verification summaries; a single accessible inline expansion */
.site-record .site-row{padding-bottom:8px}
.site-verification-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:0 21px 12px 92px;min-height:30px}
.site-verification-chip{font-size:11px;font-weight:700;line-height:1.4;border:1px solid var(--line-soft);border-radius:6px;padding:3px 8px;white-space:nowrap;background:rgba(255,255,255,.018);color:var(--muted)}
.site-verification-chip.ok{color:#98d9af;border-color:rgba(77,181,119,.23);background:rgba(77,181,119,.055)}
.site-verification-chip.caution{color:#e5bc72;border-color:rgba(229,188,114,.25);background:rgba(229,188,114,.05)}
.site-verification-chip.neutral{color:var(--muted)}
.site-verification-chip.muted,.site-verification-chip.idle{color:var(--muted)}
.site-diagnostic-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}
.site-check-button[aria-expanded="true"]{color:var(--gold);border-color:rgba(214,183,126,.42)}
@media(max-width:850px){.site-verification-bar{padding-left:19px}}
@media(max-width:650px){.site-verification-bar{padding:0 12px 12px;gap:6px}.site-verification-chip{font-size:10px}}

/* v1.9.6: Collection Alerts — compact site rows, no modals. */
.alert-nav-count{margin-left:auto;min-width:19px;height:19px;border-radius:11px;background:#69432a;color:#fff0db;text-align:center;font-size:11px;line-height:19px;font-weight:750}
.alerts-panel{padding:0;overflow:hidden}.alerts-heading-right{margin-left:auto;display:flex;flex-direction:column;align-items:center;padding:0 12px;gap:4px}.alerts-heading-right strong{font-size:27px;color:var(--text);font-variant-numeric:tabular-nums}.alerts-heading-right span{font-size:12px;color:var(--muted)}
.alerts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 21px;background:#18191b;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.alerts-note{display:flex;flex-direction:column;gap:4px}.alerts-note strong{font-size:13px;color:var(--text)}.alerts-note small{color:var(--muted);font-size:12px}.alerts-toolbar-actions{display:flex;gap:10px;align-items:center}.alerts-toolbar-actions span{font-size:12px;color:var(--muted)}
.alerts-table-title,.alert-site-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(220px,1.6fr) minmax(220px,1fr);gap:18px;align-items:center}
.alerts-table-title{background:#202020;border-bottom:1px solid #4f4436;padding:12px 22px;font-size:12px;color:var(--gold-soft);font-weight:700}
.alert-site-row{padding:18px 22px;border-bottom:1px solid var(--line-soft)}.alert-site-row:last-child{border:0}
.alert-site-identity{display:flex;align-items:center;gap:12px}.alert-site-identity>.semantic-icon{width:24px;height:24px}.alert-site-identity>div,.alert-site-status{display:flex;flex-direction:column;gap:5px;min-width:0}
.alert-site-identity strong{font-size:15px;color:var(--text)}.alert-site-identity small,.alert-site-status small{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.alert-state{display:inline-flex;align-items:center;gap:8px;font-size:14px}.alert-state:before{content:'';height:8px;width:8px;border-radius:100%;background:currentColor}.alert-state.good{color:#97d5a6}.alert-state.warn{color:#e6ac6e}.alert-state.info{color:#d8bb87}.alert-state.muted{color:#9c9b9b}
.alert-site-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.alert-toggle{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px;white-space:nowrap}.alert-toggle input{accent-color:#d2ab6a;width:16px;height:16px}.alert-hours{max-width:150px;padding:10px;font-size:13px}.alert-rule-feedback{font-size:11px;color:var(--muted)}
.alerts-disclaimer{font-size:12px;color:var(--subtle);line-height:1.6;padding:15px 22px;margin:0;background:#171719}.alerts-history-panel{margin-top:15px}.alerts-history{display:grid;gap:0}.alert-event-row{display:flex;gap:13px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}.alert-event-row:last-child{border-bottom:0}.alert-event-row>.semantic-icon{width:20px;height:20px}.alert-event-row>div{display:flex;flex-direction:column;gap:5px}.alert-event-row strong{font-size:13px}.alert-event-row small{font-size:12px;color:var(--muted)}
@media(max-width:900px){.alerts-table-title{display:none}.alert-site-row{grid-template-columns:1fr 1fr}.alert-site-identity{grid-column:1/-1}.alert-site-controls{justify-content:flex-end}}
@media(max-width:640px){.alerts-toolbar{flex-direction:column;align-items:stretch}.alerts-toolbar-actions{justify-content:space-between}.alert-site-row{grid-template-columns:1fr;gap:13px;padding:15px}.alert-site-identity{grid-column:auto}.alert-site-controls{justify-content:flex-start}.alerts-disclaimer{padding:14px}.alerts-heading-right{padding:0 4px}}

/* Smart Links v2.0.0 — cohesive workspace, no pop-ups. */
.short-heading { align-items:end; }
.short-heading .soft-label { font-weight:750; letter-spacing:.07em; }
.short-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:14px; }
.short-kpi { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px 16px 15px; min-width:0; display:flex; flex-direction:column; gap:4px; justify-content:center; align-items:center; text-align:center; }
.short-kpi:first-child { background:linear-gradient(128deg,#211e19,#171819); border-color:#52412c; }
.short-kpi img { width:21px; height:21px; margin-bottom:3px; }
.short-kpi strong { font-size:clamp(28px,2.5vw,38px); line-height:1.15; letter-spacing:-.05em; font-variant-numeric:tabular-nums; }
.short-kpi span { font-size:12px; color:var(--muted); }
.short-create-panel,.short-manage-panel { margin-bottom:14px; }
.short-section-heading { display:flex; align-items:center; gap:15px; margin-bottom:19px; }
.short-section-heading p,.short-manage-header p { margin-top:3px; }
.short-form { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(150px,.7fr) minmax(130px,.52fr) minmax(200px,.7fr); align-items:end; gap:12px; }
.short-form label,.short-edit-form label { display:flex; flex-direction:column; min-width:0; gap:7px; color:var(--muted); font-weight:620; font-size:12px; }
.short-form input,.short-edit-form input { width:100%; min-width:0; font-weight:450; }
.short-create-submit { grid-column:1/-1; width:max-content; margin-top:3px; }
.short-create-submit img { width:17px; height:17px; filter:brightness(.2); }
#link-message:empty { display:none; }
.short-manage-panel { padding:0; overflow:hidden; }
.short-manage-header { display:flex; justify-content:space-between; align-items:end; gap:14px; padding:21px 22px; border-bottom:1px solid var(--line); }
.short-filter-tools { display:flex; align-items:center; gap:8px; }
.short-filter-tools input { width:min(300px,32vw); }
.short-list-header,.short-row { display:grid; grid-template-columns:minmax(250px,2.2fr) minmax(90px,.48fr) minmax(95px,.55fr) minmax(315px,1.35fr); gap:12px; align-items:center; }
.short-list-header { background:var(--raised); color:var(--gold); font-size:12px; font-weight:700; border-bottom:1px solid #524430; padding:11px 20px; }
.short-row { padding:15px 20px; border-bottom:1px solid var(--line-soft); }
.short-row:hover { background:#d6b77e07; }
.short-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.short-identity > img { width:34px; height:34px; border-radius:9px; flex-shrink:0; background:#282625; padding:7px; object-fit:contain; border:1px solid #544737; }
.short-identity > img.short-favicon:not(.fallback) { padding:6px; background:#f2efe8; border-color:#7c6a4f; }
.short-identity > img.short-favicon.fallback { background:#34291e; }
.short-identity-copy { display:flex; flex-direction:column; min-width:0; gap:2px; }
.short-title { color:var(--text); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.short-url { color:var(--gold); font-size:14px; font-weight:630; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.short-url:hover { text-decoration:underline; }
.short-destination { color:var(--subtle); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.short-hit-count { display:flex; flex-direction:column; gap:2px; text-align:center; }
.short-hit-count strong { font-size:23px; font-weight:760; line-height:1.15; font-variant-numeric:tabular-nums; }
.short-hit-count span { color:var(--subtle); font-size:12px; }
.short-status-box { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.short-status { border:1px solid #5b564f; border-radius:6px; font-size:11px; font-weight:690; padding:4px 9px; }
.short-status.active { color:var(--green); background:#24463125; border-color:#41654e; }
.short-status.paused { color:#d7c5a3; border-color:#806345; background:#6b543526; }
.short-status.expired { color:#e0a4a4; border-color:#714747; background:#6b333326; }
.short-status-box small { color:var(--subtle); font-size:11px; }
.short-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.short-actions .btn { min-height:34px; padding:7px 10px; font-size:12px; background:#222124; }
.short-actions a.short-open-link { display:inline-flex; align-items:center; justify-content:center; color:var(--gold); border-color:#6c593c; text-decoration:none; }
.short-actions a.short-open-link:hover { background:#382d21; }
.short-qr-actions a.short-open-link { display:inline-flex; align-items:center; text-decoration:none; }
.short-privacy-note { display:flex; align-items:center; gap:9px; padding:14px 20px; }
.short-privacy-note img { width:16px; height:16px; }
.short-detail { padding:21px 23px; background:linear-gradient(130deg,#181818,#131416); border-top:1px solid #63513a; border-bottom:1px solid var(--line); }
.short-detail-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.short-detail-heading h3 { font-size:19px; margin:0 0 4px; }
.short-detail-heading p { font-size:13px; }
.short-detail-heading .btn { min-height:35px; }
.short-detail-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:19px; }
.short-detail-kpi { display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px; padding:12px 8px; border-radius:9px; border:1px solid var(--line); background:#1c1c1e; }
.short-detail-kpi strong { font-size:26px; font-variant-numeric:tabular-nums; line-height:1.15; }
.short-detail-kpi span { font-size:12px; color:var(--muted); }
.short-qr-layout { display:flex; align-items:center; flex-wrap:wrap; gap:25px; }
.short-qr-image { width:260px; height:260px; object-fit:contain; border-radius:14px; background:#fff; padding:16px; box-shadow:0 0 0 1px #937a4b,0 8px 30px #0007; }
.short-qr-copy { display:flex; flex-direction:column; align-items:flex-start; gap:15px; min-width:0; }
.short-qr-copy strong { font-size:18px; overflow-wrap:anywhere; color:var(--gold); }
.short-qr-destination { color:var(--muted); font-size:13px; max-width:430px; overflow-wrap:anywhere; }
.short-qr-actions { display:flex; flex-wrap:wrap; gap:9px; }
.short-edit-form { display:grid; grid-template-columns:1fr 2fr 1fr auto; align-items:end; gap:12px; }
.short-edit-toggle { display:flex!important; flex-direction:row!important; align-items:center; gap:10px; }
.short-edit-toggle input { min-height:auto; width:18px!important; height:18px; accent-color:var(--gold); }
.short-edit-form .notice { grid-column:1/-1; }
.short-trend { border:1px solid var(--line); border-radius:10px; padding:17px 19px 14px; margin-bottom:14px; background:#191a1b; }
.short-trend-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 18px; margin-bottom:10px; }
.short-trend-heading h3 { margin:0; font-size:15px; }
.short-trend-total { font-size:12px; color:var(--gold); font-variant-numeric:tabular-nums; }
.short-chart-empty { margin:9px 0 0; color:var(--muted); font-size:12px; text-align:center; }
.short-daily-bars { height:155px; display:flex; align-items:end; gap:7px; border-bottom:1px solid #514532; padding-top:8px; background:repeating-linear-gradient(to top,transparent 0,transparent 30px,#63513a32 31px,#63513a32 32px); }
.short-daily-col { flex:1; min-width:0; display:flex; height:100%; align-items:center; justify-content:flex-end; flex-direction:column; gap:3px; outline-offset:2px; }
.short-daily-col:focus-visible { outline:2px solid var(--gold); }
.short-daily-track { height:calc(100% - 22px); width:100%; display:flex; align-items:flex-end; justify-content:center; }
.short-daily-col .subtle-date { opacity:.18; }
.short-daily-bar { min-height:3px; width:100%; max-width:34px; border-radius:5px 5px 0 0; background:linear-gradient(#e2c58b,#a17a42); transition:filter .12s; }
.short-daily-bar.zero { background:#594d3b; opacity:.7; }
.short-daily-col:hover .short-daily-bar,.short-daily-col:focus-visible .short-daily-bar { filter:brightness(1.35); }
.short-daily-col span { color:var(--subtle); font-size:10px; }
.short-stats-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.short-stats-group { border:1px solid var(--line); border-radius:10px; padding:16px; background:#1a1a1c; }
.short-stats-group h3 { margin-bottom:12px; font-size:15px; }
.short-stat-row { margin-bottom:11px; }
.short-stat-label { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; }
.short-stat-track { height:4px; background:#39383a; border-radius:8px; margin-top:6px; }
.short-stat-track span { display:block; height:4px; background:var(--gold); border-radius:8px; }
.short-privacy-small { margin-top:13px; font-size:12px; }
@media(max-width:1100px){
 .short-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .short-form .short-destination { grid-column:1/-1; }
 .short-list-header,.short-row { grid-template-columns:minmax(210px,1.5fr) minmax(85px,.5fr) minmax(92px,.5fr) minmax(245px,1.2fr); }
 .short-actions .btn { padding:6px 8px; }
 .short-edit-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px){
 .short-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .short-heading .soft-label { display:none; }
 .short-manage-header { align-items:stretch; flex-direction:column; }
 .short-filter-tools input { width:100%; flex:1; }
 .short-list-header { display:none; }
 .short-row { grid-template-columns: minmax(0,1fr) auto; gap:12px; }
 .short-identity { grid-column:1/-1; }
 .short-hit-count { text-align:left; align-items:flex-start; }
 .short-status-box { align-items:flex-end; }
 .short-actions { grid-column:1/-1; justify-content:flex-start; }
 .short-qr-image { width:210px; height:210px; }
 .short-detail-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px){
 .short-form,.short-edit-form { grid-template-columns:1fr; }
 .short-form .short-destination,.short-edit-form .notice { grid-column:auto; }
 .short-create-submit { grid-column:auto; width:100%; }
 .short-stats-groups { grid-template-columns:1fr; }
 .short-detail { padding:17px; }
 .short-daily-col span { display:none; }
 .short-daily-col:first-child span,.short-daily-col:nth-child(7) span,.short-daily-col:last-child span { display:block; }
 .short-kpi { padding:13px 8px; }
 .short-kpi strong { font-size:28px; }
 .short-manage-header { padding:18px; }
 .short-row { padding:15px 17px; }
}
@media(max-width:720px){
 /* Nine workspace destinations: keep the mobile nav swipeable, never stretch the page. */
 .sidebar { width:100%; max-width:100vw; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain; }
 .sidebar::-webkit-scrollbar { display:none; }
 .brand { flex:0 0 auto; margin-right:6px; }
}

.short-utm { grid-column:1/-1; border:1px solid var(--line-soft); border-radius:9px; background:#1a1b1d; padding:11px 13px; }
.short-utm summary { display:flex; align-items:center; gap:8px; color:var(--gold); font-weight:680; font-size:13px; cursor:pointer; }
.short-utm summary img { width:18px; height:18px; }
.short-utm summary span { color:var(--subtle); font-weight:450; font-size:12px; margin-left:auto; }
.short-utm-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-top:14px; }
.short-utm-fields input { width:100%; }
@media(max-width:520px){.short-utm-fields { grid-template-columns:1fr; }.short-utm summary { flex-wrap:wrap; }.short-utm summary span { margin-left:0; }}

/* Smart Links v2.1.0 — compact groups, multi-domain selection and comparisons. */
.short-groups-toolbar{display:flex;flex-direction:column;gap:7px;padding:14px 20px;background:#19191a;border-bottom:1px solid var(--line);}
.short-group-create{display:flex;align-items:end;gap:9px;flex-wrap:wrap;}
.short-group-create label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;color:var(--muted);}
.short-group-create label:first-child{flex:1;min-width:170px;max-width:340px;}
.short-group-create input,.short-group-create select{min-height:35px;font-size:13px;}
.short-group-create select{min-width:94px;}
.short-group-create .btn{min-height:35px;white-space:nowrap;font-size:12px;}
.short-groups-toolbar .notice{min-height:0;margin:0;font-size:12px;}
.short-groups-toolbar .notice:empty{display:none;}
.short-groups-toolbar .helper{font-size:11px;margin:0;line-height:1.45;}
.short-danger-btn{color:#e9c2a8!important;}
.short-filter-tools select{min-width:135px;max-width:190px;}
.short-group-tag{display:inline-flex;align-self:flex-start;color:var(--gold);background:#ad8e5530;border:1px solid #79623d66;border-radius:5px;font-size:10px;font-weight:700;padding:2px 7px;white-space:nowrap;}
.short-identity>.short-link-check{appearance:auto;flex:0 0 auto;height:17px;width:17px;accent-color:#d8b87d;cursor:pointer;}
.short-compare-toolbar{display:flex;gap:12px;align-items:center;justify-content:flex-start;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:11px 20px;background:#17181a;}
.short-compare-label{display:flex;gap:7px;align-items:center;font-size:12px;font-weight:650;color:var(--text);cursor:pointer;}
.short-compare-label input{width:16px;height:16px;accent-color:#d8b87d;}
#short-compare-count{font-size:12px;color:var(--subtle);}
.short-compare-toolbar .btn{min-height:33px;font-size:12px;padding:7px 11px;}
.short-compare-toolbar .btn:disabled{opacity:.4;cursor:not-allowed;}
.short-qr-settings{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:19px;}
.short-qr-settings label{min-width:145px;display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);font-weight:650;}
.short-qr-settings select{min-height:38px;}
.short-comparison-grid{display:grid;gap:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#18191a;}
.short-comparison-heading,.short-comparison-row{display:grid;grid-template-columns:minmax(150px,1.7fr) repeat(3,minmax(65px,.5fr)) minmax(130px,1.2fr);align-items:center;gap:10px;padding:11px 14px;}
.short-comparison-heading{background:#252222;color:var(--gold);font-size:12px;font-weight:700;}
.short-comparison-row{border-top:1px solid var(--line);font-size:13px;}
.short-comparison-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.short-comparison-number{font-size:15px;font-weight:730;line-height:1.2;font-variant-numeric:tabular-nums;}
.short-sparkline{height:43px;display:flex;align-items:end;gap:3px;overflow:hidden;}
.short-sparkline span{flex:1;max-width:18px;min-height:2px;background:linear-gradient(#dec18b,#8e6a38);border-radius:3px 3px 0 0;}
@media(max-width:980px){
 .short-filter-tools{flex-wrap:wrap;}
 .short-filter-tools select{flex:0 0 160px;}
 .short-group-create label:first-child{max-width:none;}
}
@media(max-width:680px){
 .short-filter-tools select{width:100%;max-width:none;flex:1;}
 .short-group-create label:first-child{min-width:100%;}
 .short-group-create .btn{flex:1;}
 .short-compare-toolbar{gap:8px;padding:11px 14px;}
 .short-comparison-grid{overflow-x:auto;}
 .short-comparison-heading,.short-comparison-row{min-width:630px;}
 .short-qr-settings label{flex:1;min-width:125px;}
}

.short-group-tag.blue{color:#9dbbe0;border-color:#55759b;background:#30466354;}
.short-group-tag.green{color:#a9d4b5;border-color:#46775a;background:#29473455;}


/* Advanced Reports v2.2.0: source components use the pinned MSDS v1.1.0
   graphite/gold palette and existing Analytics control/type geometry. */
.report-workspace { padding:0; overflow:hidden; }
.report-controls { display:flex; align-items:end; flex-wrap:wrap; gap:10px; padding:18px 20px; border-bottom:1px solid var(--line); background:var(--surface); }
.report-controls label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:650; color:var(--muted); }
.report-controls select { min-width:165px; }
.report-period-note { font-size:12px; color:var(--subtle); margin-left:auto; line-height:1.4; }
.report-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; padding:17px 20px; border-bottom:1px solid var(--line); }
.report-metric { display:flex; flex-direction:column; align-items:center; text-align:center; justify-content:center; min-height:148px; padding:16px 12px; background:var(--raised); border:1px solid var(--line); border-radius:var(--radius); }
.report-metric:first-child { background:linear-gradient(120deg,#211e19,#171819 65%); border-color:#52412c; }
.report-metric img { width:21px; height:21px; margin-bottom:8px; }
.report-metric>span { font-size:14px; color:var(--muted); font-weight:600; }
.report-metric>strong { font-size:clamp(34px,3vw,46px); line-height:1.15; margin:6px 0 4px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.report-metric>small { font-size:12px; color:var(--subtle); }
.report-block { min-width:0; padding:18px 20px; }
.report-block-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:15px; }
.report-block-head p { margin-top:5px; color:var(--subtle); font-size:12px; }
.report-table-wrap { min-width:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.report-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.report-table th { background:var(--raised); color:var(--gold-soft); font-size:12px; text-align:left; white-space:nowrap; font-weight:700; padding:13px 12px; border-bottom:1px solid var(--line); }
.report-table td { padding:12px; border-bottom:1px solid var(--line-soft); font-variant-numeric:tabular-nums; }
.report-table tr:last-child td { border-bottom:none; }
.report-table tbody tr:hover { background:var(--surface-hover); }
.report-identity { display:flex; gap:10px; align-items:center; min-width:0; }
.report-identity>.semantic-icon { flex:0 0 auto; }
.report-identity>div { min-width:0; }
.report-identity strong { display:block; color:var(--text); font-size:13px; overflow:hidden; text-overflow:ellipsis; }
.report-identity small { display:block; color:var(--subtle); font-size:12px; overflow:hidden; text-overflow:ellipsis; }
.report-numeric { font-weight:700; color:var(--text); }
.report-change { color:var(--subtle); font-size:12px; font-weight:700; }
.report-change.up { color:var(--green); }
.report-change.down { color:var(--gold-soft); }
.report-two-col { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.report-two-col>.report-block:first-child { border-right:1px solid var(--line); }
.report-trend { min-height:215px; display:flex; align-items:center; }
.report-trend svg { display:block; width:100%; height:202px; overflow:visible; }
.report-gridline { stroke:var(--line); stroke-width:1; }
.report-axis { fill:var(--subtle); font-size:12px; font-family:inherit; }
.report-trend-fill { fill:var(--gold); fill-opacity:.07; }
.report-trend-line { fill:none; stroke:var(--gold); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.report-trend-dot { fill:var(--gold); }
.report-sources { display:grid; gap:10px; }
.report-source-line { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; margin-bottom:5px; }
.report-source-line strong { font-variant-numeric:tabular-nums; }
.report-source-row .rank-track { height:4px; }
.report-downloads { display:flex; align-items:center; justify-content:space-between; gap:15px; flex-wrap:wrap; padding:18px 20px; }
.report-downloads strong { font-size:14px; }
.report-downloads p { font-size:12px; margin-top:3px; color:var(--subtle); }
.report-download-links { display:flex; gap:8px; flex-wrap:wrap; }
.report-download-links .btn { min-height:37px; font-size:12px; }
.report-footnote { font-size:12px; color:var(--subtle); border-top:1px solid var(--line); padding:12px 20px 16px; line-height:1.6; }
#reports-error { padding:0 20px 14px; }
@media(max-width:1000px) {
 .report-two-col { grid-template-columns:1fr; }
 .report-two-col>.report-block:first-child { border-right:0; border-bottom:1px solid var(--line); }
 .report-period-note { flex:1 0 100%; }
}
@media(max-width:720px) {
 .report-controls { padding:14px; gap:9px; }
 .report-controls label { flex:1 1 145px; }
 .report-controls select { width:100%; max-width:none; min-width:0; }
 .report-controls .btn { flex:1 0 100%; }
 .report-metrics { gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
 .report-metric { min-height:128px; padding:12px 8px; }
 .report-metric:first-child { grid-column:1/-1; min-height:135px; }
 .report-metric>strong { font-size:36px; }
 .report-block { padding:15px 13px; }
 .report-block-head { flex-wrap:wrap; }
 .report-table-wrap { border:0; overflow:visible; }
 .report-table,.report-table tbody,.report-table tr,.report-table td { display:block; width:100%; }
 .report-table thead { display:none; }
 .report-table tbody { display:grid; gap:10px; }
 .report-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; background:var(--raised); border:1px solid var(--line); border-radius:9px; padding:12px; }
 .report-table td { border:0; padding:0; min-width:0; }
 .report-table td:first-child { grid-column:1/-1; padding-bottom:8px; border-bottom:1px solid var(--line-soft); }
 .report-table td:not(:first-child)::before { display:block; content:attr(data-label); font-size:11px; margin-bottom:3px; color:var(--subtle); }
 .report-identity strong { white-space:normal; }
 .report-downloads { padding:15px 13px; }
 .report-download-links { width:100%; }
 .report-download-links .btn { flex:1 1 125px; }
 .report-footnote { padding:12px 13px; }
}

/* v2.3.0 — Account security and scheduled-report components. Values reuse the
   source Analytics / MS Design System v1.1.0 tokens; no visual overrides. */
.auth-challenge { display:flex; flex-direction:column; gap:5px; min-width:0; }
.auth-challenge small { color:var(--subtle); font-size:12px; }
.auth-mfa-step { display:grid; gap:13px; margin-top:18px; }
.auth-mfa-step h2 { margin:0; }
.auth-mfa-step .stack { display:grid; gap:12px; }
.auth-mfa-step input { width:100%; }
.auth-security-panel { margin-top:14px; padding:0; overflow:hidden; }
.auth-security-panel .module-heading { padding:18px 20px; border-bottom:1px solid var(--line-soft); }
.auth-security-content { padding:19px 20px; display:grid; gap:18px; }
.security-overview { display:flex; flex-wrap:wrap; gap:10px; }
.security-overview span { border:1px solid var(--line); background:var(--raised); border-radius:8px; padding:8px 11px; font-size:12px; color:var(--gold); }
.security-section { border-top:1px solid var(--line-soft); display:grid; gap:10px; padding-top:17px; }
.security-section p { max-width:850px; }
.auth-inline-form { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.auth-inline-form label { display:grid; gap:5px; font-size:12px; color:var(--muted); flex:1 1 200px; }
.auth-inline-form input { min-height:42px; min-width:0; width:100%; padding:9px 11px; background:#1d1e21; border:1px solid #454549; color:var(--text); border-radius:9px; }
#security-totp-setup { display:grid; gap:12px; justify-items:start; }
#security-totp-qr { background:white; padding:8px; border-radius:9px; width:196px; height:196px; }
#security-totp-key { color:var(--gold); overflow-wrap:anywhere; }
#security-recovery { display:grid; gap:10px; }
#security-recovery-codes { width:min(100%,580px); border:1px solid var(--line); border-radius:9px; background:var(--raised); color:var(--text); padding:12px; font-family:ui-monospace,monospace; font-size:14px; }
.security-passkey-item { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line-soft); }
.security-passkey-item span { font-size:13px; }
/* Account and notification workspaces: semantic MSDS v1.1.0 palette and geometry. */
.account-layout,.notification-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-bottom:15px; }
.account-layout>.panel,.notification-grid>.panel { min-width:0; }
.workspace-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end; padding-top:15px; }
.workspace-fields>label,.cf-enable-box>label,.cf-disable-box>label { color:var(--muted); font-size:12px; display:flex; flex-direction:column; gap:5px; min-width:0; }
.workspace-fields input,.workspace-fields select,.cf-enable-box input,.cf-disable-box input { width:100%; max-width:none; }
.workspace-fields>button { justify-self:start; }
.workspace-fields.compact-fields { max-width:760px; }
.notification-provider { margin-bottom:0; }
.hub-status-line { display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line-soft);padding-top:12px;margin-top:12px;color:var(--muted);font-size:12px; }
.hub-status-line .btn { min-height:36px; }

.notification-grid .module-heading { margin-bottom:0; }
.account-session-panel { margin-top:15px; }
.account-events { padding-top:14px; }
.account-event { display:flex; gap:10px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line-soft); padding:8px 0; font-size:13px; }
.account-event small { color:var(--subtle); }
.cf-settings-panel { margin-top:15px; }
.cf-enable-box,.cf-disable-box { margin-top:17px; border-top:1px solid var(--line-soft); padding-top:15px; display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.cf-enable-box>label,.cf-disable-box>label { flex:1 1 180px; max-width:300px; }
#cf-setup-challenge { flex:0 1 320px; min-width:0; }
@media(max-width:1000px) { .account-layout,.notification-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { .workspace-fields { grid-template-columns:minmax(0,1fr); } .cf-enable-box,.cf-disable-box { flex-direction:column;align-items:stretch; } .cf-enable-box>label,.cf-disable-box>label { flex-basis:auto; max-width:none; } }
.scheduled-panel { padding:17px 20px; }
.schedule-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.schedule-form>label { min-width:0; display:grid; gap:4px; color:var(--muted); font-size:12px; }
.schedule-form input:not([type='checkbox']),.schedule-form select { background:#1d1e21; border:1px solid #454549; color:var(--text); border-radius:9px; padding:9px 11px; min-width:0; width:100%; min-height:42px; }
.schedule-channels { display:flex; gap:14px; flex-wrap:wrap; align-items:center; grid-column:1/-1; border:1px solid var(--line); border-radius:9px; padding:12px; font-size:13px; }
.schedule-channels label { display:flex; align-items:center; gap:5px; }
.schedule-channels strong { font-size:13px; color:var(--gold); }
.schedule-enable { display:flex !important; align-items:center; grid-column:1/-1; flex-direction:row; }
.schedule-enable input { margin:0 7px 0 0; }
.schedule-form>button { justify-self:start; }
.schedule-list { border-top:1px solid var(--line-soft); margin-top:14px; }
.schedule-item { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--line-soft); padding:12px 0; }
.schedule-item>div:first-child { min-width:0; display:grid; gap:4px; }
.schedule-item strong { font-size:14px; }
.schedule-item small { color:var(--subtle); font-size:12px; overflow-wrap:anywhere; }
.schedule-actions { display:flex; gap:8px; flex-wrap:wrap; }
.schedule-deliveries { margin-top:10px; }
.schedule-delivery-item { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:7px 0; border-bottom:1px solid var(--line-soft); font-size:12px; }
.schedule-delivery-item small { color:var(--subtle); }
@media(max-width:960px) { .schedule-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .schedule-form { grid-template-columns:minmax(0,1fr); } .schedule-item { align-items:flex-start; flex-direction:column; } .schedule-channels { gap:10px; } .auth-security-content { padding:15px; } }

/* Goals v2.5.0: compact source components using the canonical MSDS palette. */
/* Traffic Intelligence workspace — original stylesheet, MSDS v1.1.0 design tokens. */
.traffic-workspace { padding:0; overflow:hidden; }
.traffic-controls { display:flex; gap:9px; flex-wrap:wrap; align-items:end; padding:17px 20px; border-bottom:1px solid var(--line); }
.traffic-controls label,.traffic-funnel-controls label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:12px; }
.traffic-controls .soft-label { margin-left:auto; font-size:11px; color:var(--subtle); }
.traffic-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; padding:16px 20px; border-bottom:1px solid var(--line); }
.traffic-metric { background:var(--raised); border:1px solid var(--line); border-radius:var(--radius); padding:15px; text-align:center; min-width:0; display:flex; align-items:center; flex-direction:column; justify-content:center; }
.traffic-metric:first-child { background:linear-gradient(120deg,#211e19,#171819 65%); border-color:#52412c; }
.traffic-metric img { width:21px; height:21px; margin-bottom:6px; }
.traffic-metric span { color:var(--muted); font-size:12px; }
.traffic-metric strong { font-size:clamp(29px,3vw,39px); letter-spacing:-.04em; font-variant-numeric:tabular-nums; line-height:1.3; }
.traffic-metric small { color:var(--subtle); font-size:11px; }
.traffic-section-head { padding:16px 20px 8px; }
.traffic-section-head p { margin-top:5px; font-size:12px; color:var(--subtle); }
.traffic-quality { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; padding:0 20px 19px; }
.traffic-quality>div { min-width:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--raised); padding:13px 14px; }
.traffic-quality span,.traffic-quality small { display:block; font-size:12px; color:var(--muted); }
.traffic-quality strong { display:block; font-size:27px; font-variant-numeric:tabular-nums; margin:4px 0; line-height:1.1; }
.traffic-quality small { color:var(--subtle); font-size:11px; }
.traffic-two-col { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.traffic-two-col>.traffic-section:first-child { border-right:1px solid var(--line); }
.traffic-section { padding:19px 20px; min-width:0; }
.traffic-section h2 { margin-bottom:9px; }
.traffic-section h3 { margin:17px 0 9px; font-size:13px; }
.traffic-bars { display:flex; align-items:flex-end; gap:3px; height:160px; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line); margin-top:20px; padding-top:7px; }
.traffic-day { display:flex; align-items:flex-end; flex:1; min-width:1px; height:100%; }
.traffic-day-bar { min-height:2px; width:100%; background:var(--gold-soft); opacity:.86; border-radius:3px 3px 0 0; }
.traffic-axis { display:flex; justify-content:space-between; gap:7px; color:var(--subtle); font-size:11px; padding-top:7px; }
.traffic-ranks { display:grid; gap:9px; margin:11px 0; }
.traffic-rank-top { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:4px; font-size:12px; }
.traffic-rank-label { min-width:0; overflow-wrap:anywhere; }
.traffic-rank-top strong { font-variant-numeric:tabular-nums; }
.traffic-host { display:block; color:var(--subtle); font-size:11px; margin-top:3px; }
.traffic-table-wrap { max-width:100%; overflow-x:auto; }
.traffic-table { width:100%; }
.traffic-table th,.traffic-table td { text-align:left; padding:10px 12px; }
.traffic-number { font-variant-numeric:tabular-nums; font-weight:700; }
.traffic-breakdowns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border-top:1px solid var(--line); }
.traffic-breakdowns>div { min-width:0; padding:17px 20px; border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.traffic-breakdowns>div:nth-child(3n){border-right:0}
.traffic-funnel>p { font-size:12px; color:var(--subtle); }
.traffic-funnel-controls { display:flex; flex-wrap:wrap; align-items:end; gap:9px; margin:16px 0 12px; }
.traffic-funnel-controls label { flex:1 1 190px; }
.traffic-funnel-controls select { width:100%; max-width:none; }
.traffic-help { color:var(--subtle); font-size:12px; margin:10px 20px; }
.traffic-funnel .traffic-help { margin:10px 0; }
.traffic-funnel-result { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.traffic-funnel-result>div { background:var(--raised); border:1px solid var(--line); border-radius:var(--radius); text-align:center; padding:12px; }
.traffic-funnel-result span { display:block; font-size:12px; color:var(--muted); }
.traffic-funnel-result strong { display:block; font-size:26px; font-variant-numeric:tabular-nums; }
.traffic-exports { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-top:1px solid var(--line); }
.traffic-exports strong { font-size:13px; }.traffic-exports p { font-size:12px; }
.traffic-export-links { display:flex; flex-wrap:wrap; gap:7px; }
.traffic-export-links .btn { min-height:34px; font-size:11px; padding:7px 9px; }
.traffic-footnote { font-size:11px; color:var(--subtle); border-top:1px solid var(--line); padding:13px 20px; }
.traffic-campaigns { border-top:1px solid var(--line); }
.traffic-campaigns .campaign-heading { display:flex; flex-wrap:wrap; align-items:end; gap:11px; justify-content:space-between; padding:0 0 14px; }
.traffic-campaigns .campaign-heading label { display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--muted); }
.traffic-campaign-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:15px; }
.traffic-campaign-kpis>div { min-width:0; background:var(--raised); border:1px solid var(--line); border-radius:var(--radius); text-align:center; padding:13px; }
.traffic-campaign-kpis span { display:block; font-size:12px; color:var(--muted); }
.traffic-campaign-kpis strong { display:block; font-size:clamp(25px,2.5vw,33px); line-height:1.35; font-variant-numeric:tabular-nums; }
.traffic-acquisition-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-bottom:19px; }
.traffic-acquisition-grid>div { min-width:0; border:1px solid var(--line-soft); border-radius:var(--radius); padding:12px 14px; }
.traffic-acquisition-grid h3 { font-size:13px; margin:0 0 10px; }
.traffic-campaigns .campaign-exports { padding:16px 0 0; margin-top:14px; }
.traffic-session-analysis { border-top:1px solid var(--line); }
.traffic-session-analysis>p { font-size:12px; color:var(--subtle); }
.traffic-session-analysis .traffic-campaign-kpis { margin:14px 0 4px; }
@media(max-width:720px){.traffic-campaign-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.traffic-acquisition-grid{grid-template-columns:minmax(0,1fr)}.traffic-campaigns .campaign-heading label{flex:1 1 150px}.traffic-campaigns .campaign-heading select{width:100%;max-width:none}}
@media(max-width:1050px){.traffic-breakdowns{grid-template-columns:repeat(2,minmax(0,1fr))}.traffic-breakdowns>div:nth-child(3n){border-right:1px solid var(--line-soft)}.traffic-breakdowns>div:nth-child(2n){border-right:0}.traffic-quality{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.traffic-controls{padding:13px;}.traffic-controls label{flex:1 1 110px}.traffic-controls select{width:100%;max-width:none}.traffic-controls .soft-label{margin-left:0}.traffic-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.traffic-metric{padding:11px}.traffic-quality{padding:0 12px 14px}.traffic-two-col{grid-template-columns:minmax(0,1fr)}.traffic-two-col>.traffic-section:first-child{border-right:0;border-bottom:1px solid var(--line)}.traffic-breakdowns{grid-template-columns:minmax(0,1fr)}.traffic-breakdowns>div,.traffic-breakdowns>div:nth-child(3n){border-right:0}.traffic-section{padding:15px 13px}.traffic-funnel-result{grid-template-columns:repeat(2,minmax(0,1fr))}.traffic-exports{padding:13px}}

.goal-workspace { padding:0; overflow:hidden; }
.goal-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; padding:17px 20px; border-bottom:1px solid var(--line); }
.goal-metric { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:136px; padding:13px 12px; background:var(--raised); border:1px solid var(--line); border-radius:var(--radius); }
.goal-metric:first-child { background:linear-gradient(120deg,#211e19,#171819 65%); border-color:#52412c; }
.goal-metric img { width:21px; height:21px; margin-bottom:6px; }
.goal-metric span { font-size:13px; color:var(--muted); font-weight:600; }
.goal-metric strong { font-size:clamp(33px,3vw,43px); line-height:1.14; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.goal-metric small { font-size:11px; color:var(--subtle); }
.goal-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:18px 20px 13px; }
.goal-section-head h2 { margin:3px 0; font-size:19px; }
.goal-section-head p { margin:3px 0 0; font-size:12px; color:var(--subtle); }
.goal-list { border-top:1px solid var(--line-soft); }
.goal-row { display:grid; grid-template-columns:minmax(190px,1.25fr) minmax(195px,.9fr) auto; gap:15px; align-items:center; border-bottom:1px solid var(--line-soft); padding:15px 20px; }
.goal-row:last-child { border-bottom:0; }
.goal-row:hover { background:var(--surface-hover); }
.goal-muted .goal-row-heading,.goal-muted .goal-row-stats { opacity:.62; }
.goal-row-main { min-width:0; }
.goal-row-heading { display:flex; align-items:center; gap:7px; font-size:14px; }
.goal-row-heading img { width:16px; height:16px; }
.goal-row-heading strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.goal-status { display:inline-flex; color:var(--green); border:1px solid var(--line); padding:2px 5px; border-radius:5px; font-size:10px; }
.goal-status.disabled { color:var(--subtle); }
.goal-row-rule { display:block; color:var(--subtle); font-size:11px; padding:5px 0 0 23px; overflow-wrap:anywhere; }
.goal-row-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; text-align:center; }
.goal-row-stats strong { display:block; font-size:19px; font-variant-numeric:tabular-nums; line-height:1.2; }
.goal-row-stats small { font-size:10px; color:var(--subtle); }
.goal-row-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.goal-row-actions .btn { min-height:34px; padding:6px 9px; font-size:11px; }
.goal-details { border-top:1px solid var(--line); background:var(--raised); }
.goal-detail-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; padding:0 20px 16px; }
.goal-detail-stats>div { border:1px solid var(--line); border-radius:var(--radius); padding:12px; text-align:center; }
.goal-detail-stats small { display:block; color:var(--subtle); font-size:11px; }
.goal-detail-stats strong { display:block; font-size:24px; font-variant-numeric:tabular-nums; }
.goal-detail-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:20px; padding:0 20px 22px; }
.goal-detail-grid>div { min-width:0; }
.goal-detail-grid h3 { font-size:13px; margin:0 0 9px; }
.goal-bars-chart { display:flex; gap:3px; align-items:flex-end; height:130px; border-bottom:1px solid var(--line); border-top:1px solid var(--line-soft); padding:7px 1px 0; }
.goal-bar-item { flex:1; height:100%; display:flex; align-items:end; min-width:1px; }
.goal-bar { width:100%; min-height:2px; background:var(--gold-soft); opacity:.88; border-radius:3px 3px 0 0; }
.goal-bars-axis { display:flex; justify-content:space-between; color:var(--subtle); font-size:11px; padding-top:8px; }
.goal-ranks { display:grid; gap:8px; margin-bottom:15px; }
.goal-rank-top { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; margin-bottom:4px; }
.goal-feedback { margin:0; padding:0 20px 14px; min-height:12px; }
.goal-editor { margin-top:14px; }
.goal-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; align-items:end; }
.goal-form label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:12px; min-width:0; }
.goal-form input,.goal-form select { width:100%; min-width:0; }
.goal-form .goal-form-value { grid-column:span 2; }
.goal-form .goal-check { display:flex; flex-direction:row; align-items:center; gap:8px; }
.goal-check input { width:auto; }
.goal-form-actions { display:flex; gap:8px; flex-wrap:wrap; }
.goal-example { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 0; color:var(--muted); font-size:12px; }
.goal-example code { border:1px solid var(--line); background:var(--bg); border-radius:6px; padding:10px; color:var(--gold); overflow-wrap:anywhere; }
.goal-example .btn { min-height:33px; }
@media(max-width:1130px) {
 .goal-row { grid-template-columns:minmax(160px,1fr) minmax(170px,1fr); }
 .goal-row-actions { grid-column:1/-1; justify-content:flex-start; }
 .goal-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:720px) {
 .goal-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; gap:8px; }
 .goal-metric:first-child { grid-column:1/-1; }
 .goal-metric { min-height:105px; }
 .goal-section-head { padding:14px; }
 .goal-row { display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:14px; }
 .goal-row-stats { width:100%; }
 .goal-row-actions .btn { flex:1; }
 .goal-detail-stats { padding:0 14px 12px; }
 .goal-detail-grid { grid-template-columns:1fr; padding:0 14px 15px; gap:15px; }
 .goal-form { grid-template-columns:1fr; }
 .goal-form .goal-form-value { grid-column:auto; }
 .goal-feedback { padding:0 14px 14px; }
 .goal-example code { width:100%; }
}

/* API & Integrations — source-owned component, aligned with MSDS v1.1.0 tokens. */
.api-workspace { padding:0; margin-bottom:13px; overflow:hidden; }
.api-workspace>.module-heading { padding:19px 20px; border-bottom:1px solid var(--line); }
.api-create-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; padding:20px; align-items:end; }
.api-create-form>label { display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted); min-width:0; }
.api-create-form input,.api-create-form select { width:100%; max-width:none; }
.api-scope-select { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:11px 22px; border:1px solid var(--line); border-radius:var(--radius); padding:10px 14px 14px; }
.api-scope-select legend { color:var(--gold-soft); font-size:12px; font-weight:700; padding:0 6px; }
.api-scope-select label { display:flex; align-items:center; gap:7px; font-size:13px; }
.api-scope-select input { min-height:0; width:16px; height:16px; accent-color:var(--gold); }
.api-create-actions { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.api-create-actions .helper { margin:0; }
.api-one-time { margin:0 20px 20px; padding:15px; border:1px solid var(--gold-soft); border-radius:var(--radius); background:var(--raised); }
.api-one-time strong { color:var(--gold); font-size:14px; }
.api-secret-line { display:flex; flex-wrap:wrap; gap:9px; margin:11px 0; }
.api-secret-line code { flex:1; min-width:0; overflow-wrap:anywhere; padding:12px; background:var(--bg); border:1px solid var(--line); border-radius:9px; font-size:13px; }
.api-list-head { display:flex; justify-content:space-between; align-items:center; gap:13px; flex-wrap:wrap; padding:18px 20px 14px; }
.api-list-head p { font-size:12px; }
.api-keys-list { border-top:1px solid var(--line); }
.api-key-row { display:grid; grid-template-columns:minmax(170px,1.4fr) minmax(160px,1fr) minmax(125px,.8fr) auto; align-items:center; gap:15px; padding:14px 20px; border-bottom:1px solid var(--line-soft); }
.api-key-row:last-child { border-bottom:0; }
.api-key-row strong { font-size:14px; }
.api-key-row small { display:block; color:var(--subtle); font-size:11px; margin-top:4px; overflow-wrap:anywhere; }
.api-revoke-inline { grid-column:1/-1; padding:12px 0; border-top:1px solid var(--line-soft); }
.api-key-row .api-key-actions { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.api-key-row .btn { min-height:34px; padding:6px 10px; font-size:11px; }
.api-usage { padding:13px 20px; border-top:1px solid var(--line); }
.api-usage>.api-list-head { padding:0 0 12px; }
.api-log-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px; border-bottom:1px solid var(--line-soft); font-size:12px; }
.api-log-row span { overflow-wrap:anywhere; }
.api-documentation { padding:20px; }
.api-documentation p { margin:10px 0; }
.api-endpoints { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:16px 0; }
.api-endpoints code { min-width:0; overflow-wrap:anywhere; border:1px solid var(--line-soft); background:var(--raised); padding:10px; border-radius:8px; font-size:12px; }
@media(max-width:1050px){.api-create-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.api-key-row { grid-template-columns:repeat(2,minmax(0,1fr)); }.api-key-actions { grid-column:1/-1; }}
@media(max-width:720px){.api-create-form { grid-template-columns:minmax(0,1fr); padding:14px; }.api-one-time {margin:0 14px 14px}.api-key-row {grid-template-columns:minmax(0,1fr);gap:8px;padding:14px}.api-key-actions{grid-column:auto}.api-endpoints {grid-template-columns:minmax(0,1fr)}.api-list-head{padding:14px}.api-documentation{padding:14px}}

/* Operations dashboard: new source-owned component styles, MSDS v1.1.0 palette. */
.ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:13px}
.ops-metric{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;min-height:132px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel,13px);padding:16px 12px}
.ops-metric:first-child{background:var(--raised);border-color:var(--gold-soft)}
.ops-metric img{width:20px;height:20px;object-fit:contain}
.ops-metric span{font-size:12px;color:var(--muted)}
.ops-metric strong{font-size:34px;font-weight:760;line-height:1.1;font-variant-numeric:tabular-nums}
.ops-metric small{font-size:11px;color:var(--subtle)}
.ops-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:13px}
.ops-panel{padding:0;margin-bottom:13px;overflow:hidden}
.ops-layout .ops-panel{margin:0}
.ops-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--line-soft)}
.ops-panel-head h2{margin:3px 0 0}.ops-panel-head p{font-size:12px;color:var(--subtle);margin:5px 0 0}
.ops-signals{padding:5px 20px}
.ops-signal{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line-soft)}
.ops-signal:last-child{border-bottom:0}
.ops-signal strong{font-size:12px;font-weight:650}.ops-signal small{display:block;color:var(--subtle);font-size:11px;margin-top:3px}
.ops-value{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums;font-weight:700;text-align:right}
.ops-ok{color:var(--green)}.ops-attention{color:var(--gold)}
.ops-table-scroll{overflow-x:auto;width:100%}.ops-table{border-collapse:collapse;width:100%;font-size:12px}
.ops-table th,.ops-table td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--line-soft)}
.ops-table th{color:var(--gold-soft);font-size:11px;font-weight:650;white-space:nowrap}
.ops-table td{max-width:240px;overflow-wrap:anywhere}.ops-table tr:last-child td{border-bottom:0}
.ops-recent{border-top:1px solid var(--line-soft)}.ops-delivery-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 20px;font-size:11px;border-bottom:1px solid var(--line-soft)}
.ops-delivery-entry span{color:var(--subtle)}.ops-downloads{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
@media(max-width:1050px){.ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.ops-panel-head{padding:14px}.ops-signals{padding:4px 14px}.ops-table{min-width:690px}.ops-table th,.ops-table td{padding:10px;white-space:nowrap}.ops-delivery-entry{padding:10px 14px;flex-wrap:wrap}.ops-metric{min-height:118px}}
@media(max-width:360px){.ops-metrics{grid-template-columns:minmax(0,1fr)}}

/* v3.0 Automation Center — original project CSS, MSDS v1.1.0 tokens and geometry. */
.auto-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:13px}
.auto-kpi{background:var(--surface);border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100px;gap:7px;text-align:center}
.auto-kpi span{color:var(--muted);font-size:12px}.auto-kpi strong{font-size:32px;font-variant-numeric:tabular-nums;line-height:1}
.auto-panel{margin-bottom:13px}.auto-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px 0 0;align-items:end}
.auto-form>label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px;min-width:0}
.auto-form input:not([type=checkbox]),.auto-form select{width:100%;min-width:0}
.auto-channels{display:flex;gap:14px;align-items:center;flex-wrap:wrap;grid-column:1/-1;padding:12px 0;border-block:1px solid var(--line-soft);font-size:12px}
.auto-channels strong{color:var(--gold-soft)}.auto-channels label,.auto-enable{display:inline-flex!important;align-items:center;gap:7px!important;flex-direction:row!important}
.auto-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.auto-form>.auto-actions{grid-column:1/-1}
.auto-panel-heading{padding:0 0 12px;border-bottom:1px solid var(--line-soft)}.auto-panel-heading h2{margin:4px 0 0}
.auto-list{display:flex;flex-direction:column}.auto-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line-soft)}.auto-row:last-child{border-bottom:0}
.auto-identity{flex:1;min-width:140px;overflow-wrap:anywhere}.auto-identity strong{display:block;font-size:13px}.auto-identity small{display:block;font-size:11px;color:var(--subtle);margin-top:5px}
.auto-status{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:5px 9px;border-radius:7px;white-space:nowrap}
.auto-on{color:var(--green)}.auto-error{color:var(--danger)}.auto-disclaimer{font-size:11px;color:var(--subtle);margin:13px 0 0;line-height:1.6}
@media(max-width:900px){.auto-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.auto-form{grid-template-columns:minmax(0,1fr)}.auto-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.auto-row{flex-wrap:wrap}.auto-actions{width:100%}}

.auto-provider-status,.auto-filters{font-size:11px;color:var(--subtle);margin:12px 0}.auto-filters{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.auto-filters label{display:flex;align-items:center;gap:8px}
