/* NOTE: the "sx-" class prefix (Settings › Advanced and All Domains) used to be "ad-".
   Ad blockers (EasyList) hide .ad-card/.ad-hero/.ad-table/… as adverts, so it was renamed. Never use an "ad-" prefix. */
/* ==========================================================================
   SiteHub Pro — global stylesheet
   Dashboard styles are grouped under "DASHBOARD". Values are measured from the
   1536×1024 design reference (design-reference/1.Dashboard.png).
   ========================================================================== */

:root {
  --sidebar-bg: #0F1A29;
  --sidebar-bg-2: #101C2D;
  --sidebar-text: #CDD1D9;
  --sidebar-muted: #9DABC0;
  --sidebar-icon-muted: #8391A8;
  --sidebar-active: #3568F4;
  --sidebar-grad-a: #142339;
  --sidebar-grad-b: #0B1524;
  --sidebar-active-a: #4076FF;
  --sidebar-active-b: #2A54D8;
  --sidebar-active-glow: rgba(53, 104, 244, .38);
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-guide: rgba(148, 163, 184, .18);
  --sidebar-edge: rgba(148, 163, 184, .12);
  --sidebar-accent: #5B8DFF;
  /* canonical chart series — the same metric is the same colour on every page */
  --chart-revenue: #12B76A;
  --chart-expenses: #F04438;
  --chart-profit: #2E90FA;
  --chart-traffic: #7C5CE5;
  --chart-neutral: #94A3B8;
  --sidebar-border: #2B3648;

  --page-bg: #F6F8FB;
  --topbar-bg: #FBFCFE;
  --surface: #FFFFFF;
  --surface-soft: #F0F3F9;
  --border: #E6EAF2;
  --border-soft: #EEF2F7;
  --card-border: #EDF0F5;

  --text: #0B1220;
  --text-2: #1F2937;
  --text-3: #4B5470;
  --muted: #6B7690;
  --muted-2: #8A93AB;

  --blue: #2563EB;
  --blue-link: #2260F5;
  --blue-2: #3B82F6;
  --green: #22A55B;
  --green-text: #1E9B52;
  --green-soft: #E8F7EE;
  --red: #EF4B5B;
  --red-text: #E63946;
  --red-soft: #FDECEE;
  --amber: #F5A623;
  --amber-text: #F08A1D;
  --amber-soft: #FEF4E5;
  --purple: #6D4AFF;
  --purple-soft: #EEEAFE;

  --radius-card: 10px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .03);

  --sidebar-w: 208px;
  --topbar-h: 52px;
  --content-pad-x: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* === THEME TOKENS === */
/* Semantic colour tokens. Light values are the approved SiteHub Pro palette;
   html[data-theme="dark"] swaps every token for the dark design system.
   Add new components with these tokens to get both themes automatically. */
:root {
  color-scheme: light;
  --chart-grid: #EEF1F6;
  --chart-tick: #6B7A90;
  --chart-tooltip-bg: #FFFFFF;
  --chart-tooltip-border: #E1E6EF;
  --chart-tooltip-text: #0B1220;
  --bg-input: #FFFFFF;
  --bg-overlay: rgba(15, 26, 41, .52);
  --scrollbar-thumb: #C4CBD8;
  --scrollbar-track: transparent;
  --selection-bg: rgba(59, 130, 246, .25);
  --bg-surface: #FFFFFF;
  --bg-surface-3: #FFFFFF;
  --bg-subtle: #F7F9FC;
  --bg-subtle-2: #F7F9FC;
  --bg-subtle-3: #F7F9FC;
  --bg-subtle-4: #F7F9FC;
  --bg-subtle-5: #F7F9FC;
  --bg-subtle-6: #F7F9FC;
  --bg-subtle-7: #F7F9FC;
  --bg-subtle-8: #F7F9FC;
  --bg-subtle-9: #F7F9FC;
  --bg-subtle-10: #F7F9FC;
  --bg-subtle-11: #F7F9FC;
  --bg-subtle-12: #F7F9FC;
  --bg-subtle-13: #F7F9FC;
  --bg-subtle-14: #F7F9FC;
  --bg-subtle-15: #F7F9FC;
  --bg-muted: #EEF1F6;
  --bg-muted-2: #EEF1F6;
  --bg-muted-3: #EEF1F6;
  --bg-muted-4: #EEF1F6;
  --bg-muted-5: #EEF1F6;
  --bg-muted-6: #EEF1F6;
  --bg-muted-7: #EEF1F6;
  --bg-muted-8: #EEF1F6;
  --bg-muted-9: #E3E8F0;
  --bg-muted-10: #EEF1F6;
  --bg-muted-12: #EEF1F6;
  --bg-muted-13: #E3E8F0;
  --bg-track: #DDE2EA;
  --bg-track-3: #C4CBD8;
  --bg-track-4: #C4CBD8;
  --bg-track-5: #9AA5B8;
  --bg-track-6: #DCE6FB;
  --bg-hover: #F3F7FF;
  --bg-selected: #E9EFFD;
  --bg-selected-2: #D7E5FD;
  --bg-selected-3: #E9EFFD;
  --bg-selected-4: #E9EFFD;
  --bg-selected-5: #E9EFFD;
  --bg-selected-6: #E9EFFD;
  --bg-ink: #0F1A2B;
  --tint-info: #EAF0FE;
  --tint-success: #E5F8F0;
  --tint-success-3: #E5F8F0;
  --tint-success-4: #E5F8F0;
  --tint-success-5: #D9F5E8;
  --tint-danger: #FDECEF;
  --tint-danger-3: #FDECEF;
  --tint-danger-4: #FDECEF;
  --tint-warning: #FFF3DF;
  --tint-warning-2: #FFF3DF;
  --tint-warning-4: #FFF3DF;
  --tint-warning-5: #FFF3DF;
  --tint-warning-6: #FFF3DF;
  --tint-warning-7: #FDE9A9;
  --tint-purple: #EFEAFE;
  --primary: #2563EB;
  --primary-2: #2563EB;
  --primary-3: #3B82F6;
  --primary-7: #3568F4;
  --primary-8: #2563EB;
  --primary-hover: #2456D6;
  --primary-hover-3: #2957BF;
  --primary-hover-4: #2449CC;
  --success: #16A34A;
  --success-2: #22A55B;
  --success-3: #18B869;
  --success-4: #22B573;
  --success-5: #22C55E;
  --danger: #EF3B4A;
  --danger-2: #EF4B5B;
  --danger-3: #EF3B3B;
  --warning: #F5A623;
  --orange: #F97316;
  --purple: #6D4AFF;
  --text-primary-2: #0F1A2B;
  --text-secondary-2: #2B3757;
  --text-secondary-3: #2B3757;
  --text-secondary-4: #2B3757;
  --text-secondary-5: #3A4459;
  --text-secondary-6: #3A4459;
  --text-secondary-7: #3A4459;
  --text-secondary-8: #3A4459;
  --text-tertiary: #4B5470;
  --text-tertiary-2: #4B5470;
  --text-tertiary-3: #4B5470;
  --text-muted: #6B7690;
  --text-muted-2: #8A93AB;
  --text-disabled: #9AA5B8;
  --text-disabled-2: #B0B9C9;
  --text-disabled-3: #B0B9C9;
  --text-disabled-4: #C9D1DE;
  --text-link: #2563EB;
  --text-link-2: #1D55F9;
  --text-link-3: #2563EB;
  --text-link-4: #2563EB;
  --text-link-5: #1D4ED8;
  --text-link-6: #1D4ED8;
  --text-link-7: #2563EB;
  --text-success: #16A34A;
  --text-success-2: #1C825B;
  --text-success-3: #16A34A;
  --text-success-4: #1FA75E;
  --text-success-5: #0F9A54;
  --text-success-6: #1FA75E;
  --text-success-7: #22C55E;
  --text-success-8: #1FA75E;
  --text-danger: #D62F3F;
  --text-danger-2: #E63946;
  --text-danger-3: #E63946;
  --text-danger-4: #E11D31;
  --text-danger-5: #E63946;
  --text-warning: #C4780F;
  --text-warning-2: #D98A1E;
  --text-warning-3: #E08A0B;
  --text-warning-4: #F08A1D;
  --text-warning-5: #F5A623;
  --text-warning-6: #F59E0B;
  --text-purple: #6D4AFF;
  --text-purple-2: #5B3FD6;
  --text-purple-3: #6D4AFF;
  --text-purple-4: #5860E0;
  --text-orange: #F97316;
  --border-default: #E1E6EF;
  --border-default-2: #E1E6EF;
  --border-default-3: #E1E6EF;
  --border-default-4: #E1E6EF;
  --border-default-5: #E1E6EF;
  --border-default-6: #E1E6EF;
  --border-default-7: #E1E6EF;
  --border-default-8: #EDF0F5;
  --border-subtle: #E9EDF3;
  --border-subtle-2: #E9EDF3;
  --border-subtle-3: #E9EDF3;
  --border-subtle-4: #E9EDF3;
  --border-strong: #D3DAE6;
  --border-strong-2: #9AA5B8;
  --border-primary: #C7D7FA;
  --focus-ring: rgba(37, 99, 235, .55);
  /* Fill counterparts of the text tokens: identical to them in light, but a
     darker value in dark so white text on them still clears 4.5:1. */
  --fill-accent-2: #2260F5;
  --fill-success:  #16A34A;
  --fill-success-2:#1C825B;
  --fill-danger:   #D62F3F;
  --fill-danger-2: #E63946;

  /* Text counterparts of the fill tokens: the same colour in light, a lighter
     one in dark so they stay readable on the dark surface. */
  --fg-success: #16A34A;
  --fg-green: #22A55B;
  --fg-success-8: #13A45F;
  --fg-success-9: #0F9354;
  --fg-warning: #F5A623;
  --fg-amber: #F5A623;
  --fg-danger: #EF3B4A;
  --fg-danger-3: #EF3B3B;
  --fg-red: #EF4B5B;
  --fg-purple: #6D4AFF;
  --fg-orange: #F97316;
  --border-primary-2: #C7D7FA;
  --border-primary-3: #B9CBF5;
  --border-primary-4: #DCE6FB;
  --border-primary-5: #6B8DF0;
  --border-primary-6: #2C63F0;
  --border-primary-7: #2C63F0;
  --border-success: #ABE5CB;
  --border-success-2: #CFEFDF;
  --border-success-3: #CFEFDF;
  --border-success-4: #22A55B;
  --border-danger: #F3C2C8;
  --border-danger-2: #EFA4AD;
  --border-danger-3: #EF3B4A;
  --border-danger-4: #EF4B5B;
  --border-warning: #F5A623;
  --border-white: #FFFFFF;
  --text-link-9: #33426E;
  --text-secondary-9: #5F6B85;
  --tint-success-7: #E5F8F0;
  --text-success-9: #1A9156;
  --primary-9: #2563EB;
  --primary-10: #6A40FB;
  --tint-warning-8: #FFF3DF;
  --text-warning-7: #F79B35;
  --border-primary-8: #E8ECF3;
  --border-primary-9: #DCE2EC;
  --text-link-10: #223A66;
  --success-7: #22A55B;
  --text-link-11: #24304A;
  --bg-selected-7: #E9EFFD;
  --border-primary-10: #DCE6FB;
  --tint-success-8: #E5F8F0;
  --border-success-6: #CFEFDF;
  --bg-selected-8: #E8E1FF;
  --text-link-12: #5A3BF3;
  --tint-success-9: #D9F5E8;
  --text-link-13: #3F28D6;
  --text-success-10: #10261C;
  --text-link-14: #6E71A0;
  --text-success-11: #3A8A66;
  --success-8: #13A45F;
  --success-9: #0F9354;
  --bg-selected-9: #E9EFFD;
  --text-link-15: #55617D;
  --primary-11: #4F2FF7;
  --primary-12: #4527E6;
  --tint-success-10: #FDFEFE;
  --border-success-7: #BFEAD7;
  --text-success-12: #1B5E45;
  --border-success-8: #9EDCC2;
  --primary-13: #2563EB;
  --primary-14: #2A47C9;
  --tint-success-11: #E5F8F0;
  --text-success-13: #1A9156;
  --text-link-16: #55617D;
  --border-primary-11: #C5CDDA;
  --text-link-17: #1D55F9;
  --text-muted-3: #7D88A3;
  --success-10: #039A4B;
  --bg-track-7: #C4CBD8;
  --text-link-18: #7783A4;
  --tint-warning-9: #FFF3DF;
  --primary-15: #2C71FE;
  --success-11: #22B573;
  --bg-selected-10: #E9EFFD;
  --primary-16: #1F2937;
  --primary-17: #94A3B8;
  --text-danger-7: #B42331;
  --text-danger-8: #C04B58;
  --border-primary-12: #DCE6FB;
  --bg-selected-11: #E9EFFD;
  --primary-18: #4353F0;
  --primary-19: #3644D8;
  --success-12: #006A4E;
  --bg-selected-12: #DCE2EB;
  --tint-success-12: #E5F8F0;
  --border-primary-13: #C7D7FA;
  --text-success-14: #146C3E;
  --text-disabled-6: #B0B9C9;
  --bg-selected-13: #E9EFFD;
  --tint-danger-5: #FDECEF;
  --tint-danger-6: #FFFBFB;
  --border-danger-5: #F6E3E6;
  --bg-selected-14: #F6F8FC;
  --tint-success-13: #E5F8F0;
  --primary-20: #1F2937;
  --border-primary-14: #C5CDDA;
  --bg-selected-15: #E9EFFD;
  --border-danger-6: #F3C2C8;
  --primary-21: #142033;
  --primary-22: #1F2937;
  --border-primary-15: #DCE6FB;
  --primary-23: #2B3648;
  --primary-24: #9DBBF6;
  --bg-track-8: #8A93AB;
  --tint-danger-7: #FBDDE2;
  --text-warning-8: #8A5A0B;
  --bg-selected-16: #E9EFFD;
  --tint-success-14: #E5F8F0;
  --tint-danger-8: #FDECEF;
  --border-danger-7: #F6E3E6;
  --bg-selected-17: #DCE2EB;
  --ink-04: rgba(15, 23, 42, .04);
  --ink-05: rgba(15, 23, 42, .05);
  --ink-06: rgba(15, 23, 42, .06);
  --ink-08: rgba(15, 23, 42, .08);
  --ink-1: rgba(15, 23, 42, .1);
  --ink-12: rgba(15, 23, 42, .12);
  --ink-2: rgba(15, 23, 42, .2);
  --ink-28: rgba(15, 23, 42, .28);

  /* ---- shared component tokens -------------------------------------------
     Roles that used to be re-declared per page inside a dark override. The
     light values below are byte-identical to what those pages shipped, so the
     light theme is unchanged; the dark block re-points them at the core. */
  --logo-tile:         #0B1220;   /* tile behind a brand wordmark */
  --logo-tile-deep:    var(--bg-ink);
  --logo-tile-ring:    transparent;
  --tone-slate:        #64748B;   /* neutral provider/avatar fill */
  --tone-slate-2:      #475569;
  --btn-soft-bg:       #E8F0FD;   /* tinted secondary button / pill */
  --btn-soft-bg-hover: rgba(37, 99, 235, .12);
  --btn-soft-bg-hover-2:#E2EDFE;
  --btn-soft-fg:       var(--text-link);
  --btn-ink-bg:        #1E293B;   /* solid dark button */
  --btn-ink-bg-hover:  #0F1B2D;
  --btn-ink-fg:        #FFFFFF;
  --star-on:           #F5A623;
  --shadow-drawer-c:   rgba(15, 26, 43, .13);
  --shadow-tip-c:      rgba(15, 26, 41, .12);
  --map-land:          #D1ECF2;   /* choropleth base */
  --map-land-line:     #FFFFFF;
  --map-accent:        #A4B2E0;
  --map-bg:            var(--bg-subtle);
  --map-stroke:        var(--bg-surface);
  --map-stroke-hi:     #FFFFFF;
  --map-pin-stroke:    #FFFFFF;
  --bm-map-0:          #D2DCEA;   /* choropleth ramp (bookmaker detail) */
  --bm-map-1:          #9CC6F8;
  --bm-map-2:          #6BA5F3;
  --bm-map-3:          #3B82F6;
  --bm-map-4:          #1D4FD8;

  /* notice / status panels (settings + system pages) */
  --note-amber-bg:     #FFF6E8;
  --note-amber-fg:     #D4531B;
  --note-purple-bg:    #F3EEFE;
  --status-ok-border:  #C6EBD6;
  --status-warn-border:#F6DCAF;
  --btn-ghost-hover:   #DCE7FD;
  --border-field:      #C9D8F6;
  --border-danger:     #F5B5BD;
  --panel-danger-bg:   #FDECEE;
  --panel-danger-bd:   #F8D5DA;
  --panel-danger-ico:  #FBDADF;
  --panel-danger-fg:   #B3243A;
  --panel-danger-sub:  #9A4B5A;
  --hero-ink-grad:     linear-gradient(118deg, #0A1C3C 0%, #10294F 46%, #071633 100%);
  --badge-warn-fg:     #B26A0B;
  --btn-danger-solid:  #F2445A;
  --btn-danger-solid-h:#DE3348;
  --btn-disabled-bg:   var(--border-default);
  --btn-disabled-fg:   var(--bg-surface);
  /* the Advanced tab's reset panel and DB tile ship their own light reds */
  --panel-danger-fg-2: #E23B4E;
  --panel-danger-sub-2:#7C4350;
  --driver-danger-fg:  #D33A4C;
  --driver-danger-sub: #C4566A;
  /* initial-avatar ramp — white initials sit on these */
  --av-t0: #1F2937; --av-t1: #DC2626; --av-t2: #EA580C;
  --av-t3: #059669; --av-t4: #0891B2; --av-t5: #2563EB;
}

html[data-theme="dark"] {
  color-scheme: dark;

  /* ===== CORE DARK PALETTE =================================================
     The only place a raw colour appears in the dark theme. Every legacy token
     below points at one of these, so a change here moves the whole app.
     ---------------------------------------------------------------------- */

  /* surfaces — a deep neutral base (never pure black), five readable steps */
  --d-bg:            #070F1A;   /* page */
  --d-surface:       #0D1B29;   /* card */
  --d-surface-2:     #122334;   /* nested card, subtle fill */
  --d-surface-3:     #18293C;   /* muted fill */
  --d-track:         #24384D;   /* progress / slider track */
  --d-hover:         #16293C;
  --d-selected:      #16344F;
  --d-input:         #0A1622;
  --d-sidebar:       #06111C;
  --d-sidebar-2:     #04101A;

  /* borders — visible without being harsh */
  --d-border:        #22384D;
  --d-border-soft:   #1A2C3F;
  --d-border-card:   #1D3245;
  --d-border-strong: #2C4560;

  /* text — every step clears 4.5:1 on --d-surface */
  --d-text:          #F5F8FB;   /* 17.0:1 */
  --d-text-2:        #DCE5EF;   /* 13.2:1 */
  --d-text-3:        #BCCAD9;   /*  9.4:1 */
  --d-muted:         #93A6BA;   /*  6.9:1 */
  --d-muted-2:       #8195AA;   /*  5.6:1 */
  --d-muted-3:       #778BA1;   /*  4.8:1 — was #61758A at 3.99:1 */

  /* accent — fill and text are different jobs and cannot share one value:
     text on dark needs L>=0.22, a fill behind white text needs L<=0.18 */
  --d-accent:        #1B5FCB;   /* fill; white on it = 5.9:1 */
  --d-accent-hover:  #2470E0;   /* fill hover; white on it = 4.7:1 */
  --d-accent-text:   #5AA2FF;   /* text; 6.7:1 on surface, 6.0:1 on its tint */
  --d-accent-border: #2F6BB8;

  /* semantic — retuned for dark rather than reused from light */
  --d-success:       #0B7A55;   --d-success-text: #3FDCA0;
  --d-warn:          #96610A;   --d-warn-text:    #FDBE3D;
  --d-danger:        #C0344A;   --d-danger-text:  #FF8A9B;
  --d-purple:        #6D4FD6;   --d-purple-text:  #A98BFF;
  --d-orange-text:   #FDA34B;

  /* tinted panels — low-opacity overlays of the semantic colour, not the
     light-mode tints reused */
  --d-tint-accent:   rgba(90, 162, 255, .14);
  --d-tint-success:  rgba(63, 220, 160, .13);
  --d-tint-warn:     rgba(253, 190, 61, .13);
  --d-tint-danger:   rgba(255, 138, 155, .13);
  --d-tint-purple:   rgba(169, 139, 255, .14);
  --d-tint-neutral:  rgba(147, 166, 186, .10);

  /* rings on tinted panels */
  --d-ring-accent:   rgba(90, 162, 255, .34);
  --d-ring-success:  rgba(63, 220, 160, .34);
  --d-ring-warn:     rgba(253, 190, 61, .34);
  --d-ring-danger:   rgba(255, 138, 155, .34);

  /* chart series — readable on the dark surface, distinguishable from each other */
  --d-chart-1:       #4DA3FF;
  --d-chart-2:       #3FDCA0;
  --d-chart-3:       #FDBE3D;
  --d-chart-4:       #FF8A9B;
  --d-chart-5:       #A98BFF;

  --d-focus:         rgba(90, 162, 255, .55);
  --focus-ring:      var(--d-focus);
  --fill-accent-2:   var(--d-accent);
  --fill-success:    var(--d-success);
  --fill-success-2:  var(--d-success);
  --fill-danger:     var(--d-danger);
  --fill-danger-2:   var(--d-danger);
  --fg-success:   var(--d-success-text);
  --fg-green:   var(--d-success-text);
  --fg-success-8:   var(--d-success-text);
  --fg-success-9:   var(--d-success-text);
  --fg-warning:   var(--d-warn-text);
  --fg-amber:   var(--d-warn-text);
  --fg-danger:   var(--d-danger-text);
  --fg-danger-3:   var(--d-danger-text);
  --fg-red:   var(--d-danger-text);
  --fg-purple:   var(--d-purple-text);
  --fg-orange:   var(--d-orange-text);
  --d-overlay:       rgba(2, 8, 16, .72);

  /* component roles that need their own dark value (core literals) */
  --d-logo-tile:      #0F172A;
  --d-logo-tile-deep: #060E18;
  --d-logo-ring:      rgba(255, 255, 255, .07);
  --d-tone-slate:     #33465C;
  --d-btn-ink:        #334155;
  --d-btn-ink-hover:  #415167;
  --d-tint-accent-2:  rgba(90, 162, 255, .24);
  --d-map-land:       #17384A;
  --d-map-accent:     #3E5F86;
  --d-map-bg:         rgba(148, 163, 184, .06);
  --d-map-stroke:     rgba(15, 23, 42, .85);
  --d-map-stroke-hi:  rgba(15, 23, 42, .90);
  --d-shadow-lg:      rgba(0, 0, 0, .50);
  --d-shadow-md:      rgba(0, 0, 0, .45);
  --d-danger-hover:   #D33E56;   /* white on it = 4.6:1 */

  /* ramps: choropleth steps and the initial-avatar palette */
  --d-bm-map-0:       #1E293B;
  --d-bm-map-1:       #24507F;
  --d-bm-map-2:       #2C6BAE;
  --d-bm-map-3:       #3B82F6;
  --d-bm-map-4:       #60A5FA;
  --d-av-t2:          #C2410C;   /* white 5.1:1 (was 3.6) */
  --d-av-t3:          #047857;   /* white 5.6:1 (was 3.8) */
  --d-av-t4:          #0E7490;   /* white 5.4:1 (was 3.7) */

  /* shared component tokens, re-pointed */
  --logo-tile:         var(--d-logo-tile);
  --logo-tile-deep:    var(--d-logo-tile-deep);
  --logo-tile-ring:    var(--d-logo-ring);
  --tone-slate:        var(--d-tone-slate);
  --tone-slate-2:      var(--d-tone-slate);
  --btn-soft-bg:       var(--d-tint-accent);
  --btn-soft-bg-hover: var(--d-tint-accent-2);
  --btn-soft-bg-hover-2:var(--d-tint-accent-2);
  --btn-soft-fg:       var(--d-accent-text);
  --btn-ink-bg:        var(--d-btn-ink);
  --btn-ink-bg-hover:  var(--d-btn-ink-hover);
  --btn-ink-fg:        var(--d-text);
  --star-on:           var(--d-warn-text);
  --shadow-drawer-c:   var(--d-shadow-lg);
  --shadow-tip-c:      var(--d-shadow-md);
  --map-land:          var(--d-map-land);
  --map-land-line:     var(--bg-surface);
  --map-accent:        var(--d-map-accent);
  --map-bg:            var(--d-map-bg);
  --map-stroke:        var(--d-map-stroke);
  --map-stroke-hi:     var(--d-map-stroke-hi);
  --map-pin-stroke:    var(--d-logo-tile);
  --bm-map-0:          var(--d-bm-map-0);
  --bm-map-1:          var(--d-bm-map-1);
  --bm-map-2:          var(--d-bm-map-2);
  --bm-map-3:          var(--d-bm-map-3);
  --bm-map-4:          var(--d-bm-map-4);

  /* notice / status panels */
  --d-panel-danger-sub: #C79AA4;
  --d-hero-grad:       linear-gradient(120deg, #071427 0%, #0D2547 48%, #060F1F 100%);
  --note-amber-bg:     var(--d-tint-warn);
  --note-amber-fg:     var(--d-warn-text);
  --note-purple-bg:    var(--d-tint-purple);
  --status-ok-border:  var(--d-ring-success);
  --status-warn-border:var(--d-ring-warn);
  --btn-ghost-hover:   var(--d-tint-accent-2);
  --border-field:      var(--d-border-strong);
  --border-danger:     var(--d-ring-danger);
  --panel-danger-bg:   var(--d-tint-danger);
  --panel-danger-bd:   var(--d-ring-danger);
  --panel-danger-ico:  var(--d-tint-danger);
  --panel-danger-fg:   var(--d-danger-text);
  --panel-danger-sub:  var(--d-panel-danger-sub);
  --hero-ink-grad:     var(--d-hero-grad);
  --badge-warn-fg:     var(--d-warn-text);
  --btn-danger-solid:  var(--d-danger);
  --btn-danger-solid-h:var(--d-danger-hover);
  --btn-disabled-bg:   var(--d-surface-3);
  --btn-disabled-fg:   var(--d-muted-2);
  --panel-danger-fg-2: var(--d-danger-text);
  --panel-danger-sub-2:var(--d-panel-danger-sub);
  --driver-danger-fg:  var(--d-danger-text);
  --driver-danger-sub: var(--d-panel-danger-sub);
  /* three of the six ramp stops are too light for white text on dark */
  --av-t2: var(--d-av-t2);
  --av-t3: var(--d-av-t3);
  --av-t4: var(--d-av-t4);

  /* ===== legacy token names, re-pointed at the core ===================== */

  --chart-grid: var(--d-border-card);
  --chart-tick: var(--d-muted);
  --chart-tooltip-bg: var(--d-surface-2);
  --chart-tooltip-border: var(--d-border);
  --chart-tooltip-text: var(--d-text);
  --bg-input: var(--d-input);
  --bg-overlay: var(--d-overlay);
  --scrollbar-thumb: var(--d-border-strong);
  --scrollbar-track: var(--d-input);
  --selection-bg: var(--d-ring-accent);
  --sidebar-bg: var(--d-sidebar);
  --sidebar-bg-2: var(--d-sidebar-2);
  --sidebar-text: var(--d-text-3);
  --sidebar-muted: var(--d-muted);
  --sidebar-icon-muted: var(--d-muted-2);
  --sidebar-active: var(--d-accent);
  --sidebar-grad-a: var(--d-sidebar);
  --sidebar-grad-b: var(--d-sidebar-2);
  --sidebar-active-a: var(--d-accent-hover);
  --sidebar-active-b: var(--d-accent);
  --sidebar-active-glow: var(--d-ring-accent);
  --sidebar-hover: var(--d-tint-neutral);
  --sidebar-guide: var(--d-tint-neutral);
  --sidebar-edge: var(--d-tint-neutral);
  --sidebar-accent: var(--d-accent-text);
  --chart-revenue: var(--d-chart-2);
  --chart-expenses: var(--d-chart-4);
  --chart-profit: var(--d-chart-1);
  --chart-traffic: var(--d-chart-5);
  --chart-neutral: var(--d-muted);
  --sidebar-border: var(--d-border-card);
  --page-bg: var(--d-bg);
  --topbar-bg: var(--d-input);
  --surface: var(--d-surface);
  --surface-soft: var(--d-surface-2);
  --border: var(--d-border);
  --border-soft: var(--d-border-soft);
  --card-border: var(--d-border-card);
  --text: var(--d-text);
  --text-2: var(--d-text-2);
  --text-3: var(--d-text-3);
  --muted: var(--d-muted);
  --muted-2: var(--d-muted-2);
  --blue: var(--d-accent);
  --blue-link: var(--d-accent-text);
  --blue-2: var(--d-accent);
  --green: var(--d-success);
  --green-text: var(--d-success-text);
  --green-soft: var(--d-tint-success);
  --red: var(--d-danger);
  --red-text: var(--d-danger-text);
  --red-soft: var(--d-tint-danger);
  --amber: var(--d-warn);
  --amber-text: var(--d-warn-text);
  --amber-soft: var(--d-tint-warn);
  --purple: var(--d-purple);
  --purple-soft: var(--d-tint-purple);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
  --bg-surface: var(--d-surface);
  --bg-surface-3: var(--d-surface);
  --bg-subtle: var(--d-surface-2);
  --bg-subtle-2: var(--d-surface-2);
  --bg-subtle-3: var(--d-surface-2);
  --bg-subtle-4: var(--d-surface-2);
  --bg-subtle-5: var(--d-surface-2);
  --bg-subtle-6: var(--d-surface-2);
  --bg-subtle-7: var(--d-surface-2);
  --bg-subtle-8: var(--d-surface-2);
  --bg-subtle-9: var(--d-surface-2);
  --bg-subtle-10: var(--d-surface-2);
  --bg-subtle-11: var(--d-surface-2);
  --bg-subtle-12: var(--d-surface-2);
  --bg-subtle-13: var(--d-surface-2);
  --bg-subtle-14: var(--d-surface-2);
  --bg-subtle-15: var(--d-surface-2);
  --bg-muted: var(--d-surface-3);
  --bg-muted-2: var(--d-surface-3);
  --bg-muted-3: var(--d-surface-3);
  --bg-muted-4: var(--d-surface-3);
  --bg-muted-5: var(--d-surface-3);
  --bg-muted-6: var(--d-surface-3);
  --bg-muted-7: var(--d-surface-3);
  --bg-muted-8: var(--d-surface-3);
  --bg-muted-9: var(--d-surface-3);
  --bg-muted-10: var(--d-surface-3);
  --bg-muted-12: var(--d-surface-3);
  --bg-muted-13: var(--d-surface-3);
  --bg-track: var(--d-track);
  --bg-track-3: var(--d-track);
  --bg-track-4: var(--d-track);
  --bg-track-5: var(--d-track);
  --bg-track-6: var(--d-track);
  --bg-hover: var(--d-hover);
  --bg-selected: var(--d-selected);
  --bg-selected-2: var(--d-selected);
  --bg-selected-3: var(--d-selected);
  --bg-selected-4: var(--d-selected);
  --bg-selected-5: var(--d-selected);
  --bg-selected-6: var(--d-selected);
  --bg-ink: var(--d-surface-3);
  --tint-info: var(--d-tint-accent);
  --tint-success: var(--d-tint-success);
  --tint-success-3: var(--d-tint-success);
  --tint-success-4: var(--d-tint-success);
  --tint-success-5: var(--d-tint-success);
  --tint-danger: var(--d-tint-danger);
  --tint-danger-3: var(--d-tint-danger);
  --tint-danger-4: var(--d-tint-danger);
  --tint-warning: var(--d-tint-warn);
  --tint-warning-2: var(--d-tint-warn);
  --tint-warning-4: var(--d-tint-warn);
  --tint-warning-5: var(--d-tint-warn);
  --tint-warning-6: var(--d-tint-warn);
  --tint-warning-7: var(--d-tint-warn);
  --tint-purple: var(--d-tint-purple);
  --primary: var(--d-accent);
  --primary-2: var(--d-accent);
  --primary-3: var(--d-accent);
  --primary-7: var(--d-accent);
  --primary-8: var(--d-accent);
  --primary-hover: var(--d-accent-hover);
  --primary-hover-3: var(--d-accent-hover);
  --primary-hover-4: var(--d-accent-hover);
  --success: var(--d-success);
  --success-2: var(--d-success);
  --success-3: var(--d-success);
  --success-4: var(--d-success);
  --success-5: var(--d-success);
  --danger: var(--d-danger);
  --danger-2: var(--d-danger);
  --danger-3: var(--d-danger);
  --warning: var(--d-warn);
  --orange: var(--d-orange-text);
  --purple: var(--d-purple);
  --text-primary-2: var(--d-text);
  --text-secondary-2: var(--d-text-2);
  --text-secondary-3: var(--d-text-2);
  --text-secondary-4: var(--d-text-2);
  --text-secondary-5: var(--d-text-2);
  --text-secondary-6: var(--d-text-2);
  --text-secondary-7: var(--d-text-2);
  --text-secondary-8: var(--d-text-2);
  --text-tertiary: var(--d-text-3);
  --text-tertiary-2: var(--d-text-3);
  --text-tertiary-3: var(--d-text-3);
  --text-muted: var(--d-muted);
  --text-muted-2: var(--d-muted);
  --text-disabled: var(--d-muted-3);
  --text-disabled-2: var(--d-muted-3);
  --text-disabled-3: var(--d-muted-3);
  --text-disabled-4: var(--d-muted-3);
  --text-link: var(--d-accent-text);
  --text-link-2: var(--d-accent-text);
  --text-link-3: var(--d-accent-text);
  --text-link-4: var(--d-accent-text);
  --text-link-5: var(--d-accent-text);
  --text-link-6: var(--d-accent-text);
  --text-link-7: var(--d-accent-text);
  --text-success: var(--d-success-text);
  --text-success-2: var(--d-success-text);
  --text-success-3: var(--d-success-text);
  --text-success-4: var(--d-success-text);
  --text-success-5: var(--d-success-text);
  --text-success-6: var(--d-success-text);
  --text-success-7: var(--d-success-text);
  --text-success-8: var(--d-success-text);
  --text-danger: var(--d-danger-text);
  --text-danger-2: var(--d-danger-text);
  --text-danger-3: var(--d-danger-text);
  --text-danger-4: var(--d-danger-text);
  --text-danger-5: var(--d-danger-text);
  --text-warning: var(--d-warn-text);
  --text-warning-2: var(--d-warn-text);
  --text-warning-3: var(--d-warn-text);
  --text-warning-4: var(--d-warn-text);
  --text-warning-5: var(--d-warn-text);
  --text-warning-6: var(--d-warn-text);
  --text-purple: var(--d-purple-text);
  --text-purple-2: var(--d-purple-text);
  --text-purple-3: var(--d-purple-text);
  --text-purple-4: var(--d-purple-text);
  --text-orange: var(--d-orange-text);
  --border-default: var(--d-border);
  --border-default-2: var(--d-border);
  --border-default-3: var(--d-border);
  --border-default-4: var(--d-border);
  --border-default-5: var(--d-border);
  --border-default-6: var(--d-border);
  --border-default-7: var(--d-border);
  --border-default-8: var(--d-border);
  --border-subtle: var(--d-border-soft);
  --border-subtle-2: var(--d-border-soft);
  --border-subtle-3: var(--d-border-soft);
  --border-subtle-4: var(--d-border-soft);
  --border-strong: var(--d-border-strong);
  --border-strong-2: var(--d-border-strong);
  --border-primary: var(--d-accent-border);
  --border-primary-2: var(--d-accent-border);
  --border-primary-3: var(--d-accent-border);
  --border-primary-4: var(--d-accent-border);
  --border-primary-5: var(--d-accent-border);
  --border-primary-6: var(--d-accent-border);
  --border-primary-7: var(--d-accent-border);
  --border-success: var(--d-ring-success);
  --border-success-2: var(--d-ring-success);
  --border-success-3: var(--d-ring-success);
  --border-success-4: var(--d-ring-success);
  --border-danger: var(--d-ring-danger);
  --border-danger-2: var(--d-ring-danger);
  --border-danger-3: var(--d-ring-danger);
  --border-danger-4: var(--d-ring-danger);
  --border-warning: var(--d-ring-warn);
  --border-white: var(--d-surface);
  --text-link-9: var(--d-accent-text);
  --text-secondary-9: var(--d-text-2);
  --tint-success-7: var(--d-tint-success);
  --text-success-9: var(--d-success-text);
  --primary-9: var(--d-accent);
  --primary-10: var(--d-accent);
  --tint-warning-8: var(--d-tint-warn);
  --text-warning-7: var(--d-warn-text);
  --border-primary-8: var(--d-accent-border);
  --border-primary-9: var(--d-accent-border);
  --text-link-10: var(--d-accent-text);
  --success-7: var(--d-success);
  --text-link-11: var(--d-accent-text);
  --bg-selected-7: var(--d-selected);
  --border-primary-10: var(--d-accent-border);
  --tint-success-8: var(--d-tint-success);
  --border-success-6: var(--d-ring-success);
  --bg-selected-8: var(--d-selected);
  --text-link-12: var(--d-accent-text);
  --tint-success-9: var(--d-tint-success);
  --text-link-13: var(--d-accent-text);
  --text-success-10: var(--d-success-text);
  --text-link-14: var(--d-accent-text);
  --text-success-11: var(--d-success-text);
  --success-8: var(--d-success);
  --success-9: var(--d-success);
  --bg-selected-9: var(--d-selected);
  --text-link-15: var(--d-accent-text);
  --primary-11: var(--d-accent);
  --primary-12: var(--d-accent);
  --tint-success-10: var(--d-tint-success);
  --border-success-7: var(--d-ring-success);
  --text-success-12: var(--d-success-text);
  --border-success-8: var(--d-ring-success);
  --primary-13: var(--d-accent);
  --primary-14: var(--d-accent);
  --tint-success-11: var(--d-tint-success);
  --text-success-13: var(--d-success-text);
  --text-link-16: var(--d-accent-text);
  --border-primary-11: var(--d-accent-border);
  --text-link-17: var(--d-accent-text);
  --text-muted-3: var(--d-muted);
  --success-10: var(--d-success);
  --bg-track-7: var(--d-track);
  --text-link-18: var(--d-accent-text);
  --tint-warning-9: var(--d-tint-warn);
  --primary-15: var(--d-accent);
  --success-11: var(--d-success);
  --bg-selected-10: var(--d-selected);
  --primary-16: var(--d-accent);
  --primary-17: var(--d-accent);
  --text-danger-7: var(--d-danger-text);
  --text-danger-8: var(--d-danger-text);
  --border-primary-12: var(--d-accent-border);
  --bg-selected-11: var(--d-selected);
  --primary-18: var(--d-accent);
  --primary-19: var(--d-accent);
  --success-12: var(--d-success);
  --bg-selected-12: var(--d-selected);
  --tint-success-12: var(--d-tint-success);
  --border-primary-13: var(--d-accent-border);
  --text-success-14: var(--d-success-text);
  --text-disabled-6: var(--d-muted-3);
  --bg-selected-13: var(--d-selected);
  --tint-danger-5: var(--d-tint-danger);
  --tint-danger-6: var(--d-tint-danger);
  --border-danger-5: var(--d-ring-danger);
  --bg-selected-14: var(--d-selected);
  --tint-success-13: var(--d-tint-success);
  --primary-20: var(--d-accent);
  --border-primary-14: var(--d-accent-border);
  --bg-selected-15: var(--d-selected);
  --border-danger-6: var(--d-ring-danger);
  --primary-21: var(--d-accent);
  --primary-22: var(--d-accent);
  --border-primary-15: var(--d-accent-border);
  --primary-23: var(--d-accent);
  --primary-24: var(--d-accent);
  --bg-track-8: var(--d-track);
  --tint-danger-7: var(--d-tint-danger);
  --text-warning-8: var(--d-warn-text);
  --bg-selected-16: var(--d-selected);
  --tint-success-14: var(--d-tint-success);
  --tint-danger-8: var(--d-tint-danger);
  --border-danger-7: var(--d-ring-danger);
  --bg-selected-17: var(--d-selected);
  --ink-04: rgba(0, 0, 0, .35);
  --ink-05: rgba(0, 0, 0, .40);
  --ink-06: rgba(0, 0, 0, .40);
  --ink-08: rgba(0, 0, 0, .45);
  --ink-1: rgba(0, 0, 0, .5);
  --ink-12: rgba(0, 0, 0, .55);
  --ink-2: rgba(0, 0, 0, .6);
  --ink-28: rgba(0, 0, 0, .7);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; }
table { border-collapse: collapse; border-spacing: 0; }

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 13px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  overflow: hidden;
  z-index: 30;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 0 0 6px;
  height: 66px;
  text-decoration: none;
  color: #fff;
}

.sidebar-brand-mark {
  width: 34px;
  height: 34px;
  margin-top: 1px;
}

.sidebar-brand-text { display: flex; flex-direction: column; }

.sidebar-brand-name {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -.3px;
  color: #fff;
  white-space: nowrap;
}

.sidebar-brand-pro { color: var(--text-purple-4); }

.sidebar-brand-tagline {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  color: #D8E0EC;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
/* The nav is taller than the viewport whenever a group is expanded, so the rows
   at the bottom (Reports / Alerts & Tasks) sit behind the pinned footer. Keep a
   thin overlay scrollbar so there is a visible hint that the nav scrolls —
   `overlay` means it paints on top and never reserves layout width. */
.sidebar-nav::-webkit-scrollbar { width: 6px; background: transparent; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { border-radius: 3px; background: transparent; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }

.nav-list { margin: 0; padding: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 31px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--sidebar-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s ease, color .12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-item-active, .nav-item-active:hover { background: var(--sidebar-active); color: #fff; }

.nav-icon { width: 16px; height: 16px; stroke-width: 1.9; }
.nav-label { flex: 1 1 auto; min-width: 0; }

/* collapsible groups (parent-style groups such as Sites/Bookmakers space like plain items) */
.nav-list > li:not(.nav-group) + .nav-group:not(.nav-group-parent),
.nav-list > li.nav-group-parent + .nav-group:not(.nav-group-parent) { margin-top: 4px; }
.nav-group:not(.nav-group-parent) + .nav-group:not(.nav-group-parent),
.nav-after-group { margin-top: 14px; }

.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 100%;
  height: 28px;
  padding: 0 9px 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.nav-group-toggle:hover { color: #C9D3E2; }
.nav-icon-group { width: 14px; height: 14px; color: var(--sidebar-icon-muted); }
.nav-chevron {
  width: 11px;
  height: 11px;
  margin-left: auto;
  color: var(--sidebar-muted);
  transition: transform .15s ease;
}
.nav-group.is-open > .nav-group-toggle .nav-chevron { transform: rotate(180deg); }
.nav-group:not(.is-open) > .nav-sub { display: none; }

/* A group that is also a link carries its own chevron button, sitting over the
   right edge of the row: the row navigates, the chevron opens and closes. */
.nav-group { position: relative; }
.nav-group-linked { padding-right: 34px; }
.nav-chevron-btn {
  position: absolute; top: 0; right: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 28px; padding: 0; z-index: 1;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--sidebar-muted); cursor: pointer;
}
.nav-chevron-btn-parent { height: 31px; right: 5px; }
.nav-chevron-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-chevron-btn .nav-chevron { margin-left: 0; }
.nav-group.is-open > .nav-chevron-btn .nav-chevron { transform: rotate(180deg); }
.nav-group-parent > .nav-item-active.nav-group-toggle + .nav-chevron-btn { color: #fff; }

.nav-item-sub {
  height: 28px;
  padding-left: 17px;
  gap: 18px;
}
.nav-item-sub .nav-icon { width: 15px; height: 15px; }

.sidebar-footer {
  margin-top: auto;
  padding: 30px 0 33px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% + 2px);
  margin-left: -1px;
  height: 35px;
  padding: 0 8px 0 13px;
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s ease, background-color .12s ease;
}
.sidebar-search:hover { border-color: #3B475C; background: rgba(255, 255, 255, .03); }
.sidebar-search .nav-icon { width: 13px; height: 13px; }

.kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #3A4557;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-disabled-3);
  white-space: nowrap;
}

.nav-item-settings { margin-top: 9px; }

/* group that is itself a link (Sites): looks like a normal item, children indented below */
.nav-group-parent > .nav-item.nav-group-toggle {
  height: 31px;
  padding: 0 12px;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sidebar-text);
}
.nav-group-parent > .nav-item.nav-group-toggle .nav-icon { width: 16px; height: 16px; color: inherit; }
.nav-group-parent > .nav-item-active.nav-group-toggle,
.nav-group-parent > .nav-item-active.nav-group-toggle:hover { background: var(--sidebar-active); color: #fff; }
.nav-group-parent > .nav-sub { margin-top: 6px; }
.sidebar.sidebar-compact .nav-list > li:not(.nav-group) + li.nav-group-parent { margin-top: 7px; }
.nav-group-parent .nav-item-sub { padding-left: 17px; gap: 13px; }
.nav-group-parent .nav-item-sub .nav-icon { width: 14px; height: 14px; }
.nav-group-parent .nav-item-sub.nav-item-active,
.nav-group-parent .nav-item-sub.nav-item-active:hover { background: var(--primary-hover-3); color: #fff; }

/* compact layout (All Sites): collapsed groups look like plain items */
.sidebar-compact .nav-list > li + li,
.sidebar-compact .nav-list > li.nav-group + li.nav-group,
.sidebar-compact .nav-list > li + li.nav-after-group,
.sidebar-compact .nav-list > li:not(.nav-group) + li.nav-group { margin-top: 4.5px; }
.sidebar-compact .nav-group:not(.nav-group-parent) > .nav-group-toggle {
  height: 31px;
  padding: 0 12px;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sidebar-text);
}
.sidebar-compact .nav-group:not(.nav-group-parent) > .nav-group-toggle:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sidebar-compact .nav-group:not(.nav-group-parent) > .nav-group-toggle .nav-icon-group { width: 16px; height: 16px; color: inherit; }
.sidebar-compact .nav-group:not(.nav-group-parent) > .nav-group-toggle .nav-chevron { width: 12px; height: 12px; color: var(--sidebar-muted); }
.sidebar-compact .sidebar-footer { padding-bottom: 29px; }
.nav-item-help { margin-top: 5px; }

.sidebar-version {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 63px;
  margin-top: 21px;
  padding: 0 12px;
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
}
.sidebar-version-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-8);
  padding: 4px;
  flex: 0 0 auto;
}
.sidebar-version-text { display: flex; flex-direction: column; gap: 2px; }
.sidebar-version-name { font-size: 12.5px; font-weight: 600; color: #fff; line-height: 15px; }
.sidebar-version-number { font-size: 11px; color: var(--sidebar-muted); line-height: 13px; }
.sidebar-version-edition { font-size: 11px; color: var(--sidebar-muted); line-height: 13px; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 25px 0 23px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-subtle-4);
}

.global-search {
  position: relative;
  width: 400px;
  height: 32px;
  margin: 0;
}
.global-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-tertiary-3);
  pointer-events: none;
}
.global-search-input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 37px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  outline: none;
  transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.global-search-input::placeholder { color: var(--muted-2); }
.global-search-input::-webkit-search-decoration,
.global-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.global-search-input:focus {
  background: var(--bg-surface);
  border-color: var(--border-primary-3);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.global-search-wide { width: 482px; }
.topbar-add { margin-right: 24px; }
.topbar-add .btn-sm { padding: 0 13px 0 12px; gap: 8px; font-size: 12.5px; }
.topbar-add .btn-icon { width: 14px; height: 14px; }

.topbar-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary-3);
  cursor: pointer;
}
.topbar-icon-btn:hover { background: var(--bg-muted-3); }
.topbar-icon-btn + .topbar-icon-btn { margin-left: 24px; }
.topbar-icon { width: 20px; height: 20px; stroke-width: 1.7; }
.topbar-icon-moon { width: 16px; height: 16px; fill: #33426E; color: var(--text-link-9); }

.topbar-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--danger-3);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 1.5px var(--topbar-bg);
}

.topbar-profile { position: relative; margin-left: 31px; }
.topbar-profile-btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-hover-4);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
}
.topbar-profile-text {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
}
.topbar-profile-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 15px;
  color: var(--text);
  white-space: nowrap;
}
.topbar-profile-role {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
  color: var(--muted-2);
}
.topbar-chevron {
  width: 14px;
  height: 14px;
  margin-left: 32px;
  color: var(--text-secondary-5);
  stroke-width: 2.2;
}

/* --------------------------------------------------------------------------
   Dropdowns / controls
   -------------------------------------------------------------------------- */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: none;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: 0 8px 24px var(--ink-08), 0 1px 3px var(--ink-05);
}
.dropdown-menu-left { right: auto; left: 0; }
.dropdown.is-open > .dropdown-menu,
.topbar-profile.is-open > .dropdown-menu { display: block; }
.dropdown-menu > a,
.dropdown-menu > button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dropdown-menu > a:hover,
.dropdown-menu > button:hover { background: var(--bg-subtle-9); color: var(--text); }

.control {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px 0 16px;
  border: 1px solid var(--border-default-6);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .12s ease, background-color .12s ease;
}
.control:hover { border-color: var(--border-strong); background: var(--bg-surface-3); }
.control-icon { width: 15px; height: 15px; margin-right: 6px; color: var(--text-secondary-2); }
.control-chevron { width: 12px; height: 12px; margin-left: auto; color: var(--text-secondary-5); stroke-width: 2.2; }
.control-date { width: 147px; font-size: 12.5px; }
.control-label { flex: 1 1 auto; text-align: left; }

/* --------------------------------------------------------------------------
   DASHBOARD
   -------------------------------------------------------------------------- */
.page-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 var(--content-pad-x) 18px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0 13px 3px;
}
.page-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -.3px;
  color: var(--text);
}
.wave { margin-left: 6px; font-size: 19px; }
.page-subtitle {
  margin-top: 2px;
  font-size: 13px;
  line-height: 16px;
  color: var(--text-tertiary-2);
}
.page-heading .dropdown { margin-top: 4px; }

/* grids */
.dashboard-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-grid > * { min-width: 0; }
.grid-kpi      { grid-template-columns: 580fr 697fr; margin-bottom: 9px; }
.grid-charts   { grid-template-columns: 525fr 458fr 282fr; margin-bottom: 13px; }
.grid-tables-1 { grid-template-columns: 440fr 462fr 365fr; gap: 11px; margin-bottom: 11px; }
.grid-tables-2 { grid-template-columns: 439fr 405fr 419fr; gap: 13px; margin-bottom: 14px; }
.grid-bottom   { grid-template-columns: 673fr 291fr 297fr; gap: 14px; margin-bottom: 0; }

/* cards */
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
}

.card-header {
  display: flex;
  align-items: center;
  height: 28px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -.1px;
  color: var(--text);
  white-space: nowrap;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
}
.card-icon .icon { width: 13px; height: 13px; stroke-width: 2; }
.card-icon-red    { background: var(--tint-danger-4); color: var(--text-danger-2); }
.card-icon-green  { background: var(--tint-success-3); color: var(--text-success-8); }
.card-icon-purple { background: var(--purple-soft); color: var(--text-purple-3); }

.view-all {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-link-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.view-all:hover { color: var(--text-link-5); }

/* KPI */
.kpi-group {
  display: flex;
  align-items: stretch;
  padding: 20px 0 16px;
}
.kpi-item {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 10px;
  margin: -4px 0;
}
.kpi-item + .kpi-item { border-left: 1px solid var(--border-soft); }

.kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 50%;
}
.kpi-icon > .icon { width: 19px; height: 19px; stroke-width: 1.9; }
.kpi-icon-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
}
.kpi-icon-dot .icon { width: 11px; height: 11px; stroke-width: 3; }

.kpi-icon-blue  { background: var(--tint-info); color: var(--text-link-5); }
.kpi-icon-green { background: var(--tint-success-3); color: var(--text-success-5); }
.kpi-icon-amber { background: var(--tint-warning-4); color: var(--text-warning-5); }
.kpi-icon-red   { background: var(--tint-danger-3); color: var(--text-danger-4); }
.kpi-icon-green .kpi-icon-dot { background: var(--success); }
.kpi-icon-amber .kpi-icon-dot { background: var(--warning); }
.kpi-icon-red   .kpi-icon-dot { background: var(--danger); }

.kpi-body { min-width: 0; margin-left: 9px; }
.kpi-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2);
  white-space: nowrap;
}
.kpi-value-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.kpi-value {
  font-size: 21px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -.4px;
  color: var(--text);
  white-space: nowrap;
}
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 5px 0 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.kpi-trend-icon { width: 10px; height: 10px; stroke-width: 2.6; }
.kpi-trend-up   { background: var(--green-soft); color: var(--text-success-6); }
.kpi-trend-down { background: var(--red-soft);   color: var(--text-danger-3); }
.kpi-sub {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  color: var(--text-secondary-9);
  white-space: nowrap;
}

/* Charts */
.chart-card { padding: 7px 12px 11px; }
.chart-card .card-header { height: 27px; }
.card-header > .dropdown { margin-left: auto; }

.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary-4);
}
.chart-legend-inline { margin-left: auto; gap: 10px; }
.chart-legend-row { height: 18px; margin: 2px 0 0 47px; gap: 18px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.control-legend {
  height: 24px;
  width: 104px;
  padding: 0 8px 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary-4);
}
.control-legend .legend-dot { margin-right: 7px; }
.control-legend .control-chevron { width: 11px; height: 11px; }
.control-range {
  height: 25px;
  width: 118px;
  padding: 0 8px 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.control-range .control-chevron { width: 11px; height: 11px; }

.chart-area { position: relative; width: 100%; }
.chart-area-traffic { height: 136px; }
.chart-area-finance { height: 116px; }
.chart-area canvas { display: block; width: 100% !important; height: 100% !important; }

.health-body {
  display: flex;
  align-items: center;
  height: 136px;
}
.donut-wrap {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
  height: 116px;
  margin-left: 13px;
}
.donut-wrap canvas { display: block; width: 116px !important; height: 116px !important; }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -.4px;
  color: var(--text);
}
.donut-label {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  color: var(--text-tertiary-2);
}
.health-legend {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 17px;
  padding-right: 11px;
}
.health-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24.5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary-4);
}
.health-legend-label { flex: 1 1 auto; white-space: nowrap; }
.health-legend-value { font-weight: 600; color: var(--text); }

/* Tables */
.table-card { padding: 8px 12px 6px; }
.table-card .card-header { height: 31px; }
.grid-tables-2 .table-card { padding: 9px 12px 6px; }
.grid-tables-2 .table-card .card-header { height: 24px; margin-bottom: 8px; }

.dashboard-table {
  width: 100%;
  table-layout: auto;
}
.dashboard-table th,
.dashboard-table td {
  padding: 0 6px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.dashboard-table th {
  height: 28px;
  background: var(--bg-subtle-11);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary-6);
}
.dashboard-table th:first-child { border-radius: 6px 0 0 6px; }
.dashboard-table th:last-child  { border-radius: 0 6px 6px 0; }
.dashboard-table td {
  height: 26px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table tbody tr:hover td { background: var(--bg-subtle-2); }

.table-rows-28 th { height: 26px; padding: 0 8px; }
.table-rows-28 td { height: 28px; padding: 0 8px; }

.table-link {
  color: var(--blue-link);
  font-weight: 500;
  text-decoration: none;
}
/* These link classes are used on <a> and on <button> (actions without a target
   page yet); reset the browser button chrome so both render identically. */
button.table-link,
button.fin-plain-link,
button.fin-detail-action,
button.fin-attachment-dl,
button.site-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.table-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.table-link-strong { font-weight: 600; }

/* column widths (percent of table width, from reference) */
.table-top-sites .col-num     { width: 6%; }
.table-top-sites .col-site    { width: 21.2%; }
.table-top-sites .col-bm      { width: 17%; }
.table-top-sites .col-geo     { width: 12.7%; }
.table-top-sites .col-traffic { width: 15.2%; }
.table-top-sites .col-revenue { width: 16.4%; }
.table-top-sites .col-trend   { width: 11.5%; }

.table-attention .col-site     { width: 28.9%; }
.table-attention .col-issue    { width: 28.9%; }
.table-attention .col-updated  { width: 22.7%; }
.table-attention .col-priority { width: 19.5%; }

.table-renewals .col-type { width: 23.3%; }
.table-renewals .col-item { width: 32.4%; }
.table-renewals .col-date { width: 30.1%; }
.table-renewals .col-days { width: 14.2%; }

.table-geo .col-country { width: 37.6%; }
.table-geo .col-sites   { width: 18.8%; }
.table-geo .col-traffic { width: 19.6%; }
.table-geo .col-revenue { width: 24%; }

.table-bookmakers .col-bookmaker { width: 36.9%; }
.table-bookmakers .col-sites     { width: 17.6%; }
.table-bookmakers .col-traffic   { width: 18.8%; }
.table-bookmakers .col-revenue   { width: 26.7%; }

.geo-cell { display: inline-flex; align-items: center; gap: 7px; }
.geo-cell-country { gap: 9px; }
.flag {
  width: 14px;
  height: 10px;
  border-radius: 1.5px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 .5px var(--ink-12);
}

.trend-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-text);
  font-weight: 600;
}
.trend-icon { width: 10px; height: 10px; stroke-width: 2.8; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 8px 0 6px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  color: #fff;
}
.status-dot .icon { width: 7px; height: 7px; stroke-width: 3; }
.status-high   { background: var(--red-soft);   color: var(--red-text); }
.status-high   .status-dot { background: var(--danger); }
.status-medium { background: var(--amber-soft); color: var(--amber-text); }
.status-medium .status-dot { background: var(--warning); }
.status-low    { background: var(--tint-success-7); color: var(--text-success-9); }
.status-low    .status-dot { background: var(--success-2); }

.bookmaker-cell { display: inline-flex; align-items: center; gap: 10px; }
.bookmaker-logo {
  display: inline-block;
  width: 30px;
  height: 12px;
  border-radius: 2px;
  background: var(--bg-muted-13);
  border: 1px solid var(--border-strong);
  flex: 0 0 auto;
}

/* Recent activity */
.activity-card { padding: 10px 12px 7px; }
.activity-card .card-header { height: 31px; }
.activity-item {
  display: flex;
  align-items: center;
  height: 33px;
  border-bottom: 1px solid var(--border-soft);
}
.activity-item:last-child { border-bottom: 0; }
.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: 1px;
  border-radius: 50%;
}
.activity-icon .icon { width: 12px; height: 12px; stroke-width: 2; }
.activity-icon-blue-solid   { background: var(--primary-9); color: #fff; }
.activity-icon-green        { background: var(--tint-success-5); color: var(--text-success-3); }
.activity-icon-purple-solid { background: var(--primary-10); color: #fff; }
.activity-icon-amber        { background: var(--tint-warning-8); color: var(--text-warning-7); }
.activity-text {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-time {
  flex: 0 0 auto;
  padding-right: 20px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* Quick actions */
.quick-actions-card { padding: 10px 12px 12px; }
.card-header-compact { height: 20px; margin-bottom: 10px; }
.quick-actions-grid {
  display: flex;
  gap: 10px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 76px;
  padding: 15px 6px 0;
  border: 1px solid var(--border-primary-8);
  border-radius: 8px;
  background: var(--surface-soft);
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.quick-action:hover {
  background: var(--bg-muted-5);
  border-color: var(--border-primary-9);
  transform: translateY(-1px);
}
.quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: -1px;
}
.quick-action-icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.quick-action-icon-blue { color: var(--text-link); }
.quick-action-icon-navy { color: var(--text-link-10); }
.quick-action-icon-red  { color: var(--text-danger-2); }
.quick-action-icon-green-solid {
  border-radius: 50%;
  background: var(--success-7);
  color: #fff;
}
.quick-action-icon-green-solid .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.quick-action-label {
  margin-top: 13px;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  color: var(--text-link-11);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Promo cards */
.promo-card {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px 18px;
}
.promo-card-purple { background: var(--bg-selected-7); border-color: var(--border-primary-10); }
.promo-card-mint   { background: var(--tint-success-8); border-color: var(--border-success-6); }

.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.promo-card-purple .promo-icon { background: var(--bg-selected-8); color: var(--text-link-12); }
.promo-card-purple .promo-icon .icon { width: 19px; height: 19px; stroke-width: 2; }
.promo-card-purple .promo-icon .icon path:first-child { fill: #5A3BF3; }
.promo-card-mint .promo-icon { flex-basis: 52px; width: 52px; height: 52px; margin-top: -3px; background: var(--tint-success-9); color: var(--text-success-4); }
.promo-card-mint .promo-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.promo-card-mint .promo-icon .icon path:first-child { fill: #1FA75E; stroke: #1FA75E; }
.promo-card-mint .promo-icon .icon path:last-child { stroke: #fff; stroke-width: 2.2; }

.promo-body { min-width: 0; margin-left: 16px; padding-top: 7px; }
.promo-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -.1px;
  white-space: nowrap;
}
.promo-card-purple .promo-title { color: var(--text-link-13); }
.promo-card-mint   .promo-title { color: var(--text-success-10); }
.promo-text {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
}
.promo-card-purple .promo-text { color: var(--text-link-14); }
.promo-card-mint   .promo-text { color: var(--text-success-11); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 35px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease, color .12s ease;
}
.btn:disabled { cursor: default; }
.btn-icon { width: 15px; height: 15px; stroke-width: 2; }
.btn-chevron { width: 12px; height: 12px; margin-left: 2px; color: var(--text-secondary-5); stroke-width: 2.2; }
.btn-white { background: var(--bg-surface); border-color: var(--border-default); color: var(--text-2); }
.btn-white:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.btn-green { background: var(--success-8); color: #fff; }
.btn-green:hover { background: var(--success-9); }
.btn-muted { background: var(--bg-selected-9); color: var(--text-link-15); }
.btn-muted:disabled { opacity: 1; }
.btn-primary-soft { background: var(--primary-7) !important; color: #fff !important; }
.btn-sm { height: 32px; padding: 0 12px; font-weight: 500; }
.btn-icon-only { width: 34px; padding: 0; }

/* promo-card buttons keep the Dashboard look */
.promo-card .btn { height: 31px; padding: 0 22px; margin-top: 8px; border-radius: 7px; font-size: 12px; }
.btn-primary { background: var(--primary-11); color: #fff; }
.btn-primary:hover { background: var(--primary-12); box-shadow: 0 2px 6px rgba(79, 47, 247, .25); }
.btn-outline { background: var(--tint-success-10); border-color: var(--border-success-7); color: var(--text-success-12); }
.promo-card .btn-outline { height: 30px; padding: 0 14px; }
.btn-outline:hover { background: var(--bg-surface); border-color: var(--border-success-8); }

/* --------------------------------------------------------------------------
   ALL SITES PAGE
   Values measured from design-reference/2.All SItes.png (1536×1024).
   -------------------------------------------------------------------------- */
.page-heading-sites { padding: 16px 0 13px 3px; }
.topbar-wide .topbar-chevron { margin-left: 56px; }
.page-title-lg { font-size: 24px; line-height: 30px; letter-spacing: -.5px; }
.page-heading-sites .page-subtitle { margin-top: 1px; }
.page-actions { display: flex; align-items: center; gap: 11px; margin-top: 4px; }
.page-actions .btn-white { padding: 0 17px; }
.page-actions .btn-green { height: 33px; margin-left: -4px; padding: 0 12px 0 11px; }

/* KPI groups */
.site-kpi-groups {
  display: grid;
  grid-template-columns: 649fr 625fr;
  gap: 16px;
  margin-bottom: 17px;
}
.site-kpi-groups > * { min-width: 0; }
.kpi-group-sites { padding: 17px 0 12px; }
.kpi-group-sites .kpi-item { flex: 0 0 auto; }
.site-kpi-groups > .kpi-group:first-child .kpi-item:nth-child(1) { width: 27.9%; }
.site-kpi-groups > .kpi-group:first-child .kpi-item:nth-child(2) { width: 25.6%; }
.site-kpi-groups > .kpi-group:first-child .kpi-item:nth-child(3) { width: 23.4%; }
.site-kpi-groups > .kpi-group:first-child .kpi-item:nth-child(4) { width: 23.1%; }
.site-kpi-groups > .kpi-group:last-child .kpi-item:nth-child(1) { width: 31.8%; }
.site-kpi-groups > .kpi-group:last-child .kpi-item:nth-child(2) { width: 34.7%; }
.site-kpi-groups > .kpi-group:last-child .kpi-item:nth-child(3) { width: 33.5%; }
.kpi-group-sites .kpi-item { padding-left: 12px; padding-right: 12px; }
.kpi-group-sites .kpi-icon { flex-basis: 32px; width: 32px; height: 32px; margin-top: 2px; }
.kpi-group-sites .kpi-icon > .icon { width: 18px; height: 18px; }
.kpi-group-sites .kpi-body { margin-left: 14px; }

/* View tabs */
.view-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.view-tabs {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.view-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.view-tab + .view-tab::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--bg-muted-6);
}
.view-tab:hover { background: var(--bg-subtle-7); }
.view-tab.is-active { background: var(--sidebar-active); color: #fff; padding: 0 12px; }
.view-tab.is-active:hover { background: var(--primary-13); }
.view-tab.is-active + .view-tab::before { display: none; }
.view-tab-icon { width: 15px; height: 15px; stroke-width: 1.9; color: var(--text-secondary-2); }
.btn-save-view { height: 36px; padding: 0 12px 0 14px; font-weight: 500; }
.btn-save-view .btn-chevron { margin-left: 12px; }

/* Quick filter chips */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background-color .12s ease, border-color .12s ease;
}
.filter-chip:hover { background: var(--bg-subtle); }
.filter-chip.is-active { background: var(--bg-selected-6); border-color: var(--border-primary-3); }
.filter-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.filter-chip-green .filter-chip-dot { background: var(--success-3); }
.filter-chip-amber .filter-chip-dot { background: var(--warning); }
.filter-chip-red .filter-chip-dot { background: var(--danger); }
.filter-chip-red-ring .filter-chip-dot { background: var(--bg-surface); border: 2px solid var(--border-danger-3); }
.filter-chip-purple .filter-chip-dot { background: var(--purple); }
.filter-chip-navy .filter-chip-dot { background: var(--primary-14); }
.filter-chip-plus { width: 12px; height: 12px; stroke-width: 2.4; }
.filter-chip-all .filter-chip-plus { color: var(--text-success); }
.filter-chip-all.is-active { background: var(--tint-success-11); border-color: var(--border-success); color: var(--text-success-13); }
.filter-chip-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.filter-chip-add { padding-left: 10px; }

/* Advanced filter bar */
.site-filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  margin-bottom: 8px;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 204px;
  width: 204px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-default-2);
  border-radius: 7px;
  background: var(--bg-subtle-12);
  cursor: text;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.filter-search:focus-within { border-color: var(--border-primary-3); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); background: var(--bg-surface); }
.filter-search-icon { width: 16px; height: 16px; color: var(--text-tertiary-3); }
.filter-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  outline: none;
}
.filter-search input::placeholder { color: var(--muted); }
.filter-search input::-webkit-search-decoration,
.filter-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.filter-control { flex: 0 1 auto; min-width: 0; }
.filter-control:nth-of-type(1) { width: 119px; }
.filter-control:nth-of-type(2) { width: 118px; }
.filter-control:nth-of-type(3) { width: 107px; }
.filter-control:nth-of-type(4) { width: 126px; }
.filter-control:nth-of-type(5) { width: 129px; }
.filter-control:nth-of-type(6) { width: 134px; }
.filter-control:nth-of-type(7) { width: 146px; }
.filter-control-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease;
}
.filter-control-btn:hover { border-color: var(--border-strong); }
.filter-control-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.filter-control-label { font-size: 11px; font-weight: 500; line-height: 13px; color: var(--text-link-16); white-space: nowrap; }
.filter-control-value { margin-top: 1px; font-size: 12px; font-weight: 600; line-height: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-control-chevron { width: 12px; height: 12px; stroke-width: 2.2; color: var(--text-secondary-5); flex: 0 0 auto; }
.btn-more-filter { flex: 0 0 auto; height: 38px; margin-left: auto; padding: 0 9px; gap: 7px; font-size: 12px; }
.btn-more-filter .btn-icon { width: 14px; height: 14px; }

/* Sites table */
.sites-table-card { padding: 0; }
.sites-table-scroll { overflow-x: auto; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.sites-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.sites-table .col-check       { width: 3.11%; }
.sites-table .col-website     { width: 12.44%; }
.sites-table .col-bookmaker   { width: 7.62%; }
.sites-table .col-geo         { width: 5.83%; }
.sites-table .col-status      { width: 8.09%; }
.sites-table .col-traffic     { width: 7.15%; }
.sites-table .col-revenue     { width: 7.31%; }
.sites-table .col-health      { width: 5.13%; }
.sites-table .col-infra       { width: 3.02%; }
.sites-table .col-infra-first { width: 4.12%; }
.sites-table .col-updated     { width: 10.5%; }
.sites-table .col-alerts      { width: 9.33%; }
.sites-table .col-actions     { width: 10.31%; }

.sites-table th,
.sites-table td {
  padding: 0 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.sites-table thead th {
  height: 26px;
  background: var(--bg-subtle-10);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary-2);
}
.sites-table thead tr:first-child th[rowspan] { height: 45px; }
.sites-table .thead-sub th { height: 19px; }
.sites-table .th-check { padding-left: 10px; }
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.th-sort-icon { width: 11px; height: 11px; color: var(--text-muted); }
.th-sort-active { text-decoration: underline; text-underline-offset: 2px; }
.th-two-line { line-height: 16px; }
.th-two-line .th-sub { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; line-height: 14px; color: var(--muted); }
.sites-table .th-center { text-align: center; padding-left: 9px; }
.sites-table .th-infra { padding-left: 23px; vertical-align: bottom; padding-bottom: 4px; line-height: 14px; }
.th-infra-sub {
  padding: 0;
  text-align: center;
  vertical-align: top;
  position: relative;
  top: -5px;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 12px;
  color: var(--text-tertiary) !important;
}
.thead-sub .th-infra-sub:first-child { padding-left: 16px; }
.sites-table .th-updated { padding-left: 24px; }

.sites-table tbody td {
  height: 44.7px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.sites-table tbody tr:hover td { background: var(--bg-subtle-2); }
.sites-table tbody tr.is-selected td { background: var(--bg-hover); }
.sites-table .td-center { text-align: center; padding-left: 9px; }
.sites-table .td-infra { padding: 0; text-align: center; }
.td-infra:first-of-type { padding-left: 0; }
.sites-table tbody td.td-infra-first { padding-left: 16px; }
.sites-table .td-updated { padding-left: 24px; }

/* checkbox */
.checkbox { position: relative; display: inline-flex; width: 14px; height: 14px; cursor: pointer; vertical-align: middle; }
.checkbox input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.checkbox-box {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-primary-11);
  border-radius: 3px;
  background: var(--bg-surface);
  transition: background-color .12s ease, border-color .12s ease;
}
.checkbox input:checked + .checkbox-box,
.checkbox input:indeterminate + .checkbox-box { background: var(--sidebar-active); border-color: var(--sidebar-active); }
.checkbox input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 3.5px;
  height: 7px;
  border: solid var(--border-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input:indeterminate + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 2px;
  background: var(--bg-surface);
}
.checkbox input:focus-visible + .checkbox-box { box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }

/* website cell */
.table-site-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.site-logo,
.bookmaker-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--bg-ink);
}
.site-logo { width: 26px; height: 26px; border-radius: 6px; }
.site-logo img { width: 24px; height: 16px; object-fit: contain; display: block; }
.site-logo .logo-mark { width: 20px; height: 18px; display: block; }
.bookmaker-logo .logo-mark { width: 14px; height: 10px; display: block; }
.bookmaker-logo { width: 20px; height: 14px; border-radius: 3px; }
.bookmaker-logo img { width: 17px; height: 10px; object-fit: contain; display: block; }
.bookmaker-logo-wide { width: 30px; height: 12px; border-radius: 2px; }
.bookmaker-logo-wide img { width: 26px; height: 9px; }
.bookmaker-logo-wide .logo-mark { width: 13px; height: 11px; }
.bookmaker-logo-wide.bookmaker-logo-placeholder .icon { width: 9px; height: 9px; }
.site-logo-placeholder,
.bookmaker-logo-placeholder { background: var(--bg-muted-9); color: var(--text-muted-2); }
.site-logo-placeholder .icon { width: 14px; height: 14px; }
.bookmaker-logo-placeholder .icon { width: 10px; height: 10px; }
.site-cell-text { display: flex; flex-direction: column; min-width: 0; }
.site-link { font-size: 12px; font-weight: 600; line-height: 14px; color: var(--text-link-17); text-decoration: none; }
.site-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.site-path { margin-top: 1px; font-size: 11px; font-weight: 400; line-height: 13px; color: var(--text-muted-3); }
.site-note-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bg-track-4); margin-left: 4px; flex: 0 0 auto; }

.sites-table .bookmaker-cell { gap: 6px; color: var(--text-secondary-7); }
.geo-cell-lg { gap: 8px; }
.geo-cell-lg .flag { width: 16px; height: 11px; border-radius: 2px; }

/* status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.status-pill-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-live   { background: var(--tint-success); color: var(--text-success-2); }
.status-live   .status-pill-dot { background: var(--success-3); }
.status-inwork { background: var(--tint-warning); color: var(--text-warning); }
.status-inwork .status-pill-dot { background: var(--warning); }
.status-down   { background: var(--tint-danger); color: var(--text-danger); }
.status-down   .status-pill-dot { background: var(--danger); }

/* health score ring */
.health-score {
  --c: #16A34A;
  --score: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--score) * 1%), var(--bg-muted-9) 0);
  vertical-align: middle;
}
.health-score > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: -.2px;
}
.health-green { --c: #16A34A; }
.health-amber { --c: #F5A623; }
.health-red   { --c: #EF3B4A; }

/* infrastructure state */
.infrastructure-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  vertical-align: middle;
}
.infrastructure-state .icon { width: 9px; height: 9px; stroke-width: 3; }
.infra-ok  { background: var(--success-10); }
.infra-off { background: var(--bg-track-7); }
.infra-problem { background: var(--tint-danger); border: 1.5px solid var(--border-danger-3); }
.infra-problem::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--danger); }

/* last updated */
.updated-rel { display: block; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--text-3); }
.updated-date { display: block; font-size: 11px; font-weight: 400; line-height: 13px; color: var(--text-link-18); }

/* alert badge */
.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 9px 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.alert-badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.alert-red   { background: var(--tint-danger); color: var(--text-danger); }
.alert-red   .alert-badge-dot { background: var(--danger); }
.alert-amber { background: var(--tint-warning-9); color: var(--text-warning-2); }
.alert-amber .alert-badge-dot { background: var(--warning); }

/* row actions */
.row-actions { display: flex; align-items: center; gap: 11px; }
.btn-view { height: 30px; padding: 0 18px; border-radius: 7px; font-size: 12px; color: var(--text-link-2); }
.btn-view:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-2); }
.row-more .btn-icon-only { height: 30px; width: 34px; border-radius: 7px; color: var(--text-2); }
.row-more .btn-icon { width: 15px; height: 15px; }
.dropdown-menu .is-danger { color: var(--text-danger); }

/* table footer */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  padding: 7px 13px 0 15px;
}
.bulk-actions { display: flex; align-items: center; gap: 9px; }
.btn-bulk { width: 127px; height: 33px; padding: 0 12px 0 14px; justify-content: space-between; border-radius: 7px; font-weight: 500; }
.btn-bulk .btn-chevron { margin-left: 0; }
.btn-apply { height: 33px; padding: 0 17px; border-radius: 7px; }
.bulk-count { margin-left: 13px; font-size: 12px; color: var(--muted); }

.pagination-bar { display: flex; align-items: center; }
.pagination-label { font-size: 11.5px; color: var(--muted); }
.btn-rpp { width: 63px; height: 33px; margin-left: 10px; padding: 0 10px 0 14px; justify-content: space-between; border-radius: 7px; font-weight: 500; }
.btn-rpp .btn-chevron { margin-left: 0; }
.pagination-range { margin: 0 39px 0 21px; font-size: 12px; font-weight: 500; color: var(--text-secondary-7); }
.pagination { display: flex; align-items: center; gap: 3px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-secondary-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.page-btn:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.page-btn .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.page-btn.is-active, .page-btn.is-active:hover { background: var(--primary-2); border-color: var(--border-primary-6); color: #fff; }
.page-prev, .page-next { width: 28px; }
.page-btn:disabled { color: var(--text-disabled-2); cursor: default; background: var(--bg-surface); border-color: var(--border-subtle); }

/* --------------------------------------------------------------------------
   BOOKMAKERS PAGE (design-reference/03-bookmakers.png)
   -------------------------------------------------------------------------- */
.sidebar-with-help .sidebar-footer { padding: 20px 0 8px; }
.page-bookmakers .page-heading-sites { padding-top: 12px; padding-bottom: 15px; }
.page-bookmakers .page-title-lg { font-size: 22px; }
.page-bookmakers .page-actions { margin-top: 8px; }
.sidebar-with-help .nav-item-help { margin-top: 3px; }

.page-actions-bm { gap: 14px; }
.page-actions-bm .btn-green { margin-left: 0; padding: 0 14px 0 13px; }

.bm-kpi-groups {
  display: grid;
  grid-template-columns: 538fr 396fr 335fr;
  gap: 10px;
  margin-bottom: 13px;
}
.bm-kpi-groups > * { min-width: 0; }
.bm-kpi-groups .kpi-item { flex: 1 1 0; }
.bm-kpi-groups > .kpi-group:nth-child(2) .kpi-item:nth-child(1) { flex: 0 0 45%; }
.bm-kpi-groups > .kpi-group:nth-child(2) .kpi-item:nth-child(2) { flex: 0 0 55%; }

.bm-layout {
  display: grid;
  grid-template-columns: 977fr 300fr;
  gap: 13px;
  align-items: start;
}
.bm-layout > * { min-width: 0; }

.view-tabs-row-bm { margin-bottom: 7px; }
.view-tabs-flush { padding: 0; height: 35px; overflow: hidden; }
.view-tabs-flush .view-tab { height: 33px; padding: 0 17px; border-radius: 0; }
.view-tabs-flush .view-tab:first-child { border-radius: 7px 0 0 7px; }
.view-tabs-flush .view-tab:last-child { border-radius: 0 7px 7px 0; }
.view-tabs-flush .view-tab.is-active { padding: 0 11px; border-radius: 7px; }
.view-tabs-flush .view-tab + .view-tab::before { top: 0; bottom: 0; }
.view-tabs-flush .view-tab-icon { width: 13px; height: 13px; }

.view-toggle {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  margin-right: 26px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.view-toggle-btn .btn-icon { width: 15px; height: 15px; }
.view-toggle-btn:hover { background: var(--bg-subtle-7); }
.view-toggle-btn.is-active, .view-toggle-btn.is-active:hover { background: var(--primary-15); color: #fff; }

.bm-filter-bar { margin-bottom: 2px; gap: 8px; padding: 9px 10px; }
.bm-filter-bar .filter-search { flex-basis: 166px; width: 166px; }
.bm-filter-bar .filter-control:nth-of-type(1) { width: 117px; }
.bm-filter-bar .filter-control:nth-of-type(2) { width: 117px; }
.bm-filter-bar .filter-control:nth-of-type(3) { width: 112px; }
.bm-filter-bar .filter-control:nth-of-type(4) { width: 116px; }
.bm-filter-bar .filter-control:nth-of-type(5) { width: 113px; }
.bm-filter-bar .btn-more-filter { margin-left: auto; }
.btn-reset { height: 38px; padding: 0 12px; color: var(--text-link); border-color: var(--border-primary); font-size: 12.5px; }
.btn-reset:hover { color: var(--text-link-5); background: var(--bg-hover); }

/* table */
.bm-table thead th { height: 50px; }
.bm-table tbody td { height: 46px; }
.bm-table .col-check    { width: 3.9%; }
.bm-table .col-name     { width: 15.5%; }
.bm-table .col-websites { width: 6.67%; }
.bm-table .col-geos     { width: 4.62%; }
.bm-table .col-aff      { width: 7.38%; }
.bm-table .col-traffic  { width: 9.64%; }
.bm-table .col-revenue  { width: 10.97%; }
.bm-table .col-cost     { width: 9.03%; }
.bm-table .col-profit   { width: 8.2%; }
.bm-table .col-health   { width: 5.13%; }
.bm-table .col-status   { width: 7.18%; }
.bm-table .col-actions  { width: 11.79%; }
.bm-table .td-num { text-align: center; padding: 0; font-weight: 500; color: var(--text-2); }
.bm-table .th-c, .bm-table .td-c { text-align: center; padding: 0; }
.bm-table .td-c .row-actions { justify-content: center; gap: 8px; }
.bm-table .td-c .btn-view { padding: 0 13px; }
.bm-table .td-c .btn-icon-only { width: 32px; }
.bm-table .td-metric { padding-left: 6px; }
.bm-table .td-health .health-score { vertical-align: middle; }
.bm-cell { gap: 12px; }
.bm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-ink);
}
.bm-logo img { width: 28px; height: 20px; object-fit: contain; display: block; }
.bm-logo .logo-mark { width: 24px; height: 22px; display: block; }
/* wide slots show the whole wordmark instead of the square mark */
.bm-logo-wordmark { width: auto; padding: 0 8px; }
.bm-logo .logo-wordmark, .bm-logo-wordmark .logo-wordmark { width: auto; height: 60%; max-width: 100%; display: block; }
.bm-logo-placeholder { background: var(--bg-muted-9); color: var(--text-muted-2); }
/* brand with no supplied SVG: dark tile + monogram (never an invented logo).
   Sized off the tile so it works in every logo slot the app has. */
.bm-logo .logo-img, [class*="-custom"] > .logo-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
/* Supplied logos are square avatars with their own background: let them fill
   whatever tile they sit in rather than letterboxing inside it. */
[class*="-custom"] { width: 100%; height: 100%; display: block; border-radius: inherit; overflow: hidden; }
[class*="-custom"] > .logo-img { object-fit: cover; }
.logo-mono {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #fff; font-family: var(--font); font-weight: 700;
  letter-spacing: .2px; line-height: 1;
  font-size: clamp(7px, 42cqw, 18px);
}
/* Was [class*="-mono"] — a substring selector that also matched unrelated
   classes and silently collapsed them to 0px via inline-size containment. */
.logo-mono { container-type: inline-size; }
/* two initials in an 18px tile overflowed by ~3px at 42cqw */
.dm-provider .logo-mono, .ho-row-mark .logo-mono, .bm-logo-xxs .logo-mono,
.fin-bm-logo .logo-mono, .fin-rank-logo .logo-mono, .fin-row-mark .logo-mono,
.rank-logo .logo-mono, .rank-logo-sm .logo-mono { font-size: clamp(6px, 32cqw, 14px); letter-spacing: 0; }
@supports not (font-size: 1cqw) {
  .logo-mono { font-size: 11px; }
}
.bm-logo-placeholder .icon { width: 15px; height: 15px; }
.bm-table .site-link { font-size: 12.5px; }
.site-link-dark { color: var(--text-2); }
.site-link-dark:hover { color: var(--text); }

.metric-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.metric-value { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.metric-strong { font-weight: 600; }
.trend-pill { height: 18px; padding: 0 6px 0 5px; font-size: 11px; }
.trend-text { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; }
.trend-text-up { color: var(--green-text); }
.trend-text-down { color: var(--red-text); }
.traffic-cell-spark { display: flex; align-items: center; gap: 10px; }
.traffic-cell-spark > div { display: flex; flex-direction: column; gap: 1px; }
.sparkline { display: block; }

.status-inactive { background: var(--bg-muted-2); color: var(--text-muted); }
.status-inactive .status-pill-dot { background: var(--bg-track-5); }

.bm-table-card .table-footer { height: 68px; padding: 4px 10px 0 10px; }
.bm-table-card .btn-bulk { width: 135px; }
.bm-table-card .btn-apply { padding: 0 14px; }
.bm-table-card .btn-rpp { width: 61px; }
.bm-table-card .pagination-range { margin: 0 20px 0 21px; }

/* right column cards */
.bm-side { display: flex; flex-direction: column; gap: 8px; }
.side-card { padding: 14px 16px 9px; }
.side-card-header { height: 22px; margin-bottom: 2px; }
.side-card-header .card-title { font-size: 14px; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.rank-row:last-child { border-bottom: 0; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-subtle-10);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  flex: 0 0 auto;
}
.rank-row .rank-badge { margin-right: 2px; }
.rank-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-ink);
}
.rank-logo img { width: 20px; height: 14px; object-fit: contain; display: block; }
.rank-logo .logo-mark { width: 19px; height: 17px; display: block; }
.rank-logo-placeholder { background: var(--bg-muted-9); color: var(--text-muted-2); }
.rank-logo-placeholder .icon { width: 12px; height: 12px; }
.rank-name { flex: 1 1 auto; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.rank-value { width: 59px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.rank-trend { width: 36px; margin-left: 0; justify-content: flex-start; font-size: 12px; }
.rank-row .rank-value { margin-left: 0; }

.geo-dist-row { display: flex; align-items: center; height: 27px; }
.geo-dist-row .geo-cell { flex: 0 0 116px; gap: 12px; }
.geo-dist-name { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.geo-dist-count { flex: 0 0 16px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text-link-2); text-align: right; }
.progress { display: block; flex: 0 0 80px; height: 9px; margin-left: 17px; border-radius: 4.5px; background: var(--bg-muted-4); overflow: hidden; }
.progress-bar { display: block; height: 100%; border-radius: 4.5px; background: var(--success-11); }
.geo-dist-pct { flex: 1 1 auto; text-align: right; font-size: 12px; color: var(--muted); }
.geo-dist-more { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.geo-dist-more:hover { color: var(--text-2); }

.status-chart { display: flex; align-items: center; height: 112px; margin-bottom: 4px; }
.donut-wrap-md { flex: 0 0 112px; width: 112px; height: 112px; margin-left: 11px; }
.donut-wrap-md canvas { width: 112px !important; height: 112px !important; }
.status-legend { margin-left: 26px; padding-right: 0; }
.status-legend li { height: 28px; font-size: 12.5px; }
.status-legend .legend-dot { width: 10px; height: 10px; }

.action-list { padding-top: 0; }
.action-list li + li { margin-top: 6px; }
.action-row {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 24px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
}
.action-row:hover { color: var(--text); }
.action-row:hover .action-icon { background: var(--bg-muted-5); }
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle-10);
  color: var(--text-secondary-2);
  flex: 0 0 auto;
  transition: background-color .12s ease;
}
.action-icon .icon { width: 13px; height: 13px; stroke-width: 2; }

/* --------------------------------------------------------------------------
   DETAIL PAGES (Bookmaker 360 / Site 360) — design-reference/04 & 05
   -------------------------------------------------------------------------- */
.page-detail { padding-bottom: 28px; }
.breadcrumb-row { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0 0 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-2); }
.breadcrumb-sep { width: 12px; height: 12px; color: var(--text-disabled); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* entity header */
.entity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 141px;
  margin-top: 0;
  margin-bottom: 0;
}
.entity-main { display: flex; gap: 22px; min-width: 0; flex: 1 1 auto; }
.entity-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  margin-top: 2px;
  border-radius: 10px;
  background: var(--bg-ink);
  overflow: hidden;
}
.entity-logo .entity-logo-inner { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.entity-logo .logo-mark { width: 66px; height: 60px; display: block; }
.entity-logo img { width: 68px; height: 40px; object-fit: contain; display: block; }
.entity-logo-inner-placeholder { color: var(--text-muted-2); }
.entity-logo-inner-placeholder .icon { width: 30px; height: 30px; }
.entity-info { min-width: 0; padding-top: 6px; }
.entity-title-row { display: flex; align-items: center; gap: 12px; }
.entity-title { font-size: 26px; font-weight: 700; line-height: 30px; letter-spacing: -.5px; color: var(--text); }
.status-pill-lg { height: 26px; padding: 0 12px 0 10px; font-size: 12.5px; font-weight: 600; border-radius: 13px; }
.status-pill-sm { height: 18px; padding: 0 8px 0 7px; font-size: 11px; }
.entity-tagline { margin-top: 6px; font-size: 12.5px; line-height: 16px; color: var(--muted); }
.entity-meta { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; }
.entity-meta li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.entity-meta-icon { width: 14px; height: 14px; color: var(--text-tertiary); }
.entity-desc-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; max-width: 610px; }
.entity-desc { font-size: 12.5px; line-height: 16px; color: var(--text-3); }
.icon-link { display: inline-flex; color: var(--text-muted); flex: 0 0 auto; }
.icon-link .icon { width: 13px; height: 13px; }
.icon-link:hover { color: var(--text-2); }

.entity-side { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; padding-top: 18px; }
.entity-actions { display: flex; align-items: center; gap: 10px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 12.5px; border-radius: 8px; }
.btn-lg .btn-icon { width: 15px; height: 15px; }
.btn-icon-after { width: 13px; height: 13px; margin-left: 2px; }
.btn-lg.btn-green { padding: 0 20px; }

.health-card {
  display: flex;
  align-items: center;
  width: 513px;
  height: 123px;
  padding: 0 22px 0 26px;
}
.health-ring {
  --c: #16A34A;
  --score: 91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--score) * 1%), var(--bg-muted-9) 0);
}
.health-ring > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-surface);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.6px;
  color: var(--text);
}
.health-ring-green { --c: #16A34A; }
.health-ring-amber { --c: #F5A623; }
.health-ring-red { --c: #EF3B4A; }
.health-card-body { flex: 1 1 auto; padding-left: 26px; }
.health-card-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 16px; }
.health-pill { display: inline-flex; margin-top: 8px; height: 26px; padding: 0 12px; font-size: 13px; }
.health-card-trend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.health-card-trend .trend-text { font-size: 12px; }
.health-summary { border-left: 1px solid var(--border-soft); padding-left: 28px; }
.health-summary li { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.health-summary strong { font-weight: 700; color: var(--text); }
.health-summary .legend-dot { width: 8px; height: 8px; }
.dot-green { background: var(--success-2); }
.dot-amber { background: var(--warning); }
.dot-red { background: var(--danger); }
.dot-blue { background: var(--primary); }

/* underline tabs */
.detail-tabs {
  display: flex;
  align-items: stretch;
  height: 55px;
  padding: 0;
  margin-bottom: 13px;
  overflow: hidden;
}
.detail-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1 1 auto;
  padding: 0 18px;
  border: 0;
  background: transparent;
  /* .detail-tab is used on <button> and, where the tab is a real route, on <a> */
  text-decoration: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .12s ease, background-color .12s ease;
}
.detail-tab + .detail-tab::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--bg-muted-6); }
.detail-tab:hover { background: var(--bg-subtle-2); }
.detail-tab-icon { width: 15px; height: 15px; color: var(--text-secondary-8); }
.detail-tab.is-active { color: var(--text-link); }
.detail-tab.is-active .detail-tab-icon { color: var(--text-link); }
.detail-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }

/* KPI strip */
.detail-kpis {
  display: flex;
  align-items: stretch;
  padding: 20px 0 18px;
  margin-bottom: 12px;
}
.detail-kpi { flex: 1 1 auto; min-width: 0; padding: 0 14px; }
.detail-kpi + .detail-kpi { border-left: 1px solid var(--border-soft); }
.detail-kpi-top { display: flex; align-items: center; gap: 10px; }
.detail-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; margin-top: 0; }
.detail-kpi-icon > .icon { width: 20px; height: 20px; }
.detail-kpi-value { font-size: 18px; font-weight: 700; line-height: 22px; letter-spacing: -.4px; color: var(--text); white-space: nowrap; }
.detail-kpi-label { margin-top: 2px; font-size: 11.5px; font-weight: 500; line-height: 14px; color: var(--muted); white-space: nowrap; }
.detail-kpi-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 14px; }
.detail-kpi-sub { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.kpi-icon-navy { background: var(--bg-selected-10); color: var(--text-secondary-3); }

/* grids */
.detail-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.detail-grid > * { min-width: 0; }
.detail-grid-2 { grid-template-columns: 704fr 472fr; }
.detail-grid-even { grid-template-columns: 585fr 591fr; }
.detail-grid-3a { grid-template-columns: 445fr 399fr 328fr; gap: 14px; }
.detail-grid-3b { grid-template-columns: 403fr 419fr 345fr; gap: 16px; }

.chart-card-lg { padding: 14px 16px 12px; }
.chart-card-lg .card-header { height: 40px; }
.control-range-lg { height: 40px; width: 140px; padding: 0 10px 0 12px; font-size: 12.5px; }
.chart-legend-center { position: relative; justify-content: center; gap: 22px; height: 22px; margin: 6px 0 4px; }
.chart-axis-title { position: absolute; left: 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.chart-axis-title-right { left: auto; right: 0; }
.chart-area-trend { height: 172px; }

.breakdown-card { padding: 14px 16px 12px; }
.breakdown-card .card-header { height: 40px; }
.card-title-note { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.breakdown-body { display: flex; align-items: center; height: 198px; }
.donut-wrap-lg { flex: 0 0 168px; width: 168px; height: 168px; margin-left: 6px; }
.donut-wrap-lg canvas { width: 168px !important; height: 168px !important; }
.donut-value-lg { font-size: 22px; line-height: 26px; }
.breakdown-legend { flex: 1 1 auto; margin-left: 24px; }
.breakdown-legend li { display: flex; align-items: center; gap: 12px; height: 33px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); }
.breakdown-legend li:last-child { border-bottom: 0; }
.breakdown-legend .legend-dot { width: 10px; height: 10px; }
.breakdown-name { flex: 1 1 auto; font-weight: 500; }
.breakdown-value { width: 70px; font-weight: 500; color: var(--text-3); }
.breakdown-pct { width: 32px; text-align: right; color: var(--muted); }

/* detail tables */
.detail-table-card { padding: 16px 16px 12px; }
.detail-table-card .card-header { height: 26px; margin-bottom: 14px; }
.detail-table { table-layout: fixed; }
.detail-table th { height: 32px; font-size: 12px; font-weight: 500; color: var(--text-secondary-6); padding: 0 8px; }
.detail-table td { height: 33px; padding: 0 8px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.detail-table .th-num, .detail-table .td-num-muted { width: 26px; color: var(--muted); }
.detail-table .td-profit { color: var(--text-success-3); font-weight: 600; }
.detail-table .th-c, .detail-table .td-c { text-align: center; }
.health-score-sm { width: 28px; height: 28px; }
.health-score-sm > span { width: 22px; height: 22px; font-size: 11px; }
.flag-multi { background: linear-gradient(135deg, var(--primary-16) 50%, var(--primary-17) 50%); }

/* map card */
.map-card { padding: 14px 16px 12px; }
.map-card .card-header { height: 26px; margin-bottom: 12px; }
.map-body { display: flex; gap: 22px; }
.map-col { flex: 1 1 auto; min-width: 0; }
.world-map { height: 178px; }
.world-map svg { width: 100%; height: 100%; display: block; }
.world-map .map-dots circle { fill: #16A34A; stroke: #fff; stroke-width: .6; }
.map-total {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 70px;
  margin-top: 8px;
  padding: 0 26px 0 18px;
  border-radius: 10px;
  background: var(--bg-subtle-10);
}
.map-total-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; }
.map-total-icon .icon { width: 20px; height: 20px; }
.map-total-value { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.map-total-label { font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.map-list { flex: 0 0 172px; }
.map-list li { display: flex; align-items: center; justify-content: space-between; height: 27px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); }
.map-list li:last-child { border-bottom: 0; }
.map-list strong { font-weight: 700; color: var(--text); }

/* info cards (key-value, tiles, feeds) */
.info-card { padding: 16px 16px 14px; }
.info-card .card-header { height: 26px; margin-bottom: 10px; }
.kv-list { margin: 0; }
.kv-row { display: flex; align-items: flex-start; gap: 12px; min-height: 31px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { flex: 0 0 200px; font-size: 12.5px; font-weight: 500; color: var(--text-2); line-height: 17px; }
.kv-row dd { flex: 1 1 auto; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 17px; }
.kv-row-methods { align-items: center; }
.payment-methods { display: inline-flex; gap: 12px; }
.payment-method { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.payment-method .icon { width: 16px; height: 16px; color: var(--text-secondary-3); }

.tile-list { display: flex; flex-direction: column; gap: 4px; }
.tile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle-2);
}
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; }
.tile-icon .icon { width: 16px; height: 16px; stroke-width: 2; }
.tile-icon-blue { background: var(--bg-selected-5); color: var(--text-link); }
.tile-icon-navy { background: var(--bg-muted-7); color: var(--text-secondary-3); }
.tile-icon-amber { background: var(--tint-warning-2); color: var(--text-warning-5); }
.tile-icon-google { background: var(--bg-surface); color: #EA4335; }
.tile-icon-green { background: var(--tint-success); color: var(--text-success); }
.tile-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.tile-label { flex: 1 1 auto; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.tile-count { font-size: 13px; font-weight: 700; color: var(--text); margin-right: 8px; }
.btn-view-sm { height: 28px; padding: 0 14px; font-size: 12px; }
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--tint-danger);
}
.warning-icon { width: 18px; height: 18px; color: var(--text-danger); margin-top: 2px; }
.warning-title { font-size: 12.5px; font-weight: 600; color: var(--text-danger-7); line-height: 17px; }
.warning-text { margin-top: 3px; font-size: 12px; color: var(--text-danger-8); }

.feed-list { display: flex; flex-direction: column; }
.feed-row { display: flex; align-items: center; gap: 12px; height: 43px; border-bottom: 1px solid var(--border-soft); }
.feed-row:last-child { border-bottom: 0; }
.feed-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto; }
.feed-icon .icon { width: 13px; height: 13px; stroke-width: 2; }
.feed-icon-green { background: var(--tint-success); color: var(--text-success); }
.feed-icon-blue { background: var(--bg-selected-5); color: var(--text-link); }
.feed-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.feed-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; color: #fff; }
.feed-dot .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.feed-dot-red { background: var(--danger); }
.feed-dot-amber { background: var(--warning); }
.feed-dot-blue { background: var(--primary); }
.feed-dot-green { background: var(--success); }
.feed-text { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.level-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.level-red { background: var(--tint-danger); color: var(--text-danger); }
.level-amber { background: var(--tint-warning); color: var(--text-warning-2); }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 70px;
  border: 1px solid var(--border-subtle-2);
  border-radius: 8px;
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background-color .12s ease, transform .12s ease;
}
.qa-tile:hover { background: var(--bg-muted-3); transform: translateY(-1px); }
.qa-tile-icon { display: inline-flex; }
.qa-tile-icon .icon { width: 20px; height: 20px; stroke-width: 2; }
.qa-tile-icon-green { color: var(--text-success); }
.qa-tile-icon-red { color: var(--text-danger-2); }
.qa-tile-icon-blue { color: var(--text-link); }

.cta-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 98px;
  padding: 0 24px 0 22px;
  border: 1px solid var(--border-primary-12);
  border-radius: 12px;
  background: var(--bg-selected-11);
}
.cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-track-6); color: var(--text-link); flex: 0 0 auto; }
.cta-icon .icon { width: 24px; height: 24px; }
.cta-body { flex: 1 1 auto; }
.cta-title { font-size: 14px; font-weight: 700; color: var(--text); }
.cta-text { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.btn-indigo { height: 40px; padding: 0 22px; background: var(--primary-18); color: #fff; font-size: 12.5px; }
.btn-indigo:hover { background: var(--primary-19); }

/* --------------------------------------------------------------------------
   SITE DETAIL PAGE (design-reference/05-site-detail-1xbetbd.png)
   -------------------------------------------------------------------------- */
.page-site { padding-bottom: 19px; }
.breadcrumb-site { padding-top: 0; font-size: 12px; }
.site-header {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 10px;
}
.site-header-left { flex: 1 1 auto; min-width: 0; }
.site-entity { gap: 18px; margin-top: 8px; }
.site-logo-lg { flex-basis: 58px; width: 58px; height: 58px; margin-top: 2px; border-radius: 8px; }
.site-logo-lg .logo-mark { width: 46px; height: 42px; }
.site-entity-info { padding-top: 0; }
.site-title { font-size: 21px; line-height: 26px; letter-spacing: -.4px; }
.site-entity-info .entity-title-row { gap: 12px; }
.site-meta { margin-top: 8px; gap: 0 16px; }
.site-meta li { font-size: 12px; gap: 6px; }
.site-meta .bookmaker-logo { width: 18px; height: 13px; }
.site-meta .flag { width: 16px; height: 11px; }
.site-desc-row { margin-top: 7px; gap: 10px; }
.site-desc { font-size: 12px; color: var(--text-tertiary-2); }

.health-card-sm {
  flex: 0 0 214px;
  width: 214px;
  height: 88px;
  margin: 13px 0 0 12px;
  padding: 0 10px 0 16px;
}
.health-ring-sm { flex-basis: 60px; width: 60px; height: 60px; }
.health-ring-sm > span { width: 46px; height: 46px; font-size: 18px; }
.health-card-sm .health-card-body { padding-left: 18px; white-space: nowrap; }
.health-card-sm .health-card-title { font-size: 13px; }
.health-pill-sm { height: 20px; margin-top: 6px; padding: 0 9px; font-size: 12px; }
.health-card-sm .health-card-trend { margin-top: 6px; font-size: 11px; gap: 4px; }

.site-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin: 12px 0 0 auto; padding-left: 16px; }
.site-actions-row { display: flex; align-items: center; gap: 8px; }
.btn-md { height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-md .btn-icon { width: 15px; height: 15px; }
.btn-kebab { width: 36px; padding: 0; }
.kebab-icon { transform: rotate(90deg); }
.site-actions .btn-green { padding: 0 16px; }

.detail-tabs-sm { height: 36px; margin-top: 13px; margin-bottom: 11px; }
.detail-tabs-sm .detail-tab { font-size: 12px; padding: 0 11px; gap: 8px; }
.detail-tabs-sm .detail-tab + .detail-tab::before { top: 9px; bottom: 9px; }
.detail-tabs-sm .detail-tab.is-active::after { height: 2px; }
.detail-tabs-sm .detail-tab-icon { width: 14px; height: 14px; }

.kpi-group-site { padding: 15px 0 13px; margin-bottom: 9px; }
.kpi-group-site .kpi-item { flex: 1 1 0; padding: 0 14px; }
.kpi-group-site .kpi-icon { flex-basis: 36px; width: 36px; height: 36px; margin-top: 0; }
.kpi-group-site .kpi-icon > .icon { width: 18px; height: 18px; }
.kpi-group-site .kpi-body { margin-left: 14px; }
.kpi-group-site .kpi-label { line-height: 14px; }
.kpi-group-site .kpi-value-row { margin-top: 3px; }
.kpi-value-md { font-size: 17px; line-height: 22px; letter-spacing: -.3px; }
.kpi-group-site .kpi-sub { margin-top: 2px; }

.site-layout { display: grid; grid-template-columns: 967fr 311fr; gap: 10px; align-items: stretch; margin-bottom: 4px; }
.site-layout > * { min-width: 0; }
.site-main { display: flex; flex-direction: column; gap: 9px; }
.site-side { display: flex; flex-direction: column; gap: 12px; }
.site-side .alerts-card { flex: 1 1 auto; }
.site-row { display: grid; gap: 8px; }
.site-row > * { min-width: 0; }
.site-row-charts { grid-template-columns: 496fr 463fr; }
.site-row-gsc { grid-template-columns: 496fr 463fr; }
.site-row-infra { grid-template-columns: 408fr 294fr 250fr; }
.site-row-bottom { grid-template-columns: 308fr 331fr 312fr 310fr; gap: 10px; }

.chart-card-site { height: 196px; padding: 8px 12px 8px; }
.chart-card-site .card-header { height: 27px; }
.control-range-md { height: 27px; width: 116px; }
.chart-legend-right { justify-content: flex-end; height: 18px; margin: 3px 0 2px; gap: 16px; }
.chart-legend-site { margin: 3px 0 2px 46px; height: 18px; }
.chart-area-site { height: 126px; }
.pinned-tooltip {
  position: absolute;
  left: 58%;
  top: 2px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle-3);
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: 0 6px 18px var(--ink-08);
  font-size: 11px;
  color: var(--text-2);
  pointer-events: none;
  z-index: 2;
}
.pinned-tooltip.is-hidden { display: none; }
.pinned-tooltip-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pinned-tooltip-row { display: flex; align-items: center; gap: 7px; height: 16px; }
.pinned-tooltip-row strong { margin-left: 14px; font-weight: 600; color: var(--text); }
.pinned-tooltip-row .legend-dot { width: 7px; height: 7px; }

.gsc-card, .ps-card { height: 134px; padding: 11px 12px 8px; }
.gsc-header { height: auto; align-items: flex-start; }
.card-subnote { margin-top: 3px; font-size: 11px; color: var(--muted); }
.gsc-pill { margin-left: auto; margin-top: 2px; }
.metric-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.metric-tile { height: 58px; padding: 9px 12px 0; border-radius: 8px; background: var(--bg-subtle); border: 1px solid var(--border-subtle-2); }
.metric-tile-label { font-size: 11px; font-weight: 500; color: var(--muted); }
.metric-tile-value { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.metric-tile-value .trend-text { font-size: 11px; }
.btn-run-check { height: 34px; margin-left: auto; padding: 0 14px; font-size: 12px; }
.btn-run-check .btn-icon { width: 14px; height: 14px; }
.ps-body { display: flex; gap: 10px; margin-top: 6px; }
.ps-device { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.ps-score-col { display: flex; flex-direction: column; align-items: center; width: 62px; flex: 0 0 auto; }
.ps-device-label { margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.health-ring-xs { flex-basis: 48px; width: 48px; height: 48px; }
.health-ring-xs > span { width: 36px; height: 36px; font-size: 14px; letter-spacing: -.3px; }
.ps-grade { margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--text-2); }
.ps-metrics { flex: 1 1 auto; }
.ps-metric { display: flex; align-items: center; height: 23px; padding-left: 8px; border-left: 3px solid var(--border-subtle-3); margin-bottom: 0; font-size: 11.5px; }
.ps-metric + .ps-metric { margin-top: 0; }
.ps-metric-green { border-left-color: var(--border-success-4); }
.ps-metric-amber { border-left-color: var(--border-warning); }
.ps-metric-red { border-left-color: var(--border-danger-4); }
.ps-metric-label { width: 46px; font-weight: 500; color: var(--text-2); }
.ps-metric-value { font-weight: 500; color: var(--text-3); }
.ps-metric-green .ps-metric-value { color: var(--text-success-3); }
.ps-metric-amber .ps-metric-value { color: var(--text-warning-2); }

.infra-card, .aff-card, .qa-card-site { height: 189px; padding: 12px 10px 8px; }
.infra-card .card-header, .aff-card .card-header, .qa-card-site .card-header { height: 22px; margin-bottom: 3px; }
.infra-row { display: flex; align-items: center; gap: 6px; height: 30px; font-size: 11px; white-space: nowrap; }
.infra-row-icon { width: 15px; height: 15px; color: var(--text-secondary-2); flex: 0 0 auto; }
.infra-row-label { min-width: 74px; font-weight: 500; color: var(--text-2); flex: 0 0 auto; }
.infra-row-value { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.infra-ext { width: 12px; height: 12px; color: var(--text-muted); }
.infra-chevron { width: 12px; height: 12px; color: var(--text-disabled); }
.infra-row .status-pill { margin-left: 2px; height: 18px; padding: 0 7px 0 6px; font-size: 10.5px; }
.infra-row-right { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; font-size: 10px; color: var(--text-3); line-height: 13px; white-space: nowrap; }
.infra-row-date { font-size: 10px; color: var(--muted); }
.infra-row .table-link { font-size: 11px; }

.kv-list-compact .kv-row-compact { min-height: 21.5px; padding: 3px 0; border-bottom: 0; }
.kv-row-compact dt { flex-basis: 84px; font-size: 11px; line-height: 15px; white-space: nowrap; }
.kv-row-compact dd { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 15px; color: var(--text-2); min-width: 0; }
.aff-link { font-size: 9px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff-value { font-weight: 500; }
.copy-btn { display: inline-flex; padding: 0; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; flex: 0 0 auto; }
.copy-btn .icon { width: 12px; height: 12px; }
.copy-btn:hover { color: var(--text); }
.copy-btn.is-copied { color: var(--text-success); }

.qa-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.qa-tile-sm { height: 62px; gap: 7px; padding: 0 1px; font-size: 8.8px; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; }
.qa-tile-sm .qa-tile-icon .icon { width: 17px; height: 17px; }
.qa-tile-icon-navy { color: var(--text-secondary-3); }

.status-notes-card { padding: 12px 12px 10px; }
.status-notes-card .card-header { height: 20px; margin-bottom: 2px; }
.kv-list-status .kv-row-status { min-height: 17px; padding: 2px 0; border-bottom: 1px solid var(--border-soft); align-items: center; }
.kv-list-status .kv-row-status:last-child { border-bottom: 0; align-items: flex-start; }
.kv-row-status dt { flex-basis: 137px; font-size: 11.5px; line-height: 15px; color: var(--text-2); }
.kv-row-status dd { font-size: 11.5px; line-height: 15px; color: var(--text-3); }
.kv-row-status .bookmaker-cell { gap: 6px; }
.kv-row-status .geo-cell { gap: 6px; }
.status-inline { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-success-2); }
.status-diamond { width: 7px; height: 7px; background: var(--success-3); transform: rotate(45deg); border-radius: 1px; }
.status-inline-dot { font-weight: 500; color: var(--text-success-2); }
.status-inline-dot .legend-dot { width: 7px; height: 7px; }

.alerts-card { padding: 12px 12px 8px; }
.alerts-card .card-header { height: 22px; margin-bottom: 6px; }
.feed-row-sm { height: 27px; gap: 8px; border-bottom: 0; }
.feed-row-sm .feed-text { font-size: 11px; }
.feed-row-sm .feed-time { font-size: 10.5px; }
.feed-row-sm .feed-dot { width: 18px; height: 18px; }
.feed-row-sm .feed-dot .icon { width: 10px; height: 10px; }

.bottom-card { height: 148px; padding: 12px 12px 8px; }
.bottom-card .card-header { height: 22px; margin-bottom: 0; }
.maint-row { display: flex; align-items: center; gap: 10px; height: 26.5px; }
.maint-row .feed-dot { width: 18px; height: 18px; }
.maint-row .feed-dot .icon { width: 10px; height: 10px; }
.maint-row .feed-text { font-size: 10.5px; }
.maint-row .feed-time { font-size: 10px; }

.expense-body { display: flex; align-items: center; margin-top: 2px; }
.donut-wrap-sm { flex: 0 0 100px; width: 100px; height: 100px; margin-left: 10px; }
.donut-wrap-sm canvas { width: 100px !important; height: 100px !important; }
.donut-value-md { font-size: 16px; line-height: 20px; letter-spacing: -.3px; }
.donut-wrap-sm .donut-label { font-size: 11px; margin-top: 0; }
.expense-legend { flex: 1 1 auto; margin-left: 20px; }
.expense-legend li { display: flex; align-items: center; gap: 8px; height: 19px; font-size: 11.5px; color: var(--text-2); }
.expense-legend .legend-dot { width: 8px; height: 8px; }
.expense-name { flex: 1 1 auto; font-weight: 500; }
.expense-value { width: 44px; text-align: right; font-weight: 600; color: var(--text); }
.expense-pct { width: 34px; text-align: right; color: var(--muted); }

.revenue-table th { height: 19px; font-size: 11px; padding: 0 6px; border-radius: 4px; }
.revenue-table th:first-child { border-radius: 4px 0 0 4px; }
.revenue-table th:last-child { border-radius: 0 4px 4px 0; }
.revenue-table td { height: 16px; padding: 0 6px; font-size: 11px; border-bottom: 0; }
.revenue-table tbody tr:hover td { background: transparent; }

.feed-row-xs { height: 23px; gap: 9px; border-bottom: 0; }
.feed-row-xs .feed-text { font-size: 11.5px; }
.feed-row-xs .feed-time { font-size: 10.5px; }
.feed-icon-sm { width: 20px; height: 20px; border-radius: 6px; }
.feed-icon-sm .icon { width: 11px; height: 11px; }

/* --------------------------------------------------------------------------
   GEOs LIST PAGE (design-reference/06-geos.png)
   -------------------------------------------------------------------------- */
.page-geos .page-heading-sites { padding-top: 9px; padding-bottom: 12px; }
.page-actions-geo { gap: 16px; }
.page-actions-geo .btn-white { padding: 0 14px; }
.page-actions-geo .btn-green { margin-left: 0; padding: 0 14px 0 13px; }

.geo-kpi-groups { display: grid; grid-template-columns: 506fr 152fr 620fr; gap: 8px; margin-bottom: 20px; }
.geo-kpi-groups > * { min-width: 0; }
.kpi-group-geo { padding: 19px 0 12px; }
.kpi-group-geo .kpi-item { flex: 1 1 0; padding: 0 12px; }
.kpi-group-geo .kpi-icon { flex-basis: 40px; width: 40px; height: 40px; margin-top: 0; }
.kpi-group-geo .kpi-icon > .icon { width: 20px; height: 20px; }
.kpi-group-geo .kpi-icon-dot { width: 22px; height: 22px; }
.kpi-group-geo .kpi-body { margin-left: 12px; }
.kpi-group-geo .kpi-label { line-height: 14px; font-size: 11.5px; }
.kpi-group-geo .kpi-value-row { margin-top: 5px; gap: 8px; }
.kpi-group-geo .kpi-value { font-size: 19px; line-height: 24px; }
.kpi-group-geo .kpi-sub { margin-top: 4px; font-size: 10.5px; }

.geo-analytics { display: grid; grid-template-columns: 563fr 340fr 371fr; gap: 10px; margin-bottom: 9px; }
.geo-analytics > * { min-width: 0; }
.presence-card { position: relative; height: 266px; padding: 9px 14px 8px; }
.presence-header { height: 24px; }
.seg-control { display: inline-flex; height: 25px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); overflow: hidden; margin-left: auto; }
.seg-btn { height: 100%; padding: 0 19px; border: 0; border-right: 1px solid var(--border-subtle); background: transparent; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.seg-btn:last-child { border-right: 0; }
.seg-btn.is-active { background: var(--primary-2); color: #fff; }
.presence-body { position: relative; height: 200px; }
.presence-stats { position: absolute; left: 0; top: 33px; z-index: 2; }
.presence-stats li { display: flex; align-items: center; gap: 8px; height: 46px; }
.presence-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint-info); color: var(--text-link); }
.presence-stat-icon .icon { width: 15px; height: 15px; }
.presence-stat-text { display: flex; flex-direction: column; line-height: 1; }
.presence-stat-text strong { font-size: 14px; font-weight: 700; color: var(--text); }
.presence-stat-text span { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.presence-map { position: absolute; left: 70px; right: 0; top: 0; bottom: 0; overflow: hidden; }
.presence-map-svg { width: 100%; height: 100%; transform-origin: 50% 50%; transition: transform .2s ease; }
.map-dots circle { fill: #1F9E5A; }
.map-dots .dot-halo { fill: rgba(31, 158, 90, .16); }
.map-dots .dot-sm { fill: #46B57C; }
.map-dots .dot-bd { fill: #1F9E5A; }
.map-tooltip { position: absolute; left: 60%; top: 32%; width: 128px; padding: 8px 10px 9px; border-radius: 8px; background: var(--bg-surface); border: 1px solid var(--border-subtle-3); box-shadow: 0 6px 18px var(--ink-1); font-size: 11.5px; color: var(--text-3); z-index: 3; }
.map-tooltip-title { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.map-tooltip-row { display: flex; align-items: center; gap: 7px; height: 17px; white-space: nowrap; }
.map-tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-subtle-10); color: var(--text-muted-2); }
.map-tooltip-icon .icon { width: 9px; height: 9px; }
.map-zoom { position: absolute; right: 0; bottom: 6px; display: flex; flex-direction: column; gap: 1px; z-index: 3; }
.map-zoom-btn { width: 24px; height: 24px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1; color: var(--text-2); cursor: pointer; }
.map-zoom-btn:hover { background: var(--bg-subtle); }
.presence-legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 20px; font-size: 11.5px; color: var(--text-3); }
.presence-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot-lg { width: 12px; height: 12px; }

.geo-top-card { padding: 9px 12px 8px; height: 266px; }
.geo-top-card .card-header { height: 26px; margin-bottom: 8px; }
.geo-top-table th { height: 30px; font-size: 11.5px; padding: 0 8px; }
.geo-top-table td { height: 32px; padding: 0 8px; font-size: 12.5px; }
.geo-top-table .td-strong { font-weight: 600; color: var(--text); }
.geo-cell-xl { gap: 10px; }
.geo-cell-xl .flag { width: 20px; height: 15px; border-radius: 2px; }

.matrix-card { padding: 9px 14px 8px; height: 266px; }
.matrix-card .card-header { height: 26px; margin-bottom: 4px; gap: 8px; }
.info-hint { display: inline-flex; color: var(--text-disabled); }
.info-hint .icon { width: 13px; height: 13px; }
.matrix-body { position: relative; height: 212px; }
.matrix-y-title { position: absolute; left: -6px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.matrix-x-title { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10.5px; color: var(--muted); }
.matrix-plot { position: absolute; left: 44px; right: 8px; top: 8px; bottom: 34px; border-left: 1px solid var(--border-subtle-3); border-bottom: 1px solid var(--border-subtle-3); background-image: linear-gradient(var(--bg-muted) 1px, transparent 1px), linear-gradient(90deg, var(--bg-muted) 1px, transparent 1px); background-size: 100% 33.33%, 20% 100%; }
.matrix-y-label { position: absolute; right: calc(100% + 6px); transform: translateY(-50%); font-size: 10.5px; color: var(--muted); }
.matrix-x-label { position: absolute; top: calc(100% + 5px); transform: translateX(-50%); font-size: 10.5px; color: var(--muted); }
.matrix-bubble { position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.matrix-bubble-ring::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg-surface); }
.matrix-bubble-label { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--text); }

.geo-filter-bar { margin-bottom: 10px; gap: 8px; padding: 8px 10px; }
.geo-filter-bar .filter-control { flex: 1 1 0; width: auto; }
.geo-filter-bar .btn-more-filter { margin-left: 4px; }

.view-tabs-row-geo { margin-bottom: 8px; }
.quick-filters-geo { gap: 5px; margin-bottom: 0; }
.geo-chip { height: 32px; padding: 0 12px; font-size: 12px; box-shadow: var(--shadow-card); }
.geo-chip.is-active { background: var(--primary-2); border-color: var(--border-primary-6); color: #fff; }
.geo-chip-icon { width: 13px; height: 13px; }
.geo-chip .filter-chip-dot { width: 9px; height: 9px; }
.geo-chip-count { font-weight: 600; }
.geo-chip-count-red { color: var(--text-danger-2); }
.geo-chip-count-amber { color: var(--text-warning-2); }
.view-tabs-row-geo .view-toggle { margin-right: 0; height: 34px; }
.view-tabs-row-geo .view-toggle-btn { height: 26px; padding: 0 12px; font-size: 12px; }

.sites-table.geo-table thead th { height: 32px; font-size: 11.5px; padding: 0 10px; }
.sites-table.geo-table tbody td { height: 29.4px; padding: 0 10px; font-size: 12px; line-height: 1.1; }
.geo-table .td-health-cell { line-height: 0; }
.geo-table .dropdown { display: flex; }
.geo-table .td-check { line-height: 0; }
.geo-table .c-cb { width: 2.5%; } .geo-table .c-num { width: 2.6%; } .geo-table .c-country { width: 8.9%; } .geo-table .c-region { width: 4.6%; }
.geo-table .c-sites { width: 3.9%; } .geo-table .c-bm { width: 6.4%; } .geo-table .c-aff { width: 6.1%; } .geo-table .c-traffic { width: 7.6%; }
.geo-table .c-revenue { width: 8.1%; } .geo-table .c-cost { width: 7.6%; } .geo-table .c-profit { width: 6.9%; } .geo-table .c-margin { width: 4.9%; }
.geo-table .c-health { width: 4.6%; } .geo-table .c-trend { width: 5.6%; } .geo-table .c-status { width: 6.4%; } .geo-table .c-ctrl { width: 4.2%; } .geo-table .c-actions { width: 9.1%; }
.geo-table .th-check, .geo-table .td-check { padding-left: 8px; }
.geo-table .th-c, .geo-table .td-c { text-align: center; }
.geo-table .td-num-muted { color: var(--muted); }
.geo-table .td-profit { color: var(--text-success-3); font-weight: 600; }
.geo-table .geo-cell-xl { gap: 12px; }
.health-score-xs { width: 26px; height: 26px; }
.health-score-xs > span { width: 20px; height: 20px; font-size: 11px; }
.geo-table .status-pill { height: 22px; padding: 0 9px 0 8px; font-size: 11.5px; }
.geo-table .trend-text { font-size: 12px; }
.geo-table .btn-mini-ctrl { height: 25px; width: 39px; padding: 0 4px 0 6px; gap: 2px; border-radius: 6px; }
.btn-mini-ctrl .btn-icon { width: 14px; height: 14px; }
.btn-mini-ctrl .btn-chevron { width: 10px; height: 10px; margin-left: 0; }
.geo-table .btn-view-xs { height: 25px; padding: 0 14px; font-size: 12px; }
.geo-table .row-more .btn-icon-only-xs { height: 25px; width: 31px; }
.geo-table .row-actions { gap: 8px; }
.geo-footer { height: 57px; padding: 10px 12px 0 12px; }
.geo-footer .btn-bulk { width: 115px; height: 30px; }
.geo-footer .btn-apply { height: 30px; padding: 0 16px; margin-left: 5px; }
.geo-footer .btn-rpp { height: 30px; width: 58px; }
.geo-footer .page-btn { width: 26px; height: 28px; }
.geo-footer .page-prev, .geo-footer .page-next { width: 26px; }

/* --------------------------------------------------------------------------
   GEO DETAIL PAGE (design-reference/07-geo-detail-bangladesh.png, 1440 capture)
   -------------------------------------------------------------------------- */
.entity-header-geo { min-height: 125px; }
.entity-header-geo .entity-side { padding-top: 8px; }
.entity-flag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 86px; width: 86px; height: 86px; margin-top: 2px; border-radius: 50%; overflow: hidden; background: var(--success-12); }
.entity-flag .flag { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.entity-info-geo { padding-top: 8px; }
.entity-meta-geo { margin-top: 10px; }
.entity-header-geo .entity-desc-row { margin-top: 10px; max-width: 560px; }
.health-card-geo { width: 517px; height: 118px; padding: 0 22px 0 26px; }
.health-ring-md { flex-basis: 80px; width: 80px; height: 80px; }
.health-ring-md > span { width: 62px; height: 62px; font-size: 22px; }
.health-card-geo .health-card-body { padding-left: 26px; }
.health-pill-geo { margin-top: 0; height: 28px; padding: 0 14px; font-size: 14px; }
.health-card-geo .health-card-trend { margin-top: 12px; }
.health-card-geo .health-summary { padding-left: 30px; }
.health-card-geo .health-summary li { height: 27px; }
.detail-tabs-geo { height: 50px; margin-bottom: 12px; }
.detail-kpis-geo { padding: 20px 0 18px; margin-bottom: 12px; }
.geo-grid-charts .chart-area-trend { height: 162px; }
.detail-kpis-geo .detail-kpi { padding: 0 12px; }

.geo-grid-charts { grid-template-columns: 674fr 502fr; gap: 16px; margin-bottom: 12px; }
.geo-grid-mid { grid-template-columns: 610fr 566fr; gap: 16px; margin-bottom: 12px; }
.geo-grid-fin { grid-template-columns: 576fr 600fr; gap: 12px; margin-bottom: 12px; }
.geo-grid-bottom { grid-template-columns: 404fr 390fr 366fr; gap: 14px; margin-bottom: 0; align-items: stretch; }
.breakdown-body-geo { height: 204px; }
.donut-wrap-xl { flex: 0 0 190px; width: 190px; height: 190px; margin-left: 4px; }
.donut-wrap-xl canvas { width: 190px !important; height: 190px !important; }
.breakdown-body-geo .breakdown-legend { margin-left: 18px; }
.breakdown-body-geo .breakdown-legend li { height: 34px; }

.compare-card { padding: 14px 16px 12px; height: 224px; }
.compare-card .card-header { height: 30px; }
.control-range-sm { height: 30px; width: auto; padding: 0 10px 0 12px; font-size: 12px; }
.control-range-sm .control-chevron { margin-left: 10px; }
.chart-area-compare { height: 160px; margin-top: 4px; }
.gsc-card-geo { height: 224px; padding: 14px 16px 12px; }
.gsc-card-geo .card-header { height: 30px; }
.metric-tiles-geo { margin-top: 10px; gap: 10px; }
.metric-tile-lg { height: 106px; padding: 16px 14px 0; border-radius: 10px; }
.metric-tile-lg .metric-tile-label { font-size: 12px; }
.metric-tile-lg .metric-tile-value { margin-top: 12px; font-size: 20px; gap: 12px; }
.metric-tile-lg .metric-tile-value .trend-text { font-size: 12px; }
.insight-box { display: flex; align-items: center; gap: 12px; height: 54px; margin-top: 8px; padding: 0 16px; border-radius: 10px; background: var(--tint-success); border: 1px solid var(--border-success-2); font-size: 12px; color: var(--text-3); }
.insight-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; flex: 0 0 auto; }
.insight-icon .icon { width: 13px; height: 13px; stroke-width: 2.2; }

.geo-bm-table td { height: 43.5px; }
.geo-grid-mid .detail-table-card { padding-bottom: 8px; }
.geo-grid-mid .detail-table-card .card-header { margin-bottom: 10px; }
.geo-portfolio-table td { height: 37px; }
.geo-aff-table td { height: 38px; }
.bookmaker-cell-lg { gap: 10px; }
.bm-logo-sm { width: 26px; height: 26px; border-radius: 5px; }
.bm-logo-sm img { width: 22px; height: 16px; }
.bm-logo-sm .logo-mark { width: 20px; height: 18px; }

.fin-card { padding: 14px 16px 14px; }
.fin-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.fin-panel { min-height: 210px; padding: 12px 14px 10px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-subtle-2); }
.fin-panel-header { display: flex; align-items: center; justify-content: space-between; }
.fin-panel-title { font-size: 13px; font-weight: 700; color: var(--text); }
.chart-legend-sm { gap: 12px; font-size: 11px; }
.chart-legend-sm .legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.chart-area-fin { height: 160px; margin-top: 8px; }
.cost-legend { margin-top: 10px; }
.cost-legend li { height: 35px; font-size: 12.5px; }
.cost-legend .breakdown-value { width: 60px; }

.health-panel { display: flex; align-items: center; gap: 30px; height: 96px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-subtle-2); }
.health-ring-labeled > span { flex-direction: column; line-height: 1; }
.health-ring-labeled > span strong { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.health-ring-labeled > span small { margin-top: 2px; font-size: 9px; font-weight: 500; color: var(--muted); }
.health-summary-panel { border-left: 0; padding-left: 0; }
.subsection-header { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-top: 8px; padding: 0 6px; border-radius: 6px; background: var(--bg-subtle-10); }
.subsection-title { font-size: 13px; font-weight: 700; color: var(--text); }
.feed-row-issue { height: 40px; }
.feed-row-issue .feed-text { font-size: 12.5px; }
.geo-bottom-stack { display: flex; flex-direction: column; gap: 13px; }
.completeness-card { flex: 0 0 auto; padding-bottom: 10px; }
.progress-lg { flex: none; height: 12px; margin: 6px 0 0; border-radius: 6px; }
.completeness-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.completeness-meta strong { color: var(--text-success); font-weight: 700; }
.completeness-list { margin-top: 12px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-subtle-2); }
.completeness-list li { display: flex; align-items: center; gap: 12px; height: 31px; font-size: 12.5px; color: var(--text-2); }
.completeness-list .legend-dot { width: 10px; height: 10px; }
.btn-complete { height: 40px; margin-top: 14px; padding: 0 20px; font-size: 12.5px; font-weight: 700; }
.qa-card-geo { flex: 1 1 auto; padding: 10px 16px 1px; }
.qa-card-geo .card-header { height: 24px; margin-bottom: 0; }
.qa-grid-geo { gap: 9px; }
.qa-tile-geo { height: 70px; font-size: 11px; gap: 6px; }
.qa-tile-geo .qa-tile-icon .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   INFRASTRUCTURE PAGES — shared components (Domains / Registrars / Hosting / Cloudflare)
   -------------------------------------------------------------------------- */
.page-infra .page-heading-sites { padding-top: 6px; padding-bottom: 12px; }
.page-title-xl { font-size: 26px; line-height: 32px; letter-spacing: -.6px; }
.page-actions-infra { gap: 8px; margin-top: 3px; }
.page-actions-infra .btn { height: 37px; }
.page-actions-infra .btn-white { padding: 0 14px; }
.page-actions-infra .btn-green { margin-left: 0; height: 33px; padding: 0 16px 0 15px; }
.btn-more-hdr { width: 34px; padding: 0; }
.btn-more-hdr .btn-icon { width: 15px; height: 15px; }

/* sub navigation (white card tabs) */
.subnav { display: inline-flex; width: auto; height: 34px; margin-bottom: 18px; }
.subnav .detail-tab { flex: 0 0 auto; padding: 0 16px; font-size: 12.5px; gap: 8px; }
.subnav .detail-tab + .detail-tab::before { top: 8px; bottom: 8px; }
.subnav .detail-tab.is-active::after { height: 2px; }
.subnav .detail-tab-icon { width: 14px; height: 14px; }
.subnav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bg-track-5); margin-left: 2px; align-self: flex-start; margin-top: 8px; }

/* KPI cards (one metric per card) */
.infra-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 13px; }
.infra-kpis > * { min-width: 0; }
.kpi-card-infra { padding: 18px 0 16px; }
.kpi-card-infra .kpi-item { flex: 1 1 auto; padding: 0 12px; }
.kpi-card-infra .kpi-value { font-size: 22px; line-height: 26px; }
.kpi-card-infra .kpi-value-row { margin-top: 5px; }
.kpi-card-infra .kpi-sub { margin-top: 3px; }
.kpi-icon-amber.kpi-icon-outline { background: var(--tint-warning-2); color: var(--text-warning-5); }

/* provider marks */
.provider-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.provider-logo .provider-mark { width: 100%; height: 100%; display: block; }
.provider-logo-placeholder { border-radius: 6px; background: var(--bg-muted-9); color: var(--text-muted-2); }
.provider-logo-placeholder .icon { width: 12px; height: 12px; }
.provider-xs { width: 18px; height: 18px; }
.provider-sm { width: 24px; height: 24px; }
.provider-md { width: 30px; height: 30px; }
.provider-lg { width: 40px; height: 40px; }
.provider-xl { width: 64px; height: 64px; }
.bm-logo-xs { width: 22px; height: 22px; border-radius: 5px; }
.bm-logo-xs img { width: 18px; height: 13px; }
.bm-logo-xs .logo-mark { width: 16px; height: 15px; }

/* switch toggle */
.switch { position: relative; display: inline-flex; width: 28px; height: 16px; vertical-align: middle; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 8px; background: var(--bg-selected-12); transition: background-color .15s ease; }
.switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-2); transition: transform .15s ease; }
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(12px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.td-switch { line-height: 0; }

/* days-left pill, extra status tones */
.days-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.days-green { background: var(--tint-success); color: var(--text-success-2); }
.days-amber { background: var(--tint-warning); color: var(--text-warning); }
.days-red   { background: var(--tint-danger); color: var(--text-danger); }
.status-blue { background: var(--tint-info); color: var(--text-link-6); }
.status-blue .status-pill-dot { background: var(--primary-3); }
.status-gray { background: var(--bg-muted-2); color: var(--text-muted); }
.status-gray .status-pill-dot { background: var(--bg-track-5); }
.status-red { background: var(--tint-danger); color: var(--text-danger); }
.status-red .status-pill-dot { background: var(--danger); }
.dot-orange { background: var(--orange); }
.chip-icon-box { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; background: var(--bg-muted-2); color: var(--text-tertiary); }
.chip-icon-box .icon { width: 10px; height: 10px; }
.infra-chip { height: 29px; padding: 0 12px; }

/* compact filter bar */
.infra-filter-bar { padding: 6px 9px; gap: 9px; margin-bottom: 12px; }
.infra-filter-bar .filter-search { height: 35px; flex-basis: 202px; width: 202px; }
.infra-filter-bar .filter-control { flex: 1 1 0; width: auto; }
.infra-filter-bar .filter-control-btn { height: 35px; }
.infra-filter-bar .filter-control-label { font-size: 10.5px; line-height: 12px; }
.infra-filter-bar .filter-control-value { font-size: 11.5px; line-height: 13px; }
.infra-filter-bar .btn-more-filter { height: 35px; margin-left: 18px; padding: 0 16px; }

/* table extras */
.domain-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 100%; }
.ext-link { display: inline-flex; color: var(--text-disabled); }
.ext-link .icon { width: 11px; height: 11px; }
.ext-link:hover { color: var(--text-link); }
.td-muted { color: var(--muted) !important; }
.sites-table.geo-table thead th { height: 33px; }
.domains-table .status-pill { height: 20px; padding: 0 8px 0 7px; font-size: 11px; }

/* Domains analytics row */
.domains-analytics { display: grid; grid-template-columns: 536fr 362fr 374fr; gap: 13px; margin-bottom: 12px; }
.domains-analytics > * { min-width: 0; }
.renewals-card { height: 207px; padding: 12px 14px 8px; }
.renewals-card .card-header { height: 28px; }
.chart-legend-squares { height: 20px; margin: 6px 0 0; gap: 16px; font-size: 11.5px; }
.legend-square { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.chart-area-renewals { height: 142px; }
.donut-card-sm { height: 207px; padding: 12px 14px 8px; }
.donut-card-sm .card-header { height: 28px; }
.breakdown-body-sm { height: 150px; margin-top: 6px; }
.donut-wrap-130 { flex: 0 0 132px; width: 132px; height: 132px; margin-left: 8px; }
.donut-wrap-130 canvas { width: 132px !important; height: 132px !important; }
.donut-wrap-130 .donut-value { font-size: 20px; line-height: 24px; }
.breakdown-legend-sm { margin-left: 20px; }
.breakdown-legend-sm li { height: 29.5px; border-bottom: 0; font-size: 12px; gap: 8px; }
.breakdown-legend-sm .breakdown-name { white-space: nowrap; }
.breakdown-legend-sm .legend-dot { width: 9px; height: 9px; }
.breakdown-count { width: 22px; text-align: right; font-weight: 600; color: var(--text); }
.breakdown-legend-sm .breakdown-pct { width: 44px; text-align: left; margin-left: 2px; }

/* Registrar Accounts (09) */
.page-actions-infra .btn-green-lg { height: 38px; padding: 0 18px 0 16px; font-size: 12.5px; }
.page-registrars .page-heading-sites { padding-top: 20px; padding-bottom: 21px; }
.page-registrars .page-actions-infra { margin-top: 6px; }
.infra-kpis-tall { gap: 8px; margin-bottom: 12px; }
.kpi-card-tall { padding: 23px 0 23px; }
.kpi-card-tall .kpi-item { padding: 0 12px; }
.kpi-icon-44 { flex-basis: 44px; width: 44px; height: 44px; }
.kpi-icon-44 > .icon { width: 22px; height: 22px; }
.kpi-card-tall .kpi-body { margin-left: 10px; min-width: 0; }
.kpi-card-tall .kpi-label { font-size: 11px; letter-spacing: -.15px; line-height: 14px; overflow: hidden; text-overflow: ellipsis; }
.kpi-card-tall .kpi-value-row { margin-top: 9px; }
.kpi-card-tall .kpi-value { line-height: 26px; }
.kpi-card-tall .kpi-sub { margin-top: 8px; }

.provider-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.provider-cards > * { min-width: 0; }
.provider-card { height: 127px; padding: 14px 16px 21px; }
.provider-card-head { display: flex; align-items: center; gap: 10px; }
.provider-card-name { font-size: 12.5px; letter-spacing: -.2px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-card-line { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 14px; }
.provider-card-head + .provider-card-line { margin-top: 16px; }
.provider-card-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.provider-card-bar .progress { flex: 1 1 auto; margin-left: 0; height: 8px; }
.provider-card-pct { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.provider-logo .provider-mark { border-radius: 22%; }

.tabs-row-reg { margin-bottom: 2px; }
.subnav-reg { height: 42px; margin-bottom: 0; }
.subnav-reg .detail-tab { padding: 0 18px; font-size: 12.5px; }
.subnav-reg .detail-tab + .detail-tab::before { top: 10px; bottom: 10px; }
.btn-export { height: 36px; padding: 0 14px; font-weight: 500; }
.infra-filter-bar-lg { padding: 14px 12px; margin-bottom: 8px; }
.infra-filter-bar-lg .filter-search { height: 44px; flex-basis: 265px; width: 265px; }
.infra-filter-bar-lg .filter-control-btn { height: 44px; }
.infra-filter-bar-lg .filter-control-label { font-size: 11.5px; line-height: 13px; }
.infra-filter-bar-lg .filter-control-value { font-size: 12.5px; line-height: 14px; }
.infra-filter-bar-lg .btn-more-filter { height: 44px; margin-left: 18px; padding: 0 20px; }

.sites-table.reg-table thead th { height: 40px; }
.sites-table.reg-table tbody td { height: 36.7px; font-size: 12px; }
.provider-cell { display: inline-flex; align-items: center; gap: 12px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.count-red { background: var(--tint-danger); color: var(--text-danger); }
.count-green { background: var(--tint-success); color: var(--text-success-2); }
.reg-table .status-pill { height: 21px; padding: 0 9px 0 8px; font-size: 11.5px; }
.page-registrars .geo-footer { height: 69px; padding-top: 12px; }

.reg-bottom { display: grid; grid-template-columns: 381fr 388fr 394fr; gap: 13px; margin: 15px 0 23px; }
.reg-bottom > * { min-width: 0; }
.reg-bottom-card { height: 232px; padding: 15px 16px 12px; }
.reg-bottom-card .card-header { height: 26px; margin-bottom: 14px; }
.breakdown-body-reg { height: 156px; }
.donut-wrap-140 { flex: 0 0 152px; width: 152px; height: 152px; margin-left: -3px; margin-top: 2px; }
.donut-wrap-140 canvas { width: 152px !important; height: 152px !important; }
.breakdown-legend-reg { margin-left: 28px; margin-top: -2px; }
.breakdown-legend-reg li { height: 35px; }
.chart-area-reg { height: 156px; }
.feed-row-reg { height: 35.5px; border-bottom: 0; gap: 10px; }
.feed-row-reg .feed-text { font-size: 12px; }
.feed-row-reg .feed-time { font-size: 11.5px; }
.feed-icon-round { width: 20px; height: 20px; border-radius: 50%; }
.feed-icon-round .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.feed-icon-amber { background: var(--tint-warning-2); color: var(--text-warning-5); }
.cta-banner-reg { min-height: 95px; padding: 0 32px; gap: 20px; }
.page-content.page-registrars { padding-bottom: 54px; }
.cta-banner-reg .cta-title { font-size: 15px; }
.cta-banner-reg .cta-text { font-size: 12.5px; }
.btn-cta-blue { background: var(--primary-2); height: 41px; padding: 0 24px; }
.btn-cta-blue:hover { background: var(--primary-hover); }


/* Hosting & Servers (10) */
.page-content.page-domains, .page-content.page-hosting { padding-left: 12px; }
.page-hosting .page-heading-sites { padding-top: 6px; padding-bottom: 14px; }
.page-actions-host { margin-top: 4px; gap: 12px; }
.page-actions-host .btn { height: 36px; }
.page-actions-host .btn-white { padding: 0 14px; }
.page-actions-host .btn-green-lg { height: 36px; padding: 0 16px 0 15px; }
.btn-export-hdr .btn-chevron { margin-left: 4px; }
.infra-kpis-7 { grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.kpi-card-host { padding: 15px 0 12px; }
.kpi-card-host .kpi-item { align-items: flex-start; padding: 0 14px; }
.kpi-icon-38 { flex-basis: 39px; width: 39px; height: 39px; }
.kpi-icon-38 > .icon { width: 20px; height: 20px; }
.kpi-card-host .kpi-body { margin-left: 10px; min-width: 0; padding-top: 1px; }
.kpi-card-host .kpi-label { font-size: 10.5px; letter-spacing: -.2px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-card-host .kpi-value-row { margin-top: 7px; }
.kpi-card-host .kpi-value { font-size: 21px; line-height: 26px; }
.kpi-card-host .kpi-sub { margin-top: 3px; font-size: 11px; }

.provider-cards-host { gap: 8px; margin-bottom: 15px; }
.provider-card-host { height: 105px; padding: 6px 16px 11px; }
.provider-card-host .provider-card-head { height: 32px; gap: 12px; }
.provider-card-host .provider-card-head + .provider-card-line { margin-top: 4px; }
.provider-card-host .provider-card-line { margin-top: 0; line-height: 16px; font-size: 11.5px; }
.provider-card-host .provider-card-bar { margin-top: 8px; gap: 12px; }
.provider-card-host .provider-card-pct { min-width: 24px; text-align: right; }
.line-sep { margin: 0 6px; color: var(--text-disabled); }

.host-analytics { display: grid; grid-template-columns: 556fr 366fr 359fr; gap: 9px; margin-bottom: 9px; }
.host-analytics > * { min-width: 0; }
.host-card { height: 209px; padding: 8px 16px 10px; }
.host-card-header { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.host-card-header .card-title { font-size: 14px; }
.btn-range-sm { height: 23px; padding: 0 9px 0 10px; font-size: 11.5px; font-weight: 500; }
.btn-range-sm .btn-chevron { width: 11px; height: 11px; margin-left: 6px; }
.host-legend { display: flex; align-items: center; gap: 22px; height: 20px; margin: -2px 0 0 238px; font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.host-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.host-legend-sq { width: 12px; height: 11px; border-radius: 3px; }
.chart-area-host { position: relative; height: 156px; margin-top: -4px; }
.host-dist-body { display: flex; align-items: flex-start; margin-top: 15px; }
.donut-wrap-142 { flex: 0 0 142px; width: 142px; height: 142px; margin-left: 9px; }
.donut-wrap-142 canvas { width: 142px !important; height: 142px !important; }
.host-dist-legend { flex: 1 1 auto; list-style: none; margin: -6px 9px 0 22px; padding: 0; }
.host-dist-legend li { display: flex; align-items: center; gap: 12px; height: 24.7px; font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.host-dist-legend .breakdown-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.host-dist-name { flex: 1 1 auto; }
.host-dist-count { width: 20px; text-align: right; font-weight: 600; color: var(--text); }
.host-dist-pct { width: 34px; text-align: right; color: var(--muted); font-weight: 500; }
.renewal-list { list-style: none; margin: -2px -1px 0 2px; padding: 0; }
.renewal-row { display: flex; align-items: center; height: 34.5px; gap: 0; }
.date-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 36px; height: 29px; border-radius: 6px; background: var(--bg-subtle-15); line-height: 1; flex: 0 0 auto; }
.date-badge-month { font-size: 7.5px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; color: var(--text-muted); }
.date-badge-red { color: var(--text-danger); }
.date-badge-amber { color: var(--text-warning); }
.date-badge-day { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.renewal-text { flex: 1 1 auto; margin-left: 14px; font-size: 11px; letter-spacing: -.1px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.renewal-cost { width: 54px; font-size: 11.5px; color: var(--text); font-weight: 500; flex: 0 0 auto; }
.days-pill-sm { height: 18px; min-width: 52px; padding: 0 6px; font-size: 11px; border-radius: 5px; flex: 0 0 auto; margin-left: 12px; }
.days-gray { background: var(--bg-muted-2); color: var(--text-muted); }

.infra-filter-bar-host { margin-bottom: 2px; }
.infra-filter-bar-host .filter-search { flex-basis: 220px; width: 220px; }
.infra-filter-bar-host .filter-search input { font-size: 11px; }
.page-hosting .infra-chip { font-size: 11.5px; padding: 0 9px; }
.infra-filter-bar-host .btn-more-filter { margin-left: 8px; }
.view-tabs-row-host { margin-bottom: 7px; }

.sites-table.host-table thead th { height: 27px; font-size: 11.5px; }
.sites-table.host-table tbody td { height: 25.6px; font-size: 11.5px; }
.host-table .provider-cell-sm { gap: 10px; }
.host-table .td-danger { color: var(--text-danger); }
.usage-cell { display: inline-flex; align-items: center; gap: 8px; }
.usage-bar { display: block; width: 59px; height: 8px; border-radius: 4px; background: var(--bg-muted-4); overflow: hidden; }
.usage-fill { display: block; height: 100%; border-radius: 4px; }
.usage-green { background: var(--success); }
.usage-amber { background: var(--warning); }
.usage-red { background: var(--danger); }
.usage-pct { font-size: 11px; color: var(--text-3); }
.health-ring-xxs { flex-basis: 22px; width: 22px; height: 22px; margin-left: 4px; }
.health-ring-xxs > span { width: 16px; height: 16px; font-size: 8.5px; letter-spacing: -.2px; }
.host-table .status-pill { height: 23px; padding: 0 9px 0 8px; font-size: 11.5px; }
.host-table .geo-cell-lg { gap: 9px; }
.page-hosting .geo-footer { height: 54px; padding-top: 10px; }
.page-hosting .geo-footer .btn-bulk, .page-hosting .geo-footer .btn-apply, .page-hosting .geo-footer .btn-rpp { height: 30px; }


/* Hosting Server Detail (11) — 1440 capture */
.page-content.page-server { padding-left: 8px; padding-bottom: 130px; }
.breadcrumb-row-server { padding-top: 16px; }
.breadcrumb-server { padding-top: 6px; padding-left: 20px; font-size: 12.5px; }
.entity-actions-server { gap: 12px; margin-top: 10px; }
.page-server .entity-actions-server .btn-lg { height: 40px; padding: 0 22px; font-size: 12.5px; }
.page-server .entity-actions-server .btn-lg.btn-green { padding: 0 32px 0 30px; }
.entity-header-server { min-height: 0; margin-top: -5px; margin-bottom: 9px; gap: 20px; }
.entity-main-server { gap: 26px; padding-left: 20px; }
.entity-logo-round { flex-basis: 100px; width: 100px; height: 100px; margin-top: 0; border-radius: 50%; background: var(--bg-surface); box-shadow: var(--shadow-card); }
.provider-hero { width: 72px; height: 72px; }
.provider-hero .provider-mark { border-radius: 24%; }
.entity-info-server { padding-top: 13px; }
.entity-info-server .entity-title { font-size: 26px; line-height: 30px; }
.entity-info-server .status-pill-lg { height: 28px; padding: 0 13px 0 11px; font-size: 12.5px; }
.entity-meta-server { margin-top: 10px; gap: 0 18px; }
.entity-meta-server li { font-size: 12.5px; gap: 8px; }
.entity-meta-server .entity-meta-icon { width: 15px; height: 15px; }
.entity-meta-server .flag { width: 18px; height: 13px; border-radius: 2px; }
.entity-desc-server { margin-top: 13px; font-size: 12.5px; color: var(--muted); }
.health-card-server { width: 430px; height: 113px; margin-top: 8px; padding: 0 14px 0 14px; }
.health-ring-86 { flex-basis: 86px; width: 86px; height: 86px; }
.health-ring-86 > span { width: 68px; height: 68px; font-size: 25px; }
.health-card-label { margin-left: 16px; font-size: 17px; font-weight: 700; line-height: 26px; color: var(--text); white-space: nowrap; }
.health-card-divider { width: 1px; height: 62px; margin: 0 28px 0 auto; background: var(--bg-muted-9); }
.health-card-system { display: flex; align-items: center; gap: 12px; padding-right: 8px; }
.health-sys-icon { width: 22px; height: 22px; }
.health-sys-icon .icon { width: 12px; height: 12px; }
.health-sys-title { font-size: 12.5px; font-weight: 500; color: var(--text-2); line-height: 16px; white-space: nowrap; }
.health-sys-sub { margin-top: 9px; font-size: 11.5px; color: var(--muted); line-height: 14px; white-space: nowrap; }

.detail-tabs-server { height: 48px; margin-bottom: 14px; }
.detail-tabs-server .detail-tab { flex: 0 0 auto; justify-content: flex-start; font-size: 12.5px; gap: 10px; padding: 0 12px 0 27px; }
.detail-tabs-server .detail-tab:first-child { padding-left: 40px; }
.detail-tabs-server .detail-tab:last-child { flex: 1 1 auto; }
.detail-tabs-server .detail-tab + .detail-tab::before { top: 14px; bottom: 14px; }
.detail-tabs-server .detail-tab.is-active::after { height: 2px; }
.detail-tabs-server .detail-tab-icon { width: 16px; height: 16px; }
.detail-tab-chevron { width: 12px; height: 12px; color: var(--text-muted); margin-left: 4px; }

.server-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 15px; }
.server-kpis > * { min-width: 0; }
.server-kpi { display: flex; align-items: flex-start; gap: 13px; height: 132px; padding: 17px 12px 0 32px; }
.server-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; }
.server-kpi-icon > .icon { width: 20px; height: 20px; }
.kpi-icon-amber.kpi-icon-outline { background: var(--tint-warning-2); color: var(--text-warning-5); }
.kpi-icon-red.kpi-icon-outline { background: var(--tint-danger); color: var(--text-danger-5); }
.server-kpi-body { min-width: 0; padding-top: 2px; }
.server-kpi-value { font-size: 20px; font-weight: 700; line-height: 24px; letter-spacing: -.4px; color: var(--text); white-space: nowrap; }
.server-kpi-label { margin-top: 4px; font-size: 11.5px; font-weight: 500; line-height: 14px; color: var(--muted); white-space: nowrap; }
.server-kpi-trend { display: inline-flex; margin-top: 13px; height: 19px; padding: 0 7px 0 6px; font-size: 11px; }
.server-kpi-trend-none { align-items: center; padding: 0 8px; border-radius: 6px; background: var(--bg-muted-2); color: var(--text-muted); font-weight: 600; }
.server-kpi-sub { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }

.server-row-2 { display: grid; grid-template-columns: 495fr 316fr 356fr; gap: 18px 18px; margin-bottom: 15px; }
.server-row-2 > * { min-width: 0; }
.server-row-2 > .srv-info-card { margin-right: -3px; }
.res-header { display: flex; align-items: center; justify-content: space-between; height: 26px; margin-bottom: 0; }
.res-header .card-title { font-size: 14px; }
.res-header .card-subnote { margin-top: 0; font-size: 11.5px; }
.res-card { padding: 8px 16px 14px; }
.res-indicator { display: block; width: 54px; height: 6px; margin: 16px 0 0 -2px; border-radius: 3px; background: var(--primary-2); }
.res-meters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 19px; }
.res-meter { display: flex; flex-direction: column; align-items: center; text-align: center; }
.health-ring-80 { flex-basis: 80px; width: 80px; height: 80px; }
.health-ring-80 > span { width: 66px; height: 66px; font-size: 16px; letter-spacing: -.3px; }
.health-ring-blue { --c: #2C63F0; }
.res-meter-label { margin-top: 11px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.res-meter-sub { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.note-strip { display: flex; align-items: center; gap: 12px; margin-top: 29px; padding: 0 14px; min-height: 50px; border-radius: 8px; font-size: 11.5px; color: var(--text-2); }
.note-strip-green { background: var(--tint-success-12); }
.note-strip-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--success); color: #fff; flex: 0 0 auto; }
.note-strip-icon .icon { width: 11px; height: 11px; }
.view-details { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; float: right; font-size: 12.5px; }
.view-details-arrow { width: 13px; height: 13px; transform: rotate(90deg); }

.srv-info-card { padding: 8px 16px 11px 19px; }
.srv-info-card .res-header { margin-bottom: 8px; }
.btn-edit-srv { height: 26px; padding: 0 10px; font-size: 11.5px; gap: 6px; }
.btn-edit-srv .btn-icon { width: 12px; height: 12px; }
.kv-row-server { align-items: center; min-height: 27.3px; padding: 0; gap: 0; }
.kv-row-server dt { flex: 0 0 119px; font-size: 12px; line-height: 16px; }
.kv-row-server dd { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text-2); min-width: 0; }
.kv-row-server dd .flag { width: 18px; height: 13px; border-radius: 2px; }
.kv-row-server .status-pill-sm { height: 20px; }

.bill-card { padding: 8px 12px 8px 12px; }
.bill-card .res-header { margin-bottom: 8px; }
.bill-box { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 0 10px; background: var(--bg-subtle-4); }
.bill-row { align-items: center; min-height: 31px; padding: 0; gap: 0; }
.bill-row dt { flex: 0 0 161px; font-size: 12px; line-height: 16px; }
.bill-row dd { display: flex; align-items: center; gap: 14px; font-size: 12px; line-height: 16px; color: var(--text); font-weight: 500; }
.bill-danger { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--tint-danger); color: var(--text-danger); font-weight: 500; }
.bill-extra { font-weight: 500; }
.bill-mini-title { margin-top: 24px; font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.chart-area-bill { height: 89px; margin-top: 11px; }

.server-row-3 { display: grid; grid-template-columns: 446fr 380fr 344fr; gap: 15px; margin-bottom: 14px; }
.server-row-3 > * { min-width: 0; }
.dist-card { padding: 8px 16px 14px; }
.seg-tabs { display: flex; box-sizing: border-box; margin-top: 3px; padding: 4px; height: 44px; border-radius: 8px; background: var(--bg-muted); }
.seg-tab { flex: 1 1 0; border: 1px solid transparent; border-radius: 6px; background: transparent; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.seg-tab.is-active { background: var(--bg-surface); border-color: var(--border-primary-13); color: var(--text-link); font-weight: 600; box-shadow: 0 1px 2px var(--ink-06); }
.dist-body { display: flex; align-items: center; margin-top: 13px; }
.donut-wrap-152 { flex: 0 0 152px; width: 152px; height: 152px; margin-left: 31px; }
.donut-wrap-152 canvas { width: 152px !important; height: 152px !important; }
.dist-legend { flex: 1 1 auto; list-style: none; margin: 0 6px 0 33px; padding: 0; }
.dist-legend li { display: flex; align-items: center; gap: 12px; height: 39.5px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.dist-legend .breakdown-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.dist-name { flex: 1 1 auto; margin-left: 6px; }
.dist-count { width: 20px; text-align: right; font-weight: 600; color: var(--text); }
.dist-pct { width: 36px; text-align: right; color: var(--muted); }

.dep-card { padding: 8px 16px 14px; }
.dep-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 13px; }
.dep-tile { display: flex; flex-direction: column; align-items: center; height: 117px; padding-top: 14px; border: 1px solid var(--border-subtle-2); border-radius: 8px; background: var(--bg-subtle); }
.dep-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--bg-selected-5); color: var(--text-link); }
.dep-tile-icon .icon { width: 18px; height: 18px; }
.dep-tile-value { margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 22px; color: var(--text); }
.dep-tile-label { margin-top: 6px; font-size: 12px; color: var(--muted); }
.note-strip-lg { margin-top: 22px; min-height: 66px; gap: 12px; padding: 0 10px; }
.note-strip-icon-lg { width: 28px; height: 28px; }
.note-strip-icon-lg .icon { width: 14px; height: 14px; }
.note-strip-title { font-size: 12.5px; font-weight: 700; color: var(--text-success-14); line-height: 16px; }
.note-strip-text { margin-top: 4px; font-size: 11px; letter-spacing: -.15px; white-space: nowrap; color: var(--text-2); line-height: 15px; }

.qa-card-server { padding: 8px 8px 14px 15px; }
.qa-grid-server { gap: 14px 9px; margin-top: 13px; }
.qa-tile-server { height: 71px; gap: 12px; font-size: 12px; letter-spacing: 0; padding: 0 4px; white-space: nowrap; overflow: hidden; }
.qa-tile-server .qa-tile-icon .icon { width: 18px; height: 18px; }

.server-sites-card { margin-bottom: 22px; padding-bottom: 9px; }
.server-sites-header { display: flex; align-items: center; justify-content: space-between; height: 59px; padding: 0 10px 0 18px; }
.card-title-md { font-size: 15px; font-weight: 700; }
.server-sites-tools { display: flex; align-items: center; gap: 10px; }
.filter-search-server { flex: 0 0 260px; width: 260px; height: 38px; }
.filter-search-server input { font-size: 11.5px; }
.btn-filter-sm { height: 37px; padding: 0 12px; font-size: 11.5px; font-weight: 500; gap: 8px; }
.btn-filter-sm .btn-chevron { margin-left: 0; }
.btn-assign-srv { height: 36px; padding: 0 20px 0 18px; margin-left: 0; }
.sites-table.server-sites-table thead th { height: 41px; font-size: 12px; padding: 0 16px; }
.sites-table.server-sites-table tbody td { height: 40px; font-size: 12.5px; padding: 0 16px; }
.server-sites-table .th-check, .server-sites-table .td-check { padding-left: 24px; }
.server-sites-table .td-num { color: var(--text-2); }
.server-sites-table .site-cell { display: inline-flex; align-items: center; gap: 12px; }
.bm-logo-fav { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 5px; }
.server-sites-table .geo-cell-lg { gap: 10px; }
.server-sites-table .geo-cell-lg .flag { width: 20px; height: 14px; border-radius: 2px; }
.health-ring-29 { flex-basis: 29px; width: 29px; height: 29px; margin-left: 2px; }
.health-ring-29 > span { width: 22px; height: 22px; font-size: 10px; letter-spacing: -.2px; }
.server-sites-table .status-pill { height: 24px; padding: 0 10px 0 9px; font-size: 12px; }
.geo-table .row-more .btn-more-29 { height: 29px; width: 36px; }

.server-row-4 { display: grid; grid-template-columns: 404fr 366fr 403fr; gap: 14px; }
.server-row-4 > * { min-width: 0; }
.srv-act-card, .srv-alerts-card, .srv-backup-card { height: 358px; padding: 12px 16px 14px; }
.feed-list-server { margin-top: 14px; }
.srv-alerts-card .feed-list-server { margin-top: 19px; }
.feed-row-server { height: 47px; gap: 14px; }
.feed-row-server .feed-text { font-size: 12.5px; }
.feed-row-server .feed-time { font-size: 12px; }
.feed-muted { color: var(--muted); font-weight: 400; }
.feed-dot-28 { width: 28px; height: 28px; }
.feed-dot-28 .icon { width: 13px; height: 13px; }
.feed-dot-26 { width: 26px; height: 26px; }
.feed-dot-26 .icon { width: 12px; height: 12px; }
.feed-dot-red-soft { background: var(--tint-danger); color: var(--text-danger-5); }
.show-more { display: inline-block; margin-top: 18px; font-size: 12.5px; }
.status-pill-backup { height: 24px; padding: 0 11px 0 9px; font-size: 12px; }
.backup-box { list-style: none; margin: 22px 0 0; padding: 0 12px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-subtle-4); }
.backup-row { display: flex; align-items: center; gap: 10px; height: 44.5px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.backup-row:last-child { border-bottom: 0; }
.backup-icon { width: 15px; height: 15px; color: var(--text-muted); flex: 0 0 auto; }
.backup-label { flex: 1 1 auto; color: var(--text-2); font-weight: 500; }
.backup-value { font-weight: 700; color: var(--text); }
.btn-backup-history { display: flex; justify-content: center; width: 100%; height: 43px; margin-top: 47px; font-size: 12.5px; font-weight: 600; gap: 66px; }
.btn-arrow-srv { transform: rotate(90deg); width: 14px; height: 14px; }


/* Cloudflare Accounts (12) */
.page-content.page-cloudflare { padding-left: 10px; }
.breadcrumb-cf { padding: 2px 0 0 0; font-size: 11.5px; }
.page-infra .page-heading-cf { padding-top: 11px; padding-bottom: 16px; }
.page-actions-cf { margin-top: 6px; gap: 10px; }
.page-actions-cf .btn { height: 34px; }
.page-actions-cf .btn-green-lg { height: 34px; padding: 0 16px 0 14px; margin-left: 6px; }
.infra-kpis-cf { gap: 5px; margin-bottom: 13px; }
.kpi-card-cf { padding: 21px 0 19px; }
.kpi-card-cf .kpi-item { align-items: flex-start; padding: 0 18px; }
.kpi-icon-40 { flex-basis: 40px; width: 40px; height: 40px; margin-top: 2px; }
.kpi-icon-40 > .icon { width: 20px; height: 20px; }
.kpi-icon-orange.kpi-icon-outline { background: var(--tint-warning-6); color: #F6821F; }
.kpi-icon-indigo.kpi-icon-outline { background: var(--tint-purple); color: var(--text-purple); }
.kpi-card-cf .kpi-body { margin-left: 16px; min-width: 0; }
.kpi-card-cf .kpi-label { font-size: 11px; letter-spacing: -.1px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-card-cf .kpi-value-row { margin-top: 6px; }
.kpi-card-cf .kpi-value { line-height: 26px; }
.kpi-card-cf .kpi-sub { margin-top: 4px; }
.kpi-trend-gray { background: var(--bg-muted-2); color: var(--text-muted); padding: 0 6px; }

.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 21px; }
.cf-analytics { display: grid; grid-template-columns: 380fr 435fr 229fr; gap: 8px; margin-bottom: 19px; }
.cf-analytics > * { min-width: 0; }
.cf-card { height: 196px; padding: 8px 14px 8px 14px; }
.cf-card .cf-card-header { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 0; }
.cf-card-header .card-title { font-size: 14.5px; }
.btn-range-cf { height: 26px; padding: 0 8px 0 12px; font-size: 11.5px; }
.cf-donut-body { height: 152px; margin-top: 2px; align-items: flex-start; }
.donut-wrap-144 { flex: 0 0 144px; width: 144px; height: 144px; margin-left: 6px; }
.donut-wrap-144 canvas { width: 144px !important; height: 144px !important; }
.cf-legend { margin: 0 6px 0 32px; }
.cf-legend li { height: 23.6px; font-size: 11.5px; gap: 7px; }
.cf-legend .breakdown-count { width: 18px; font-size: 11.5px; }
.cf-legend .breakdown-pct { width: 40px; font-size: 11.5px; margin-left: 0; }
.chart-area-cf-geo { height: 148px; margin-top: 2px; }
.cf-zone-body { height: 148px; margin-top: 0; align-items: flex-start; }
.donut-wrap-100 { flex: 0 0 100px; width: 100px; height: 100px; margin-top: 7px; }
.donut-wrap-100 canvas { width: 100px !important; height: 100px !important; }
.donut-label-xs { font-size: 10.5px; margin-top: 0; }
.zone-legend { flex: 1 1 auto; list-style: none; margin: 17px 0 0 12px; padding: 0; }
.zone-legend li { display: flex; align-items: center; gap: 6px; height: 24px; font-size: 10.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.zone-legend .legend-dot { width: 8px; height: 8px; flex: 0 0 auto; }
.zone-name { flex: 1 1 auto; }
.zone-count { font-weight: 600; color: var(--text); }
.zone-pct { color: var(--muted); }

.cf-filter-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.cf-search { flex: 0 0 249px; width: 249px; height: 40px; border-radius: 8px; }
.cf-search input { font-size: 11.5px; }
.cf-filter-control { flex: 1 1 0; width: auto; }
.cf-filter-control[data-filter-key="views"] { flex: 0 0 126px; }
.cf-filter-control .filter-control-btn { height: 40px; background: var(--bg-surface); }
.cf-filter-control .filter-control-label { font-size: 10.5px; line-height: 12px; }
.cf-filter-control .filter-control-value { font-size: 11.5px; line-height: 13px; }
.btn-more-filter-cf { height: 40px; margin-left: 34px; padding: 0 20px; }

.cf-table-card { min-height: 480px; padding-bottom: 12px; }
.sites-table.cf-table thead th { height: 32px; font-size: 11.5px; padding: 0 8px; }
.sites-table.cf-table tbody td { height: 31px; font-size: 11px; letter-spacing: -.1px; padding: 0 8px; }
.cf-table .th-check, .cf-table .td-check { padding-left: 10px; }
.provider-cell-cf { gap: 8px; margin-left: -13px; }
.cf-mark { display: inline-flex; width: 26px; height: 20px; color: #F6821F; flex: 0 0 auto; }
.cf-mark .icon { width: 26px; height: 20px; stroke-width: 2.4; }
.status-pill-xs { height: 20px; padding: 0 8px 0 7px; font-size: 11px; }
.geo-table .row-more .btn-more-cf { height: 26px; width: 27px; }
.cf-row.is-expanded td { border-bottom: 0; }
.cf-expand-row > td { padding: 0 22px 0 31px !important; height: auto !important; border-bottom: 1px solid var(--border-soft); }
.cf-panel { border: 1px solid var(--border-default-3); border-radius: 8px; background: var(--bg-subtle-2); padding: 0 0 17px; }
.cf-panel-head { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 8px 0 0; border-bottom: 1px solid var(--border-default-3); }
.cf-panel-tabs { display: flex; align-items: stretch; height: 100%; }
.cf-panel-tab { position: relative; padding: 0 13px; border: 0; background: transparent; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.cf-panel-tab.is-active { color: var(--text-link); font-weight: 600; }
.cf-panel-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); }
.cf-panel-actions { display: flex; align-items: center; gap: 8px; }
.btn-panel { height: 30px; padding: 0 12px; font-size: 11.5px; font-weight: 500; gap: 8px; }
.sites-table.cf-inner-table { width: 100%; table-layout: fixed; }
.sites-table.cf-inner-table thead th { height: 31px; font-size: 11.5px; padding: 0 8px; background: transparent; }
.sites-table.cf-inner-table tbody td { height: 29.8px; font-size: 11px; letter-spacing: -.1px; padding: 0 8px; }
.cf-inner-table .th-check, .cf-inner-table .td-check { padding-left: 16px; line-height: 0; }
.cf-inner-table .bookmaker-cell { display: inline-flex; align-items: center; gap: 8px; }
.cf-inner-table .switch { width: 28px; height: 16px; }
.cf-inner-table .row-more .btn-icon-only-xs { height: 22px; width: 27px; }
.cf-inner-table .dropdown { display: flex; }
.cf-view-all { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 0 16px; font-size: 11.5px; font-weight: 600; }

.cf-side-card { padding: 8px 13px 6px; }
.cf-side-card .side-card-header { height: 30px; margin-bottom: 0; }
.cf-side-card .side-card-header .card-title { font-size: 14.5px; }
.cf-qa-list { gap: 5px; margin-top: -3px; }
.cf-qa-row { height: 30.5px; gap: 8px; padding: 0 6px 0 7px; text-decoration: none; }
.cf-qa-row .tile-label { font-size: 11px; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-icon-sm { width: 22px; height: 22px; border-radius: 6px; }
.tile-icon-sm .icon { width: 12px; height: 12px; }
.cf-side { display: flex; flex-direction: column; gap: 19px; }
.cf-activity-card { padding-bottom: 0; }
.cf-feed { list-style: none; margin: 4px 0 0; padding: 0; }
.cf-feed-row { display: flex; align-items: center; gap: 12px; height: 46px; }
.feed-icon-round-24 { width: 24px; height: 24px; border-radius: 50%; }
.feed-icon-round-24 .icon { width: 12px; height: 12px; }
.feed-icon-red { background: var(--tint-danger); color: var(--text-danger-5); }
.cf-feed-text { display: flex; flex-direction: column; min-width: 0; }
.cf-feed-title { font-size: 11.5px; font-weight: 500; color: var(--text); line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-feed-sub { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-help-card { padding: 16px 12px 14px; background: var(--bg-selected-6); border: 1px solid var(--border-primary-4); }
.cf-help-head { display: flex; align-items: flex-start; gap: 12px; }
.cf-help-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; flex: 0 0 auto; }
.cf-help-icon .icon { width: 14px; height: 14px; }
.cf-help-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 18px; }
.cf-help-text { margin-top: 10px; font-size: 11.5px; line-height: 16px; color: var(--text-3); }
.btn-help-doc { display: flex; justify-content: center; width: 100%; height: 36px; margin-top: 11px; font-size: 12px; font-weight: 600; gap: 10px; }


/* Cloudflare Account Detail (13) — 1440 capture */
.page-content.page-cf-detail { padding-left: 26px; padding-right: 19px; }
.breadcrumb-row-cfd { padding-top: 14px; }
.breadcrumb-cfd { padding-left: 0; }
.entity-actions-cfd { margin-top: 14px; }
.page-server .entity-actions-cfd .btn-lg { padding: 0 16px; }
.page-server .entity-actions-cfd .btn-lg.btn-green { padding: 0 20px 0 18px; }
.page-server .entity-actions-cfd .btn-kebab-lg { width: 36px; padding: 0; }
.entity-header-cfd { margin-top: -6px; margin-bottom: 13px; min-height: 108px; }
.entity-main-cfd { padding-left: 0; gap: 20px; }
.cf-mark-hero { width: 118px; height: 68px; }
.cf-mark-hero .icon { width: 118px; height: 68px; stroke-width: 1.6; }
.entity-info-cfd { padding-top: 12px; }
.entity-meta-cfd { margin-top: 12px; gap: 0 20px; }
.entity-meta-cfd li { font-size: 12.5px; }
.entity-meta-chevron { width: 12px; height: 12px; color: var(--text-muted); margin-left: -2px; }
.entity-desc-cfd { margin-top: 12px; font-size: 12px; color: var(--muted); }
.meta-dot { margin: 0 8px; color: var(--text-disabled-6); }

.detail-tabs-cfd { height: 52px; margin-bottom: 16px; }
.detail-tabs-cfd .detail-tab:first-child { padding-left: 22px; }
.detail-tabs-cfd .detail-tab { padding-right: 8px; }

.cfd-kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 17px; }
.cfd-kpis > * { min-width: 0; }
.cfd-kpi { display: flex; align-items: flex-start; gap: 16px; height: 132px; padding: 20px 8px 0 14px; }
.cfd-kpi-icon { flex-basis: 32px; width: 32px; height: 32px; margin-top: 2px; }
.cfd-kpi-icon > .icon { width: 17px; height: 17px; }
.cfd-kpi-body { min-width: 0; }
.cfd-kpi-label { height: 34px; font-size: 11.5px; font-weight: 500; line-height: 17px; color: var(--muted); }
.cfd-kpi-value-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.cfd-kpi-value { font-size: 23px; font-weight: 700; line-height: 24px; letter-spacing: -.4px; color: var(--text); }
.cfd-kpi-trend { height: 19px; padding: 0 6px 0 5px; font-size: 10.5px; }
.cfd-kpi-sub { margin-top: 12px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfd-kpi-health { flex-direction: column; align-items: center; gap: 0; padding: 20px 8px 0; text-align: center; }
.cfd-kpi-health .cfd-kpi-label { height: auto; }
.health-ring-66 { flex-basis: 66px; width: 66px; height: 66px; margin-top: 4px; }
.health-ring-66 > span { width: 52px; height: 52px; font-size: 18px; }
.cfd-kpi-health .cfd-kpi-sub { margin-top: 8px; }

.cfd-row-2 { display: grid; grid-template-columns: 314fr 326fr 306fr 195fr; gap: 14px; margin-bottom: 14px; }
.cfd-row-2 > * { min-width: 0; }
.cfd-card { height: 230px; }
.cfd-donut-body { height: 170px; margin-top: 0; align-items: flex-start; }
.donut-wrap-146 { flex: 0 0 146px; width: 146px; height: 146px; margin: 20px 0 0 -8px; }
.donut-wrap-146 canvas { width: 146px !important; height: 146px !important; }
.cfd-legend { flex: 1 1 auto; list-style: none; margin: 22px 0 0 13px; padding: 0; }
.cfd-legend li { display: flex; align-items: center; gap: 8px; height: 27px; font-size: 11.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.cfd-legend .legend-dot { width: 10px; height: 10px; flex: 0 0 auto; }
.cfd-legend-name { flex: 1 1 auto; margin-left: 2px; }
.cfd-legend-count { width: 16px; text-align: right; font-weight: 600; color: var(--text); }
.cfd-legend-pct { width: 38px; text-align: right; color: var(--muted); }
.cfd-donut-2 .cfd-legend { margin-top: 40px; margin-left: 36px; }
.cfd-donut-2 .cfd-legend li { font-size: 11px; }
.cfd-donut-3 .cfd-legend { margin-top: 28px; margin-left: -10px; }
.cfd-donut-3 .cfd-legend li { height: 30px; }
.cfd-qa-card { height: 230px; padding: 8px 12px 8px; overflow: hidden; }
.cfd-qa-list { gap: 3px; margin-top: -2px; }
.cfd-qa-list .cf-qa-row { height: 28px; }

.cfd-row-3 { display: grid; grid-template-columns: 348fr 358fr 449fr; gap: 14px; margin-bottom: 14px; }
.cfd-row-3 > * { min-width: 0; }
.cfd-list-card { height: 254px; padding-left: 20px; padding-right: 20px; }
.cfd-bars { list-style: none; margin: 5px 0 0; padding: 0; }
.cfd-bar-row { display: flex; align-items: center; height: 33px; gap: 12px; }
.bm-logo-22 { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 5px; }
.cfd-bar-name { flex: 0 0 90px; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfd-bar-track { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--bg-muted-4); overflow: hidden; }
.cfd-bar-fill { display: block; height: 100%; border-radius: 4px; }
.cfd-bar-count { flex: 0 0 33px; margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cfd-bar-pct { font-weight: 500; color: var(--muted); }
.cfd-bars-geo .cfd-bar-row { gap: 10px; }
.cfd-flag { display: inline-flex; width: 16px; flex: 0 0 16px; justify-content: center; }
.cfd-flag .flag { width: 16px; height: 12px; border-radius: 2px; }
.cfd-flag-placeholder { display: inline-flex; color: var(--text-disabled); }
.cfd-flag-placeholder .icon { width: 14px; height: 14px; }
.cfd-bars-geo .cfd-bar-name { flex-basis: 86px; }
.cfd-bars-geo .cfd-bar-count { flex-basis: 42px; }
.cfd-exposure-card { height: 254px; padding-left: 16px; padding-right: 12px; }
.cfd-exposure-body { display: flex; align-items: center; gap: 26px; margin-top: 10px; padding-left: 16px; }
.health-ring-100 { flex-basis: 100px; width: 100px; height: 100px; }
.health-ring-100 > span { width: 82px; height: 82px; font-size: 20px; letter-spacing: -.4px; }
.cfd-exposure-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 20px; }
.cfd-exposure-desc { margin-top: 8px; max-width: 250px; font-size: 11.5px; line-height: 20px; color: var(--text-3); }
.cfd-exposure-strip { display: flex; align-items: center; margin-top: 16px; height: 74px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-subtle-4); padding: 0 18px; }
.cfd-exposure-stat { flex: 1 1 0; min-width: 0; }
.cfd-exposure-stat-top { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.cfd-exposure-stat-top strong { font-size: 16px; font-weight: 700; color: var(--text); }
.cfd-exposure-stat-top span { font-size: 12px; font-weight: 600; color: var(--text); }
.cfd-exposure-stat-sub { margin-top: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; }

.cfd-filter-bar { padding: 7px 7px; gap: 8px; margin-bottom: 12px; }
.cfd-search { flex: 0 0 311px; width: 311px; height: 44px; }
.cfd-search input { font-size: 12px; }
.cfd-filter-control { flex: 1 1 0; width: auto; }
.cfd-filter-control .filter-control-btn { height: 44px; }
.cfd-filter-control .filter-control-label { font-size: 11px; line-height: 13px; }
.cfd-filter-control .filter-control-value { font-size: 12px; line-height: 14px; }
.btn-more-filter-cfd { height: 44px; margin-left: 75px; padding: 0 20px; font-size: 12.5px; }

.cfd-table-card { margin-bottom: 29px; }
.sites-table.cfd-table thead th { height: 40px; font-size: 12px; padding: 0 8px; }
.sites-table.cfd-table tbody td { height: 39.5px; font-size: 12.5px; padding: 0 8px; }
.cfd-table .th-check, .cfd-table .td-check { padding-left: 21px; }
.sites-table.cfd-table thead th:nth-child(2), .sites-table.cfd-table tbody td:nth-child(2) { padding-left: 16px; }
.cfd-table .td-num { color: var(--text-2); }
.cfd-table .site-cell { display: inline-flex; align-items: center; gap: 12px; }
.bm-logo-23 { flex: 0 0 23px; width: 23px; height: 23px; }
.cfd-table .geo-cell-lg { gap: 9px; }
.cfd-table .geo-cell-lg .flag { width: 18px; height: 13px; border-radius: 2px; }
.cfd-table .status-pill { height: 24px; padding: 0 10px 0 9px; font-size: 12px; }
.switch-lg { width: 37px; height: 20px; }
.switch-lg .switch-track { border-radius: 10px; }
.switch-lg .switch-track::after { width: 16px; height: 16px; }
.switch-lg input:checked + .switch-track::after { transform: translateX(17px); }
.geo-table .row-more .btn-more-cfd { height: 24px; width: 34px; }
.cfd-footer { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 29px 0 20px; }
.cfd-view-all { margin: 0; font-size: 12.5px; }
.cfd-footer .pagination-label { font-size: 12px; }
.cfd-footer .btn-rpp { height: 33px; width: 68px; }
.cfd-footer .page-btn { width: 29px; height: 33px; }

.cfd-row-4 { display: grid; grid-template-columns: 372fr 368fr 415fr; gap: 14px; }
.cfd-row-4 > * { min-width: 0; }
.cfd-bottom-card { height: 430px; padding: 12px 6px 14px 6px; }
.cfd-bottom-card .res-header { padding: 0 8px 0 5px; }
.cfd-feed { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cfd-feed-row { display: flex; align-items: center; gap: 15px; height: 48px; padding: 0 17px 0 14px; border-radius: 8px; background: var(--bg-subtle); }
.cfd-feed-row .feed-text { font-size: 12.5px; }
.cfd-feed-row .feed-time { font-size: 12px; }
.cfd-feed-row .feed-dot-28 { margin-left: 0; }
.feed-dot-amber-soft { background: var(--tint-warning); color: var(--text-warning-5); }
.feed-dot-green-soft { background: var(--tint-success); color: var(--text-success); }
.feed-dot-blue-soft { background: var(--bg-selected-5); color: var(--text-link); }
.cfd-api-card { padding: 12px 14px 14px 17px; }
.cfd-api-card .res-header { padding: 0 0 0 3px; }
.cfd-api-list { margin-top: 12px; padding-left: 14px; }
.cfd-api-row { align-items: center; min-height: 39.5px; padding: 0; gap: 0; }
.cfd-api-row dt { flex: 0 0 116px; font-size: 12px; line-height: 16px; color: var(--text-2); }
.cfd-api-row dd { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text); }
.cfd-api-actions { display: flex; gap: 14px; margin-top: 18px; }
.btn-api { flex: 1 1 0; height: 47px; justify-content: center; font-size: 12.5px; font-weight: 600; gap: 10px; }
.btn-api-blue { background: var(--tint-info); border: 1px solid var(--border-primary-4); color: var(--text-link); }
.btn-api-blue:hover { background: var(--bg-selected-4); }
.cfd-api-note { display: flex; align-items: center; gap: 14px; margin-top: 19px; min-height: 75px; padding: 0 16px; border-radius: 8px; background: var(--bg-selected-6); }
.cfd-api-note-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-selected-13); color: var(--text-link); flex: 0 0 auto; }
.cfd-api-note-icon .icon { width: 15px; height: 15px; }
.cfd-api-note p { font-size: 11.5px; line-height: 20px; color: var(--text-3); }


/* --------------------------------------------------------------------------
   Theme toggle + dark-mode-only presentation rules
   (geometry never changes between themes; only colours do)
   -------------------------------------------------------------------------- */
.topbar-theme-toggle .topbar-icon-sun { display: none; width: 17px; height: 17px; color: #F5C542; }
html[data-theme="dark"] .topbar-theme-toggle .topbar-icon-moon { display: none; }
html[data-theme="dark"] .topbar-theme-toggle .topbar-icon-sun { display: inline-block; }
.topbar-theme-toggle:focus-visible { outline: 2px solid rgba(59, 130, 246, .5); outline-offset: 2px; }

html[data-theme="dark"] ::selection { background: var(--selection-bg); }
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--scrollbar-track); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 6px; border: 2px solid var(--scrollbar-track); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #35506B; }
html[data-theme="dark"] { scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--muted); opacity: 1; }
html[data-theme="dark"] img.logo-mark,
html[data-theme="dark"] .bookmaker-logo img,
html[data-theme="dark"] .provider-logo img { filter: none; }
html[data-theme="dark"] .topbar-icon-moon { fill: var(--muted); color: var(--muted); }

html[data-theme="dark"] .world-map svg > g:first-child,
html[data-theme="dark"] .world-map-svg > g:first-child,
html[data-theme="dark"] .presence-map svg > g:first-child,
html[data-theme="dark"] .map-card svg > g:first-child { fill: #1E3448; }
html[data-theme="dark"] .map-dots circle { stroke: var(--bg-surface); }
/* Dark dashboard reference: KPI icons are solid semantic circles with white glyphs,
   and the promo cards use deep indigo / deep green surfaces. */
html[data-theme="dark"] .kpi-icon-blue, html[data-theme="dark"] .kpi-icon-blue.kpi-icon-outline { background: #1E62F0; color: #fff; }
html[data-theme="dark"] .kpi-icon-green, html[data-theme="dark"] .kpi-icon-green.kpi-icon-outline { background: var(--success); color: #fff; }
html[data-theme="dark"] .kpi-icon-amber, html[data-theme="dark"] .kpi-icon-amber.kpi-icon-outline { background: var(--warning); color: #fff; }
html[data-theme="dark"] .kpi-icon-red, html[data-theme="dark"] .kpi-icon-red.kpi-icon-outline { background: var(--danger); color: #fff; }
html[data-theme="dark"] .kpi-icon-purple, html[data-theme="dark"] .kpi-icon-purple.kpi-icon-outline,
html[data-theme="dark"] .kpi-icon-indigo.kpi-icon-outline { background: var(--purple); color: #fff; }
html[data-theme="dark"] .kpi-icon-orange.kpi-icon-outline { background: #F6821F; color: #fff; }
html[data-theme="dark"] .kpi-icon-navy { background: #1E3A8A; color: #BFDBFE; }
html[data-theme="dark"] .kpi-icon .kpi-icon-dot { background: transparent; }
html[data-theme="dark"] .kpi-icon-blue .kpi-icon-dot { background: transparent; }

html[data-theme="dark"] .promo-card-purple { background: #251F63; border-color: #3B3590; }
html[data-theme="dark"] .promo-card-purple .promo-icon { background: #3A3390; color: #C9BDFF; }
html[data-theme="dark"] .promo-card-purple .promo-icon .icon path:first-child { fill: #8B72FF; }
html[data-theme="dark"] .promo-card-purple .promo-title { color: #D6CCFF; }
html[data-theme="dark"] .promo-card-purple .promo-text { color: #B3A9E6; }
html[data-theme="dark"] .promo-card-purple .btn { background: #6D4AFF; border-color: #6D4AFF; color: #fff; }
html[data-theme="dark"] .promo-card-purple .btn:hover { background: #7C5CFC; }
html[data-theme="dark"] .promo-card-mint { background: #0E3A2B; border-color: #1F6A4E; }
html[data-theme="dark"] .promo-card-mint .promo-icon { background: #14563F; }
html[data-theme="dark"] .promo-card-mint .promo-icon .icon path:first-child { fill: #22B573; stroke: #22B573; }
html[data-theme="dark"] .promo-card-mint .promo-title { color: #A7F3D0; }
html[data-theme="dark"] .promo-card-mint .promo-text { color: #9CD9BE; }
html[data-theme="dark"] .promo-card-mint .btn-outline { background: transparent; border-color: #34B27F; color: #D1FAE5; }
html[data-theme="dark"] .promo-card-mint .btn-outline:hover { background: rgba(16, 185, 129, .12); }

/* Appearance selector (Settings) */
.settings-appearance-card { max-width: 720px; padding: 16px 18px 18px; }
.settings-appearance-text { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.theme-options { display: flex; gap: 12px; }
.theme-option { display: flex; align-items: center; gap: 12px; flex: 1 1 0; height: 64px; padding: 0 14px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); color: var(--text); font-family: var(--font); font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.theme-option:hover { background: var(--bg-hover); }
.theme-option.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.theme-option-swatch { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border-default); flex: 0 0 auto; }
.theme-option-swatch-light { background: #F6F8FB; color: #0B1220; }
.theme-option-swatch-dark { background: #07111D; color: #F8FAFC; }
.theme-option-swatch .icon { width: 18px; height: 18px; }
.theme-option-sub { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.theme-option-check { margin-left: auto; width: 16px; height: 16px; color: var(--text-link); opacity: 0; }
.theme-option.is-active .theme-option-check { opacity: 1; }

/* ==========================================================================
   ADD NEW WEBSITE WIZARD (design-reference/Forms/site1–10, 1536×1024)
   Shared tokens first, then the shell, then step components. All colours are
   semantic theme tokens so the wizard follows light/dark automatically.
   ========================================================================== */
:root {
  --form-radius: 8px;
  --form-card-radius: 10px;
  --form-control-h: 38px;
  --form-control-h-sm: 36px;
  --form-card-pad: 14px;
  --form-section-gap: 14px;
  --form-label: 12.5px;
}
.global-search-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--font); font-size: 11.5px; color: var(--muted); pointer-events: none; }

.page-content.page-wizard { padding: 0 20px 20px 12px; }
.wz-form { display: block; }
.wz-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 3px 0 12px; }
.wz-crumb { padding: 0; font-size: 11.5px; }
.wz-crumb a { color: var(--muted); }
.wz-crumb .breadcrumb-current { color: var(--text); font-weight: 500; }
.wz-title { margin: 9px 0 0; font-size: 26px; font-weight: 700; line-height: 30px; letter-spacing: -.6px; color: var(--text); }
.wz-subtitle { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.wz-heading-actions { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.wz-btn { height: 34px; padding: 0 14px; font-size: 12px; font-weight: 500; gap: 8px; border-radius: var(--form-radius); }
.wz-btn .btn-icon { width: 14px; height: 14px; }
.wz-btn-backto { margin-left: 32px; }
.wz-arrow-left { transform: rotate(-90deg); }
.wz-arrow-right { transform: rotate(90deg); }
.wz-theme-seg { display: inline-flex; gap: 12px; margin-left: 32px; }
.wz-theme-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 22px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-subtle); color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 500; cursor: pointer; }
.wz-theme-btn .btn-icon { width: 14px; height: 14px; }
.wz-theme-btn[data-theme-option="light"] { background: var(--bg-subtle); border-color: var(--bg-subtle); color: var(--text); }
.wz-theme-btn[data-theme-option="dark"] { background: #0F1A2B; border-color: #0F1A2B; color: #fff; }
.wz-theme-btn.is-active { box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 3px var(--border-primary); }
.wz-flash { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--form-radius); background: var(--tint-success); color: var(--text-success); font-size: 12.5px; font-weight: 500; }
.wz-flash .icon { width: 16px; height: 16px; }
.wz-flash-error { background: var(--tint-danger); color: var(--text-danger); }

/* progress (10 steps) */
.wz-progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0; list-style: none; margin: 0 0 15px; padding: 14px 8px 14px 14px; }
.wz-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 6px; }
.wz-step-link { position: absolute; inset: 0; z-index: 1; }
.wz-step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-muted); color: var(--text-2); font-size: 12px; font-weight: 600; }
.wz-step.is-current .wz-step-num { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.wz-step.is-done .wz-step-num { display: none; }
.wz-step-check { display: none; }
.wz-step.is-done .wz-step-check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; }
.wz-step-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.wz-step-text { display: flex; flex-direction: column; gap: 5px; }
.wz-step-label { font-size: 11.5px; font-weight: 600; line-height: 14px; color: var(--text); white-space: nowrap; }
.wz-step.is-current .wz-step-label { color: var(--text-link); }
.wz-step-sub { font-size: 10.5px; line-height: 12px; color: var(--muted); white-space: nowrap; }
.wz-step.is-done .wz-step-sub, .wz-step.is-current .wz-step-sub { color: var(--muted); }
/* dense variant (steps 2–10): number + text side by side */
.wz-progress-dense { padding: 11px 10px 11px 12px; }
.wz-progress-dense .wz-step { flex-direction: row; align-items: center; gap: 9px; padding-right: 4px; }
.wz-progress-dense .wz-step-num, .wz-progress-dense .wz-step-check { width: 22px; height: 22px; font-size: 11px; flex: 0 0 auto; }
.wz-progress-dense .wz-step.is-current .wz-step-num { width: 30px; height: 30px; font-size: 12.5px; }
.wz-progress-dense .wz-step-text { gap: 3px; }
.wz-progress-dense .wz-step-label { font-size: 10.5px; line-height: 12px; }
.wz-progress-dense .wz-step-sub { font-size: 9.5px; line-height: 11px; }
.wz-progress-dense .wz-step + .wz-step::before { content: ''; position: absolute; left: -6px; top: 4px; bottom: 4px; width: 1px; background: var(--border-subtle); }

/* body: main + rail */
.wz-body { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 15px; align-items: start; }
.wz-main { min-width: 0; display: flex; flex-direction: column; gap: var(--form-section-gap); }
.wz-rail { display: flex; flex-direction: column; gap: 15px; }
.wz-card { padding: 11px var(--form-card-pad) var(--form-card-pad); }
.wz-section-head { display: flex; align-items: center; gap: 14px; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--border-subtle); }
.wz-section-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 42px; border-radius: 10px; background: var(--tint-info); color: var(--text-link); }
.wz-section-icon .icon { width: 20px; height: 20px; }
.wz-section-title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 18px; }
.wz-section-sub { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.wz-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.wz-grid-2 > .wz-col { min-width: 0; }
.wz-field { margin-bottom: 16px; }
.wz-field:last-child { margin-bottom: 0; }
.wz-label { display: flex; align-items: center; gap: 5px; margin: 0 0 7px; font-size: var(--form-label); font-weight: 600; color: var(--text); line-height: 16px; }
.wz-req { color: var(--text-danger); font-weight: 700; }
.wz-optional { font-weight: 400; color: var(--muted); }
.wz-info { width: 13px; height: 13px; color: var(--text-link); }
.wz-info-chev { color: var(--muted); }
.wz-input-wrap { position: relative; display: flex; align-items: center; }
.wz-input { display: block; width: 100%; height: var(--form-control-h); padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-input); color: var(--text); font-family: var(--font); font-size: 12.5px; outline: none; transition: border-color .12s ease, box-shadow .12s ease; }
.wz-input::placeholder { color: var(--muted-2); }
.wz-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.has-error .wz-input, .has-error .wz-select { border-color: var(--danger); }
.wz-error { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-danger); }
.wz-input-counter .wz-input { padding-right: 56px; }
.wz-counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events: none; }
.wz-textarea-wrap { display: block; }
.wz-textarea { height: 86px; padding: 11px 12px; resize: vertical; line-height: 16px; }
.wz-textarea-wrap .wz-counter { top: auto; bottom: 8px; transform: none; }
.wz-input-icon-left .wz-input { padding-left: 38px; }
.wz-input-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.wz-select-wrap { position: relative; display: block; }
.wz-select { display: block; width: 100%; height: var(--form-control-h); padding: 0 34px 0 12px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-input); color: var(--text); font-family: var(--font); font-size: 12.5px; font-weight: 500; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; }
.wz-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.wz-select-chevron { position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.wz-domain-row { display: grid; grid-template-columns: 105px 1fr; gap: 8px; }
.wz-select-flag { position: relative; }
.wz-select-flag .wz-select { padding-left: 44px; }
.wz-select-flag-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; z-index: 1; pointer-events: none; }
.wz-select-flag-icon .flag { width: 22px; height: 15px; border-radius: 2px; }
.wz-select-flag-icon-lang { color: var(--text-2); }
.wz-select-flag-icon-lang .icon { width: 17px; height: 17px; }
.wz-status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--success); margin-left: 6px; }
.wz-status-dot-inwork { background: var(--warning); }
.wz-status-dot-not-working { background: var(--danger); }
.wz-status-dot-planned { background: var(--text-disabled); }
.wz-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wz-type-card { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-surface); cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.wz-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.wz-type-card.is-selected { border-color: var(--primary); background: var(--bg-selected); box-shadow: 0 0 0 1px var(--primary) inset; }
.wz-type-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto; }
.wz-type-icon .icon { width: 14px; height: 14px; }
.wz-tone-blue { background: var(--tint-info); color: var(--text-link); }
.wz-tone-sky { background: rgba(14, 165, 233, .14); color: #0EA5E9; }
.wz-tone-purple { background: var(--tint-purple); color: var(--text-purple); }
.wz-tone-pink { background: rgba(236, 72, 153, .14); color: #EC4899; }
.wz-tone-green { background: var(--tint-success); color: var(--text-success); }
.wz-tone-violet { background: rgba(124, 92, 252, .14); color: #7C5CFC; }
.wz-type-label { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.wz-type-card.is-selected .wz-type-label { color: var(--text-link); }
.wz-chips-select { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: var(--form-control-h); padding: 4px 34px 4px 8px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-input); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 6px 0 8px; border-radius: 6px; background: var(--bg-muted); font-size: 12px; font-weight: 500; color: var(--text-2); }
.wz-chip .flag { width: 16px; height: 11px; border-radius: 2px; }
.wz-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.wz-chip-x .icon { width: 11px; height: 11px; }
.wz-chip-x:hover { color: var(--text); }
.wz-chips-add { flex: 1 1 60px; min-width: 60px; height: 26px; border: 0; background: transparent; color: transparent; font-family: var(--font); font-size: 12px; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; }
.wz-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 129px; border: 1px dashed var(--border-strong); border-radius: var(--form-radius); background: var(--bg-subtle); cursor: pointer; }
.wz-dropzone:hover { border-color: var(--primary); }
.wz-dropzone-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.wz-dropzone-icon .icon { width: 18px; height: 18px; }
.wz-dropzone-text { font-size: 12.5px; color: var(--text-2); }
.wz-link { color: var(--text-link); font-weight: 500; }
.wz-dropzone-note { font-size: 11px; color: var(--muted); }
.wz-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.wz-btn-skip { height: 38px; padding: 0 16px; }
.wz-skip-icon { transform: none; }
.wz-btn-primary { height: 38px; padding: 0 20px; border-radius: var(--form-radius); background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 600; gap: 10px; }
.wz-btn-primary:hover { background: var(--primary-hover); }
.wz-btn-primary .btn-icon { width: 14px; height: 14px; }

/* rail */
.wz-rail-card { padding: 14px 16px 12px; }
.wz-rail-head { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.wz-rail-title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.wz-rail-note { font-size: 11.5px; color: var(--muted); }
.wz-setup-bar { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.wz-setup-track { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.wz-setup-fill { display: block; height: 100%; border-radius: 4px; background: var(--success); }
.wz-setup-pct { font-size: 11.5px; font-weight: 600; color: var(--text-2); min-width: 28px; text-align: right; }
.wz-setup-list { list-style: none; margin: 9px -6px 0; padding: 0; }
.wz-setup-item { display: flex; align-items: center; gap: 14px; height: 29.6px; padding: 0 8px 0 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.wz-setup-item.is-current { background: var(--bg-selected); color: var(--text-link); font-weight: 600; }
.wz-setup-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-muted); color: var(--text-2); font-size: 11px; font-weight: 600; flex: 0 0 auto; }
.wz-setup-item.is-current .wz-setup-dot { background: var(--primary); color: #fff; }
.wz-setup-dot-done { background: var(--success); color: #fff; }
.wz-setup-dot-done .icon { width: 12px; height: 12px; stroke-width: 3; }
.wz-setup-item.is-current { position: relative; }
.wz-setup-item.is-current::before { content: ''; position: absolute; left: -8px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--success); transform: translateY(-50%); }
.wz-preview .wz-rail-head { margin-bottom: 10px; }
.wz-browser { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-radius: 6px; background: var(--bg-muted); }
.wz-browser-dots { display: inline-flex; gap: 5px; }
.wz-browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #1F2937; display: inline-block; }
.wz-browser-dots i:nth-child(2) { background: #94A3B8; }
.wz-browser-dots i:nth-child(3) { background: #CBD5E1; }
.wz-browser-url { flex: 1 1 auto; font-size: 11.5px; color: var(--text-2); }
.wz-browser-icon { width: 13px; height: 13px; color: var(--muted); }
.wz-preview-body { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; }
.wz-preview-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 9px; background: #0F1A2B; color: #fff; font-size: 24px; font-weight: 700; }
.wz-preview-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.wz-preview-url { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--text-link); text-decoration: none; }
.wz-preview-ext { width: 11px; height: 11px; }
.wz-preview-chips { display: flex; gap: 8px; margin-top: 8px; }
.wz-mini-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 5px; background: var(--bg-muted); font-size: 11px; font-weight: 600; color: var(--text-2); }
.wz-mini-chip .flag { width: 14px; height: 10px; border-radius: 2px; }
.wz-mini-chip-live { background: var(--tint-success); color: var(--text-success); }
.wz-mini-ico { width: 11px; height: 11px; }
.wz-preview-note { margin: 12px 0 0; font-size: 10.8px; letter-spacing: -.1px; color: var(--muted); white-space: nowrap; }
.wz-help-head { display: flex; align-items: flex-start; gap: 12px; }
.wz-help-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--tint-warning); color: var(--fg-warning); }
.wz-help-icon .icon { width: 18px; height: 18px; }
.wz-help-text { margin: 5px 0 0; font-size: 11.5px; line-height: 16px; color: var(--muted); }
.wz-help-btn { margin: 14px 0 0 48px; height: 34px; color: var(--text-link); border-color: var(--border-primary); }
.wz-help-btn .btn-icon { color: var(--text-link); }

/* generic toggles / checks used by all steps */
.wz-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.wz-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.wz-toggle-track { position: relative; display: inline-block; flex: 0 0 34px; width: 34px; height: 20px; border-radius: 10px; background: var(--bg-track); transition: background-color .15s ease; }
.wz-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: transform .15s ease; }
.wz-toggle input:checked + .wz-toggle-track { background: var(--primary); }
.wz-toggle input:checked + .wz-toggle-track::after { transform: translateX(14px); }
.wz-toggle-green input:checked + .wz-toggle-track { background: var(--success); }
.wz-toggle input:focus-visible + .wz-toggle-track { box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.wz-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.wz-toggle-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.wz-toggle-sub { font-size: 11px; color: var(--muted); }
.wz-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; color: var(--text-2); }
.wz-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.wz-check-box { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-input); color: #fff; flex: 0 0 auto; }
.wz-check-box .icon { width: 10px; height: 10px; stroke-width: 3.5; opacity: 0; }
.wz-check input:checked + .wz-check-box { background: var(--primary); border-color: var(--primary); }
.wz-check input:checked + .wz-check-box .icon { opacity: 1; }
.wz-check-text { display: flex; flex-direction: column; gap: 2px; }
.wz-check-sub { font-size: 10.5px; color: var(--muted); }
.wz-pill { height: 20px; padding: 0 8px 0 7px; font-size: 11px; }


/* ---- wizard: shared components for steps 2–10 ---------------------------- */
.wz-rail-narrow { flex: 0 0 262px; }
.wz-body-affiliate, .wz-body-domain, .wz-body-hosting, .wz-body-cloudflare, .wz-body-google, .wz-body-seo, .wz-body-finance, .wz-body-access { grid-template-columns: minmax(0, 1fr) 262px; gap: 18px; }
.wz-body-review { grid-template-columns: minmax(0, 1fr) 240px; gap: 15px; }
.wz-intro-card { padding: 12px 14px 14px; }
.wz-section-head-plain { border-bottom: 0; margin: 0 0 12px; padding: 0; }
.wz-section-head-plain > div { flex: 1 1 auto; }
.wz-head-btn { margin-left: auto; height: 34px; }
.wz-section-icon-sm { flex-basis: 40px; width: 40px; height: 38px; border-radius: 9px; }
.wz-section-icon-sm .icon { width: 18px; height: 18px; }
.wz-numbered-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.wz-numbered-head > div { flex: 1 1 auto; min-width: 0; }
.wz-numbered-head-sm { margin-bottom: 10px; }
.wz-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.wz-num-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 17px; }
.wz-num-sub { margin: 2px 0 0; font-size: 11px; color: var(--muted); line-height: 14px; }
.wz-num-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto !important; }
.wz-muted-note { font-size: 11.5px; color: var(--muted); }
.wz-btn-sm { height: 30px; padding: 0 11px; font-size: 11.5px; gap: 6px; }
.wz-btn-sm .btn-icon { width: 13px; height: 13px; }
.wz-btn-blue { color: var(--text-link); border-color: var(--border-primary); }
.wz-btn-blue .btn-icon { color: var(--text-link); }
.wz-btn-icon { width: 34px; padding: 0; justify-content: center; }
.wz-bm-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 9px; }
.wz-bm-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 77px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-surface); cursor: pointer; font-family: var(--font); }
.wz-bm-card input { position: absolute; opacity: 0; pointer-events: none; }
.wz-bm-card.is-selected { border-color: var(--primary); background: var(--bg-selected); box-shadow: 0 0 0 1px var(--primary) inset; }
.wz-bm-logo, .bm-logo.wz-bm-logo { width: 38px; height: 38px; border-radius: 8px; }
.bm-logo.wz-bm-logo img { width: 30px; height: 22px; }
.bm-logo.wz-bm-logo .logo-mark { width: 28px; height: 26px; }
.wz-bm-more-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-muted); color: var(--text-3); }
.wz-bm-more-icon .icon { width: 18px; height: 18px; }
.wz-bm-name { font-size: 11.5px; font-weight: 600; color: var(--text); }
.wz-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wz-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
.wz-grid-tight { gap: 0 12px; }
.wz-grid-tight .wz-field { margin-bottom: 12px; }
.wz-sub-card { padding: 12px 14px 12px; }
.wz-sub-card .wz-field { margin-bottom: 12px; }
.wz-sub-card .wz-label { font-size: 12px; margin-bottom: 6px; }
.wz-sub-card .wz-input, .wz-sub-card .wz-select { height: 34px; font-size: 12px; }
.wz-sub-card .wz-select-wrap .wz-select { padding-right: 30px; }
.wz-select-pill { position: relative; }
.wz-select-pill .wz-pill { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.wz-select-pill .wz-select { padding-right: 110px; }
.wz-btn-row { display: flex; gap: 8px; margin: 0 0 12px; }
.wz-info-box { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-info-flag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--tint-danger); }
.wz-info-flag .flag { width: 18px; height: 13px; border-radius: 2px; }
.wz-info-lines { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; font-size: 11.5px; color: var(--text-2); }
.wz-info-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; text-decoration: none; margin-top: 2px; }
.wz-info-link .icon { width: 12px; height: 12px; }
.wz-deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.wz-deal-card { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-surface); font-size: 11.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.wz-deal-card input { position: absolute; opacity: 0; pointer-events: none; }
.wz-deal-card.is-selected { border-color: var(--primary); background: var(--bg-selected); color: var(--text-link); }
.wz-deal-ico { display: inline-flex; color: var(--muted); }
.wz-deal-card.is-selected .wz-deal-ico { color: var(--text-link); }
.wz-deal-ico .icon { width: 13px; height: 13px; }
.wz-affix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--text-2); pointer-events: none; }
.wz-affix-left { right: auto; left: 12px; }
.wz-affix-unit { right: 0; height: 100%; top: 0; transform: none; display: inline-flex; align-items: center; padding: 0 10px; border-left: 1px solid var(--border-default); border-radius: 0 var(--form-radius) var(--form-radius) 0; background: var(--bg-subtle); font-weight: 500; color: var(--text-2); }
.wz-input-prefix .wz-input { padding-left: 26px; }
.wz-input-suffix .wz-input { padding-right: 52px; }
.wz-label-muted { color: var(--muted); }
.wz-grid-links { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 12px; }
.wz-input-action { gap: 0; }
.wz-input-action .wz-input { border-radius: var(--form-radius) 0 0 var(--form-radius); }
.wz-btn-test { height: 34px; border-radius: 0 var(--form-radius) var(--form-radius) 0; margin-left: -1px; color: var(--text-link); font-weight: 500; white-space: nowrap; }
.wz-btn-test .btn-icon { color: var(--text-link); }
.wz-btn-test.is-ok { color: var(--text-success); border-color: var(--border-success); }
.wz-btn-test.is-fail { color: var(--text-danger); border-color: var(--border-danger); }
.wz-input-action-icon .wz-btn-icon { border-radius: 0 var(--form-radius) var(--form-radius) 0; margin-left: -1px; height: 34px; }
.wz-input-info .wz-input { padding-right: 34px; }
.wz-info-after { position: absolute; right: 12px; color: var(--muted); }
.wz-field-btn { display: flex; align-items: flex-end; }
.wz-btn-add { height: 34px; }
.wz-toggle-list { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 14px; }
.wz-toggle-row .wz-toggle-label { font-size: 12px; font-weight: 500; }
.wz-note-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); font-size: 11.5px; line-height: 15px; color: var(--muted); }
.wz-note-icon { width: 15px; height: 15px; color: var(--text-link); flex: 0 0 auto; }
.wz-note-box-lock { background: var(--bg-selected); border-color: var(--border-primary); color: var(--text-2); }
.wz-footer-bare { justify-content: space-between; margin-top: 2px; padding-top: 0; border-top: 0; }
.wz-footer-right { display: flex; gap: 10px; }
.wz-btn-back, .wz-btn-draft { height: 38px; padding: 0 16px; }
.wz-summary { padding: 14px 16px 14px; }
.wz-summary .wz-rail-title { margin-bottom: 12px; }
.wz-summary-entity { display: flex; align-items: center; gap: 10px; padding: 0 0 10px; border-bottom: 1px solid var(--border-subtle); }
.wz-summary-entity > div { flex: 1 1 auto; min-width: 0; }
.wz-summary-entity .wz-pill { flex: 0 0 auto; }
.bm-logo.wz-summary-logo { width: 36px; height: 36px; border-radius: 8px; }
.wz-summary-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.wz-summary-ico .icon { width: 18px; height: 18px; }
.wz-summary-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.wz-summary-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.wz-kv { margin: 0; }
.wz-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 26px; border-bottom: 1px solid var(--border-subtle); font-size: 11.5px; }
.wz-kv > div:last-child { border-bottom: 0; }
.wz-kv dt { color: var(--muted); }
.wz-kv dd { margin: 0; font-weight: 600; color: var(--text); text-align: right; }
.wz-kv-green { color: var(--text-success) !important; }
.wz-status-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--form-card-radius); border: 1px solid; }
.wz-status-box-green { background: var(--tint-success); border-color: var(--border-success); }
.wz-status-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; }
.wz-status-ico .icon { width: 13px; height: 13px; stroke-width: 3; }
.wz-status-title { font-size: 12.5px; font-weight: 700; color: var(--text-success); }
.wz-status-text { margin-top: 3px; font-size: 11px; line-height: 15px; color: var(--text-2); }
.wz-btn-rail { width: 100%; justify-content: center; height: 40px; }
.wz-site-preview .wz-rail-head { margin-bottom: 12px; }
.wz-rail-edit { font-size: 11.5px; font-weight: 500; text-decoration: none; }
.wz-site-preview-body { display: flex; align-items: center; gap: 12px; }
.bm-logo.wz-site-logo { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 40px; }
.wz-site-preview-domain { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-link); text-decoration: none; }
.wz-site-preview-text .wz-preview-chips { margin-top: 6px; }
/* option cards (Use existing / Add new / Configure later) */
.wz-option-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wz-option-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wz-option-card { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-surface); cursor: pointer; }
.wz-option-card input { position: absolute; opacity: 0; pointer-events: none; }
.wz-option-card.is-selected { border-color: var(--primary); background: var(--bg-selected); box-shadow: 0 0 0 1px var(--primary) inset; }
.wz-option-card.is-selected::after { content: ''; position: absolute; right: 12px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--bg-surface) inset; }
.wz-option-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.wz-option-ico .icon { width: 17px; height: 17px; }
.wz-option-card.is-selected .wz-option-ico { background: var(--primary); color: #fff; }
.wz-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wz-option-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.wz-option-card.is-selected .wz-option-title { color: var(--text-link); }
.wz-option-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* step 3 specifics */
.wz-grid-domain { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; }
.wz-numbered-head-icon { gap: 12px; }
.wz-split-btn { display: inline-flex; }
.wz-split-btn .wz-btn:first-child { border-radius: var(--form-radius) 0 0 var(--form-radius); }
.wz-split-caret { border-radius: 0 var(--form-radius) var(--form-radius) 0; margin-left: -1px; width: 30px; padding: 0; justify-content: center; }
.wz-input-ok .wz-input { padding-right: 34px; }
.wz-ok-icon { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--fg-success); }
.wz-help { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted); }
.wz-static { display: flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-subtle); font-size: 12px; font-weight: 600; color: var(--text); }
.wz-static-green { background: var(--tint-success); border-color: var(--border-success); color: var(--text-success); }
.wz-toggle-grid { margin-top: 2px; }
.wz-toggle-grid .wz-toggle { margin-bottom: 4px; }
.wz-logo-sm { width: 20px; height: 20px; }
.wz-logo-md { width: 34px; height: 34px; flex: 0 0 34px; }
.wz-logo-cf { width: 26px; height: 17px; }
.wz-account-box { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-account-lines { flex: 1 1 auto; min-width: 0; }
.wz-account-name { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.wz-account-line { font-size: 11px; color: var(--text-2); line-height: 15px; }
.wz-account-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wz-grid-domain-bottom { gap: 12px; }
.wz-grid-2-wide { grid-template-columns: 1fr 1fr; }
.wz-select-placeholder .wz-select { color: var(--muted-2); font-weight: 400; }
.wz-toggle-block { margin: 2px 0 12px; }
.wz-renewal-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--form-radius); background: var(--tint-success); border: 1px solid var(--border-success); }
.wz-renewal-box > div { flex: 1 1 auto; }
.wz-renewal-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; background: var(--success); color: #fff; }
.wz-renewal-ico .icon { width: 17px; height: 17px; }
.wz-renewal-title { font-size: 12.5px; font-weight: 700; color: var(--text-success); }
.wz-renewal-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.wz-renewal-days { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-success); white-space: nowrap; }
.wz-renewal-days .icon { width: 12px; height: 12px; }
.wz-grid-dnssec { grid-template-columns: 1fr 1.4fr; }
.wz-field-btn-bottom { display: flex; align-items: flex-end; }
.wz-field-btn-bottom .wz-btn { width: 100%; height: 34px; justify-content: center; }
.wz-check-list { list-style: none; margin: 0 0 12px; padding: 0; }
.wz-check-list li { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 11.5px; color: var(--text-2); }
.wz-check-ok { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: #fff; }
.wz-check-ok .icon { width: 9px; height: 9px; stroke-width: 3.5; }
.wz-check-label { flex: 1 1 auto; }
.wz-check-val { font-size: 11px; font-weight: 600; color: var(--text-success); }
.wz-head-alerts { margin: 12px 0 8px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.wz-label-sm { font-size: 11px !important; font-weight: 500 !important; color: var(--text-2); }
.wz-select-sm .wz-select { height: 30px !important; font-size: 11.5px; }
.wz-notify-row { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; }
.wz-notify-row .wz-label { margin: 0; }
.wz-toggle-lines { display: flex; flex-direction: column; gap: 8px; }
.wz-toggle-line { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.wz-toggle-line > span:nth-child(2) { flex: 1 1 auto; }


/* ---- wizard: dense scale for steps 2–9 (reference density) --------------- */
.wz-dense .wz-intro-card { padding: 12px 14px 12px; }
.wz-dense .wz-section-head-plain { margin-bottom: 14px; }
.wz-dense .wz-section-icon { flex-basis: 42px; width: 42px; height: 40px; }
.wz-dense .wz-section-title { font-size: 14.5px; }
.wz-dense .wz-section-sub { font-size: 11.5px; margin-top: 3px; }
.wz-dense .wz-numbered-head { margin-bottom: 8px; }
.wz-dense .wz-numbered-head-sm { margin-bottom: 8px; }
.wz-dense .wz-num-title { font-size: 13px; line-height: 16px; }
.wz-dense .wz-num-sub { font-size: 10.5px; line-height: 13px; margin-top: 2px; }
.wz-dense .wz-bm-grid { margin-top: 4px; }
.wz-dense .wz-bm-card { height: 86px; gap: 9px; }
.wz-dense .wz-bm-name { font-size: 11px; }
.wz-dense .wz-sub-card { padding: 11px 12px 12px; }
.wz-dense .wz-sub-card .wz-field { margin-bottom: 9px; }
.wz-dense .wz-sub-card .wz-label { font-size: 11.5px; margin-bottom: 6px; line-height: 14px; }
.wz-dense .wz-sub-card .wz-input, .wz-dense .wz-sub-card .wz-select, .wz-dense .wz-static { height: 32px; font-size: 12px; }
.wz-dense .wz-btn-sm { height: 30px; }
.wz-dense .wz-btn-row { margin-bottom: 10px; }
.wz-dense .wz-info-box { padding: 9px 12px; margin-bottom: 10px; }
.wz-dense .wz-info-lines { font-size: 11px; gap: 3px; }
.wz-dense .wz-deal-card { height: 32px; }
.wz-dense .wz-input-action .wz-input, .wz-dense .wz-btn-test { height: 27px; font-size: 11.5px; }
.wz-dense .wz-btn-test { padding: 0 12px; }
.wz-dense .wz-input-info .wz-input { height: 27px; }
.wz-dense .wz-btn-add { height: 32px; }
.wz-dense .wz-grid-3, .wz-dense .wz-grid-links, .wz-dense .wz-grid-domain, .wz-dense .wz-grid-domain-bottom { gap: 10px; }
.wz-dense .wz-main { gap: 10px; }
.wz-dense .wz-toggle-list { gap: 12px; margin: 2px 0 12px; }
.wz-dense .wz-footer-bare { margin-top: 4px; }
.wz-dense .wz-btn-back, .wz-dense .wz-btn-draft, .wz-dense .wz-footer .wz-btn-primary { height: 34px; }
.wz-dense .wz-rail-card { padding: 12px 14px 14px; }
.wz-dense .wz-setup-item { height: 29.3px; font-size: 12px; }
.wz-dense .wz-setup-list { margin-top: 10px; }
.wz-dense .wz-summary-inner { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.wz-dense .wz-summary-title { margin-bottom: 10px; }
.wz-dense .wz-summary-entity { padding-bottom: 8px; }
.wz-dense .wz-kv > div { height: 19px; font-size: 11px; }
.wz-dense .wz-status-box { padding: 12px 14px; }
.wz-dense .wz-btn-rail { height: 38px; }
.wz-dense .wz-site-preview-domain { font-size: 13px; }
.wz-dense .wz-rail-title { font-size: 14px; }

/* ---- wizard steps 4–6 components ---------------------------------------- */
.wz-option-ico-plain { background: var(--bg-muted); color: var(--text-3); }
.wz-section-icon-logo { background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-section-icon-red { background: var(--tint-danger); color: var(--text-danger); }
.wz-logo-cf-lg { width: 30px; height: 20px; }
.wz-logo-cf-md { width: 34px; height: 23px; flex: 0 0 34px; }
.wz-logo-g { width: 22px; height: 22px; }
.wz-logo-xs { width: 14px; height: 14px; vertical-align: middle; }
.wz-suggest { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--form-radius); background: var(--tint-success); border: 1px solid var(--border-success); }
.wz-suggest-ico { display: inline-flex; color: var(--text-success); }
.wz-suggest-ico .icon { width: 18px; height: 18px; }
.wz-suggest-text { flex: 1 1 auto; }
.wz-suggest-title { font-size: 12.5px; font-weight: 700; color: var(--text-success); }
.wz-suggest-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.wz-suggest-server { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.wz-suggest-server-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-ink); color: #fff; }
.wz-suggest-server-ico .icon { width: 15px; height: 15px; }
.wz-suggest-server-name { font-size: 12px; font-weight: 700; color: var(--text); }
.wz-suggest-server-sub { font-size: 11px; color: var(--text-2); }
.wz-text-green { color: var(--text-success); font-weight: 600; }
.wz-text-orange { color: #F6821F; font-weight: 600; }
.wz-grid-hosting-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 10px; }
.wz-grid-hosting-2, .wz-grid-hosting-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.wz-input-ext .wz-input { padding-right: 32px; }
.wz-ext-link { position: absolute; right: 10px; display: inline-flex; color: var(--text-link); }
.wz-ext-link .icon { width: 13px; height: 13px; }
.wz-btn-row-wrap { align-items: flex-start; }
.wz-cred-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-left: auto; }
.wz-help-center { text-align: center; max-width: 150px; line-height: 13px; margin-top: 2px; }
.wz-server-card { display: flex; gap: 10px; }
.wz-server-main { flex: 1 1 auto; min-width: 0; }
.wz-server-side { flex: 0 0 196px; padding: 10px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-server-side-head { display: flex; gap: 10px; margin-bottom: 8px; }
.wz-server-art { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.wz-server-art .icon { width: 24px; height: 24px; }
.wz-server-side-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.wz-server-side-sub { font-size: 10.5px; color: var(--muted); line-height: 13px; }
.wz-server-side-head .wz-pill { margin-top: 3px; height: 18px; font-size: 10px; }
.wz-server-meter-row { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 10.5px; color: var(--text-2); }
.wz-server-meter-row > span:first-child { flex: 0 0 66px; }
.wz-server-meter-row strong { margin-left: auto; font-size: 10.5px; color: var(--text); }
.wz-meter { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--bg-track); overflow: hidden; }
.wz-meter span { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.wz-meter-green span { background: var(--success); }
.wz-server-side-btn { width: 100%; justify-content: center; margin-top: 8px; }
.wz-input-flag { display: inline-flex; }
.wz-input-flag .flag { width: 16px; height: 11px; }
.wz-input-copy .wz-input { padding-right: 32px; }
.wz-copy-inline { position: absolute; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--border-default); border-radius: 5px; background: var(--bg-surface); color: var(--text-3); cursor: pointer; }
.wz-copy-inline .icon { width: 11px; height: 11px; }
.wz-copy-inline.is-copied { color: var(--text-success); border-color: var(--border-success); }
.wz-inline-status { display: flex; align-items: center; gap: 12px; }
.wz-inline-status .wz-label { margin: 0; }
.wz-collapse-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--form-radius); background: var(--bg-subtle); font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.wz-collapse-row > span { flex: 1 1 auto; }
.wz-collapse-ico { width: 14px; height: 14px; color: var(--text-3); }
.wz-collapse-chev { width: 14px; height: 14px; color: var(--muted); }
.wz-grid-alloc { gap: 0 10px; }
.wz-big-value { font-size: 18px; font-weight: 700; color: var(--text); line-height: 32px; }
.wz-grid-alloc-2 { align-items: start; }
.wz-est-box { padding: 10px 12px; border-radius: var(--form-radius); background: var(--bg-selected); border: 1px solid var(--border-primary); }
.wz-est-label { font-size: 11.5px; font-weight: 700; color: var(--text); }
.wz-est-label span { font-weight: 500; color: var(--text-2); }
.wz-est-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.wz-est-value { font-size: 22px; font-weight: 700; color: var(--text-link); }
.wz-est-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; background: var(--bg-surface); color: var(--text-link); border: 1px solid var(--border-primary); }
.wz-est-ico .icon { width: 15px; height: 15px; }
.wz-est-sub { margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.wz-backup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.1fr); gap: 0 12px; align-items: start; }
.wz-toggle-stack { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.wz-toggle-stack .wz-toggle-label { font-size: 11.5px; }
.wz-toggle-stack .wz-toggle-sub { font-size: 10px; }
.wz-lastbackup { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--form-radius); background: var(--tint-success); border: 1px solid var(--border-success); }
.wz-lastbackup-title { font-size: 11px; font-weight: 700; color: var(--text-success); }
.wz-lastbackup-value { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 2px; }
.wz-lastbackup-sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.wz-health-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: start; }
.wz-check-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; }
.wz-check-list-tight li { height: 20px; font-size: 11px; }
.wz-status-box-inline { padding: 10px 12px; }
.wz-status-box-xs { padding: 8px 10px; }
.wz-status-box-xs .wz-status-title { font-size: 11.5px; }
.wz-status-box-xs .wz-status-text { font-size: 10px; }
.wz-status-box-row { align-items: center; }
.wz-status-box-row > div { flex: 1 1 auto; }
/* step 5 */
.wz-grid-cf-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 10px; }
.wz-grid-cf-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.wz-grid-cf-3 { gap: 10px; }
.wz-account-box-row { align-items: center; }
.wz-btn-row-inline { margin: 0; flex: 0 0 auto; }
.wz-ok-strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--form-radius); background: var(--tint-success); border: 1px solid var(--border-success); }
.wz-ok-strip > div { flex: 1 1 auto; }
.wz-ok-strip-title { font-size: 11.5px; font-weight: 700; color: var(--text-success); }
.wz-ok-strip-sub { font-size: 10.5px; color: var(--text-2); }
.wz-ns-row { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; margin-bottom: 6px; border-radius: 6px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); font-size: 11.5px; color: var(--text-2); }
.wz-ns-name { flex: 1 1 auto; }
.wz-ns-copy { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--text-link); font-family: var(--font); font-size: 11px; font-weight: 600; cursor: pointer; }
.wz-ns-copy .icon { width: 12px; height: 12px; }
.wz-ns-row-ok { background: var(--tint-success); border-color: var(--border-success); }
.wz-check-ok-end { margin-left: auto; }
.wz-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.wz-table th { height: 28px; padding: 0 8px; text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-subtle); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.wz-table td { height: 28px; padding: 0 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-2); white-space: nowrap; }
.wz-table tr:last-child td { border-bottom: 0; }
.wz-th-check { width: 28px; padding-left: 8px !important; }
.wz-td-ellipsis { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.wz-toggle-mini .wz-toggle-track { flex-basis: 30px; width: 30px; height: 18px; }
.wz-toggle-mini .wz-toggle-track::after { width: 12px; height: 12px; }
.wz-toggle-mini input:checked + .wz-toggle-track::after { transform: translateX(12px); }
.wz-proxy-state { font-size: 11px; color: var(--muted); margin-left: 4px; }
.wz-row-more { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; border: 1px solid var(--border-default); border-radius: 5px; background: var(--bg-surface); color: var(--text-3); cursor: pointer; }
.wz-row-more .icon { width: 12px; height: 12px; }
.wz-input-xs { height: 24px !important; font-size: 11px !important; padding: 0 6px !important; }
.wz-btn-sm-primary { height: 30px; padding: 0 12px; font-size: 11.5px; }
.wz-inline-field { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wz-inline-field .wz-label { margin: 0; flex: 0 0 auto; }
.wz-inline-field .wz-select-wrap, .wz-inline-field .wz-select-pill { flex: 1 1 auto; }
.wz-select-w120 { flex: 0 0 120px !important; }
.wz-toggle-lines-pills { margin-bottom: 10px; }
.wz-state-pill { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--text-success); }
.wz-state-pill.is-off { color: var(--muted); }
.wz-toggle-lines-top { padding-top: 20px; }
.wz-more-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11.5px; font-weight: 600; text-decoration: none; }
.wz-more-link .icon { width: 12px; height: 12px; }
.wz-note-box-plain { padding: 6px 10px; font-size: 10.5px; }
.wz-health-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.wz-health-foot > .wz-status-box { flex: 1 1 auto; }
.wz-rail-actions { display: flex; flex-direction: column; gap: 8px; }
.wz-rail-actions .wz-btn { justify-content: center; height: 38px; }
/* step 6 */
.wz-account-strip { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 8px 12px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-avatar-lg { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-track); color: #fff; font-size: 16px; font-weight: 700; }
.wz-account-strip-main { min-width: 150px; }
.wz-account-strip-stat { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--border-subtle); font-size: 11px; color: var(--muted); }
.wz-account-strip-stat strong { font-size: 12px; color: var(--text); }
.wz-account-strip .wz-btn-row { margin-left: auto; }
.wz-grid-google { gap: 10px; }
.wz-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.wz-stat-tile { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-stat-label { font-size: 10.5px; color: var(--muted); }
.wz-stat-value { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text); }
.wz-stat-green { color: var(--text-success); }
.wz-btn-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.wz-btn-row-3 .wz-btn, .wz-btn-row-2 .wz-btn { height: 34px; justify-content: center; }
.wz-btn-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.wz-btn-row-bottom { margin: 0; }
.wz-btn-primary-md { height: 34px; }
.wz-sitemap-row { display: flex; align-items: center; gap: 8px; }
.wz-sitemap-row .wz-input-wrap { flex: 1 1 auto; }
.wz-detected .wz-pill { height: 32px; padding: 0 14px; border-radius: var(--form-radius); }
.wz-static-plain { background: var(--bg-subtle); font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.wz-btn-under { margin-top: 10px; height: 32px; }
.wz-grid-gtm-2 .wz-field-span2 { grid-column: span 2; }
.wz-track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; }
.wz-toggle-track-opt { align-items: flex-start; }
.wz-toggle-track-opt .wz-toggle-track { margin-top: 1px; }
.wz-toggle-track-opt .wz-toggle-label { font-size: 11.5px; }
.wz-toggle-track-opt .wz-toggle-sub { font-size: 10px; }
.wz-ok-strip-green .wz-ok-strip-sub { font-size: 10.5px; }
.wz-service-list { list-style: none; margin: 0; padding: 0; }
.wz-service-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.wz-service-list li > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wz-service-list .wz-logo { flex: 0 0 20px; width: 20px; height: 20px; }
.wz-service-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 5px; background: var(--tint-info); color: var(--text-link); }
.wz-service-ico .icon { width: 12px; height: 12px; }
.wz-service-label { font-size: 10.5px; color: var(--muted); }
.wz-service-value { font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-service-sub { font-size: 10.5px; color: var(--muted); }
.wz-service-list .wz-pill { flex: 0 0 auto; height: 18px; font-size: 10px; }
.wz-kv-top { margin-top: 6px; }

/* ---- wizard: final dense calibration (reference density, steps 2–9) ------ */
.wz-dense .wz-intro-card { padding: 10px 12px 12px; }
.wz-dense .wz-section-head-plain { margin-bottom: 10px; }
.wz-dense .wz-section-icon { flex-basis: 40px; width: 40px; height: 38px; }
.wz-dense .wz-section-title { font-size: 14px; }
.wz-dense .wz-section-sub { font-size: 11px; margin-top: 2px; }
.wz-dense .wz-option-card { height: 50px; padding: 0 12px; gap: 10px; }
.wz-dense .wz-option-ico { flex-basis: 32px; width: 32px; height: 32px; }
.wz-dense .wz-option-title { font-size: 12px; }
.wz-dense .wz-option-sub { font-size: 10.5px; }
.wz-dense .wz-main { gap: 8px; }
.wz-dense .wz-grid-2, .wz-dense .wz-grid-3, .wz-dense .wz-grid-links, .wz-dense .wz-grid-domain, .wz-dense .wz-grid-domain-bottom, .wz-dense .wz-grid-hosting-1, .wz-dense .wz-grid-hosting-2, .wz-dense .wz-grid-hosting-3, .wz-dense .wz-grid-cf-1, .wz-dense .wz-grid-cf-2, .wz-dense .wz-grid-cf-3, .wz-dense .wz-grid-google { gap: 8px; }
.wz-dense .wz-grid-tight { gap: 0 10px; }
.wz-dense .wz-sub-card { padding: 10px 12px 10px; }
.wz-dense .wz-numbered-head { margin-bottom: 8px; gap: 10px; }
.wz-dense .wz-num { flex-basis: 24px; width: 24px; height: 24px; font-size: 11.5px; }
.wz-dense .wz-section-icon-sm { flex-basis: 36px; width: 36px; height: 34px; }
.wz-dense .wz-section-icon-sm .icon { width: 16px; height: 16px; }
.wz-dense .wz-num-title { font-size: 12.5px; line-height: 15px; }
.wz-dense .wz-num-sub { font-size: 10px; line-height: 12px; margin-top: 1px; }
.wz-dense .wz-sub-card .wz-field { margin-bottom: 8px; }
.wz-dense .wz-sub-card .wz-label { font-size: 11px; margin-bottom: 5px; line-height: 13px; }
.wz-dense .wz-sub-card .wz-input, .wz-dense .wz-sub-card .wz-select, .wz-dense .wz-static { height: 30px; font-size: 11.5px; padding-left: 10px; }
.wz-dense .wz-sub-card .wz-input-icon-left .wz-input { padding-left: 32px; }
.wz-dense .wz-sub-card .wz-select-flag .wz-select { padding-left: 38px; }
.wz-dense .wz-input-icon { left: 10px; width: 14px; height: 14px; }
.wz-dense .wz-select-flag-icon { left: 10px; }
.wz-dense .wz-btn-sm { height: 28px; padding: 0 10px; font-size: 11px; }
.wz-dense .wz-btn-row { margin-bottom: 8px; gap: 6px; }
.wz-dense .wz-info-box { padding: 8px 10px; margin-bottom: 8px; }
.wz-dense .wz-deal-card { height: 30px; font-size: 11px; }
.wz-dense .wz-toggle-track { flex-basis: 30px; width: 30px; height: 18px; }
.wz-dense .wz-toggle-track::after { width: 12px; height: 12px; }
.wz-dense .wz-toggle input:checked + .wz-toggle-track::after { transform: translateX(12px); }
.wz-dense .wz-toggle-label { font-size: 11.5px; }
.wz-dense .wz-toggle-sub { font-size: 10px; }
.wz-dense .wz-toggle-list { gap: 10px; margin: 2px 0 10px; }
.wz-dense .wz-toggle-lines { gap: 7px; }
.wz-dense .wz-toggle-line { font-size: 11px; }
.wz-dense .wz-note-box { padding: 8px 10px; font-size: 10.5px; line-height: 14px; }
.wz-dense .wz-help { margin-top: 3px; font-size: 10px; }
.wz-dense .wz-bm-card { height: 80px; }
.wz-dense .wz-account-box { padding: 8px 10px; margin-bottom: 8px; }
.wz-dense .wz-account-name { font-size: 12px; margin-bottom: 2px; }
.wz-dense .wz-account-line { font-size: 10.5px; line-height: 14px; }
.wz-dense .wz-check-list li { height: 20px; font-size: 11px; }
.wz-dense .wz-check-list { margin-bottom: 8px; }
.wz-dense .wz-stat-row { margin-bottom: 8px; }
.wz-dense .wz-stat-tile { padding: 6px 10px; gap: 4px; }
.wz-dense .wz-btn-row-3 .wz-btn, .wz-dense .wz-btn-row-2 .wz-btn, .wz-dense .wz-btn-primary-md, .wz-dense .wz-btn-under, .wz-dense .wz-btn-add, .wz-dense .wz-field-btn-bottom .wz-btn { height: 30px; font-size: 11.5px; }
.wz-dense .wz-status-box-inline { padding: 8px 10px; }
.wz-dense .wz-status-title { font-size: 11.5px; }
.wz-dense .wz-status-text { font-size: 10.5px; line-height: 14px; margin-top: 2px; }
.wz-dense .wz-status-ico { flex-basis: 22px; width: 22px; height: 22px; }
.wz-dense .wz-status-ico .icon { width: 11px; height: 11px; }
.wz-dense .wz-track-grid { gap: 8px 10px; }
.wz-dense .wz-account-strip { margin-top: 8px; padding: 6px 10px; }
.wz-dense .wz-suggest { padding: 6px 10px; }
.wz-dense .wz-table th, .wz-dense .wz-table td { height: 26px; font-size: 11px; }
.wz-dense .wz-server-side { padding: 8px; }
.wz-dense .wz-server-meter-row { height: 18px; font-size: 10px; }
.wz-dense .wz-est-value { font-size: 20px; }
.wz-dense .wz-big-value { font-size: 16px; line-height: 30px; }
.wz-dense .wz-collapse-row { height: 30px; font-size: 11.5px; }
.wz-dense .wz-footer-bare { margin-top: 2px; }
.wz-dense .wz-btn-back, .wz-dense .wz-btn-draft, .wz-dense .wz-footer .wz-btn-primary { height: 32px; font-size: 12px; }
.wz-dense .wz-rail-card { padding: 12px 14px 12px; }
.wz-dense .wz-setup-item { height: 29px; }
.wz-dense .wz-summary-inner { margin-top: 12px; padding-top: 10px; }
.wz-dense .wz-summary-title { margin-bottom: 8px; }
.wz-dense .wz-kv > div { height: 18.5px; font-size: 10.5px; }
.wz-dense .wz-service-list li { padding: 5px 0; }
.wz-dense .wz-status-box { padding: 10px 12px; }
.wz-dense .wz-rail { gap: 10px; }
.wz-progress-dense { padding: 12px 10px 12px 12px; }
.wz-dense .wz-grid-links .wz-input-action .wz-input, .wz-dense .wz-btn-test { height: 26px; }

/* ---- wizard: density pass 2 (measured against Forms/site3–10) ------------- */
.wz-step { min-width: 0; }
.wz-step-text { min-width: 0; }
.wz-step-label, .wz-step-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-progress-dense { padding: 10px 10px 10px 12px; }
.wz-dense-2 .wz-intro-card { padding: 8px 12px 10px; }
.wz-dense-2 .wz-section-head-plain { margin-bottom: 8px; }
.wz-dense-2 .wz-section-icon { flex-basis: 34px; width: 34px; height: 32px; }
.wz-dense-2 .wz-section-icon .icon { width: 16px; height: 16px; }
.wz-dense-2 .wz-section-title { font-size: 13px; line-height: 16px; }
.wz-dense-2 .wz-section-sub { font-size: 10.5px; margin-top: 1px; }
.wz-dense-2 .wz-option-card { height: 46px; }
.wz-dense-2 .wz-option-ico { flex-basis: 30px; width: 30px; height: 30px; }
.wz-dense-2 .wz-option-ico .icon { width: 14px; height: 14px; }
.wz-dense-2 .wz-option-title { font-size: 11.5px; }
.wz-dense-2 .wz-option-sub { font-size: 10px; }
.wz-dense-2 .wz-sub-card { padding: 9px 12px 9px; }
.wz-dense-2 .wz-numbered-head { margin-bottom: 6px; gap: 8px; }
.wz-dense-2 .wz-section-icon-sm { flex-basis: 32px; width: 32px; height: 30px; }
.wz-dense-2 .wz-section-icon-sm .icon { width: 15px; height: 15px; }
.wz-dense-2 .wz-num-title { font-size: 12px; line-height: 14px; }
.wz-dense-2 .wz-num-sub { font-size: 9.5px; line-height: 11px; margin-top: 1px; }
.wz-dense-2 .wz-sub-card .wz-field { margin-bottom: 6px; }
.wz-dense-2 .wz-sub-card .wz-label { margin-bottom: 4px; line-height: 12px; font-size: 10.5px; }
.wz-dense-2 .wz-sub-card .wz-input, .wz-dense-2 .wz-sub-card .wz-select, .wz-dense-2 .wz-static { height: 28px; font-size: 11px; }
.wz-dense-2 .wz-btn-sm { height: 26px; font-size: 10.5px; }
.wz-dense-2 .wz-btn-row { margin-bottom: 6px; }
.wz-dense-2 .wz-btn-row-3 .wz-btn, .wz-dense-2 .wz-btn-row-2 .wz-btn, .wz-dense-2 .wz-btn-primary-md, .wz-dense-2 .wz-btn-under, .wz-dense-2 .wz-btn-add, .wz-dense-2 .wz-field-btn-bottom .wz-btn, .wz-dense-2 .wz-btn-full { height: 28px; font-size: 11px; }
.wz-dense-2 .wz-info-box { padding: 6px 10px; margin-bottom: 6px; }
.wz-dense-2 .wz-account-box { padding: 6px 10px; margin-bottom: 6px; }
.wz-dense-2 .wz-note-box { padding: 6px 10px; font-size: 10px; line-height: 13px; }
.wz-dense-2 .wz-help { margin-top: 2px; font-size: 9.5px; }
.wz-dense-2 .wz-toggle-list { gap: 7px; margin: 0 0 8px; }
.wz-dense-2 .wz-toggle-lines { gap: 5px; }
.wz-dense-2 .wz-toggle-label { font-size: 11px; }
.wz-dense-2 .wz-check-list li { height: 19px; font-size: 10.5px; }
.wz-dense-2 .wz-check-list { margin-bottom: 6px; }
.wz-dense-2 .wz-stat-row { margin-bottom: 6px; }
.wz-dense-2 .wz-stat-tile { padding: 5px 8px; gap: 3px; }
.wz-dense-2 .wz-stat-label { font-size: 9.5px; }
.wz-dense-2 .wz-stat-value { font-size: 11px; }
.wz-dense-2 .wz-status-box-inline { padding: 7px 10px; }
.wz-dense-2 .wz-status-title { font-size: 11px; }
.wz-dense-2 .wz-status-text { font-size: 10px; line-height: 13px; }
.wz-dense-2 .wz-table th, .wz-dense-2 .wz-table td { height: 24px; font-size: 10.5px; }
.wz-dense-2 .wz-server-side { padding: 6px 8px; }
.wz-dense-2 .wz-server-meter-row { height: 17px; }
.wz-dense-2 .wz-collapse-row { height: 28px; font-size: 11px; }
.wz-dense-2 .wz-btn-back, .wz-dense-2 .wz-btn-draft, .wz-dense-2 .wz-footer .wz-btn-primary { height: 30px; font-size: 11.5px; }
.wz-dense-2 .wz-footer-bare { margin-top: 0; }
.wz-dense-2 .wz-rail { gap: 8px; }
.wz-dense-2 .wz-rail-card { padding: 10px 12px 10px; }
.wz-dense-2 .wz-rail-title { font-size: 13px; }
.wz-dense-2 .wz-setup-bar { margin-top: 12px; }
.wz-dense-2 .wz-setup-list { margin-top: 6px; }
.wz-dense-2 .wz-setup-item { height: 27px; font-size: 11.5px; gap: 12px; }
.wz-dense-2 .wz-setup-dot { width: 20px; height: 20px; font-size: 10px; }
.wz-dense-2 .wz-site-preview .wz-rail-head { margin-bottom: 8px; }
.wz-dense-2 .wz-summary-inner { margin-top: 8px; padding-top: 8px; }
.wz-dense-2 .wz-summary-title { margin-bottom: 6px; }
.wz-dense-2 .wz-kv > div { height: 18px; font-size: 10.5px; }
.wz-dense-2 .wz-service-list li { padding: 4px 0; }
.wz-dense-2 .wz-status-box { padding: 8px 10px; }
.wz-dense-2 .wz-toggle-grid { gap: 0 10px; }
.wz-dense-2 .wz-grid-links .wz-input-action .wz-input, .wz-dense-2 .wz-btn-test { height: 26px; }
.wz-dense-2 .wz-account-strip { margin-top: 6px; padding: 5px 10px; }
.wz-dense-2 .wz-inline-fields { gap: 10px; }
.wz-dense-2 .wz-track-grid { gap: 6px 10px; }
.wz-dense-2 .wz-bm-card { height: 76px; }
.wz-dense-2 .wz-check-inline { height: 28px; }
.wz-dense-2 .wz-ps-row { gap: 6px; margin-bottom: 6px; }
.wz-dense-2 .wz-toggle-grid-2 { gap: 5px 12px; margin-bottom: 6px; }
.wz-dense-2 .wz-check-grid { gap: 5px 8px; }
.wz-dense-2 .wz-access-list li { padding: 5px 0; }
.wz-dense-2 .wz-infra-row { height: 32px; }
.wz-dense-2 .wz-infra-list { gap: 5px; margin-bottom: 6px; }
.wz-dense-2 .wz-fin-donut { flex-basis: 108px; width: 108px; height: 108px; }
.wz-dense-2 .wz-fin-donut svg { width: 108px; height: 108px; }
.wz-dense-2 .wz-fin-legend li { height: 18px; }
.wz-dense-2 .wz-budget-tiles { margin: 8px 0 6px; }
.wz-dense-2 .wz-budget-bar { margin: 4px 0 12px; }
.wz-dense-2 .wz-textarea-sm { height: 72px; }
.wz-dense-2 .wz-access-chips { gap: 6px; }
.wz-dense-2 .wz-access-chip { height: 26px; font-size: 10.5px; }
/* step 10 in dense mode */
.wz-dense-2.wz-body-review .wz-main { gap: 8px; }
.wz-dense-2 .wz-review-grid { gap: 8px; }
.wz-dense-2 .wz-review-card { padding: 8px 10px 8px; }
.wz-dense-2 .wz-review-head { margin-bottom: 6px; }
.wz-dense-2 .wz-review-entity { margin-bottom: 6px; }
.wz-dense-2 .wz-review-card .wz-kv > div, .wz-dense-2 .wz-kv-2col > div { height: 18px; font-size: 10px; }
.wz-dense-2 .wz-review-tiles { gap: 5px; margin-bottom: 6px; }
.wz-dense-2 .wz-review-services li { height: 26px; margin-bottom: 3px; }
.wz-dense-2 .wz-review-services { margin-bottom: 6px; }
.wz-dense-2 .wz-review-list li { height: 19px; }
.wz-dense-2 .wz-review-list-access li { height: 17px; }
.wz-dense-2 .wz-review-split { margin-bottom: 6px; }
.wz-dense-2 .wz-prelaunch { padding: 8px 10px 8px; }
.wz-dense-2 .wz-rail-review .wz-rail-card { padding: 8px 10px 8px; }
.wz-dense-2 .wz-completion-body { margin: 6px 0 8px; }
.wz-dense-2 .wz-section-status li { height: 18px; }
.wz-dense-2 .wz-after-list li { height: 19px; }
.wz-dense-2 .wz-ready-banner { padding: 8px 12px; }
/* ---- wizard steps 7–10 components --------------------------------------- */
.wz-section-icon-green { background: var(--tint-success); color: var(--text-success); }
.wz-rec-pill { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; margin-left: 6px; border-radius: 4px; background: var(--tint-success); color: var(--text-success); font-size: 9.5px; font-weight: 600; vertical-align: middle; }
.wz-auto-pill { display: inline-flex; align-items: center; height: 15px; padding: 0 6px; margin-left: 6px; border-radius: 4px; background: var(--bg-selected); color: var(--text-link); font-size: 8.5px; font-weight: 700; letter-spacing: .2px; vertical-align: middle; }
.wz-grid-seo-1 { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.wz-grid-seo-2 { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.wz-last-checked { font-size: 10px; color: var(--muted); text-align: right; line-height: 12px; }
.wz-ps-row { display: grid; grid-template-columns: 1fr 1fr 2.1fr; gap: 8px; margin-bottom: 8px; }
.wz-ps-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-ps-tile-wide { align-items: flex-start; }
.wz-score-ring { flex-basis: 56px; width: 56px; height: 56px; }
.wz-score-ring > span { width: 44px; height: 44px; font-size: 15px; }
.wz-ps-grade { font-size: 10.5px; font-weight: 600; color: var(--text-success); }
.wz-cwv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 4px; }
.wz-cwv > div { display: flex; flex-direction: column; gap: 3px; }
.wz-cwv-key { font-size: 10px; color: var(--muted); }
.wz-cwv-val { font-size: 14px; font-weight: 700; color: var(--text); }
.wz-cwv-good { font-size: 9.5px; color: var(--text-success); }
.wz-ps-controls { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 0 10px; }
.wz-check-inline { display: flex; gap: 14px; height: 30px; align-items: center; }
.wz-threshold { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.wz-input-num { width: 52px !important; text-align: center; padding: 0 4px !important; }
.wz-stat-big { font-size: 15px; }
.wz-trend { height: 16px; padding: 0 5px; font-size: 9.5px; }
.wz-idx-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; }
.wz-sitemap-tile { gap: 6px; }
.wz-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.wz-check-grid .wz-check { font-size: 10.5px; }
.wz-toggle-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 8px; }
.wz-toggle-compact .wz-toggle-label { font-size: 10.5px; font-weight: 500; }
.wz-inline-fields { display: flex; gap: 14px; }
.wz-inline-fields .wz-inline-field { flex: 1 1 auto; margin: 0; }
.wz-stat-tile-ico { flex-direction: row; align-items: center; gap: 10px; }
.wz-stat-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; }
.wz-stat-ico .icon { width: 15px; height: 15px; }
.wz-stat-tile-ico > div { display: flex; flex-direction: column; gap: 3px; }
.wz-grid-seo-3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); }
.wz-keywords { margin-top: 2px; }
.wz-btn-test-primary { color: #fff; border: 0; padding: 0 14px; }
.wz-btn-test-primary:hover { color: #fff; }
.wz-chips-kw { margin-top: 8px; }
.wz-chip-kw { height: 22px; font-size: 10.5px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; }
.wz-monitor-tile { display: flex; align-items: center; gap: 8px; }
.wz-monitor-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; }
.wz-monitor-ico .icon { width: 13px; height: 13px; }
.wz-monitor-tile > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wz-monitor-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.wz-monitor-val { font-size: 10.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.wz-monitor-muted { color: var(--muted); font-weight: 500; }
/* step 8 */
.wz-grid-fin-1 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.wz-fin-donut-row { display: flex; align-items: center; gap: 14px; }
.wz-fin-donut { position: relative; flex: 0 0 120px; width: 120px; height: 120px; }
.wz-fin-donut svg { width: 120px; height: 120px; }
.wz-fin-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wz-fin-donut-value { font-size: 17px; font-weight: 700; color: var(--text); }
.wz-fin-donut-label { font-size: 10px; color: var(--muted); }
.wz-fin-legend { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; }
.wz-fin-legend li { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 11px; color: var(--text-2); }
.wz-fin-legend .legend-dot { width: 9px; height: 9px; }
.wz-fin-legend-name { flex: 1 1 auto; }
.wz-fin-legend-amt { font-weight: 600; color: var(--text); width: 58px; text-align: right; }
.wz-fin-legend-pct { width: 32px; text-align: right; color: var(--muted); }
.wz-entity-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wz-entity-row > div { flex: 1 1 auto; min-width: 0; }
.wz-fin-input { display: inline-flex; align-items: center; gap: 2px; }
.wz-affix-left-inline { font-weight: 600; }
.wz-input-bare { display: inline-block; width: 70px; height: 20px !important; padding: 0 2px !important; border: 0 !important; border-bottom: 1px dashed var(--border-strong) !important; border-radius: 0 !important; background: transparent !important; font-weight: 600 !important; font-size: 12px !important; }
.wz-input-bare:focus { box-shadow: none !important; border-bottom-color: var(--primary) !important; }
.wz-input-cost { width: 58px; }
.wz-per { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
.wz-fin-bottom-row { align-items: center; }
.wz-toggle-state { display: flex; align-items: center; gap: 8px; }
.wz-toggle-state .wz-state-pill { margin-left: 0; }
.wz-infra-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.wz-infra-row { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border-radius: var(--form-radius); background: var(--bg-subtle); border: 1px solid var(--border-subtle); }
.wz-infra-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; background: var(--tint-info); color: var(--text-link); }
.wz-infra-ico .icon { width: 12px; height: 12px; }
.wz-infra-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wz-infra-name { font-size: 11px; font-weight: 600; color: var(--text); }
.wz-infra-desc { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-infra-cost { font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
.wz-infra-row .wz-pill { height: 16px; font-size: 9.5px; padding: 0 6px; }
.wz-btn-full { width: 100%; justify-content: center; height: 30px; }
.wz-grid-fin-3 { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); }
.wz-budget-total { flex-direction: column; align-items: flex-end !important; gap: 2px !important; }
.wz-budget-value { font-size: 15px; font-weight: 700; color: var(--text); }
.wz-input-budget { width: 60px; font-size: 15px !important; }
.wz-budget-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 4px 0 14px; }
.wz-budget-bar span { position: relative; display: block; height: 100%; }
.wz-budget-bar span i { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-style: normal; font-size: 9.5px; color: var(--muted); }
.wz-budget-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 8px; }
.wz-budget-tiles .wz-stat-tile { padding: 6px 6px; }
.wz-budget-tiles .wz-stat-label { display: flex; align-items: center; gap: 4px; font-size: 9.5px; white-space: nowrap; }
.wz-budget-tiles .legend-dot { width: 7px; height: 7px; }
.wz-budget-tiles .wz-input-bare { width: 44px; }
.wz-table-rec th, .wz-table-rec td { padding: 0 6px; }
.wz-more-link-center { display: flex; justify-content: center; margin-top: 8px; }
.wz-kv-bar dd { display: flex; align-items: center; gap: 8px; }
.wz-kv-bar .wz-meter { width: 70px; }
.wz-status-box-mt { margin-top: 10px; }
.wz-rail-check .wz-rail-head { margin-bottom: 8px; }
.wz-check-list-rail li { height: 21px; }
.wz-check-warn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--warning); color: #fff; }
.wz-check-warn .icon { width: 9px; height: 9px; stroke-width: 3; }
.wz-check-err { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; }
.wz-check-err .icon { width: 9px; height: 9px; stroke-width: 3; }
.wz-check-opt { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-track); color: #fff; }
.wz-check-opt .icon { width: 9px; height: 9px; stroke-width: 3; }
/* step 9 */
.wz-grid-access-1 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.wz-table-access th, .wz-table-access td { height: 27px; }
.wz-access-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.wz-logo-xs2 { width: 16px; height: 16px; flex: 0 0 16px; }
.bm-logo.wz-access-bm { width: 18px; height: 14px; border-radius: 3px; flex: 0 0 18px; }
.bm-logo.wz-access-bm img { width: 14px; height: 10px; }
.bm-logo.wz-access-bm .logo-mark { width: 12px; height: 11px; }
.bm-logo.wz-access-bm-lg { width: 36px; height: 34px; border-radius: 9px; flex: 0 0 36px; }
.wz-btn-xs { height: 24px; padding: 0 10px; font-size: 10.5px; }
.wz-text-danger { color: var(--text-danger); }
.wz-text-muted { color: var(--muted); font-weight: 500 !important; }
.wz-verified-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--tint-success); color: var(--text-success); font-size: 11px; font-weight: 600; }
.wz-verified-pill .icon { width: 13px; height: 13px; }
.wz-grid-wp { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: 0 10px; }
.wz-input-secret .wz-input { padding-right: 60px; }
.wz-input-secret .wz-copy-inline { right: 34px; }
.wz-input-secret .wz-copy-inline + .wz-copy-inline { right: 8px; }
.wz-eye.is-on { color: var(--text-link); border-color: var(--border-primary); }
.wz-access-list { list-style: none; margin: 0; padding: 0; }
.wz-access-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.wz-access-list li:last-child { border-bottom: 0; }
.wz-access-list li > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wz-access-lbl { font-size: 10px; color: var(--muted); }
.wz-access-name { font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-access-sub { font-size: 9.5px; color: var(--muted); }
.wz-access-list .wz-pill { height: 18px; font-size: 10px; }
.wz-access-list-compact li { padding: 5px 0; }
.wz-access-foot { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wz-access-foot .wz-label { margin: 0; }
.wz-access-foot .wz-btn:last-child { margin-left: auto; }
.wz-grid-access-3 { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
.wz-access-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-access-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-subtle); font-size: 11px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.wz-access-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wz-access-chip .icon { width: 12px; height: 12px; color: var(--text-3); }
.wz-access-chip.is-selected { border-color: var(--primary); background: var(--bg-selected); color: var(--text-link); }
.wz-grid-policy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; }
.wz-textarea-sm { height: 80px; }
.wz-access-summary { display: flex; align-items: center; gap: 12px; }
.wz-access-ring { flex-basis: 84px; width: 84px; height: 84px; }
.wz-access-ring > span { width: 66px; height: 66px; flex-direction: column; line-height: 1; }
.wz-access-ring strong { font-size: 16px; }
.wz-access-ring small { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.wz-kv-compact { flex: 1 1 auto; }
.wz-kv-compact > div { height: 17px; font-size: 10.5px; }
.wz-kv-compact dt { display: inline-flex; align-items: center; gap: 5px; }
.wz-kv-compact .legend-dot { width: 7px; height: 7px; }
.wz-kv-amber { color: var(--text-warning) !important; }
.wz-kv-red { color: var(--text-danger) !important; }
/* step 10 */
.wz-main-review { gap: 10px; }
.wz-ready-banner { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--form-card-radius); background: var(--tint-success); border: 1px solid var(--border-success); }
.wz-ready-banner-error { background: var(--tint-danger); border-color: var(--border-danger); }
.wz-ready-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--success); color: #fff; }
.wz-ready-banner-error .wz-ready-ico { background: var(--danger); }
.wz-ready-ico .icon { width: 18px; height: 18px; stroke-width: 3; }
.wz-ready-text { flex: 1 1 auto; }
.wz-ready-title { font-size: 14.5px; font-weight: 700; color: var(--text-success); }
.wz-ready-banner-error .wz-ready-title { color: var(--text-danger); }
.wz-ready-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.wz-ready-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px; border-left: 1px solid var(--border-success); }
.wz-ready-stat strong { font-size: 15px; font-weight: 700; color: var(--text); }
.wz-ready-stat span { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.wz-btn-green { background: var(--success); color: #fff; border: 0; }
.wz-btn-green:hover { background: #15A04A; color: #fff; }
.wz-ready-btn { height: 34px; padding: 0 14px; font-size: 12px; font-weight: 600; margin-left: 4px; }
.wz-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wz-review-card { padding: 10px 12px 10px; display: flex; flex-direction: column; }
.wz-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wz-review-head .wz-num-title { flex: 1 1 auto; font-size: 12.5px; }
.wz-num-soft { background: var(--bg-selected); color: var(--text-link); }
.wz-edit-link { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.wz-edit-link .icon { width: 11px; height: 11px; }
.wz-review-entity { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wz-review-entity > div { flex: 1 1 auto; min-width: 0; }
.bm-logo.wz-review-logo { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 40px; }
.wz-review-name { font-size: 13px; font-weight: 700; color: var(--text); }
.wz-review-url { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-link); text-decoration: none; }
.wz-review-entity .wz-preview-chips { margin-top: 5px; }
.wz-kv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.wz-kv-2col > div { height: 20px; font-size: 10.5px; border-bottom: 0; justify-content: flex-start; gap: 10px; }
.wz-kv-2col dt { flex: 0 0 auto; min-width: 64px; }
.wz-kv-2col dd { text-align: left; }
.wz-kv-2col .flag { width: 14px; height: 10px; vertical-align: middle; }
.wz-review-card .wz-kv > div { height: 20px; font-size: 10.5px; }
.wz-review-card .wz-pill { height: 17px; font-size: 9.5px; padding: 0 6px; }
.wz-review-card .wz-ok-strip { margin-top: auto; padding: 6px 10px; }
.wz-review-card .wz-ok-strip-title { font-size: 10.5px; }
.wz-review-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.wz-review-tiles .wz-stat-tile { padding: 6px 8px; gap: 3px; }
.wz-review-tiles .wz-stat-label { font-size: 9.5px; }
.wz-review-tiles .wz-stat-value { font-size: 11px; }
.wz-review-split { display: flex; gap: 10px; margin-bottom: 8px; }
.wz-review-split > div, .wz-review-split > ul { flex: 1 1 auto; min-width: 0; }
.wz-review-ring { flex: 0 0 64px; width: 64px; height: 64px; }
.wz-review-ring > span { width: 50px; height: 50px; flex-direction: column; line-height: 1; }
.wz-review-ring strong { font-size: 13px; }
.wz-review-ring small { font-size: 7.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.wz-review-services { list-style: none; margin: 0 0 8px; padding: 0; }
.wz-review-services li { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; margin-bottom: 4px; border-radius: 6px; background: var(--bg-subtle); border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 600; color: var(--text); }
.wz-review-services li > span:nth-child(2) { flex: 1 1 auto; }
.wz-review-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.wz-review-list { list-style: none; margin: 0; padding: 0; }
.wz-review-list li { display: flex; align-items: center; gap: 8px; height: 21px; font-size: 10.5px; color: var(--text-2); }
.wz-review-list li > span:nth-child(2) { flex: 1 1 auto; }
.wz-review-list-ico { display: inline-flex; color: var(--text-3); }
.wz-review-list-ico .icon { width: 12px; height: 12px; }
.wz-review-scores { display: flex; flex-direction: column; gap: 6px; flex: 0 0 130px !important; }
.wz-review-scores .wz-stat-tile { padding: 6px 8px; gap: 3px; }
.wz-score-pair { display: flex; align-items: center; gap: 6px; }
.wz-score-pair small { font-size: 8.5px; color: var(--muted); margin-right: 6px; }
.wz-score-ring-sm { flex-basis: 34px; width: 34px; height: 34px; }
.wz-score-ring-sm > span { width: 26px; height: 26px; font-size: 10px; }
.wz-fin-cost { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; }
.wz-fin-cost-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: var(--tint-success); color: var(--text-success); }
.wz-fin-cost-ico .icon { width: 15px; height: 15px; }
.wz-fin-cost-value { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.wz-fin-mini { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.wz-fin-mini li { display: flex; align-items: center; gap: 6px; height: 17px; font-size: 10px; color: var(--text-2); }
.wz-fin-mini li > span:nth-child(2) { flex: 1 1 auto; }
.wz-fin-mini .legend-dot { width: 7px; height: 7px; }
.wz-access-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text); margin-bottom: 4px; }
.wz-access-head-ico { width: 13px; height: 13px; color: var(--text-3); }
.wz-review-list-access li { height: 19px; font-size: 10px; }
.wz-prelaunch { padding: 10px 12px 12px; display: grid; grid-template-columns: 190px 1fr 210px; gap: 12px; align-items: start; }
.wz-prelaunch-head { display: flex; align-items: flex-start; gap: 8px; }
.wz-prelaunch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.wz-prelaunch-list li { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--text-2); min-height: 18px; }
.wz-prelaunch-list li small { color: var(--muted); }
.wz-prelaunch-list li.is-error { color: var(--text-danger); font-weight: 600; }
.wz-prelaunch-status { align-self: center; }
.wz-status-box-red { background: var(--tint-danger); border-color: var(--border-danger); }
.wz-status-box-red .wz-status-ico { background: var(--danger); }
.wz-status-box-red .wz-status-title { color: var(--text-danger); }
.wz-rail-review { gap: 10px; }
.wz-rail-review .wz-rail-card { padding: 10px 12px 10px; }
.wz-shot-card { padding: 0 !important; }
.wz-shot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 64px; border-radius: var(--form-card-radius); background: var(--bg-subtle); color: var(--muted); font-size: 10px; }
.wz-shot-placeholder .icon { width: 18px; height: 18px; }
.wz-completion-body { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; }
.wz-completion-ring { flex: 0 0 76px; width: 76px; height: 76px; }
.wz-completion-ring > span { width: 60px; height: 60px; flex-direction: column; line-height: 1; }
.wz-completion-ring strong { font-size: 14px; }
.wz-completion-ring small { font-size: 8px; color: var(--muted); margin-top: 2px; }
.wz-completion-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.wz-completion-list li { display: flex; align-items: center; gap: 6px; height: 22px; font-size: 10.5px; color: var(--text-2); }
.wz-completion-list strong { color: var(--text); }
.wz-check-ok-soft { background: var(--tint-success); color: var(--text-success); }
.wz-rail-subtitle { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--text); }
.wz-section-status { list-style: none; margin: 0; padding: 0; }
.wz-section-status li { display: flex; align-items: center; gap: 8px; height: 19px; font-size: 10.5px; color: var(--text-2); }
.wz-section-status li .wz-check-ok, .wz-section-status li .wz-setup-dot { width: 15px; height: 15px; flex-basis: 15px; font-size: 9px; }
.wz-section-status li .wz-check-ok .icon { width: 8px; height: 8px; }
.wz-section-status li.is-current { color: var(--text-link); font-weight: 600; }
.wz-setup-dot-current { background: var(--primary); color: #fff; }
.wz-after .wz-rail-title { font-size: 12.5px; margin-bottom: 6px; }
.wz-after-list { list-style: none; margin: 0 0 10px; padding: 0; }
.wz-after-list li { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 10.5px; color: var(--text-2); }
.wz-after-ico { display: inline-flex; color: var(--text-3); }
.wz-after-ico .icon { width: 12px; height: 12px; }
.wz-btn-create { width: 100%; justify-content: center; height: 40px; font-size: 12.5px; font-weight: 700; gap: 8px; border-radius: var(--form-radius); }
.wz-btn-create:disabled { opacity: .55; cursor: not-allowed; }
.wz-create-note { margin: 6px 0 8px; text-align: center; font-size: 9.5px; color: var(--muted); }
.wz-check-confirm { display: flex; margin: 0 0 8px; font-size: 10.5px; }
.wz-after .wz-btn-full { margin-top: 6px; height: 32px; }
.wz-processing[hidden] { display: none; }
.wz-processing { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--bg-overlay); }
.wz-processing-card { width: 380px; padding: 24px; text-align: center; }
.wz-processing-spinner { display: inline-block; width: 34px; height: 34px; margin-bottom: 10px; border: 3px solid var(--border-default); border-top-color: var(--primary); border-radius: 50%; animation: wz-spin .9s linear infinite; }
@keyframes wz-spin { to { transform: rotate(360deg); } }
.wz-proc-list { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; }
.wz-proc-list li { position: relative; padding: 5px 0 5px 26px; font-size: 12px; color: var(--muted); }
.wz-proc-list li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); }
.wz-proc-list li.is-active { color: var(--text); font-weight: 600; }
.wz-proc-list li.is-active::before { border-color: var(--primary); border-top-color: transparent; animation: wz-spin .8s linear infinite; }
.wz-proc-list li.is-done { color: var(--text-success); }
.wz-proc-list li.is-done::before { background: var(--success); border-color: var(--success); }
.wz-proc-done { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--text-success); display: flex; align-items: center; justify-content: center; gap: 8px; }
body.wz-busy { overflow: hidden; }
/* --------------------------------------------------------------------------
   Responsive (desktop/laptop only; the 1536 layout is the primary target)
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
  .global-search { width: 340px; }
  .topbar-chevron { margin-left: 22px; }

  /* tables: clip instead of spilling out of the card */
  .dashboard-table { table-layout: fixed; }
  .dashboard-table th,
  .dashboard-table td { padding: 0 5px; overflow: hidden; text-overflow: ellipsis; }
  .table-rows-28 th, .table-rows-28 td { padding: 0 6px; }

  .geo-cell { gap: 5px; }
  .table-top-sites .col-bm  { width: 16.5%; }
  .table-top-sites .col-geo { width: 13.5%; }
  .table-top-sites .col-trend { width: 11.2%; }

  .kpi-item { padding-left: 9px; padding-right: 9px; }
  .kpi-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .kpi-icon > .icon { width: 17px; height: 17px; }
  .kpi-icon-dot { width: 18px; height: 18px; }
  .kpi-body { margin-left: 8px; }
  .kpi-label { font-size: 11.5px; }
  .kpi-value { font-size: 19px; letter-spacing: -.5px; }
  .kpi-trend { padding: 0 4px 0 3px; font-size: 10.5px; }
  .kpi-value-row { gap: 4px; }

  .health-legend { margin-left: 10px; padding-right: 4px; }
  .health-legend-label { overflow: hidden; text-overflow: ellipsis; }
  .donut-wrap { margin-left: 6px; }

  .activity-time { padding-right: 8px; }

  .quick-action { padding-left: 4px; padding-right: 4px; height: auto; min-height: 76px; padding-bottom: 12px; }
  .quick-action-label { font-size: 10.5px; white-space: normal; text-align: center; line-height: 13px; }

  .promo-title { white-space: normal; font-size: 12.5px; line-height: 16px; }
  .promo-body { margin-left: 12px; padding-top: 4px; }
  .promo-card-mint .promo-icon { flex-basis: 44px; width: 44px; height: 44px; margin-top: 0; }
  .btn { padding: 0 16px; }
  .btn-outline { padding: 0 10px; }
}

@media (max-width: 1366px) {
  :root { --content-pad-x: 16px; }
  .dashboard-grid, .grid-tables-1, .grid-tables-2, .grid-bottom { gap: 10px; }
  .global-search { width: 300px; }
  .global-search-input { font-size: 11.5px; }

  .dashboard-table th, .dashboard-table td { padding: 0 4px; font-size: 11.5px; }
  .table-rows-28 th, .table-rows-28 td { padding: 0 5px; }
  .status-badge { padding: 0 6px 0 5px; font-size: 10.5px; }
  .card-icon { margin-right: 8px; }
  .card-title { font-size: 13.5px; }

  .kpi-item { padding-left: 8px; padding-right: 8px; }
  .kpi-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .kpi-label { font-size: 11px; }
  .kpi-value { font-size: 18px; }
  .kpi-sub { font-size: 10.5px; }

  .chart-legend-row { margin-left: 40px; gap: 12px; }
  .chart-legend { font-size: 11.5px; }
  .control-legend { width: 96px; }
  .control-range { width: 110px; }
  .health-body .donut-wrap, .health-body .donut-wrap canvas { flex-basis: 104px; width: 104px !important; height: 104px !important; }
  .donut-value { font-size: 19px; }
  .health-legend li { font-size: 11.5px; gap: 6px; }

  .activity-text { font-size: 11.5px; }
  .activity-time { font-size: 11px; padding-right: 4px; }
  .activity-icon { margin-left: 0; }

  .promo-text { font-size: 10.5px; line-height: 14px; }
  .btn { height: 29px; font-size: 11.5px; }
}

/* three quick actions across only fits while the panel is wide */
@media (max-width: 1460px) {
  .page-hosting-v2 .ho-donut { width: 110px; height: 110px; }
}
/* six tiles plus the Add Server button get tight below reference width —
   the icon gives up a couple of pixels so the money value keeps its
   last character */
@media (max-width: 1600px) {
  .page-hosting-v2 .ho-tile { padding: 9px 8px; gap: 7px; }
  .page-hosting-v2 .ho-tile-icon { width: 32px; height: 32px; }
}
@media (max-width: 1500px) {
  .page-hosting-v2 .ho-site-panel .ho-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1400px) {
  .global-search { width: 260px; }
  .topbar-profile { margin-left: 20px; }
  .topbar-chevron { margin-left: 14px; }

  .kpi-item { padding-left: 7px; padding-right: 7px; }
  .kpi-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .kpi-icon > .icon { width: 15px; height: 15px; }
  .kpi-icon-dot { width: 16px; height: 16px; }
  .kpi-body { margin-left: 7px; }
  .kpi-value { font-size: 17px; }
  .kpi-trend { font-size: 10px; height: 15px; }
  .kpi-trend-icon { width: 9px; height: 9px; }

  .dashboard-table th, .dashboard-table td { font-size: 11px; padding: 0 3px; }
  .table-rows-28 th, .table-rows-28 td { padding: 0 4px; }
  .bookmaker-logo { width: 24px; }
  .bookmaker-cell { gap: 6px; }
  .geo-cell-country { gap: 6px; }

  .chart-legend-inline { gap: 6px; }
  .control-legend { width: 90px; padding: 0 6px 0 8px; }
  .health-body .donut-wrap, .health-body .donut-wrap canvas { flex-basis: 96px; width: 96px !important; height: 96px !important; }
  .health-legend li { font-size: 11px; }

  .promo-card { padding-left: 10px; padding-right: 10px; }
  .promo-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .promo-card-mint .promo-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .promo-body { margin-left: 10px; }
  .btn { padding: 0 12px; }
}

/* All Sites page — laptop widths */
@media (max-width: 1440px) {
  .global-search-wide { width: 400px; }
  .site-kpi-groups { gap: 12px; }
  .view-tab { padding: 0 11px 0 12px; }
  .view-tab.is-active { padding: 0 10px; }
  .filter-search { flex-basis: 170px; width: 170px; }
  .filter-control-btn { padding: 0 8px 0 9px; gap: 6px; }
  .sites-table { min-width: 1200px; }
  .btn-view { padding: 0 14px; }
  .row-actions { gap: 8px; }
  .pagination-range { margin: 0 14px; }
}

@media (max-width: 1366px) {
  .global-search-wide { width: 330px; }
  .page-actions { gap: 8px; }
  .page-actions .btn { padding: 0 12px; }
  .view-tabs-row { flex-wrap: wrap; gap: 10px; }
  .view-tab { font-size: 12px; }
  .quick-filters { gap: 8px; }
  .filter-chip { padding: 0 10px; }
  .site-filter-bar { flex-wrap: wrap; }
  .filter-control { flex: 0 1 auto; }
  .sites-table { min-width: 1200px; }
}

@media (max-width: 1400px) {
  .global-search-wide { width: 260px; }
  .topbar-add { margin-right: 14px; }
  .site-kpi-groups { gap: 10px; }
  .kpi-group-sites .kpi-body { margin-left: 8px; }
  .sites-table { min-width: 1200px; }
}

/* Bookmakers page — laptop widths */
@media (max-width: 1440px) {
  .bm-layout { grid-template-columns: 1fr 280px; gap: 10px; }
  .view-toggle { margin-right: 0; }
  .bm-filter-bar .filter-search { flex-basis: 140px; width: 140px; }
  .bm-table { min-width: 940px; }
  .rank-value { width: 54px; }
}
@media (max-width: 1366px) {
  .bm-layout { grid-template-columns: 1fr 260px; }
  .bm-kpi-groups { gap: 8px; }
  .bm-filter-bar .filter-control { width: auto !important; flex: 1 1 100px; }
  .bm-table { min-width: 960px; }
  .status-legend { margin-left: 14px; }
}
@media (max-width: 1400px) {
  .bm-layout { grid-template-columns: 1fr; }
  .bm-side { display: grid; grid-template-columns: 1fr 1fr; }
  .bm-table { min-width: 940px; }
}

/* Detail pages — laptop widths */
@media (max-width: 1400px) {
  .health-card { width: 470px; padding: 0 16px 0 20px; }
  .health-card-body { padding-left: 18px; }
  .health-summary { padding-left: 18px; }
  .entity-desc-row { max-width: 520px; }
  .detail-tab { padding: 0 12px; gap: 7px; }
  .detail-kpi { padding: 0 10px; }
  .kv-row dt { flex-basis: 150px; }
}
@media (max-width: 1366px) {
  .entity-header { flex-wrap: wrap; }
  .entity-side { align-items: flex-start; }
  .detail-tab { font-size: 12px; padding: 0 9px; }
  .detail-kpi-value { font-size: 16px; }
  .detail-grid-2, .detail-grid-even { grid-template-columns: 1fr 1fr; }
  .breakdown-legend { margin-left: 14px; }
  .map-list { flex-basis: 150px; }
}
@media (max-width: 1400px) {
  .detail-grid-3a, .detail-grid-3b { grid-template-columns: 1fr 1fr; }
  .breakdown-body { height: auto; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
  .breakdown-body .donut-wrap-lg { margin: 0 auto; }
  .breakdown-legend { flex: 1 1 100%; margin-left: 0; }
  .detail-tabs { overflow-x: auto; }
  .detail-tab { flex: 0 0 auto; }
}

/* Site detail — laptop widths */
@media (max-width: 1440px) {
  .site-actions-row .btn-md { padding: 0 10px; }
  .site-row-infra { grid-template-columns: 1.4fr 1fr 0.9fr; }
  .health-card-sm { margin-left: 8px; }
}
@media (max-width: 1366px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-actions { margin-top: 0; padding-left: 0; }
  .site-layout { grid-template-columns: 1fr; }
  .site-side { flex-direction: row; }
  .site-side > * { flex: 1 1 0; }
  .site-row-bottom { grid-template-columns: 1fr 1fr; }
  .bottom-card { height: auto; min-height: 148px; }
  .kpi-group-site .kpi-item { padding: 0 10px; }
}
@media (max-width: 1400px) {
  .site-row-infra { grid-template-columns: 1fr 1fr; }
  .qa-card-site { grid-column: span 2; height: auto; }
  .site-row-gsc { grid-template-columns: 1fr; }
  .gsc-card, .ps-card { height: auto; }
}

/* GEO pages — laptop widths */
@media (max-width: 1440px) {
  .geo-analytics { grid-template-columns: 1.4fr 1fr 1fr; }
  .geo-table { min-width: 1260px; }
  .sites-table.reg-table { min-width: 1150px; }
  .sites-table.host-table { min-width: 1150px; }
  .sites-table.server-sites-table { min-width: 0; }
  .sites-table.cf-table { min-width: 1010px; }
  .sites-table.cfd-table { min-width: 0; }
  .geo-filter-bar .filter-control { flex: 1 1 100px; }
  .page-domains .quick-filters-geo, .page-hosting .quick-filters-geo { flex-wrap: wrap; row-gap: 6px; }
  .page-domains .view-tabs-row-geo, .page-hosting .view-tabs-row-geo { align-items: flex-start; gap: 10px; }
  .page-domains .view-toggle, .page-hosting .view-toggle { flex: 0 0 auto; }
  .donut-card-sm, .kpi-card-infra, .kpi-card-infra .kpi-body { overflow: hidden; }
  .kpi-card-infra .kpi-sub, .kpi-card-infra .kpi-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .breakdown-legend-sm { margin-left: 10px; }
  .breakdown-legend-sm .breakdown-pct { width: 40px; }
}
@media (max-width: 1400px) {
  .health-card-geo { width: 470px; }
}
@media (max-width: 1366px) {
  .geo-analytics { grid-template-columns: 1fr 1fr; }
  .presence-card { grid-column: span 2; }
  .geo-kpi-groups { grid-template-columns: 2.4fr 1fr; }
  .geo-kpi-groups > .kpi-group:last-child { grid-column: span 2; }
  .geo-grid-charts, .geo-grid-mid, .geo-grid-fin { grid-template-columns: 1fr 1fr; }
  .quick-filters-geo { flex-wrap: wrap; }
  .fin-body { grid-template-columns: 1fr; }
}
@media (max-width: 1400px) {
  .geo-grid-bottom { grid-template-columns: 1fr 1fr; }
  .geo-grid-charts { grid-template-columns: 1fr; }
  .breakdown-body-geo { height: auto; flex-wrap: wrap; }
  .view-tabs-row-geo { flex-wrap: wrap; gap: 8px; }
}

/* ==========================================================================
   ACCOUNTS & AFFILIATE — batch 04 (design-reference/14–18)
   Shared building blocks first, then page-specific modifiers.
   ========================================================================== */
/* service marks (Google G) */
.service-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.service-logo .service-mark { width: 100%; height: 100%; display: block; }
.service-logo-xs { width: 16px; height: 16px; }
.service-logo-sm { width: 20px; height: 20px; }
.kpi-service-logo { width: 24px; height: 24px; }
.kpi-icon-google { background: var(--bg-subtle-9); }
.kpi-icon-gray { background: var(--bg-muted); color: var(--text-tertiary); }
.kpi-trend-flat { background: var(--bg-muted-2); color: var(--text-muted); padding: 0 6px; }
.pct-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--bg-muted); font-size: 11.5px; font-weight: 600; color: var(--text-secondary-7); }
.chip-sep { display: inline-block; width: 1px; height: 22px; margin: 0 4px; background: var(--bg-track); }
.chart-legend-stack { margin-left: auto; margin-right: 14px; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 11.5px; }
.chart-legend-stack .legend-dot { width: 10px; height: 10px; }
.feed-icon-amber { background: var(--tint-warning-2); color: var(--text-warning-5); }
.feed-dot-gray { background: var(--bg-muted-7); color: var(--text-tertiary); }

/* --- 14 Google Accounts ------------------------------------------------- */
.page-ga .page-heading-sites { padding-top: 0; padding-bottom: 13px; }
.page-title-ga { font-size: 27px; line-height: 32px; }
.page-ga .page-subtitle { margin-top: 2px; font-size: 13px; }
.page-actions-ga { gap: 5px; margin-top: 10px; }
.page-actions-ga .btn-ga { height: 41px; padding: 0 17px; font-size: 13px; font-weight: 600; }
.page-actions-ga .btn-more-hdr { width: 52px; padding: 0; }
.page-actions-ga .btn-ga-primary { height: 41px; margin-left: 9px; padding: 0 22px 0 18px; font-size: 13px; }
.page-actions-ga .btn-ga-primary .btn-icon { width: 16px; height: 16px; }

.ga-kpis { grid-template-columns: 193fr 216fr 210fr 220fr 218fr 214fr; gap: 6px; margin-bottom: 13px; }
.kpi-card-ga { padding: 17px 0 12px; }
.kpi-card-ga .kpi-item { padding: 0 14px 0 16px; }
.kpi-card-ga .kpi-body { margin-left: 10px; }
.kpi-card-ga .kpi-label { font-size: 12px; line-height: 15px; }
.kpi-card-ga .kpi-value-row { margin-top: 5px; gap: 8px; }
.kpi-card-ga .kpi-value { font-size: 22px; line-height: 26px; }
.kpi-card-ga .kpi-sub { margin-top: 5px; font-size: 11.5px; }

.ga-analytics { display: grid; grid-template-columns: 465fr 416fr 398fr; gap: 10px; margin-bottom: 8px; }
.ga-analytics > * { min-width: 0; }
.ga-traffic-card { height: 234px; padding: 10px 16px 6px 14px; }
.ga-traffic-card .card-header { height: 40px; align-items: flex-start; }
.ga-traffic-card .card-title { padding-top: 2px; }
.ga-traffic-card .chart-legend-stack { margin-top: 4px; }
.control-range-ga { height: 26px; width: 98px; margin-top: 4px; padding: 0 6px 0 9px; font-size: 11.5px; }
.chart-area-ga { height: 170px; margin-top: 6px; }
.ga-donut-card { height: 234px; padding: 10px 16px 8px; }
.ga-donut-card .card-header { height: 28px; }
.breakdown-body-ga { height: 166px; margin-top: 4px; }
.donut-wrap-ga { flex: 0 0 158px; width: 158px; height: 158px; margin-left: 8px; }
.donut-wrap-ga canvas { width: 158px !important; height: 158px !important; }
.donut-wrap-ga .donut-value { font-size: 24px; line-height: 28px; }
.breakdown-legend-ga { margin-left: 32px; }
.breakdown-legend-ga li { height: 24.2px; font-size: 12.5px; gap: 10px; }
.breakdown-legend-ga .breakdown-count { width: 18px; }
.breakdown-legend-ga .breakdown-pct { width: 42px; text-align: right; }

.ga-coverage-card { height: 234px; padding: 10px 14px 14px; }
.ga-coverage-card .card-header { height: 24px; margin-bottom: 2px; }
.coverage-body { display: flex; align-items: flex-start; gap: 14px; }
.coverage-ring-col { display: flex; flex-direction: column; align-items: center; flex: 0 0 162px; }
.coverage-ring { flex-basis: 82px; width: 82px; height: 82px; }
.coverage-ring > span { width: 64px; height: 64px; font-size: 17.5px; letter-spacing: -.4px; }
.coverage-count { margin-top: 6px; font-size: 14px; line-height: 17px; font-weight: 700; color: var(--text); }
.coverage-caption { margin-top: 1px; font-size: 11.5px; line-height: 14px; color: var(--text-3); }
.coverage-list { flex: 1 1 auto; padding-top: 0; }
.coverage-list li { display: flex; align-items: center; gap: 8px; height: 22.5px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.coverage-dot { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; flex: 0 0 auto; }
.coverage-dot .icon { width: 9px; height: 9px; stroke-width: 3; }
.coverage-dot-green { background: var(--success); }
.coverage-dot-amber { background: var(--warning); }
.coverage-dot-red { background: var(--danger); }
.coverage-dot-gray { background: var(--bg-track-3); }
.coverage-num { font-weight: 700; }
.coverage-num-green { color: var(--text-success); }
.coverage-num-amber { color: var(--text-warning-3); }
.coverage-num-red { color: var(--text-danger-3); }
.coverage-num-gray { color: var(--text-2); }
.coverage-note { display: flex; align-items: center; gap: 8px; height: 52px; margin-top: 10px; padding: 0 8px 0 9px; border-radius: 8px; background: var(--tint-success-4); border: 1px solid var(--border-success-3); }
.coverage-note .insight-icon { width: 24px; height: 24px; }
.coverage-note-text { flex: 1 1 auto; font-size: 10.5px; line-height: 14px; letter-spacing: -.1px; color: var(--text-2); }
.btn-coverage-fix { height: 30px; padding: 0 8px 0 9px; font-size: 10.5px; color: var(--text-link); border-color: var(--border-primary); gap: 5px; flex: 0 0 auto; }
.btn-coverage-fix:hover { background: var(--bg-hover); }
.btn-coverage-fix .btn-icon-after { width: 12px; height: 12px; margin-left: 0; }

.tabs-row-ga { align-items: center; gap: 6px; margin-bottom: 5px; }
.subnav-ga { flex: 1 1 auto; height: 40px; margin-bottom: 0; }
.subnav-ga .detail-tab { flex: 0 0 auto; padding: 0 19px 0 20px; font-size: 12.5px; gap: 9px; }
.subnav-ga .detail-tab-icon { width: 16px; height: 16px; }
.subnav-ga .detail-tab + .detail-tab::before { display: none; }
.subnav-ga .detail-tab.is-active { background: var(--bg-subtle-8); }
.quick-filters-ga { flex: 0 0 auto; gap: 8px; margin-bottom: 0; flex-wrap: nowrap; }
.ga-chip { height: 27px; padding: 0 9px; font-size: 11px; border-radius: 7px; }
.ga-chip.is-active { background: var(--primary-2); border-color: var(--border-primary-6); color: #fff; }
.quick-filters-ga .chip-sep { margin: 0 2px 0 6px; }
.btn-save-view-ga { height: 28px; padding: 0 10px; font-size: 11px; gap: 7px; }
.btn-save-view-ga .btn-icon { width: 14px; height: 14px; }

.ga-filter-bar { padding: 6px 8px 6px 4px; gap: 11px; margin-bottom: 2px; }
.ga-filter-bar .filter-search { height: 32px; flex-basis: 290px; width: 290px; padding: 0 10px 0 12px; gap: 12px; }
.ga-filter-bar .filter-control { flex: 0 0 auto; }
.ga-filter-bar .filter-control:nth-of-type(1) { width: 113px; }
.ga-filter-bar .filter-control:nth-of-type(2) { width: 127px; }
.ga-filter-bar .filter-control:nth-of-type(3) { width: 126px; }
.ga-filter-bar .filter-control:nth-of-type(4) { width: 129px; }
.ga-filter-bar .filter-control:nth-of-type(5) { width: 120px; }
.ga-filter-bar .filter-control:nth-of-type(6) { width: 171px; }
.ga-filter-bar .filter-control-btn { height: 38px; }
.ga-filter-bar .btn-more-filter { height: 38px; margin-left: auto; padding: 0 10px 0 9px; font-size: 12px; }

.sites-table.ga-table thead th { height: 25px; font-size: 11.5px; padding: 0 8px; }
.sites-table.ga-table tbody td { height: 26px; padding: 0 8px; font-size: 12px; }
.ga-table .th-check, .ga-table .td-check { padding-left: 14px; }
.ga-cell { display: inline-flex; align-items: center; gap: 12px; }
.ga-table .status-pill { height: 19px; padding: 0 8px 0 7px; font-size: 11.5px; }
.ga-table .row-more .btn-icon-only-xs { height: 22px; width: 30px; border-radius: 6px; }
.ga-table .row-more .btn-icon { width: 14px; height: 14px; }
.ga-table .td-actions .dropdown { display: inline-flex; }
.ga-table .td-actions { line-height: 0; }

.ga-bottom { display: grid; grid-template-columns: 411fr 437fr 421fr; gap: 15px; margin-top: 13px; }
.ga-bottom > * { min-width: 0; }
.ga-bottom-card { height: 192px; padding: 8px 14px 8px; }
.ga-bottom-card .card-header { height: 24px; margin-bottom: 6px; }
.ga-bottom-card .view-all { font-size: 12px; }
.feed-row-ga { height: 28.5px; gap: 10px; border-bottom: 0; }
.feed-row-ga .feed-text { font-size: 11.5px; letter-spacing: -.1px; }
.feed-row-ga .feed-time { font-size: 11px; }
.feed-row-ga .feed-icon-round { width: 24px; height: 24px; }
.feed-row-ga .feed-icon-round .icon { width: 13px; height: 13px; }
.feed-dot-ga { width: 24px; height: 24px; }
.feed-dot-ga .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.ga-top-table th { height: 25px; font-size: 11.5px; padding: 0 8px; }
.ga-top-table td { height: 23.75px; padding: 0 8px; font-size: 12px; border-bottom: 0; }
.ga-top-table .td-rank { font-weight: 700; color: var(--text); }
.ga-alerts-card { background: linear-gradient(180deg, var(--tint-danger-5) 0%, var(--tint-danger-6) 100%); border-color: var(--border-danger-5); }

/* --- 15 Google Account Detail (1440-wide reference) --------------------- */
.page-gad { padding-bottom: 40px; }
.breadcrumb-row-gad { padding-top: 18px; }
.breadcrumb-row-gad .breadcrumb { font-size: 13px; }
.entity-actions-gad { gap: 9px; margin-top: 10px; }
.btn-gad { height: 38px; padding: 0 15px; font-size: 12.5px; font-weight: 600; }
.btn-gad .btn-icon { width: 15px; height: 15px; }
.btn-gad-more { width: 40px; padding: 0; }
.btn-gad-primary { padding: 0 17px 0 15px; }
.entity-header-gad { min-height: 0; margin-top: 0; }
.entity-main-gad { gap: 22px; }
.entity-logo-gad { flex-basis: 111px; width: 111px; height: 111px; margin-top: 0; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-default-8); box-shadow: var(--shadow-card); }
.service-logo-xl { width: 62px; height: 62px; }
.service-logo-lg { width: 54px; height: 54px; }
.entity-info-gad { padding-top: 12px; }
.entity-title-gad { font-size: 29px; line-height: 34px; letter-spacing: -.6px; }
.entity-info-gad .entity-title-row { gap: 14px; }
.status-pill-gad { height: 24px; padding: 0 12px 0 10px; font-size: 12.5px; }
.entity-meta-gad { margin-top: 14px; gap: 0 26px; }
.entity-meta-gad li { font-size: 12.5px; gap: 8px; }
.entity-meta-gad .entity-meta-icon { width: 15px; height: 15px; }
.entity-meta-chevron { width: 12px; height: 12px; color: var(--text-muted); margin-left: -2px; }
.entity-sync-line { display: flex; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.entity-sync-sep { margin: 0 12px; font-size: 10px; }
.detail-tabs-gad { height: 50px; margin-top: 20px; margin-bottom: 14px; }
.detail-tabs-gad .detail-tab { font-size: 12.5px; padding: 0 14px; gap: 8px; }
.detail-tabs-gad .detail-tab-icon { width: 16px; height: 16px; }
.detail-kpis-gad { padding: 19px 0 18px; margin-bottom: 15px; }
.detail-kpis-gad .detail-kpi { padding: 0 14px 0 16px; }
.detail-kpis-gad .detail-kpi-top { gap: 12px; }
.detail-kpis-gad .detail-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; }
.detail-kpis-gad .detail-kpi-value { font-size: 18px; }
.detail-kpis-gad .detail-kpi-label { font-size: 12px; }
.detail-kpis-gad .detail-kpi-bottom { margin-top: 12px; gap: 7px; }
.detail-kpis-gad .trend-pill { height: 20px; padding: 0 8px 0 6px; font-size: 11.5px; }
.detail-kpis-gad .detail-kpi-sub { font-size: 11.5px; }
.kpi-icon-purple { background: var(--tint-purple); color: var(--text-purple); }

.gad-charts { display: grid; grid-template-columns: 483fr 372fr 297fr; gap: 12px; margin-bottom: 14px; }
.gad-charts > * { min-width: 0; }
.gad-perf-card { height: 306px; padding: 12px 16px 4px; }
.gad-perf-card .card-header { height: 40px; }
.control-range-gad { width: 124px; }
.chart-legend-gad { margin: 8px 0 2px; gap: 40px; height: 22px; }
.chart-legend-gad .legend-dot { width: 12px; height: 12px; }
.chart-area-gad { height: 218px; }
.pinned-tooltip-gad { left: 56%; top: 26px; padding: 9px 12px 8px; }
.pinned-tooltip-gad .pinned-tooltip-title { font-size: 12px; margin-bottom: 6px; }
.pinned-tooltip-gad .pinned-tooltip-row { height: 18px; font-size: 11.5px; }
.pinned-tooltip-gad .pinned-tooltip-row .legend-dot { width: 9px; height: 9px; }
.gad-dist-card { height: 306px; padding: 12px 16px 10px; }
.gad-dist-card .card-header { height: 30px; }
.dist-seg { display: flex; gap: 22px; height: 36px; margin-top: 6px; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.dist-seg-btn { flex: 1 1 0; height: 36px; border: 0; border-radius: 6px; background: var(--bg-subtle-14); color: var(--text-2); font-family: var(--font); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.dist-seg-btn:hover { background: var(--bg-muted-5); }
.dist-seg-btn.is-active { background: var(--primary-2); color: #fff; }
.breakdown-body-gad { height: 206px; margin-top: 6px; }
.donut-wrap-gad { flex: 0 0 170px; width: 170px; height: 170px; margin-left: 0; }
.donut-wrap-gad canvas { width: 170px !important; height: 170px !important; }
.donut-wrap-gad .donut-value { font-size: 24px; line-height: 28px; }
.breakdown-legend-gad { margin-left: 20px; }
.breakdown-legend-gad li { height: 32.5px; font-size: 12.5px; gap: 10px; }
.breakdown-legend-gad .breakdown-count { width: 18px; }
.breakdown-legend-gad .breakdown-pct { width: 44px; text-align: right; }
.gad-health-card { height: 306px; padding: 12px 16px 12px; }
.gad-health-card .card-header { height: 30px; margin-bottom: 8px; }
.acct-health { display: flex; align-items: flex-start; gap: 16px; }
.acct-health-ring-col { display: flex; flex-direction: column; align-items: center; flex: 0 0 116px; padding-top: 4px; }
.acct-health-ring { flex-basis: 100px; width: 100px; height: 100px; }
.acct-health-ring > span { width: 78px; height: 78px; }
.acct-health-ring > span strong { font-size: 26px; }
.acct-health-ring > span small { font-size: 9.5px; color: var(--text-success); font-weight: 600; }
.acct-health-label { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.acct-checklist { flex: 1 1 auto; padding-top: 4px; }
.acct-checklist li { display: flex; align-items: center; gap: 9px; height: 28px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.acct-checklist .coverage-dot { width: 16px; height: 16px; }
.acct-checklist .coverage-dot .icon { width: 10px; height: 10px; }
.acct-note { display: flex; align-items: flex-start; gap: 12px; min-height: 90px; margin-top: 12px; padding: 16px 14px 14px; border-radius: 10px; background: var(--tint-success-4); border: 1px solid var(--border-success-3); }
.acct-note .insight-icon { width: 26px; height: 26px; margin-top: 1px; }
.acct-note-title { font-size: 13px; font-weight: 700; color: var(--text); }
.acct-note-text { margin-top: 4px; font-size: 12px; line-height: 17px; color: var(--text-3); }

.gad-layout { display: grid; grid-template-columns: 868fr 297fr; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.gad-layout > * { min-width: 0; }
.gad-sites-card { padding: 12px 16px 14px; min-height: 824px; }
.gad-sites-header { height: 38px; }
.gad-sites-header .card-title { font-size: 15px; }
.btn-blue { background: var(--primary-2); color: #fff; }
.btn-blue:hover { background: var(--primary-hover); }
.btn-assign { height: 38px; margin-left: auto; padding: 0 16px 0 14px; font-size: 12.5px; gap: 9px; }
.gad-site-filters { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.filter-search-gad { flex-basis: 313px; width: 313px; height: 36px; }
.control-plain { height: 36px; padding: 0 10px 0 14px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.control-plain .control-chevron { margin-left: 12px; }
.gad-sites-card .sites-table-scroll { margin-top: 16px; border-radius: 6px; }
.sites-table.gad-table { min-width: 0; }
.sites-table.gad-table thead th { height: 30px; font-size: 10.5px; letter-spacing: -.15px; padding: 0 6px; }
.sites-table.gad-table tbody td { height: 41px; padding: 0 6px; font-size: 12px; line-height: 1.1; }
.gad-table .td-check { line-height: 0; }
.gad-table .td-num-muted { color: var(--muted); }
.gad-table .th-check, .gad-table .td-check { padding-left: 10px; }
.gad-site-cell { gap: 6px; }
.gad-site-cell .table-link { font-size: 11.5px; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gad-site-cell .site-logo-placeholder { background: var(--bg-ink); color: #fff; }
.gad-table th, .gad-table td { overflow: hidden; text-overflow: ellipsis; }
.gad-site-cell .site-logo { width: 26px; height: 26px; border-radius: 6px; }
.gad-table .status-pill { height: 20px; padding: 0 8px 0 7px; font-size: 11.5px; }
.gad-table .row-more .btn-icon-only-xs { height: 26px; width: 32px; }
.gad-table .td-actions .dropdown { display: inline-flex; }
.gad-table .td-actions { line-height: 0; }
.gad-table-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.pagination-range-gad { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.pagination-gad { gap: 8px; }
.pagination-gad .page-btn { width: 32px; height: 32px; font-size: 12.5px; }

.gad-side { display: flex; flex-direction: column; gap: 12px; }
.gad-side .gad-exposure-card { flex: 1 1 auto; }
.gad-coverage-card { padding: 12px 12px 12px; }
.gad-coverage-card .card-header { height: 30px; margin-bottom: 6px; }
.gad-ring-row { display: flex; align-items: center; gap: 18px; }
.gad-ring { flex-basis: 90px; width: 90px; height: 90px; }
.gad-ring > span { width: 70px; height: 70px; font-size: 17px; letter-spacing: -.4px; }
.gad-ring-value { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.gad-ring-value-sm { font-size: 15px; }
.gad-ring-caption { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.gad-ring-caption-wrap { line-height: 17px; }
.gad-check-boxes { margin-top: 12px; border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.gad-check-boxes li { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; font-size: 12.5px; color: var(--text-2); background: var(--bg-subtle-2); }
.gad-check-boxes li + li { border-top: 1px solid var(--border-subtle); }
.gad-check-dot { width: 20px; height: 20px; }
.gad-check-dot .icon { width: 11px; height: 11px; }
.gad-exposure-card { padding: 12px 12px 14px; }
.gad-exposure-card .card-header { height: 30px; margin-bottom: 6px; }
.gad-ring-exp { --c: #22B573; }
.gad-ring-exp > span { font-size: 17px; }
.gad-ring-row-exp { align-items: center; }
.gad-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.gad-tile { height: 80px; padding: 14px 12px 0; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-subtle-2); }
.gad-tile-value { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.gad-tile-label { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.gad-qa-card { padding: 12px 14px 14px; }
.gad-qa-card .card-header { height: 30px; margin-bottom: 4px; }
.qa-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.qa-row-tile { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-subtle-2); font-size: 11px; letter-spacing: -.1px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; transition: background-color .12s ease; }
.qa-row-tile:hover { background: var(--bg-muted-3); }
.qa-row-icon { width: 14px; height: 14px; color: var(--text-link); flex: 0 0 auto; }

.gad-bottom { display: grid; grid-template-columns: 420fr 348fr 385fr; gap: 12px; margin-bottom: 14px; }
.gad-bottom > * { min-width: 0; }
.gad-bottom-card { height: 320px; padding: 14px 14px 12px; }
.gad-bottom-card .card-header { height: 30px; margin-bottom: 8px; }
.gad-top-table th { height: 30px; font-size: 11.5px; padding: 0 6px; }
.gad-top-table td { height: 36px; padding: 0 6px; font-size: 11.5px; background: var(--bg-subtle-3); border-bottom: 4px solid var(--border-white); }
.gad-top-table tbody tr td:first-child { border-radius: 6px 0 0 6px; }
.gad-top-table tbody tr td:last-child { border-radius: 0 6px 6px 0; }
.gad-top-table tbody tr:hover td { background: var(--bg-subtle-11); }
.gad-top-table .gad-site-cell .table-link { font-size: 11.5px; }
.gad-top-table .td-rank { font-weight: 700; color: var(--text); }
.site-logo-xs { width: 22px; height: 22px; border-radius: 5px; }
.site-logo-xs .logo-mark { width: 17px; height: 15px; }
.site-logo-xs img { width: 18px; height: 13px; }
.feed-row-gad { height: 44px; gap: 12px; border-bottom: 1px solid var(--border-soft); }
.feed-row-gad .feed-text { font-size: 12px; }
.feed-row-gad .feed-time { font-size: 11.5px; }
.feed-icon-gad { width: 24px; height: 24px; }
.feed-icon-gad .icon { width: 13px; height: 13px; }
.feed-icon-red { background: var(--tint-danger); color: var(--text-danger-2); }
.cta-banner-gad { min-height: 106px; padding: 0 20px 0 20px; gap: 24px; background: var(--bg-selected-14); }
.cta-logo { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-default-8); flex: 0 0 auto; }
.cta-banner-gad .cta-body { flex: 0 1 auto; }
.cta-banner-gad .cta-title { font-size: 14px; }
.cta-banner-gad .cta-text { margin-top: 5px; font-size: 12.5px; line-height: 19px; }
.cta-link { display: inline-flex; align-items: center; gap: 8px; margin-left: 30px; font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.cta-link-icon { width: 12px; height: 12px; transform: rotate(90deg); }
.btn-cta-white { height: 48px; margin-left: auto; padding: 0 20px 0 18px; font-size: 13px; color: var(--text-link); gap: 10px; }
.btn-cta-white .btn-icon { width: 16px; height: 16px; }

@media (max-width: 1400px) {
  .gad-charts { grid-template-columns: 1.3fr 1fr 0.9fr; }
  .detail-tabs-gad .detail-tab { padding: 0 10px; font-size: 12px; }
}
@media (max-width: 1366px) {
  .gad-charts { grid-template-columns: 1fr 1fr; }
  .gad-perf-card { grid-column: span 2; }
  .gad-layout { grid-template-columns: 1fr; }
  .gad-side { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .gad-bottom { grid-template-columns: 1fr 1fr; }
  .gad-table { min-width: 860px; }
  .gad-sites-card { min-height: 0; }
}
@media (max-width: 1400px) {
  .gad-charts { grid-template-columns: 1fr; }
  .gad-perf-card { grid-column: auto; }
  .gad-side { grid-template-columns: 1fr 1fr; }
  .entity-header-gad { flex-wrap: wrap; }
  .cta-banner-gad { flex-wrap: wrap; padding: 16px 20px; }
  .btn-cta-white { margin-left: 0; }
}

/* --- 16 Affiliate Accounts & IDs --------------------------------------- */
.page-aff .breadcrumb-aff { padding: 8px 0 0 3px; font-size: 12.5px; }
.page-aff .page-heading-sites { padding-top: 6px; padding-bottom: 12px; }
.page-title-aff { font-size: 27px; line-height: 32px; }
.page-aff .page-subtitle { margin-top: 2px; font-size: 13px; }
.page-actions-aff { gap: 11px; margin-top: -6px; }
.control-date-aff { width: 207px; height: 38px; padding: 0 12px 0 14px; font-size: 12px; font-weight: 500; }
.control-date-aff .control-icon { width: 16px; height: 16px; margin-right: 10px; }
.page-actions-aff .btn-aff { height: 38px; padding: 0 16px 0 15px; font-size: 12.5px; font-weight: 600; }
.page-actions-aff .btn-aff-primary { padding: 0 20px 0 18px; }

.aff-kpis { grid-template-columns: 205fr 207fr 213fr 224fr 226fr 216fr; gap: 4px; margin-bottom: 12px; }
.kpi-card-aff { display: flex; align-items: center; height: 86px; padding: 0 12px 0 16px; }
.kpi-icon-aff { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; }
.kpi-icon-aff > .icon { width: 20px; height: 20px; }
.kpi-icon-purple.kpi-icon-outline { background: var(--tint-purple); color: var(--text-purple); }
.kpi-ring { flex: 0 0 40px; width: 40px; height: 40px; }
.kpi-ring > span { width: 26px; height: 26px; }
.kpi-body-aff { margin-left: 14px; }
.kpi-value-row-aff { margin-top: 0; gap: 10px; }
.kpi-value-aff { font-size: 19px; line-height: 24px; }
.kpi-label-aff { margin-top: 1px; font-size: 12px; line-height: 15px; color: var(--text-2); }
.kpi-sub-aff { margin-top: 2px; font-size: 11px; }

.aff-analytics { display: grid; grid-template-columns: 417fr 296fr 279fr 271fr; gap: 10px 10px; margin-bottom: 11px; }
.aff-analytics > *:nth-child(3) { margin-right: 5px; }
.aff-analytics > * { min-width: 0; }
.aff-revenue-card { height: 198px; padding: 10px 14px 6px; }
.aff-revenue-header { height: auto; align-items: flex-start; }
.aff-revenue-header .card-title { padding-top: 2px; }
.aff-revenue-value-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.aff-revenue-value { font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--text); line-height: 28px; }
.aff-revenue-note { font-size: 11.5px; color: var(--muted); }
.control-range-aff { height: 30px; width: 98px; margin-top: 4px; padding: 0 8px 0 10px; font-size: 11.5px; }
.chart-area-aff { height: 118px; margin-top: 12px; }
.pinned-tooltip-aff { left: 70%; top: 6px; padding: 7px 10px; }
.pinned-tooltip-aff .pinned-tooltip-row { gap: 8px; height: 18px; }
.pinned-value { font-size: 13px; font-weight: 700; color: var(--text); }
.aff-bm-card { height: 198px; padding: 10px 14px 6px; }
.aff-bm-card .card-header { height: 26px; }
.breakdown-body-aff { height: 150px; margin-top: 6px; }
.donut-wrap-aff { flex: 0 0 130px; width: 130px; height: 130px; margin-left: 0; }
.donut-wrap-aff canvas { width: 130px !important; height: 130px !important; }
.donut-value-aff { font-size: 17px; line-height: 20px; }
.donut-label-aff { font-size: 10.5px; margin-top: 1px; }
.breakdown-legend-aff { margin-left: 14px; }
.breakdown-legend-aff li { height: 22.8px; font-size: 12px; gap: 8px; }
.breakdown-legend-aff .breakdown-name { flex: 0 0 66px; }
.breakdown-count-aff { width: 40px; text-align: left; }
.breakdown-legend-aff .breakdown-pct { width: 40px; text-align: left; margin-left: 0; }
.aff-geo-card { height: 198px; padding: 10px 10px 6px 12px; }
.aff-geo-card .card-header { height: 26px; margin-bottom: 8px; }
.geo-rev-row { display: flex; align-items: center; height: 24.5px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.geo-rev-name { flex: 0 0 94px; gap: 8px; }
.geo-rev-name .flag { width: 20px; height: 14px; }
.geo-rev-globe { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 14px; color: var(--text-muted-2); }
.geo-rev-globe .icon { width: 13px; height: 13px; }
.geo-rev-bar { flex: 0 0 76px; height: 10px; margin-left: 0; border-radius: 5px; background: var(--bg-muted-4); }
.geo-rev-fill { background: var(--primary-3); }
.geo-rev-value { flex: 0 0 auto; margin-left: 8px; font-weight: 700; color: var(--text); }
.geo-rev-pct { margin-left: 4px; color: var(--muted); }
.aff-deal-card { height: 198px; padding: 10px 14px 6px; }
.aff-deal-card .card-header { height: 26px; }
.breakdown-body-deal { height: 150px; margin-top: 6px; }
.donut-wrap-deal { flex: 0 0 112px; width: 112px; height: 112px; margin-left: 2px; }
.donut-wrap-deal canvas { width: 112px !important; height: 112px !important; }
.donut-wrap-deal .donut-value { font-size: 19px; line-height: 22px; }
.breakdown-legend-deal { margin-left: 14px; }
.breakdown-legend-deal li { height: 25px; font-size: 12px; gap: 8px; }
.breakdown-legend-deal .breakdown-count { width: 16px; }
.breakdown-legend-deal .breakdown-pct { width: 40px; text-align: left; margin-left: 0; }

.tabs-row-aff { align-items: center; gap: 8px; margin-bottom: 8px; }
.subnav-aff { flex: 1 1 auto; height: 40px; margin-bottom: 0; }
.subnav-aff .detail-tab { flex: 0 0 auto; padding: 0 9px 0 10px; font-size: 11.5px; gap: 7px; letter-spacing: -.1px; }
.subnav-aff .detail-tab-icon { width: 14px; height: 14px; }
.subnav-aff .detail-tab + .detail-tab::before { display: none; }
.subnav-aff .detail-tab.is-active { background: var(--bg-subtle-8); }
.quick-filters-aff { flex: 0 0 auto; gap: 5px; margin-bottom: 0; flex-wrap: nowrap; }
.aff-chip { height: 26px; padding: 0 5px; font-size: 10.5px; letter-spacing: -.1px; border-radius: 7px; }
.aff-chip.is-active { background: var(--primary-2); border-color: var(--border-primary-6); color: #fff; }

.aff-filter-bar { padding: 6px 14px 6px 5px; gap: 18px; margin-bottom: 2px; }
.aff-filter-bar .filter-search-aff { height: 34px; flex-basis: 300px; width: 300px; padding: 0 10px 0 12px; gap: 12px; margin-right: 4px; }
.aff-filter-bar .filter-control { flex: 0 0 auto; }
.aff-filter-bar .filter-control:nth-of-type(1) { width: 92px; }
.aff-filter-bar .filter-control:nth-of-type(2) { width: 80px; }
.aff-filter-bar .filter-control:nth-of-type(3) { width: 88px; }
.aff-filter-bar .filter-control:nth-of-type(4) { width: 80px; }
.aff-filter-bar .filter-control:nth-of-type(5) { width: 110px; }
.aff-filter-bar .filter-control:nth-of-type(6) { width: 96px; }
.aff-filter-bar .filter-control-btn { height: 36px; padding: 0 10px 0 10px; gap: 8px; }
.aff-filter-bar .filter-control-label { font-size: 10.5px; }
.aff-filter-bar .filter-control-value { font-size: 11.5px; }
.btn-more-filter-aff { height: 38px; margin-left: -4px; padding: 0 12px 0 11px; font-size: 12.5px; }
.btn-save-view-aff { height: 38px; margin-left: auto; padding: 0 14px; font-size: 12.5px; gap: 9px; }
.btn-save-view-aff .btn-icon { width: 15px; height: 15px; }

.aff-table-card { padding-bottom: 0; }
.sites-table.aff-table { min-width: 0; }
.sites-table.aff-table thead th { height: 32px; font-size: 11px; font-weight: 500; padding: 0 8px; line-height: 13px; vertical-align: middle; }
.aff-table .th-two { line-height: 13px; }
.aff-table .th-two span { display: block; }
.aff-table .th-two .th-sub { font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 0; }
.sites-table.aff-table tbody td { height: 32px; padding: 0 8px; font-size: 12px; line-height: 1.15; }
.aff-table .th-check, .aff-table .td-check { padding-left: 12px; }
.aff-table .td-check { line-height: 0; }
.aff-table .td-num-muted { color: var(--text-2); }
.aff-table .th-c, .aff-table .td-c { text-align: center; }
.aff-table .td-strong { font-weight: 700; color: var(--text); }
.bookmaker-cell-aff { gap: 10px; }
.bm-logo-aff { width: 28px; height: 28px; border-radius: 6px; }
.bm-logo-aff img { width: 24px; height: 18px; }
.bm-logo-aff .logo-mark { width: 22px; height: 20px; }
.bm-logo-aff.bm-logo-placeholder { border-radius: 50%; background: var(--bg-muted); color: var(--text-muted); }
.acct-cell { display: flex; flex-direction: column; line-height: 14px; }
.acct-cell .table-link { font-size: 12px; }
.acct-email { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.flag-stack { display: inline-flex; align-items: center; gap: 4px; }
.flag-stack .flag { width: 18px; height: 13px; border-radius: 2px; }
.flag-more { margin-left: 4px; font-size: 11.5px; color: var(--muted); }
.aff-table .trend-pill { height: 19px; padding: 0 7px 0 5px; font-size: 11.5px; }
.aff-table .status-pill { height: 20px; padding: 0 8px 0 7px; font-size: 11.5px; }
.aff-table .row-more .btn-icon-only-xs { height: 24px; width: 30px; border-radius: 6px; }
.aff-table .td-actions { line-height: 0; }
.aff-table .td-actions .dropdown { display: inline-flex; }
.aff-table tbody tr.is-expanded td { border-bottom: 0; }

.expand-row td.expand-cell { height: auto; padding: 0 12px 0 0; border-bottom: 1px solid var(--border-soft); }
.aff-table tbody tr.expand-row:hover td { background: transparent; }
.expand-wrap { display: flex; align-items: stretch; }
.expand-rail { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 44px; padding: 8px 0 8px 4px; color: var(--text-disabled); }
.expand-chev { width: 12px; height: 12px; }
.expand-chev-up { transform: rotate(180deg); }
.expand-panel { flex: 1 1 auto; min-width: 0; margin: 2px 0 12px; padding: 6px 8px 8px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.expand-head { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 0 0 4px; }
.expand-title { font-size: 13px; font-weight: 700; color: var(--text); }
.btn-add-id { height: 26px; padding: 0 10px 0 8px; font-size: 11.5px; color: var(--text-link); gap: 6px; }
.btn-add-id .btn-icon { width: 13px; height: 13px; }
.ids-table { table-layout: fixed; margin-top: 6px; }
.aff-table .ids-table thead th { height: 25px; font-size: 11px; font-weight: 500; padding: 0 8px; background: var(--bg-subtle-11); }
.ids-table th.th-check { padding-left: 12px; }
.aff-table .ids-table tbody td { height: 25.5px; padding: 0 8px; font-size: 11.5px; border-bottom: 0; }
.aff-table .ids-table tbody tr:hover td { background: var(--bg-subtle-2); }
.ids-table .td-check { padding-left: 12px; line-height: 0; }
.ids-table .geo-cell-lg .flag { width: 18px; height: 13px; }
.ids-table .status-pill-sm { height: 19px; font-size: 11px; }
.link-cov { display: inline-flex; align-items: center; gap: 8px; }
.link-cov-text { width: 22px; }
.link-cov-bar { flex: 0 0 72px; height: 8px; margin-left: 0; border-radius: 4px; }
.link-cov-green { background: var(--success); }
.link-cov-amber { background: var(--orange); }
.link-cov-gray { background: var(--bg-track); }
.btn-icon-only-xxs { height: 22px !important; width: 28px !important; }
.ids-table .row-more .btn-icon { width: 13px; height: 13px; }
.expand-add { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0 12px; font-size: 12px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.expand-add:hover { text-decoration: underline; text-underline-offset: 2px; }
.expand-add-icon { width: 13px; height: 13px; stroke-width: 2.2; }

.aff-footer { height: 44px; padding: 0 14px 0 13px; }
.aff-footer .pagination-range-gad { font-size: 12px; }
.aff-footer .pagination-label { font-size: 11.5px; }
.btn-rpp-aff { height: 30px; width: 60px; margin-left: 10px; }
.pagination-aff { gap: 6px; margin-left: 18px; }
.pagination-aff .page-btn { width: 26px; height: 28px; }

/* --- 17 Affiliate ID Detail (1440-wide reference) ---------------------- */
.page-affid { padding-bottom: 40px; }
.breadcrumb-row-affid { padding-top: 18px; align-items: center; }
.breadcrumb-row-affid .breadcrumb { font-size: 12.5px; gap: 7px; }
.entity-actions-affid { position: absolute; top: -13px; right: 0; gap: 10px; }
.btn-affid { height: 36px; padding: 0 11px; font-size: 12.5px; font-weight: 600; }
.btn-affid .btn-icon { width: 15px; height: 15px; }
.btn-affid-primary { padding: 0 20px 0 16px; }
.btn-affid-more { width: 41px; padding: 0; }
.entity-header-affid { position: relative; min-height: 0; margin-top: 8px; }
.entity-main-affid { gap: 22px; flex: 1 1 auto; }
.entity-header-affid .entity-actions-affid { flex: 0 0 auto; }
.entity-logo-affid { flex-basis: 105px; width: 105px; height: 105px; margin-top: 0; border-radius: 50%; }
.entity-logo-affid .logo-mark { width: 74px; height: 66px; }
.entity-info-affid { padding-top: 6px; }
.entity-title-affid { font-size: 28px; line-height: 34px; letter-spacing: -.6px; }
.affid-id-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.affid-id { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.affid-id-icon { width: 15px; height: 15px; color: var(--text-secondary-2); }
.affid-id-text::before { content: ': '; color: var(--muted); font-weight: 500; margin-right: 2px; }
.status-pill-affid { height: 24px; padding: 0 11px 0 9px; font-size: 12.5px; font-weight: 600; gap: 5px; }
.status-pill-icon { width: 11px; height: 11px; stroke-width: 2.6; }
.entity-meta-affid { margin-top: 14px; gap: 0 22px; flex-wrap: nowrap; white-space: nowrap; }
.entity-meta-affid li { font-size: 12.5px; gap: 8px; }
.entity-meta-affid .flag { width: 18px; height: 13px; }
.entity-meta-affid .entity-meta-icon { width: 15px; height: 15px; }
.detail-tabs-affid { height: 50px; margin-top: 15px; margin-bottom: 14px; }
.detail-tabs-affid .detail-tab { font-size: 12.5px; padding: 0 12px; gap: 8px; }
.detail-tabs-affid .detail-tab-icon { width: 16px; height: 16px; }
.detail-kpis-affid { padding: 10px 0 8px; margin-bottom: 16px; }
.detail-kpis-affid .detail-kpi { padding: 0 14px 0 16px; }
.detail-kpis-affid .detail-kpi-top { gap: 12px; }
.detail-kpis-affid .detail-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; }
.detail-kpis-affid .detail-kpi-value { font-size: 18px; }
.detail-kpis-affid .detail-kpi-label { font-size: 12px; }
.detail-kpis-affid .detail-kpi-bottom { margin-top: 6px; gap: 6px; }
.detail-kpis-affid .trend-pill { height: 20px; padding: 0 8px 0 6px; font-size: 11.5px; }
.detail-kpis-affid .detail-kpi-sub { font-size: 11.5px; }
.affid-kpi-pill { height: 20px; font-size: 11.5px; }

.affid-top { display: grid; grid-template-columns: 708fr 462fr; gap: 17px; margin-bottom: 18px; }
.affid-top > * { min-width: 0; }
.affid-rev-card { height: 304px; padding: 12px 16px 6px; }
.affid-rev-card .card-header { height: 34px; }
.control-range-affid { height: 34px; width: 120px; }
.chart-legend-affid { margin: 10px 0 4px; gap: 30px; height: 22px; }
.legend-square-lg { width: 12px; height: 12px; border-radius: 2px; }
.legend-dot-lg { width: 12px; height: 12px; }
.chart-area-affid { height: 216px; }
.pinned-tooltip-affid { left: 62%; top: 22px; padding: 9px 12px 8px; }
.pinned-tooltip-affid .pinned-tooltip-title { font-size: 12px; margin-bottom: 6px; }
.pinned-tooltip-affid .pinned-tooltip-row { height: 18px; font-size: 11.5px; gap: 8px; }
.pinned-tooltip-affid .legend-square { width: 9px; height: 9px; }
.pinned-tooltip-affid .legend-dot { width: 9px; height: 9px; }
.affid-top-side { display: flex; flex-direction: column; gap: 15px; }
.affid-snap-card { height: 122px; padding: 12px 16px 12px; }
.affid-snap-card .card-header { height: 26px; margin-bottom: 6px; }
.snap-tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.snap-tiles > * { min-width: 0; }
.snap-body { min-width: 0; }
.snap-label { overflow: hidden; text-overflow: ellipsis; }
.snap-tile { display: flex; align-items: flex-start; gap: 10px; padding: 0 6px 0 4px; }
.snap-tile + .snap-tile { border-left: 1px solid var(--border-soft); padding-left: 12px; }
.snap-icon { flex-basis: 36px; width: 36px; height: 36px; margin-top: 0; }
.snap-icon > .icon { width: 18px; height: 18px; }
.snap-value { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -.3px; line-height: 18px; }
.snap-label { margin-top: 1px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.snap-trend { margin-top: 5px; height: 18px; padding: 0 6px 0 5px; font-size: 11px; }
.affid-rbs-card { flex: 1 1 auto; padding: 12px 16px 10px; }
.affid-rbs-card .card-header { height: 26px; margin-bottom: 8px; }
.affid-rbs-card .view-all { font-size: 12.5px; }
.rbs-row { display: flex; align-items: center; height: 27px; font-size: 12.5px; }
.rbs-site { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 150px; min-width: 0; }
.rbs-site .table-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-logo-xxs { width: 18px; height: 18px; border-radius: 4px; }
.bm-logo-xxs img { width: 15px; height: 11px; }
.bm-logo-xxs .logo-mark { width: 14px; height: 13px; }
.rbs-bar { flex: 1 1 auto; height: 10px; margin-left: 0; border-radius: 5px; }
.rbs-value { flex: 0 0 auto; margin-left: 14px; font-weight: 700; color: var(--text); }
.rbs-pct { flex: 0 0 auto; width: 44px; text-align: right; color: var(--muted); }

.affid-layout { display: grid; grid-template-columns: 763fr 409fr; gap: 15px; align-items: start; margin-bottom: 16px; }
.affid-layout > * { min-width: 0; }
.affid-main { display: flex; flex-direction: column; gap: 18px; }
.affid-card-header { height: 34px; }
.affid-card-header .card-title { font-size: 15px; }
.btn-affid-blue { height: 34px; margin-left: auto; padding: 0 16px 0 14px; font-size: 12.5px; gap: 9px; }
.affid-sites-card, .affid-links-card, .affid-monthly-card { padding: 10px 14px 12px; }
.sites-table.affid-table { min-width: 0; margin-top: 12px; }
.sites-table.affid-table thead th { height: 30px; font-size: 11.5px; font-weight: 500; padding: 0 8px; background: var(--bg-subtle-11); }
.sites-table.affid-table tbody td { height: 40px; padding: 0 8px; font-size: 12px; line-height: 1.15; }
.affid-table .td-check { line-height: 0; }
.affid-table .th-check, .affid-table .td-check { padding-left: 12px; }
.affid-table .td-num-muted { color: var(--text-2); }
.affid-table .td-strong { font-weight: 700; color: var(--text); }
.affid-table .status-pill { height: 21px; padding: 0 9px 0 8px; font-size: 12px; }
.affid-table .td-actions { line-height: 0; }
.affid-table .td-actions .dropdown { display: inline-flex; }
.affid-table .row-more .btn-icon-only-xs { height: 26px; width: 30px; border-radius: 6px; }
.link-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: 6px; background: var(--bg-selected-6); font-size: 12px; font-weight: 500; color: var(--text-link-6); white-space: nowrap; }
.link-chip-icon { width: 13px; height: 13px; }
.sites-table.affid-links-table tbody td { height: 43px; }
.link-type { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.link-type-icon { width: 24px; height: 24px; }
.link-type-icon .icon { width: 13px; height: 13px; }
.feed-icon-red { background: var(--tint-danger); color: var(--text-danger-2); }
.link-url { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.link-plain { font-weight: 600; color: var(--text); }
.row-actions-affid { gap: 12px; }
.btn-copy { height: 28px; padding: 0 10px 0 9px; font-size: 12px; color: var(--text-link); border-color: var(--border-primary); gap: 6px; }
.btn-copy .btn-icon { width: 14px; height: 14px; }
.btn-copy:hover { background: var(--bg-hover); }
.btn-copy.is-copied { color: var(--text-success); border-color: var(--border-success); background: var(--tint-success-13); }
.btn-copy.is-copied .btn-copy-label::after { content: 'ied'; }
.sites-table.affid-monthly-table tbody td { height: 35px; }
.affid-monthly-card { padding-bottom: 18px; }

.affid-side { display: flex; flex-direction: column; gap: 14px; }
.affid-kv-card { padding: 12px 14px 12px; }
.affid-kv-header { height: 30px; margin-bottom: 6px; }
.affid-kv-header .card-title { font-size: 15px; }
.btn-edit-sm { height: 30px; margin-left: auto; padding: 0 12px 0 10px; font-size: 12px; color: var(--text-link); border-color: var(--border-primary); gap: 7px; }
.btn-edit-sm .btn-icon { width: 13px; height: 13px; }
.btn-edit-sm:hover { background: var(--bg-hover); }
.kv-list-affid .kv-row-affid { min-height: 31px; padding: 0; align-items: center; }
.kv-row-affid dt { flex: 0 0 175px; padding-left: 12px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.kv-row-affid dd { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.kv-row-affid dd .status-pill { height: 20px; font-size: 11.5px; }
.affid-history-link { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
.affid-history-icon { width: 14px; height: 14px; transform: rotate(90deg); stroke-width: 2.2; }
.affid-qa-card { padding: 12px 14px 12px; }
.affid-qa-card .card-header { height: 30px; margin-bottom: 6px; }
.qa-row-grid-affid { gap: 6px 11px; }
.qa-row-tile-affid { height: 42px; font-size: 12px; gap: 10px; padding: 0 10px 0 12px; }
.qa-row-icon-green { color: var(--text-success); }
.qa-row-icon-blue { color: var(--text-link); }

.affid-bottom { display: grid; grid-template-columns: 385fr 383fr 385fr; gap: 17px; }
.affid-bottom > * { min-width: 0; }
.affid-bottom-card { min-height: 324px; padding: 12px 14px 12px; }
.affid-bottom-card .card-header { height: 30px; margin-bottom: 6px; }
.affid-bottom-card .view-all { font-size: 12.5px; }
.feed-row-affid { align-items: flex-start; height: 53px; padding-top: 8px; gap: 12px; border-bottom: 1px solid var(--border-soft); }
.feed-row-affid:last-child { border-bottom: 0; }
.feed-text-2 { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.feed-text-main { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-text-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time-top { padding-top: 2px; font-size: 11.5px; }
.affid-alert-list { gap: 5px; }
.affid-alert-row { height: 42px; padding: 0 12px 0 12px; gap: 14px; border: 1px solid var(--border-subtle-2); border-radius: 8px; background: var(--bg-subtle-2); }
.affid-alert-row .feed-text { font-size: 12.5px; }
.affid-cred-card .kv-list-cred .kv-row-affid { min-height: 38px; }
.kv-list-cred dt { flex-basis: 165px; }
.cred-ext { width: 12px; height: 12px; color: var(--text-link); vertical-align: middle; }
.cred-pass { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.cred-mask { letter-spacing: 2px; font-size: 13px; color: var(--text); }
.cred-eye { display: inline-flex; padding: 0; border: 0; background: transparent; color: var(--text-tertiary); cursor: pointer; }
.cred-eye .icon { width: 16px; height: 16px; }
.cred-eye:hover { color: var(--text); }
.vault-pill { gap: 6px; padding-left: 8px; }
.vault-icon { width: 11px; height: 11px; }
.cred-note { display: flex; align-items: center; gap: 12px; height: 55px; margin-top: 14px; padding: 0 12px; border-radius: 8px; background: var(--bg-selected-6); font-size: 11.5px; letter-spacing: -.1px; white-space: nowrap; color: var(--text-3); }
.cred-note-icon { width: 18px; height: 18px; color: var(--text-link); flex: 0 0 auto; }

@media (max-width: 1400px) {
  .entity-meta-affid { flex-wrap: wrap; white-space: normal; }
  .detail-tabs-affid .detail-tab { padding: 0 9px; font-size: 12px; }
  .snap-tile { gap: 8px; }
  .snap-icon { flex-basis: 32px; width: 32px; height: 32px; }
}
@media (max-width: 1366px) {
  .affid-top { grid-template-columns: 1fr; }
  .affid-layout { grid-template-columns: 1fr; }
  .affid-side { display: grid; grid-template-columns: 1fr 1fr; }
  .affid-qa-card { grid-column: span 2; }
  .affid-bottom { grid-template-columns: 1fr 1fr; }
  .entity-actions-affid { flex-wrap: wrap; }
}
@media (max-width: 1400px) {
  .affid-side { grid-template-columns: 1fr; }
  .affid-qa-card { grid-column: auto; }
  .affid-bottom { grid-template-columns: 1fr; }
  .breadcrumb-row-affid { flex-wrap: wrap; gap: 10px; }
}

/* --- 18 Links & Tracking (with Link Details rail) ----------------------- */
.page-links .page-heading-sites { padding-top: 2px; padding-bottom: 12px; }
.page-title-links { font-size: 27px; line-height: 32px; }
.page-links .page-subtitle { margin-top: 2px; font-size: 13px; }
.page-actions-links { gap: 10px; margin-top: 8px; }
.page-actions-links .btn-links { height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 600; }
.page-actions-links .btn-more-hdr { width: 38px; padding: 0; }
.page-actions-links .btn-links-primary { height: 32px; width: 232px; margin-left: 6px; padding: 0; font-size: 12.5px; }
/* The main column always keeps the full width — the Link Details panel is a
   floating drawer, so opening it never reflows the KPI / chart / table cards. */
.links-layout { display: block; }
.links-main { min-width: 0; }

.links-kpis { display: grid; grid-template-columns: 142fr 128fr 127fr 128fr 121fr 115fr 127fr 108fr; gap: 4px; margin-bottom: 14px; }
.links-kpis > * { min-width: 0; }
.kpi-card-links { display: flex; align-items: flex-start; gap: 8px; height: 98px; padding: 14px 6px 0 10px; }
.kpi-icon-links { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; }
.kpi-icon-links > .icon { width: 20px; height: 20px; }
.kpi-links-body { min-width: 0; padding-top: 2px; }
.kpi-links-value { font-size: 18px; font-weight: 700; line-height: 22px; letter-spacing: -.4px; color: var(--text); }
.kpi-links-label { margin-top: 1px; font-size: 11px; line-height: 14px; letter-spacing: -.1px; color: var(--text-2); }
.kpi-links-trend { margin-top: 5px; height: 17px; }
.kpi-links-sub { margin-top: 4px; font-size: 10.5px; line-height: 13px; letter-spacing: -.1px; color: var(--muted); }
.kpi-card-links .kpi-links-trend + .kpi-links-sub { margin-top: 3px; }

.links-analytics { display: grid; grid-template-columns: 377fr 301fr 317fr; gap: 14px; margin-bottom: 11px; }
.links-analytics > * { min-width: 0; }
.links-donut-card { height: 183px; padding: 12px 14px 8px; }
.links-donut-card .card-header { height: 26px; }
.breakdown-body-links { height: 138px; margin-top: 2px; }
.donut-wrap-links { flex: 0 0 132px; width: 132px; height: 132px; margin-left: 0; }
.donut-wrap-links canvas { width: 132px !important; height: 132px !important; }
.donut-wrap-links .donut-value { font-size: 20px; line-height: 24px; }
.donut-wrap-links .donut-label { font-size: 11px; }
.breakdown-legend-links { margin-left: 22px; }
.breakdown-legend-links li { height: 24px; font-size: 12px; gap: 8px; }
.breakdown-legend-links .breakdown-count { width: 24px; }
.breakdown-legend-links .breakdown-pct { width: 42px; text-align: left; margin-left: 0; }
.breakdown-legend-status { margin-left: 14px; }
.links-donut-card:nth-child(2) .donut-wrap-links { flex-basis: 120px; width: 120px; height: 120px; }
.links-donut-card:nth-child(2) .donut-wrap-links canvas { width: 120px !important; height: 120px !important; }
.breakdown-legend-status li { height: 22px; }
.links-cov-card { height: 183px; padding: 12px 14px 8px; }
.links-cov-card .card-header { height: 26px; margin-bottom: 4px; }
.links-cov-body { display: flex; align-items: center; gap: 22px; }
.links-cov-ring { flex-basis: 120px; width: 120px; height: 120px; }
.links-cov-ring > span { width: 96px; height: 96px; flex-direction: column; line-height: 1; }
.links-cov-ring > span strong { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.links-cov-ring > span small { margin-top: 3px; font-size: 10.5px; font-weight: 500; color: var(--text-3); }
.links-cov-side { flex: 1 1 auto; min-width: 0; }
.links-cov-list li { display: flex; align-items: center; gap: 10px; height: 22px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.links-cov-list strong { width: 14px; font-weight: 700; color: var(--text); }
.btn-matrix { height: 28px; margin-top: 12px; padding: 0 9px 0 10px; font-size: 11.5px; color: var(--text-link); border-color: var(--border-primary); gap: 8px; }
.btn-matrix:hover { background: var(--bg-hover); }
.btn-arrow-right { transform: rotate(90deg); width: 12px; height: 12px; margin-left: 0; }

.subnav-links { display: flex; width: 100%; height: 33px; margin-bottom: 7px; }
.subnav-links .detail-tab { flex: 0 0 auto; padding: 0 16px 0 18px; font-size: 12px; gap: 8px; }
.subnav-links .detail-tab-icon { width: 15px; height: 15px; }
.subnav-links .detail-tab + .detail-tab::before { display: none; }

.links-filter-bar { padding: 6px 8px 6px 4px; gap: 9px; margin-bottom: 8px; }
.links-filter-bar .filter-search-links { height: 37px; flex-basis: 200px; width: 200px; padding: 0 8px 0 12px; gap: 10px; margin-right: 0; }
.links-filter-bar .filter-search-links input { font-size: 11.5px; }
.links-filter-bar .filter-control { flex: 0 0 auto; }
.links-filter-bar .filter-control:nth-of-type(1) { width: 84px; }
.links-filter-bar .filter-control:nth-of-type(2) { width: 86px; }
.links-filter-bar .filter-control:nth-of-type(3) { width: 80px; }
.links-filter-bar .filter-control:nth-of-type(4) { width: 78px; }
.links-filter-bar .filter-control:nth-of-type(5) { width: 68px; }
.links-filter-bar .filter-control:nth-of-type(6) { width: 74px; }
.links-filter-bar .filter-control-btn { height: 36px; padding: 0 8px 0 9px; gap: 6px; }
.links-filter-bar .filter-control-label { font-size: 10.5px; }
.links-filter-bar .filter-control-value { font-size: 11.5px; }
.btn-more-filter-links { height: 36px; margin-left: 0; padding: 0 7px 0 6px; font-size: 11.5px; gap: 5px; }
.btn-save-view-links { height: 36px; margin-left: auto; padding: 0 7px 0 6px; font-size: 11.5px; gap: 5px; }

.links-table-card { padding-bottom: 0; }
.sites-table.links-table { min-width: 0; }
.sites-table.links-table thead th { height: 22px; font-size: 11.5px; font-weight: 500; padding: 0 8px; }
.sites-table.links-table tbody td { height: 25px; padding: 0 7px; font-size: 11.5px; line-height: 1.1; }
.links-table .th-check, .links-table .td-check { padding-left: 12px; }
.links-table .td-check { line-height: 0; }
.links-table .td-num { font-weight: 600; color: var(--text); }
.links-table .link-url { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; letter-spacing: -.1px; }
.links-table .link-plain { font-weight: 600; color: var(--text); }
.type-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.type-blue { background: var(--bg-selected-6); color: var(--text-link-6); }
.type-amber { background: var(--tint-warning); color: var(--text-warning); }
.bookmaker-cell-links { gap: 7px; white-space: nowrap; }
.used-link { font-size: 12px; color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.links-table .status-pill { height: 18px; padding: 0 7px 0 6px; font-size: 11px; }
.links-table .td-actions { line-height: 0; }
.row-actions-links { gap: 10px; }
.btn-sq { width: 22px; height: 22px; padding: 0; border-radius: 5px; color: var(--text-link); border-color: var(--border-primary); }
.btn-sq .btn-icon { width: 12px; height: 12px; }
.btn-sq:hover { background: var(--bg-hover); }
.btn-sq.is-copied { color: var(--text-success); border-color: var(--border-success); }
.links-table .row-more .btn-sq { color: var(--text-2); border-color: var(--border-default); }
.links-table tbody tr[data-link-row] { cursor: pointer; }
.links-table tbody tr[data-link-row]:hover td { background: var(--bg-hover); }
.links-table tbody tr.is-selected-link td { background: var(--bg-selected-6); }
.links-table tbody tr.is-selected-link td:first-child { box-shadow: inset 2px 0 0 var(--primary); }
.links-table tbody tr[data-link-row]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.links-footer { height: 40px; padding: 0 10px 0 6px; }
.links-footer .pagination-range-gad { font-size: 12px; }
.pagination-links { gap: 6px; }
.pagination-links .page-btn { width: 26px; height: 26px; font-size: 12px; }
.pagination-links .page-btn-wide { width: 30px; }
.page-ellipsis { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 26px; font-size: 12px; color: var(--muted); }
.pagination-label-links { margin-left: 14px; font-size: 11.5px; }
.btn-rpp-links { height: 26px; width: 54px; margin-left: 8px; padding: 0 8px 0 10px; }
.links-footer .page-last { width: 26px; height: 26px; margin-left: 10px; }

.links-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; align-items: stretch; }
.links-bottom > * { min-width: 0; }
.links-bottom-card { display: flex; flex-direction: column; height: auto; min-height: 186px; padding: 12px 14px 10px; }
.links-bottom-card .card-header { height: 22px; margin-bottom: 8px; }
.links-bottom-card .view-all { font-size: 11.5px; }
.links-bottom-card > ul { flex: 1 1 auto; }
.links-bottom-card > ul > li:last-child { border-bottom: 0; }
.feed-row-links { align-items: flex-start; height: auto; min-height: 34px; padding: 3px 0; gap: 10px; border-bottom: 0; border-radius: 6px; }
.links-bottom-card .feed-row-links:hover { background: var(--bg-subtle); }
.feed-row-links .feed-text-main { font-size: 11.5px; letter-spacing: -.1px; }
.feed-row-links .feed-text-sub { margin-top: 1px; font-size: 11px; }
.feed-row-links .feed-time-top { padding-top: 1px; font-size: 10.5px; }
.feed-icon-links { width: 20px; height: 20px; }
.feed-icon-links .icon { width: 11px; height: 11px; }
.feed-row-links-sm { height: auto; min-height: 29px; padding: 2px 0; }
.feed-row-links-sm .feed-text-main { font-size: 11.5px; }
.feed-row-links-sm .feed-text-sub { margin-top: 0; font-size: 10.5px; }
.feed-dot-links { width: 20px; height: 20px; }
.feed-dot-links .icon { width: 11px; height: 11px; }
.top-used-row { display: flex; align-items: center; gap: 12px; height: 29px; border-radius: 6px; font-size: 12px; }
.top-used-row:hover { background: var(--bg-subtle); }
.top-used-rank { width: 14px; font-weight: 700; color: var(--text); }
.top-used-url { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-used-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* Link Details rail */
.link-panel {
  position: fixed;
  /* JS keeps --lt-drawer-top level with the content area (never above the top bar) */
  top: var(--lt-drawer-top, calc(var(--topbar-h) + 12px));
  right: 20px;
  z-index: 25;
  width: 336px;
  max-height: calc(100vh - var(--lt-drawer-top, calc(var(--topbar-h) + 12px)) - 18px);
  padding: 14px 14px 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition: transform .22s cubic-bezier(.32, .72, 0, 1), opacity .16s ease, visibility 0s linear .22s;
}
.link-panel::-webkit-scrollbar { width: 8px; }
.link-panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: var(--scrollbar-thumb); background-clip: content-box; }
.link-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.link-panel[hidden] { display: none; }
.link-panel-head { position: sticky; top: -14px; z-index: 1; margin: -14px -14px 0; padding: 14px 14px 8px; background: var(--surface); }
html[data-theme="dark"] .link-panel { box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04); }
@media (prefers-reduced-motion: reduce) { .link-panel { transition: none; } }
.link-panel-head { display: flex; align-items: center; justify-content: space-between; }
.link-panel-head .card-title { line-height: 22px; }
.link-panel-close { display: inline-flex; padding: 2px; border: 0; background: transparent; color: var(--text-tertiary); cursor: pointer; border-radius: 4px; }
.link-panel-close:hover { background: var(--bg-subtle-10); color: var(--text); }
.link-panel-close .icon { width: 16px; height: 16px; }
.link-panel-hero { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.link-hero-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-info); color: var(--text-link); }
.link-hero-icon .icon { width: 18px; height: 18px; }
.link-hero-body { flex: 1 1 auto; min-width: 0; padding-top: 3px; }
.link-hero-title { font-size: 13px; font-weight: 700; color: var(--text); }
.link-hero-url { display: block; margin-top: 5px; font-size: 11.5px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.status-pill-arrow { gap: 4px; padding-left: 6px; }
/* the trend arrow only makes sense on a healthy link */
#linkHeroStatus:not(.status-live) .status-pill-icon { display: none; }
#linkHeroStatus:not(.status-live) { padding-left: 7px; }
.link-hero-btns { display: flex; gap: 6px; }
.link-kv { margin: 14px 0 0; }
.link-kv-row { display: flex; align-items: center; min-height: 23px; font-size: 12px; }
.link-kv-row dt { flex: 0 0 100px; color: var(--muted); }
.link-kv-row dd { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-kv-row dd.link-kv-muted { color: var(--muted); font-weight: 400; font-size: 11.5px; letter-spacing: -.1px; white-space: normal; line-height: 15px; padding: 3px 0; }
.link-panel-section { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.link-panel-title { font-size: 13px; font-weight: 700; color: var(--text); }
.link-panel-title-row { display: flex; align-items: center; justify-content: space-between; }
.link-panel-title-row .view-all { margin-left: 0; }
.link-used-list { margin-top: 8px; }
.link-used-row { display: flex; align-items: center; gap: 7px; height: 25px; font-size: 11.5px; white-space: nowrap; }
.link-used-domain { flex: 0 0 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 110px; letter-spacing: -.1px; }
.link-used-where { flex: 1 1 auto; min-width: 0; margin-left: 2px; font-size: 10.5px; letter-spacing: -.1px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.link-used-open { display: inline-flex; color: var(--text-link); flex: 0 0 auto; }
.link-used-open .icon { width: 13px; height: 13px; }
.code-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; background: var(--bg-muted); font-size: 11px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.code-pill-ok { background: var(--tint-success); color: var(--text-success-2); }
.chain-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.chain-row { display: flex; align-items: center; gap: 10px; height: 23px; padding: 0 6px 0 8px; border-radius: 5px; background: var(--bg-subtle); font-size: 12px; }
.chain-num { width: 12px; font-weight: 600; color: var(--text); }
.chain-url { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 6px; margin-top: 10px; }
.link-qa-tile { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 3px 0 6px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); font-family: var(--font); font-size: 10.5px; letter-spacing: -.2px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; cursor: pointer; transition: background-color .12s ease; }
.link-qa-tile:hover { background: var(--bg-subtle); }
.link-qa-tile.is-copied { border-color: var(--border-success); color: var(--text-success); }
.link-qa-icon { width: 12px; height: 12px; color: var(--text-link); flex: 0 0 auto; }
.link-history { margin-top: 8px; }
.link-history li { display: flex; align-items: center; gap: 10px; height: 25px; font-size: 11px; letter-spacing: -.1px; color: var(--text-2); }
.link-history .legend-dot { width: 9px; height: 9px; }
.link-history-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-history-date { font-size: 11px; color: var(--muted); white-space: nowrap; }

@media (max-width: 1440px) {
  .links-kpis { grid-template-columns: repeat(4, 1fr); }
  .links-analytics { grid-template-columns: 1.2fr 1fr 1fr; }
  .links-filter-bar { flex-wrap: wrap; row-gap: 8px; }
  .page-actions-links .btn-links-primary { padding: 0 40px; }
}
@media (max-width: 1366px) {
  .links-analytics { grid-template-columns: 1fr 1fr; }
  .links-cov-card { grid-column: span 2; }
  .links-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .link-panel { top: auto; right: 0; bottom: 0; left: 0; width: auto; max-height: 82vh; border-radius: 14px 14px 0 0; transform: translateY(100%); }
  .link-panel.is-open { max-height: 82vh; }
  .link-panel.is-open { transform: none; }
  .links-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 1400px) {
  .links-analytics { grid-template-columns: 1fr 1fr; }
  .links-cov-card { grid-column: span 2; }
  .links-table { min-width: 900px; }
}

@media (max-width: 1440px) {
  .tabs-row-aff { flex-wrap: wrap; gap: 8px; }
  .subnav-aff { flex: 0 0 auto; }
  .quick-filters-aff { flex-wrap: wrap; }
  .aff-filter-bar { flex-wrap: wrap; row-gap: 8px; }
  .btn-save-view-aff { margin-left: 0; }
  .sites-table.aff-table { min-width: 1180px; }
  .aff-kpis { grid-template-columns: repeat(3, 1fr); }
  .aff-analytics { grid-template-columns: 1fr 1fr; }
  .aff-analytics > *:nth-child(3) { margin-right: 0; }
}
@media (max-width: 1366px) {
  .aff-analytics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1400px) {
  .aff-kpis { grid-template-columns: repeat(2, 1fr); }
  .aff-analytics { grid-template-columns: 1fr; }
}
@media (max-width: 1440px) {
  .ga-kpis { grid-template-columns: repeat(3, 1fr); }
  .ga-analytics { grid-template-columns: 1.2fr 1fr 1fr; }
  .ga-table { min-width: 1240px; }
  .ga-filter-bar .filter-search { flex-basis: 200px; width: 200px; }
  .tabs-row-ga { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 1366px) {
  .ga-analytics { grid-template-columns: 1fr 1fr; }
  .ga-traffic-card { grid-column: span 2; }
  .ga-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1400px) {
  .ga-kpis { grid-template-columns: repeat(2, 1fr); }
  .ga-analytics { grid-template-columns: 1fr; }
  .ga-traffic-card { grid-column: auto; }
}

/* ==========================================================================
   SEO — batch 05 (design-reference/19–21)
   Shared SEO building blocks first (heading, value-first KPI, card footers,
   score chips, state dots, right rail), then page-specific modifiers.
   ========================================================================== */
.nav-chevron-parent { color: #fff; }
.nav-group-parent > .nav-item-active.nav-group-toggle .nav-chevron-parent { color: #fff; transform: rotate(180deg); }
.page-seo { padding-bottom: 20px; }

/* heading with breadcrumb */
.seo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 0 15px 3px; }
.seo-heading-main { min-width: 0; }
.breadcrumb-seo { padding: 0; font-size: 13px; }
.page-title-seo { margin-top: 6px; font-size: 30px; line-height: 36px; letter-spacing: -.7px; }
.seo-heading .page-subtitle { margin-top: 3px; font-size: 14px; line-height: 17px; color: var(--text-tertiary-2); }
.seo-actions { gap: 12px; margin-top: 4px; }
.control-date-seo { width: 226px; height: 36px; padding: 0 12px 0 14px; font-size: 12.5px; font-weight: 500; }
.control-date-seo .control-icon { width: 15px; height: 15px; margin-right: 9px; }
.control-compare { width: 172px; height: 36px; padding: 0 12px 0 16px; font-size: 12.5px; font-weight: 500; }

/* value-first KPI (used by all three SEO pages) */
.seo-kpi { display: flex; align-items: flex-start; flex: 1 1 0; min-width: 0; padding: 0 4px 0 16px; }
.seo-kpi + .seo-kpi { border-left: 1px solid var(--border-soft); }
.seo-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; margin-top: 5px; }
.seo-kpi-icon > .icon { width: 19px; height: 19px; }
.kpi-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.kpi-icon-gray-soft { background: var(--bg-muted); color: var(--text-tertiary); }
.seo-kpi-body { min-width: 0; margin-left: 13px; }
.seo-kpi-value { font-size: 18.5px; font-weight: 700; line-height: 22px; letter-spacing: -.4px; color: var(--text); white-space: nowrap; }
.seo-kpi-label { margin-top: 2px; font-size: 11px; letter-spacing: -.1px; font-weight: 500; line-height: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-kpi-trend { display: flex; align-items: center; margin-top: 11px; }
.seo-kpi-trend .kpi-trend { height: 16px; }
.seo-kpi-sub { margin-top: 5px; font-size: 10.5px; line-height: 13px; color: var(--muted); white-space: nowrap; }
.seo-kpi-strip { display: flex; align-items: stretch; padding: 16px 0 6px; margin-bottom: 14px; }

/* generic pieces */
.seo-card-header { height: 26px; }
.seo-card-header .card-title { font-size: 14px; }
.seo-card-footer { display: flex; justify-content: center; }
.btn-link-blue { height: 32px; padding: 0 16px; gap: 10px; border-radius: 7px; font-size: 12px; color: var(--text-link-2); border-color: var(--border-primary-2); }
.btn-link-blue:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-3); }
.btn-arrow-right { width: 13px; height: 13px; transform: rotate(90deg); stroke-width: 2.2; }
.legend-dot.dot-gray { background: var(--bg-track-3); }
.legend-dot.dot-purple { background: var(--purple); }
.num-green { color: var(--text-success); } .num-amber { color: var(--text-warning-3); } .num-red { color: var(--text-danger-3); } .num-purple { color: var(--text-purple); } .num-gray { color: var(--text-2); }
.score-chips { display: inline-flex; gap: 12px; }
.score-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.score-chip-sm { min-width: 20px; height: 20px; font-size: 11px; }
.score-green { background: var(--tint-success); color: var(--text-success-2); }
.score-amber { background: var(--tint-warning); color: var(--text-warning); }
.score-red { background: var(--tint-danger); color: var(--text-danger); }
.state-dot { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; }
.state-dot .icon { width: 9px; height: 9px; stroke-width: 3; }
.state-dot-green { background: var(--success); }
.state-dot-amber { background: var(--warning); }
.state-dot-red { background: var(--danger); }
.state-dot-gray { background: var(--bg-track-3); }
.seo-site-cell { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.rank-logo-sm { width: 20px; height: 20px; border-radius: 4px; }
.rank-logo-sm img { width: 16px; height: 12px; }
.rank-logo-sm .logo-mark { width: 15px; height: 14px; }
.rank-logo-sm.rank-logo-placeholder .icon { width: 11px; height: 11px; }
.seo-mini-table .td-strong, .seo-sites-table .td-strong { color: var(--text-2) !important; font-weight: 600 !important; }
.btn-view-xs { height: 26px; padding: 0 10px; font-size: 11.5px; border-radius: 6px; }
.status-badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-high .status-badge-dot { background: var(--danger); }
.status-medium .status-badge-dot { background: var(--warning); }
.seo-impact { height: 20px; padding: 0 9px 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }

/* --- 19 SEO Control Center ---------------------------------------------- */
.seo-row { display: grid; gap: 14px; margin-bottom: 14px; }
.seo-row > * { min-width: 0; }
.seo-row-perf { grid-template-columns: 632fr 326fr 213fr; }
.seo-row-overview { grid-template-columns: 497fr 315fr 354fr; }
.seo-row-tables { grid-template-columns: 462fr 343fr 366fr; gap: 12px; }
.seo-row-bottom { grid-template-columns: 427fr 360fr 381fr; gap: 15px; margin-bottom: 0; }

.seo-organic-card { height: 286px; padding: 8px 14px 6px; }
.seo-organic-card .seo-card-header { height: 33px; }
.seo-card-controls { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.control-range-seo { height: 32px; width: 114px; padding: 0 10px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--text); border-color: var(--border-default); }
.control-range-seo-wide { width: 124px; }
.chart-legend-seo { height: 20px; margin: 14px 0 4px; gap: 30px; }
.chart-area-organic { height: 184px; margin-top: 4px; padding: 0 20px; }
.chart-axis-side { position: absolute; top: 45%; font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transform-origin: 50% 50%; }
.chart-axis-side-left { left: 10px; transform: translate(-50%, -50%) rotate(-90deg); }
.chart-axis-side-right { right: 10px; transform: translate(50%, -50%) rotate(90deg); }
.pinned-tooltip-seo { left: 52%; top: 6px; width: 196px; padding: 8px 12px 9px; }
.pinned-tooltip-seo .pinned-tooltip-title { font-size: 11.5px; }
.pinned-tooltip-seo .pinned-tooltip-row { height: 19px; gap: 6px; }
.pinned-tooltip-seo .pinned-tooltip-row strong { margin-left: 2px; }
.pinned-tooltip-seo .kpi-trend { height: 15px; margin-left: 4px; font-size: 10.5px; }

.seo-health-card { height: 286px; padding: 12px 16px 12px; }
.seo-health-body { display: flex; align-items: center; height: 164px; margin-top: 0; }
.seo-health-ring { flex-basis: 124px; width: 124px; height: 124px; margin-left: 2px; }
.seo-health-ring > span { width: 96px; height: 96px; }
.seo-health-ring > span strong { font-size: 30px; letter-spacing: -.8px; }
.seo-health-ring > span small { margin-top: 3px; font-size: 11.5px; color: var(--text-success-3); }
.seo-health-list { flex: 1 1 auto; align-self: flex-start; margin: 12px 0 0 22px; padding-right: 2px; }
.seo-health-list li { display: flex; align-items: center; gap: 9px; height: 30px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.seo-health-list .legend-dot { width: 8px; height: 8px; }
.seo-health-name { flex: 1 1 auto; }
.seo-health-list strong { font-weight: 700; color: var(--text); }
.seo-health-card .seo-card-footer { margin-top: 6px; }

.seo-coverage-card { height: 286px; padding: 12px 14px 12px; }
.seo-coverage-top { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.seo-coverage-ring { flex-basis: 78px; width: 78px; height: 78px; }
.seo-coverage-ring > span { width: 58px; height: 58px; font-size: 11px; font-weight: 700; letter-spacing: -.2px; color: var(--text-success); }
.seo-coverage-count { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.seo-coverage-caption { margin-top: 3px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.seo-coverage-list { margin-top: 10px; padding-left: 10px; }
.seo-coverage-list li { display: flex; align-items: center; gap: 10px; height: 23px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.seo-coverage-list .legend-dot { width: 8px; height: 8px; }
.seo-coverage-list strong { width: 14px; font-weight: 700; color: var(--text); }
.seo-coverage-card .seo-card-footer { margin-top: 11px; }
.seo-coverage-card .btn-link-blue { padding: 0 14px; }

.seo-ps-card, .seo-bl-card, .seo-spend-card { height: 211px; padding: 12px 14px 10px; }
.seo-ps-body { display: flex; align-items: center; height: 110px; margin-top: 0; }
.seo-ps-device { display: flex; align-items: center; gap: 14px; flex: 1 1 0; min-width: 0; }
.seo-ps-device + .seo-ps-device { border-left: 1px solid var(--border-soft); padding-left: 16px; }
.seo-ps-ring { flex-basis: 80px; width: 80px; height: 80px; }
.seo-ps-ring > span { width: 60px; height: 60px; }
.seo-ps-ring > span strong { font-size: 22px; letter-spacing: -.5px; }
.seo-ps-ring > span small { font-size: 9px; color: var(--muted); }
.seo-ps-legend { min-width: 0; }
.seo-ps-device-label { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.seo-ps-device-label span { font-weight: 400; color: var(--muted); }
.seo-ps-legend ul { margin-top: 8px; }
.seo-ps-legend li { display: flex; align-items: center; gap: 7px; height: 20px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.seo-ps-legend .legend-dot { width: 8px; height: 8px; }
.seo-ps-legend strong { font-weight: 600; }
.seo-ps-card .seo-card-footer { margin-top: 13px; }

.seo-bl-body { display: flex; align-items: center; height: 96px; margin-top: 0; }
.seo-bl-total { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; }
.seo-bl-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: var(--tint-info); color: var(--text-link); }
.seo-bl-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.seo-bl-value { font-size: 20px; font-weight: 700; line-height: 24px; letter-spacing: -.4px; color: var(--text); }
.seo-bl-caption { margin-top: 2px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.seo-bl-trend { margin-top: 6px; }
.seo-bl-list { flex: 0 0 auto; align-self: flex-start; margin: 10px 0 0 10px; padding-right: 30px; }
.seo-bl-list li { display: flex; align-items: center; gap: 8px; height: 25px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.seo-bl-list .legend-dot { width: 8px; height: 8px; }
.seo-bl-list strong { min-width: 22px; font-weight: 600; }
.seo-bl-card .seo-card-footer { margin-top: 27px; }

.seo-spend-body { display: flex; align-items: center; height: 122px; margin-top: 6px; }
.seo-spend-donut { flex: 0 0 118px; width: 118px; height: 118px; margin-left: 0; }
.seo-spend-donut canvas { width: 118px !important; height: 118px !important; }
.seo-spend-donut .donut-label { font-size: 10px; margin-top: 0; }
.seo-spend-legend { flex: 1 1 auto; align-self: flex-start; margin: 8px 0 0 18px; }
.seo-spend-legend li { display: flex; align-items: center; gap: 8px; height: 25px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.seo-spend-legend .legend-dot { width: 8px; height: 8px; }
.seo-spend-name { flex: 1 1 auto; }
.seo-spend-legend strong { width: 44px; text-align: right; font-weight: 600; color: var(--text); }
.seo-spend-pct { width: 40px; text-align: right; color: var(--muted); }
.seo-spend-card .seo-card-footer { margin-top: 3px; }

.seo-table-card { height: 270px; padding: 10px 14px 8px; }
.seo-table-card .seo-card-header { height: 30px; margin-bottom: 8px; }
.seo-table-card .card-icon { width: 24px; height: 24px; margin-right: 9px; }
.seo-mini-table { table-layout: fixed; }
.seo-mini-table th { height: 30px; padding: 0 4px; font-size: 11px; font-weight: 500; color: var(--text-secondary-6); }
.seo-mini-table td { height: 36px; padding: 0 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.seo-mini-table .td-num { color: var(--text-2); font-weight: 600; }
.seo-mini-table .td-issue { color: var(--text-3); }
.seo-mini-table .table-link { font-weight: 500; font-size: 11.5px; letter-spacing: -.2px; }
.seo-mini-table .seo-site-cell { gap: 8px; }
.seo-mini-table .trend-pill { height: 19px; padding: 0 7px 0 5px; }

.seo-sites-card { padding: 8px 11px 0; margin-bottom: 14px; }
.seo-sites-header { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 3px 0 3px; margin-bottom: 12px; }
.seo-sites-header .card-title { font-size: 14.5px; }
.btn-add-site { height: 32px; padding: 0 14px 0 12px; gap: 8px; border-radius: 7px; background: var(--primary-2); color: #fff; font-size: 12px; }
.btn-add-site:hover { background: var(--primary-hover); }
.btn-add-site .btn-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.seo-filter-bar { padding: 0; margin-bottom: 18px; gap: 14px; border: 0; box-shadow: none; background: transparent; }
.seo-filter-bar .filter-search { height: 40px; flex-basis: 262px; width: 262px; border-radius: 8px; }
.seo-filter-bar .filter-control { flex: 0 0 auto; }
.seo-filter-bar .filter-control:nth-of-type(1) { width: 108px; }
.seo-filter-bar .filter-control:nth-of-type(2) { width: 97px; }
.seo-filter-bar .filter-control:nth-of-type(3) { width: 111px; }
.seo-filter-bar .filter-control:nth-of-type(4) { width: 109px; }
.seo-filter-bar .filter-control:nth-of-type(5) { width: 105px; }
.seo-filter-bar .filter-control-btn { height: 40px; border-radius: 8px; }
.seo-filter-bar .filter-control-label { font-size: 10.5px; line-height: 12px; }
.seo-filter-bar .filter-control-value { font-size: 12px; line-height: 14px; }
.seo-filter-bar .btn-more-filter { height: 40px; margin-left: 6px; padding: 0 20px; border-radius: 8px; gap: 9px; }
.seo-sites-card .sites-table-scroll { border-radius: 0; }
.sites-table.seo-sites-table thead th { height: 32px; font-size: 11.5px; font-weight: 500; color: var(--text-secondary-6); padding: 0 6px; background: var(--bg-subtle-11); }
.sites-table.seo-sites-table thead th:first-child { border-radius: 6px 0 0 6px; }
.sites-table.seo-sites-table thead th:last-child { border-radius: 0 6px 6px 0; }
.sites-table.seo-sites-table tbody td { height: 36.7px; padding: 0 6px; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.seo-sites-table .td-strong { font-weight: 500 !important; }
.seo-sites-table .table-link-strong { font-weight: 500; font-size: 11.5px; letter-spacing: -.1px; }
.seo-sites-table .seo-site-cell { gap: 8px; }
.seo-sites-table .geo-cell-lg { gap: 5px; }
.seo-sites-table .td-geo { padding-left: 4px !important; padding-right: 2px !important; }
.seo-sites-table .th-check, .seo-sites-table .td-check { padding-left: 12px; }
.seo-sites-table .th-c, .seo-sites-table .td-c { text-align: center; }
.seo-sites-table .td-state { line-height: 0; }
.seo-sites-table .td-backlinks { color: var(--text-2); }
.seo-sites-table .trend-pill { height: 20px; padding: 0 8px 0 6px; font-size: 11.5px; }
.seo-sites-table .status-pill { height: 22px; padding: 0 8px 0 7px; font-size: 11px; gap: 5px; }
.seo-sites-table .row-more .btn-icon-only-xs { height: 24px; width: 30px; border-radius: 6px; }
.seo-sites-table .row-more .btn-icon { width: 14px; height: 14px; }
.seo-sites-table .td-actions .dropdown { display: inline-flex; }
.seo-sites-table .td-actions { line-height: 0; }
.seo-table-footer { display: flex; align-items: center; justify-content: space-between; height: 82px; padding: 14px 5px 0 3px; }
.seo-showing { margin: 0; font-size: 12px; font-weight: 400; color: var(--text-3); }
.seo-pagination { gap: 4px; }
.seo-pagination .page-btn { width: 32px; height: 32px; border-radius: 7px; }
.seo-pagination .page-prev, .seo-pagination .page-next { width: 32px; }
.seo-table-footer .pagination-label { font-size: 12px; color: var(--text-3); }
.seo-table-footer .btn-rpp { width: 83px; height: 32px; margin-left: 14px; }

.seo-actions-card { height: 277px; padding: 12px 16px 8px; }
.seo-actions-card .seo-card-header { height: 28px; margin-bottom: 8px; }
.seo-action-row { display: flex; align-items: center; gap: 12px; height: 43px; border-bottom: 1px solid var(--border-soft); }
.seo-action-row:last-child { border-bottom: 0; }
.seo-action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; }
.seo-action-icon .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.seo-action-icon-green { background: var(--tint-success); color: var(--text-success); }
.seo-action-icon-amber { background: var(--tint-warning); color: var(--text-warning-5); }
.seo-action-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.seo-action-icon-blue { background: var(--bg-selected-5); color: var(--text-link); }
.seo-action-text { flex: 1 1 auto; min-width: 0; font-size: 11px; letter-spacing: -.15px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-action-count { flex: 0 0 auto; margin-right: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.btn-action-xs { height: 30px; width: 70px; padding: 0; font-size: 12px; }

.seo-trend-card { height: 277px; padding: 12px 16px 8px; }
.seo-trend-body { display: flex; align-items: center; height: 180px; margin-top: 16px; }
.seo-trend-donut { flex: 0 0 150px; width: 150px; height: 150px; margin-left: 8px; }
.seo-trend-donut canvas { width: 150px !important; height: 150px !important; }
.seo-trend-donut .donut-value-lg { font-size: 26px; line-height: 28px; }
.seo-trend-legend { flex: 1 1 auto; align-self: flex-start; margin: 30px 0 0 24px; }
.seo-trend-legend li { display: flex; align-items: center; gap: 9px; height: 34px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.seo-trend-legend .legend-dot { width: 9px; height: 9px; }
.seo-trend-name { flex: 1 1 auto; }
.seo-trend-legend strong { font-weight: 700; color: var(--text); }
.seo-trend-pct { color: var(--muted); }
.seo-trend-caption { width: 166px; margin-top: 12px; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; }

.seo-cwv-card { height: 277px; padding: 12px 14px 8px; }
.seo-cwv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 19px; }
.seo-cwv-tile { height: 105px; padding: 13px 12px 0; border-radius: 8px; border: 1px solid var(--border-subtle-2); background: var(--bg-subtle); }
.seo-cwv-label { font-size: 11px; font-weight: 600; color: var(--text-2); }
.seo-cwv-value { margin-top: 12px; line-height: 24px; font-size: 20px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.seo-cwv-grade { margin-top: 8px; height: 20px; padding: 0 9px; font-size: 11px; font-weight: 600; border-radius: 5px; }
.seo-cwv-bar { display: flex; gap: 4px; height: 7px; margin: 27px 6px 0; }
.seo-cwv-bar span { display: block; height: 100%; border-radius: 3.5px; }
.seo-cwv-legend { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; margin: 11px 6px 0; }
.seo-cwv-legend li { display: flex; align-items: center; gap: 9px; height: 26px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.seo-cwv-legend .legend-dot { width: 9px; height: 9px; }
.seo-cwv-name { flex: 1 1 auto; }
.seo-cwv-legend strong { font-weight: 700; color: var(--text); }

/* SEO pages — laptop widths */
@media (max-width: 1440px) {
  .sites-table.seo-sites-table { min-width: 0; }
  .seo-heading .page-subtitle { font-size: 13.5px; }
}
@media (max-width: 1366px) {
  .sites-table.seo-sites-table { min-width: 1120px; }
  .seo-filter-bar { flex-wrap: wrap; gap: 10px; }
  .seo-row-perf { grid-template-columns: 1.6fr 1fr 0.7fr; }
  .seo-kpi { padding: 0 8px 0 12px; }
  .seo-kpi-body { margin-left: 10px; }
}
@media (max-width: 1400px) {
  .seo-row-perf { grid-template-columns: 1fr 1fr; }
  .seo-organic-card { grid-column: span 2; }
  .seo-row-overview, .seo-row-tables, .seo-row-bottom { grid-template-columns: 1fr 1fr; }
  .seo-spend-card, .seo-cwv-card { grid-column: span 2; }
  .seo-table-card { height: auto; }
}

/* --- 20 PageSpeed & Core Web Vitals ------------------------------------- */
.seo-heading-ps { position: relative; display: block; padding: 8px 0 0 3px; }
.seo-heading-ps .seo-heading-main { padding-right: 0; }
.seo-heading-ps .page-subtitle { white-space: nowrap; }
.seo-heading-ps .breadcrumb-seo { font-size: 12.5px; }
.page-title-ps { margin-top: 4px; }
.seo-heading-ps .page-subtitle { margin-top: 2px; font-size: 13px; line-height: 16px; }
.ps-actions { position: absolute; right: 0; top: 22px; gap: 12px; margin-top: 0; }
.seg-control-ps { height: 30px; margin-left: 0; border-radius: 7px; }
.seg-control-ps .seg-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 11.5px; font-weight: 500; }
.seg-control-ps .seg-btn .btn-icon { width: 14px; height: 14px; }
.seg-control-ps .seg-btn.is-active { background: var(--primary-2); color: #fff; }
.control-date-ps { width: auto; height: 30px; padding: 0 10px 0 12px; font-size: 11.5px; font-weight: 500; }
.control-date-ps .control-icon { width: 14px; height: 14px; margin-right: 8px; }
.control-date-ps .control-chevron { margin-left: 10px; }
.control-compare-ps { height: 30px; padding: 0 10px 0 12px; font-size: 11.5px; font-weight: 500; }
.control-compare-ps .control-icon { width: 14px; height: 14px; margin-right: 8px; }
.control-compare-ps .control-chevron { margin-left: 8px; }
.split-btn { display: inline-flex; }
.split-btn .btn { height: 30px; border-radius: 0; font-size: 11.5px; }
.split-btn-main { padding: 0 12px 0 12px; border-radius: 7px 0 0 7px !important; gap: 8px; }
.split-btn-main .btn-icon { width: 14px; height: 14px; fill: currentColor; }
.split-btn-toggle { width: 38px; padding: 0; border-radius: 0 7px 7px 0 !important; border-left: 1px solid rgba(255, 255, 255, .28) !important; }
.split-btn-toggle .btn-icon { width: 13px; height: 13px; stroke-width: 2.4; }

.ps-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; column-gap: 12px; align-items: start; margin-top: -7px; }
.ps-layout.rail-closed { grid-template-columns: minmax(0, 1fr); }
.ps-main { min-width: 0; padding-top: 18px; }

.ps-kpis { display: grid; grid-template-columns: 138fr 100fr 160fr 100fr 148fr 152fr 148fr; gap: 4px; margin-bottom: 13px; }
.ps-kpis > * { min-width: 0; }
.ps-kpi-card { height: 76px; padding: 12px 4px 10px 12px; }
.ps-kpi { padding: 0; }
.ps-kpi-icon { flex-basis: 34px; width: 34px; height: 34px; margin-top: 2px; }
.ps-kpi-icon > .icon { width: 18px; height: 18px; }
.ps-kpi-ring { flex: 0 0 34px; width: 34px; height: 34px; margin-top: 2px; }
.ps-kpi-ring > span { width: 24px; height: 24px; }
.ps-kpi .seo-kpi-body { margin-left: 10px; }
.ps-kpi .seo-kpi-value { font-size: 17px; line-height: 20px; }
.ps-kpi .seo-kpi-label { margin-top: 1px; font-size: 10.5px; letter-spacing: -.25px; }
.ps-kpi .seo-kpi-trend { margin-top: 6px; }
.ps-kpi .seo-kpi-trend .kpi-trend { height: 15px; font-size: 10.5px; }
.ps-kpi-sub { margin-top: 6px; font-size: 11px; color: var(--text-3); }

.ps-row { display: grid; gap: 12px; }
.ps-row > * { min-width: 0; }
.ps-row-charts { grid-template-columns: 585fr 402fr; margin-bottom: 5px; }
.ps-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ps-row-queue { grid-template-columns: 375fr 198fr; }

.ps-trend-card { height: 237px; padding: 8px 14px 8px; }
.ps-trend-card .seo-card-header { height: 24px; }
.seg-control-sm { height: 22px; border-radius: 6px; }
.seg-control-sm .seg-btn { padding: 0 9px; font-size: 11px; font-weight: 600; }
.seg-control-sm .seg-btn.is-active { background: var(--primary-2); }
.seg-control-soft { background: var(--bg-subtle-10); border-color: var(--border-default); padding: 2px; }
.seg-control-soft .seg-btn { border-right: 0; border-radius: 4px; font-weight: 500; color: var(--text-2); }
.seg-control-soft .seg-btn.is-active { background: var(--bg-surface); color: var(--text); box-shadow: 0 1px 2px var(--ink-08); }
.chart-legend-ps { height: 18px; margin: 12px 0 4px; gap: 22px; font-size: 11px; }
.chart-legend-ps .legend-dot { width: 8px; height: 8px; }
.legend-dash { display: inline-block; width: 16px; height: 0; border-top: 2px dotted var(--border-strong-2); }
.chart-area-ps-trend { height: 160px; }

.ps-queue-card { height: 157px; padding: 8px 14px 8px; }
.ps-queue-card .seo-card-header, .ps-status-card .seo-card-header { height: 20px; }
.ps-queue-body { display: flex; align-items: flex-start; margin-top: 10px; }
.ps-queue-donut { flex: 0 0 86px; width: 86px; height: 86px; margin: 0; }
.ps-queue-donut canvas { width: 86px !important; height: 86px !important; }
.ps-queue-count { font-size: 14px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.ps-queue-legend { flex: 0 0 auto; width: 92px; margin: -1px 0 0 25px; }
.ps-queue-legend li { display: flex; align-items: center; gap: 6px; height: 22px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.ps-queue-legend .legend-dot { width: 8px; height: 8px; }
.ps-queue-name { flex: 1 1 auto; }
.ps-queue-legend strong { font-weight: 700; color: var(--text); }
.ps-queue-next { width: 113px; margin-left: auto; }
.ps-next-box { padding: 6px 8px 7px; border-radius: 6px; background: var(--bg-subtle-6); }
.ps-next-title { font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.ps-next-site { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; white-space: nowrap; }
.ps-next-site .table-link { font-size: 11px; }
.rank-logo-xs { width: 16px; height: 16px; border-radius: 3px; }
.rank-logo-xs img { width: 13px; height: 9px; }
.rank-logo-xs .logo-mark { width: 12px; height: 11px; }
.rank-logo-xs.rank-logo-placeholder .icon { width: 9px; height: 9px; }
.ps-next-eta { margin-top: 2px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.btn-ps-sm { height: 27px; padding: 0 12px; font-size: 11.5px; gap: 8px; }
.ps-queue-next .btn-ps-sm { width: 100%; margin-top: 9px; }

.ps-status-card { height: 157px; padding: 8px 14px 8px; }
.ps-status-list { margin: 8px 0 0; padding: 0 5px 0 10px; }
.ps-status-list li { display: flex; align-items: center; gap: 9px; height: 27px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.state-dot-lg { width: 16px; height: 16px; }
.state-dot-lg .icon { width: 9px; height: 9px; }
.ps-status-name { flex: 1 1 auto; }
.ps-status-list strong { font-weight: 700; color: var(--text); }
.ps-status-footer { justify-content: flex-end; margin-top: 3px; }
.ps-status-footer .btn-ps-sm { height: 26px; padding: 0 10px; gap: 6px; }

.ps-cwv-card { height: 403px; padding: 8px 12px 8px; }
.ps-cwv-card .seo-card-header { height: 24px; }
.ps-cwv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.ps-cwv-tile { height: 97px; padding: 9px 10px 0; border-radius: 8px; border: 1px solid var(--border-subtle-2); background: var(--bg-subtle); }
.ps-cwv-label { font-size: 11px; font-weight: 600; color: var(--text-2); }
.ps-cwv-value-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.ps-cwv-value { font-size: 16px; font-weight: 700; letter-spacing: -.3px; line-height: 20px; color: var(--text); }
.ps-cwv-value-sm { font-size: 14px; line-height: 18px; }
.ps-cwv-check { display: inline-flex; color: var(--text-success); }
.ps-cwv-check .icon { width: 15px; height: 15px; stroke-width: 2; }
.ps-cwv-grade { margin-top: 5px; height: 17px; padding: 0 8px; font-size: 10.5px; }
.ps-cwv-dist { display: flex; gap: 3px; height: 6px; margin-top: 10px; }
.ps-cwv-dist span { display: block; height: 100%; border-radius: 3px; }
.ps-dist-green { background: var(--success); } .ps-dist-amber { background: var(--warning); } .ps-dist-red { background: var(--danger-2); }
.ps-cwv-pcts { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; font-weight: 600; }
.ps-issues-header { display: flex; align-items: center; justify-content: space-between; height: 20px; margin-top: 19px; }
.ps-issues-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ps-issues-title span { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.ps-how-link { font-size: 11px; font-weight: 500; color: var(--text-link-3); text-decoration: none; }
.ps-how-link:hover { text-decoration: underline; }
.ps-issue-list { margin-top: 3px; }
.ps-issue-row { display: flex; align-items: center; height: 25.3px; padding-left: 6px; }
.ps-issue-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.ps-issue-icon .icon { width: 10px; height: 10px; stroke-width: 2.2; }
.ps-issue-icon-green { background: var(--tint-success); color: var(--text-success); }
.ps-issue-icon-amber { background: var(--tint-warning); color: var(--text-warning-5); }
.ps-issue-icon-red { background: var(--tint-danger); color: var(--text-danger-5); }
.ps-issue-name { flex: 1 1 auto; margin-left: 6px; font-size: 11px; letter-spacing: -.1px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-issue-bar { flex: 0 0 122px; height: 8px; margin: 0 0 0 8px; }
.ps-issue-count { flex: 0 0 52px; margin-left: 0; text-align: right; font-size: 11px; font-weight: 500; color: var(--text-link-3); text-decoration: none; white-space: nowrap; }
.ps-issue-count:hover { text-decoration: underline; }
.ps-issues-footer { display: flex; justify-content: flex-end; margin-top: 0; }
.ps-issues-footer .btn-ps-sm { height: 26px; padding: 0 10px; gap: 6px; }

.ps-table-card { padding: 12px 10px 0; margin-bottom: 0; }
.ps-filter-bar { margin-bottom: 12px; gap: 10px; }
.ps-filter-bar .filter-search { height: 34px; flex-basis: 170px; width: 170px; border-radius: 7px; }
.ps-filter-bar .filter-control { flex: 1 1 0; width: auto !important; }
.ps-filter-bar .filter-control-btn { height: 34px; border-radius: 7px; padding: 0 8px 0 10px; }
.ps-filter-bar .filter-control-label { font-size: 10px; line-height: 12px; }
.ps-filter-bar .filter-control-value { font-size: 11.5px; line-height: 13px; }
.ps-filter-bar .btn-more-filter { height: 34px; margin-left: 4px; padding: 0 14px; border-radius: 7px; gap: 8px; font-size: 11.5px; }
.btn-ps-tool { height: 34px; padding: 0 14px; gap: 8px; border-radius: 7px; font-size: 11.5px; color: var(--text-link-2); }
.btn-ps-tool .btn-icon { width: 14px; height: 14px; }
.btn-ps-tool:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-2); }
.sites-table.ps-table thead th { height: 24px; font-size: 11px; padding: 0 5px; }
.sites-table.ps-table tbody td { height: 25.3px; padding: 0 4px; font-size: 11px; }
.ps-table .th-check, .ps-table .td-check { padding-left: 10px; }
.ps-table .seo-site-cell { gap: 5px; }
.ps-table .rank-logo-sm { width: 18px; height: 18px; }
.ps-table .table-link { font-size: 11px; letter-spacing: -.3px; }
.ps-table .score-chip { min-width: 24px; height: 19px; font-size: 11px; }
.ps-table .td-metric { font-weight: 500; }
.ps-table .status-pill { height: 18px; padding: 0 6px 0 5px; font-size: 10px; gap: 4px; letter-spacing: -.1px; }
.ps-table .status-pill-dot { width: 6px; height: 6px; }
.ps-table .td-spark { line-height: 0; }
.sparkline-ps { display: inline-block; }
.ps-table .row-more .btn-icon-only-xs { height: 20px; width: 26px; border-radius: 5px; }
.ps-table .row-more .btn-icon { width: 13px; height: 13px; }
.ps-table tbody tr.is-selected-row td { background: var(--bg-subtle-8); }
.ps-table-footer { height: 45px; padding: 0 3px 0 1px; }
.ps-table-footer .seo-showing { font-size: 11.5px; }
.ps-footer-right { display: flex; align-items: center; }
.ps-footer-right .pagination-label { font-size: 11.5px; }
.btn-rpp-sm { width: 52px; height: 24px; margin-left: 10px; padding: 0 8px 0 10px; border-radius: 6px; font-size: 11.5px; }
.btn-rpp-sm .btn-chevron { width: 10px; height: 10px; }
.ps-pagination { gap: 2px; margin-left: 16px; }
.ps-pagination .page-btn { width: 24px; height: 24px; border-radius: 6px; font-size: 11.5px; }
.ps-pagination .page-prev, .ps-pagination .page-next { width: 24px; }
.ps-pagination .page-btn .icon { width: 11px; height: 11px; }

/* right rail (shared) */
.seo-rail { position: sticky; top: 64px; min-width: 0; overflow: hidden; padding: 12px 12px 34px 14px; }
.rail-close { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: auto; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; }
.rail-close .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.rail-close:hover { background: var(--bg-subtle-10); }
.rail-tabs { display: flex; align-items: stretch; justify-content: space-between; height: 24px; margin-top: 12px; border-bottom: 1px solid var(--border-soft); }
.rail-tab { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 0 2px; border: 0; background: transparent; color: var(--text-2); font-family: var(--font); font-size: 11.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.rail-tab:hover { color: var(--text); }
.rail-tab.is-active { color: var(--text-link); }
.rail-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.rail-tab-icon { width: 13px; height: 13px; }
.rail-section-header { display: flex; align-items: center; height: 24px; }
.rail-section-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.rail-section-header .view-all { margin-left: auto; }
.ext-link-md .icon { width: 13px; height: 13px; }

.ps-rail-head { display: flex; align-items: flex-start; }
.ps-rail-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 7px; background: var(--bg-ink); overflow: hidden; }
.ps-rail-logo .logo-mark { width: 30px; height: 28px; display: block; }
.ps-rail-logo img { width: 32px; height: 20px; object-fit: contain; }
.ps-rail-title { min-width: 0; margin-left: 12px; }
.ps-rail-domain { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 16px; font-weight: 700; letter-spacing: -.3px; line-height: 20px; color: var(--text); }
.ps-rail-domain a:first-child { color: var(--text); text-decoration: none; }
.ps-rail-domain .ext-link { color: var(--text-link); }
.ps-rail-meta { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.ps-rail-meta .geo-cell { gap: 6px; }
.ps-rail-meta .flag { width: 16px; height: 11px; }
.ps-rail-scores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 7px; }
.ps-rail-score { display: flex; align-items: center; gap: 10px; min-width: 0; height: 70px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--border-subtle-2); background: var(--bg-surface); }
.ps-rail-score-text { min-width: 0; }
.ps-rail-ring { flex: 0 0 46px; width: 46px; height: 46px; }
.ps-rail-ring > span { width: 34px; height: 34px; font-size: 14px; letter-spacing: -.3px; }
.ps-rail-score-label { font-size: 11px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-rail-grade { margin-top: 6px; height: 17px; font-size: 10.5px; }
.ps-rail-box { margin-top: 10px; padding: 10px 10px 10px; border-radius: 8px; border: 1px solid var(--border-subtle-2); background: var(--bg-surface); }
.ps-rail-box-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ps-rail-cwv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ps-rail-cwv-tile { height: 70px; padding: 8px 8px 0; border-radius: 7px; border: 1px solid var(--border-subtle-2); background: var(--bg-subtle); }
.ps-rail-cwv-tile .ps-cwv-label { font-size: 10.5px; }
.ps-rail-cwv-tile .ps-cwv-value-row { margin-top: 3px; }
.ps-rail-cwv-tile .ps-cwv-check .icon { width: 13px; height: 13px; }
.ps-rail-cwv-tile .ps-cwv-grade { margin-top: 4px; height: 16px; font-size: 10px; padding: 0 7px; }
.rail-kv { margin-top: 0; }
.rail-kv-row { align-items: center; min-height: 27px; padding: 0; border-bottom: 1px solid var(--border-soft); }
.rail-kv-row dt { flex: 0 0 96px; font-size: 11.5px; font-weight: 500; color: var(--text-tertiary); line-height: 15px; }
.rail-kv-row dd { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--text-2); line-height: 15px; min-width: 0; white-space: nowrap; }
.rail-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.rail-link-icon { width: 12px; height: 12px; }
.btn-rail-xs { height: 24px; padding: 0 7px; font-size: 10.5px; border-radius: 6px; flex: 0 0 auto; }
.rail-section-header-history { margin-top: 12px; }
.ps-rail .rail-section-header { margin-top: 12px; }
.chart-legend-rail { height: 18px; margin: 4px 0 0; gap: 22px; font-size: 11px; }
.chart-legend-rail .legend-dot { width: 8px; height: 8px; }
.chart-area-rail { height: 90px; margin-top: 2px; }
.ps-rail .rail-section-header-issues { margin-top: 14px; }
.rail-issue-list { margin-top: 2px; }
.rail-issue-row { display: flex; align-items: center; height: 25.5px; }
.rail-level-col { flex: 0 0 62px; display: flex; }
.rail-level { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px 0 6px; font-size: 10.5px; border-radius: 5px; }
.rail-issue-text { flex: 1 1 auto; min-width: 0; margin-left: 4px; font-size: 10.5px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-level-icon { width: 10px; height: 10px; stroke-width: 2.6; }
.level-green { background: var(--tint-success); color: var(--text-success-2); }
.rail-issue-value { flex: 0 0 auto; margin-left: 6px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.rail-issue-footer { display: flex; justify-content: flex-end; margin-top: 6px; }
.rail-issue-footer .btn-ps-sm { height: 24px; padding: 0 10px; gap: 6px; font-size: 11px; }
.ps-rail .rail-section-header-qa { margin-top: 16px; }
.rail-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 6px; }
.rail-qa-btn { height: 34px; padding: 0 10px; justify-content: flex-start; gap: 10px; border-radius: 7px; font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.rail-qa-btn .btn-icon { width: 14px; height: 14px; color: var(--text-secondary-2); }

/* --- 21 Backlinks Manager ----------------------------------------------- */
.seo-heading-bl { padding: 8px 0 0 3px; }
.seo-heading-bl .breadcrumb-seo { font-size: 12.5px; }
.page-title-bl { margin-top: 4px; }
.seo-heading-bl .page-subtitle { margin-top: 2px; font-size: 13px; line-height: 16px; white-space: nowrap; }
.bl-actions { gap: 12px; margin-top: 6px; }
.control-date-bl { width: auto; height: 32px; padding: 0 12px 0 14px; font-size: 12px; font-weight: 500; }
.control-date-bl .control-icon { width: 14px; height: 14px; margin-right: 9px; }
.control-date-bl .control-chevron { margin-left: 14px; }
.btn-add-backlink { height: 36px; margin-left: 6px; padding: 0 30px 0 26px; gap: 10px; font-size: 12.5px; }
.btn-add-backlink .btn-icon { width: 15px; height: 15px; stroke-width: 2.4; }
.btn-more-bl { width: 35px; height: 36px; margin-left: -2px; }

.bl-kpis { display: grid; grid-template-columns: 167fr 165fr 170fr 168fr 186fr 227fr 223fr; gap: 5px; margin: 6px 0 10px; }
.bl-kpis > * { min-width: 0; }
.bl-kpi-card { height: 88px; padding: 14px 6px 12px 14px; }
.bl-kpi { padding: 0; }
.bl-kpi-icon { flex-basis: 36px; width: 36px; height: 36px; margin-top: 1px; }
.bl-kpi-icon > .icon { width: 18px; height: 18px; }
.kpi-icon-solid-fill { color: #fff; }
.kpi-icon-green.kpi-icon-solid-fill { background: var(--success); }
.kpi-icon-red.kpi-icon-solid-fill { background: var(--danger); }
.kpi-icon-amber.kpi-icon-solid-fill { background: var(--warning); }
.kpi-icon-solid-fill > .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.kpi-icon-gray { background: var(--bg-muted); color: var(--text-tertiary); }
.bl-kpi .seo-kpi-body { margin-left: 12px; }
.bl-kpi .seo-kpi-value { font-size: 19px; line-height: 22px; }
.bl-kpi .seo-kpi-label { margin-top: 2px; font-size: 11px; }
.bl-kpi .seo-kpi-trend { margin-top: 6px; min-height: 15px; }
.bl-kpi .seo-kpi-trend .kpi-trend { height: 15px; font-size: 10.5px; }
.bl-kpi .seo-kpi-sub { margin-top: 3px; font-size: 10.5px; }

.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 10px; align-items: start; }
.bl-layout.rail-closed { grid-template-columns: minmax(0, 1fr); }
.bl-main { min-width: 0; }

.bl-analytics { display: grid; grid-template-columns: 289fr 291fr 240fr 224fr; gap: 10px; margin-bottom: 8px; }
.bl-analytics > * { min-width: 0; }
.bl-chart-card { height: 160px; padding: 8px 12px 8px; }
.bl-chart-card .seo-card-header { height: 20px; }
.bl-status-body { display: flex; align-items: center; margin-top: 12px; }
.bl-status-donut { flex: 0 0 96px; width: 96px; height: 96px; margin-left: 2px; }
.bl-status-donut canvas { width: 96px !important; height: 96px !important; }
.bl-donut-value { font-size: 18px; line-height: 20px; letter-spacing: -.4px; }
.bl-donut-label { margin-top: 1px; font-size: 10.5px; }
.bl-donut-value-sm { font-size: 15px; line-height: 17px; letter-spacing: -.3px; }
.bl-status-legend { flex: 1 1 auto; margin-left: 12px; padding-right: 0; }
.bl-status-legend li { display: flex; align-items: center; gap: 6px; height: 23.5px; font-size: 10px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; }
.bl-status-legend .legend-dot { width: 8px; height: 8px; }
.bl-status-legend strong { width: 20px; font-weight: 700; color: var(--text); }
.bl-legend-name { flex: 1 1 auto; }
.bl-legend-pct { color: var(--muted); font-size: 9.5px; }

.bl-spend-card { position: relative; }
.bl-spend-summary { position: absolute; right: 14px; top: 26px; display: flex; flex-direction: column; align-items: flex-end; z-index: 2; }
.bl-spend-total { font-size: 16px; font-weight: 700; letter-spacing: -.3px; line-height: 20px; color: var(--text); }
.bl-spend-month { margin-top: 1px; font-size: 10.5px; color: var(--muted); }
.bl-spend-trend { margin-top: 4px; height: 15px; font-size: 10.5px; }
.chart-area-bl-spend { height: 116px; margin-top: 8px; }

.bl-mini-body { display: flex; align-items: center; margin-top: 6px; }
.bl-mini-donut { flex: 0 0 84px; width: 84px; height: 84px; margin: 0; }
.bl-mini-donut canvas { width: 84px !important; height: 84px !important; }
.bl-mini-legend { flex: 1 1 auto; margin-left: 8px; min-width: 0; }
.bl-mini-legend li { display: flex; align-items: center; gap: 4px; height: 19.3px; font-size: 10px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; }
.bl-mini-legend-anchors li { height: 21px; }
.bl-mini-legend .legend-dot { width: 7px; height: 7px; }
.bl-mini-legend strong { font-weight: 700; color: var(--text); }
.bl-mini-legend .bl-legend-pct { font-size: 9.5px; }

.bl-tabs-row { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 8px; padding-left: 4px; }
.bl-tabs { display: flex; align-items: stretch; height: 30px; }
.bl-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 0; background: transparent; color: var(--text-2); font-family: var(--font); font-size: 11.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.bl-tab:first-child { padding-left: 6px; }
.bl-tab:hover { color: var(--text); }
.bl-tab.is-active { color: var(--text-link); font-weight: 600; }
.bl-tab.is-active::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.bl-tab-icon { width: 13px; height: 13px; color: var(--text-link); }
.bl-tab-dot { display: inline-flex; align-items: center; justify-content: center; width: 8px; height: 8px; border-radius: 50%; color: #fff; }
.bl-tab-dot .icon { width: 6px; height: 6px; stroke-width: 3.5; }
.bl-tabs-actions { display: flex; align-items: center; gap: 10px; }
.btn-bl-tool { height: 30px; padding: 0 12px; gap: 8px; border-radius: 7px; font-size: 11.5px; color: var(--text-link-2); }
.btn-bl-tool .btn-icon { width: 13px; height: 13px; }
.btn-bl-tool:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-2); }

.bl-filter-bar { padding: 4px 10px; gap: 6px; margin-bottom: 4px; }
.bl-filter-bar .filter-search { height: 30px; flex-basis: 272px; width: 272px; border-radius: 6px; }
.bl-filter-bar .filter-search input { font-size: 10px; }
.bl-filter-bar .filter-search-icon { width: 14px; height: 14px; }
.bl-filter-bar .filter-control { flex: 1 1 0; width: auto !important; }
.bl-filter-bar .filter-control-btn { height: 30px; padding: 0 6px 0 8px; gap: 4px; border-radius: 6px; }
.bl-filter-bar .filter-control-label { font-size: 9.5px; line-height: 11px; }
.bl-filter-bar .filter-control-value { font-size: 10.5px; line-height: 12px; }
.bl-filter-bar .filter-control-chevron { width: 11px; height: 11px; }
.bl-filter-bar .btn-more-filter { height: 30px; margin-left: 4px; padding: 0 10px; border-radius: 6px; gap: 6px; font-size: 11px; }
.bl-filter-bar .btn-more-filter .btn-icon { width: 13px; height: 13px; }
.bl-filter-bar .btn-bl-save { height: 30px; padding: 0 10px; font-size: 11px; }

.bl-table-card { padding: 2px 10px 0; margin-bottom: 8px; }
.sites-table.bl-table thead th { height: 24px; font-size: 11px; padding: 0 4px; }
.sites-table.bl-table tbody td { height: 27.4px; padding: 0 4px; font-size: 10.5px; letter-spacing: -.15px; }
.bl-table .th-check, .bl-table .td-check { padding-left: 6px; }
.bl-src-cell { gap: 6px; }
.src-favicon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 4px; background: var(--primary-20); color: var(--text-disabled-4); }
.src-favicon .icon { width: 10px; height: 10px; }
.src-favicon-sm { flex-basis: 16px; width: 16px; height: 16px; }
.src-favicon-sm .icon { width: 9px; height: 9px; }
.src-favicon-xs { flex-basis: 14px; width: 14px; height: 14px; border-radius: 3px; }
.src-favicon-xs .icon { width: 8px; height: 8px; }
.src-favicon-lg { flex-basis: 40px; width: 40px; height: 40px; border-radius: 7px; }
.src-favicon-lg .icon { width: 20px; height: 20px; }
.bl-table .table-link { font-size: 10.5px; letter-spacing: -.25px; }
.bl-target-cell { gap: 6px; }
.bl-target-cell .flag { width: 14px; height: 10px; }
.bl-table .td-anchor { color: var(--text-2); }
.bl-table .td-price { color: var(--text-2); font-weight: 500; }
.type-pill { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px 0 5px; border-radius: 9px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.type-pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.type-guest { background: var(--tint-success); color: var(--text-success-2); } .type-guest .type-pill-dot { background: var(--success-3); }
.type-niche { background: var(--tint-info); color: var(--text-link-6); } .type-niche .type-pill-dot { background: var(--primary-3); }
.type-sidebar { background: var(--tint-info); color: var(--text-link-6); } .type-sidebar .type-pill-dot { background: var(--primary-3); }
.type-banner { background: var(--tint-purple); color: var(--text-purple-2); } .type-banner .type-pill-dot { background: var(--purple); }
.type-homepage { background: var(--tint-purple); color: var(--text-purple-2); } .type-homepage .type-pill-dot { background: var(--purple); }
.follow-do { background: var(--tint-success); color: var(--text-success-2); } .follow-do .type-pill-dot { background: var(--success-3); }
.follow-no { background: var(--tint-danger); color: var(--text-danger); } .follow-no .type-pill-dot { background: var(--danger); }
.bl-table .status-pill { height: 18px; padding: 0 5px 0 4px; font-size: 10px; gap: 3px; letter-spacing: -.1px; }
.bl-table .status-pill-dot { width: 5px; height: 5px; }
.bl-table .td-bl-actions { line-height: 0; }
.bl-row-actions { display: inline-flex; align-items: center; gap: 5px; }
.bl-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 1px solid var(--border-default-5); border-radius: 4px; background: var(--bg-surface); color: var(--text-link); cursor: pointer; text-decoration: none; }
.bl-action-btn .icon { width: 11px; height: 11px; }
.bl-action-btn:hover { background: var(--bg-hover); border-color: var(--border-primary-2); }
.bl-action-btn.is-copied { color: var(--text-success); }
.bl-action-more { margin-left: 4px; color: var(--text-2); }
.bl-table tbody tr.is-selected-row td { background: var(--bg-subtle-8); }
.bl-table-footer { height: 44px; padding: 0 0 0 0; }
.bl-table-footer .seo-showing { font-size: 11px; }
.bl-pagination { gap: 4px; }
.bl-pagination .page-btn { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.bl-pagination .page-prev, .bl-pagination .page-next { width: 24px; }
.bl-pagination .page-btn .icon { width: 11px; height: 11px; }
.page-ellipsis { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 11px; color: var(--muted); }
.bl-table-footer .pagination-label { font-size: 11px; }
.btn-rpp-bl { width: 68px; height: 26px; margin-left: 12px; padding: 0 8px 0 12px; border-radius: 6px; font-size: 11px; }

.bl-bottom { display: grid; grid-template-columns: 300fr 255fr 255fr 219fr; gap: 10px; }
.bl-bottom > * { min-width: 0; }
.bl-bottom-card { height: 171px; padding: 8px 10px 6px; }
.bl-bottom-header { height: 16px; margin-bottom: 8px; }
.bl-bottom-header .card-title { font-size: 12.5px; }
.bl-card-icon { width: 16px; height: 16px; margin-right: 7px; }
.bl-card-icon .icon { width: 10px; height: 10px; }
.card-icon-amber { background: var(--tint-warning-2); color: var(--text-warning-5); }
.card-icon-blue { background: var(--tint-info); color: var(--text-link); }
.bl-list-row { display: flex; align-items: center; gap: 6px; height: 25.3px; }
.bl-list-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; }
.bl-list-icon .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.bl-list-icon-red { color: var(--text-danger-5); }
.bl-list-icon-amber { color: var(--text-warning-5); }
.bl-list-icon-green { color: var(--text-success); }
.bl-list-icon-solid { width: 16px; height: 16px; color: #fff; }
.bl-list-icon-solid .icon { width: 9px; height: 9px; stroke-width: 3; }
.bl-list-icon-solid.bl-list-icon-green { background: var(--success); }
.bl-list-icon-solid.bl-list-icon-red { background: var(--danger); }
.bl-list-text { flex: 1 1 auto; min-width: 0; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-list-text .table-link { font-size: 10px; letter-spacing: -.3px; }
.bl-arrow { color: var(--text-muted); margin: 0 1px; }
.bl-list-meta { flex: 0 0 auto; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.bl-list-in { width: 66px; }
.bl-list-cost { flex: 0 0 auto; width: 30px; text-align: right; font-size: 10.5px; font-weight: 600; color: var(--text); }
.bl-activity-row { height: 28.5px; }
.bl-activity-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 12px; }
.bl-activity-title { font-size: 10px; letter-spacing: -.2px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-activity-title.is-danger { color: var(--text-danger); }
.bl-activity-sub { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* rail */
.bl-rail { padding: 10px 14px 18px; }
.bl-rail-titlebar { display: flex; align-items: center; height: 24px; }
.bl-rail-titlebar .card-title { font-size: 13px; }
.bl-rail-head { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.bl-rail-title { min-width: 0; flex: 1 1 auto; }
.bl-rail-domain { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: -.3px; line-height: 16px; color: var(--text); white-space: nowrap; }
.bl-rail-domain a:first-child { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.bl-rail-domain .ext-link { color: var(--text-link); }
.bl-rail-domain .ext-link .icon { width: 12px; height: 12px; }
.bl-rail-live { margin-left: auto; height: 18px; font-size: 10px; padding: 0 6px 0 4px; }
.bl-rail-url { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-link-4); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-rail-url:hover { text-decoration: underline; }
.bl-rail-added { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.bl-rail-tabs { margin-top: 10px; height: 26px; }
.bl-rail-tabs .rail-tab { font-size: 11px; }
.bl-rail-tabs .rail-tab:first-child { padding-left: 8px; padding-right: 8px; }
.bl-rail-tabs .rail-tab:last-child { padding-right: 4px; }
.bl-rail-kv { margin-top: 4px; }
.bl-rail-row { align-items: center; min-height: 23.5px; padding: 2px 0; border-bottom: 1px solid var(--border-soft); }
.bl-rail-row:last-child { border-bottom: 0; }
.bl-rail-row dt { flex: 0 0 78px; font-size: 10.5px; font-weight: 500; color: var(--text-tertiary); line-height: 14px; white-space: nowrap; }
.bl-rail-row dd { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 10.5px; color: var(--text-2); line-height: 14px; white-space: nowrap; overflow: hidden; }
.bl-rail-row dd > span:first-child { flex: 0 0 auto; }
.bl-rail-row dd .bl-rail-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bl-rail-row:last-child dd { white-space: normal; line-height: 13px; }
.bl-rail-row:last-child dd > span:first-child { flex: 1 1 auto; white-space: normal; }
.bl-rail-link { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 10.5px; letter-spacing: -.25px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-rail-note { color: var(--muted); }
.bl-rail-row dd strong { font-weight: 700; color: var(--text); }
.bl-rail-row .type-pill { height: 17px; font-size: 10px; }
.bl-rail-row .status-pill { height: 17px; padding: 0 7px 0 6px; font-size: 10px; gap: 4px; }
.bl-rail-row .status-pill-dot { width: 6px; height: 6px; }
.bl-vendor { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.bl-rail-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.bl-rail-buttons-3 { grid-template-columns: 68px 46px 1fr; gap: 6px; margin-top: 8px; }
.btn-bl-rail { height: 28px; padding: 0 5px; gap: 5px; border-radius: 6px; font-size: 10px; letter-spacing: -.2px; color: var(--text-link-2); }
.btn-bl-rail .btn-icon { width: 12px; height: 12px; }
.btn-bl-rail:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-2); }
.btn-danger-outline { background: var(--bg-surface); border-color: var(--border-danger); color: var(--text-danger); }
.btn-danger-outline:hover { background: var(--tint-danger); border-color: var(--border-danger-2); }
.btn-bl-lost { width: 100%; height: 28px; margin-top: 10px; gap: 8px; border-radius: 6px; font-size: 11px; }
.btn-bl-lost .btn-icon { width: 13px; height: 13px; }

/* SEO pages — laptop widths (20/21 keep their rails; tables scroll inside the card) */
@media (max-width: 1440px) {
  .ps-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .bl-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .sites-table.ps-table, .sites-table.bl-table { min-width: 900px; }
  .ps-actions { position: static; margin-top: 6px; flex-wrap: wrap; }
  .seo-heading-ps { display: flex; }
  .seo-heading-ps .page-subtitle, .seo-heading-bl .page-subtitle { white-space: normal; }
}
@media (max-width: 1366px) {
  .ps-layout, .bl-layout { grid-template-columns: 1fr; row-gap: 12px; }
  .seo-rail { position: static; }
  .ps-kpis, .bl-kpis { grid-template-columns: repeat(4, 1fr); }
  .ps-row-charts { grid-template-columns: 1fr 1fr; }
  .bl-analytics { grid-template-columns: 1fr 1fr; }
  .bl-bottom { grid-template-columns: 1fr 1fr; }
  .bl-filter-bar, .ps-filter-bar { flex-wrap: wrap; }
  .bl-tabs-row { flex-wrap: wrap; height: auto; gap: 8px; }
}
@media (max-width: 1400px) {
  .ps-row-charts { grid-template-columns: 1fr; }
  .ps-cwv-card { height: auto; }
}

/* ==========================================================================
   FINANCE — batch 06 (design-reference/22–28)
   Shared finance building blocks first (heading + period controls, KPI card,
   chart cards, list tabs, dense table, bottom cards, right rail), then
   page-specific modifiers. Everything inherits the approved shell/tokens.
   ========================================================================== */
.page-fin { padding-bottom: 14px; }
.fin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 3px 0 0 3px; }
.fin-heading-main { min-width: 0; }
.breadcrumb-fin { font-size: 12.5px; }
.page-title-fin { margin-top: 2px; font-size: 24px; line-height: 29px; letter-spacing: -.6px; }
.fin-heading .page-subtitle { margin-top: 1px; font-size: 12.5px; line-height: 16px; white-space: nowrap; }
.fin-actions { align-items: center; gap: 10px; margin-top: 6px; }
.fin-period-group { display: flex; align-items: center; gap: 10px; }
.control-date-fin { width: auto; height: 32px; padding: 0 11px 0 13px; font-size: 12.5px; font-weight: 600; }
.control-date-fin .control-icon { width: 14px; height: 14px; margin-right: 9px; }
.control-date-fin .control-chevron { margin-left: 14px; }
.control-date-next { width: 30px; height: 32px; padding: 0; justify-content: center; margin-left: -4px; }
.control-icon-next { width: 13px; height: 13px; stroke-width: 2.2; color: var(--text-secondary-2); }
.period-tabs { display: inline-flex; align-items: stretch; height: 32px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); overflow: hidden; box-shadow: var(--shadow-card); }
.period-tab { display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-right: 1px solid var(--border-subtle); background: transparent; color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.period-tab:last-child { border-right: 0; }
.period-tab:hover { background: var(--bg-subtle-7); }
.period-tab.is-active, .period-tab.is-active:hover { background: var(--primary-2); color: #fff; }
.period-tab:focus-visible { outline: 2px solid rgba(59, 130, 246, .5); outline-offset: -2px; }
.fin-actions-export { display: flex; align-items: center; gap: 10px; margin-left: 124px; }
.split-btn-fin .btn { height: 32px; font-size: 12px; }
.split-btn-fin .split-btn-main { padding: 0 12px; gap: 8px; }
.split-btn-fin .split-btn-main .btn-icon { width: 14px; height: 14px; fill: none; color: var(--text-link); }
.split-btn-fin .split-btn-toggle { width: 33px; border-left: 0 !important; }
.split-btn-fin .split-btn-toggle .btn-icon { width: 12px; height: 12px; color: var(--text-link); }
.btn-fin-primary { height: 32px; padding: 0 14px 0 13px; gap: 8px; border-radius: 8px 0 0 8px; font-size: 12.5px; font-weight: 600; }
.btn-fin-primary .btn-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.split-btn-green .split-btn-toggle { border-left: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 0 8px 8px 0 !important; width: 32px; }
.split-btn-green .split-btn-toggle .btn-icon { color: #fff; }
.kpi-trend-blue { background: var(--tint-info); color: var(--text-link-6); }
.kpi-trend-amber { background: var(--tint-warning); color: var(--text-warning); }
.num-blue { color: var(--text-link); }

/* layout with right rail */
.fin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 216px; column-gap: 11px; align-items: start; }
.fin-layout.rail-closed { grid-template-columns: minmax(0, 1fr); }
.fin-main { min-width: 0; padding-top: 8px; }
.fin-rail { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin-top: -4px; }
.fin-rail[hidden] { display: none; }

/* KPI cards (label-first, icon left) */
.fin-kpis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 11px; }
.fin-kpis > * { min-width: 0; }
.fin-kpi-card { display: flex; align-items: center; gap: 9px; height: 106px; padding: 0 2px 0 11px; }
.fin-kpi-icon { flex-basis: 38px; width: 38px; height: 38px; margin: 0; }
.fin-kpi-icon > .icon { width: 18px; height: 18px; }
.fin-kpi-body { min-width: 0; }
.fin-kpi-label { font-size: 10.5px; font-weight: 500; line-height: 14px; letter-spacing: -.3px; color: var(--text-tertiary-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-kpi-value { margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 24px; letter-spacing: -.5px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-kpi-trend { display: flex; align-items: center; margin-top: 6px; }
.fin-kpi-trend .kpi-trend { height: 16px; font-size: 10.5px; }
.fin-kpi-sub { margin-top: 4px; font-size: 10.5px; line-height: 13px; letter-spacing: -.1px; color: var(--text-3); white-space: nowrap; }

/* chart cards */
.fin-row { display: grid; gap: 10px; margin-bottom: 10px; }
.fin-row > * { min-width: 0; }
.fin-row-charts-overview { grid-template-columns: 480fr 302fr 303fr; }
.fin-chart-card { height: 180px; padding: 8px 12px 8px; }
.fin-card-header { height: 24px; }
.fin-card-header .card-title { font-size: 13.5px; }
.control-range-fin { height: 24px; width: auto; padding: 0 8px 0 10px; font-size: 11px; font-weight: 500; color: var(--text-2); }
.control-range-fin .control-chevron { width: 11px; height: 11px; margin-left: 8px; }
.chart-legend-fin { height: 16px; margin: 6px 0 2px; gap: 16px; font-size: 11px; }
.chart-legend-fin .legend-dot { width: 8px; height: 8px; }
.chart-area-fin-trend { height: 122px; }
.fin-donut-body { display: flex; align-items: center; margin-top: 10px; }
.fin-donut { flex: 0 0 106px; width: 106px; height: 106px; margin-left: 0; }
.fin-donut canvas { width: 106px !important; height: 106px !important; }
.fin-donut-value { font-size: 15px; line-height: 18px; letter-spacing: -.4px; }
.fin-donut-label { margin-top: 1px; font-size: 10px; }
.fin-donut-legend { flex: 1 1 auto; min-width: 0; margin-left: 10px; }
.fin-donut-legend li { display: flex; align-items: center; gap: 5px; height: 21.5px; font-size: 10.5px; letter-spacing: -.15px; color: var(--text-2); white-space: nowrap; }
.fin-donut-legend .legend-dot { width: 8px; height: 8px; }
.fin-legend-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-legend-pct { width: 34px; text-align: right; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fin-legend-value { width: 42px; text-align: right; font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* list tabs + dense table */
.fin-table-card { padding: 8px 12px 0; margin-bottom: 11px; }
.fin-tabs-row { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 8px; }
.fin-tabs { display: flex; align-items: stretch; height: 30px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.fin-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; background: transparent; color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.fin-tab:first-child { padding-left: 6px; }
.fin-tab:hover { color: var(--text); }
.fin-tab.is-active { color: var(--text-link); font-weight: 600; }
.fin-tab.is-active::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.fin-tab:first-child.is-active::after { left: 0; }
.fin-tab-icon { width: 14px; height: 14px; color: var(--text-secondary-8); }
.fin-tab.is-active .fin-tab-icon { color: var(--text-link); }
.fin-tab-dot { display: inline-flex; align-items: center; justify-content: center; width: 8px; height: 8px; border-radius: 50%; }
.fin-tab-dot .icon { width: 6px; height: 6px; stroke-width: 3.5; color: #fff; }
.fin-tabs-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.fin-search { flex: 0 0 218px; width: 218px; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--bg-subtle); }
.fin-search input { font-size: 11.5px; }
.fin-search .filter-search-icon { width: 14px; height: 14px; }
.btn-fin-tool { height: 30px; padding: 0 12px; gap: 7px; border-radius: 7px; font-size: 11.5px; color: var(--text-link-2); }
.btn-fin-tool .btn-icon { width: 13px; height: 13px; }
.btn-fin-tool:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-2); }
.btn-fin-tool-dark { color: var(--text-2); }
.btn-fin-tool-dark:hover { color: var(--text); background: var(--bg-subtle); border-color: var(--border-strong); }
.btn-fin-tool-icon { width: 32px; padding: 0; }
.sites-table.fin-table thead th { height: 28px; font-size: 11.5px; font-weight: 500; color: var(--text-secondary-6); padding: 0 6px; }
.sites-table.fin-table tbody td { height: 26px; padding: 0 6px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fin-table .th-check, .fin-table .td-check { padding-left: 10px; }
.fin-table .td-check { line-height: 0; }
.fin-table .th-r, .fin-table .td-r { text-align: right; }
.fin-table .th-c, .fin-table .td-c { text-align: center; }
.fin-table .td-plain { color: var(--text-2); }
.sites-table.fin-table tbody td.num-green { color: var(--text-success); }
.sites-table.fin-table tbody td.num-red { color: var(--text-danger-3); }
.sites-table.fin-table tbody td.num-blue { color: var(--text-link); }
.fin-table .td-num-muted { color: var(--text-2); font-weight: 500; }
.fin-table .table-link { font-size: 11.5px; letter-spacing: -.1px; }
.fin-table .table-link-strong { font-weight: 500; }
.fin-site-cell { gap: 8px; }
.fin-table .geo-cell-lg { gap: 6px; }
.fin-table .geo-cell-lg .flag { width: 15px; height: 10.5px; }
.fin-table .td-geo .td-muted { color: var(--text-2) !important; }
.fin-table .th-sort-icon { width: 10px; height: 10px; }
.fin-pill { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-pill-green { background: var(--tint-success); color: var(--text-success); }
.fin-pill-red { background: var(--tint-danger); color: var(--text-danger-3); }
.fin-pill-amber { background: var(--tint-warning); color: var(--text-warning); }
.fin-pill-gray { background: var(--bg-muted-2); color: var(--text-muted); }
.fin-pill-sm { height: 18px; padding: 0 7px; font-size: 11px; }
.fin-pill-profit { min-width: 52px; }
.fin-table .td-actions { line-height: 0; }
.fin-row-actions { display: inline-flex; align-items: center; gap: 8px; }
.fin-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; padding: 0; border: 1px solid var(--border-default-5); border-radius: 5px; background: var(--bg-surface); color: var(--text-link); cursor: pointer; text-decoration: none; }
.fin-action-btn .icon { width: 12px; height: 12px; }
.fin-action-btn:hover { background: var(--bg-hover); border-color: var(--border-primary-2); }
.fin-action-more { color: var(--text-2); }
.fin-action-more:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.fin-table .row-more { display: inline-flex; }
.fin-table tbody tr.is-selected-row td { background: var(--bg-subtle-8); }
.fin-table-footer { height: 46px; padding: 0 2px; }
.fin-table-footer .seo-showing { font-size: 11.5px; }
.fin-pagination { gap: 4px; }
.fin-pagination .page-btn { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.fin-pagination .page-prev, .fin-pagination .page-next { width: 24px; }
.fin-pagination .page-btn .icon { width: 11px; height: 11px; }
.fin-table-footer .pagination-label { font-size: 11.5px; }
.btn-rpp-fin { width: 62px; height: 26px; margin-left: 12px; padding: 0 8px 0 12px; border-radius: 6px; font-size: 11.5px; }

/* bottom cards */
.fin-bottom { gap: 12px; margin-bottom: 0; }
.fin-bottom-overview { grid-template-columns: 265fr 266fr 273fr 265fr; }
.fin-bottom-card { height: 160px; padding: 8px 12px 6px; }
.fin-bottom-header { height: 20px; margin-bottom: 6px; }
.fin-bottom-header .card-title { font-size: 12.5px; }
.fin-bottom-header .view-all { font-size: 11px; }
.fin-rank-row { display: flex; align-items: center; gap: 8px; height: 25.5px; border-bottom: 1px solid var(--border-soft); }
.fin-rank-row:last-child { border-bottom: 0; }
.fin-rank-num { width: 14px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.fin-rank-row .rank-logo-sm { width: 20px; height: 20px; }
.fin-rank-link { flex: 1 1 auto; min-width: 0; font-size: 11.5px; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-rank-value { font-size: 11.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-feed-row { display: flex; align-items: center; gap: 9px; height: 32px; border-bottom: 1px solid var(--border-soft); }
.fin-feed-row:last-child { border-bottom: 0; }
.fin-feed-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; }
.fin-feed-icon .icon { width: 12px; height: 12px; stroke-width: 2; }
.fin-feed-icon-red { background: var(--tint-danger); color: var(--text-danger-2); }
.fin-feed-icon-green { background: var(--tint-success); color: var(--text-success); }
.fin-feed-icon-blue { background: var(--tint-info); color: var(--text-link); }
.fin-feed-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.fin-feed-icon-orange { background: var(--tint-warning-2); color: var(--text-orange); }
.fin-feed-icon-amber { background: var(--tint-warning); color: var(--text-warning-5); }
.fin-feed-icon-gray { background: var(--bg-muted-2); color: var(--text-tertiary); }
.fin-feed-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 13px; }
.fin-feed-title { font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-feed-sub { margin-top: 1px; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-feed-side { display: flex; flex-direction: column; align-items: flex-end; line-height: 13px; flex: 0 0 auto; }
.fin-feed-amount { font-size: 11.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-feed-date { margin-top: 1px; font-size: 10px; color: var(--muted); white-space: nowrap; }

/* right rail cards (overview) */
.fin-rail-card { padding: 11px 11px 11px; }
.fin-rail-title { font-size: 13px; font-weight: 700; letter-spacing: -.1px; color: var(--text); white-space: nowrap; }
.fin-rail-header { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.fin-rail-header .view-all { font-size: 11px; margin-left: 8px; }
.fin-completeness-body { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.fin-ring { flex: 0 0 62px; width: 62px; height: 62px; }
.fin-ring > span { width: 44px; height: 44px; font-size: 12.5px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.fin-completeness-text { min-width: 0; }
.fin-completeness-count { font-size: 18px; font-weight: 700; letter-spacing: -.4px; line-height: 22px; color: var(--text); }
.fin-completeness-caption { margin-top: 1px; font-size: 10.5px; letter-spacing: -.2px; line-height: 14px; color: var(--text-3); white-space: nowrap; }
.fin-completeness-caption-lg { font-size: 11px; line-height: 15px; white-space: normal; }
.fin-ok-pill { display: inline-flex; align-items: center; gap: 5px; height: 18px; margin-top: 6px; padding: 0 7px 0 5px; border-radius: 5px; background: var(--tint-success); color: var(--text-success); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.fin-ok-icon { width: 11px; height: 11px; stroke-width: 2.6; }
.btn-fin-rail-link { width: 100%; height: 30px; margin-top: 9px; gap: 8px; border-radius: 7px; font-size: 11.5px; color: var(--text-link-2); border-color: var(--border-primary); }
.btn-fin-rail-link:hover { color: var(--text-link-2); background: var(--bg-hover); border-color: var(--border-primary-3); }
.btn-fin-rail-link .btn-arrow-right { width: 12px; height: 12px; }
.fin-ok-line { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; font-weight: 500; color: var(--text-success); white-space: nowrap; }
.fin-pending-total { margin-top: 8px; font-size: 21px; font-weight: 700; letter-spacing: -.5px; line-height: 24px; color: var(--text); }
.fin-pending-caption { margin-top: 2px; font-size: 11px; color: var(--text-3); }
.fin-pending-list { margin-top: 6px; }
.fin-pending-row { display: flex; align-items: center; gap: 7px; height: 41px; border-bottom: 1px solid var(--border-soft); }
.fin-pending-row:last-child { border-bottom: 0; }
.fin-pending-logo { width: 24px; height: 24px; border-radius: 5px; }
.fin-pending-logo img { width: 20px; height: 14px; }
.fin-pending-logo .logo-mark { width: 18px; height: 16px; }
.fin-pending-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 13px; }
.fin-pending-name { font-size: 10.5px; letter-spacing: -.15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-pending-sub { margin-top: 2px; font-size: 9.5px; letter-spacing: -.1px; color: var(--muted); white-space: nowrap; }
.fin-pending-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.fin-pending-amount { font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-status-xs { height: 15px; padding: 0 5px; font-size: 9.5px; font-weight: 500; }
.fin-close-pill { height: 22px; padding: 0 9px 0 6px; font-size: 11px; font-weight: 600; gap: 5px; }
.fin-close-dot { width: 12px; height: 12px; }
.fin-close-dot .icon { width: 7px; height: 7px; }
.fin-close-list { margin-top: 10px; }
.fin-close-list li { display: flex; align-items: center; gap: 7px; height: 27px; font-size: 10.5px; letter-spacing: -.15px; color: var(--text-2); white-space: nowrap; }
.fin-close-check { flex: 0 0 15px; width: 15px; height: 15px; }
.fin-close-check .icon { width: 9px; height: 9px; }
.fin-close-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-close-value { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fin-close-tick { width: 14px; height: 14px; stroke-width: 2.6; color: var(--text-success); }
.btn-fin-close { width: 100%; height: 34px; margin-top: 10px; gap: 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.btn-fin-close .btn-icon { width: 13px; height: 13px; }

/* --- 23 Revenue & Commission Manager ------------------------------------ */
.fin-actions-primary { display: flex; align-items: center; margin-left: 18px; }
.fin-layout-revenue { grid-template-columns: minmax(0, 1fr) 240px; }
.fin-kpi-card-rev { height: 96px; gap: 6px; padding-left: 8px; }
.fin-kpi-card-rev .fin-kpi-icon { flex-basis: 31px; width: 31px; height: 31px; }
.fin-kpi-card-rev .fin-kpi-icon > .icon { width: 16px; height: 16px; }
.fin-kpi-card-rev .fin-kpi-label { font-size: 10px; letter-spacing: -.45px; }
.fin-kpi-sub-lg { margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.fin-row-charts-rev { grid-template-columns: 754fr 305fr; gap: 11px; }
.fin-chart-card-rev { height: 184px; padding: 8px 12px 6px; }
.chart-legend-fin-inline { margin-left: auto; margin-right: 12px; gap: 14px; font-size: 11px; }
.chart-legend-fin-inline .legend-dot { width: 8px; height: 8px; }
.fin-card-header .fin-range-after-legend { margin-left: 0; }
.chart-area-rev-trend { height: 140px; margin-top: 8px; }
.pinned-tooltip-rev { left: auto; right: 34px; top: 8px; width: 148px; padding: 7px 10px 8px; }
.pinned-tooltip-rev .pinned-tooltip-title { font-size: 11px; margin-bottom: 3px; }
.pinned-tooltip-rev .pinned-tooltip-row { height: 17px; gap: 6px; font-size: 10.5px; }
.pinned-tooltip-rev .pinned-tooltip-row strong { margin-left: auto; font-size: 10.5px; }
.pinned-tooltip-rev .legend-dot { width: 8px; height: 8px; }
.fin-donut-card-rev { height: 184px; }
.fin-donut-card-rev .fin-donut-lg { flex-basis: 112px; width: 112px; height: 112px; }
.fin-donut-card-rev .fin-donut-lg canvas { width: 112px !important; height: 112px !important; }
.fin-donut-body-rev { margin-top: 8px; }
.fin-donut-lg { flex-basis: 124px; width: 124px; height: 124px; }
.fin-donut-lg canvas { width: 124px !important; height: 124px !important; }
.fin-donut-legend-rev { margin-left: 10px; }
.fin-donut-legend-rev li { height: 22px; }
.fin-tab-icon-red { color: var(--text-danger-5); }
.fin-tab-icon-green { color: var(--text-success); }
.fin-tab-icon-blue { color: var(--text-link); }
.fin-search-rev { flex-basis: 150px; width: 150px; }
.fin-tabs-rev .fin-tab { padding: 0 7px; font-size: 11px; letter-spacing: -.1px; gap: 5px; }
.fin-tabs-rev .fin-tab:first-child { padding-left: 4px; }
.fin-tabs-actions-rev { gap: 8px; }
.fin-tabs-actions-rev .btn-fin-tool { padding: 0 9px; }
.fin-tabs-actions-rev .btn-fin-tool-icon { width: 28px; padding: 0; }
.sites-table.fin-rev-table tbody td { height: 28px; }
.sites-table.fin-rev-table thead th { font-size: 10.5px; letter-spacing: -.2px; padding: 0 5px; }
.sites-table.fin-rev-table tbody td { padding: 0 5px; }
.fin-rev-table .th-check, .fin-rev-table .td-check { padding-left: 9px; }
.fin-status { height: 19px; padding: 0 7px 0 5px; gap: 4px; font-size: 10.5px; font-weight: 500; border-radius: 5px; }
.fin-status .status-pill-dot { width: 6px; height: 6px; }
.fin-status-ico { display: inline-flex; align-items: center; justify-content: center; width: 10px; height: 10px; border-radius: 50%; }
.fin-status-ico .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.fin-status-sm { height: 18px; padding: 0 8px 0 6px; font-size: 10.5px; font-weight: 500; gap: 5px; }
.fin-status-sm .status-pill-dot { width: 6px; height: 6px; }
.fin-bottom-rev { grid-template-columns: 254fr 274fr 253fr 250fr; gap: 11px; }
.fin-bottom-card-rev { height: 156px; padding: 8px 9px 6px 10px; }
.fin-rank-row-rev { height: 24.5px; gap: 6px; }
.fin-rank-row-rev .fin-rank-num { width: 12px; }
.fin-rank-row-rev .rank-logo-sm { width: 18px; height: 18px; }
.fin-rank-id { flex: 0 0 auto; width: 52px; font-size: 10.5px; letter-spacing: -.2px; white-space: nowrap; }
.fin-rank-id-wide { flex: 1 1 auto; width: auto; }
.fin-rank-text { flex: 1 1 auto; min-width: 0; font-size: 10.5px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-rank-geo { flex: 0 0 auto; gap: 4px; width: 34px; font-size: 10.5px; color: var(--text-2); }
.fin-rank-geo .flag { width: 14px; height: 10px; }
.btn-fin-add { height: 20px; padding: 0 8px; border-radius: 5px; font-size: 10.5px; font-weight: 500; color: var(--text-link-2); border-color: var(--border-primary); flex: 0 0 auto; }
.btn-fin-add:hover { color: var(--text-link-2); background: var(--bg-hover); }
.fin-rank-amount { flex: 0 0 auto; width: 46px; font-size: 11.5px; font-weight: 700; text-align: left; font-variant-numeric: tabular-nums; }
.fin-rank-meta { flex: 0 0 auto; width: 66px; text-align: right; font-size: 10px; color: var(--muted); white-space: nowrap; }
.fin-import-header { height: 18px; margin-bottom: 0; }
.fin-import-open { margin-left: auto; color: var(--text-link); }
.fin-import-open .icon { width: 13px; height: 13px; }
.fin-import-sub { margin-top: 2px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.fin-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; margin-top: 8px; border: 1.5px dashed var(--border-primary-14); border-radius: 8px; background: var(--bg-subtle-3); cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.fin-dropzone:hover, .fin-dropzone:focus-visible { border-color: var(--border-primary-3); background: var(--bg-hover); outline: none; }
.fin-dropzone-icon { width: 15px; height: 15px; color: var(--text-link); margin-bottom: 2px; }
.fin-dropzone-title { font-size: 10.5px; font-weight: 600; color: var(--text-link); }
.fin-dropzone-sub { font-size: 10px; color: var(--muted); }
.fin-import-links { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.fin-import-link { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; color: var(--text-link); text-decoration: none; white-space: nowrap; }
.fin-import-link:hover { text-decoration: underline; }
.fin-import-link .icon { width: 12px; height: 12px; }

/* detail rails (Revenue / Expense / Profitability / Transaction) */
.fin-detail-rail { display: block; padding: 11px 12px 12px; margin-top: -4px; }
.fin-detail-head { display: flex; align-items: flex-start; gap: 10px; }
.fin-detail-logo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 7px; }
.fin-detail-logo img { width: 32px; height: 20px; }
.fin-detail-logo .logo-mark { width: 30px; height: 28px; }
.fin-detail-title { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.fin-detail-name { font-size: 15px; font-weight: 700; letter-spacing: -.3px; line-height: 18px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-detail-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.fin-detail-id { font-size: 11.5px; color: var(--text-3); }
.fin-detail-head .rail-close { margin-left: 0; margin-top: -2px; }
.fin-rail-tabs { margin-top: 10px; height: 28px; justify-content: space-between; gap: 0; }
.fin-rail-tabs .rail-tab { padding: 0 2px; font-size: 10.5px; letter-spacing: -.2px; }
.fin-rail-tabs .rail-tab:first-child { padding: 0 5px; }
.fin-detail-kv { margin-top: 2px; }
.fin-detail-row { align-items: center; min-height: 28px; padding: 2px 0; border-bottom: 1px solid var(--border-soft); }
.fin-detail-row:last-child { border-bottom: 0; }
.fin-detail-row dt { flex: 0 0 88px; font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 14px; white-space: nowrap; }
.fin-detail-row dd { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: 11px; font-weight: 500; color: var(--text-2); line-height: 14px; white-space: nowrap; }
.fin-detail-row dd > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.fin-detail-row .table-link { font-size: 11px; }
.fin-detail-row-tall { min-height: 38px; }
.fin-detail-geo { gap: 7px; }
.fin-detail-geo .flag { width: 16px; height: 11px; }
.fin-manager { display: inline-flex; align-items: center; gap: 8px; }
.fin-manager-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-info); color: var(--text-link); flex: 0 0 auto; }
.fin-manager-icon .icon { width: 12px; height: 12px; }
.fin-manager-text { display: flex; flex-direction: column; line-height: 13px; }
.fin-manager-handle { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.fin-detail-viewall { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.fin-detail-viewall:hover { text-decoration: underline; }
.fin-detail-section { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.fin-detail-section-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.fin-detail-section-row .fin-detail-section { margin-top: 0; }
.fin-detail-action { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.fin-detail-action:hover { text-decoration: underline; }
.fin-detail-action .icon { width: 12px; height: 12px; }
.fin-month-table { margin-top: 6px; border: 1px solid var(--border-subtle); border-radius: 6px; overflow: hidden; }
.fin-month-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--border-subtle-2); }
.fin-month-row:last-child { border-bottom: 0; }
.fin-month-label { flex: 0 0 50%; display: flex; align-items: center; min-height: 27px; padding: 0 8px; background: var(--bg-subtle); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.fin-month-value { flex: 1 1 auto; display: flex; align-items: center; min-height: 27px; padding: 0 8px; font-size: 11px; font-weight: 500; color: var(--text-2); }
.fin-month-value strong { font-weight: 700; color: var(--text); }
.fin-month-strong { font-weight: 600; }
.fin-month-value .kpi-trend { height: 17px; font-size: 10.5px; }
.fin-note-box { margin-top: 6px; padding: 8px 9px; border: 1px solid var(--border-subtle); border-radius: 6px; font-size: 11px; line-height: 15px; color: var(--text-2); }
.fin-attachments { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.fin-attachment { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px; border: 1px solid var(--border-subtle); border-radius: 6px; }
.fin-attachment-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 6px; background: var(--tint-danger); color: var(--text-danger-2); }
.fin-attachment-icon .icon { width: 13px; height: 13px; }
.fin-attachment-icon-blue { background: var(--tint-info); color: var(--text-link); }
.fin-attachment-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 13px; }
.fin-attachment-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-attachment-meta { margin-top: 2px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.fin-attachment-dl { display: inline-flex; color: var(--text-link); flex: 0 0 auto; }
.fin-attachment-dl .icon { width: 14px; height: 14px; }
.fin-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 8px; margin-top: 7px; }
.fin-qa-btn { height: 34px; padding: 0 8px; justify-content: flex-start; gap: 7px; border-radius: 7px; font-size: 11px; font-weight: 500; color: var(--text-link-2); border-color: var(--border-primary); }
.fin-qa-btn .btn-icon { width: 13px; height: 13px; }
.fin-qa-btn:hover { color: var(--text-link-2); background: var(--bg-hover); }

/* --- 24 Expenses & Cost Manager ----------------------------------------- */
.fin-layout-expenses { grid-template-columns: minmax(0, 1fr) 240px; }
.btn-fin-primary-wide { padding: 0 20px 0 18px; }
.fin-kpi-sub-solo { margin-top: 12px; font-size: 11px; color: var(--text-3); }
.fin-row-charts-exp { grid-template-columns: 430fr 336fr 270fr; gap: 10px; }
.fin-chart-card-exp { height: 186px; padding: 8px 12px 6px; }
.chart-area-exp-trend { height: 118px; margin-top: 6px; }
.chart-legend-exp { height: 16px; margin: 6px 0 0; gap: 10px; font-size: 10px; }
.fin-donut-body-exp { margin-top: 6px; }
.fin-donut-body-exp .fin-donut { flex-basis: 98px; width: 98px; height: 98px; }
.fin-donut-body-exp .fin-donut canvas { width: 98px !important; height: 98px !important; }
.fin-donut-body-exp .fin-donut-lg { flex-basis: 110px; width: 110px; height: 110px; }
.fin-donut-body-exp .fin-donut-lg canvas { width: 110px !important; height: 110px !important; }
.fin-donut-body-exp .fin-donut-value { font-size: 14px; }
.fin-donut-legend-cat { margin-left: 8px; }
.fin-donut-legend-cat li { height: 17.5px; font-size: 10px; letter-spacing: -.3px; gap: 4px; }
.fin-donut-legend-cat .legend-dot { width: 7px; height: 7px; }
.fin-donut-legend-cat .fin-legend-value { width: 40px; font-size: 10.5px; }
.fin-donut-legend-cat .fin-legend-pct { width: 32px; }
.fin-donut-legend-status { margin-left: 8px; }
.fin-donut-legend-status li { height: 26px; font-size: 10.5px; gap: 4px; }
.fin-donut-legend-status .fin-legend-pct { width: 32px; }
.fin-donut-legend-status .fin-legend-value { width: 40px; }
.fin-tabs-row-exp { height: 32px; }
.fin-tabs-chips { align-items: center; gap: 2px; }
.fin-chip-tab { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 5px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-family: var(--font); font-size: 10.5px; letter-spacing: -.2px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.fin-chip-tab:hover { background: var(--bg-subtle-7); color: var(--text); }
.fin-chip-tab.is-active, .fin-chip-tab.is-active:hover { background: var(--primary-2); color: #fff; font-weight: 600; padding: 0 9px; }
.fin-chip-tab .fin-tab-icon { width: 13px; height: 13px; color: inherit; }
.fin-chip-tab-more { color: var(--text-link); }
.fin-chip-tab-more .fin-tab-icon { width: 12px; height: 12px; }
.fin-search-exp { flex-basis: 122px; width: 122px; padding: 0 8px; gap: 6px; }
.fin-tabs-row-exp .btn-fin-tool { padding: 0 8px; gap: 6px; }
.sites-table.fin-exp-table thead th { font-size: 10.5px; letter-spacing: -.2px; padding: 0 4px; }
.sites-table.fin-exp-table tbody td { height: 27.5px; padding: 0 4px; font-size: 11px; letter-spacing: -.1px; }
.fin-exp-table .fin-icon-cell { gap: 6px; }
.fin-exp-table .table-link { font-size: 11px; letter-spacing: -.15px; }
.fin-plain-link { color: var(--text-2); text-decoration: none; }
.fin-plain-link:hover { color: var(--text-link); }
.fin-icon-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; color: var(--text-2); }
.fin-icon-cell > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-tile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 4px; }
.fin-tile .icon { width: 11px; height: 11px; stroke-width: 2; }
.fin-tile-xs { flex-basis: 16px; width: 16px; height: 16px; border-radius: 4px; }
.fin-tile-xs .icon { width: 10px; height: 10px; }
.fin-tile-blue { background: var(--tint-info); color: var(--text-link); }
.fin-tile-green { background: var(--tint-success); color: var(--text-success); }
.fin-tile-red { background: var(--tint-danger); color: var(--text-danger-2); }
.fin-tile-amber { background: var(--tint-warning); color: var(--text-warning-5); }
.fin-tile-orange { background: var(--tint-warning-2); color: var(--text-orange); }
.fin-tile-purple { background: var(--tint-purple); color: var(--text-purple); }
.fin-tile-navy { background: var(--bg-muted-7); color: var(--text-secondary-3); }
.fin-tile-gray { background: var(--bg-muted-2); color: var(--text-tertiary); }
.fin-tile-plain { background: transparent; color: var(--text-link); }
.fin-tile-plain.fin-tile-purple { color: var(--text-purple); }
.fin-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 4px; overflow: hidden; }
.fin-mark .provider-mark, .fin-mark .service-mark { width: 18px; height: 18px; display: block; }
.fin-mark-sm { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 5px; overflow: hidden; }
.fin-mark-sm .provider-mark, .fin-mark-sm .service-mark { width: 20px; height: 20px; display: block; }
.fin-mark-sm.fin-tile .icon { width: 11px; height: 11px; }
.fin-status-ico-solid { width: 11px; height: 11px; color: #fff; }
.fin-status-ico-solid .icon { width: 7px; height: 7px; stroke-width: 3.2; }
.status-live .fin-status-ico-solid { background: var(--success); }
.status-red .fin-status-ico-solid { background: var(--danger); }
.status-inwork .fin-status-ico-solid { background: var(--warning); }
.status-blue .fin-status-ico-solid { background: var(--primary-3); }
.status-gray .fin-status-ico-solid { background: var(--bg-track-5); }
.fin-pill-recurring { gap: 4px; font-weight: 500; color: var(--text-2); background: var(--bg-muted-2); }
.fin-pill-recurring .icon { width: 10px; height: 10px; color: var(--text-success); }
.fin-bottom-exp { grid-template-columns: 270fr 265fr 260fr 225fr; gap: 10px; }
.fin-bottom-card-exp { height: 156px; padding: 8px 9px 6px; }
.fin-rank-row-exp { height: 24.5px; gap: 7px; }
.fin-exp-date { flex: 0 0 auto; width: 62px; font-size: 10px; letter-spacing: -.2px; color: var(--text-3); white-space: nowrap; }
.fin-rank-row-exp .fin-rank-text { font-size: 10px; letter-spacing: -.3px; }
.fin-rank-row-exp .fin-tile-xs { flex-basis: 15px; width: 15px; height: 15px; }
.fin-rank-row-exp .fin-rank-value { font-size: 11px; }
.fin-rank-meta-sm { width: 62px; font-size: 10px; }
.fin-att-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; }
.fin-att-icon .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.fin-att-icon-red { color: var(--text-danger-5); background: var(--tint-danger); }
.fin-att-icon-amber { color: var(--text-warning-5); background: var(--tint-warning); }
.fin-att-icon-gray { color: var(--text-muted-2); background: var(--bg-muted-2); }
/* expense rail */
.fin-detail-titlebar { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.fin-detail-titlebar-text { font-size: 14px; font-weight: 700; color: var(--text); }
.fin-detail-head-exp { margin-top: 12px; align-items: center; gap: 8px; }
.fin-detail-rail-exp { padding-left: 10px; padding-right: 10px; }
.fin-detail-rail-exp .fin-detail-row dt { flex-basis: 78px; }
.fin-detail-rail-exp .fin-detail-row dd { font-size: 10.5px; letter-spacing: -.15px; }
.fin-detail-rail-exp .fin-rail-tabs .rail-tab { font-size: 10px; letter-spacing: -.3px; }
.fin-detail-rail-exp .fin-detail-name-row .fin-status { height: 17px; padding: 0 5px 0 4px; font-size: 10px; }
.fin-detail-circle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-danger); color: var(--text-danger-2); }
.fin-detail-circle .icon { width: 20px; height: 20px; stroke-width: 2; }
.fin-detail-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fin-detail-name-sm { font-size: 11.5px; letter-spacing: -.25px; line-height: 16px; }
.fin-detail-head-exp .fin-detail-id { display: block; margin-top: 4px; font-size: 11px; }
.ext-link-blue { color: var(--text-link); }
.ext-link-blue .icon { width: 12px; height: 12px; }
.fin-tags { display: inline-flex; align-items: center; gap: 6px; }
.fin-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 5px; background: var(--tint-info); color: var(--text-link-6); font-size: 11px; font-weight: 500; }
.fin-tag-add { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; padding: 0; border: 1px solid var(--border-default-5); border-radius: 5px; background: var(--bg-surface); color: var(--text-link); cursor: pointer; }
.fin-tag-add .icon { width: 11px; height: 11px; stroke-width: 2.4; }
.fin-tag-add:hover { background: var(--bg-hover); border-color: var(--border-primary-2); }
.fin-detail-notes { margin-top: 5px; font-size: 11px; line-height: 15px; color: var(--text-2); }
.fin-related-list { margin-top: 6px; border: 1px solid var(--border-subtle); border-radius: 6px; overflow: hidden; }
.fin-related-row { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-bottom: 1px solid var(--border-subtle-2); }
.fin-related-row:last-child { border-bottom: 0; }
.fin-related-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 4px; background: var(--tint-info); color: var(--text-link); }
.fin-related-icon .icon { width: 11px; height: 11px; }
.fin-related-label { flex: 1 1 auto; min-width: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-related-action { font-size: 11px; font-weight: 500; color: var(--text-link); text-decoration: none; white-space: nowrap; }
.fin-related-action:hover { text-decoration: underline; }
.fin-qa-grid-exp { margin-top: 16px; gap: 8px; }
.fin-qa-btn-center { justify-content: center; }
.fin-qa-btn-danger { color: var(--text-danger); border-color: var(--border-danger); }
.fin-qa-btn-danger:hover { color: var(--text-danger); background: var(--tint-danger); border-color: var(--border-danger-2); }
.fin-qa-btn-more { width: 100%; color: var(--text-2); border-color: var(--border-default); }
.fin-qa-btn-more:hover { color: var(--text); background: var(--bg-subtle); border-color: var(--border-strong); }
.fin-qa-btn-more .btn-chevron { margin-left: 4px; }

/* ==========================================================================
   REPORTS / GLOBAL SEARCH / ACCESS / INTEGRATIONS — batch 07 (design-reference/29–32)
   Inherits the finance heading + period tabs, fin KPI cards, dense tables,
   SEO rail pattern and the approved shell tokens. Page prefixes: .page-rep,
   .gs- (global search overlay), .page-vault, .page-int.
   ========================================================================== */
/* --- 29 Reports & Analytics Center ------------------------------------- */
.page-rep { padding-bottom: 18px; }
.page-content.page-fin.page-rep { padding-left: 12px; padding-right: 12px; }
.rep-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding-top: 4px; }
.rep-heading .fin-heading-main { grid-row: 1; grid-column: 1 / -1; }
.rep-heading .rep-actions { grid-row: 1; grid-column: 2; position: relative; z-index: 1; }
.page-title-rep { font-size: 27px; line-height: 32px; }
.rep-heading .page-subtitle { font-size: 13px; }
.rep-actions { margin-top: 2px; gap: 12px; }
.rep-period-group { gap: 15px; align-items: center; }
/* Reference: blue calendar + chevron inside a white rounded field. */
.control-date-rep { width: 154px; height: 34px; padding: 0 10px 0 12px; font-size: 12px; font-weight: 600; }
.control-date-rep .control-icon { width: 15px; height: 15px; margin-right: 7px; color: var(--text-link); }
.control-date-rep .control-chevron { margin-left: 8px; color: var(--text-link); }
/* Reference: the period buttons are separate rounded pills, not one segmented bar. */
.period-tabs-rep { height: 34px; gap: 4px; border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none; }
.period-tabs-rep .period-tab { padding: 0 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
.period-tabs-rep .period-tab:hover { background: var(--bg-subtle-7); }
.period-tabs-rep .period-tab.is-active, .period-tabs-rep .period-tab.is-active:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.split-btn-rep { margin-left: 12px; }
.btn-rep-primary { height: 34px; padding: 0 18px 0 16px; gap: 10px; }
.btn-rep-primary .btn-icon { width: 14px; height: 14px; }
.split-btn-rep .split-btn-toggle { height: 34px; width: 38px; }
.rep-cats { display: flex; width: 100%; height: 36px; margin: 14px 0 14px; }
.rep-cats .detail-tab { flex: 1 1 auto; padding: 0 9px; font-size: 11.5px; letter-spacing: -.1px; gap: 7px; }
.rep-cats .detail-tab + .detail-tab::before { top: 8px; bottom: 8px; }
.rep-cats .detail-tab-icon { width: 14px; height: 14px; }
.rep-cats .detail-tab.is-active::after { height: 2px; }

.rep-kpis { grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 13px; }
.rep-kpi-card { display: flex; align-items: flex-start; height: 98px; padding: 19px 0 0 15px; gap: 9px; }
.rep-kpi-icon { flex-basis: 32px; width: 32px; height: 32px; }
.rep-kpi-icon > .icon { width: 17px; height: 17px; }
.rep-kpi-label { font-size: 10.5px; letter-spacing: -.3px; }
.rep-kpi-value { margin-top: 1px; font-size: 20px; }
.rep-kpi-card .fin-kpi-trend { margin-top: 5px; }
.rep-kpi-card .fin-kpi-trend .kpi-trend { height: 16px; font-size: 10.5px; }
.rep-kpi-sub { margin-top: 3px; font-size: 11px; letter-spacing: -.1px; }
.rep-kpi-sub-only { margin-top: 8px; color: var(--text-tertiary-2); }
.kpi-icon-red.kpi-icon-outline { background: var(--tint-danger-3); color: var(--text-danger-4); }

.rep-row-charts { grid-template-columns: 496fr 445fr 359fr; gap: 12px; margin-bottom: 13px; }
.rep-chart-card { height: 225px; padding: 8px 14px 6px; }
.rep-card-header { height: 26px; }
.rep-card-header .card-title { font-size: 14px; }
.rep-card-header .control-range-fin { height: 26px; font-size: 11.5px; }
.rep-card-header .view-all { font-size: 12px; }
.chart-legend-rep { height: 18px; margin: 8px 0 4px; gap: 22px; font-size: 11.5px; }
.chart-legend-rep .legend-dot { width: 10px; height: 10px; }
.legend-square-rep { width: 10px; height: 10px; border-radius: 2px; }
.legend-line-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 10px; position: relative; }
.legend-line-dot::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--primary); }
.legend-line-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); position: relative; }
.chart-area-rep { height: 156px; }
.chart-area-rep-mixed { padding: 0 20px 0 22px; }
.chart-area-rep-mixed .chart-axis-side-left { left: 4px; }
.chart-area-rep-mixed .chart-axis-side-right { right: 2px; }
.rep-donut-body { display: flex; align-items: center; height: 172px; margin-top: 2px; }
.rep-donut { flex: 0 0 162px; width: 162px; height: 162px; margin-left: 2px; }
.rep-donut canvas { width: 162px !important; height: 162px !important; }
.rep-donut-value { font-size: 17px; line-height: 21px; letter-spacing: -.4px; }
.rep-donut-label { font-size: 10.5px; margin-top: 0; }
.rep-donut-legend { flex: 1 1 auto; margin-left: 16px; }
.rep-donut-legend li { display: flex; align-items: center; gap: 10px; height: 23px; font-size: 12px; color: var(--text-2); }
.rep-donut-legend .legend-dot { width: 10px; height: 10px; }
.rep-legend-name { flex: 1 1 auto; }
.rep-legend-pct { color: var(--text-3); }

.rep-row-mid { grid-template-columns: 496fr 445fr 359fr; gap: 12px; margin-bottom: 13px; }
.rep-table-card { height: 235px; padding: 8px 14px 6px; }
.rep-table { table-layout: fixed; margin-top: 6px; min-width: 408px; }
.rep-row-mid > :first-child .rep-table,
.rep-row-bottom > :first-child .rep-table { min-width: 458px; }
.rep-table th { height: 22px; font-size: 11.5px; font-weight: 500; padding: 0 8px; }
.rep-table td { height: 30px; padding: 0 8px; font-size: 12px; border-bottom: 1px solid var(--border-soft); overflow: hidden; text-overflow: ellipsis; }
.rep-table tbody tr:last-child td { border-bottom: 0; }
.rep-table .td-rank { font-weight: 600; color: var(--text); }
.rep-table .td-green { color: var(--text-success-3); font-weight: 500; }
.rep-site { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; max-width: 100%; }
.rep-site .site-logo-xs { width: 22px; height: 22px; }
.rep-site .table-link { overflow: hidden; text-overflow: ellipsis; }
.rep-table-geo .geo-cell-xl { gap: 9px; }
.rep-table-geo .geo-cell-xl .flag { width: 18px; height: 13px; }
.rep-insights-card { height: 235px; padding: 8px 14px 6px; }
.rep-insights { margin-top: 4px; }
.rep-insight { position: relative; display: flex; align-items: center; gap: 13px; height: 39px; }
.rep-insight + .rep-insight::before { content: ''; position: absolute; left: 46px; right: 0; top: 0; height: 1px; background: var(--border-subtle-2); }
.rep-insight-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 50%; }
.rep-insight-icon .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.rep-insight-green { background: var(--tint-success-5); color: var(--text-success); }
.rep-insight-blue { background: var(--bg-selected-15); color: var(--text-link); }
.rep-insight-amber { background: var(--tint-warning-5); color: var(--text-warning-4); }
.rep-insight-gray { background: var(--bg-muted-6); color: var(--text-tertiary); }
.rep-insight-text { display: flex; flex-direction: column; min-width: 0; line-height: 14px; }
.rep-insight-title { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-insight-sub { margin-top: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rep-row-bottom { grid-template-columns: 496fr 445fr 359fr; gap: 12px; margin-bottom: 0; }
.rep-bottom-card { height: 218px; }
.rep-table-sm td { height: 27.5px; font-size: 11px; padding: 0 5px; }
.rep-table-sm th { padding: 0 5px; font-size: 11px; }
.rep-table-sm .rep-site { gap: 6px; }
.rep-table-sm .table-link { font-size: 11px; letter-spacing: -.05px; }
.rep-table-sm .status-pill-sm { padding: 0 6px 0 5px; font-size: 10.5px; }
/* Reference: the status pill fills its column, with the label centred. */
.rep-table-sm td:last-child .status-pill { display: flex; width: 100%; justify-content: center; }
.rep-table-sm th { height: 21px; }
.status-pill-ico { gap: 5px; padding-left: 6px; }
.status-pill-ico .status-pill-icon { width: 11px; height: 11px; stroke-width: 2.4; }
.rep-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: var(--bg-ink); color: #fff; flex: 0 0 auto; overflow: hidden; }
.rep-item-icon .icon { width: 11px; height: 11px; }
.rep-item-icon .flag { width: 13px; height: 9px; }
.rep-item-icon .service-logo-xs { width: 14px; height: 14px; }
.rep-item-icon .provider-xs { width: 16px; height: 16px; }
.rep-saved-card { height: 218px; padding: 8px 14px 6px; }
.rep-saved-list { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.rep-saved-row { position: relative; display: flex; align-items: center; gap: 13px; height: 35px; padding: 0 2px 0 0; background: transparent; }
.rep-saved-row + .rep-saved-row::before { content: ''; position: absolute; left: 45px; right: 0; top: 0; height: 1px; background: var(--border-subtle-2); }
.rep-saved-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-surface); border: 1px solid var(--border-subtle-2); color: var(--text-link); }
.rep-saved-icon .icon { width: 15px; height: 15px; }
.rep-saved-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 13px; }
.rep-saved-title { font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-saved-title:hover { color: var(--text-link); }
.rep-saved-row:hover { background: var(--bg-subtle); border-radius: 7px; }
.rep-saved-sub { margin-top: 2px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.rep-saved-more { height: 24px !important; width: 30px !important; border-radius: 6px; }
.rep-saved-more .btn-icon { width: 13px; height: 13px; }

@media (max-width: 1440px) {
  .rep-kpis { grid-template-columns: repeat(4, 1fr); }
  .rep-row-charts, .rep-row-mid, .rep-row-bottom { grid-template-columns: 1.3fr 1.2fr 1fr; }
  .rep-cats { overflow-x: auto; }
  .rep-cats .detail-tab { flex: 0 0 auto; }
  .split-btn-rep { margin-left: 10px; }
}
@media (max-width: 1366px) {
  .rep-row-charts, .rep-row-mid, .rep-row-bottom { grid-template-columns: 1fr 1fr; }
  .rep-row-charts > :first-child, .rep-row-mid > :first-child, .rep-row-bottom > :first-child { grid-column: span 2; }
}
/* The actions block is overlaid on row 1 next to the title; it needs
   title (~340px) + gap + actions (~731px) of content width, so drop it to its
   own row below ~1340px or the date control lands on the page title. */
@media (max-width: 1340px) {
  .rep-heading { grid-template-columns: minmax(0, 1fr); }
  .rep-heading .rep-actions { grid-row: 2; grid-column: 1; margin-top: 12px; }
}
@media (max-width: 820px) {
  .rep-actions { flex-wrap: wrap; row-gap: 10px; }
  .rep-period-group { flex-wrap: wrap; row-gap: 10px; }
  .period-tabs-rep { height: auto; flex-wrap: wrap; row-gap: 6px; }
  .period-tabs-rep .period-tab { height: 34px; }
  .split-btn-rep { margin-left: 0; }
}
@media (max-width: 1400px) {
  .rep-kpis { grid-template-columns: repeat(2, 1fr); }
  .rep-row-charts, .rep-row-mid, .rep-row-bottom { grid-template-columns: 1fr; }
  .rep-row-charts > :first-child, .rep-row-mid > :first-child, .rep-row-bottom > :first-child { grid-column: auto; }
}

/* --- 30 Global Search / Command Center overlay -------------------------- */
body.gs-open { overflow: hidden; }
.gs-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 55px 20px 24px; background: var(--bg-overlay); overflow-y: auto; }
.gs-backdrop[hidden] { display: none; }
.gs-panel { display: flex; flex-direction: column; width: 1005px; max-width: 100%; min-height: 945px; padding: 20px 18px 14px 17px; border-radius: 14px; background: var(--bg-surface); box-shadow: 0 24px 60px var(--ink-28), 0 0 0 1px var(--ink-04); }
.gs-searchbar { position: relative; display: flex; align-items: center; height: 42px; margin: 0; padding: 0 8px 0 16px; border-radius: 9px; background: var(--bg-subtle-12); border: 1px solid var(--border-default-2); }
.gs-searchbar:focus-within { background: var(--bg-subtle-13); border-color: var(--border-primary-3); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.gs-search-icon { width: 20px; height: 20px; color: var(--text-secondary-3); flex: 0 0 auto; }
.gs-input { flex: 1 1 auto; min-width: 0; height: 100%; margin-left: 14px; border: 0; background: transparent; font-family: var(--font); font-size: 18px; font-weight: 500; color: var(--text); outline: none; }
.gs-input::placeholder { color: var(--muted-2); font-weight: 400; font-size: 15px; }
.gs-clear { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 12px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary-5); cursor: pointer; }
.gs-clear:hover { background: var(--bg-muted-10); }
.gs-clear .icon { width: 16px; height: 16px; }
.gs-kbd { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--bg-selected-3); color: var(--text-link-5); font-family: var(--font); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.gs-types { display: flex; align-items: center; gap: 8px; margin-top: 13px; white-space: nowrap; }
.gs-type { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text-2); font-family: var(--font); font-size: 11.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.gs-type:hover { background: var(--bg-subtle-10); }
.gs-type.is-active, .gs-type.is-active:hover { background: var(--primary-2); color: #fff; }
.gs-type-icon { width: 14px; height: 14px; }
.gs-more { margin-left: auto; }
.gs-more-btn { height: 28px; padding: 0 10px 0 12px; font-size: 11.5px; font-weight: 500; border-radius: 8px; }
.gs-more-btn .btn-chevron { width: 12px; height: 12px; }
.gs-body { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 0 22px; flex: 1 1 auto; margin-top: 12px; }
.gs-results { position: relative; padding: 4px 0 10px; border-right: 1px solid var(--border-soft); padding-right: 12px; }
.gs-group { margin-top: 10px; }
.gs-group[hidden] { display: none; }
.gs-group:first-child { margin-top: 2px; }
.gs-group-title { display: flex; align-items: center; gap: 10px; height: 26px; padding-left: 2px; font-size: 13px; font-weight: 700; color: var(--text); }
.gs-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--bg-muted); font-size: 11px; font-weight: 600; color: var(--text-2); }
.gs-row { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-top: 4px; padding: 0 8px 0 10px; border-radius: 8px; text-decoration: none; color: inherit; transition: background-color .12s ease; }
.gs-row[hidden] { display: none; }
.gs-row:hover { background: var(--bg-subtle-7); }
.gs-row.is-selected, .gs-row.is-selected:hover { background: var(--bg-selected); }
.gs-row:focus-visible { outline: 2px solid rgba(59, 130, 246, .5); outline-offset: -2px; }
.gs-row-logo { width: 28px; height: 28px; border-radius: 7px; }
.gs-row-logo .logo-mark { width: 21px; height: 19px; }
.gs-row-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; }
.gs-row-icon .icon { width: 14px; height: 14px; }
.gs-row-icon-blue { background: var(--tint-info); color: var(--text-link); }
.gs-row-icon-red { background: var(--tint-danger); color: var(--text-danger-2); }
.gs-row-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.gs-row-icon-green-sq { border-radius: 8px; background: var(--tint-success); color: var(--text-success); }
.gs-row-icon-red-sq { border-radius: 8px; background: var(--tint-danger); color: var(--text-danger-2); }
.gs-row-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 15px; }
.gs-row-title { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-row-meta { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.gs-dot { color: var(--text-disabled-2); font-size: 9px; }
.gs-row-amount { display: flex; flex-direction: column; align-items: flex-start; width: 68px; line-height: 15px; flex: 0 0 auto; }
.gs-row-amount strong { font-size: 12.5px; font-weight: 700; color: var(--text); }
.gs-row-amount span { font-size: 11px; color: var(--muted); }
.gs-row-badges { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.gs-pill { height: 20px; padding: 0 8px 0 6px; font-size: 11px; font-weight: 500; gap: 5px; }
.gs-pill-icon { width: 11px; height: 11px; stroke-width: 2.4; }
.status-red-outline { background: var(--bg-surface); color: var(--text-danger); border: 1px solid var(--border-danger-6); }
.gs-row-side { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.gs-row-chevron { width: 13px; height: 13px; color: var(--text-muted); flex: 0 0 auto; margin-left: 4px; }
.gs-empty { margin: 30px 0; font-size: 13px; color: var(--muted); text-align: center; }
.gs-view-all { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0 2px; font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.gs-view-all:hover { text-decoration: underline; text-underline-offset: 2px; }
.gs-view-all-icon { width: 12px; height: 12px; transform: rotate(90deg); stroke-width: 2.4; }

.gs-preview { min-width: 0; padding-top: 18px; }
.gs-preview.is-generic { opacity: .55; }
.gs-preview-head { display: flex; gap: 16px; }
.gs-shot { position: relative; flex: 0 0 166px; width: 166px; height: 118px; border-radius: 8px; background: linear-gradient(160deg, var(--primary-21) 0%, var(--bg-ink) 60%, var(--primary-22) 100%); border: 1px solid var(--border-default-3); overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 18px; gap: 7px; }
.gs-shot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--bg-muted-6); }
.gs-shot-logo { display: inline-flex; width: 78px; height: 26px; margin-bottom: 4px; }
.gs-shot-logo img { width: 78px; height: 26px; object-fit: contain; }
.gs-shot-logo .logo-mark { width: 52px; height: 26px; }
.gs-shot-line { display: block; width: 122px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .6); }
.gs-shot-line-short { width: 72px; background: rgba(255, 255, 255, .35); }
.gs-shot-btns { display: flex; gap: 6px; }
.gs-shot-btns span { display: block; width: 28px; height: 8px; border-radius: 3px; background: var(--success-4); }
.gs-shot-btns span:last-child { background: var(--primary); }
.gs-preview-info { flex: 1 1 auto; min-width: 0; padding-top: 6px; }
.gs-preview-title-row { display: flex; align-items: center; gap: 12px; }
.gs-preview-title { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--text); text-decoration: none; }
.gs-preview-ext { width: 14px; height: 14px; color: var(--text-link); }
.gs-preview-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.gs-preview-desc { margin-top: 8px; font-size: 12px; line-height: 17px; color: var(--text-3); }
.gs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; }
.gs-metric { position: relative; height: 80px; padding: 11px 8px 0 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-subtle-2); }
.gs-metric:last-child { padding-right: 48px; }
.gs-metric:last-child .gs-metric-label { white-space: normal; }
.gs-metric-value { font-size: 16px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.gs-metric-label { margin-top: 2px; font-size: 10.5px; letter-spacing: -.2px; color: var(--text-3); line-height: 14px; white-space: nowrap; }
.gs-metric-trend { position: absolute; left: 10px; bottom: 10px; height: 17px; font-size: 10.5px; }
.gs-metric-ring { position: absolute; right: 8px; top: 14px; width: 40px; height: 40px; flex-basis: 40px; }
.gs-metric-ring > span { width: 30px; height: 30px; }
.gs-info { margin: 12px 0 0; border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; }
.gs-info-row { display: flex; align-items: center; min-height: 29.5px; padding: 0 10px 0 10px; border-bottom: 1px solid var(--border-subtle-2); font-size: 12px; }
.gs-info-row:last-child { border-bottom: 0; }
.gs-info-row dt { flex: 0 0 140px; color: var(--text-3); }
.gs-info-row dd { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; margin: 0; }
.gs-info-value { display: inline-flex; align-items: center; gap: 6px; width: 132px; flex: 0 0 auto; white-space: nowrap; }
.gs-info-value strong { font-weight: 600; color: var(--text); }
.gs-info-ext { width: 12px; height: 12px; color: var(--text-link); }
.gs-info-pills { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.gs-info-note { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.gs-tags { display: inline-flex; align-items: center; gap: 8px; }
.gs-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 5px; font-size: 11px; font-weight: 500; }
.gs-tag-gray { background: var(--bg-muted); color: var(--text-2); }
.gs-tag-red { background: var(--tint-danger); color: var(--text-danger); }
.gs-tag-add { width: 22px; padding: 0; justify-content: center; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-2); cursor: pointer; }
.gs-tag-add .icon { width: 11px; height: 11px; }
.gs-section-title { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.gs-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 10px; margin-top: 10px; }
.gs-action { display: inline-flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-size: 12px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; transition: background-color .12s ease; }
.gs-action:hover { background: var(--bg-subtle-7); }
.gs-action:focus-visible { outline: 2px solid rgba(59, 130, 246, .5); outline-offset: -2px; }
.gs-action-icon { width: 15px; height: 15px; color: var(--text-link); flex: 0 0 auto; }
.gs-action-icon-rot { transform: rotate(90deg); }
.gs-related { display: grid; grid-template-columns: 120fr 104fr 96fr 120fr; gap: 7px; margin-top: 10px; }
.gs-related-tile { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 4px 0 6px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-size: 10.5px; letter-spacing: -.3px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; }
.gs-related-tile:hover { background: var(--bg-subtle-7); }
.gs-related-tile > span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gs-related-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; }
.gs-related-icon .icon { width: 13px; height: 13px; }
.gs-related-icon-purple { background: var(--tint-purple); color: var(--text-purple); }
.gs-related-icon-red { background: var(--tint-danger); color: var(--text-danger-2); }
.gs-related-icon-blue { background: var(--tint-info); color: var(--text-link); }
.gs-related-chev { width: 11px; height: 11px; color: var(--text-muted); flex: 0 0 auto; }

.gs-commands { display: flex; align-items: center; gap: 10px; height: 42px; margin-top: auto; padding: 0 12px 0 14px; border-radius: 8px; background: var(--tint-info); white-space: nowrap; }
.gs-commands-title { font-size: 12px; font-weight: 700; color: var(--text); margin-right: 6px; }
.gs-command { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.gs-command-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 7px; border-radius: 6px; background: var(--bg-surface); border: 1px solid var(--border-primary-15); font-size: 11.5px; }
.gs-command-cmd { font-weight: 500; color: var(--text-2); }
.gs-command-arg { font-weight: 700; color: var(--text); }
.gs-command-hint { font-size: 10.5px; color: var(--text-3); }
.gs-commands-all { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.gs-commands-all:hover { text-decoration: underline; text-underline-offset: 2px; }
.gs-hints { display: flex; align-items: center; gap: 18px; height: 30px; margin-top: 6px; padding: 0 4px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.gs-hint { display: inline-flex; align-items: center; gap: 7px; }
.gs-hint kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--border-default-4); border-radius: 5px; background: var(--bg-surface); font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-2); }
.gs-hint-note { margin-left: auto; }

@media (max-width: 1400px) {
  .gs-body { grid-template-columns: minmax(0, 1fr) 420px; }
  .gs-metrics { grid-template-columns: repeat(2, 1fr); }
  .gs-actions { grid-template-columns: repeat(2, 1fr); }
  .gs-related { grid-template-columns: repeat(2, 1fr); }
  .gs-commands { flex-wrap: wrap; height: auto; padding: 8px 14px; gap: 10px; }
}

/* ==========================================================================
   SETTINGS — batch 08 (design-reference/33-settings-overview.png)
   Settings shell = approved global sidebar + secondary settings nav column +
   overview content. Reuses cards, pills, feed rows, kv rows, buttons.
   ========================================================================== */
/* sidebar additions used on the Settings page only */
.sidebar-settings .nav-list > li + li,
.sidebar-settings .nav-list > li.nav-group + li.nav-group,
.sidebar-settings .nav-list > li:not(.nav-group) + li.nav-group { margin-top: 3px; }
.sidebar-settings .sidebar-footer { padding: 14px 0 14px; }
.sidebar-settings .nav-item-help { margin-top: 4px; }
.sidebar-settings .sidebar-version { margin-top: 14px; }
.sidebar-usage { margin-top: 10px; padding: 12px 12px 13px; border: 1px solid var(--sidebar-border); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.sidebar-usage-title { font-size: 12px; font-weight: 600; line-height: 15px; color: #fff; }
.sidebar-usage-sub { margin-top: 3px; font-size: 11.5px; line-height: 14px; color: var(--text-success-7); }
.sidebar-usage-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sidebar-usage-track { display: block; flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--primary-23); overflow: hidden; }
.sidebar-usage-fill { display: block; height: 100%; border-radius: 3px; background: var(--success-5); }
.sidebar-usage-pct { font-size: 11px; font-weight: 500; color: var(--sidebar-text); }

/* shell */
.settings-shell { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; }
.settings-nav { flex: 0 0 246px; width: 246px; padding: 26px 16px 20px; background: var(--bg-muted-12); border-right: 1px solid var(--border-default-7); }
.settings-nav-head { padding: 0 6px; }
.settings-nav-title { font-size: 18px; font-weight: 700; line-height: 22px; letter-spacing: -.3px; color: var(--text); }
.settings-nav-sub { margin-top: 5px; font-size: 11.5px; line-height: 14px; color: var(--muted); white-space: nowrap; }
.settings-nav-list { margin-top: 20px; }
.settings-nav-list li + li { margin-top: 2.5px; }
.settings-nav-item { display: flex; align-items: center; gap: 15px; height: 38px; padding: 0 12px 0 16px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .12s ease, color .12s ease; }
.settings-nav-item:hover { background: var(--bg-muted-8); color: var(--text); }
.settings-nav-item.is-active, .settings-nav-item.is-active:hover { background: var(--bg-selected-2); color: var(--text-link-7); }
.settings-nav-item.is-match { background: var(--bg-muted-8); }
.settings-nav-item.is-active.is-match { background: var(--bg-selected-2); }
.settings-nav-icon { width: 16px; height: 16px; color: var(--text-secondary-2); stroke-width: 1.8; }
.settings-nav-item.is-active .settings-nav-icon { color: var(--text-link-7); }
.settings-nav-mark { background: var(--tint-warning-7); color: inherit; border-radius: 2px; }
.settings-nav-empty { margin-top: 14px; padding: 0 16px; font-size: 12px; color: var(--muted); }

.page-settings { padding: 0 27px 20px 19px; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 0 0 0; height: 100px; }
.settings-heading .page-subtitle { margin-top: 3px; font-size: 13px; line-height: 16px; color: var(--text-tertiary-2); }
.settings-search { flex: 0 0 312px; width: 312px; height: 38px; margin-top: 2px; padding: 0 12px 0 16px; gap: 12px; border-radius: 8px; background: var(--bg-surface); border-color: var(--border-default); }
.settings-search .filter-search-icon { width: 16px; height: 16px; }
.settings-search input { font-size: 12.5px; }

/* six configuration status cards */
.settings-status-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; margin-bottom: 22px; }
.settings-status-row > * { min-width: 0; }
.settings-status-card { position: relative; display: flex; align-items: flex-start; height: 88px; padding: 12px 30px 10px 12px; }
.settings-status-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.settings-status-icon .icon { width: 17px; height: 17px; stroke-width: 1.8; }
.settings-status-body { min-width: 0; margin-left: 10px; }
.settings-status-title { font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: -.1px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-status-pill { margin-top: 7px; height: 20px; padding: 0 8px; font-size: 11px; font-weight: 600; border-radius: 6px; }
.settings-status-sub { margin-top: 7px; margin-right: -18px; font-size: 11px; letter-spacing: -.1px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-status-flag { position: absolute; right: 11px; top: 12px; display: inline-flex; }
.settings-status-flag .icon { width: 16px; height: 16px; }
.settings-status-flag-ok { color: var(--text-success); }
.settings-status-flag-warn { color: var(--text-warning-5); }

/* rows */
.settings-row { display: grid; gap: 18px; margin-bottom: 21px; }
.settings-row > * { min-width: 0; }
.settings-row-mid { grid-template-columns: 513fr 516fr; }
.settings-row-info { grid-template-columns: 336fr 281fr 394fr; }
.settings-card { padding: 14px 16px 16px; }
.settings-card-header { height: 20px; gap: 10px; }
.settings-card-header .card-title { font-size: 14px; }
.settings-count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.settings-view-all { margin-left: auto; font-size: 12px; }

.settings-attention-card { height: 265px; }
.settings-attention-list { margin-top: 12px; border: 1px solid var(--border-default-2); border-radius: 8px; overflow: hidden; }
.settings-attention-list li + li { border-top: 1px solid var(--border-soft); }
.settings-attention-row { display: flex; align-items: center; height: 52px; padding: 0 16px 0 12px; text-decoration: none; color: inherit; transition: background-color .12s ease; }
.settings-attention-row:hover { background: var(--bg-subtle-2); }
.settings-attention-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; }
.settings-attention-icon .icon { width: 16px; height: 16px; stroke-width: 2; }
.settings-tone-amber { background: var(--tint-warning-2); color: var(--text-warning-6); }
.settings-tone-purple { background: var(--tint-purple); color: var(--text-purple); }
.settings-tone-red { background: var(--danger); color: #fff; }
.settings-tone-green { background: var(--tint-success); color: var(--text-success); }
.settings-tone-google { background: var(--bg-surface); border: 1px solid var(--border-default-2); }
.settings-attention-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; margin-left: 17px; }
.settings-attention-title { font-size: 12.5px; font-weight: 500; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-attention-path { margin-top: 2px; font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-path-sep { margin: 0 5px; color: var(--text-disabled); }
.settings-attention-time { flex: 0 0 auto; margin-right: 26px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.settings-chevron { width: 14px; height: 14px; stroke-width: 2.2; color: var(--text-secondary-2); flex: 0 0 auto; }
.settings-chevron-blue { color: var(--text-link); }

.settings-qa-card { height: 265px; }
.settings-qa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px 13px; margin-top: 12px; }
.settings-qa-grid > * { min-width: 0; }
.settings-qa-tile { display: flex; align-items: center; height: 61px; padding: 0 14px 0 14px; border: 1px solid var(--border-default-2); border-radius: 8px; background: var(--bg-surface); text-decoration: none; color: inherit; transition: background-color .12s ease, border-color .12s ease; }
.settings-qa-tile:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.settings-qa-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.settings-qa-icon .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.settings-qa-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; margin-left: 12px; }
.settings-qa-title { font-size: 12.5px; font-weight: 600; line-height: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-qa-sub { margin-top: 2px; font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.settings-system-card, .settings-plan-card, .settings-activity-card { height: 286px; }
.settings-kv { margin-top: 10px; }
.settings-kv-row { align-items: center; min-height: 35.5px; padding: 0; gap: 8px; }
.settings-kv-row dt { flex: 0 0 88px; font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.settings-kv-row dd { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: -.1px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.settings-kv-row dd > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.settings-success-pill { height: 20px; padding: 0 8px 0 6px; font-size: 11px; font-weight: 600; border-radius: 6px; flex: 0 0 auto; }
.settings-trend { height: 20px; padding: 0 8px 0 6px; font-size: 11.5px; border-radius: 6px; }

.settings-plan-box { margin-top: 15px; padding: 14px 14px 12px; border-radius: 10px; background: var(--bg-subtle-6); border: 1px solid var(--border-subtle-2); }
.settings-plan-head { display: flex; align-items: flex-start; gap: 14px; padding-left: 2px; }
.settings-plan-crown { display: inline-flex; color: var(--text-warning-5); margin-top: 2px; }
.settings-plan-crown .icon { width: 22px; height: 22px; }
.settings-plan-name { font-size: 14px; font-weight: 700; line-height: 18px; color: var(--text); }
.settings-plan-tagline { margin-top: 3px; font-size: 11.5px; line-height: 14px; color: var(--muted); white-space: nowrap; }
.settings-plan-list { margin-top: 14px; padding-left: 11px; }
.settings-plan-list li { display: flex; align-items: center; gap: 12px; height: 25px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.settings-plan-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; flex: 0 0 auto; }
.settings-plan-check .icon { width: 10px; height: 10px; stroke-width: 3; }
.settings-plan-btn { width: 100%; height: 34px; margin-top: 16px; font-size: 12.5px; }

.settings-feed { margin-top: 6px; }
.settings-feed-row { height: 47.5px; gap: 14px; }
.settings-feed-icon { width: 30px; height: 30px; border-radius: 8px; }
.settings-feed-icon .icon { width: 15px; height: 15px; }
.settings-feed-icon .service-logo-xs { width: 16px; height: 16px; }
.settings-feed-icon .provider-logo { width: 18px; height: 18px; }
.settings-feed-text { font-size: 12px; letter-spacing: -.1px; }
.settings-feed-time { font-size: 11px; }

/* help banner */
.settings-help { display: flex; align-items: center; gap: 19px; height: 89px; padding: 0 19px 0 16px; }
.settings-help-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%; background: var(--tint-warning-2); color: var(--text-warning-5); }
.settings-help-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.settings-help-body { flex: 1 1 auto; min-width: 0; }
.settings-help-title { font-size: 15px; font-weight: 700; line-height: 19px; color: var(--text); }
.settings-help-text { margin-top: 4px; font-size: 12px; line-height: 15px; color: var(--muted); }
.settings-help-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.settings-help-guide { height: 36px; padding: 0 30px; font-size: 12.5px; font-weight: 600; border-color: var(--border-primary-3); }
.settings-help-support { height: 36px; padding: 0 26px 0 22px; gap: 10px; border-radius: 8px; background: var(--primary-2); color: #fff; font-size: 12.5px; font-weight: 600; }
.settings-help-support:hover { background: var(--primary-hover); }
.settings-help-support .btn-icon { width: 15px; height: 15px; }

/* laptop widths */
@media (max-width: 1440px) {
  .settings-nav { flex-basis: 224px; width: 224px; padding: 22px 12px 16px; }
  .settings-nav-item { gap: 12px; font-size: 12.5px; }
  .settings-status-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .settings-search { flex-basis: 260px; width: 260px; }
  .settings-row { gap: 12px; }
}
@media (max-width: 1366px) {
  .settings-row-info { grid-template-columns: 1fr 1fr; }
  .settings-activity-card { grid-column: span 2; height: auto; }
  .settings-attention-time { margin-right: 12px; }
}
@media (max-width: 1400px) {
  .settings-row-mid { grid-template-columns: 1fr; }
  .settings-attention-card, .settings-qa-card { height: auto; }
  .settings-help { height: auto; padding: 14px 16px; flex-wrap: wrap; }
}

/* --- 25 Profitability & P&L Intelligence -------------------------------- */
.fin-layout-profit { grid-template-columns: minmax(0, 1fr) 274px; }
.fin-actions-primary-profit { gap: 10px; margin-left: 12px; }
.fin-main-profit { padding-top: 0; }
.fin-status-line { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 22px; margin-bottom: 6px; }
.fin-status-pill-open { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 9px 0 7px; border-radius: 6px; background: var(--tint-success); color: var(--text-success-2); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.fin-status-open-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.fin-status-note { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.fin-status-link { font-weight: 600; color: var(--text-link); text-decoration: none; }
.fin-status-link:hover { text-decoration: underline; }
.fin-kpi-card-profit { height: 78px; }
.fin-kpi-card-profit .fin-kpi-trend { margin-top: 5px; flex-wrap: nowrap; }
.fin-kpi-sub-inline { margin-left: 3px; font-size: 9px; letter-spacing: -.35px; color: var(--text-3); white-space: nowrap; }
.fin-kpi-card-profit .kpi-trend { padding: 0 4px 0 3px; font-size: 10px; gap: 2px; }
.fin-kpi-card-profit .fin-kpi-icon { flex-basis: 28px; width: 28px; height: 28px; }
.fin-kpi-card-profit .fin-kpi-icon > .icon { width: 15px; height: 15px; }
.fin-kpi-card-profit { gap: 5px; padding-left: 7px; padding-right: 0; }
.fin-kpi-card-profit .fin-kpi-body { flex: 1 1 auto; }
.fin-kpi-pill-prefix { margin-right: 4px; font-weight: 700; }
.fin-subnav { display: flex; align-items: stretch; height: 30px; margin: 10px 0 8px; padding: 0 6px; }
.fin-subnav-tab { padding: 0 14px; font-size: 11.5px; }
.fin-subnav-tab:first-child { padding-left: 8px; }
.fin-subnav-tab.is-active::after { left: 4px; right: 4px; }
.fin-subnav-tab:first-child.is-active::after { left: 0; }
.fin-row-charts-profit { grid-template-columns: 500fr 532fr; gap: 11px; }
.fin-chart-card-profit { height: 188px; padding: 8px 12px 6px; }
.chart-area-profit-trend { height: 126px; }
.fin-donut-body-profit { margin-top: 4px; }
.fin-donut-xl { flex-basis: 140px; width: 140px; height: 140px; margin-left: 12px; }
.fin-donut-xl canvas { width: 140px !important; height: 140px !important; }
.fin-donut-value-lg { font-size: 17px; line-height: 20px; }
.fin-donut-legend-profit { margin-left: 32px; }
.fin-donut-legend-profit li { height: 18.5px; font-size: 10.5px; gap: 8px; }
.fin-donut-legend-profit .fin-legend-pct { width: 60px; }
.fin-donut-legend-profit .fin-legend-value { width: 60px; }
.fin-table-card-profit { padding-top: 8px; }
.fin-table-head-profit { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 8px; }
.fin-table-title { font-size: 14px; }
.fin-profit-filters { gap: 8px; }
.fin-search-profit { flex-basis: 180px; width: 180px; }
.control-filter-profit { height: 30px; padding: 0 8px 0 10px; font-size: 10.5px; border-radius: 7px; }
.control-filter-profit .control-chevron { margin-left: 10px; }
.fin-profit-table-25 thead th { font-size: 10.5px; letter-spacing: -.2px; padding: 0 5px; }
.fin-profit-table-25 tbody td { height: 24.6px; padding: 0 5px; font-size: 11px; }
.fin-profit-table-25 .fin-pill { height: 18px; font-size: 11px; }
.fin-profit-table-25 .td-spark { line-height: 0; }
.fin-profit-table-25 .fin-action-btn { height: 20px; width: 24px; }
.th-status .th-sort-icon-r { margin-left: 26px; }
.sparkline-fin { display: inline-block; }
.fin-pill-status { height: 18px; padding: 0 7px; font-size: 10.5px; font-weight: 500; border-radius: 5px; }
.fin-pill-status.fin-pill-gray { color: var(--text-2); }
.fin-table-card-profit .fin-table-footer { height: 40px; }
.fin-bottom-profit { grid-template-columns: 232fr 234fr 265fr 272fr; gap: 11px; margin-top: 0; }
.fin-bottom-card-profit { height: 156px; padding: 8px 10px 6px; }
.fin-rank-text-dark { font-size: 11px; color: var(--text-2); }
.fin-rank-meta-pct { width: 40px; font-size: 10.5px; }
.fin-geo-tile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 4px; background: var(--bg-ink); }
.fin-geo-tile .flag { width: 14px; height: 10px; }
/* profitability rail */
.fin-rail-profit { gap: 9px; margin-top: -4px; }
.fin-detail-rail-profit { margin-top: 0; padding: 11px 11px 12px; }
.fin-detail-rail-profit .fin-detail-logo { flex-basis: 42px; width: 42px; height: 42px; }
.fin-detail-url { display: inline-block; font-size: 11px; color: var(--text-link-4); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fin-detail-url:hover { text-decoration: underline; }
.fin-detail-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.fin-status-profitable { height: 20px; padding: 0 8px 0 6px; font-size: 10.5px; }
.fin-rail-tabs-profit .rail-tab { font-size: 11px; letter-spacing: -.1px; }
.fin-metric-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.fin-metric-tile { display: flex; flex-direction: column; justify-content: center; height: 48px; padding: 0 9px; border: 1px solid var(--border-subtle-2); border-radius: 7px; background: var(--bg-surface); }
.fin-metric-label { font-size: 10px; letter-spacing: -.2px; color: var(--text-3); white-space: nowrap; }
.fin-metric-value { margin-top: 2px; font-size: 14px; font-weight: 700; letter-spacing: -.3px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-metric-pill { align-self: flex-start; margin-top: 3px; height: 17px; padding: 0 6px; font-size: 9.5px; letter-spacing: -.2px; }
.fin-rail-section-head { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.fin-rail-section-head .fin-detail-section { margin-top: 0; font-size: 12px; white-space: nowrap; }
.fin-rail-section-head .control-range-fin { height: 22px; font-size: 10.5px; padding: 0 6px 0 8px; }
.chart-area-rail-profit { height: 84px; margin-top: 4px; }
.seg-control-fin { height: 22px; margin-left: 0; border-radius: 6px; }
.seg-control-fin .seg-btn { padding: 0 7px; font-size: 9.5px; letter-spacing: -.25px; font-weight: 500; white-space: nowrap; }
.seg-control-fin .seg-btn.is-active { background: var(--primary-2); font-weight: 600; }
.fin-cost-list { margin-top: 6px; }
.fin-cost-list li { display: flex; align-items: center; gap: 7px; height: 19.5px; font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.fin-cost-list .legend-dot { width: 8px; height: 8px; }
.fin-cost-name { flex: 1 1 auto; }
.fin-cost-value { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-cost-pct { width: 44px; text-align: right; font-size: 10px; color: var(--muted); }
.fin-cost-bar { display: flex; gap: 2px; height: 7px; margin-top: 6px; }
.fin-cost-bar span { display: block; height: 100%; border-radius: 3.5px; }
.fin-detail-rail-profit .fin-detail-section { font-size: 12px; }
.fin-related-list-profit .fin-related-row { height: 27px; gap: 8px; }
.fin-related-icon-plain { background: transparent; color: var(--text-tertiary); width: 16px; flex-basis: 16px; }
.fin-related-icon-plain .icon { width: 12px; height: 12px; }
.fin-related-key { flex: 0 0 90px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.fin-related-val { flex: 1 1 auto; min-width: 0; font-size: 10.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-related-val .table-link { font-size: 10.5px; }
.fin-related-val .fin-site-cell { gap: 6px; }
.fin-qa-grid-profit { margin-top: 8px; gap: 6px; }
.fin-qa-grid-profit .fin-qa-btn { height: 30px; font-size: 10.5px; padding: 0 8px; }
.fin-completeness-card-profit { padding: 10px 11px 10px; }
.fin-completeness-card-profit .fin-rail-header { height: 20px; }
.fin-plus-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--border-primary); border-radius: 5px; color: var(--text-link); text-decoration: none; }
.fin-plus-btn .icon { width: 11px; height: 11px; stroke-width: 2.4; }
.fin-plus-btn:hover { background: var(--bg-hover); }
.fin-completeness-card-profit .fin-completeness-body { margin-top: 6px; align-items: center; }
.fin-warn-pill { background: var(--tint-danger); color: var(--text-danger); }
.fin-soft-btn { display: inline-flex; height: 24px; margin-top: 6px; padding: 0 10px; border-radius: 6px; background: var(--tint-info); color: var(--text-link); font-size: 10.5px; font-weight: 600; }
.fin-soft-btn:hover { background: var(--bg-selected-4); }

/* --- 26 Payments & Payouts Manager -------------------------------------- */
.fin-layout-payments { grid-template-columns: minmax(0, 1fr) 242px; column-gap: 10px; }
.fin-kpi-card-pay { height: 96px; }
.fin-row-charts-pay { grid-template-columns: 450fr 287fr 318fr; gap: 10px; }
.fin-chart-card-pay { height: 190px; padding: 8px 12px 6px; }
.chart-area-pay-trend { height: 128px; }
.fin-donut-body-pay { margin-top: 6px; }
.fin-donut-body-pay .fin-donut-xl { flex-basis: 112px; width: 112px; height: 112px; margin-left: 0; }
.fin-donut-body-pay .fin-donut-xl canvas { width: 112px !important; height: 112px !important; }
.fin-donut-legend-pay { margin-left: 8px; }
.fin-donut-legend-pay li { height: 22px; font-size: 10.5px; gap: 6px; }
.fin-legend-count { width: 20px; text-align: right; font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-donut-legend-pay .fin-legend-pct { width: 38px; }
.fin-upcoming-list { margin-top: 4px; }
.fin-upcoming-row { display: flex; align-items: center; gap: 8px; height: 25px; border-bottom: 1px solid var(--border-soft); font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.fin-upcoming-row:last-child { border-bottom: 0; }
.fin-upcoming-row .checkbox { width: 13px; height: 13px; }
.fin-upcoming-row .checkbox-box { width: 13px; height: 13px; }
.fin-upcoming-date { flex: 0 0 64px; font-size: 10px; color: var(--text-3); }
.fin-upcoming-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-upcoming-amount { font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.btn-fin-upcoming { height: 26px; margin-top: 6px; font-size: 11px; }
.fin-search-pay { flex-basis: 168px; width: 168px; }
.fin-table-card-pay .fin-tabs-chips { gap: 2px; }
.fin-table-card-pay .fin-chip-tab { font-size: 10.5px; padding: 0 6px; gap: 5px; }
.fin-table-card-pay .fin-chip-tab.is-active { padding: 0 10px; }
.fin-tab-icon-amber { color: var(--text-warning-5); }
.fin-tab-icon-gray { color: var(--text-tertiary); }
.sites-table.fin-pay-table thead th { font-size: 10.5px; letter-spacing: -.2px; padding: 0 5px; }
.sites-table.fin-pay-table tbody td { height: 27.5px; padding: 0 5px; }
.fin-pay-table .geo-cell-lg { gap: 6px; }
.fin-bottom-pay { grid-template-columns: 270fr 170fr 300fr 300fr; gap: 10px; }
.fin-bottom-card-pay { height: 156px; padding: 8px 10px 6px; }
.fin-top-bm-head { display: flex; justify-content: flex-end; gap: 14px; height: 14px; margin-top: -4px; font-size: 9.5px; color: var(--muted); }
.fin-top-bm-head span:last-child { width: 68px; text-align: right; }
.fin-rank-row-pay { height: 24px; }
.fin-rank-row-pay .fin-rank-amount { width: 52px; }
.fin-rank-row-pay .fin-rank-meta-pct { width: 58px; }
.fin-delay-body { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.fin-delay-ring { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border-primary-7); border-right-color: var(--border-primary-4); border-bottom-color: var(--border-primary-4); color: var(--text-link); }
.fin-delay-ring .icon { width: 14px; height: 14px; }
.fin-delay-value { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--text); white-space: nowrap; }
.fin-delay-trend { height: 16px; margin-top: 3px; font-size: 10.5px; }
.fin-delay-note { margin-top: 3px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.fin-delay-bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; margin-top: 12px; padding: 0 4px; }
.fin-delay-bars span { flex: 1 1 0; border-radius: 3px 3px 0 0; background: var(--primary); }
.fin-delay-bars span.is-light { background: var(--primary-24); }
.fin-rel-body { display: flex; gap: 12px; margin-top: 2px; }
.fin-rel-left { flex: 1 1 auto; min-width: 0; }
.fin-rel-rate { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.fin-rel-caption { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.fin-area-spark { display: block; width: 100%; height: 42px; margin-top: 8px; }
.fin-rel-axis { display: flex; justify-content: space-between; margin-top: 2px; font-size: 7px; color: var(--text-disabled-2); }
.fin-rel-right { flex: 0 0 96px; }
.fin-rel-count { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.fin-rel-list { margin-top: 8px; }
.fin-rel-list li { display: flex; align-items: center; gap: 6px; height: 20px; font-size: 10.5px; color: var(--text-2); }
.fin-rel-list .legend-dot { width: 8px; height: 8px; }
.fin-rel-name { flex: 1 1 auto; }
.fin-rel-list strong { font-weight: 700; }
.fin-feed-row-pay { height: 30px; gap: 8px; }
.fin-feed-title-normal { font-weight: 500; color: var(--text-2); }
.fin-feed-circle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; color: #fff; }
.fin-feed-circle .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.fin-feed-circle-green { background: var(--success); }
.fin-feed-circle-red { background: var(--danger); }
.fin-feed-circle-blue { background: var(--primary); }
.fin-feed-circle-gray { background: var(--bg-track-5); }
.fin-feed-circle-amber { background: var(--warning); }
.fin-feed-circle-lg { flex-basis: 24px; width: 24px; height: 24px; }
/* payments rail */
.fin-rail-pay { gap: 8px; }
.fin-rail-header-icon { justify-content: flex-start; gap: 8px; }
.fin-rail-header-icon .view-all { margin-left: auto; }
.fin-rail-title-icon { width: 15px; height: 15px; color: var(--text-secondary-3); }
.fin-forecast-list { margin-top: 4px; }
.fin-forecast-list li { display: flex; align-items: center; gap: 8px; height: 26px; border-bottom: 1px solid var(--border-soft); font-size: 11px; color: var(--text-2); }
.fin-forecast-list li:last-child { border-bottom: 0; }
.fin-forecast-icon { width: 13px; height: 13px; color: var(--text-tertiary); }
.fin-forecast-label { flex: 1 1 auto; }
.fin-forecast-value { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-forecast-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 8px 9px; border-radius: 7px; background: var(--tint-success); font-size: 10.5px; line-height: 14px; color: var(--text-success-2); }
.fin-forecast-note-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: #fff; margin-top: 1px; }
.fin-forecast-note-icon .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.fin-methods-list { margin-top: 6px; }
.fin-method-row { display: flex; align-items: center; gap: 9px; height: 33px; }
.fin-mark-md { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; overflow: hidden; }
.fin-mark-md .service-mark { width: 24px; height: 24px; display: block; }
.fin-mark-md.fin-tile { background: var(--bg-track-8); color: #fff; }
.fin-mark-md.fin-tile .icon { width: 12px; height: 12px; }
.fin-method-body { flex: 1 1 auto; min-width: 0; }
.fin-method-top { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.fin-method-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-method-pct { font-size: 10px; color: var(--muted); }
.fin-method-value { width: 44px; text-align: right; font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-method-bar { flex: none; height: 5px; margin: 4px 0 0; border-radius: 3px; }
.fin-attention-list { margin-top: 4px; }
.fin-attention-list li { display: flex; align-items: center; gap: 9px; height: 27px; border-bottom: 1px solid var(--border-soft); font-size: 10.5px; letter-spacing: -.1px; color: var(--text-2); white-space: nowrap; }
.fin-attention-list li:last-child { border-bottom: 0; }
.fin-recent-list { margin-top: 4px; }
.fin-recent-row { display: flex; align-items: center; gap: 8px; height: 33px; border-bottom: 1px solid var(--border-soft); }
.fin-recent-row:last-child { border-bottom: 0; }
.fin-recent-name { flex: 1 1 auto; min-width: 0; font-size: 10.5px; letter-spacing: -.15px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-recent-side { display: flex; flex-direction: column; align-items: flex-end; line-height: 13px; }
.fin-recent-amount { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fin-recent-date { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.fin-calendar-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 64px; margin-top: 8px; border: 1px solid var(--border-primary-2); border-radius: 8px; background: var(--bg-subtle-5); font-size: 10.5px; font-weight: 500; color: var(--text-link); text-decoration: none; text-align: center; padding: 0 8px; }
.fin-calendar-box:hover { background: var(--bg-hover); }
.fin-calendar-icon { width: 20px; height: 20px; color: var(--text-link); }

/* --- 31 Credentials & Access Vault (with credential detail rail) -------- */
.page-vault { padding-bottom: 20px; }
.vault-heading { padding-top: 6px; }
.page-title-vault { font-size: 27px; line-height: 32px; }
.vault-heading .page-subtitle { font-size: 13px; }
.vault-actions { margin-top: 0; gap: 28px; }
.btn-vault-settings { height: 32px; padding: 0 11px; font-size: 12px; gap: 8px; }
.btn-vault-primary { height: 34px; padding: 0 16px 0 15px; gap: 9px; }
.split-btn-vault .split-btn-toggle { height: 34px; width: 34px; }
.vault-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; column-gap: 4px; align-items: start; margin-top: 12px; }
.vault-layout.rail-closed { grid-template-columns: minmax(0, 1fr); }
.vault-main { min-width: 0; }
.vault-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 15px; }
.vault-kpis > * { min-width: 0; }
.vault-kpi { display: flex; align-items: center; gap: 11px; height: 82px; padding: 0 4px 0 12px; }
.vault-kpi-icon { flex-basis: 36px; width: 36px; height: 36px; margin: 0; }
.vault-kpi-icon > .icon { width: 18px; height: 18px; }
.vault-kpi-body { min-width: 0; }
.vault-kpi-value { font-size: 20px; font-weight: 700; line-height: 22px; letter-spacing: -.5px; color: var(--text); }
.vault-kpi-label { margin-top: 1px; font-size: 11px; letter-spacing: -.2px; line-height: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-kpi-sub { margin-top: 2px; font-size: 10.5px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-kpi-sub-green { color: var(--text-success-3); }
.vault-kpi-sub-muted { color: var(--muted); }
.vault-cats { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; white-space: nowrap; overflow: hidden; }
.vault-cat { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); color: var(--text-2); font-family: var(--font); font-size: 10.5px; letter-spacing: -.25px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-card); transition: background-color .12s ease, color .12s ease; }
.vault-cat:hover { background: var(--bg-subtle); }
.vault-cat.is-active, .vault-cat.is-active:hover { background: var(--primary-2); border-color: var(--border-primary-6); color: #fff; }
.vault-cat-icon { width: 12px; height: 12px; }
.vault-cat-mark { width: 13px; height: 13px; }
.vault-cat-logo { width: 16px; height: 16px; border-radius: 3px; }
.vault-cat-logo .logo-mark { width: 12px; height: 11px; }
.vault-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.vault-search { flex-basis: 323px; width: 323px; height: 31px; padding: 0 10px 0 12px; gap: 10px; }
.vault-search input { font-size: 11.5px; }
.control-vault { height: 31px; padding: 0 9px 0 12px; font-size: 11.5px; }
.control-vault .control-chevron { margin-left: 10px; }
.btn-vault-filters { height: 31px; padding: 0 12px 0 11px; gap: 8px; font-size: 12px; font-weight: 600; }
.btn-vault-filters .btn-icon { width: 14px; height: 14px; }
.vault-sort { margin-left: auto; }
.vault-table-card { padding-bottom: 0; margin-bottom: 10px; }
.sites-table.vault-table { min-width: 0; }
.sites-table.vault-table thead th { height: 24px; font-size: 11.5px; font-weight: 500; padding: 0 8px; }
.sites-table.vault-table tbody td { height: 39px; padding: 0 8px; font-size: 12px; line-height: 1.15; }
.vault-table .th-check, .vault-table .td-check { padding-left: 14px; }
.vault-table .td-check { line-height: 0; }
.vault-table .td-plain { color: var(--text-2); }
.vault-table tbody tr.is-selected-row td { background: var(--bg-subtle-8); }
.vault-service { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vault-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; }
.vault-mark .service-mark, .vault-mark .provider-mark { width: 100%; height: 100%; }
.vault-mark-pad .service-mark { width: 18px; height: 18px; }
.vault-mark-sq { border-radius: 5px; }
.vault-mark-blue { background: var(--primary-2); color: #fff; }
.vault-mark-sq .icon { width: 13px; height: 13px; }
.vault-mark-plain { color: var(--text-primary-2); }
.vault-mark-plain .icon { width: 18px; height: 18px; }
.vault-mark-logo { width: 24px; height: 24px; border-radius: 5px; }
.vault-mark-logo .logo-mark { width: 19px; height: 17px; }
.vault-mark-logo img { width: 20px; height: 14px; }
.vault-two { display: flex; flex-direction: column; line-height: 14px; }
.vault-name { font-size: 12px; font-weight: 500; color: var(--text); text-decoration: none; }
.vault-name:hover { color: var(--text-link); }
.vault-sub { margin-top: 1px; font-size: 11px; color: var(--muted); }
.vault-url { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: -.1px; max-width: 100%; }
.vault-service span:last-child { font-size: 11.5px; letter-spacing: -.1px; }
.vault-ext { width: 12px; height: 12px; color: var(--text-link); }
.type-gray { background: var(--bg-muted); color: var(--text-secondary-7); }
.vault-table .status-pill-sm { height: 20px; font-size: 11px; }
.vault-table .td-actions { line-height: 0; }
.vault-table .td-actions .dropdown { display: inline-flex; }
.vault-more { height: 24px !important; width: 30px !important; color: var(--text-link); border-color: var(--border-primary); }
.vault-more .btn-icon { width: 14px; height: 14px; }
.vault-footer { height: 45px; padding: 0 4px 0 2px; }
.vault-pagination { gap: 6px; }
.vault-pagination .page-btn { width: 26px; height: 26px; font-size: 12px; }
.vault-pagination .page-btn-wide { width: 32px; }
.vault-bottom { display: grid; grid-template-columns: 325fr 325fr 322fr; gap: 10px; }
.vault-bottom > * { min-width: 0; }
.vault-bottom-card { height: 190px; padding: 8px 12px 6px; }
.vault-title-icon { width: 13px; height: 13px; margin-right: 6px; color: var(--text-link); vertical-align: -2px; }
.vault-missing { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.vault-missing-row { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 4px 0 6px; border: 1px solid var(--border-subtle-2); border-radius: 6px; background: var(--bg-subtle-2); font-size: 11.5px; }
.vault-dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; color: #fff; }
.vault-dot .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.vault-dot-red { background: var(--danger); }
.vault-dot-blue { background: var(--primary); }
.vault-dot-green { background: var(--success); }
.vault-dot-purple { background: var(--purple); }
.vault-missing-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-missing-what { color: var(--text-2); }
.btn-vault-add { height: 22px; padding: 0 12px; font-size: 11.5px; border-radius: 6px; }
.vault-list { margin-top: 2px; }
.vault-list-row { display: flex; align-items: center; gap: 10px; height: 38px; border-bottom: 1px solid var(--border-soft); }
.vault-list-row:last-child { border-bottom: 0; }
.vault-mini { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; }
.vault-mini .provider-mark, .vault-mini .service-mark { width: 100%; height: 100%; }
.vault-mini-logo { width: 26px; height: 26px; border-radius: 6px; }
.vault-mini-logo .logo-mark { width: 20px; height: 18px; }
.vault-mini-round { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; }
.vault-mini-round .provider-mark, .vault-mini-round .service-mark { width: 100%; height: 100%; }
.vault-mini-round-logo { width: 24px; height: 24px; border-radius: 6px; }
.vault-mini-round-logo .logo-mark { width: 19px; height: 17px; }
.vault-list-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 14px; }
.vault-list-title { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-list-sub { margin-top: 1px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-list-chev { width: 13px; height: 13px; color: var(--text-muted); flex: 0 0 auto; }
.btn-review { height: 22px; padding: 0 11px; font-size: 11px; font-weight: 600; border-radius: 6px; background: var(--tint-danger); color: var(--text-danger); }
.btn-review:hover { background: var(--tint-danger-7); }

.vault-rail { position: sticky; top: 64px; margin-top: -29px; padding: 16px 14px 14px 16px; }
.vault-rail[hidden] { display: none; }
.vault-rail-close { position: absolute; right: 12px; top: 14px; }
.vault-rail-head { display: flex; align-items: flex-start; gap: 12px; padding-right: 30px; }
.vault-rail-logo { flex: 0 0 50px; width: 50px; height: 50px; }
.vault-rail-info { min-width: 0; padding-top: 2px; }
.vault-rail-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.vault-rail-site { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.vault-rail-site-link { font-size: 13px; font-weight: 600; }
.vault-rail-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--text-3); }
.vault-rail-tabs { justify-content: flex-start; gap: 12px; height: 34px; margin-top: 12px; overflow: hidden; }
.vault-rail-tabs .rail-tab { font-size: 12px; padding: 0 3px; }
.vault-field { margin-top: 14px; }
.vault-field-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.vault-field-box { display: flex; align-items: center; gap: 6px; height: 32px; margin-top: 6px; padding: 0 6px 0 12px; border-radius: 7px; background: var(--bg-subtle-12); border: 1px solid var(--border-default-2); }
.vault-field-value { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-mask { letter-spacing: 1.5px; font-size: 13px; }
.vault-field-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text-link); cursor: pointer; }
.vault-field-btn:hover { background: var(--bg-selected-3); }
.vault-field-btn .icon { width: 14px; height: 14px; }
.vault-field-btn.is-copied { color: var(--text-success); }
.vault-kv { margin: 10px 0 0; }
.vault-kv-row { display: flex; align-items: center; min-height: 27px; font-size: 12px; }
.vault-kv-row dt { flex: 0 0 112px; color: var(--text-3); }
.vault-kv-row .gs-tag { font-size: 10.5px; white-space: nowrap; padding: 0 7px; }
.vault-kv-row .gs-tags { gap: 6px; }
.vault-kv-row dd { flex: 1 1 auto; margin: 0; min-width: 0; }
.vault-kv-row dd strong { font-weight: 600; color: var(--text); }
.status-gray-plain { background: var(--bg-muted); color: var(--text-secondary-7); }
.gs-tag-add-round { border-radius: 50%; width: 24px; height: 24px; }
.vault-rail-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.vault-rail-h { font-size: 13.5px; font-weight: 700; color: var(--text); }
.vault-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.vault-qa > .dropdown { display: flex; }
.vault-qa-btn { height: 32px; padding: 0 3px; font-size: 10.5px; letter-spacing: -.35px; font-weight: 500; gap: 4px; border-radius: 7px; white-space: nowrap; overflow: hidden; }
.vault-qa-btn .btn-icon { width: 12px; height: 12px; flex: 0 0 auto; color: var(--text-link); }
.vault-qa-btn.btn-white { color: var(--text-link); border-color: var(--border-primary); }
.vault-qa-btn.btn-white:hover { background: var(--bg-hover); }
.vault-qa-primary { color: #fff; }
.vault-qa-primary .btn-icon { color: #fff; width: 13px; height: 13px; }
.vault-qa-more { width: 100%; }
.vault-qa-more .btn-chevron { color: var(--text-link); }
.vault-qa-btn.is-copied { color: var(--text-success); border-color: var(--border-success); }
.vault-related { margin-top: 8px; }
.vault-related-row { display: flex; align-items: center; gap: 10px; height: 36.5px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.vault-related-row:last-child { border-bottom: 0; }
.vault-related-label { flex: 0 0 100px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.vault-related-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-rail-msg { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--tint-warning); font-size: 11.5px; color: var(--text-warning-8); }
.vault-rail-msg[hidden] { display: none; }

@media (max-width: 1440px) {
  .vault-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .vault-kpis { grid-template-columns: repeat(3, 1fr); }
  .vault-cats { flex-wrap: wrap; }
  .vault-filters { flex-wrap: wrap; row-gap: 8px; }
  .vault-search { flex-basis: 240px; width: 240px; }
  .vault-table { min-width: 860px; }
}
@media (max-width: 1366px) {
  .vault-layout { grid-template-columns: 1fr; }
  .vault-rail { position: static; margin-top: 0; }
  .vault-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1400px) {
  .vault-kpis { grid-template-columns: repeat(2, 1fr); }
  .vault-bottom { grid-template-columns: 1fr; }
  .vault-heading { flex-wrap: wrap; }
}

/* --- 32 Integrations & API Center (with right rail) --------------------- */
.page-int { padding-bottom: 18px; }
.int-heading { padding-top: 6px; }
.page-title-int { font-size: 27px; line-height: 32px; }
.int-heading .page-subtitle { font-size: 13px; }
.int-actions { margin-top: 2px; gap: 15px; }
.btn-int-logs { height: 33px; padding: 0 14px 0 13px; font-size: 12.5px; gap: 9px; }
.int-actions .btn-int-primary { width: 257px; height: 38px; padding: 0; font-size: 13px; font-weight: 600; gap: 10px; }
.btn-int-primary .btn-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.int-layout { display: grid; grid-template-columns: minmax(0, 1fr) 257px; column-gap: 16px; align-items: start; margin-top: 12px; }
.int-main { min-width: 0; }
.int-kpis { display: grid; grid-template-columns: 175fr 164fr 168fr 164fr 162fr 171fr; gap: 8px; margin-bottom: 14px; }
.int-kpis > * { min-width: 0; }
.int-kpi { display: flex; align-items: center; gap: 12px; height: 85px; padding: 0 4px 0 16px; }
.int-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; margin: 0; }
.int-kpi-icon > .icon { width: 19px; height: 19px; }
.int-kpi-body { min-width: 0; }
.int-kpi-value { font-size: 18px; font-weight: 700; line-height: 22px; letter-spacing: -.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-kpi-value-sm { font-size: 13px; letter-spacing: -.3px; }
.int-kpi-label { margin-top: 1px; font-size: 11px; letter-spacing: -.2px; line-height: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-kpi-sub { margin-top: 2px; font-size: 10.5px; letter-spacing: -.2px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-kpi-sub-green { display: inline-block; padding: 1px 5px; font-size: 10px; letter-spacing: -.3px; border-radius: 4px; background: var(--tint-success); color: var(--text-success-2); }
.int-kpi-sub-muted { color: var(--muted); }
.int-tabs { display: inline-flex; height: 38px; margin-bottom: 16px; }
.int-tabs .detail-tab { flex: 0 0 auto; padding: 0 22px; font-size: 12.5px; }
.int-tabs .detail-tab + .detail-tab::before { top: 9px; bottom: 9px; }
.int-tabs .detail-tab.is-active::after { height: 2px; }

.int-connected { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 14px; }
.int-connected > * { min-width: 0; }
.int-card { padding: 12px 16px 10px; }
.int-card { position: relative; }
.int-card-head { display: flex; align-items: flex-start; gap: 12px; padding-right: 34px; }
.int-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-subtle-10); }
.int-logo-mark { width: 26px; height: 26px; display: inline-flex; }
.int-logo-mark .service-mark, .int-logo-mark .provider-mark { width: 100%; height: 100%; }
.int-logo-email { border-radius: 6px; background: var(--primary-2); color: #fff; align-items: center; justify-content: center; }
.int-logo-email .icon { width: 15px; height: 15px; }
.int-logo-sm { background: var(--bg-subtle-10); }
.int-card-info { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.int-card-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.int-card-title { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.int-card-title-row .gs-pill { height: 19px; padding: 0 6px 0 5px; font-size: 10.5px; }
.int-card-desc { margin-top: 5px; font-size: 11.5px; line-height: 15px; color: var(--text-3); }
.int-card-more { position: absolute; right: 12px; top: 12px; }
.int-more { height: 26px !important; width: 30px !important; border-radius: 6px; }
.int-more .btn-icon { width: 13px; height: 13px; }
.int-more-plain { border-color: transparent !important; }
.int-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.int-metric { padding: 0 6px 0 8px; }
.int-metric + .int-metric { border-left: 1px solid var(--border-soft); }
.int-metric:first-child { padding-left: 0; }
.int-metric-value { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.int-metric-label { margin-top: 2px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-card-actions { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.btn-int-manage { flex: 0 0 116px; height: 34px; justify-content: center; font-size: 12.5px; font-weight: 600; }
.split-btn-int { flex: 0 0 auto; }
.split-btn-int .btn { height: 34px; font-size: 12.5px; }
.btn-int-sync { padding: 0 14px 0 16px; }
.split-btn-int .split-btn-toggle { width: 32px; }
.split-btn-blue .split-btn-toggle { border-left: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 0 8px 8px 0 !important; }
.split-btn-blue .split-btn-toggle .btn-icon { color: #fff; }
.int-actions-more { margin-left: auto; }
.int-actions-more .int-more { height: 34px !important; width: 34px !important; }

.int-available { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 14px; }
.int-available > * { min-width: 0; }
.int-card-sm { position: relative; height: 175px; padding: 14px 14px 12px; }
.int-card-sm .int-card-head { gap: 10px; }
.int-card-sm .int-card-title { font-size: 12.5px; }
.int-card-sm .int-card-desc { font-size: 11px; line-height: 14px; }
.int-features { margin-top: 12px; }
.int-features { padding-right: 78px; }
.int-features li { display: flex; align-items: center; gap: 9px; height: 24px; font-size: 11.5px; letter-spacing: -.1px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.int-features li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.int-feature-dot { width: 16px; height: 16px; }
.int-feature-dot .icon { width: 9px; height: 9px; }
.btn-int-connect { position: absolute; right: 14px; bottom: 12px; height: 26px; padding: 0 12px; font-size: 12px; border-radius: 6px; }

.int-row-flow { display: grid; grid-template-columns: 694fr 335fr; gap: 16px; }
.int-row-flow > * { min-width: 0; }
.int-flow-card { height: 279px; padding: 14px 16px 12px 18px; }
.int-flow-head { display: flex; align-items: flex-start; justify-content: space-between; }
.int-flow-head .card-title { font-size: 14.5px; }
.int-flow-sub { margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.int-flow-head .view-all { margin-left: 0; font-size: 12px; }
.int-flow { display: flex; align-items: flex-start; gap: 0; margin-top: 12px; }
.int-flow-col { flex: 0 0 auto; width: 138px; }
.int-flow-col-src { width: 146px; }
.int-flow-label { height: 22px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.int-flow-tile { display: flex; align-items: center; gap: 7px; height: 24px; margin-top: 4px; padding: 0 7px; border-radius: 6px; background: var(--bg-selected-16); font-size: 10.5px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.int-flow-tile span { overflow: hidden; text-overflow: ellipsis; }
.int-flow-mark { display: inline-flex; flex: 0 0 14px; width: 14px; height: 14px; }
.int-flow-mark .service-mark, .int-flow-mark .provider-mark { width: 100%; height: 100%; }
.int-icon-mark { align-items: center; justify-content: center; border-radius: 3px; background: var(--bg-ink); color: #fff; }
.int-icon-mark .icon { width: 9px; height: 9px; }
.int-flow-ico { width: 13px; height: 13px; color: var(--text-link); flex: 0 0 auto; }
.int-flow-brace { position: relative; flex: 0 0 34px; height: 172px; margin-top: 26px; }
.int-flow-brace::before { content: ''; position: absolute; left: 10px; top: 10px; bottom: 10px; border-left: 1.5px dashed var(--border-primary-5); border-radius: 6px; }
.int-flow-brace::after { content: ''; position: absolute; left: 4px; right: 20px; top: 10px; border-top: 1.5px dashed var(--border-primary-5); }
.int-flow-arrow { position: absolute; left: 10px; right: 6px; top: 50%; border-top: 1.5px dashed var(--border-primary-5); }
.int-flow-arrow::after { content: ''; position: absolute; right: -2px; top: -4px; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--border-primary-6); }
.int-flow-brace-out::after { display: none; }
.int-flow-center { flex: 0 0 140px; width: 140px; height: 134px; margin-top: 22px; padding: 14px 12px 0; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-subtle-2); text-align: center; }
.int-flow-app { width: 36px; height: 36px; margin: 0 auto; border-radius: 9px; }
.int-flow-app-title { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.int-flow-app-sub { margin-top: 4px; font-size: 10.5px; line-height: 13px; color: var(--text-3); }
.int-activity-card { height: 279px; padding: 12px 14px 8px; }
.int-activity { margin-top: 2px; }
.int-activity-row { display: flex; align-items: center; gap: 10px; height: 37px; border-bottom: 1px solid var(--border-soft); }
.int-activity-row:last-child { border-bottom: 0; }
.int-act-dot { width: 22px; height: 22px; }
.int-act-dot .icon { width: 11px; height: 11px; }
.int-act-logo { display: inline-flex; flex: 0 0 22px; width: 22px; height: 22px; }
.int-act-logo .provider-mark, .int-act-logo .service-mark { width: 100%; height: 100%; }
.int-activity-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 14px; }
.int-activity-title { font-size: 11px; letter-spacing: -.2px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-activity-sub { margin-top: 1px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-activity-time { flex: 0 0 auto; font-size: 10px; color: var(--muted); white-space: nowrap; }

.int-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin-top: -16px; }
.int-rail-card { padding: 8px 12px 8px; }
.int-rail-card .rep-card-header { height: 24px; }
.int-health { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding-bottom: 6px; }
.int-health-donut { flex: 0 0 110px; width: 110px; height: 110px; margin-left: 2px; }
.int-health-donut canvas { width: 110px !important; height: 110px !important; }
.int-health-value { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.int-health-label { font-size: 10.5px; color: var(--text-3); }
.int-health-legend li { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.int-health-legend .legend-dot { width: 10px; height: 10px; }
.int-accounts li + li { border-top: 1px solid var(--border-soft); }
.int-account-row { display: flex; align-items: center; gap: 8px; height: 39px; text-decoration: none; color: inherit; }
.int-account-logo { display: inline-flex; flex: 0 0 22px; width: 22px; height: 22px; }
.int-account-logo .provider-mark, .int-account-logo .service-mark { width: 100%; height: 100%; }
.int-account-label { flex: 1 1 auto; min-width: 0; font-size: 11px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-account-lines { display: flex; flex-direction: column; align-items: flex-start; width: 74px; font-size: 10px; line-height: 13px; color: var(--text-3); white-space: nowrap; }
.int-account-lines span:first-child { color: var(--text-2); font-weight: 500; }
.int-account-chev { width: 12px; height: 12px; color: var(--text-tertiary); flex: 0 0 auto; }
.int-error-row { display: flex; align-items: center; gap: 10px; height: 42px; border-bottom: 1px solid var(--border-soft); }
.int-error-row:last-child { border-bottom: 0; }
.int-rail-card .card-title { font-size: 12.5px; letter-spacing: -.2px; }
.int-missing li { display: flex; align-items: center; gap: 8px; height: 30px; border-bottom: 1px solid var(--border-soft); font-size: 10.5px; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.int-missing li:last-child { border-bottom: 0; }
.int-missing-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint-warning-5); color: var(--text-warning-4); }
.int-missing-icon .icon { width: 11px; height: 11px; }
.int-cta { display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 12px; border: 1px solid var(--border-primary-4); border-radius: 10px; background: var(--tint-info); }
.int-cta-icon { display: inline-flex; flex: 0 0 auto; color: var(--text-link-7); margin-top: 8px; }
.int-cta-icon .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.int-cta-title { font-size: 13px; font-weight: 700; color: var(--text); }
.int-cta-text { margin-top: 4px; font-size: 11px; line-height: 15px; color: var(--text-3); }
.btn-int-browse { height: 28px; margin-top: 10px; padding: 0 10px 0 12px; font-size: 11.5px; color: var(--text-link); border-color: var(--border-primary); gap: 8px; }
.btn-int-browse .btn-arrow-right { width: 12px; height: 12px; }

@media (max-width: 1440px) {
  .int-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .int-kpis { grid-template-columns: repeat(3, 1fr); }
  .int-connected { gap: 12px; }
  .int-available { grid-template-columns: repeat(2, 1fr); }
  .int-row-flow { grid-template-columns: 1.6fr 1fr; }
  .int-flow { overflow-x: auto; }
  .btn-int-primary { width: auto; padding: 0 18px; }
}
@media (max-width: 1366px) {
  .int-layout { grid-template-columns: 1fr; }
  .int-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .int-connected { grid-template-columns: 1fr 1fr; }
  .int-row-flow { grid-template-columns: 1fr; }
  .int-flow-card { height: auto; }
}
@media (max-width: 1400px) {
  .int-kpis { grid-template-columns: repeat(2, 1fr); }
  .int-connected { grid-template-columns: 1fr; }
  .int-available { grid-template-columns: 1fr; }
  .int-card-sm { height: auto; padding-bottom: 48px; }
  .int-rail { grid-template-columns: 1fr; }
  .int-heading { flex-wrap: wrap; }
}

/* --- 27 Budgets & Cost Planning ----------------------------------------- */
.fin-actions-primary-budget { gap: 10px; margin-left: 10px; }
.btn-fin-copy { height: 32px; padding: 0 12px; font-size: 11.5px; font-weight: 500; color: var(--text-link-2); border-color: var(--border-primary); }
.btn-fin-copy:hover { color: var(--text-link-2); background: var(--bg-hover); }
.fin-kpis-budget { grid-template-columns: 168fr 163fr 172fr 160fr 175fr 171fr 298fr; gap: 5px; margin: 8px 0 8px; }
.fin-kpi-card-budget { height: 92px; }
.fin-budget-status-card { background: var(--tint-success-14); border-color: var(--border-success-2); }
.fin-budget-status-pill { margin-top: 3px; height: 22px; padding: 0 9px 0 6px; font-size: 11.5px; font-weight: 600; }
.fin-budget-status-note { margin-top: 6px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.fin-subnav-budget { margin: 0 0 8px; }
.fin-layout-budgets { grid-template-columns: minmax(0, 1fr) 305px; column-gap: 10px; margin-bottom: 10px; }
.fin-main-budget { padding-top: 0; }
.fin-row-charts-budget { grid-template-columns: 510fr 495fr; gap: 10px; }
.fin-chart-card-budget { height: 200px; padding: 8px 12px 6px; }
.chart-area-budget-trend { height: 138px; }
.legend-dash-blue { border-top: 2px dashed var(--border-primary-7); width: 14px; }
.fin-donut-body-budget { margin-top: 8px; }
.fin-donut-legend-budget li { height: 21px; }
.fin-donut-legend-budget .fin-legend-pct { width: 44px; }
.fin-donut-legend-budget .fin-legend-value { width: 50px; }
.fin-tabs-chips-budget .fin-chip-tab { font-size: 11px; padding: 0 8px; gap: 6px; }
.fin-tabs-chips-budget .fin-chip-tab.is-active { padding: 0 11px; }
.fin-search-budget { flex-basis: 196px; width: 196px; }
.sites-table.fin-budget-table thead th { font-size: 10.5px; letter-spacing: -.2px; padding: 0 5px; }
.sites-table.fin-budget-table tbody td { height: 25px; padding: 0 4px; font-size: 10.5px; letter-spacing: -.1px; }
.fin-budget-table .table-link { font-size: 10.5px; }
.fin-budget-table .fin-icon-cell { gap: 6px; }
.fin-cat-link { color: var(--text-link); }
.fin-dark-tile { color: var(--text-disabled-4); }
.fin-dark-tile .icon { width: 11px; height: 11px; }
.fin-dark-tile.rank-logo-xs .icon { width: 9px; height: 9px; }
.fin-dark-tile-green { background: var(--success); color: #fff; }
.fin-table-card-budget { margin-bottom: 0; }
.fin-table-card-budget .fin-table-footer { height: 40px; }
/* budgets rail */
.fin-rail-budget { gap: 9px; margin-top: 0; }
.fin-pace-card { padding: 11px 12px 12px; }
.fin-pace-row { display: flex; align-items: center; justify-content: space-between; height: 22px; margin-top: 4px; font-size: 11px; color: var(--text-3); }
.fin-pace-row strong { font-size: 11.5px; font-weight: 600; color: var(--text); }
.fin-pace-bar { flex: none; height: 8px; margin: 2px 0 6px; border-radius: 4px; }
.fin-pace-warning { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 9px 10px; border-radius: 7px; background: var(--tint-danger); font-size: 10.5px; line-height: 14px; color: var(--text-danger); }
.fin-pace-warning-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--text-danger-2); }
.fin-committed-card { padding: 10px 12px 10px; }
.fin-committed-list { margin-top: 4px; }
.fin-committed-row { display: flex; align-items: center; gap: 9px; height: 38px; border-bottom: 1px solid var(--border-soft); }
.fin-committed-tile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 6px; color: #fff; }
.fin-committed-tile .icon { width: 13px; height: 13px; }
.fin-committed-tile-navy { background: var(--bg-ink); }
.fin-committed-tile-red { background: var(--danger); }
.fin-committed-tile-blue { background: var(--primary); }
.fin-committed-tile-amber { background: var(--warning); }
.fin-committed-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 14px; }
.fin-committed-name { font-size: 11px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-committed-sub { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.fin-tag-xs { height: 15px; padding: 0 5px; font-size: 9.5px; border-radius: 4px; }
.fin-committed-amount { font-size: 11.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-committed-total { display: flex; align-items: center; justify-content: space-between; height: 28px; padding-left: 12px; font-size: 11.5px; font-weight: 700; color: var(--text); }
.fin-alerts-card { background: var(--tint-danger-8); border-color: var(--border-danger-7); padding: 10px 12px 8px; }
.fin-alerts-list { margin-top: 4px; }
.fin-alerts-list li { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.fin-alert-icon { width: 13px; height: 13px; color: var(--text-danger-2); flex: 0 0 auto; }
.fin-alert-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-alert-when { font-size: 10px; color: var(--muted); }
.fin-bottom-budget { grid-template-columns: 270fr 250fr 260fr 522fr; gap: 10px; }
.fin-bottom-card-budget { height: 124px; padding: 8px 10px 6px; }
.fin-rank-row-budget { height: 19.5px; gap: 6px; border-bottom: 0; }
.fin-rank-row-budget .fin-rank-num { width: 10px; font-size: 10px; }
.fin-rank-row-budget .fin-rank-link { font-size: 10.5px; }
.fin-rank-bar { flex: 0 0 44px; height: 5px; margin: 0; }
.fin-rank-row-budget .fin-rank-value { width: 44px; text-align: right; font-size: 10.5px; }
.fin-donut-body-scope { margin-top: 2px; }
.fin-donut-scope { flex-basis: 86px; width: 86px; height: 86px; }
.fin-donut-scope canvas { width: 86px !important; height: 86px !important; }
.fin-donut-value-sm { font-size: 12px; line-height: 14px; }
.fin-donut-legend-scope { margin-left: 14px; }
.fin-donut-legend-scope li { height: 21px; font-size: 10.5px; }
.fin-donut-legend-scope .fin-legend-pct { width: 40px; }
.fin-forecast-caption { margin-top: -2px; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.fin-forecast-legend { justify-content: flex-end; height: 14px; margin: 2px 0 0; gap: 12px; font-size: 10px; }
.fin-forecast-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 4px; }
.fin-forecast-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; height: 100%; }
.fin-forecast-pair { display: flex; align-items: flex-end; gap: 2px; flex: 1 1 auto; width: 100%; justify-content: center; }
.fin-forecast-budget { display: block; width: 12px; border-radius: 2px 2px 0 0; background: var(--bg-selected-17); }
.fin-forecast-val { display: block; width: 8px; border-radius: 2px 2px 0 0; background: var(--primary); }
.fin-forecast-lab { margin-top: 3px; font-size: 9px; color: var(--muted); }
.fin-qa-card .fin-bottom-header { margin-bottom: 4px; }
.fin-qa-grid-budget { grid-template-columns: repeat(3, 1fr); gap: 6px 8px; margin-top: 2px; }
.fin-qa-grid-budget .fin-qa-btn { height: 30px; font-size: 10.5px; }
.fin-qa-btn-dark { color: var(--text-2); border-color: var(--border-default); }
.fin-qa-btn-dark .btn-icon { color: var(--text-link); }
.fin-qa-btn-dark:hover { color: var(--text); background: var(--bg-subtle); border-color: var(--border-strong); }

/* --- 28 Transactions & Financial Ledger --------------------------------- */
.fin-layout-transactions { grid-template-columns: minmax(0, 1fr) 257px; }
.fin-kpis-6 { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fin-kpi-card-txn { height: 96px; }
.fin-kpi-card-txn .fin-kpi-icon { flex-basis: 34px; width: 34px; height: 34px; }
.fin-kpi-card-txn .fin-kpi-label { font-size: 10.5px; letter-spacing: -.25px; }
.fin-row-charts-txn { grid-template-columns: 440fr 310fr 295fr; gap: 10px; }
.fin-chart-card-txn { height: 206px; padding: 8px 12px 6px; }
.chart-area-txn-cash { height: 144px; }
.control-range-icon .control-icon { width: 12px; height: 12px; margin-right: 6px; color: var(--text-link); }
.fin-accounts-card .fin-card-header .view-all { font-size: 10.5px; }
.fin-accounts-list { margin-top: 4px; }
.fin-account-row { display: flex; align-items: center; gap: 8px; height: 26px; border-bottom: 1px solid var(--border-soft); font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.fin-account-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fin-account-balance { font-size: 11.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fin-account-row .kpi-trend { width: 50px; justify-content: center; height: 16px; font-size: 10px; padding: 0 4px; }
.fin-accounts-total { display: flex; align-items: center; gap: 8px; height: 28px; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--text); }
.fin-accounts-total span { flex: 1 1 auto; }
.fin-accounts-total strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.fin-accounts-total .kpi-trend { width: 50px; justify-content: center; height: 16px; font-size: 10px; padding: 0 4px; }
.fin-donut-body-txn { margin-top: 6px; }
.fin-donut-body-txn .fin-donut-lg { flex-basis: 118px; width: 118px; height: 118px; }
.fin-donut-body-txn .fin-donut-lg canvas { width: 118px !important; height: 118px !important; }
.fin-donut-legend-txn { margin-left: 8px; }
.fin-donut-legend-txn li { height: 17.5px; font-size: 10px; letter-spacing: -.2px; gap: 5px; }
.fin-donut-legend-txn .fin-legend-pct { width: 38px; }
.fin-tabs-chips-txn .fin-chip-tab { font-size: 11px; padding: 0 8px; gap: 6px; }
.fin-tabs-chips-txn .fin-chip-tab.is-active { padding: 0 11px; }
.fin-chip-dot { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; color: #fff; }
.fin-chip-dot .icon { width: 7px; height: 7px; stroke-width: 3; }
.fin-chip-dot-green { background: var(--success); } .fin-chip-dot-red { background: var(--danger); } .fin-chip-dot-blue { background: var(--primary); } .fin-chip-dot-amber { background: var(--warning); }
.fin-chip-dot-active { background: transparent; }
.fin-chip-dot-active .icon { width: 12px; height: 12px; stroke-width: 2; }
.fin-search-txn { flex-basis: 136px; width: 136px; }
.sites-table.fin-txn-table thead th { font-size: 10.5px; letter-spacing: -.2px; padding: 0 5px; }
.sites-table.fin-txn-table tbody td { height: 25.2px; padding: 0 4px; font-size: 10.5px; letter-spacing: -.1px; }
.fin-txn-table .table-link { font-size: 10.5px; }
.fin-txn-table .fin-icon-cell { gap: 6px; }
.fin-tile-round { border-radius: 50%; }
.fin-txn-table .th-sort-icon-r { margin-left: 3px; }
.fin-bottom-txn { grid-template-columns: 265fr 250fr 260fr 260fr; gap: 10px; }
.fin-bottom-card-txn { height: 164px; padding: 8px 10px 6px; }
.fin-rank-row-txn { height: 25.5px; gap: 7px; }
.fin-rank-side { display: flex; flex-direction: column; align-items: flex-end; line-height: 12px; }
.fin-rank-date { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.fin-rank-row-txn .fin-rank-text-dark { font-size: 10.5px; letter-spacing: -.2px; }
.fin-unrec-list { margin-top: 2px; }
.fin-unrec-row { display: flex; align-items: center; gap: 8px; height: 38px; border-bottom: 1px solid var(--border-soft); }
.fin-unrec-row:last-child { border-bottom: 0; }
.fin-unrec-row .fin-feed-title-normal { font-size: 10.5px; }
.fin-unrec-row .fin-feed-sub { font-size: 9.5px; letter-spacing: -.1px; }
.fin-upcoming-date-sm { flex-basis: 40px; font-size: 10.5px; }
.fin-recon-body { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.fin-ring-lg { flex-basis: 76px; width: 76px; height: 76px; }
.fin-ring-lg > span { width: 56px; height: 56px; font-size: 14px; }
.fin-recon-list { margin-top: 4px; }
.fin-recon-list li { display: flex; align-items: center; gap: 6px; height: 16px; font-size: 10px; color: var(--text-2); white-space: nowrap; }
.fin-recon-list .legend-dot { width: 7px; height: 7px; }
.btn-fin-recon { height: 26px; margin-top: 6px; font-size: 10.5px; }
/* transaction rail */
.fin-detail-rail-txn { padding: 11px 12px 12px; }
.fin-detail-head-txn { gap: 10px; }
.fin-detail-circle-green { background: var(--tint-success); color: var(--text-success); }
.fin-detail-ref-row { margin-top: 4px; }
.fin-detail-ref-row .fin-status { height: 17px; padding: 0 6px 0 4px; font-size: 10px; }
.fin-txn-amount { margin-top: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.5px; line-height: 24px; color: var(--text); }
.fin-txn-direction { margin-top: 5px; }
.fin-txn-when { margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.fin-qa-grid-txn { margin-top: 8px; gap: 8px; }
.fin-qa-grid-txn .fin-qa-btn { height: 32px; }
.fin-detail-kv-txn .fin-detail-row { min-height: 27px; }
.fin-detail-kv-txn .fin-detail-row dt { flex-basis: 96px; font-size: 10.5px; letter-spacing: -.15px; }
.fin-detail-kv-txn .fin-detail-row dd { font-size: 10.5px; }
.fin-detail-row-notes { align-items: flex-start; }
.fin-detail-row-notes dd { white-space: normal; }
.fin-detail-notes-inline { font-size: 10.5px; line-height: 14px; color: var(--text-2); }
.fin-ref-link { display: inline-flex; align-items: center; gap: 5px; }
.btn-fin-view-payments { height: 32px; margin-top: 10px; font-size: 11.5px; }

/* Finance pages — laptop widths (rails stay to 1440, drop below the main column at 1366; tables scroll inside their card) */
@media (max-width: 1440px) {
  .fin-layout, .fin-layout-revenue, .fin-layout-expenses, .fin-layout-profit, .fin-layout-payments, .fin-layout-transactions { grid-template-columns: minmax(0, 1fr) 224px; }
  .fin-layout-budgets { grid-template-columns: minmax(0, 1fr) 270px; }
  .fin-heading .page-subtitle { white-space: normal; }
  .fin-actions { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .fin-actions-export { margin-left: 12px; }
  .sites-table.fin-table { min-width: 960px; }
  .fin-kpis-budget { grid-template-columns: repeat(4, 1fr); }
  .fin-budget-status-card { grid-column: span 2; }
}
@media (max-width: 1366px) {
  .fin-layout, .fin-layout-revenue, .fin-layout-expenses, .fin-layout-profit, .fin-layout-payments, .fin-layout-transactions, .fin-layout-budgets { grid-template-columns: 1fr; row-gap: 10px; }
  .fin-rail { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .fin-detail-rail, .fin-rail-profit, .fin-rail-budget { display: block; }
  .fin-rail-profit > * + *, .fin-rail-budget > * + * { margin-top: 10px; }
  .fin-kpis-7, .fin-kpis-6 { grid-template-columns: repeat(4, 1fr); }
  .fin-row-charts-overview, .fin-row-charts-exp, .fin-row-charts-pay, .fin-row-charts-txn { grid-template-columns: 1fr 1fr; }
  .fin-row-charts-overview > :first-child, .fin-row-charts-exp > :first-child, .fin-row-charts-pay > :first-child, .fin-row-charts-txn > :first-child { grid-column: span 2; }
  .fin-bottom { grid-template-columns: 1fr 1fr; }
  .fin-tabs-row { flex-wrap: wrap; height: auto; gap: 8px; }
  .fin-tabs { overflow-x: auto; }
  .fin-table-head-profit { flex-wrap: wrap; height: auto; gap: 8px; }
  .fin-profit-filters { flex-wrap: wrap; }
  .fin-status-line { justify-content: flex-start; }
}
@media (max-width: 1400px) {
  .fin-row-charts-rev, .fin-row-charts-profit, .fin-row-charts-budget { grid-template-columns: 1fr; }
  .fin-kpis-7, .fin-kpis-6 { grid-template-columns: repeat(3, 1fr); }
  .fin-kpis-budget { grid-template-columns: repeat(3, 1fr); }
  .fin-budget-status-card { grid-column: span 3; }
  .fin-rail { grid-template-columns: 1fr; }
  .fin-chart-card, .fin-chart-card-rev, .fin-chart-card-exp, .fin-chart-card-profit, .fin-chart-card-pay, .fin-chart-card-txn, .fin-chart-card-budget { height: auto; }
}

/* ==========================================================================
   ADD NEW BOOKMAKER WIZARD (design-reference/Forms/Bookmaker-1..5, 1536x1024)
   Scoped to .page-bwizard. Reuses the approved SiteHub form primitives
   (.wz-input/.wz-select/.wz-label/.wz-field) and adds the bookmaker-specific
   tables, payment cards and review components. All colours are semantic theme
   tokens so light/dark follow automatically.
   ========================================================================== */
.page-content.page-bwizard { padding: 0 20px 20px 4px; }
.page-bwizard [hidden] { display: none !important; }
.page-bwizard {
  --bw-rail: 264px; --bw-gap: 20px; --bw-card-pad: 14px;
  --bw-head: #0B1180;      /* card + page headings (reference navy) */
  --bw-label: #1A2360;     /* field labels */
  --bw-value: #24306B;     /* control values and table cells */
  --bw-help: #7C86B8;      /* helper text */
  --bw-sub: #5F6FC4;       /* page + section subtitles */
}
html[data-theme="dark"] .page-bwizard {
  --bw-head: #E8ECFF;
  --bw-label: #CBD5E1;
  --bw-value: #E2E8F5;
  --bw-help: #8FA3B8;
  --bw-sub: #9DB0D8;
}

/* ---- heading ------------------------------------------------------------ */
.bw-form { display: block; }
.bw-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 0 6px; }
.bw-crumb { padding: 0; font-size: 12px; }
.bw-crumb a { color: var(--muted); text-decoration: none; }
.bw-crumb a:hover { color: var(--text-link); }
.bw-crumb .breadcrumb-current { color: var(--text-2); font-weight: 500; }
.bw-title { margin: 4px 0 0; font-size: 25.5px; font-weight: 700; line-height: 28px; letter-spacing: -.55px; color: var(--bw-head); }
.bw-subtitle { margin: 4px 0 0; font-size: 12px; line-height: 15px; color: var(--bw-sub); }
.bw-heading-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.bw-btn { height: 33px; padding: 0 14px; font-size: 12px; font-weight: 600; gap: 8px; border-radius: 8px; color: var(--bw-label); }
.bw-btn .btn-icon { width: 14px; height: 14px; }
.bw-btn-backto { margin-left: 22px; }
.bw-arrow-left { transform: rotate(-90deg); }
.bw-arrow-right { transform: rotate(90deg); }

.bw-flash { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--tint-success); color: var(--text-success); font-size: 12.5px; font-weight: 500; }
.bw-flash .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.bw-flash-error { background: var(--tint-danger); color: var(--text-danger); }

/* ---- 5-step progress ---------------------------------------------------- */
.bw-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0 0 9px; padding: 8px 13px; }
.bw-step { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; padding-right: 4px; }
.bw-step-link { position: absolute; inset: -6px 0; z-index: 2; }
.bw-step-badge { display: inline-flex; flex: 0 0 auto; }
.bw-step-num { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--bg-selected-6); color: var(--bw-label); font-size: 11.5px; font-weight: 700; }
.bw-step.is-current .bw-step-num { width: 30px; height: 30px; background: var(--primary); color: #fff; font-size: 13px; }
.bw-step-check { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--success); color: #fff; }
.bw-step-check .icon { width: 13px; height: 13px; stroke-width: 3.2; }
.bw-step-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bw-step-label { font-size: 11px; font-weight: 700; line-height: 13px; color: var(--bw-label); white-space: nowrap; }
.bw-step.is-current .bw-step-label { color: var(--text-link); }
.bw-step-sub { font-size: 10px; line-height: 12px; color: var(--bw-help); white-space: nowrap; }
.bw-step.is-current .bw-step-sub { color: var(--text-link); font-weight: 600; }
.bw-step.is-done .bw-step-sub { color: var(--text-success); }
.bw-step-line { position: relative; flex: 1 1 auto; min-width: 24px; height: 1px; margin-left: 6px; background: var(--border-default-2); }
.bw-step-line.is-done { background: var(--success); }
.bw-step-line-dot { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: var(--success); color: #fff; }
.bw-step-line-dot .icon { width: 8px; height: 8px; stroke-width: 4; }

/* ---- body grid ---------------------------------------------------------- */
.bw-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--bw-rail); gap: var(--bw-gap); align-items: start; }
.bw-main { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.bw-rail { display: flex; flex-direction: column; gap: 12px; }
.bw-card { padding: 9px 12px 10px; }
.bw-card.has-error { border-color: var(--border-danger); }

/* ---- card section head -------------------------------------------------- */
.bw-sec-head { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 6px; }
.bw-sec-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px; }
.bw-sec-ico .icon { width: 17px; height: 17px; }
.bw-sec-ico-sm { flex-basis: 30px; width: 30px; height: 30px; border-radius: 8px; }
.bw-sec-ico-sm .icon { width: 16px; height: 16px; }
.bw-tone-blue { background: var(--tint-info); color: var(--text-link); }
.bw-tone-green { background: var(--tint-success); color: var(--text-success); }
.bw-tone-purple { background: var(--tint-purple); color: var(--text-purple); }
.bw-sec-text { flex: 1 1 auto; min-width: 0; }
.bw-sec-title { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 17px; letter-spacing: -.1px; color: var(--bw-head); }
.bw-sec-sub { margin: 2px 0 0; font-size: 10.5px; line-height: 14px; color: var(--bw-sub); }
.bw-sec-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-top: 2px; }

/* ---- fields ------------------------------------------------------------- */
.page-bwizard .wz-field { margin-bottom: 12px; }
.page-bwizard .wz-field:last-child,
.page-bwizard .bw-field-last,
.page-bwizard .bw-field-desc,
.page-bwizard .bw-field-tags,
.page-bwizard .bw-field-social,
.page-bwizard .bw-field-notes { margin-bottom: 0; }
/* step 1 breathes more than the dense steps (reference rhythm) */
.bw-body-basic .wz-field { margin-bottom: 17px; }
.bw-body-basic .bw-basic-grid .wz-field { margin-bottom: 22px; }
.bw-body-basic .bw-basic-grid + .bw-row-select { margin-top: 16px; }
.bw-body-basic .bw-grid-desc .wz-field { margin-bottom: 0; }
.bw-body-basic .bw-row-select + .bw-row-select { margin-top: 0; }
.bw-body-basic .bw-grid-bottom .wz-field { margin-bottom: 15px; }
.bw-body-basic .bw-grid-bottom .wz-field:last-child { margin-bottom: 0; }
.page-bwizard .wz-label { margin-bottom: 5px; font-size: 11.5px; line-height: 14px; font-weight: 600; color: var(--bw-label); }
.page-bwizard .wz-optional { font-weight: 400; color: var(--muted); }
.page-bwizard .wz-input, .page-bwizard .wz-select { height: 33px; font-size: 12px; border-radius: 7px; border-color: var(--border-default-2); color: var(--bw-value); }
.page-bwizard .wz-select { font-weight: 500; }
.page-bwizard .wz-help { display: block; margin-top: 4px; font-size: 10px; line-height: 13px; color: var(--bw-help); }
.page-bwizard .wz-error { font-size: 11px; margin-top: 5px; }
.bw-error-block { display: block; margin: -4px 0 10px; }
.bw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.bw-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.bw-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; }
.bw-grid-last .wz-field, .bw-field-last { margin-bottom: 0; }
.bw-body-affiliate .wz-field { margin-bottom: 10px; }
.bw-body-affiliate .bw-main { gap: 9px; }
.bw-body-affiliate .bw-card { padding: 8px 12px 9px; }

/* input with a divided icon cell (reference style) */
.bw-input-ico, .bw-select-ico { position: relative; }
.bw-ico-cell { position: absolute; left: 1px; top: 1px; bottom: 1px; display: inline-flex; align-items: center; justify-content: center; width: 33px; border-right: 1px solid var(--border-default-2); color: var(--text-3); pointer-events: none; z-index: 1; }
.bw-ico-cell .icon { width: 15px; height: 15px; }
.bw-ico-plain { border-right: 0; width: 31px; }
.bw-ico-text { font-size: 13px; font-weight: 600; color: var(--text-secondary-3); }
.bw-input-ico .wz-input, .bw-select-ico .wz-select { padding-left: 45px; }
.bw-select-ico.bw-select-flag .wz-select { padding-left: 70px; }
.bw-select-flagmark { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); display: inline-flex; z-index: 1; pointer-events: none; }
.bw-input-date .wz-input { padding-right: 8px; }
/* date field: pretty label under a transparent native date input */
.bw-date { position: relative; display: flex; align-items: center; }
.bw-date-text { position: absolute; left: 45px; right: 10px; font-size: 12px; color: var(--bw-value); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-date-input { color: transparent !important; }
.bw-date-input::-webkit-datetime-edit { opacity: 0; }
.bw-date-input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.bw-date-input:focus { color: var(--bw-value) !important; }
.bw-date-input:focus::-webkit-datetime-edit { opacity: 1; }
.bw-date-input:focus + .bw-date-text, .bw-date:focus-within .bw-date-text { display: none; }
.bw-input-unit .wz-input { padding-right: 52px; }
.bw-unit { position: absolute; right: 1px; top: 1px; bottom: 1px; display: inline-flex; align-items: center; padding: 0 11px; border-left: 1px solid var(--border-default-2); border-radius: 0 7px 7px 0; background: var(--bg-subtle); font-size: 12px; font-weight: 500; color: var(--text-secondary-3); pointer-events: none; }
.bw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-track-5); }
.bw-dot-green { background: var(--success-3); }
.bw-dot-amber { background: var(--warning); }
.bw-dot-blue  { background: var(--primary-3); }
.bw-dot-red   { background: var(--danger); }
.bw-dot-gray  { background: var(--bg-track-5); }
.page-bwizard .bw-textarea { height: 65px; padding: 8px 11px; line-height: 16px; resize: vertical; font-size: 11.5px; }
.page-bwizard .bw-textarea-short { height: 54px; }
.page-bwizard .bw-textarea-tall { height: 104px; }
.bw-help-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bw-counter { font-size: 11px; color: var(--muted); }
.page-bwizard .wz-textarea-wrap { position: relative; display: block; }
.bw-counter-abs { position: absolute; right: 11px; bottom: 6px; font-size: 10px; color: var(--bw-help); }
.bw-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bw-static { display: flex; align-items: center; gap: 9px; height: 33px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary-3); background: var(--bg-subtle); border: 1px solid var(--border-default-2); }
.bw-static-green { background: var(--tint-success); border-color: var(--tint-success); color: var(--text-success); }
.bw-info-ico { display: inline-flex; color: var(--text-link); }
.bw-info-ico .icon { width: 14px; height: 14px; }
.bw-link { color: var(--text-link); text-decoration: none; font-weight: 500; }
.bw-link:hover { text-decoration: underline; }
.bw-link-u { text-decoration: underline; }
.bw-text-warn { color: var(--text-warning); }
.bw-text-err { color: var(--text-danger); }
.bw-warn-link { text-decoration: none; }
.bw-warn-link:hover { text-decoration: underline; }

/* ---- step 1: logo + chips + tags + socials ------------------------------ */
.bw-basic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 0 18px; }
.bw-logo-col { min-width: 0; }
.bw-logo-label { margin-bottom: 6px; }
.bw-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; height: 129px; padding: 12px; border: 1px dashed var(--border-default-4); border-radius: 8px; background: var(--bg-subtle-4); }
.bw-dropzone.has-logo { border-style: dashed; }
.bw-logo-remove { position: absolute; right: 8px; top: 8px; display: none; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--border-default-2); border-radius: 50%; background: var(--bg-surface); color: var(--fg-danger); cursor: pointer; padding: 0; }
.bw-dropzone.has-logo .bw-logo-remove { display: inline-flex; }
.bw-logo-remove .icon { width: 10px; height: 10px; stroke-width: 3; }
.bw-logo-preview { display: none; }
.bw-dropzone.has-logo .bw-logo-preview { display: inline-flex; }
.bm-logo.bw-logo-big { width: 62px; height: 62px; border-radius: 12px; }
.bm-logo.bw-logo-big .logo-mark { width: 46px; height: 42px; }
.bw-logo-img { width: 62px; height: 62px; border-radius: 12px; object-fit: contain; }
.bw-upload-btn { height: 32px; padding: 0 14px; gap: 8px; font-size: 12px; font-weight: 600; border-radius: 8px; color: var(--text-link); border-color: var(--border-primary); cursor: pointer; }
.bw-upload-btn .btn-icon { width: 14px; height: 14px; color: var(--text-link); }
.bw-dropzone-note { font-size: 10.5px; color: var(--muted); }
.bw-logo-ok { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 7px 10px; border-radius: 7px; background: var(--tint-success); color: var(--text-success); font-size: 11.5px; font-weight: 500; }
.bw-logo-ok .icon { width: 15px; height: 15px; flex: 0 0 auto; }

.bw-row-select { margin-top: 0; }
.bw-chips-field { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 33px; padding: 4px 32px 4px 8px; border: 1px solid var(--border-default-2); border-radius: 8px; background: var(--bg-input); }
.bw-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bw-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 6px 0 9px; border-radius: 6px; background: var(--bg-selected); color: var(--text-link-6); font-size: 11.5px; font-weight: 500; }
.bw-chip-more { padding: 0 9px; }
.bw-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border: 0; padding: 0; background: transparent; color: currentColor; cursor: pointer; opacity: .75; }
.bw-chip-x .icon { width: 10px; height: 10px; stroke-width: 2.6; }
.bw-chip-x:hover { opacity: 1; }
.bw-chips-add { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; }
.bw-chips-field .wz-select-chevron { right: 11px; }

.bw-grid-desc { display: grid; grid-template-columns: minmax(0, 593fr) minmax(0, 349fr); gap: 0 22px; }
.bw-field-desc, .bw-field-tags { margin-bottom: 0; }
.bw-tags-box { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 65px; padding: 8px 9px; border: 1px solid var(--border-default-2); border-radius: 8px; background: var(--bg-input); }
.bw-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 6px 0 8px; border-radius: 6px; background: var(--bg-selected); color: var(--text-link-6); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.bw-tag-static { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 5px; background: var(--bg-selected); color: var(--text-link-6); font-size: 9px; font-weight: 500; white-space: nowrap; }
.bw-tag-add { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border: 1px solid var(--border-primary); border-radius: 6px; background: var(--bg-surface); color: var(--text-link); font-family: var(--font); font-size: 10.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bw-tag-add .icon { width: 12px; height: 12px; stroke-width: 2.4; }

.bw-grid-bottom { display: grid; grid-template-columns: minmax(0, 542fr) minmax(0, 473fr); gap: 13px; }
.bw-field-social { margin-bottom: 0; }
.bw-social-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bw-social { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border-default-2); border-radius: 8px; background: var(--bg-surface); cursor: pointer; }
.bw-social input { position: absolute; opacity: 0; width: 0; height: 0; }
.bw-social.is-on { border-color: var(--border-default-2); }
.bw-social:not(.is-on) { opacity: .38; }
.bw-social-ico { display: inline-flex; }
.bw-social-ico svg { width: 18px; height: 18px; }
.bw-social-add { color: var(--text-link); border-style: solid; opacity: 1; }
.bw-social-add .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.bw-social-note { margin-left: 6px; font-size: 11.5px; color: var(--bw-sub); }
.bw-field-notes { margin-bottom: 0; }

/* ---- tables ------------------------------------------------------------- */
.bw-table-wrap { overflow-x: auto; border: 1px solid var(--border-default-2); border-radius: 8px; }
.bw-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.bw-table thead th { height: 24px; padding: 0 11px; background: var(--bg-subtle-8); border-bottom: 1px solid var(--border-default-2); font-size: 11px; font-weight: 700; color: var(--bw-label); text-align: left; white-space: nowrap; }
.bw-table tbody td { height: 26px; padding: 0 11px; border-bottom: 1px solid var(--border-subtle); color: var(--bw-value); vertical-align: middle; line-height: 1; }
.bw-table-accounts tbody td, .bw-table-contacts tbody td { height: 31px; }
.bw-table-links tbody td { height: 27px; }
.bw-table tbody tr:last-child td { border-bottom: 0; }
.bw-table tbody tr[hidden] { display: none; }
.bw-col-num { width: 38px; color: var(--bw-value); font-weight: 500; }
.bw-col-center { text-align: center; }
.bw-col-actions { width: 108px; text-align: right; }
.bw-col-actions-wide { width: 178px; }
.bw-table th.bw-col-actions { text-align: center; }
.bw-cell-text { font-size: 11.5px; color: var(--bw-value); white-space: nowrap; }
.bw-cell-muted { color: var(--text-tertiary-2); font-weight: 400; }
.bw-cell-id .bw-cell-text { font-weight: 500; }
.page-bwizard .bw-cell-input { height: 24px; font-size: 11px; }
.page-bwizard .bw-cell-input-always { height: 24px; font-size: 11px; max-width: 178px; padding: 0 9px; }
.bw-cell-geo, .bw-cell-site, .bw-cell-person, .bw-cell-url { }
.bw-cell-geo, .bw-cell-site, .bw-cell-person { white-space: nowrap; }
.bw-cell-geo .bw-flag, .bw-cell-site .bm-logo, .bw-cell-person .bw-avatar { vertical-align: middle; margin-right: 9px; }
.bw-cell-flag { line-height: 0; }
.bw-cell-url { white-space: nowrap; }
.bw-cell-url .bw-copy { vertical-align: middle; margin-left: 8px; }
.bw-flag { display: inline-flex; align-items: center; }
.bw-flag svg { width: 20px; height: 13px; border-radius: 2px; display: block; }
.bm-logo.bw-site-logo { width: 22px; height: 22px; border-radius: 5px; display: inline-flex; vertical-align: middle; }
.bm-logo.bw-site-logo .logo-mark { width: 17px; height: 15px; }
.bw-select-geo { display: inline-block; width: 132px; }
.page-bwizard .bw-select-geo .wz-select { height: 24px; padding-left: 34px; padding-right: 22px; font-size: 11px; }
.bw-select-geo .bw-ico-cell { width: 29px; }
.bw-select-geo .bw-flag svg { width: 17px; height: 12px; }
.bw-select-geo .wz-select-chevron { right: 8px; width: 13px; height: 13px; }
.bw-pill { height: 20px; padding: 0 8px 0 7px; font-size: 10.5px; font-weight: 600; }
.bw-pill-plain { padding: 0 9px; }
.bw-pill-cat { background: var(--tint-purple); color: var(--text-purple-2); }
.status-purple { background: var(--tint-purple); color: var(--text-purple-2); }
.status-purple .status-pill-dot { background: var(--purple); }
.status-sky { background: var(--bg-selected-6); color: var(--text-link-6); }
.status-sky .status-pill-dot { background: var(--primary-3); }
.bw-radio { position: relative; display: inline-flex; cursor: pointer; }
.bw-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.bw-radio-mark { display: inline-block; width: 15px; height: 15px; border: 1.5px solid var(--border-default-4); border-radius: 50%; background: var(--bg-surface); }
.bw-radio input:checked + .bw-radio-mark { border-color: var(--primary); border-width: 5px; }
.bw-radio input:focus-visible + .bw-radio-mark { box-shadow: 0 0 0 3px rgba(59, 130, 246, .28); }
.bw-toggle-primary { cursor: pointer; }
.bw-toggle-primary input { position: absolute; opacity: 0; width: 0; height: 0; }
.bw-toggle-primary input:checked + .wz-toggle-track { background: var(--primary); }
.bw-toggle-primary input:checked + .wz-toggle-track::after { transform: translateX(14px); }
.bw-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.bw-btn-edit { height: 24px; padding: 0 8px; gap: 5px; font-size: 10.5px; font-weight: 600; border-radius: 6px; color: var(--text-link); border-color: var(--border-primary); }
.bw-btn-edit .btn-icon { width: 11px; height: 11px; color: var(--text-link); }
.bw-more-btn { width: 20px; height: 24px; border: 0; background: transparent; color: var(--text-3); padding: 0; }
.bw-more-btn .icon { width: 14px; height: 14px; }
.bw-row-more { position: relative; }
.bw-row-more .dropdown-menu { right: 0; left: auto; }
.bw-menu-danger { color: var(--text-danger) !important; }
.bw-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--border-primary); border-radius: 6px; background: var(--bg-surface); color: var(--text-link); cursor: pointer; }
.bw-icon-btn .icon { width: 12px; height: 12px; }
.bw-icon-btn-plain { border: 0; background: transparent; }
.bw-copy { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border: 1px solid var(--border-default-2); border-radius: 5px; background: var(--bg-surface); color: var(--text-3); cursor: pointer; }
.bw-copy .icon { width: 12px; height: 12px; }
.bw-copy.is-copied { border-color: var(--border-success); color: var(--text-success); }
.bw-btn-test { height: 24px; padding: 0 12px; font-size: 10.5px; font-weight: 600; border-radius: 6px; color: var(--text-link); border-color: var(--border-primary); }
.bw-btn-test.is-ok { color: var(--text-success); border-color: var(--border-success); }
.bw-btn-test.is-fail { color: var(--text-danger); border-color: var(--border-danger); }
.bw-btn-add { height: 32px; padding: 0 13px; gap: 8px; font-size: 11.5px; font-weight: 600; border-radius: 8px; color: var(--text-link); border-color: var(--border-primary); }
.bw-btn-add .btn-icon { width: 13px; height: 13px; color: var(--text-link); }
.bw-ico-up { display: inline-flex; transform: rotate(180deg); }

.bw-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
.bw-table-foot-plain { padding: 3px 2px 0; }
.bw-table-count { font-size: 11px; color: var(--bw-help); }
.bw-pager { display: flex; align-items: center; gap: 9px; }
.bw-pager-label { font-size: 11px; color: var(--bw-help); }
.bw-pager-select { display: inline-block; width: 64px; }
.page-bwizard .bw-pager-select .wz-select { height: 23px; padding: 0 22px 0 9px; font-size: 11px; }
.bw-pager-select .wz-select-chevron { right: 8px; width: 13px; height: 13px; }
.bw-pager-btns { display: inline-flex; gap: 5px; }
.bw-pager-btn { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border: 1px solid var(--border-default-2); border-radius: 6px; background: var(--bg-surface); color: var(--text-3); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 0; }
.bw-pager-btn .icon { width: 12px; height: 12px; }
.bw-pager-btn[disabled] { opacity: .45; cursor: default; }
.bw-pager-btn.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }

.bw-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.page-bwizard .bw-toolbar .wz-input, .page-bwizard .bw-toolbar .wz-select { height: 30px; }
.bw-search { flex: 0 0 300px; }
.bw-search .wz-input { padding-left: 36px; }
.bw-search-ico { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.bw-bulk { display: inline-block; width: 168px; }
.bw-bulk .wz-select { font-weight: 600; }
.bw-btn-regions { margin-left: auto; height: 30px; padding: 0 13px; gap: 8px; font-size: 11.5px; font-weight: 600; border-radius: 7px; color: var(--text-link); border-color: var(--border-primary); }
.bw-btn-regions .btn-icon { width: 15px; height: 15px; color: var(--text-link); }

.bw-type-pill { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 9px 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; }
.bw-type-dot { display: inline-flex; }
.bw-type-dot .icon { width: 11px; height: 11px; }
.bw-type-green  { background: var(--tint-success); color: var(--text-success); }
.bw-type-blue   { background: var(--bg-selected-4); color: var(--text-link-6); }
.bw-type-purple { background: var(--tint-purple); color: var(--text-purple-2); }
.bw-type-amber  { background: var(--tint-warning); color: var(--text-warning); }
.bw-type-gray   { background: var(--bg-muted-2); color: var(--text-muted); }

/* collapsible advanced settings */
.bw-card-advanced { padding: 0; }
.bw-collapse-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font-family: var(--font); }
.bw-collapse-head .bw-sec-text { display: flex; flex-direction: column; }
.bw-collapse-head .bw-sec-title { font-size: 14px; }
.bw-collapse-chev { width: 16px; height: 16px; color: var(--text-3); flex: 0 0 auto; transition: transform .15s ease; }
.bw-card-advanced.is-open .bw-collapse-chev { transform: rotate(180deg); }
.bw-collapse-body { padding: 0 14px 14px; }

/* ---- step 4: payment cards, credentials, reporting, ops ----------------- */
/* step 4 packs four sections into one viewport in the reference; scope the
   tighter metrics to this step so steps 1-3 keep their own rhythm. */
.bw-body-payments .bw-main { gap: 7px; }
.bw-body-payments .bw-card { padding: 7px 12px 8px; }
.bw-body-payments .bw-sec-head { margin-bottom: 5px; }
.bw-body-payments .wz-field { margin-bottom: 8px; }
.bw-body-payments .wz-label { margin-bottom: 4px; line-height: 13px; }
.page-bwizard .bw-body-payments .wz-input, .page-bwizard .bw-body-payments .wz-select { height: 31px; }
.bw-body-payments .bw-toggle-row { height: 31px; }
.bw-body-payments .bw-static { height: 31px; }
.bw-body-payments .bw-btn-copy, .bw-body-payments .bw-btn-view { height: 31px; }
.bw-body-payments .bw-subpanel { padding: 7px; }
.bw-body-payments .bw-subpanel-head { margin-bottom: 6px; }
.bw-body-payments .bw-alert-row { padding: 7px 11px; }
.bw-body-payments .bw-footer { margin-top: 0; }
.bw-body-payments .bw-sec-ico { flex-basis: 30px; width: 30px; height: 30px; border-radius: 8px; }
.bw-body-payments .bw-sec-ico .icon { width: 15px; height: 15px; }
.bw-body-payments .bw-sec-title { font-size: 13px; line-height: 16px; }
.bw-body-payments .bw-sec-sub { font-size: 10px; line-height: 13px; }
.bw-body-payments .bw-alert-row { flex-wrap: nowrap; gap: 0 14px; }
.bw-body-payments .bw-toggle-alert { flex: 1 1 auto; min-width: 0; gap: 8px; }
.bw-body-payments .bw-toggle-alert .bw-toggle-label { font-size: 10.5px; white-space: nowrap; }
.bw-body-payments .bw-btn-back, .bw-body-payments .bw-btn-draft, .bw-body-payments .bw-btn-primary { height: 34px; }
.bw-body-payments .bw-ops-notes { padding: 0 11px; }

.bw-grid-pay2 { display: grid; grid-template-columns: minmax(0, 254fr) minmax(0, 176fr) minmax(0, 200fr) minmax(0, 356fr); gap: 0 16px; align-items: start; }
.bw-toggle { gap: 10px; }
.bw-toggle-label { font-size: 12.5px; font-weight: 500; color: var(--text-secondary-3); }
.bw-toggle-row { height: 38px; }
.bw-toggle-line { display: flex; align-items: center; gap: 10px; }
.bw-alert-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 2px; padding: 10px 12px; border-radius: 8px; background: var(--bg-subtle-8); }
.bw-toggle-alert .bw-toggle-label { font-size: 11.5px; }
.bw-toggle-alert .wz-toggle-track { flex-basis: 28px; width: 28px; height: 17px; }
.bw-toggle-alert .wz-toggle-track::after { width: 11px; height: 11px; }
.bw-toggle-alert input:checked + .wz-toggle-track::after { transform: translateX(11px); }

.bw-subpanel { margin-top: 2px; padding: 10px; border-radius: 10px; background: var(--bg-subtle-8); }
.bw-subpanel-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.bw-subpanel-title { margin: 1px 0 0; font-size: 12.5px; font-weight: 700; color: var(--bw-head); }
.bw-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bw-pay-grid-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bw-pay-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.bw-pay-grid-3 .bw-pay-card { padding: 9px 10px 10px; }
.bw-pay-grid-3 .bw-pay-body { grid-template-columns: minmax(0, 76fr) minmax(0, 96fr) minmax(0, 54fr) minmax(0, 84fr); gap: 0 6px; }
.bw-pay-grid-3 .bw-pay-label { font-size: 10px; }
.page-bwizard .bw-pay-grid-3 .bw-cell-input-always { font-size: 10.5px; padding: 0 7px; max-width: none; }
.bw-pay-grid-3 .bw-pay-name { font-size: 11.5px; }
.bw-pay-grid-3 .bw-pay-logo svg { width: 26px; height: 26px; border-radius: 6px; }
.bw-pay-grid-3 .bw-pill { height: 18px; padding: 0 5px 0 4px; font-size: 9px; gap: 4px; }
.bw-pay-grid-3 .bw-btn-edit { padding: 0 6px; font-size: 10px; }
.bw-pay-grid-3 .bw-icon-btn, .bw-pay-grid-3 .bw-copy { width: 20px; height: 20px; }
.bw-pay-grid-3 .bw-row-actions { gap: 3px; }
.bw-pay-grid-3 .bw-more-btn { width: 16px; }
.bw-pay-card { padding: 9px 11px 10px; border: 1px solid var(--border-default-2); border-radius: 9px; background: var(--bg-surface); }
.bw-pay-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.bw-pay-name { font-size: 12.5px; font-weight: 700; color: var(--bw-head); }
.bw-pay-logo { display: inline-flex; align-items: center; justify-content: center; }
.bw-pay-logo svg { width: 30px; height: 30px; border-radius: 7px; display: block; }
.bw-pay-logo-sm svg { width: 24px; height: 24px; border-radius: 6px; }
.bw-pay-logo-xs svg { width: 19px; height: 19px; border-radius: 5px; }
.bw-pay-body { display: grid; grid-template-columns: minmax(0, 118fr) minmax(0, 138fr) minmax(0, 84fr) minmax(0, 92fr); gap: 0 10px; align-items: start; }
.bw-pay-label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--bw-label); }
.bw-pay-field .wz-input { max-width: none; }
.bw-pay-detail { display: flex; align-items: center; gap: 6px; }
.bw-pay-field-status, .bw-pay-field-actions { padding-top: 0; }
.bw-pay-field-status .bw-pill { margin-top: 5px; }
.bw-pay-field-actions .bw-row-actions { margin-top: 3px; }

.bw-grid-creds { display: grid; grid-template-columns: minmax(0, 302fr) minmax(0, 302fr) minmax(0, 300fr) minmax(0, 138fr); gap: 0 16px; align-items: start; }
.bw-grid-creds2 { display: grid; grid-template-columns: minmax(0, 246fr) minmax(0, 250fr) minmax(0, 268fr) minmax(0, 278fr); gap: 0 16px; }
.bw-pass-row { display: flex; align-items: center; gap: 9px; }
.bw-input-pass { flex: 1 1 auto; }
.bw-input-pass .wz-input { padding-right: 36px; letter-spacing: .12em; }
.bw-pass-eye { position: absolute; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.bw-pass-eye .icon { width: 15px; height: 15px; }
.bw-btn-copy { height: 38px; padding: 0 14px; gap: 8px; font-size: 12px; font-weight: 600; border-radius: 8px; color: var(--text-link); border-color: var(--border-primary); white-space: nowrap; }
.bw-btn-copy .btn-icon { width: 14px; height: 14px; color: var(--text-link); }
.bw-field-2fa .bw-toggle { margin-top: 0; }

.bw-report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 202px; gap: 14px; align-items: start; }
/* reporting row: reference column weights, tighter select metrics so the
   longest option labels ("Affiliate Dashboard", "(UTC+0) GMT") never clip */
.bw-report-main .bw-grid-5 { grid-template-columns: minmax(0, 175fr) minmax(0, 150fr) minmax(0, 140fr) minmax(0, 150fr) minmax(0, 164fr); gap: 0 13px; }
.page-bwizard .bw-report-main .wz-select, .page-bwizard .bw-report-main .wz-input { font-size: 11.5px; }
.page-bwizard .bw-report-main .wz-select { padding-right: 26px; }
.page-bwizard .bw-report-main .bw-select-ico .wz-select { padding-left: 41px; }
.bw-report-main .wz-select-chevron { right: 9px; width: 13px; height: 13px; }
.bw-report-main .bw-ico-cell { width: 29px; }
.bw-report-main { min-width: 0; }
.bw-grid-report2 { display: grid; grid-template-columns: minmax(0, 132fr) minmax(0, 138fr) minmax(0, 214fr) minmax(0, 388fr); gap: 0 12px; }
.bw-import-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.bw-import-row .wz-input-wrap { flex: 1 1 auto; min-width: 0; }
.bw-import-row .bw-pill, .bw-import-row .bw-btn-view { flex: 0 0 auto; }
.bw-import-row .wz-input-wrap { flex: 1 1 auto; }
.bw-btn-view { height: 38px; padding: 0 11px; font-size: 11.5px; font-weight: 600; border-radius: 7px; color: var(--text-link); border-color: var(--border-primary); }
.bw-health-card { padding: 10px 12px 11px; border-radius: 10px; background: var(--tint-success-3); }
.bw-health-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bw-health-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; flex: 0 0 auto; }
.bw-health-ico .icon { width: 13px; height: 13px; stroke-width: 3.2; }
.bw-health-title { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--bw-head); }

.bw-select-priority { position: relative; display: block; }
.bw-select-priority .wz-select { padding-left: 30px; background: var(--tint-warning); border-color: var(--tint-warning); color: var(--text-warning); font-weight: 600; }
.bw-select-priority .bw-priority-dot { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--warning); z-index: 1; pointer-events: none; }
.bw-priority-high .wz-select { background: var(--tint-danger); border-color: var(--tint-danger); color: var(--text-danger); }
.bw-priority-high .bw-priority-dot { background: var(--danger); }
.bw-priority-low .wz-select { background: var(--bg-muted-2); border-color: var(--bg-muted-2); color: var(--text-muted); }
.bw-priority-low .bw-priority-dot { background: var(--bg-track-5); }
.bw-priority-pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 11px; border-radius: 7px; background: var(--tint-warning); color: var(--text-warning); font-size: 11.5px; font-weight: 700; }
.bw-priority-pill .bw-priority-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.bw-priority-pill.bw-priority-high { background: var(--tint-danger); color: var(--text-danger); }
.bw-priority-pill.bw-priority-high .bw-priority-dot { background: var(--danger); }

.bw-token-field { position: relative; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 34px 0 8px; border: 1px solid var(--border-default-2); border-radius: 8px; background: var(--bg-input); }
.bw-token-name { font-size: 12.5px; font-weight: 500; color: var(--text-secondary-3); }
.bw-token-empty { font-size: 12.5px; color: var(--muted-2); }
.bw-token-x { position: absolute; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; padding: 0; background: transparent; color: var(--text-3); cursor: pointer; z-index: 2; }
.bw-token-x .icon { width: 12px; height: 12px; }
.bw-token-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; }
.bw-token-static { padding-right: 10px; }
.bw-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.bw-avatar-xs { width: 20px; height: 20px; font-size: 9px; }
.bw-avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.bw-avatar-md { width: 30px; height: 30px; font-size: 11px; }
.bw-avatar-lg { width: 36px; height: 36px; font-size: 12.5px; }
.bw-avatar-dark { background: #4A3C33; }
.bw-avatar-pink { background: #F5A9D0; color: #7A2E5A; }
.bw-avatar-pink .icon { width: 15px; height: 15px; }
.bw-avatar-add { border: 1px dashed var(--border-default-4); background: var(--bg-surface); color: var(--text-3); cursor: pointer; }
.bw-avatar-add .icon { width: 14px; height: 14px; }
.bw-avatar-stack { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.bw-avatar-stack > * { margin-right: -8px; box-shadow: 0 0 0 2px var(--bg-surface); }
.bw-avatar-stack > *:last-child { margin-right: 0; }

/* ---- footers ------------------------------------------------------------ */
.bw-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 1px; }
.bw-footer-right { display: flex; align-items: center; gap: 10px; }
.bw-btn-back, .bw-btn-draft { height: 38px; padding: 0 16px; gap: 9px; font-size: 12px; font-weight: 600; border-radius: 8px; color: var(--bw-label); }
.bw-btn-back .btn-icon, .bw-btn-draft .btn-icon { width: 14px; height: 14px; }
.bw-btn-primary { height: 38px; padding: 0 18px; gap: 10px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; border: 1px solid var(--primary); }
.bw-btn-primary:hover { background: var(--primary-hover); }
.bw-btn-primary .btn-icon { width: 14px; height: 14px; }
.bw-btn-primary.is-busy { opacity: .7; pointer-events: none; }
.bw-footer-ops { align-items: stretch; }
.bw-ops-notes { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 1px solid var(--border-default-2); border-radius: 8px; background: var(--bg-surface); }
.bw-ops-notes-ico { display: inline-flex; color: var(--text-link); flex: 0 0 auto; }
.bw-ops-notes-ico .icon { width: 17px; height: 17px; }
.bw-ops-notes-text { display: flex; flex-direction: column; justify-content: center; gap: 1px; flex: 1 1 auto; min-width: 0; }
.bw-ops-notes-label { font-size: 11px; font-weight: 600; color: var(--text-secondary-3); }
.bw-ops-notes-input { width: 100%; border: 0; padding: 0; background: transparent; font-family: var(--font); font-size: 11.5px; color: var(--text-secondary-3); outline: none; }
.bw-ops-notes-input::placeholder { color: var(--muted-2); }

/* ---- right rail --------------------------------------------------------- */
.bw-rail-card { padding: 12px 13px 12px; }
.bw-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bw-rail-title { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: -.1px; color: var(--bw-head); }
.bw-rail-note { font-size: 11.5px; color: var(--text-tertiary-2); }
.bw-rail-edit { font-size: 11.5px; font-weight: 500; color: var(--text-link); text-decoration: underline; }
.bw-rail-copy { margin: 8px 0 0; font-size: 11.5px; line-height: 16px; color: var(--muted); }
.bw-setup-bar { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.bw-setup-track { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--bg-selected-6); overflow: hidden; }
.bw-setup-fill { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.bw-setup-pct { font-size: 12.5px; font-weight: 700; color: var(--text-secondary-3); min-width: 30px; text-align: right; }
.bw-setup-list { list-style: none; margin: 10px -6px 0; padding: 0; }
.bw-setup-item { position: relative; display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 8px 0 8px; border-radius: 8px; font-size: 12.5px; color: var(--text-secondary-3); }
.bw-setup-link { position: absolute; inset: 0; z-index: 1; }
.bw-setup-item.is-current { background: var(--bg-selected); }
.bw-setup-item.is-current .bw-setup-label { color: var(--text-link); font-weight: 600; }
.bw-setup-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-selected-6); color: var(--text-secondary-3); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.bw-setup-item.is-current .bw-setup-dot { background: var(--primary); color: #fff; }
.bw-setup-dot-done { background: var(--success); color: #fff; }
.bw-setup-dot-done .icon { width: 13px; height: 13px; stroke-width: 3.2; }
.bw-setup-label { font-size: 12px; }

.bw-preview .bw-rail-head { margin-bottom: 11px; }
.bw-preview-top { display: flex; align-items: flex-start; gap: 11px; }
.bm-logo.bw-preview-logo { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px; }
.bm-logo.bw-preview-logo .logo-mark { width: 40px; height: 36px; }
.bw-preview-id { min-width: 0; flex: 1 1 auto; }
.bw-preview-name { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.2px; color: var(--bw-head); }
.bw-preview-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 7px; }
.bw-preview-chips .bw-pill { height: 19px; padding: 0 7px 0 6px; font-size: 9.5px; white-space: nowrap; }
.bw-preview-chips .status-pill-dot { width: 6px; height: 6px; }
.bw-preview-desc { margin: 10px 0 0; font-size: 11.5px; line-height: 16px; color: var(--text-tertiary-2); }
.bw-preview-meta { list-style: none; margin: 9px 0 0; padding: 9px 0 0; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 8px; }
.bw-preview-meta li { display: flex; align-items: center; gap: 11px; font-size: 11.5px; color: var(--text-secondary-3); min-width: 0; }
.bw-meta-ico { width: 16px; height: 16px; flex: 0 0 16px; color: var(--text-link-5); }
.bw-meta-link { color: var(--text-link); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-meta-ext { width: 12px; height: 12px; color: var(--text-link); flex: 0 0 auto; }

.bw-summary .bw-rail-head { margin-bottom: 10px; }
.bw-fact-list, .bw-stat-list, .bw-tips-list, .bw-next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bw-fact-list li, .bw-tips-list li { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--text-secondary-3); }
.bw-fact-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-selected-6); color: var(--text-link); flex: 0 0 auto; }
.bw-fact-ico .icon { width: 12px; height: 12px; }
.bw-fact-muted { color: var(--muted); }
.bw-check-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; flex: 0 0 auto; }
.bw-check-badge .icon { width: 11px; height: 11px; stroke-width: 3.2; }
.bw-check-ok { background: var(--success); }
.bw-check-warn { background: var(--warning); }
.bw-check-err { background: var(--danger); }
.bw-summary .bw-rail-title { margin-bottom: 0; }
.bw-stat-list { margin-top: 11px; gap: 10px; }
.bw-stat-list li { display: grid; grid-template-columns: 20px 26px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary-3); }
.bw-stat-list b { font-size: 13px; font-weight: 700; color: var(--text-link-5); }
.bw-stat-foot { display: flex; align-items: center; gap: 22px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.bw-stat-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary-3); }
.bw-legend-dot { width: 18px; height: 18px; border-radius: 50%; }
.bw-legend-green { background: var(--tint-success); box-shadow: inset 0 0 0 5px var(--success); }
.bw-legend-red { background: var(--tint-danger); box-shadow: inset 0 0 0 5px var(--danger); }
.bw-stat-foot .bw-stat-legend:last-child { color: var(--text-danger); }
.bw-health .bw-rail-title { margin-bottom: 10px; }
.bw-health-list { gap: 8px; }
.bw-health-list li { font-size: 11.5px; line-height: 15px; align-items: flex-start; }
.bw-health-list .bw-check-badge { margin-top: 0; }
.bw-kv { margin: 11px 0 0; display: flex; flex-direction: column; gap: 9px; }
.bw-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.bw-kv dt { display: flex; align-items: center; gap: 10px; color: var(--text-secondary-3); }
.bw-kv dd { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text-link-5); }
.bw-kv-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-selected-6); color: var(--text-link); flex: 0 0 auto; }
.bw-kv-ico .icon { width: 12px; height: 12px; }
.bw-kv-ico-green { background: transparent; }
.bw-kv-green { color: var(--text-success); }
.bw-kv-red { color: var(--text-danger); }
.bw-tips { background: var(--bg-selected-6); border-color: var(--bg-selected-6); }
.bw-tips-inner { }
.bw-tips-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.bw-tips-ico { display: inline-flex; color: var(--text-link); }
.bw-tips-ico .icon { width: 20px; height: 20px; }
.bw-tips-list li { font-size: 11px; line-height: 14px; align-items: flex-start; }

/* ---- step 5: review ----------------------------------------------------- */
.bw-main-review { gap: 8px; }
.bw-banner { display: flex; align-items: center; gap: 12px; padding: 8px 13px; border-radius: 10px; background: var(--tint-success-3); border: 1px solid var(--border-success); }
.bw-banner-warn { background: var(--tint-warning); border-color: var(--border-warning, var(--tint-warning-7)); }
.bw-banner-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--success); color: #fff; flex: 0 0 auto; }
.bw-banner-ico .icon { width: 17px; height: 17px; stroke-width: 3; }
.bw-banner-warn .bw-banner-ico { background: var(--warning); }
.bw-banner-text { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.bw-banner-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.2px; color: var(--text-success-2); white-space: nowrap; }
.bw-banner-warn .bw-banner-title { color: var(--text-warning); }
.bw-banner-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--bw-help); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-banner-stats, .bw-rv-stats { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.bw-banner-stats li { display: flex; align-items: center; gap: 7px; padding: 0 9px; border-left: 1px solid var(--border-subtle); }
.bw-banner-stats li:first-child { border-left: 0; }
.bw-bstat-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-selected-6); color: var(--text-link); flex: 0 0 auto; }
.bw-bstat-ico .icon { width: 14px; height: 14px; }
.bw-bstat-green { background: var(--tint-success); color: var(--text-success); }
.bw-bstat-amber { background: var(--tint-warning); color: var(--text-warning); }
.bw-bstat-text { display: flex; flex-direction: column; gap: 1px; }
.bw-bstat-text b { font-size: 12.5px; font-weight: 700; color: var(--bw-head); line-height: 15px; }
.bw-bstat-text span { font-size: 10px; color: var(--bw-help); white-space: nowrap; }

.bw-rv-grid-1 { display: grid; grid-template-columns: minmax(0, 504fr) minmax(0, 526fr); gap: 10px; }
.bw-rv-grid-2 { display: grid; grid-template-columns: minmax(0, 438fr) minmax(0, 295fr) minmax(0, 286fr); gap: 10px; }
.bw-rv-grid-3 { display: grid; grid-template-columns: minmax(0, 643fr) minmax(0, 386fr); gap: 11px; }
.bw-rv-card { padding: 8px 11px 9px; }
.bw-rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bw-rv-title { margin: 0; flex: 1 1 auto; font-size: 13.5px; font-weight: 700; letter-spacing: -.15px; color: var(--bw-head); }
.bw-rv-edit { height: 28px; flex: 0 0 auto; }
.bw-rv-badge { flex: 0 0 auto; }
.bw-rv-brand { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.bm-logo.bw-rv-logo { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px; }
.bm-logo.bw-rv-logo .logo-mark { width: 42px; height: 38px; }
.bw-rv-brand-text { min-width: 0; }
.bw-rv-brand-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.bw-rv-name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; color: var(--bw-head); }
.bw-rv-desc { margin: 6px 0 0; font-size: 11.5px; line-height: 16px; color: var(--bw-help); }
.bw-rv-cols { display: grid; grid-template-columns: minmax(0, 258fr) minmax(0, 208fr); gap: 0 12px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.bw-rv-cols > .bw-rv-kv:last-child dt { flex-basis: 70px; }
.bw-rv-cols-aff { border-top: 0; padding-top: 0; grid-template-columns: minmax(0, 288fr) minmax(0, 209fr); gap: 0 14px; }
.bw-rv-cols-aff .bw-rv-kv:first-child dt { flex-basis: 108px; }
.bw-rv-cols-aff .bw-rv-kv:last-child dt { flex-basis: 82px; }
.bw-rv-cols > .bw-rv-kv + .bw-rv-kv { padding-left: 14px; border-left: 1px solid var(--border-subtle); }
.bw-rv-cols-aff > .bw-rv-kv + .bw-rv-kv { border-left: 0; padding-left: 14px; }
.bw-rv-kv { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.bw-rv-kv > div { display: flex; align-items: center; gap: 8px; font-size: 11.5px; min-width: 0; }
.bw-rv-kv dt { display: flex; align-items: center; gap: 8px; flex: 0 0 92px; color: var(--bw-help); white-space: nowrap; }
.bw-rv-kv dd { margin: 0; display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-weight: 500; color: var(--bw-value); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-rv-kv-plain dt { flex-basis: 108px; }
.bw-rv-kv-access dt { flex-basis: 92px; }
.bw-rv-kv-access > div { font-size: 10.5px; }
.bw-kv-i { width: 14px; height: 14px; flex: 0 0 14px; color: var(--text-3); }
.bw-rv-flagdd .bw-flag svg { width: 19px; height: 13px; }
.bw-rv-tags { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.bw-rv-person { gap: 8px; }
.bw-rv-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-rv-table-wrap { margin-top: 9px; }
.bw-rv-table tbody td { height: 30px; }
.bw-rv-stats { margin-bottom: 9px; }
.bw-rv-stats li { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-left: 1px solid var(--border-subtle); }
.bw-rv-stats li:first-child { border-left: 0; padding-left: 0; }
.bw-tabs { display: flex; align-items: stretch; gap: 0; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.bw-tab { padding: 0 9px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-tertiary-2); cursor: pointer; white-space: nowrap; }
.bw-tab.is-active { color: var(--text-link); border-bottom-color: var(--primary); }
.bw-rv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bw-rv-list li { display: flex; align-items: center; gap: 9px; height: 25px; border-bottom: 1px solid var(--border-subtle); font-size: 11.5px; }
.bw-rv-list li:last-child { border-bottom: 0; }
.bw-rv-list-name { display: inline-flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; color: var(--text-secondary-3); }
.bw-rv-list-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-rv-list-link { flex: 0 0 auto; color: var(--text-link); font-size: 11.5px; }
.bw-rv-list-grow { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.bw-rv-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11.5px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.bw-rv-more .icon { width: 13px; height: 13px; }
.bw-rv-pay { display: grid; grid-template-columns: minmax(0, 158fr) minmax(0, 120fr); gap: 0 9px; }
.bw-rv-pay-col { display: flex; flex-direction: column; min-width: 0; }
.bw-rv-pay-col + .bw-rv-pay-col { padding-left: 12px; border-left: 1px solid var(--border-subtle); }
.bw-rv-label { font-size: 10.5px; color: var(--bw-help); margin-bottom: 4px; }
.bw-rv-label-gap { margin-top: 11px; }
.bw-rv-value, .bw-rv-payline { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 11.5px; color: var(--bw-head); white-space: nowrap; }
.bw-rv-value b, .bw-rv-payline b { font-weight: 700; }
.bw-rv-payline { gap: 5px; font-size: 10px; flex-wrap: nowrap; min-width: 0; }
.bw-rv-payline b { flex: 0 0 auto; white-space: nowrap; }
.bw-rv-payline .bw-pill { height: 16px; padding: 0 5px; font-size: 8.5px; flex: 0 0 auto; }
.bw-rv-payline .bw-pay-logo svg { width: 20px; height: 20px; border-radius: 5px; }
.bw-rv-strong { font-size: 12.5px; font-weight: 700; color: var(--text-link-5); }
.bw-rv-backup { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; min-width: 0; }
.bw-rv-backup-text { min-width: 0; }
.bw-rv-backup-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bw-rv-backup-text b { font-size: 10.5px; font-weight: 700; line-height: 13px; color: var(--bw-head); }
.bw-rv-backup-text span { font-size: 10px; color: var(--bw-help); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-rv-passrow .bw-rv-mask { letter-spacing: .12em; font-weight: 700; color: var(--text-link-5); }
.bw-rv-passrow dd { flex: 1 1 auto; justify-content: space-between; }
.bw-rv-ops { display: flex; align-items: stretch; gap: 0; }
.bw-rv-ops-col { display: flex; flex-direction: column; padding: 0 12px; min-width: 0; }
.bw-rv-ops-col:first-child { padding-left: 0; }
.bw-rv-ops-col-sep { border-left: 1px solid var(--border-subtle); }
.bw-rv-subtitle { margin: 0 0 7px; font-size: 11.5px; font-weight: 700; color: var(--bw-label); }
.bw-rv-subtitle-blue { color: var(--text-link-5); font-size: 13px; }
.bw-rv-person-big { display: flex; align-items: center; gap: 10px; }
.bw-rv-person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-rv-person-text b { font-size: 12.5px; font-weight: 600; color: var(--text-secondary-3); }
.bw-rv-person-text span { font-size: 11px; color: var(--text-tertiary-2); }
.bw-rv-contact-btns { display: flex; gap: 7px; margin-top: 10px; }
.bw-rv-more-contacts { font-size: 12px; }
.bw-rv-validation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.bw-rv-validation > div + div { padding-left: 14px; border-left: 1px solid var(--border-subtle); }

.bw-rail-review { gap: 6px; }
.bw-rail-review .bw-rail-card { padding: 8px 12px 8px; }
.bw-rail-review .bw-setup-item { height: 23px; }
.bw-rail-review .bw-setup-list { margin-top: 7px; }
.bw-rail-review .bw-setup-dot { width: 21px; height: 21px; font-size: 10.5px; }
.bw-rail-review .bw-preview-meta { gap: 5px; margin-top: 7px; padding-top: 7px; }
.bw-rail-review .bw-preview-desc { margin-top: 8px; }
.bw-rail-review .bw-next-list { gap: 6px; margin-top: 7px; }
.bw-rail-review .bw-next-list li { font-size: 11.5px; }
.bw-rail-review .bw-preview-logo { width: 44px; height: 44px; flex-basis: 44px; }
.bw-rail-review .bw-rail-copy { margin-top: 6px; }
.bw-completion { padding: 13px 14px 14px; }
.bw-donut { position: relative; display: flex; align-items: center; justify-content: center; margin: 5px auto 7px; width: 96px; height: 96px; }
.bw-donut-svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.bw-donut-track { fill: none; stroke: var(--bg-muted); stroke-width: 10; }
.bw-donut-fill { fill: none; stroke: var(--success); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.bw-donut-text { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bw-donut-text b { font-size: 20px; font-weight: 700; letter-spacing: -.5px; color: var(--text-primary-2); }
.bw-donut-text span { font-size: 12px; color: var(--text-tertiary-2); }
.bw-setup-list-review { margin-top: 0; }
.bw-next-list { counter-reset: bwnext; gap: 10px; margin-top: 11px; }
.bw-next-list li { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--text-tertiary-2); }
.bw-next-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-selected-6); color: var(--text-link); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.bw-btn-create { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 40px; border-radius: 9px; border: 1px solid var(--success); background: var(--success); color: #fff; font-family: var(--font); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.bw-btn-create:hover { background: var(--fill-success-2); border-color: var(--fill-success-2); }
.bw-btn-create .btn-icon { width: 15px; height: 15px; stroke-width: 3; }
.bw-btn-create[disabled] { opacity: .55; cursor: not-allowed; }
.bw-btn-create.is-busy { opacity: .7; pointer-events: none; }

/* ---- dark-mode nudges (tokens cover the rest) --------------------------- */
html[data-theme="dark"] .bw-social:not(.is-on) { opacity: .5; }
html[data-theme="dark"] .bw-social { background: var(--bg-raised, var(--bg-surface)); }
html[data-theme="dark"] .bw-logo-img { background: #fff; }
html[data-theme="dark"] .bw-avatar-pink { background: #7A3A5F; color: #FBD5E8; }
html[data-theme="dark"] .bw-avatar-dark { background: #6B584B; }
html[data-theme="dark"] .bw-donut-track { stroke: var(--bg-muted); }

/* ---- wizard: density fixes (wrapping, step 4 health/backup) --------------- */
.wz-check-list li .wz-check-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-check-list li .wz-check-val { flex: 0 0 auto; white-space: nowrap; }
.wz-dense .wz-check-list-2col li { font-size: 10px; gap: 6px; }
.wz-dense .wz-check-list-2col .wz-check-val { font-size: 10px; }
.wz-dense .wz-backup-grid { gap: 0 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.05fr); }
.wz-dense .wz-backup-grid .wz-toggle-label { font-size: 10.5px; white-space: nowrap; }
.wz-dense .wz-backup-grid .wz-toggle-sub { font-size: 9.5px; white-space: nowrap; }
.wz-dense .wz-backup-grid .wz-status-box-inline { padding: 6px 8px; }
.wz-dense .wz-backup-grid .wz-status-title { font-size: 10.5px; white-space: nowrap; }
.wz-dense .wz-backup-grid .wz-status-text { font-size: 9.5px; line-height: 12px; }
.wz-dense .wz-health-grid { gap: 10px; grid-template-columns: minmax(0, 1fr) 150px; }
.wz-dense .wz-toggle-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-dense .wz-toggle-label { white-space: nowrap; }
.wz-dense .wz-toggle-text { min-width: 0; }

/* ---- wizard: density pass 3 (reference typographic scale) ----------------- */
.wz-dense-3 { --form-control-h: 26px; }
.wz-dense-3 .wz-intro-card { padding: 8px 12px 9px; }
.wz-dense-3 .wz-section-head-plain { margin-bottom: 7px; }
.wz-dense-3 .wz-section-icon { flex-basis: 32px; width: 32px; height: 30px; }
.wz-dense-3 .wz-section-title { font-size: 12.5px; line-height: 15px; }
.wz-dense-3 .wz-section-sub { font-size: 10px; }
.wz-dense-3 .wz-option-card { height: 44px; gap: 8px; }
.wz-dense-3 .wz-option-ico { flex-basis: 28px; width: 28px; height: 28px; }
.wz-dense-3 .wz-option-title { font-size: 11px; }
.wz-dense-3 .wz-option-sub { font-size: 9.5px; }
.wz-dense-3 .wz-sub-card { padding: 8px 10px 8px; }
.wz-dense-3 .wz-numbered-head { margin-bottom: 6px; }
.wz-dense-3 .wz-section-icon-sm { flex-basis: 30px; width: 30px; height: 28px; }
.wz-dense-3 .wz-section-icon-sm .icon { width: 14px; height: 14px; }
.wz-dense-3 .wz-num-title { font-size: 11.5px; line-height: 14px; }
.wz-dense-3 .wz-num-sub { font-size: 9.5px; line-height: 11px; }
.wz-dense-3 .wz-num-right { gap: 6px; }
.wz-dense-3 .wz-sub-card .wz-field { margin-bottom: 5px; }
.wz-dense-3 .wz-sub-card .wz-label, .wz-dense-3 .wz-label { font-size: 10px; margin-bottom: 3px; line-height: 12px; }
.wz-dense-3 .wz-sub-card .wz-input, .wz-dense-3 .wz-sub-card .wz-select, .wz-dense-3 .wz-static, .wz-dense-3 .wz-input, .wz-dense-3 .wz-select { height: 26px; font-size: 10.5px; }
.wz-dense-3 .wz-sub-card .wz-input-icon-left .wz-input { padding-left: 28px; }
.wz-dense-3 .wz-input-icon { left: 8px; width: 13px; height: 13px; }
.wz-dense-3 .wz-textarea, .wz-dense-3 .wz-textarea-sm { height: 64px; }
.wz-dense-3 .wz-btn { font-size: 10.5px; }
.wz-dense-3 .wz-btn-sm { height: 24px; padding: 0 9px; font-size: 10px; }
.wz-dense-3 .wz-btn-xs { height: 22px; font-size: 10px; }
.wz-dense-3 .wz-btn-row-3 .wz-btn, .wz-dense-3 .wz-btn-row-2 .wz-btn, .wz-dense-3 .wz-btn-primary-md, .wz-dense-3 .wz-btn-under, .wz-dense-3 .wz-btn-add, .wz-dense-3 .wz-field-btn-bottom .wz-btn, .wz-dense-3 .wz-btn-full, .wz-dense-3 .wz-btn-row .wz-btn { height: 26px; font-size: 10.5px; }
.wz-dense-3 .wz-btn .btn-icon { width: 12px; height: 12px; }
.wz-dense-3 .wz-toggle-track { flex-basis: 28px; width: 28px; height: 16px; }
.wz-dense-3 .wz-toggle-track::after { width: 10px; height: 10px; top: 3px; left: 3px; }
.wz-dense-3 .wz-toggle input:checked + .wz-toggle-track::after { transform: translateX(12px); }
.wz-dense-3 .wz-toggle { gap: 8px; }
.wz-dense-3 .wz-toggle-label { font-size: 10.5px; line-height: 13px; }
.wz-dense-3 .wz-toggle-sub { font-size: 9.5px; line-height: 12px; }
.wz-dense-3 .wz-toggle-list { gap: 6px; margin: 0 0 6px; }
.wz-dense-3 .wz-toggle-line, .wz-dense-3 .wz-toggle-row { font-size: 10.5px; }
.wz-dense-3 .wz-toggle-grid-2 { gap: 4px 10px; }
.wz-dense-3 .wz-toggle-compact .wz-toggle-label { font-size: 10px; }
.wz-dense-3 .wz-check { font-size: 10.5px; gap: 6px; }
.wz-dense-3 .wz-check-box { width: 14px; height: 14px; }
.wz-dense-3 .wz-check-grid .wz-check { font-size: 10px; }
.wz-dense-3 .wz-check-grid { gap: 4px 8px; }
.wz-dense-3 .wz-check-list li { height: 18px; font-size: 10px; }
.wz-dense-3 .wz-check-ok, .wz-dense-3 .wz-check-warn, .wz-dense-3 .wz-check-err, .wz-dense-3 .wz-check-opt { flex-basis: 14px; width: 14px; height: 14px; }
.wz-dense-3 .wz-check-ok .icon, .wz-dense-3 .wz-check-warn .icon { width: 8px; height: 8px; }
.wz-dense-3 .wz-stat-tile { padding: 5px 8px; gap: 2px; }
.wz-dense-3 .wz-stat-label { font-size: 9px; }
.wz-dense-3 .wz-stat-value { font-size: 10.5px; }
.wz-dense-3 .wz-stat-big { font-size: 14px; }
.wz-dense-3 .wz-stat-ico { flex-basis: 26px; width: 26px; height: 26px; }
.wz-dense-3 .wz-status-box { padding: 7px 10px; }
.wz-dense-3 .wz-status-box-inline { padding: 6px 9px; }
.wz-dense-3 .wz-status-title { font-size: 10.5px; }
.wz-dense-3 .wz-status-text { font-size: 9.5px; line-height: 12px; }
.wz-dense-3 .wz-note-box { padding: 5px 9px; font-size: 9.5px; line-height: 12px; }
.wz-dense-3 .wz-info-box { padding: 5px 9px; font-size: 10px; }
.wz-dense-3 .wz-help { font-size: 9.5px; }
.wz-dense-3 .wz-table th, .wz-dense-3 .wz-table td { height: 22px; font-size: 10px; }
.wz-dense-3 .wz-table th { font-size: 9.5px; }
.wz-dense-3 .wz-pill { height: 17px; font-size: 9.5px; padding: 0 7px; }
.wz-dense-3 .wz-kv > div { height: 17px; font-size: 10px; }
.wz-dense-3 .wz-rail-title { font-size: 12.5px; }
.wz-dense-3 .wz-rail-card { padding: 9px 12px 9px; }
.wz-dense-3 .wz-setup-bar { margin-top: 10px; }
.wz-dense-3 .wz-setup-item { height: 26px; font-size: 11px; }
.wz-dense-3 .wz-setup-dot { width: 19px; height: 19px; font-size: 9.5px; }
.wz-dense-3 .wz-setup-dot-done .icon { width: 10px; height: 10px; }
.wz-dense-3 .wz-site-preview-domain { font-size: 12px; }
.wz-dense-3 .wz-preview-logo { flex-basis: 40px; width: 40px; height: 40px; font-size: 19px; }
.wz-dense-3 .wz-mini-chip { height: 17px; font-size: 9.5px; }
.wz-dense-3 .wz-summary-inner { margin-top: 6px; padding-top: 6px; }
.wz-dense-3 .wz-summary-title { font-size: 11.5px; margin-bottom: 5px; }
.wz-dense-3 .wz-service-list li { padding: 3px 0; }
.wz-dense-3 .wz-service-label { font-size: 9px; }
.wz-dense-3 .wz-service-value { font-size: 10px; }
.wz-dense-3 .wz-monitor-tile > div { gap: 0; }
.wz-dense-3 .wz-monitor-label, .wz-dense-3 .wz-monitor-val { font-size: 9.5px; }
.wz-dense-3 .wz-monitor-grid { gap: 6px 4px; }
.wz-dense-3 .wz-btn-back, .wz-dense-3 .wz-btn-draft, .wz-dense-3 .wz-footer .wz-btn-primary { height: 30px; font-size: 11px; }
.wz-dense-3 .wz-account-name { font-size: 11px; }
.wz-dense-3 .wz-account-line { font-size: 10px; line-height: 13px; }
.wz-dense-3 .wz-account-strip { padding: 4px 9px; }
.wz-dense-3 .wz-suggest { padding: 5px 10px; }
.wz-dense-3 .wz-suggest-title { font-size: 11px; }
.wz-dense-3 .wz-suggest-text { font-size: 9.5px; }
.wz-dense-3 .wz-server-side { padding: 6px 8px; }
.wz-dense-3 .wz-server-meter-row { height: 16px; font-size: 9.5px; }
.wz-dense-3 .wz-est-box { padding: 7px 10px; }
.wz-dense-3 .wz-est-value { font-size: 18px; }
.wz-dense-3 .wz-big-value { font-size: 15px; line-height: 26px; }
.wz-dense-3 .wz-collapse-row { height: 26px; font-size: 10.5px; }
.wz-dense-3 .wz-toggle-mini { transform: scale(.9); }
.wz-dense-3 .wz-ps-tile { padding: 6px; gap: 4px; }
.wz-dense-3 .wz-score-ring { flex-basis: 50px; width: 50px; height: 50px; }
.wz-dense-3 .wz-score-ring > span { width: 39px; height: 39px; font-size: 13px; }
.wz-dense-3 .wz-cwv-val { font-size: 13px; }
.wz-dense-3 .wz-threshold { font-size: 10px; }
.wz-dense-3 .wz-input-num { height: 24px; width: 46px !important; }
.wz-dense-3 .wz-check-inline { height: 26px; gap: 10px; }
.wz-dense-3 .wz-keywords .wz-input { height: 26px; }
.wz-dense-3 .wz-chips-kw { margin-top: 6px; gap: 5px; }
.wz-dense-3 .wz-chip-kw { height: 20px; font-size: 10px; }
.wz-dense-3 .wz-last-checked { font-size: 9px; line-height: 11px; }
.wz-dense-3 .wz-fin-legend li { height: 17px; font-size: 10px; }
.wz-dense-3 .wz-fin-donut { flex-basis: 100px; width: 100px; height: 100px; }
.wz-dense-3 .wz-fin-donut svg { width: 100px; height: 100px; }
.wz-dense-3 .wz-fin-donut-value { font-size: 15px; }
.wz-dense-3 .wz-infra-row { height: 30px; }
.wz-dense-3 .wz-infra-name { font-size: 10.5px; }
.wz-dense-3 .wz-infra-desc, .wz-dense-3 .wz-per { font-size: 9px; }
.wz-dense-3 .wz-budget-tiles { margin: 6px 0 6px; }
.wz-dense-3 .wz-budget-bar { margin: 3px 0 12px; height: 9px; }
.wz-dense-3 .wz-access-list li { padding: 4px 0; }
.wz-dense-3 .wz-access-name { font-size: 10.5px; }
.wz-dense-3 .wz-access-lbl, .wz-dense-3 .wz-access-sub { font-size: 9px; }
.wz-dense-3 .wz-access-chip { height: 24px; font-size: 10px; padding: 0 10px; }
.wz-dense-3 .wz-verified-pill { height: 24px; font-size: 10px; }
.wz-dense-3 .wz-access-ring { flex-basis: 74px; width: 74px; height: 74px; }
.wz-dense-3 .wz-access-ring > span { width: 58px; height: 58px; }
.wz-dense-3 .wz-access-ring strong { font-size: 14px; }
.wz-dense-3 .wz-kv-compact > div { height: 16px; font-size: 10px; }
.wz-dense-3 .wz-grid-policy { gap: 10px; }
.wz-dense-3 .wz-toggle-block { margin-bottom: 6px; }
.wz-dense-3 .wz-input-action .wz-btn-test { height: 26px; font-size: 10.5px; }
.wz-dense-3 .wz-select-pill { height: 26px; font-size: 10.5px; }
.wz-dense-3 .wz-deal-card { height: 28px; font-size: 10.5px; }
.wz-dense-3 .wz-track-grid { gap: 5px 10px; }
.wz-dense-3 .wz-dropzone { padding: 10px; }

/* ---- wizard: progress bar + step 10 + misc calibration -------------------- */
.wz-progress-dense { padding: 8px 8px 8px 10px; margin-bottom: 12px; }
.wz-progress-dense .wz-step { gap: 7px; }
.wz-progress-dense .wz-step-num, .wz-progress-dense .wz-step-check { width: 20px; height: 20px; font-size: 10px; }
.wz-progress-dense .wz-step.is-current .wz-step-num { width: 26px; height: 26px; font-size: 11.5px; }
.wz-progress-dense .wz-step-text { gap: 2px; }
.wz-progress-dense .wz-step-label { font-size: 9.5px; line-height: 11px; letter-spacing: -.1px; }
.wz-progress-dense .wz-step-sub { font-size: 8.5px; line-height: 10px; }
.wz-dense-3 .wz-backup-grid { grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.45fr) minmax(0, 1.1fr); gap: 0 8px; }
.wz-dense-3 .wz-backup-grid .wz-toggle-label { font-size: 9.5px; }
.wz-dense-3 .wz-backup-grid .wz-toggle-sub { font-size: 8.5px; }
.wz-dense-3 .wz-backup-grid .wz-status-title { font-size: 9.5px; }
.wz-dense-3 .wz-backup-grid .wz-status-text { font-size: 8.5px; line-height: 11px; }
.wz-dense-3 .wz-backup-grid .wz-toggle-lines { gap: 4px; }
.wz-dense-3 .wz-monitor-grid { gap: 10px 4px; margin-bottom: 2px; }
.wz-dense-3 .wz-monitor-ico { flex-basis: 28px; width: 28px; height: 28px; }
.wz-dense-3 .wz-monitor-label, .wz-dense-3 .wz-monitor-val { font-size: 10px; }
.wz-dense-3 .wz-body-seo .wz-rail .wz-status-box { padding: 10px 12px; }
.wz-dense-3 .wz-body-seo .wz-rail .wz-status-text { font-size: 10px; line-height: 13px; }
/* step 10 */
.wz-dense-3 .wz-review-card { padding: 8px 10px 8px; }
.wz-dense-3 .wz-review-head { margin-bottom: 5px; }
.wz-dense-3 .wz-review-head .wz-num-title { font-size: 12px; }
.wz-dense-3 .wz-review-entity { margin-bottom: 5px; gap: 8px; }
.wz-dense-3 .wz-review-name { font-size: 12px; }
.wz-dense-3 .wz-review-url { font-size: 10px; }
.wz-dense-3 .bm-logo.wz-review-logo { width: 34px; height: 34px; flex-basis: 34px; }
.wz-dense-3 .wz-review-card .wz-kv > div, .wz-dense-3 .wz-kv-2col > div { height: 17px; font-size: 9.5px; }
.wz-dense-3 .wz-kv-2col dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wz-dense-3 .wz-kv-2col dt { min-width: 58px; }
.wz-dense-3 .wz-review-tiles { gap: 5px; margin-bottom: 5px; }
.wz-dense-3 .wz-review-tiles-aff { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wz-dense-3 .wz-review-tiles-aff > :nth-child(1), .wz-dense-3 .wz-review-tiles-aff > :nth-child(2) { grid-column: span 3; }
.wz-dense-3 .wz-review-tiles-aff > :nth-child(n+3) { grid-column: span 2; }
.wz-dense-3 .wz-review-tiles .wz-stat-tile { padding: 5px 7px; gap: 2px; }
.wz-dense-3 .wz-review-tiles .wz-stat-label { font-size: 9px; }
.wz-dense-3 .wz-review-tiles .wz-stat-value { font-size: 10.5px; }
.wz-dense-3 .wz-review-services li { height: 24px; margin-bottom: 3px; font-size: 10.5px; }
.wz-dense-3 .wz-review-services { margin-bottom: 5px; }
.wz-dense-3 .wz-review-list li { height: 18px; font-size: 10px; }
.wz-dense-3 .wz-review-list-access li { height: 16px; font-size: 9.5px; }
.wz-dense-3 .wz-review-split { margin-bottom: 5px; }
.wz-dense-3 .wz-review-scores .wz-stat-tile { padding: 5px 7px; gap: 2px; }
.wz-dense-3 .wz-fin-mini li { height: 16px; font-size: 9.5px; }
.wz-dense-3 .wz-fin-cost-value { font-size: 14px; }
.wz-dense-3 .wz-review-card .wz-ok-strip { padding: 5px 9px; }
.wz-dense-3 .wz-review-card .wz-ok-strip-title { font-size: 10px; }
.wz-dense-3 .wz-review-grid { gap: 8px; }
.wz-dense-3 .wz-prelaunch { padding: 8px 10px 8px; grid-template-columns: 180px 1fr 230px; gap: 10px; align-items: center; }
.wz-dense-3 .wz-prelaunch-list { gap: 2px 8px; }
.wz-dense-3 .wz-prelaunch-list li { font-size: 9.5px; min-height: 15px; gap: 6px; }
.wz-dense-3 .wz-prelaunch-status { padding: 8px 10px; }
.wz-dense-3 .wz-ready-banner { padding: 8px 12px; gap: 12px; }
.wz-dense-3 .wz-ready-title { font-size: 13.5px; }
.wz-dense-3 .wz-ready-sub { font-size: 10.5px; }
.wz-dense-3 .wz-ready-stat strong { font-size: 14px; }
.wz-dense-3 .wz-ready-stat span { font-size: 9px; }
.wz-dense-3 .wz-ready-btn { height: 32px; font-size: 11.5px; }
.wz-dense-3 .wz-rail-review .wz-rail-card { padding: 8px 10px 8px; }
.wz-dense-3 .wz-completion-body { margin: 5px 0 6px; }
.wz-dense-3 .wz-completion-ring { flex-basis: 70px; width: 70px; height: 70px; }
.wz-dense-3 .wz-completion-ring > span { width: 55px; height: 55px; }
.wz-dense-3 .wz-completion-ring strong { font-size: 13px; }
.wz-dense-3 .wz-completion-list li { height: 20px; font-size: 10px; }
.wz-dense-3 .wz-section-status li { height: 17px; font-size: 10px; }
.wz-dense-3 .wz-after-list li { height: 18px; font-size: 10px; }
.wz-dense-3 .wz-after-list { margin-bottom: 8px; }
.wz-dense-3 .wz-btn-create { height: 36px; font-size: 12px; }
.wz-dense-3 .wz-create-note { margin: 5px 0 6px; font-size: 9px; }
.wz-dense-3 .wz-check-confirm { margin-bottom: 6px; font-size: 10px; }
.wz-dense-3 .wz-after .wz-btn-full { height: 28px; margin-top: 5px; }
.wz-dense-3 .wz-shot-placeholder { height: 56px; }
.wz-dense-3 .wz-rail-review { gap: 8px; }
.wz-dense-3.wz-body-review .wz-main { gap: 8px; }

/* ==========================================================================
   ADD NEW GEO (design-reference/Forms/GEO-1.png, 1536×1024)
   Inherits the approved shell, cards, buttons and theme tokens. Everything is
   prefixed .geo- and scoped to .page-geo-add so no existing page is touched.
   ========================================================================== */
.page-geo-add {
  --geo-preview-tint: #F4FCF8;
  --geo-preview-tint-2: #FAFEFC;
  --geo-preview-map: #D7F0E2;
  --geo-tips-bg: #EEF3FE;
  --geo-tips-border: var(--border-default);
  --geo-addon-bg: #F5F8FC;
  --geo-card-radius: 12px;
  padding: 0 22px 16px 8px;
}
html[data-theme="dark"] .page-geo-add {
  --geo-preview-tint: rgba(16, 185, 129, .12);
  --geo-preview-tint-2: rgba(16, 185, 129, .05);
  --geo-preview-map: rgba(16, 185, 129, .22);
  --geo-tips-bg: #102131;
  --geo-tips-border: #1B3042;
  --geo-addon-bg: #0B1724;
}

.geo-form { display: block; }

/* ---- heading ------------------------------------------------------------ */
.geo-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 0 0; margin-bottom: 19px; }
.geo-heading-text { min-width: 0; }
.geo-crumb { gap: 8px; padding: 0; font-size: 14px; font-weight: 500; line-height: 17px; }
.geo-crumb .breadcrumb-sep { width: 13px; height: 13px; }
.geo-crumb .breadcrumb-current { font-weight: 500; color: var(--text-secondary-6); }
.geo-title { margin: 11px 0 0; font-size: 30px; font-weight: 700; line-height: 34px; letter-spacing: -.5px; color: var(--text); }
.geo-subtitle { margin: 2px 0 0; font-size: 13.7px; line-height: 18px; color: var(--text-tertiary-2); }
.geo-back { margin-top: 28px; height: 43px; padding: 0 19px; gap: 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); border-color: var(--border-default-2); }
.geo-back .btn-icon { width: 16px; height: 16px; color: var(--text); }

.geo-flash { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: var(--tint-danger); color: var(--text-danger); font-size: 13px; font-weight: 500; }
.geo-flash .icon { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---- layout ------------------------------------------------------------- */
.geo-body { display: grid; grid-template-columns: minmax(0, 1fr) 363px; gap: 18px; align-items: start; margin-bottom: 14px; }
.geo-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.geo-rail { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.geo-card { padding: 0; border-radius: var(--geo-card-radius); overflow: hidden; }

/* ---- section header ----------------------------------------------------- */
.geo-section-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px 12px; border-bottom: 1px solid var(--border-subtle); }
.geo-card-extra .geo-section-head { padding-bottom: 13px; }
.geo-section-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: var(--tint-info); color: var(--text-link); }
.geo-section-icon .icon { width: 22px; height: 22px; }
.geo-section-icon-solid .icon { width: 24px; height: 24px; }
.geo-section-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 20px; letter-spacing: -.2px; color: var(--text); }
.geo-section-sub { margin: 3px 0 0; font-size: 12.5px; line-height: 17px; color: var(--text-tertiary-2); }

/* ---- fields ------------------------------------------------------------- */
.geo-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 37px; }
.geo-col { min-width: 0; }
.geo-card-basic .geo-grid { padding: 18px 22px 22px; }
.geo-card-extra .geo-grid { padding: 8px 22px 13px; }

.geo-field { margin-bottom: 18px; }
.geo-field:last-child { margin-bottom: 0; }
.geo-field-iso { margin-bottom: 22px; }
.geo-field-region { margin-bottom: 26px; }
.geo-card-extra .geo-field { margin-bottom: 13px; }
.geo-field-flag { margin-bottom: 22px; }
.geo-field-notes,
.geo-card-extra .geo-field-notes { margin-bottom: 0; }

.geo-label { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 600; line-height: 17px; color: var(--text); }
.geo-req { color: var(--fg-danger-3); font-weight: 700; }
.geo-opt { font-weight: 400; color: var(--text-tertiary-2); }
.geo-help { margin: 8px 0 0; font-size: 11.5px; line-height: 15px; color: var(--text-tertiary-2); }
.geo-error { margin: 6px 0 0; font-size: 12px; line-height: 15px; color: var(--text-danger); }

.geo-control { position: relative; display: flex; align-items: center; height: 38px; border: 1px solid var(--border-default-5); border-radius: 8px; background: var(--bg-input); }
.geo-input,
.geo-select { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 13px; border: 0; border-radius: inherit; background: transparent; color: var(--text); font-family: var(--font); font-size: 13.5px; line-height: 1; outline: none; }
.geo-input::placeholder { color: var(--text-disabled); }
.geo-select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.geo-control:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.has-error .geo-control { border-color: var(--danger); }
.geo-chevron { position: absolute; right: 13px; width: 15px; height: 15px; color: var(--text-secondary-4); stroke-width: 2.2; pointer-events: none; }

.geo-addon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; align-self: stretch; border-right: 1px solid var(--border-subtle); border-radius: 8px 0 0 8px; background: var(--geo-addon-bg); color: var(--text); }
.geo-addon .icon { width: 17px; height: 17px; }
.geo-control-addon .geo-input { padding-left: 8px; }
.geo-control-addon .geo-select { padding-left: 12px; }
.geo-control-trail .geo-input { padding-right: 40px; }
.geo-trail { position: absolute; right: 11px; display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border: 1px solid var(--border-default-5); border-radius: 5px; color: var(--text); pointer-events: none; }
.geo-trail .icon { width: 13px; height: 13px; }

.geo-control-status { padding-left: 8px; }
.geo-control-status .geo-select { padding-left: 11px; }
.geo-status-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; }
.geo-status-badge i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.geo-tone-green { background: var(--tint-success-5); }
.geo-tone-green i { background: var(--success); }
.geo-tone-grey { background: var(--bg-muted); }
.geo-tone-grey i { background: var(--text-disabled); }
.geo-tone-amber { background: var(--tint-warning); }
.geo-tone-amber i { background: var(--warning); }
.geo-tone-red { background: var(--tint-danger); }
.geo-tone-red i { background: var(--danger); }

/* textarea + counter */
.geo-control-area { display: block; height: auto; padding: 0; }
.geo-textarea { display: block; width: 100%; height: 91px; padding: 10px 13px 0; border: 0; border-radius: inherit; background: transparent; color: var(--text); font-family: var(--font); font-size: 13.5px; line-height: 19px; resize: vertical; outline: none; }
.geo-textarea::placeholder { color: var(--text-disabled); }
.geo-counter { position: absolute; right: 13px; bottom: 8px; font-size: 12px; line-height: 15px; color: var(--text-tertiary-2); pointer-events: none; }

/* flag block */
.geo-flag-row { display: flex; align-items: flex-start; gap: 12px; }
.geo-flag-preview { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 105px; width: 105px; height: 69px; border-radius: 6px; overflow: hidden; background: var(--bg-muted); }
.geo-flag-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.geo-flag-actions { min-width: 0; }
.geo-flag-buttons { display: flex; gap: 11px; }
.geo-btn-flag,
.geo-btn-remove { height: 40px; padding: 0 16px; gap: 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.geo-btn-flag { background: var(--bg-surface); border-color: var(--border-default-5); color: var(--text-link); }
.geo-btn-flag:hover { background: var(--bg-hover); }
.geo-btn-flag .btn-icon { width: 16px; height: 16px; color: var(--text-link); }
.geo-btn-remove { background: var(--tint-danger); border-color: var(--border-danger); color: var(--text-danger-2); }
.geo-btn-remove:hover { background: var(--tint-danger-3); border-color: var(--border-danger-2); }
.geo-btn-remove .btn-icon { width: 16px; height: 16px; color: var(--text-danger-2); }
.geo-help-flag { margin-top: 11px; font-size: 11px; letter-spacing: -.2px; }

/* chips */
.geo-control-tags { height: auto; min-height: 38px; flex-wrap: wrap; align-content: center; gap: 6px; padding: 4px 36px 4px 4px; }
.geo-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.geo-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 9px; border-radius: 7px; background: var(--bg-selected-6); color: var(--text-link); font-size: 12px; font-weight: 500; }
.geo-tag-x { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; padding: 0; border: 0; background: transparent; color: var(--text-link); cursor: pointer; }
.geo-tag-x .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.geo-tag-x:hover { color: var(--text-link-5); }
.geo-tag-add { flex: 0 0 30px; min-width: 30px; height: 28px; border: 0; background: transparent; color: transparent; font-family: var(--font); font-size: 13px; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; }
.geo-control-tags::before { content: ''; position: absolute; right: 38px; top: 8px; bottom: 8px; width: 1px; background: var(--border-subtle); }

/* ---- rail: GEO preview -------------------------------------------------- */
.geo-preview { padding: 0; }
.geo-preview-top { position: relative; height: 154px; padding: 17px 19px 0; overflow: hidden; background: var(--geo-preview-tint); border-bottom: 1px solid var(--border-subtle); }
.geo-preview-map { position: absolute; right: 0; top: 18px; width: 190px; height: 108px; opacity: .42; }
.geo-preview-map path { fill: var(--geo-preview-map); }
.geo-preview-head { position: relative; display: flex; align-items: center; gap: 11px; }
.geo-preview-eye { width: 18px; height: 18px; color: var(--text-success-4); }
.geo-preview-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: -.2px; color: var(--text); }
.geo-preview-id { position: relative; display: flex; align-items: flex-start; gap: 15px; margin-top: 30px; }
.geo-preview-flag { display: inline-flex; flex: 0 0 84px; width: 84px; height: 57px; border-radius: 6px; overflow: hidden; background: var(--bg-muted); }
.geo-preview-meta { min-width: 0; }
.geo-preview-name { font-size: 18.5px; font-weight: 700; line-height: 24px; letter-spacing: -.3px; color: var(--text); }
.geo-preview-code { margin-top: 2px; font-size: 13px; line-height: 17px; color: var(--text-tertiary-2); }
.geo-pill { display: inline-flex; align-items: center; height: 24px; margin-top: 7px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.geo-pill.geo-tone-green { background: var(--tint-success-5); color: var(--text-success-5); }
.geo-pill.geo-tone-grey { background: var(--bg-muted); color: var(--text-tertiary-2); }
.geo-pill.geo-tone-amber { background: var(--tint-warning); color: var(--text-warning); }
.geo-pill.geo-tone-red { background: var(--tint-danger); color: var(--text-danger); }

.geo-kv { margin: 0; padding: 15px 24px 16px; }
.geo-kv-row { display: flex; align-items: center; height: 38px; }
.geo-kv-row + .geo-kv-row { border-top: 1px solid var(--border-subtle); }
.geo-kv-icon { flex: 0 0 17px; width: 17px; height: 17px; color: var(--text); }
.geo-kv dt { flex: 0 0 115px; margin-left: 15px; font-size: 13px; line-height: 17px; color: var(--text-tertiary-2); }
.geo-kv dd { margin: 0; min-width: 0; font-size: 13px; font-weight: 600; line-height: 17px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- rail: quick tips --------------------------------------------------- */
.geo-tips { padding: 8px; }
.geo-tips-panel { padding: 11px 16px 22px; border: 1px solid var(--geo-tips-border); border-radius: 10px; background: var(--geo-tips-bg); }
.geo-tips-head { display: flex; align-items: center; gap: 15px; }
.geo-tips-bulb { width: 28px; height: 28px; color: var(--text-link); }
.geo-tips-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: -.2px; color: var(--text); }
.geo-tips-list { list-style: none; margin: 22px 0 0; padding: 0 0 0 5px; }
.geo-tips-list li { position: relative; padding-left: 38px; padding-right: 9px; font-size: 13px; line-height: 20px; color: var(--text-tertiary-2); }
.geo-tips-list li + li { margin-top: 12px; }
.geo-tips-num { position: absolute; left: 0; top: -1px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-track-6); color: var(--text-link); font-size: 12.5px; font-weight: 700; }

/* ---- bottom action bar -------------------------------------------------- */
.geo-actionbar { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 13px 0 15px; border-radius: var(--geo-card-radius); }
.geo-btn-cancel,
.geo-btn-submit { height: 45px; border-radius: 10px; font-size: 13px; font-weight: 600; gap: 13px; }
.geo-btn-cancel { padding: 0 21px; background: var(--bg-surface); border-color: var(--border-default-5); color: var(--text); }
.geo-btn-cancel:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.geo-btn-cancel .btn-icon { width: 16px; height: 16px; color: var(--text); stroke-width: 2.4; }
.geo-btn-submit { width: 367px; background: var(--primary); color: #fff; }
.geo-btn-submit:hover { background: var(--primary-hover); }
.geo-btn-submit .btn-icon { width: 17px; height: 17px; color: #fff; stroke-width: 2.4; }

.geo-file { display: none; }

/* ---- sidebar: the reference draws every group open, so rows are tighter --- */
.sidebar-geo .nav-item { height: 29px; }
.sidebar-geo .nav-item-sub { height: 28px; }
.sidebar-geo .nav-group-toggle { height: 27px; }
.sidebar-geo .nav-group:not(.nav-group-parent) + .nav-group:not(.nav-group-parent) { margin-top: 7px; }
.sidebar-geo .nav-after-group { margin-top: 0; }
.sidebar-geo .nav-list > li:not(.nav-group) + .nav-group:not(.nav-group-parent) { margin-top: 12px; }
.sidebar-geo .sidebar-footer { padding: 6px 0 12px; }
.sidebar-geo .sidebar-version { margin-top: 4px; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1440px) {
  .page-geo-add { padding-left: 12px; padding-right: 16px; }
  .geo-body { grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; }
  .geo-grid { column-gap: 28px; }
  .geo-btn-submit { width: 320px; }
  .geo-tag { gap: 5px; padding: 0 6px 0 7px; font-size: 11.5px; }
  .geo-tag-x { width: 12px; height: 12px; }
  .geo-tag-add { flex-basis: 26px; min-width: 26px; }
  .geo-flag-row { flex-wrap: wrap; }
  .geo-flag-actions { flex: 1 1 200px; min-width: 0; }
  .geo-flag-buttons { flex-wrap: wrap; gap: 8px; }
  .geo-btn-flag, .geo-btn-remove { padding: 0 12px; gap: 8px; }
}
@media (max-width: 1400px) {
  .geo-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .geo-card-basic .geo-grid, .geo-card-extra .geo-grid { padding-left: 18px; padding-right: 18px; }
  .geo-grid { column-gap: 22px; }
  .geo-btn-submit { width: 260px; }
  .geo-kv { padding-left: 18px; padding-right: 18px; }
  .geo-kv dt { flex-basis: 96px; margin-left: 12px; }
}
@media (max-width: 1100px) {
  .geo-body { grid-template-columns: minmax(0, 1fr); }
  .geo-rail { flex-direction: row; flex-wrap: wrap; }
  .geo-rail > * { flex: 1 1 320px; }
}
@media (max-width: 820px) {
  .geo-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-heading { flex-direction: column; }
  .geo-back { margin-top: 14px; }
  .geo-rail { flex-direction: column; }
  .geo-btn-submit { width: auto; padding: 0 28px; }
}

/* ---- wizard: per-step calibration (steps 4–10) ---------------------------- */
.page-wizard[data-step="2"] .wz-heading, .page-wizard[data-step="3"] .wz-heading, .page-wizard[data-step="4"] .wz-heading, .page-wizard[data-step="5"] .wz-heading, .page-wizard[data-step="6"] .wz-heading, .page-wizard[data-step="7"] .wz-heading, .page-wizard[data-step="8"] .wz-heading, .page-wizard[data-step="9"] .wz-heading, .page-wizard[data-step="10"] .wz-heading { padding-bottom: 4px; }
.page-wizard[data-step="2"] .wz-title, .page-wizard[data-step="3"] .wz-title, .page-wizard[data-step="4"] .wz-title, .page-wizard[data-step="5"] .wz-title, .page-wizard[data-step="6"] .wz-title, .page-wizard[data-step="7"] .wz-title, .page-wizard[data-step="8"] .wz-title, .page-wizard[data-step="9"] .wz-title, .page-wizard[data-step="10"] .wz-title { margin-top: 4px; }
.page-wizard[data-step="2"] .wz-heading-actions, .page-wizard[data-step="3"] .wz-heading-actions, .page-wizard[data-step="4"] .wz-heading-actions, .page-wizard[data-step="5"] .wz-heading-actions, .page-wizard[data-step="6"] .wz-heading-actions, .page-wizard[data-step="7"] .wz-heading-actions, .page-wizard[data-step="8"] .wz-heading-actions, .page-wizard[data-step="9"] .wz-heading-actions, .page-wizard[data-step="10"] .wz-heading-actions { margin-top: 20px; }
.page-content.page-wizard { padding-bottom: 8px; }
.wz-dense-3 .wz-setup-item { height: 25px; }
/* step 5 */
.wz-dense-3 .wz-body-cloudflare .wz-toggle-lines .wz-toggle-label, .wz-dense-3 .wz-toggle-line .wz-toggle-label { font-size: 9.5px; white-space: nowrap; }
.wz-dense-3 .wz-toggle-line .wz-state-pill { font-size: 9px; }
.wz-dense-3 .wz-body-cloudflare .wz-health-foot .wz-status-title { font-size: 10px; }
.wz-dense-3 .wz-body-cloudflare .wz-health-foot .wz-status-text { font-size: 9px; line-height: 11px; }
/* step 6 */
.wz-dense-3 .wz-track-grid { gap: 3px 8px; }
.wz-dense-3 .wz-track-grid .wz-toggle-label { font-size: 10px; }
.wz-dense-3 .wz-track-grid .wz-toggle-sub { font-size: 8.5px; line-height: 11px; }
.wz-dense-3 .wz-ok-strip .wz-ok-strip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* step 8 */
.wz-dense-3 .wz-budget-tiles { gap: 4px; }
.wz-dense-3 .wz-budget-tiles .wz-stat-tile { padding: 4px 5px; }
.wz-dense-3 .wz-budget-tiles .wz-input-bare { width: 34px; font-size: 11px !important; }
.wz-dense-3 .wz-budget-tiles .wz-stat-label { font-size: 8.5px; }
.wz-dense-3 .wz-input-cost { width: 44px; font-size: 10.5px !important; }
.wz-dense-3 .wz-infra-cost { font-size: 10px; }
.wz-dense-3 .wz-infra-row { gap: 6px; padding: 0 6px; }
.wz-dense-3 .wz-infra-row .wz-pill { padding: 0 5px; }
.wz-dense-3 .wz-fin-input .wz-input-bare { width: 58px; }
.wz-dense-3 .wz-input-budget { width: 52px; }
.wz-dense-3 .wz-table-rec .wz-input-cost { width: 46px; }
.wz-dense-3 .wz-rail-check .wz-check-list li { height: 17px; }
/* step 10 */
.wz-dense-3 .wz-ready-banner { padding: 6px 12px; }
.wz-dense-3 .wz-ready-ico { flex-basis: 32px; width: 32px; height: 32px; }
.wz-dense-3 .wz-ready-stat strong { font-size: 13px; }
.wz-dense-3 .wz-prelaunch { padding: 6px 10px 6px; }
.wz-dense-3 .wz-prelaunch-list li { min-height: 14px; }
.wz-dense-3 .wz-prelaunch-status { padding: 6px 9px; }
.wz-dense-3 .wz-review-grid { gap: 7px; }
.wz-dense-3.wz-body-review .wz-main { gap: 7px; }
.wz-dense-3 .wz-rail-review { gap: 7px; }
.wz-dense-3 .wz-toggle-line > span:not(.wz-state-pill) { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wz-dense-3 .wz-toggle-lines-pills .wz-toggle-line { gap: 6px; }
.wz-dense-3 .wz-toggle-line .wz-toggle { flex: 0 0 auto; }
.wz-dense-3 .wz-body-cloudflare .wz-health-foot { gap: 8px; }
.wz-dense-3 .wz-body-cloudflare .wz-health-foot .wz-btn-sm { padding: 0 8px; white-space: nowrap; }
.wz-dense-3 .wz-body-cloudflare .wz-health-foot > .wz-status-box { flex: 1 1 60%; }
.wz-budget-tiles .wz-stat-tile, .wz-fin-input, .wz-input-bare { min-width: 0; }
.wz-fin-input .wz-input-bare, .wz-budget-tiles .wz-input-bare { padding-left: 0 !important; }
.wz-fin-input { gap: 0; }
.wz-dense-3 .wz-table-rec .wz-input-cost { width: 54px; }
.wz-dense-3 .wz-table-rec th:nth-child(3), .wz-dense-3 .wz-table-rec td:nth-child(3) { width: 78px; }
.wz-dense-3 .wz-rail-check .wz-check-list { margin-bottom: 4px; }
.wz-dense-3 .wz-rail-check .wz-rail-head { margin-bottom: 6px; }
.wz-check-list-2col li { min-width: 0; overflow: hidden; }
.wz-dense-3 .wz-health-grid { grid-template-columns: minmax(0, 1fr) 140px; }

/* ==========================================================================
   INFRASTRUCTURE ADD FORMS — Domain / Hosting / Registrar / Cloudflare / Google
   References: design-reference/Forms/Infrastructure-Forms-Domains-to-Google
   Prefix: .if-  ·  light values measured from the 1536x1024 references.
   ========================================================================== */
.page-content.page-if { padding: 0 24px 16px 8px; }

/* ---- heading ------------------------------------------------------------ */
.if-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 14px 0 15px; }
.if-crumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; line-height: 17px; color: var(--text-muted); margin-bottom: 6px; }
.if-crumb a { color: var(--text-muted); text-decoration: none; }
.if-crumb a:hover { color: var(--text-link); }
.if-crumb .breadcrumb-sep { width: 13px; height: 13px; color: var(--text-disabled); }
.if-crumb .breadcrumb-current { color: var(--text-secondary-2); }
.if-title { margin: 0; font-size: 27px; line-height: 34px; font-weight: 800; letter-spacing: -.4px; color: var(--text-primary-2); }
.if-subtitle { margin: 4px 0 0; font-size: 13.5px; line-height: 17px; color: var(--text-tertiary); }
.if-back { flex: 0 0 auto; height: 41px; padding: 0 20px; gap: 9px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-primary-2); background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.if-back .btn-icon { width: 15px; height: 15px; color: var(--text-primary-2); }

/* ---- layout ------------------------------------------------------------- */
.if-layout { display: grid; grid-template-columns: minmax(0, 1fr) 379px; column-gap: 14px; row-gap: 11px; align-items: start; }
.if-layout > .if-footer { grid-column: 1 / -1; }
.if-main { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.if-rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ---- cards -------------------------------------------------------------- */
.if-card { background: var(--bg-surface); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.if-card-head { display: flex; align-items: center; gap: 13px; padding: 15px 20px 12px; border-bottom: 1px solid var(--border-subtle); }
.if-head-tile { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--tint-info); color: var(--text-link); }
.if-head-tile .icon { width: 21px; height: 21px; }
.if-tone-green { background: var(--tint-success); color: var(--fg-success); }
.if-tone-amber { background: var(--tint-warning); color: var(--fg-warning); }
.if-step-badge { flex: 0 0 27px; width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; }
.if-card-head-step { padding: 12px 20px 11px; gap: 11px; }
.if-head-text { min-width: 0; }
.if-head-title { margin: 0; font-size: 15.5px; line-height: 20px; font-weight: 700; color: var(--text-primary-2); letter-spacing: -.1px; }
.if-head-sub { margin: 1px 0 0; font-size: 12.5px; line-height: 16px; color: var(--text-tertiary); }
.if-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.if-body { padding: 17px 21px 23px; }

/* ---- rows / fields ------------------------------------------------------ */
.if-row { display: grid; gap: 23px; margin-bottom: 24px; }
.if-row:last-child { margin-bottom: 0; }
.if-row-2 { grid-template-columns: 421fr 416fr; }
.if-row-3 { grid-template-columns: 297fr 289fr 229fr; }
.if-row-4 { grid-template-columns: 252fr 214fr 179fr 146fr; }
.if-field { min-width: 0; }
.if-label { display: block; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--text-primary-2); margin-bottom: 7px; white-space: nowrap; }
.if-req { color: var(--fg-danger); font-weight: 700; }
.if-opt { color: var(--text-muted); font-weight: 600; }
.if-help { margin: 4px 0 0; font-size: 11.5px; line-height: 14px; color: var(--text-muted); }
.if-error { margin: 5px 0 0; font-size: 11.5px; line-height: 14px; color: var(--text-danger); }

/* ---- controls ----------------------------------------------------------- */
.if-control { position: relative; display: flex; align-items: center; height: 38px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-input); }
.if-input, .if-select { width: 100%; height: 100%; min-width: 0; padding: 0 12px; border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-primary-2); border-radius: inherit; }
.if-input::placeholder { color: var(--text-disabled); font-weight: 500; }
.if-select { appearance: none; padding-right: 28px; cursor: pointer; text-overflow: ellipsis; }
.if-control-addon .if-input, .if-control-addon .if-select { padding-left: 12px; }
.if-addon { flex: 0 0 40px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-subtle); border-right: 1px solid var(--border-subtle); border-radius: 7px 0 0 7px; color: var(--text-secondary-2); }
.if-addon .icon { width: 17px; height: 17px; }
.if-addon-logo { padding: 0 9px; }
.if-addon .if-logo-svg, .if-addon .if-flag { width: 18px; height: 18px; }
.if-addon .if-flag { width: 20px; height: 14px; border-radius: 2px; }
.if-chevron { position: absolute; right: 10px; width: 14px; height: 14px; color: var(--text-secondary-2); pointer-events: none; }
.if-control:focus-within { border-color: var(--border-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.if-control.has-error, .if-field.has-error .if-control { border-color: var(--border-danger); }
.if-status-dot { flex: 0 0 28px; width: 28px; height: 28px; margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--tint-success); }
.if-status-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: block; }
.if-tone-amber.if-status-dot { background: var(--tint-warning); } .if-tone-amber.if-status-dot i { background: var(--warning); }
.if-tone-red.if-status-dot { background: var(--tint-danger); } .if-tone-red.if-status-dot i { background: var(--danger); }
.if-tone-blue.if-status-dot { background: var(--tint-info); } .if-tone-blue.if-status-dot i { background: var(--primary); }
.if-tone-grey.if-status-dot { background: var(--bg-muted); } .if-tone-grey.if-status-dot i { background: var(--text-muted); }
.if-control-status .if-select { padding-left: 8px; }
.if-textarea { display: block; width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-input); font-family: inherit; font-size: 13px; line-height: 19px; font-weight: 500; color: var(--text-primary-2); resize: vertical; }
.if-textarea::placeholder { color: var(--text-disabled); }
.if-textarea:focus { outline: none; border-color: var(--border-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.if-textwrap { position: relative; }
.if-counter { position: absolute; right: 11px; bottom: 8px; font-size: 11px; color: var(--text-disabled); pointer-events: none; }

/* ---- toggle ------------------------------------------------------------- */
.if-toggle { display: inline-flex; align-items: center; gap: 11px; height: 38px; cursor: pointer; user-select: none; }
.if-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.if-toggle-track { position: relative; flex: 0 0 44px; width: 44px; height: 24px; border-radius: 12px; background: var(--bg-track); transition: background .15s; }
.if-toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.25); transition: transform .15s; }
.if-toggle input:checked + .if-toggle-track { background: var(--primary); }
.if-toggle input:checked + .if-toggle-track::after { transform: translateX(20px); }
.if-toggle-text { font-size: 13px; font-weight: 500; color: var(--text-secondary-2); }
.if-toggle-sm .if-toggle-track { flex-basis: 36px; width: 36px; height: 20px; }
.if-toggle-sm .if-toggle-track::after { width: 14px; height: 14px; }
.if-toggle-sm input:checked + .if-toggle-track::after { transform: translateX(16px); }
.if-toggle-sm { height: auto; gap: 9px; }
.if-toggle-sm .if-toggle-text { font-size: 12px; }

/* ---- chips / tags ------------------------------------------------------- */
.if-tagfield { min-height: 38px; height: auto; padding: 3px 32px 3px 6px; flex-wrap: wrap; }
.if-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; }
.if-chip { display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 8px 0 10px; border-radius: 6px; background: var(--bg-selected-6); color: var(--text-link); font-size: 12px; font-weight: 600; white-space: nowrap; }
.if-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border: 0; padding: 0; background: none; color: var(--text-link); cursor: pointer; }
.if-chip-x .icon { width: 10px; height: 10px; }
.if-chip-add { background: var(--bg-subtle); color: var(--text-muted); padding: 0 9px; gap: 4px; }
.if-chip-add .icon { width: 10px; height: 10px; }
.if-tag-input { flex: 1 1 40px; min-width: 34px; height: 26px; border: 0; background: transparent; font-family: inherit; font-size: 12px; color: var(--text-primary-2); }
.if-tag-input::placeholder { color: var(--text-disabled); }
.if-tag-input:focus { outline: none; }
.if-tag-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; }
.if-tag-toggle .if-chevron { position: static; }
.if-tag-panel, .if-multi-panel { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0; padding: 6px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); box-shadow: 0 10px 26px rgba(15,23,42,.12); }
.if-tag-panel { display: flex; flex-wrap: wrap; gap: 6px; }
.if-tag-opt { height: 25px; padding: 0 10px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-subtle); font-size: 12px; font-weight: 600; color: var(--text-secondary-2); cursor: pointer; }
.if-tag-opt:hover { background: var(--bg-hover); color: var(--text-link); }

/* ---- multi-select ------------------------------------------------------- */
.if-multi { cursor: pointer; }
.if-multi-btn { flex: 1 1 auto; display: flex; align-items: center; height: 100%; padding: 0 30px 0 10px; border: 0; background: none; cursor: pointer; text-align: left; }
.if-multi-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--bg-selected-6); color: var(--text-link); font-size: 12.5px; font-weight: 600; }
.if-multi-panel { max-height: 264px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.if-multi-search { padding: 8px 8px 6px; border-bottom: 1px solid var(--border-subtle); }
.if-multi-find { width: 100%; height: 28px; padding: 0 9px; border: 1px solid var(--border-default); border-radius: 6px; font-family: inherit; font-size: 12px; background: var(--bg-input); color: var(--text-primary-2); }
.if-multi-find:focus { outline: none; border-color: var(--border-primary); }
.if-multi-list { overflow-y: auto; padding: 5px; flex: 1 1 auto; }
.if-multi-opt { display: flex; align-items: center; gap: 9px; height: 29px; padding: 0 7px; border-radius: 6px; font-size: 12.5px; color: var(--text-secondary-2); cursor: pointer; }
.if-multi-opt:hover { background: var(--bg-hover); }
.if-multi-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.if-check-box { flex: 0 0 15px; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-input); color: transparent; }
.if-check-box .icon { width: 10px; height: 10px; }
.if-multi-opt input:checked + .if-check-box, .if-check input:checked + .if-check-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.if-multi-actions { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-top: 1px solid var(--border-subtle); }
.if-multi-actions button { border: 0; background: none; font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-link); cursor: pointer; }
.if-check { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-primary-2); cursor: pointer; }
.if-check input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ---- selected preview strip --------------------------------------------- */
.if-preview-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; }
.if-preview-title { font-size: 12px; font-weight: 700; color: var(--text-secondary-2); }
.if-link { font-size: 12px; font-weight: 600; color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 5px; }
.if-link .icon { width: 12px; height: 12px; }
.if-mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.if-mini { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 46px; padding: 0 11px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-subtle-4); min-width: 0; }
.if-mini-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.if-mini-name { font-size: 12px; font-weight: 700; color: var(--text-primary-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.if-mini-top .icon { width: 12px; height: 12px; color: var(--text-link); margin-left: auto; flex: 0 0 12px; }
.if-mini-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.if-mini-sub .if-flag { width: 14px; height: 10px; border-radius: 2px; }
.if-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: 0 0 7px; }
.if-dot-amber { background: var(--warning); } .if-dot-red { background: var(--danger); } .if-dot-blue { background: var(--primary); } .if-dot-grey { background: var(--text-disabled); }
.if-mini-more { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 8px; background: var(--bg-selected-6); color: var(--text-link); font-size: 12px; font-weight: 600; }

/* ---- status pills ------------------------------------------------------- */
.if-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--tint-success); color: var(--text-success); }
.if-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.if-pill-check { flex: 0 0 13px; width: 13px; height: 13px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: currentColor; }
.if-pill-check .icon { width: 8px; height: 8px; color: var(--bg-surface); stroke-width: 3.2; }
.if-pill-amber { background: var(--tint-warning); color: var(--text-warning); }
.if-pill-red { background: var(--tint-danger); color: var(--text-danger); }
.if-pill-blue { background: var(--tint-info); color: var(--text-link); }
.if-pill-grey { background: var(--bg-muted); color: var(--text-muted); }

/* ---- footer bar --------------------------------------------------------- */
.if-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 59px; padding: 0 11px 0 13px; }
.if-btn-cancel { height: 39px; min-width: 104px; padding: 0 18px; gap: 9px; border-radius: 9px; border: 1px solid var(--border-default); background: var(--bg-surface); font-size: 13px; font-weight: 700; color: var(--text-primary-2); }
.if-btn-cancel .btn-icon { width: 13px; height: 13px; }
.if-btn-primary { height: 40px; min-width: var(--if-primary-w, auto); justify-content: center; padding: 0 22px; gap: 9px; border-radius: 9px; border: 0; background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 1px 2px rgba(37,99,235,.28); }
.if-btn-primary .btn-icon { width: 14px; height: 14px; }
.if-btn-primary:hover { background: var(--primary-hover); }

/* ---- callout banner (Secure & Organized) -------------------------------- */
.if-callout { display: flex; align-items: center; gap: 14px; padding: 17px 21px; border-top: 1px solid var(--border-subtle); background: var(--tint-success-4); border-radius: 0 0 10px 10px; }
.if-callout-ico { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint-success-5); color: var(--fg-success); }
.if-callout-ico .icon { width: 21px; height: 21px; }
.if-callout-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-primary-2); }
.if-callout-sub { margin: 3px 0 0; font-size: 10.5px; line-height: 14px; color: var(--text-tertiary); white-space: nowrap; }
.if-callout-checks { margin-left: auto; display: grid; grid-template-columns: auto auto; gap: 10px 28px; }
.if-callout-checks span { display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; color: var(--text-secondary-2); white-space: nowrap; }
.if-callout-checks .icon { width: 15px; height: 15px; color: var(--fg-success); flex: 0 0 15px; }

/* ---- rail --------------------------------------------------------------- */
.if-rail-card { background: var(--bg-surface); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 14px 19px 20px; }
.if-rail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.if-rail-ico { flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint-success); color: var(--fg-success); }
.if-rail-ico .icon { width: 14px; height: 14px; }
.if-rail-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-primary-2); }
.if-rail-head .if-link { margin-left: auto; }
.if-identity { display: flex; gap: 15px; margin-bottom: 22px; }
.if-identity-mark { flex: 0 0 56px; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-ink); color: #fff; }
.if-identity-mark .icon { width: 27px; height: 27px; }
.if-identity-mark .if-logo-svg { width: 40px; height: 40px; }
.if-identity-mark-plain { background: transparent; }
.if-identity-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.if-identity-name { font-size: 17.5px; font-weight: 800; line-height: 22px; color: var(--text-primary-2); letter-spacing: -.2px; overflow-wrap: anywhere; }
.if-identity-sub { font-size: 12px; color: var(--text-muted); margin-top: -4px; }
.if-identity-body .if-pill { height: 25px; padding: 0 11px; font-size: 12.5px; }
.if-kv { display: flex; align-items: center; gap: 10px; min-height: 31px; padding: 3px 0; border-top: 1px solid var(--border-subtle); font-size: 12.5px; }
.if-kv:first-of-type { border-top: 0; }
.if-kv-ico { flex: 0 0 15px; width: 15px; height: 15px; color: var(--text-disabled); display: inline-flex; }
.if-kv-ico .icon { width: 15px; height: 15px; }
.if-kv-label { flex: 0 0 110px; color: var(--text-muted); }
.if-kv-value { min-width: 0; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-primary-2); overflow-wrap: anywhere; }
.if-kv-value .if-flag { width: 18px; height: 13px; border-radius: 2px; }
.if-kv-value .if-pill { font-weight: 600; }
.if-kv-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.if-kv-chips .if-chip { height: 23px; }

/* rail: sub cards */
.if-rail-sub { display: flex; gap: 13px; }
.if-rail-sub-ico { flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--tint-info); color: var(--text-link); }
.if-rail-sub-ico .icon { width: 19px; height: 19px; }
.if-rail-sub-body { min-width: 0; flex: 1 1 auto; }
.if-rail-sub-title { display: flex; align-items: center; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-primary-2); }
.if-rail-sub-title .if-link { margin-left: auto; }
.if-rail-strong { font-size: 12.5px; font-weight: 700; color: var(--text-primary-2); }
.if-rail-line { font-size: 12.5px; line-height: 19px; color: var(--text-tertiary); }

/* rail: list rows */
.if-rail-list { display: flex; flex-direction: column; }
.if-rail-row { display: flex; align-items: center; gap: 9px; min-height: 25px; font-size: 12px; color: var(--text-secondary-2); }
.if-rail-row .icon { width: 14px; height: 14px; color: var(--text-disabled); flex: 0 0 14px; }
.if-rail-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.if-rail-row-right { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.if-rail-time { font-size: 11.5px; color: var(--text-muted); }
.if-rail-more { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text-link); }
.if-rail-checks { display: flex; flex-direction: column; gap: 7px; }
.if-rail-checks li { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary-2); }
.if-rail-checks .icon { width: 15px; height: 15px; color: var(--fg-success); flex: 0 0 15px; }

/* rail: quick tips */
.if-tips { background: var(--bg-selected-6); border-color: var(--border-primary-2); padding-bottom: 28px; }
.if-tips-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.if-tips-ico { flex: 0 0 22px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-link); }
.if-tips-ico .icon { width: 18px; height: 18px; }
.if-tips-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-primary-2); }
.if-tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.if-tips-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; line-height: 16px; color: var(--text-secondary-2); }
.if-tips-num { flex: 0 0 18px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-selected-2); color: var(--text-link); font-size: 10px; font-weight: 700; }

/* ---- flash -------------------------------------------------------------- */
.if-flash { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; padding: 10px 14px; border-radius: 9px; background: var(--tint-danger); border: 1px solid var(--border-danger); color: var(--text-danger); font-size: 12.5px; font-weight: 600; }
.if-flash .icon { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---- misc --------------------------------------------------------------- */
.if-flag { display: block; border-radius: 2px; }
.if-logo, .if-logo-svg { display: inline-flex; }
.if-logo-svg { width: 20px; height: 20px; }
.if-note-inline { margin: 6px 0 0; font-size: 11.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.if-note-inline .icon { width: 12px; height: 12px; color: var(--fg-success); }

/* ---- page: Add Domain --------------------------------------------------- */
.if-body-b { padding: 4px 21px 11px; }
.if-row-3b { grid-template-columns: 280fr 269fr 267fr; gap: 22px; }
.if-addon-btn { border: 0; border-right: 1px solid var(--border-subtle); padding: 0; cursor: pointer; font: inherit; }
.if-date-native { position: absolute; left: 10px; bottom: 2px; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.if-addon-symbol { font-size: 14px; font-weight: 700; color: var(--text-primary-2); }
.if-textarea-ns { height: 68px; min-height: 68px; }
.if-textarea-notes { height: 95px; min-height: 95px; }
.if-kv-empty { color: var(--text-muted); font-weight: 500; }

/* ---- panels: keep [hidden] authoritative over display:flex ------------- */
.if-tag-panel[hidden], .if-multi-panel[hidden], .if-multi-opt[hidden] { display: none; }

/* ---- sidebar: reference row rhythm for the form pages ------------------- */
.sidebar-if .nav-group:not(.nav-group-parent) + .nav-group:not(.nav-group-parent) { margin-top: 6px; }
.sidebar-if .nav-group:not(.nav-group-parent) > .nav-sub { margin-top: -2px; }
.sidebar-if .nav-after-group { margin-top: 0; }
.sidebar-if .sidebar-footer { padding: 4px 0 29px; }
.sidebar-if .nav-item-settings { margin-top: 3px; }
.sidebar-if .nav-item-help { margin-top: 0; }
.sidebar-if .sidebar-version { margin-top: 5px; height: 55px; }

.page-add-domain { --if-primary-w: 392px; }

/* ---- shared: extra primitives used by pages 2-5 ------------------------- */
.if-footer-sticky { position: sticky; bottom: 0; z-index: 20; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; margin: 0 -24px 0 -8px; padding: 0 24px 0 8px; box-shadow: 0 -1px 2px rgba(15,23,42,.05); }
.if-split { display: grid; gap: 8px; align-items: stretch; }
.if-split > .if-card { display: flex; flex-direction: column; }
.if-split > .if-card > .if-body { flex: 1 1 auto; }
.if-label-badge { display: inline-flex; width: 12px; height: 12px; margin-left: 4px; color: var(--fg-success); vertical-align: -1px; }
.if-label-badge .icon { width: 12px; height: 12px; }
.if-input-action { position: absolute; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--text-link); }
.if-input-action .icon { width: 15px; height: 15px; }
.if-control-addon .if-input-action ~ .if-input { padding-right: 34px; }
.if-vault-btn { height: 36px; padding: 0 15px; gap: 9px; border-radius: 8px; border: 1px solid var(--border-primary); background: var(--bg-surface); color: var(--text-link); font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 6px rgba(15,23,42,.06); }
.if-arrow-right { transform: rotate(90deg); width: 13px; height: 13px; }
.if-next-tile { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 10px; background: var(--tint-success-4); }
.if-next-ico { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint-success-5); color: var(--fg-success); }
.if-next-ico .icon { width: 22px; height: 22px; }
.if-next-text { display: flex; flex-direction: column; min-width: 0; }
.if-next-label { font-size: 11.5px; color: var(--text-success); }
.if-next-value { font-size: 21px; font-weight: 800; line-height: 26px; color: var(--text-primary-2); letter-spacing: -.3px; }
.if-next-date { font-size: 11.5px; color: var(--text-tertiary); }
.if-hl { padding: 2px 8px; border-radius: 5px; background: var(--tint-success-4); }
.if-rail-card-flush { padding: 0; overflow: hidden; }
.if-rail-band { padding: 14px 19px 17px; border-bottom: 1px solid var(--border-subtle); }
.if-band-green { background: var(--tint-success-4); }
.if-rail-card-flush .if-rail-head { margin-bottom: 15px; }
.if-rail-card-flush .if-identity { margin-bottom: 0; }
.if-rail-body { padding: 3px 19px 16px; }
.if-rail-ico-blue { background: var(--tint-info); color: var(--text-link); border-radius: 8px; }
.if-rail-chip { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 9px; height: 26px; padding: 0 12px; border-radius: 7px; background: var(--bg-selected-6); color: var(--text-link); font-size: 12px; font-weight: 600; }
.if-rail-list .if-rail-row { min-height: 31px; border-top: 1px solid var(--border-subtle); }
.if-rail-list .if-rail-row:first-child { border-top: 0; }
.if-rail-list .if-pill { height: 21px; font-size: 11px; padding: 0 9px; }
.if-tips-plain { background: var(--bg-surface); border-color: var(--card-border); }
.if-textarea-sm { height: 44px; min-height: 44px; }

/* ---- page: Add Hosting / Server ---------------------------------------- */
.page-add-hosting { --if-primary-w: 367px; }
.if-layout-hosting { grid-template-columns: minmax(0, 1fr) 354px; column-gap: 10px; }
.if-row-h1 { grid-template-columns: 308fr 278fr 277fr; gap: 25px; }
.if-row-h2 { grid-template-columns: 292fr 233fr 167fr 167fr; gap: 18px; }
.if-row-h3 { grid-template-columns: 248fr 210fr 211fr 198fr; gap: 16px; }
.if-row-h3b { grid-template-columns: 331fr 353fr 212fr; gap: 16px; }
.if-row-h6 { grid-template-columns: 334fr 235fr 312fr; gap: 17px; }
.page-add-hosting .if-split { grid-template-columns: 616fr 319fr; }
.if-bill-grid { display: grid; grid-template-columns: minmax(0, 1fr) 155px; gap: 14px; align-items: stretch; }
.if-bill-fields { min-width: 0; }
.if-row-bill1 { grid-template-columns: 154fr 124fr 106fr; gap: 17px; margin-bottom: 20px; }
.if-row-bill2 { grid-template-columns: 204fr 180fr; gap: 17px; }
.if-body-bill { padding-bottom: 17px; }
.if-body-access { padding-bottom: 6px; position: relative; }
.if-body-access .if-field { margin-bottom: 12px; }
.if-body-access .if-vault-btn { position: relative; left: 100%; transform: translateX(-100%); margin-top: 2px; }

.page-add-hosting .if-help { font-size: 10px; line-height: 13px; }
.if-row-h2 .if-addon { flex-basis: 30px; }
.if-row-h2 .if-addon .icon { width: 15px; height: 15px; }
.if-row-h2 .if-select, .if-row-h2 .if-input { padding-left: 8px; }
.if-row-h2 .if-select { padding-right: 22px; font-size: 12px; }
.if-row-h2 .if-chevron { right: 7px; width: 13px; height: 13px; }
.if-row-h2 .if-multi-btn { padding-left: 7px; padding-right: 26px; }
.if-band-green .if-pill { background: var(--tint-success-5); }

.page-add-hosting .if-card-head { padding-left: 15px; padding-right: 15px; }
.page-add-hosting .if-body { padding: 17px 15px 20px; }
.if-row-h2 .if-help { white-space: nowrap; }
.page-add-hosting .if-next-label, .page-add-hosting .if-next-date { font-size: 10px; white-space: nowrap; }
.page-add-hosting .if-next-value { font-size: 20px; line-height: 25px; white-space: nowrap; }
.page-add-hosting .if-next-tile { padding: 10px 11px; gap: 10px; }
.page-add-hosting .if-next-ico { flex-basis: 40px; width: 40px; height: 40px; }
.page-add-hosting .if-textarea { font-size: 11.5px; line-height: 16px; }
.page-add-hosting .if-chip { height: 22px; font-size: 11px; padding: 0 7px 0 8px; gap: 5px; }
.page-add-hosting .if-tagfield { min-height: 38px; }
.page-add-hosting .if-tag-input { font-size: 11px; }

/* ---- shared: preview strip, health rows, misc (pages 3-5) --------------- */
.if-preview-block { margin-top: 4px; }
.if-mini-reg { flex-direction: row; align-items: center; gap: 10px; height: 46px; }
.if-mini-badge { flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint-success); }
.if-mini-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); display: block; }
.if-tone-amber.if-mini-badge { background: var(--tint-warning); } .if-tone-amber.if-mini-badge i { background: var(--warning); }
.if-tone-red.if-mini-badge { background: var(--tint-danger); } .if-tone-red.if-mini-badge i { background: var(--danger); }
.if-tone-blue.if-mini-badge { background: var(--tint-info); } .if-tone-blue.if-mini-badge i { background: var(--primary); }
.if-tone-grey.if-mini-badge { background: var(--bg-muted); } .if-tone-grey.if-mini-badge i { background: var(--text-muted); }
.if-mini-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.if-health { display: flex; flex-direction: column; gap: 6px; }
.if-health-row { display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 11px; border-radius: 8px; background: var(--bg-subtle-3); font-size: 12.5px; color: var(--text-secondary-2); }
.if-health-badge { flex: 0 0 20px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--success); }
.if-health-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: block; }
.if-tone-amber.if-health-badge { background: var(--warning); }
.if-tone-red.if-health-badge { background: var(--danger); }
.if-health-label { flex: 1 1 auto; }
.if-health-count { font-weight: 700; color: var(--text-primary-2); }
.if-rail-ico-plain { background: transparent; color: var(--text-primary-2); }
.if-band-map { position: absolute; right: 8px; top: 22px; width: 120px; opacity: .55; pointer-events: none; }
.if-map-svg { width: 120px; height: 72px; }
.if-rail-band { position: relative; overflow: hidden; }
.if-identity-mark-plain { background: transparent; border-radius: 12px; overflow: hidden; }
.if-logo-lg .if-logo-svg { width: 56px; height: 56px; }
.if-vault-btn-block { width: 100%; justify-content: center; height: 38px; }
.if-field-btn .if-label { visibility: hidden; }
.if-textwrap-inline .if-textarea-pad { padding-left: 34px; }
.if-textarea-ico { position: absolute; left: 11px; top: 11px; width: 15px; height: 15px; color: var(--text-disabled); }
.if-textarea-ico .icon { width: 15px; height: 15px; }
.if-footer-bare { background: transparent; border: 0; box-shadow: none; padding-left: 8px; padding-right: 24px; }

/* ---- page: Add Registrar Account ---------------------------------------- */
.page-add-registrar { --if-primary-w: 300px; }
.if-layout-registrar { grid-template-columns: minmax(0, 1fr) 353px; column-gap: 11px; }
.page-add-registrar .if-card-head { padding-left: 14px; padding-right: 14px; }
.page-add-registrar .if-body { padding: 17px 14px 18px; }
.page-add-registrar .if-help { font-size: 10.5px; line-height: 13px; }
.if-row-r1 { grid-template-columns: 311fr 281fr 280fr; gap: 23px; }
.if-row-r2 { grid-template-columns: 316fr 277fr 281fr; gap: 23px; }
.if-row-r3 { grid-template-columns: 321fr 373fr 178fr; gap: 23px; }
.if-row-r3b { grid-template-columns: 275fr 285fr 318fr; gap: 20px; }
.if-row-r4 { grid-template-columns: 214fr 231fr 205fr 222fr; gap: 23px; }
.if-row-r5 { grid-template-columns: 204fr 216fr 238fr 185fr; gap: 24px; }
.if-row-r6 { grid-template-columns: 482fr 412fr; gap: 22px; }
.page-add-registrar .if-mini-grid { gap: 8px; }
.page-add-registrar .if-mini { padding: 0 9px; }
.page-add-registrar .if-mini-name { font-size: 11.5px; }
.if-mini-sub { white-space: nowrap; }
.page-add-registrar .if-mini-sub { font-size: 10.5px; }
.page-add-registrar .if-mini-badge { flex-basis: 24px; width: 24px; height: 24px; }
.page-add-registrar .if-mini-reg { gap: 8px; }
.if-logo-lg .if-logo-svg { width: 72px; height: 72px; margin: -8px; }
.page-add-registrar .if-label { font-size: 12px; }
.page-add-registrar .if-input, .page-add-registrar .if-select { font-size: 12px; }
.page-add-registrar .if-textarea { font-size: 10.5px; line-height: 14px; }
.page-add-registrar .if-textarea-sm { height: 46px; min-height: 46px; }
.page-add-registrar .if-mini-name { font-size: 10.8px; }
.page-add-registrar .if-mini-sub { font-size: 10px; }
.page-add-registrar .if-chip { height: 23px; font-size: 11px; }

/* ---- shared: services, test panel, zone health (Cloudflare / Google) ---- */
.if-help-link { display: flex; align-items: center; gap: 10px; }
.if-help-ico { flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint-info); color: var(--text-link); }
.if-help-ico .icon { width: 15px; height: 15px; }
.if-help-link > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.if-help-title { font-size: 11.5px; font-weight: 600; color: var(--text-tertiary); }
.if-service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.if-service { display: flex; align-items: flex-start; gap: 9px; padding: 10px 10px 9px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-subtle-4); min-width: 0; }
.if-service-ico { flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-surface); color: var(--text-primary-2); }
.if-service-ico .icon { width: 16px; height: 16px; }
.if-service-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.if-service-title { font-size: 11.5px; font-weight: 700; color: var(--text-primary-2); white-space: nowrap; }
.if-service-sub { font-size: 9.5px; color: var(--text-muted); white-space: nowrap; }
.if-test { border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-subtle-4); padding: 8px 10px 10px; align-self: end; }
.if-test-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.if-test-ico { color: var(--fg-success); display: inline-flex; }
.if-test-ico .icon { width: 15px; height: 15px; }
.if-test-title { font-size: 12px; font-weight: 700; color: var(--text-primary-2); }
.if-test-body { display: flex; align-items: center; gap: 10px; }
.if-test-btn { height: 32px; padding: 0 12px; gap: 7px; border-radius: 8px; border: 1px solid var(--border-primary); background: var(--bg-surface); color: var(--text-link); font-size: 11.5px; font-weight: 700; }
.if-test-btn .btn-icon { width: 13px; height: 13px; }
.if-test-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.if-test-last { font-size: 9.5px; color: var(--text-muted); white-space: nowrap; }
.if-control-static { justify-content: flex-start; gap: 8px; padding-right: 8px; }
.if-static { font-size: 12px; font-weight: 500; color: var(--text-primary-2); padding-left: 10px; white-space: nowrap; }
.if-control-static .if-pill { margin-left: auto; }
.if-zone-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.if-zone-tile { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px 10px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-subtle-3); }
.if-zone-top { display: flex; align-items: center; gap: 8px; }
.if-zone-num { font-size: 17px; font-weight: 800; color: var(--text-primary-2); line-height: 22px; }
.if-zone-label { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.if-zone-pct { font-size: 10.5px; color: var(--text-tertiary); }
.if-zone-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: var(--bg-muted); margin-bottom: 13px; }
.if-zone-bar span { display: block; height: 100%; }
.if-rail-subtitle { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--text-primary-2); }

/* ---- page: Add Cloudflare Account --------------------------------------- */
.page-add-cloudflare { --if-primary-w: 300px; }
.if-layout-cloudflare { grid-template-columns: minmax(0, 1fr) 350px; column-gap: 11px; }
.page-add-cloudflare .if-card-head { padding-left: 15px; padding-right: 17px; }
.page-add-cloudflare .if-body { padding: 16px 17px 18px; }
.page-add-cloudflare .if-help { font-size: 10.5px; line-height: 13px; }
.page-add-cloudflare .if-label { font-size: 12px; }
.page-add-cloudflare .if-input, .page-add-cloudflare .if-select, .page-add-cloudflare .if-multi-chip { font-size: 12px; }
.page-add-cloudflare .if-textarea { font-size: 10.5px; line-height: 14px; }
.page-add-cloudflare .if-chip { height: 22px; font-size: 10.5px; }
.if-row-c1 { grid-template-columns: 295fr 297fr 279fr; gap: 22px; }
.if-row-c2 { grid-template-columns: 264fr 239fr 187fr 170fr; gap: 19px; }
.if-row-c3 { grid-template-columns: 222fr 257fr 149fr 221fr; gap: 19px; align-items: end; }
.if-row-c5 { grid-template-columns: 135fr 191fr 253fr 145fr 145fr; gap: 16px; }
.if-row-c6 { grid-template-columns: 187fr 195fr 259fr 225fr; gap: 17px; }
.page-add-cloudflare .if-mini-grid { gap: 12px; }
.page-add-cloudflare .if-mini-name { font-size: 11px; }
.page-add-cloudflare .if-mini-sub { font-size: 10px; }
.if-addon-crown { color: var(--fg-warning); }
.page-add-cloudflare .if-rail-title { font-size: 12.5px; white-space: nowrap; }
.page-add-cloudflare .if-rail-head .if-link { font-size: 10.5px; white-space: nowrap; }
.page-add-cloudflare .if-vault-btn { font-size: 10.5px; padding: 0 9px; gap: 6px; }
.page-add-cloudflare .if-mini-name { font-size: 10px; }
.page-add-cloudflare .if-mini { padding: 0 9px; }
.if-row-c2 .if-addon { flex-basis: 30px; }
.if-row-c2 .if-addon .icon { width: 15px; height: 15px; }
.if-row-c2 .if-select, .if-row-c2 .if-input { padding-left: 8px; }
.if-row-c2 .if-select { padding-right: 22px; }
.if-row-c2 .if-chevron { right: 7px; width: 13px; height: 13px; }
.if-row-c2 .if-multi-btn { padding-left: 7px; padding-right: 24px; }
.page-add-cloudflare .if-identity-name { font-size: 16px; }
.if-identity-mark-white { background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.page-add-cloudflare .if-rail-title { font-size: 12px; }
.page-add-cloudflare .if-mini-name { font-size: 9.5px; }
.page-add-cloudflare .if-mini-sub { font-size: 9.5px; }
.page-add-cloudflare .if-mini-top .icon { width: 11px; height: 11px; }
.page-add-cloudflare .if-service-sub { font-size: 9px; }
.page-add-cloudflare .if-service { padding: 9px 8px; gap: 8px; }
.page-add-cloudflare .if-service-ico { flex-basis: 28px; width: 28px; height: 28px; }
.page-add-cloudflare .if-service-title { font-size: 11px; }
.page-add-cloudflare .if-static { font-size: 11px; padding-left: 8px; }
.page-add-cloudflare .if-control-static .if-pill { height: 20px; font-size: 10px; padding: 0 7px; }
.page-add-cloudflare .if-control-static { padding-right: 6px; }
.page-add-cloudflare .if-chip { height: 20px; font-size: 10px; padding: 0 6px 0 7px; gap: 4px; }
.page-add-cloudflare .if-chips { gap: 5px; }
.page-add-cloudflare .if-chip-add { padding: 0 7px; }

/* ---- shared: tagfield without chevron ----------------------------------- */
.if-tagfield-nochev { padding-right: 6px; }
.if-tagfield-nochev .if-tag-input { flex: 1 1 0; min-width: 0; }

/* ---- shared: buttons, avatar, donut, map table (Google) ----------------- */
.if-btn-outline { height: 38px; padding: 0 14px; gap: 8px; border-radius: 8px; border: 1px solid var(--border-primary); background: var(--bg-surface); color: var(--text-link); font-size: 12px; font-weight: 700; }
.if-btn-outline .btn-icon { width: 14px; height: 14px; }
.if-btn-block { width: 100%; justify-content: center; }
.if-btn-icon-only { width: 38px; padding: 0; flex: 0 0 38px; }
.if-avatar-row { display: flex; align-items: center; gap: 12px; height: 38px; }
.if-avatar { flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-muted-3); color: var(--text-tertiary); font-size: 16px; font-weight: 700; }
.if-btn-avatar { height: 34px; font-size: 11.5px; padding: 0 12px; }
.if-check-lg { align-items: flex-start; margin-top: 12px; gap: 10px; }
.if-check-lg .if-check-box { margin-top: 1px; width: 17px; height: 17px; flex-basis: 17px; }
.if-check-text { display: flex; flex-direction: column; gap: 2px; }
.if-check-title { font-size: 12px; font-weight: 700; color: var(--text-primary-2); }
.if-check-sub { font-size: 10.5px; font-weight: 500; color: var(--text-muted); }
.if-map-table { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: 9px; overflow: hidden; background: var(--bg-subtle-4); }
.if-map-row { display: flex; align-items: center; gap: 9px; height: 27px; padding: 0 9px; font-size: 10.5px; color: var(--text-secondary-2); border-top: 1px solid var(--border-subtle); }
.if-map-row:first-child { border-top: 0; }
.if-map-ico { display: inline-flex; color: var(--fg-success); }
.if-map-ico .icon { width: 13px; height: 13px; }
.if-map-row.is-missing .if-map-ico { color: var(--fg-danger); }
.if-map-site { flex: 0 0 96px; font-weight: 600; color: var(--text-primary-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.if-map-arrow { display: inline-flex; color: var(--text-disabled); }
.if-map-arrow .icon { width: 12px; height: 12px; }
.if-map-row.is-missing .if-map-arrow { color: var(--fg-danger); }
.if-map-prop { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.if-map-row.is-missing .if-map-prop { color: var(--text-danger); }
.if-map-state { flex: 0 0 auto; }
.if-map-state .if-pill { height: 18px; font-size: 9.5px; padding: 0 6px; gap: 4px; }
.if-map-state .if-pill-check { width: 10px; height: 10px; flex-basis: 10px; }
.if-mapstat { display: flex; align-items: center; gap: 12px; }
.if-donut { position: relative; flex: 0 0 66px; width: 66px; height: 66px; border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--bg-muted) 0); display: inline-flex; align-items: center; justify-content: center; }
.if-donut::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg-surface); }
.if-donut-value { position: relative; z-index: 1; font-size: 12.5px; font-weight: 800; color: var(--text-primary-2); }
.if-mapstat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.if-mapstat-title { font-size: 12px; font-weight: 700; color: var(--text-primary-2); line-height: 15px; }
.if-mapstat-line { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--text-tertiary); }
.if-mapstat-actions { display: flex; gap: 8px; margin-top: 10px; }
.if-mapstat-actions .if-btn-outline { height: 32px; font-size: 11px; }
.if-mapstat-actions .if-btn-icon-only { width: 32px; flex-basis: 32px; }
.if-gservice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.if-gservice { display: flex; flex-direction: column; justify-content: space-between; gap: 11px; padding: 11px 12px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-subtle-4); min-width: 0; }
.if-gservice-head { display: flex; gap: 10px; }
.if-gservice-logo { flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.if-gservice-logo .if-logo-svg { width: 26px; height: 26px; }
.if-gservice-title { display: block; font-size: 12px; font-weight: 700; color: var(--text-primary-2); }
.if-gservice-sub { display: block; margin-top: 2px; font-size: 10px; line-height: 13px; color: var(--text-muted); }
.if-gservice-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.if-gservice-meta { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
a.if-gservice-meta { color: var(--text-link); }
.if-divided-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.if-divided-row > .if-field { padding: 0 12px; border-left: 1px solid var(--border-subtle); min-width: 0; }
.if-divided-row > .if-field:first-child { border-left: 0; padding-left: 0; }
.if-control-sm { height: 32px; }
.if-control-sm .if-select { font-size: 11.5px; }
.if-card-inline { display: flex; align-items: flex-start; gap: 16px; padding: 12px 14px 14px; }
.if-inline-head { display: flex; align-items: flex-start; gap: 11px; flex: 0 0 250px; padding-top: 12px; }
.if-inline-body { display: grid; grid-template-columns: 145fr 205fr 360fr; gap: 12px; flex: 1 1 auto; min-width: 0; }
.if-textarea-line { height: 38px; min-height: 38px; padding-top: 9px; }
.if-textarea-note { height: 56px; min-height: 56px; }
.if-svc-list .if-svc-logo { flex: 0 0 17px; width: 17px; height: 17px; display: inline-flex; }
.if-svc-list .if-svc-logo .if-logo-svg { width: 17px; height: 17px; }
.if-rail-row-plain { border-top: 0 !important; }
.if-ok { color: var(--fg-success); }
.if-need-help .if-rail-sub { align-items: center; }
.if-need-help .if-rail-sub-ico { background: var(--tint-info); }
.if-btn-doc { height: 34px; font-size: 11px; padding: 0 11px; flex: 0 0 auto; }

/* ---- page: Add Google Account ------------------------------------------- */
.page-add-google { --if-primary-w: 320px; }
.if-layout-google { grid-template-columns: minmax(0, 1fr) 333px; column-gap: 14px; }
.page-add-google .if-card-head { padding: 12px 12px 10px; }
.page-add-google .if-body { padding: 15px 12px 16px; }
.page-add-google .if-label { font-size: 11.5px; margin-bottom: 6px; }
.page-add-google .if-input, .page-add-google .if-select, .page-add-google .if-multi-chip { font-size: 11.5px; }
.page-add-google .if-help { font-size: 10px; line-height: 13px; }
.page-add-google .if-textarea { font-size: 11px; line-height: 15px; }
.page-add-google .if-chip { height: 20px; font-size: 10px; padding: 0 6px 0 7px; gap: 4px; }
.page-add-google .if-chips { gap: 5px; }
.page-add-google .if-control { height: 36px; }
.page-add-google .if-addon { flex-basis: 32px; }
.page-add-google .if-addon .icon { width: 15px; height: 15px; }
.page-add-google .if-row { margin-bottom: 18px; }
.page-add-google .if-mini-name { font-size: 10px; }
.page-add-google .if-mini-sub { font-size: 9.5px; }
.page-add-google .if-mini { padding: 0 9px; height: 42px; }
.page-add-google .if-rail-card { padding: 12px 15px 14px; }
.page-add-google .if-rail-title { font-size: 12px; white-space: nowrap; }
.page-add-google .if-rail-head .if-link { font-size: 10px; white-space: nowrap; }
.page-add-google .if-kv { min-height: 27px; font-size: 11.5px; }
.page-add-google .if-kv-label { flex-basis: 96px; }
.page-add-google .if-identity-name { font-size: 15px; }
.page-add-google .if-rail-band { padding: 12px 15px 14px; }
.page-add-google .if-rail-body { padding: 2px 15px 12px; }
.page-add-google .if-rail-row { font-size: 11px; min-height: 25px; }
.page-add-google .if-rail-time { font-size: 10px; }
.page-add-google .if-tips-list li { font-size: 11px; }
.if-row-g1 { grid-template-columns: 273fr 247fr 169fr 196fr; gap: 18px; }
.if-row-g1b { grid-template-columns: 273fr 247fr 388fr; gap: 18px; }
.if-row-g2 { grid-template-columns: 232fr 210fr 190fr 258fr; gap: 18px; }
.if-row-g4 { grid-template-columns: 317fr 384fr 204fr; gap: 20px; align-items: start; }
.if-row-g5 { grid-template-columns: 228fr 244fr 102fr 132fr 171fr; gap: 16px; align-items: end; }
.if-body-sync { padding-bottom: 14px; }
.page-add-google .if-mini-grid { gap: 11px; }
.page-add-google .if-chip { height: 19px; font-size: 9.5px; padding: 0 5px 0 6px; gap: 3px; }
.page-add-google .if-chips { gap: 4px; }
.page-add-google .if-chip-x .icon { width: 9px; height: 9px; }
.page-add-google .if-kv-label { flex-basis: 104px; font-size: 11px; }
.page-add-google .if-kv-value { font-size: 11px; }
.page-add-google .if-svc-list .if-rail-row-name { font-size: 10.5px; }
.page-add-google .if-svc-list .if-pill { height: 18px; font-size: 9.5px; padding: 0 6px; gap: 4px; }
.page-add-google .if-svc-list .if-pill-check { width: 10px; height: 10px; flex-basis: 10px; }
.page-add-google .if-svc-list .if-rail-time { font-size: 9.5px; }
.page-add-google .if-svc-list .if-link { font-size: 10px; }
.page-add-google .if-svc-list .if-rail-row-right { gap: 6px; }
.if-gservice-foot .if-toggle-text { white-space: nowrap; }
.page-add-google .if-tagfield { min-height: 36px; }
.page-add-google .if-tagfield .if-chips { flex-wrap: nowrap; overflow: hidden; }
.page-add-google .if-chip { font-size: 9px; }
.page-add-google .if-divided-row .if-select { font-size: 10.5px; }
.if-row-g5 .if-select { font-size: 11px; }
.if-row-g5 .if-addon { flex-basis: 30px; }
.page-add-google .if-btn-outline { font-size: 11px; padding: 0 11px; }
.if-need-help .if-rail-line { font-size: 10.5px; line-height: 14px; }
.if-need-help .if-rail-sub-title { font-size: 12px; margin-bottom: 4px; }
.if-need-help .if-rail-sub { gap: 10px; }
.if-need-help .if-rail-sub-ico { flex-basis: 32px; width: 32px; height: 32px; }
.if-btn-doc { height: 32px; font-size: 10.5px; padding: 0 9px; white-space: nowrap; }
.if-chip { flex: 0 0 auto; }
.if-inline-body .if-label { font-size: 10px; white-space: nowrap; }
.if-inline-body { grid-template-columns: 165fr 200fr 350fr; }
.if-textarea-line { padding-right: 48px; }
.if-row-g5 .if-select { font-size: 10.5px; }
.if-need-help .if-rail-sub-body { min-width: 0; }
.if-btn-doc { flex-shrink: 0; font-size: 10px; }
.if-tagfield-nochev .if-tag-input { flex: 1 1 40px; min-width: 40px; }
.page-add-google .if-tag-input { font-size: 9.5px; }
.page-add-cloudflare .if-tag-input { font-size: 10px; }
.page-add-google .if-chip { font-size: 8.5px; height: 18px; padding: 0 4px 0 5px; gap: 3px; }
.page-add-google .if-chip-x { width: 9px; height: 9px; }
.page-add-google .if-chip-x .icon { width: 8px; height: 8px; }
.page-add-google .if-chips { gap: 4px; }
.page-add-google .if-tag-input { font-size: 9px; }

/* ---- dark-mode nudges (tokens cover the rest) --------------------------- */
html[data-theme="dark"] .if-band-map { opacity: .12; }
html[data-theme="dark"] .if-identity-mark { background: var(--bg-muted); border: 1px solid var(--border-default); }
html[data-theme="dark"] .if-avatar { background: var(--bg-muted); }
html[data-theme="dark"] .if-toggle-track::after { background: #F8FAFC; }
html[data-theme="dark"] .if-footer-sticky { box-shadow: 0 -1px 2px rgba(0,0,0,.4); }
html[data-theme="dark"] .if-btn-primary { box-shadow: none; }
.page-add-registrar .if-mini-name { font-size: 9.8px; }

/* ==========================================================================
   REPORTS → ANALYTICS (design-reference/analytics.png). Prefix .an-.
   Compact, dense SaaS analytics. Content area only; shell untouched.
   ========================================================================== */
.page-analytics { padding-bottom: 20px; }
.an-crumb { margin-bottom: 8px; font-size: 12px; }

/* --- page header ----------------------------------------------------------- */
.an-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.an-head-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: var(--tint-success); color: var(--text-success); }
.an-head-icon .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.an-head-text { flex: 1 1 auto; min-width: 0; }
.an-title { margin: 0; font-size: 23px; line-height: 29px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.an-sub { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.an-head-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-top: 2px; }
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.an-btn-outline { color: var(--text-link); border-color: var(--border-primary-2); }
.an-btn-outline:hover { background: var(--tint-info); border-color: var(--primary); }
.an-btn-green { background: var(--success); border-color: var(--success); color: #fff; }
.an-btn-green:hover { background: var(--fill-success); border-color: var(--fill-success); color: #fff; }
.an-btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.an-btn-icon { width: 14px; height: 14px; }

/* --- filter bar ------------------------------------------------------------- */
.an-filters { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1.15fr 1.25fr 1.15fr; gap: 10px; margin-bottom: 12px; }
.an-filter { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 26px 0 11px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); cursor: pointer; }
.an-filter:hover { border-color: var(--border-primary-2); }
.an-filter:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(18, 103, 243, .1); }
.an-filter-icon { width: 15px; height: 15px; color: var(--text-link); flex: 0 0 auto; }
.an-filter-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1 1 auto; }
.an-filter-label { font-size: 9.5px; font-weight: 500; letter-spacing: .2px; color: var(--muted); line-height: 11px; }
.an-filter select { width: 100%; border: 0; padding: 0; background: transparent; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 16px; outline: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.an-filter-chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }

/* --- shared card ------------------------------------------------------------ */
.an-card { border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); min-width: 0; }
.an-pad { padding: 13px 14px 14px; display: flex; flex-direction: column; }
.an-card-head { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-bottom: 10px; flex-wrap: wrap; }
.an-card-title { flex: 0 0 auto; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: -.1px; color: var(--text); }
.an-legend { display: inline-flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; margin-left: auto; flex-wrap: nowrap; }
.an-range { margin-left: 10px; }
/* the two wide chart cards centre their legend, as in the reference */
.an-row-a .an-legend, .an-row-c .an-legend { flex: 1 1 auto; margin-left: 0; justify-content: center; }
/* row D cards are narrow: tighten legend + range so the head stays on one line */
.an-row-d .an-legend { gap: 8px; }
.an-row-d .an-leg { font-size: 9px; gap: 4px; }
.an-row-d .an-range { margin-left: 7px; }
.an-row-d .an-range-btn { padding: 0 6px; font-size: 9.5px; gap: 4px; }
.an-row-d .an-card-title { font-size: 12.5px; }
.an-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.an-leg i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.an-viewall { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.an-viewall:hover { text-decoration: underline; text-underline-offset: 2px; }
.an-range { flex: 0 0 auto; }
.an-range-btn { display: inline-flex; align-items: center; gap: 7px; height: 27px; padding: 0 9px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.an-range-btn:hover { border-color: var(--border-primary-2); color: var(--text); }
.an-range-chev { width: 11px; height: 11px; }

/* --- tone tints -------------------------------------------------------------- */
.an-t-green  { background: var(--tint-success); color: var(--text-success); }
.an-t-red    { background: var(--tint-danger);  color: var(--text-danger-2); }
.an-t-blue   { background: var(--tint-info);    color: var(--text-link); }
.an-t-purple { background: var(--tint-purple);  color: var(--text-purple); }
.an-t-amber  { background: var(--tint-warning); color: var(--text-warning-4); }

/* --- KPI row ------------------------------------------------------------------ */
.an-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-bottom: 12px; }
.an-kpi { display: flex; flex-direction: column; padding: 11px 12px 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); }
.an-kpi-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.an-kpi-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; }
.an-kpi-icon .icon { width: 15px; height: 15px; stroke-width: 1.9; }
.an-kpi-label { font-size: 10.5px; font-weight: 500; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-kpi-value { margin-top: 0; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.6px; color: var(--text); white-space: nowrap; }
.an-kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 20px; }
.an-kpi-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.an-trend-up { color: var(--text-success); }
.an-trend-down { color: var(--text-danger-2); }
.an-trend-icon { width: 10px; height: 10px; stroke-width: 2.6; }
.an-spark { margin-left: auto; display: block; }
.an-kpi-sub { margin-top: 2px; font-size: 10px; color: var(--muted); }

/* --- rows ---------------------------------------------------------------------- */
.an-row { display: grid; gap: 11px; margin-bottom: 12px; align-items: stretch; }
.an-row-a { grid-template-columns: 1.32fr 1fr; }
.an-row-b { grid-template-columns: 1.3fr 1fr; }
.an-row-c { grid-template-columns: 1.32fr 1fr; }
.an-row-d { grid-template-columns: 1.66fr 1.45fr 1fr; }
.an-row-e { grid-template-columns: 1.56fr 1.09fr 1fr; }

.an-chart { position: relative; height: 168px; flex: 1 1 auto; }
.an-chart-lg { height: 178px; }

/* --- donut + legend ------------------------------------------------------------- */
.an-mix { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; }
.an-donut { position: relative; flex: 0 0 132px; width: 132px; height: 132px; }
.an-donut canvas { width: 132px !important; height: 132px !important; }
.an-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.an-donut-center b { font-size: 16px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.an-donut-center i { margin-top: 1px; font-size: 9.5px; font-style: normal; color: var(--muted); }
.an-mix-legend { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.an-mix-legend li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; min-height: 20px; font-size: 10.5px; color: var(--text-2); }
.an-mix-legend i { width: 7px; height: 7px; border-radius: 50%; }
.an-mix-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-mix-pct { min-width: 36px; text-align: right; color: var(--text-2); }
.an-mix-amt { min-width: 44px; text-align: right; font-weight: 700; color: var(--text); }

/* --- Profit by GEO --------------------------------------------------------------- */
.an-geo { display: grid; grid-template-columns: 1fr 1.02fr; gap: 12px; align-items: center; flex: 1 1 auto; }
.an-map { height: 184px; display: flex; align-items: center; justify-content: center; }
/* the real atlas (assets/maps/world.svg): land is a flat tint, markers size by share */
.an-atlas { display: block; width: 100%; height: 100%; }
.an-atlas .wmap-countries path { stroke: inherit; stroke-width: .6; }
.an-atlas .atlas-dots circle { fill: #00A86B; opacity: .92; }
html:not([data-theme="dark"]) .an-atlas .wmap-countries path { fill: #CFE7D8; stroke: #CFE7D8; }
html:not([data-theme="dark"]) .an-atlas .atlas-dots circle { stroke: #fff; stroke-width: 2.5; }
html[data-theme="dark"] .an-atlas .wmap-countries path { fill: #1B3247; stroke: #1B3247; }
html[data-theme="dark"] .an-atlas .atlas-dots circle { stroke: #0D1B29; stroke-width: 2.5; }
.an-map-svg .map-dots circle, .an-map .map-dots circle { fill: #00A86B; stroke: #fff; stroke-width: .45; opacity: .92; }
/* light-mode land tint only — the shared dark rule handles data-theme=dark */
html:not([data-theme="dark"]) .an-map-svg > g:first-child path,
html:not([data-theme="dark"]) .an-map svg > g:first-child path { fill: #CFE7D8; }
html[data-theme="dark"] .an-map-svg > g:first-child path,
html[data-theme="dark"] .an-map svg > g:first-child path { fill: #1B3247; }
.an-geo-list { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.an-geo-list li { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; min-height: 20px; font-size: 10.5px; color: var(--text-2); }
.an-geo-list .flag { width: 15px; height: 11px; border-radius: 2px; }
.an-geo-globe { width: 13px; height: 13px; color: var(--text-tertiary); }
.an-geo-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-geo-amt { min-width: 44px; text-align: right; font-weight: 700; color: var(--text); }
.an-geo-pct { min-width: 38px; text-align: right; }

/* --- tables ----------------------------------------------------------------------- */
.an-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.an-table th { height: 26px; padding: 0 7px; font-size: 9.5px; font-weight: 600; letter-spacing: .3px; text-transform: none; color: var(--text-2); background: var(--bg-subtle); text-align: left; }
.an-table th:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.an-table th:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.an-table td { height: 34px; padding: 0 7px; font-size: 10.5px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.an-table tbody tr:last-child td { border-bottom: 0; }
.an-table tbody tr:hover td { background: var(--bg-subtle-7); }
.an-rank { font-weight: 600; color: var(--text-2); }
.an-strong { font-weight: 700; }
.an-pos { color: var(--text-success); font-weight: 700; }
.an-site { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.an-site-mark { width: 19px !important; height: 19px !important; border-radius: 5px; flex: 0 0 auto; }
.an-bm-mark { width: 17px !important; height: 17px !important; border-radius: 4px; flex: 0 0 auto; }
/* monogram fallback tiles are tiny here — shrink the 2-letter mark to fit */
.an-site-mark .logo-mono { font-size: 8px; letter-spacing: 0; }
.an-bm-mark .logo-mono { font-size: 7px; letter-spacing: 0; }
.an-link { color: var(--text-link); font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.an-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.an-geo-cell { display: inline-flex; align-items: center; gap: 6px; }
.an-geo-cell .flag { width: 15px; height: 11px; border-radius: 2px; }
.an-showing { margin: 9px 0 0; font-size: 10px; color: var(--muted); }
/* six columns in a third-width card: tighten this table a notch so no cell clips */
.an-table-web td, .an-table-web th { padding: 0 5px; }
.an-table-web td { font-size: 10px; }
.an-table-web .an-site { gap: 6px; }

/* --- Quick Insights ----------------------------------------------------------------- */
.an-insights-card { background: linear-gradient(180deg, var(--bg-selected-15) 0%, var(--bg-surface) 46%); }
.an-insights { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.an-insights li { display: flex; align-items: flex-start; gap: 9px; }
.an-ins-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; }
.an-ins-icon .icon { width: 13px; height: 13px; stroke-width: 2; }
.an-ins-text { font-size: 10.5px; line-height: 15px; color: var(--text-2); }
.an-ins-cta { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; margin-top: 10px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; text-decoration: none; }
.an-ins-cta:hover { background: var(--primary-2); color: #fff; }
.an-ins-cta-icon { width: 12px; height: 12px; }

/* --- Detailed Reports header ---------------------------------------------------------- */
.an-reports-head { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin: 2px 0 11px; }
.an-section-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); flex: 0 0 auto; }
.an-pills { display: inline-flex; align-items: center; gap: 15px; flex: 1 1 auto; flex-wrap: wrap; }
.an-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-size: 11.5px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background-color .12s ease, color .12s ease; }
.an-pill:hover { background: var(--bg-subtle-7); color: var(--text); }
.an-pill.is-active, .an-pill.is-active:hover { background: var(--success); border-color: var(--success); color: #fff; }
.an-pill-icon { width: 13px; height: 13px; }

/* --- rank lists ------------------------------------------------------------------------ */
.an-rank-list { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.an-rank-list li { display: grid; grid-template-columns: 14px 17px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; min-height: 34px; font-size: 10.5px; color: var(--text-2); border-bottom: 1px solid var(--border-soft); }
.an-rank-list li:last-child { border-bottom: 0; }
.an-rank-geo li { grid-template-columns: 17px minmax(0, 1fr) auto auto; }
.an-rank-geo .flag { width: 15px; height: 11px; border-radius: 2px; }
.an-rank-n { font-weight: 600; color: var(--text-2); }
.an-rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-rank-amt { min-width: 46px; text-align: right; font-weight: 700; color: var(--text); }
.an-rank-pct { min-width: 38px; text-align: right; }

/* --- responsive -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .an-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the Revenue by Website table needs more room than a 3-up row leaves below ~1330 */
@media (max-width: 1330px) {
  .an-row-e { grid-template-columns: 1fr 1fr; }
  .an-row-e > :last-child { grid-column: span 2; }
}
@media (max-width: 1200px) {
  .an-row-d { grid-template-columns: 1fr 1fr; }
  .an-row-d > :last-child { grid-column: span 2; }
}
@media (max-width: 980px) {
  .an-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-row-a, .an-row-b, .an-row-c, .an-row-d, .an-row-e { grid-template-columns: minmax(0, 1fr); }
  .an-row-d > :last-child, .an-row-e > :last-child { grid-column: auto; }
  .an-geo { grid-template-columns: 1fr; }
  .an-head { flex-wrap: wrap; }
  .an-head-actions { width: 100%; }
}
@media (max-width: 620px) {
  .an-filters { grid-template-columns: minmax(0, 1fr); }
  .an-mix { flex-direction: column; align-items: stretch; }
  .an-donut { align-self: center; }
  .an-reports-head { flex-direction: column; align-items: stretch; }
}


/* ==========================================================================
   REPORTS > ANALYTICS > DETAILED REPORTS - Expenses and Profitability bodies.
   Prefix .anr-. Only the report body below the tab row; the page header, the
   global filter bar, the topbar and the sidebar are untouched.
   ========================================================================== */

.an-report-body { position: relative; min-height: 120px; }
.an-report-body.is-loading { opacity: .55; pointer-events: none; }
.an-report-body.is-loading::after { content: ""; position: absolute; inset: 0; background: var(--bg-surface); opacity: .25; }

.anr { display: flex; flex-direction: column; gap: 12px; }

/* --- shared card ----------------------------------------------------------- */
.anr-card { border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); min-width: 0; }
.anr-pad { padding: 12px 13px 13px; display: flex; flex-direction: column; }
.anr-cardhead { display: flex; align-items: center; gap: 10px; min-height: 24px; margin-bottom: 10px; }
.anr-title { flex: 0 0 auto; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: -.1px; color: var(--text); }
.anr-viewall { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.anr-viewall:hover { color: var(--text-link); }

/* --- report header card ---------------------------------------------------- */
.anr-head-card { padding: 12px; }
.anr-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.anr-head-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; }
.anr-head-icon svg { width: 22px; height: 22px; }
.anr-head-text { min-width: 0; flex: 1 1 auto; }
.anr-head-title { margin: 1px 0 0; font-size: 17px; line-height: 21px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.anr-head-sub { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }

/* --- period / granularity dropdown ----------------------------------------- */
.anr-range { flex: 0 0 auto; margin-left: auto; }
.anr-range-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px 0 11px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; cursor: pointer; }
.anr-range-btn:hover { border-color: var(--border-primary-2); }
.anr-range-chev { width: 13px; height: 13px; color: var(--text-tertiary); }
.anr-range .dropdown-menu a { display: block; padding: 6px 11px; font-size: 11.5px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.anr-range .dropdown-menu a:hover { background: var(--bg-subtle-7); color: var(--text); }
.anr-range .dropdown-menu a.is-on { color: var(--text-link); font-weight: 600; }

/* --- stat cards ------------------------------------------------------------ */
.anr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 17px; }
.anr-stat { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-surface); min-width: 0; transition: border-color .12s ease, box-shadow .12s ease; }
.anr-stat:hover { border-color: var(--border-primary-2); box-shadow: 0 1px 3px var(--ink-06); }
.anr-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; }
.anr-stat-icon svg { width: 22px; height: 22px; }
.anr-stat-body { min-width: 0; flex: 1 1 auto; }
.anr-stat-label { font-size: 11px; font-weight: 500; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anr-stat-value { margin-top: 1px; font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.6px; color: var(--text); }
.anr-stat-delta { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; padding: 1px 6px 1px 4px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.anr-stat-delta.is-good { color: var(--text-success); background: var(--tint-success); }
.anr-stat-delta.is-bad { color: var(--text-danger); background: var(--tint-danger); }
.anr-stat-delta.is-flat { color: var(--muted); background: var(--bg-subtle-7); }
.anr-stat-arrow { width: 11px; height: 11px; }
.anr-stat-sub { margin-top: 3px; font-size: 10.5px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* icon tile tints, reused by the header tile and the stat tiles */
.anr-t-red { background: var(--tint-danger); color: var(--fg-danger); }
.anr-t-green { background: var(--tint-success); color: var(--fg-success); }
.anr-t-blue { background: var(--tint-info); color: var(--text-link); }
.anr-t-purple { background: var(--tint-purple); color: var(--fg-purple); }
.anr-t-amber { background: var(--tint-warning); color: var(--fg-warning); }

/* --- chart rows ------------------------------------------------------------ */
.anr-duo { display: grid; grid-template-columns: 1.27fr 1fr; gap: 12px; align-items: stretch; }
.anr-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.anr-duo > .anr-card, .anr-trio > .anr-card { min-width: 0; }

.anr-legend { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; margin-left: auto; flex-wrap: nowrap; }
.anr-leg { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font-family: var(--font); font-size: 10.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.anr-leg i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.anr-leg:hover { color: var(--text); }
.anr-leg.is-off { opacity: .42; text-decoration: line-through; }
.anr-legend + .anr-range { margin-left: 10px; }

.anr-chart { position: relative; width: 100%; }
.anr-chart-trend { height: 176px; }
.anr-chart-area { height: 150px; }
.anr-chart canvas { display: block; width: 100% !important; height: 100% !important; }

/* --- donut + legend -------------------------------------------------------- */
.anr-mix { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.anr-donut { position: relative; width: 182px; height: 182px; flex: 0 0 auto; }
.anr-donut canvas { width: 100% !important; height: 100% !important; }
.anr-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.anr-donut-value { font-size: 19px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.anr-donut-label { margin-top: 1px; font-size: 10px; font-weight: 500; color: var(--muted); }
.anr-dlegend { list-style: none; margin: 0; padding: 0 8px 0 0; flex: 1 1 auto; min-width: 0; }
.anr-dlegend a { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 5px 3px; border-radius: 5px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.anr-dlegend a:hover { background: var(--bg-subtle-7); color: var(--text); }
.anr-dlegend i { width: 9px; height: 9px; border-radius: 50%; }
.anr-dl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anr-dl-pct { min-width: 40px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.anr-dl-amt { min-width: 52px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* --- ranked mini tables ---------------------------------------------------- */
.anr-mini { width: 100%; border-collapse: collapse; table-layout: fixed; }
.anr-mini th { height: 26px; padding: 0 4px; background: var(--bg-subtle-3); font-size: 10px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.anr-mini th:first-child { border-radius: 5px 0 0 5px; padding-left: 8px; }
.anr-mini th:last-child { border-radius: 0 5px 5px 0; padding-right: 8px; }
.anr-mini td { height: 31px; padding: 0 4px; border-bottom: 1px solid var(--border-soft); font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.anr-mini td:first-child { padding-left: 8px; }
.anr-mini td:last-child { padding-right: 8px; }
.anr-mini tbody tr:last-child td { border-bottom: 0; }
.anr-mini tbody tr:hover td { background: var(--bg-subtle-7); }
.anr-r { text-align: right; }
.anr-rank { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.anr-strong { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.anr-muted { color: var(--muted); font-variant-numeric: tabular-nums; }
.anr-clip { overflow: hidden; text-overflow: ellipsis; }
.anr-neg { color: var(--text-danger); }
.anr-marg { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--tint-success); color: var(--text-success); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.anr-marg.is-loss { background: var(--tint-danger); color: var(--text-danger); }

.anr-link { color: var(--text-link); text-decoration: none; }
.anr-link:hover { text-decoration: underline; }
.anr-plain { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.anr-plain:hover { color: var(--text-link); }
.anr-plain > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anr-site { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.anr-smark { width: 17px; height: 17px; border-radius: 4px; flex: 0 0 auto; }
.anr-geo { gap: 7px; }
.anr-geo .flag { width: 16px; height: 12px; border-radius: 2px; flex: 0 0 auto; }
.anr-cat { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.anr-cat-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 3px var(--bg-surface), 0 0 0 1px var(--dot); flex: 0 0 auto; }
.anr-vendor { gap: 7px; }
.anr-vmark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 4px; overflow: hidden; flex: 0 0 auto; background: var(--bg-subtle-3); }
.anr-vmark svg { width: 100%; height: 100%; }
.anr-vmark-plain { background: var(--text); color: var(--bg-surface); }
.anr-vmark-plain svg { width: 11px; height: 11px; }
.anr-method { gap: 7px; }
.anr-pmark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 4px; background: var(--bg-subtle-3); flex: 0 0 auto; overflow: hidden; }
.anr-pmark svg { width: 13px; height: 13px; }
.anr-pmark-icon { color: var(--text-2); }
.anr-smark .logo-mono, .anr-bars .logo-mono { font-size: 7px; letter-spacing: 0; }
.anr-pmark-svg { display: inline-flex; width: 100%; height: 100%; }
.anr-pmark-svg svg { width: 100%; height: 100%; }
.anr-dash { color: var(--text-tertiary); }

/* --- profit-by-website bar list -------------------------------------------- */
.anr-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.anr-bars li { display: grid; grid-template-columns: 13px 17px minmax(88px, 1.35fr) minmax(60px, 2fr) auto auto; align-items: center; gap: 8px; min-height: 29px; font-size: 11.5px; }
.anr-bars-n { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.anr-bars-mark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 4px; background: var(--bg-subtle-3); color: var(--muted); }
.anr-bars-icon { width: 11px; height: 11px; }
.anr-bars-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-link); text-decoration: none; }
.anr-bars li.is-rest .anr-bars-name { color: var(--text-2); }
a.anr-bars-name:hover { text-decoration: underline; }
.anr-bars-track { position: relative; height: 13px; border-radius: 7px; background: var(--bg-track); overflow: hidden; }
.anr-bars-track i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #21C17E 0%, #17A96B 100%); }
.anr-bars li.is-rest .anr-bars-track i { background: linear-gradient(90deg, #97A3B8 0%, #77869C 100%); }
.anr-bars-amt { min-width: 52px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.anr-bars-pct { min-width: 46px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- list card: filter row, table, footer ---------------------------------- */
.anr-list { display: flex; flex-direction: column; }
.anr-filterbar { display: flex; align-items: center; gap: 9px; padding: 11px 12px; }
.anr-search { position: relative; display: flex; align-items: center; flex: 1 1 250px; min-width: 150px; height: 40px; padding: 0 11px 0 32px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.anr-search:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(18, 103, 243, .1); }
.anr-search-icon { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--text-tertiary); }
.anr-search input { width: 100%; border: 0; padding: 0; background: none; font-family: var(--font); font-size: 12px; color: var(--text); outline: none; }
.anr-search input::placeholder { color: var(--text-tertiary); }
.anr-select { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 0 1 152px; min-width: 112px; height: 40px; padding: 0 24px 0 11px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); cursor: pointer; }
.anr-select:hover { border-color: var(--border-primary-2); }
.anr-select:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(18, 103, 243, .1); }
.anr-select-label { font-size: 9px; font-weight: 500; letter-spacing: .2px; color: var(--muted); line-height: 10px; }
.anr-select select { width: 100%; border: 0; padding: 0; background: none; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text); line-height: 16px; outline: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.anr-select-chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }

.anr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; flex: 0 0 auto; }
.anr-btn-icon { width: 15px; height: 15px; }
.anr-btn-filter { color: var(--text-link); border-color: var(--border-primary-2); }
.anr-btn-filter:hover { background: var(--tint-info); border-color: var(--primary); }
.anr-btn-reset { border-color: transparent; background: var(--bg-subtle-3); color: var(--text-2); }
.anr-btn-reset:hover { background: var(--bg-subtle-7); color: var(--text); }
.anr-btn-reset.is-off { opacity: .55; }
.anr-btn-ghost { height: 32px; padding: 0 12px; font-size: 12px; color: var(--text-link); border-color: var(--border-primary-2); }

.anr-tablewrap { overflow-x: auto; }
.anr-table { width: 100%; border-collapse: collapse; }
.anr-table th { height: 27px; padding: 0 8px; background: var(--bg-subtle-3); font-size: 10.5px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.anr-table td { height: 34px; padding: 0 8px; border-bottom: 1px solid var(--border-soft); font-size: 11.5px; color: var(--text-2); white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.anr-table tbody tr:last-child td { border-bottom: 0; }
.anr-table tbody tr:hover td { background: var(--bg-subtle-7); }
.anr-table .anr-check { width: 30px; padding-left: 12px; }
.anr-table .anr-rank { width: 28px; }
.anr-table .anr-nowrap { width: 84px; }
.anr-table input[type="checkbox"] { width: 13px; height: 13px; accent-color: var(--primary); cursor: pointer; }
.anr-sort { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.anr-sort:hover { color: var(--text); }
.anr-sort-icon { width: 11px; height: 11px; opacity: 0; transition: opacity .12s ease; }
.anr-table th:hover .anr-sort-icon { opacity: .6; }
.anr-table th.is-sorted { color: var(--text); font-weight: 600; }
.anr-table th.is-sorted .anr-sort-icon { opacity: 1; color: var(--text-link); }

.anr-badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.anr-badge i { width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); }
.anr-badge.is-paid { background: var(--tint-success); color: var(--text-success); }
.anr-badge.is-paid i { background: var(--success); }
.anr-badge.is-pending { background: var(--tint-warning); color: var(--text-warning); }
.anr-badge.is-pending i { background: var(--warning); }
.anr-badge.is-refunded { background: var(--tint-info); color: var(--text-link); }
.anr-badge.is-refunded i { background: var(--primary); }
.anr-badge.is-other { background: var(--bg-subtle-7); color: var(--muted); }
.anr-badge.is-other i { background: var(--muted); }

.anr-actions { display: inline-flex; }
.anr-dots { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); color: var(--muted); cursor: pointer; }
.anr-dots:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.anr-dots svg { width: 14px; height: 14px; }
.anr-actions .dropdown-menu button, .anr-actions .dropdown-menu a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 11px; border: 0; background: none; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; text-decoration: none; cursor: pointer; }
.anr-actions .dropdown-menu button:hover, .anr-actions .dropdown-menu a:hover { background: var(--bg-subtle-7); color: var(--text); }
.anr-actions .dropdown-menu svg { width: 14px; height: 14px; }
.anr-actions .dropdown-menu .is-danger { color: var(--text-danger); }
.anr-actions .dropdown-menu .is-danger:hover { background: var(--tint-danger); color: var(--text-danger); }

.anr-foot { display: flex; align-items: center; gap: 12px; padding: 11px 12px; }
.anr-showing { margin: 0; flex: 1 1 auto; font-size: 11.5px; color: var(--muted); }
.anr-pager { display: inline-flex; align-items: center; gap: 6px; }
.anr-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); font-size: 11.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.anr-pg:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.anr-pg.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.anr-pg.is-off { opacity: .4; }
.anr-pg-icon { width: 13px; height: 13px; }
.anr-per { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; justify-content: flex-end; font-size: 11.5px; color: var(--muted); }
.anr-per select { height: 30px; padding: 0 24px 0 10px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--text); appearance: none; cursor: pointer; }
.anr-per-chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }

/* --- empty and error states ------------------------------------------------ */
.anr-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; min-height: 128px; padding: 20px 16px; text-align: center; }
.anr-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 11px; background: var(--bg-subtle-3); color: var(--text-tertiary); }
.anr-empty-icon svg { width: 19px; height: 19px; }
.anr-empty-title { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text); }
.anr-empty-body { margin: 0 0 6px; font-size: 11.5px; color: var(--muted); max-width: 320px; }
.anr-error { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 34px 16px; text-align: center; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-surface); }
.anr-error-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.anr-error-body { margin: 0 0 8px; font-size: 11.5px; color: var(--muted); }

/* --- the tab row: Expenses turns red, Profitability green ------------------ */
.an-pills .an-pill { height: 26px; padding: 0 11px; border-color: transparent; background: var(--anr-pill-bg, rgba(18, 103, 243, .07)); color: var(--text-2); }
.an-pills .an-pill:hover { background: var(--anr-pill-hover, rgba(18, 103, 243, .13)); color: var(--text); }
.an-pills .an-pill.is-active, .an-pills .an-pill.is-active:hover { background: var(--success); border-color: var(--success); color: #fff; }
.an-pills .an-pill-expenses.is-active, .an-pills .an-pill-expenses.is-active:hover { background: #FD263E; border-color: #FD263E; color: #fff; }
.an-pills .an-pill-profitability.is-active, .an-pills .an-pill-profitability.is-active:hover { background: #07C06B; border-color: #07C06B; color: #fff; }
html[data-theme="dark"] .an-pills .an-pill { --anr-pill-bg: rgba(148, 163, 184, .12); --anr-pill-hover: rgba(148, 163, 184, .2); }

/* --- responsive ------------------------------------------------------------ */
/* the three ranked cards carry the longest labels on the tab; one step down keeps
   "Cloudways Server (SG-03)" and "Design & Dev" whole in a third of the row */
@media (max-width: 1400px) {
  .anr-trio .anr-mini td { font-size: 10px; }
}
@media (max-width: 1280px) {
  .anr-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anr-trio > :last-child { grid-column: span 2; }
}
/* the ranked cards are compact lists, not data tables: they fit their card rather
   than inheriting the shell's 112px-per-column minimum, and the expenses table
   keeps its first column pinned while the rest of it scrolls. */
@media (max-width: 1024px) {
  .table-scroll > .anr-mini { min-width: 0; table-layout: fixed; }
  .anr-table th.anr-check, .anr-table td.anr-check { position: sticky; left: 0; z-index: 2; background: var(--bg-surface); }
  .anr-table thead th.anr-check { background: var(--bg-subtle-3); z-index: 3; }
  .anr-table tbody tr:hover td.anr-check { background: var(--bg-subtle-7); }
}
@media (max-width: 1100px) {
  .anr-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .anr-trio { grid-template-columns: minmax(0, 1fr); }
  .anr-trio > :last-child { grid-column: auto; }
  .anr-filterbar { flex-wrap: wrap; }
  .anr-search { flex: 1 1 100%; }
  .anr-select { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 620px) {
  .anr-head { flex-wrap: wrap; }
  .anr-range { margin-left: 0; }
  .anr-mix { flex-direction: column; align-items: stretch; }
  .anr-donut { align-self: center; }
  .anr-dlegend { width: 100%; }
  .anr-foot { flex-wrap: wrap; justify-content: center; }
  .anr-showing, .anr-per { flex: 1 1 100%; justify-content: center; text-align: center; }
  .anr-btn, .anr-select { flex: 1 1 100%; }
  .anr-cardhead { flex-wrap: wrap; }
  .anr-legend { flex-wrap: wrap; margin-left: 0; }
}

/* ==========================================================================
   CLOUDFLARE ACCOUNTS — master-detail. Prefix .cf-. Content area only.
   ========================================================================== */
.cf-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.cf-heading-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 58px; width: 58px; height: 58px; }
.cf-heading-mark { width: 58px !important; height: 58px !important; border-radius: 0; background: transparent !important; }
.cf-heading-text { flex: 1 1 auto; min-width: 0; }
.cf-heading-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title-cf { font-size: 28px; line-height: 34px; }
.cf-heading-text .page-subtitle { margin-top: 3px; font-size: 13.5px; line-height: 19px; }
.cf-heading-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-top: 4px; }
.cf-heading-actions .btn-md { height: 40px; }
.cf-kebab { width: 40px; height: 40px; padding: 0; }
.cf-kebab .icon { width: 17px; height: 17px; }
.btn.is-busy { opacity: .7; cursor: progress; }

.cf-toast { margin: 0 0 14px; padding: 11px 14px; border: 1px solid var(--border-success); border-radius: 10px; background: var(--tint-success); color: var(--text-success); font-size: 13px; font-weight: 500; }
.cf-toast.is-error { border-color: var(--border-danger); background: var(--tint-danger); color: var(--text-danger-2); }
.cf-toast[hidden] { display: none; }

.cf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cf-stat { display: flex; align-items: flex-start; gap: 12px; padding: 16px; min-width: 0; }
.cf-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; }
.cf-stat-icon .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.cf-stat-body { min-width: 0; flex: 1 1 auto; }
.cf-stat-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.cf-stat-row { display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.cf-stat-value { font-size: 27px; line-height: 33px; font-weight: 700; letter-spacing: -.7px; color: var(--text); white-space: nowrap; }
.cf-stat-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.cf-flatpill { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; background: var(--bg-selected-15); color: var(--text-link); font-size: 11.5px; font-weight: 700; }

/* --- layout --------------------------------------------------------------- */
.cfa-body { --cfa-rail: 318px; display: grid; grid-template-columns: var(--cfa-rail) minmax(0, 1fr); gap: 16px; align-items: start; }
/* Collapsed rail: an icon strip, so switching account is still one click while
   the table keeps the width it needs. */
.cfa-body.is-rail-collapsed { --cfa-rail: 60px; }
.cf-rail-toggle { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cf-rail-toggle:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.cf-rail-toggle .icon { width: 17px; height: 17px; }
.cf-rail-chev { transition: transform .18s ease; }
.cfa-body:not(.is-rail-collapsed) .cf-rail-chev { transform: rotate(180deg); }
.is-rail-collapsed .cfa-side { padding: 11px 10px; }
.is-rail-collapsed .cf-side-head { justify-content: center; margin-bottom: 10px; }
.is-rail-collapsed .cf-side-head .card-title,
.is-rail-collapsed .cf-side-head .btn,
.is-rail-collapsed .cf-asearch,
.is-rail-collapsed .cf-acc-body,
.is-rail-collapsed .cf-acc-chev,
.is-rail-collapsed .cf-empty-sm .sp-sub,
.is-rail-collapsed .cf-empty-sm .card-title,
.is-rail-collapsed .cf-empty-sm .btn { display: none; }
/* Collapsed, the card chrome is dead weight around an already-square logo:
   the tile is just the mark, and selection is a ring on the mark itself. */
.is-rail-collapsed .cf-acccard { padding: 4px; justify-content: center; gap: 0; border-radius: 10px; border-color: transparent; background: transparent; box-shadow: none; }
.is-rail-collapsed .cf-acccard:hover { border-color: transparent; background: var(--bg-subtle-7); }
.is-rail-collapsed .cf-acccard.is-selected { border-color: transparent; background: transparent; box-shadow: none; }
.is-rail-collapsed .cf-acccard.is-selected .cf-acc-mark { box-shadow: 0 0 0 2px var(--primary); }
.is-rail-collapsed .cf-acclist { gap: 4px; }
.is-rail-collapsed .cf-empty-sm { padding: 6px 0; }
.cfa-side { padding: 16px; position: sticky; top: 16px; }
.cf-side-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.cf-side-head .card-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; }
.cf-asearch { position: relative; display: flex; align-items: center; gap: 9px; height: 36px; margin-bottom: 10px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.cf-asearch:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.cf-asearch-icon { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.cf-asearch input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-family: var(--font); font-size: 13px; color: var(--text); outline: none; }
.cf-acclist { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cf-acccard { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); text-decoration: none; transition: border-color .12s ease, background-color .12s ease; }
.cf-acccard:hover { border-color: var(--border-primary-2); background: var(--bg-subtle-7); }
.cf-acccard.is-selected { border-color: var(--primary); background: var(--bg-selected-15); box-shadow: 0 0 0 1px var(--primary); }
.cf-acclogo { display: inline-flex; flex: 0 0 36px; }
.cf-acc-mark { width: 30px !important; height: 30px !important; border-radius: 8px; }
.cf-acc-body { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.cf-acc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-acc-label { font-size: 13px; font-weight: 700; color: var(--text-link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-acc-email { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-acc-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-acc-icon { width: 13px; height: 13px; color: var(--text-tertiary); flex: 0 0 auto; }
.cf-acc-chev { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; align-self: center; }

/* --- panel ----------------------------------------------------------------- */
.cfa-panel { padding: 16px 18px 18px; min-width: 0; }
.cfa-panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px 16px; align-items: start; }
.cf-panel-logo { display: inline-flex; flex: 0 0 50px; }
.cf-panel-mark { width: 50px !important; height: 50px !important; border-radius: 12px; }
.cf-panel-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf-panel-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cf-panel-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--text); }
.cf-panel-email { font-size: 13px; color: var(--text-2); }
.cf-mail-icon { width: 14px; height: 14px; color: var(--text-tertiary); flex: 0 0 auto; }
.cf-panel-passrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cf-pass-label { font-size: 12.5px; color: var(--muted); }
.cf-panel-meta { display: flex; flex-direction: column; gap: 5px; margin: 0; align-self: center; }
.cf-panel-meta div { display: flex; align-items: center; gap: 8px; }
.cf-panel-meta dt, .cf-panel-meta dd { margin: 0; font-size: 12.5px; color: var(--text-2); }
.cf-meta-icon { width: 14px; height: 14px; color: var(--text-tertiary); }
.cfa-panel-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 0 auto; }
.cfa-panel-actions .btn { justify-content: center; height: 38px; }
.cfa-action-row { display: flex; align-items: center; gap: 8px; }
.cfa-action-row .btn-md { flex: 1 1 auto; }
.cfa-action-row .dropdown { flex: 0 0 auto; }
.cf-copyline { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.cf-copy { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text-tertiary); cursor: pointer; flex: 0 0 auto; }
.cf-copy:hover { background: var(--bg-muted); color: var(--text-link); }
.cf-copy.is-copied { color: var(--fg-success); }
.cf-copy .icon { width: 13px; height: 13px; }

.cf-secret { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 6px 0 11px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.cf-secret-value { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: .4px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.cf-eye { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text-tertiary); cursor: pointer; flex: 0 0 auto; }
.cf-eye:hover { background: var(--bg-muted); color: var(--text); }
.cf-eye.is-copied { color: var(--fg-success); }
.cf-eye .icon { width: 14px; height: 14px; }
/* the in-table secret must stay inside its column, never spill into Admin URL */
.cf-secret-cell { height: 28px; max-width: 100%; padding: 0 2px 0 7px; gap: 2px; }
.cf-secret-cell .cf-secret-value { flex: 0 0 auto; font-size: 11px; letter-spacing: 0; max-width: none; }
.cf-secret-cell .cf-eye { width: 20px; height: 20px; }
.cf-secret-cell .cf-eye .icon { width: 12px; height: 12px; }

.cf-tabs { display: flex; align-items: center; gap: 4px; margin-top: 14px; border-bottom: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.cf-tabs::-webkit-scrollbar { display: none; }
.cf-tab { flex: 0 0 auto; }
.cf-tab { position: relative; height: 42px; display: inline-flex; align-items: center; padding: 0 15px; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.cf-tab:hover { color: var(--text); }
.cf-tab.is-active { color: var(--text-link); font-weight: 600; }
.cf-tab.is-active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.cf-panel-body { padding-top: 16px; }
.cf-tabbody { display: flex; flex-direction: column; gap: 14px; }

/* --- Live Sites tab ---------------------------------------------------------- */
.cf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cf-tile { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--border-subtle); border-radius: 10px; min-width: 0; }
.cf-tile-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; }
.cf-tile-icon .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.cf-tile-text { display: flex; flex-direction: column; min-width: 0; }
.cf-tile-value { font-size: 18px; line-height: 23px; font-weight: 700; color: var(--text); }
.cf-tile-label { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cf-wfilters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cf-wsearch { display: flex; align-items: center; gap: 9px; flex: 1 1 220px; min-width: 190px; height: 40px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.cf-wsearch:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.cf-wsearch-icon { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.cf-wsearch input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-family: var(--font); font-size: 13px; color: var(--text); outline: none; }

/* min-width = the width at which no cell clips; .table-scroll scrolls below it. */
.cf-wtable-scroll { overflow-x: auto; padding-bottom: 2px; }
.cf-wtable { table-layout: auto; width: 100%; min-width: 1010px; }
.cf-wtable .cf-col-check { width: 44px; }
.cf-wtable .cf-col-rank { width: 34px; }
.cf-wtable .cf-col-actions { width: 62px; }
.cf-wtable th, .cf-wtable td { white-space: nowrap; }
.cf-wtable th { height: 38px; padding: 0 7px; font-size: 12.5px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); text-align: left; }
.cf-wtable th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.cf-wtable th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.cf-th-actions { text-align: right; }
.cf-wtable td { height: 46px; padding: 0 7px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.cf-wtable tbody tr:last-child td { border-bottom: 0; }
.cf-wtable tbody tr:hover td { background: var(--bg-subtle-7); }
.cf-rank { font-weight: 600; color: var(--text-2); }
.cf-site { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.cf-site-mark { width: 26px !important; height: 26px !important; border-radius: 7px; flex: 0 0 auto; }
.cf-pill { height: 22px; padding: 0 9px 0 8px; font-size: 12px; font-weight: 500; }
.cf-tech { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cf-tech-mark { width: 22px !important; height: 22px !important; border-radius: 5px; flex: 0 0 auto; }
.cf-tech-code { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: var(--bg-muted); color: var(--text-2); flex: 0 0 auto; }
.cf-tech-code .icon { width: 13px; height: 13px; }
.cf-user { color: var(--text-2); }
.cf-adminurl { display: inline-flex; align-items: center; gap: 5px; }
.cf-ext { width: 12px; height: 12px; }
.cf-geo { display: inline-flex; align-items: center; gap: 7px; }
.cf-geo .flag { width: 18px; height: 13px; border-radius: 2px; }
.cf-geo-globe { width: 15px; height: 15px; color: var(--text-tertiary); }
.cf-blank { color: var(--muted); }
.cf-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-2); }
.cf-cat-betting { background: var(--tint-success); color: var(--text-success); }
.cf-cat-casino { background: var(--tint-purple); color: var(--text-purple); }
.cf-cat-tools { background: var(--tint-info); color: var(--text-link); }
.cf-cat-blog { background: var(--tint-warning); color: var(--text-warning-4); }
.cf-cat-branded { background: var(--tint-info); color: var(--text-link); }
.cf-more-cell { text-align: right; line-height: 0; padding-right: 4px !important; }
.cf-tfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.cf-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cf-apply:disabled { opacity: .5; cursor: not-allowed; }
.cf-selected { font-size: 12.5px; color: var(--text-2); }
.cf-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 52px 24px; text-align: center; }
.cf-empty-sm { padding: 30px 14px; }

/* --- Account Details / Security tabs ------------------------------------------ */
.cf-details, .cf-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cf-details-right, .cf-settings-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfa-card { padding: 16px 18px 18px; }
.cf-card-head { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 12px; }
.cf-card-head .card-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; }
.cf-card-sub { margin: -6px 0 10px; font-size: 12.5px; color: var(--muted); }
.cf-edit { flex: 0 0 auto; }
.cf-kv { margin: 0; padding: 0; }
.cf-kv-row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 0; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.cf-kv-row:last-child { border-bottom: 0; }
.cf-kv-row dt { flex: 0 0 38%; margin: 0; font-size: 13px; color: var(--text-2); }
.cf-kv-row dd { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 500; color: var(--text); }
.cf-kv-row dd .table-link { overflow-wrap: anywhere; }
.cf-kv-notes { align-items: flex-start; }
.cf-notes { position: relative; width: 100%; padding: 10px 34px 10px 12px; border-radius: 9px; background: var(--bg-subtle); }
.cf-notes p { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--text-2); }
.cf-notes-edit { position: absolute; right: 8px; bottom: 8px; display: inline-flex; color: var(--text-tertiary); }
.cf-notes-edit:hover { color: var(--text-link); }
.cf-notes-edit .icon { width: 14px; height: 14px; }
.cf-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--text-success); font-weight: 600; }
.cf-ok-icon { width: 14px; height: 14px; }
.cf-ext-icon { width: 13px; height: 13px; color: var(--text-link); }
.cf-quick { display: flex; flex-direction: column; gap: 9px; }
.cf-quick-btn { display: flex; align-items: center; gap: 9px; width: 100%; height: 40px; padding: 0 13px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.cf-quick-btn:hover { background: var(--bg-subtle-7); border-color: var(--border-primary-2); }
.cf-quick-icon { width: 15px; height: 15px; color: var(--text-link); flex: 0 0 auto; }
.cf-toggles { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cf-toggle-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; }
.cf-toggle-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-subtle); color: var(--text-2); }
.cf-toggle-icon .icon { width: 15px; height: 15px; }
.cf-toggle-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.cf-toggle-label { font-size: 13px; font-weight: 600; color: var(--text); }
.cf-toggle-desc { font-size: 11.5px; color: var(--muted); }
.cf-saved { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-success); }
.cf-saved[hidden] { display: none; }
.cf-saved.is-error { color: var(--text-danger-2); }
.cf-saved .icon { width: 14px; height: 14px; }
.cf-kv-selects .cf-kv-row { border-bottom: 0; min-height: 46px; }

@media (max-width: 1280px) { .cfa-body:not(.is-rail-collapsed) { --cfa-rail: 288px; } }
@media (max-width: 1100px) {
  .cfa-body, .cfa-body.is-rail-collapsed { grid-template-columns: minmax(0, 1fr); }
  .cfa-side { position: static; }
  .is-rail-collapsed .cf-side-head { justify-content: flex-start; }
  .is-rail-collapsed .cf-side-head .card-title { display: block; }
  .is-rail-collapsed .cf-acclist { flex-direction: row; flex-wrap: wrap; }
  .cfa-panel-head { grid-template-columns: auto minmax(0, 1fr); }
  .cf-panel-meta, .cfa-panel-actions { grid-column: 1 / -1; }
  .cf-panel-meta { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .cfa-panel-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .cf-details, .cf-settings { grid-template-columns: 1fr; }
  .cf-heading { flex-wrap: wrap; }
  .cf-heading-actions { width: 100%; flex-wrap: wrap; }
}

/* ==========================================================================
   REGISTRAR ACCOUNTS MODULE — Levels 1–3. Prefix .rg-. Content area only.
   ========================================================================== */
.rg-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.page-rgall .rg-heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; }
.page-rgall .rg-heading-icon .icon { width: 26px; height: 26px; }
.page-rgall .page-title-rg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rg-heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: var(--tint-info); color: var(--text-link); }
.rg-heading-icon .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.rg-heading-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; }
.rg-heading-logo .provider-logo { width: 52px; height: 52px; border-radius: 13px; }
.rg-heading-text { flex: 1 1 auto; min-width: 0; }
.page-title-rg { font-size: 26px; line-height: 32px; }
.rg-heading-text .page-subtitle { margin-top: 3px; font-size: 13px; line-height: 18px; }
.rg-heading-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-top: 3px; }
.rg-kebab { width: 38px; height: 38px; padding: 0; }
.rg-kebab .icon { width: 17px; height: 17px; }
.rg-heading-actions .btn-md { height: 38px; }

.rg-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.rg-crumb a { color: var(--text-link); text-decoration: none; }
.rg-crumb a:hover { text-decoration: underline; }
.rg-back { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; color: var(--text-2) !important; }
.rg-back:hover { background: var(--bg-muted); }
.rg-back .icon { width: 15px; height: 15px; }

/* --- stat cards ------------------------------------------------------------- */
/* Five metric cards of identical width and height: equal grid tracks, and a
   sub-line that is always one line so no card can grow taller than another. */
.rg-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: stretch; }
.rg-stat { display: flex; align-items: flex-start; gap: 11px; padding: 14px; min-width: 0; min-height: 92px; }
.rg-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; }
.rg-stat-icon .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.rg-stat-body { min-width: 0; flex: 1 1 auto; }
.rg-stat-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-stat-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.rg-stat-value { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.7px; color: var(--text); white-space: nowrap; }
.rg-stat-sub { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1080px) { .rg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .rg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .rg-stats { grid-template-columns: minmax(0, 1fr); } }

/* --- registrar summary cards ------------------------------------------------ */
.rg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 16px; margin-bottom: 16px; }
.rg-rcard { display: flex; flex-direction: column; gap: 4px; padding: 15px 16px 14px; text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.rg-rcard:hover { border-color: var(--border-primary-2); box-shadow: 0 6px 18px var(--ink-08); transform: translateY(-1px); }
.rg-rcard-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rg-rlogo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; }
.rg-rlogo .provider-logo { width: 32px; height: 32px; border-radius: 8px; }
.rg-logo-other { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-muted); color: var(--text-tertiary); }
.rg-logo-other .icon { width: 16px; height: 16px; }
.rg-rcard-name { font-size: 14px; font-weight: 700; color: var(--text); min-width: 0; }
.rg-rcard-meta { font-size: 12.5px; color: var(--text-2); }
.rg-rcard-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rg-rcard-track { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.rg-rcard-fill { display: block; height: 100%; border-radius: 3px; }
.rg-rcard-pct { font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }

/* --- tabs + filters ---------------------------------------------------------- */
.rg-subnav { height: 42px; margin-bottom: 14px; overflow-x: auto; }
.rg-subnav .detail-tab { flex: 0 0 auto; padding: 0 16px; font-size: 13px; text-decoration: none; }
.rg-filter-bar { margin-bottom: 14px; }

/* --- Level 1 table ----------------------------------------------------------- */
.rg-table-card { padding: 0; overflow: hidden; }
.rg-table { table-layout: fixed; width: 100%; min-width: 1180px; }
.rg-table thead th { height: 44px; padding: 0 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); border-bottom: 1px solid var(--border-soft); text-align: left; }
.rg-th-actions { text-align: right; }
.rg-table tbody td { height: 50px; padding: 6px 8px; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.rg-row { cursor: pointer; }
.rg-row:hover td { background: var(--bg-subtle-7); }
.rg-rank { font-weight: 600; color: var(--text-2); }
.rg-muted { color: var(--text-2); }
.rg-dash { color: var(--text-tertiary); }
.rg-bmcell { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.rg-bmcell { flex-wrap: wrap; }
.rg-bmcell .table-link { min-width: 0; line-height: 16px; white-space: normal; overflow-wrap: anywhere; }
/* long URLs wrap rather than clip (quality bar: no ellipsis where it can wrap) */
.rg-kv-row dd .table-link { overflow-wrap: anywhere; white-space: normal; }
.rg-kv-row { flex-wrap: wrap; }
.rg-bm-mark .logo-mono { font-size: 9px; letter-spacing: 0; }
@media (max-width: 1500px) {
  .rg-usage-row .rg-legend li { font-size: 11.5px; gap: 7px; }
  .rg-usage-row .rg-legend-pct { min-width: 38px; }
  .rg-usage-row .rg-donut { flex: 0 0 112px; width: 112px; height: 112px; }
  .rg-usage-row .rg-donut-body { gap: 18px; }
  .rg-usage-row .rg-legend-val { font-size: 11.5px; }
  .rg-usage-row .rg-donut canvas { width: 112px !important; height: 112px !important; }
  .rg-stat-value { font-size: 22px; line-height: 28px; }
  .rg-stat { gap: 10px; padding: 14px; }
  .rg-stat-icon { flex-basis: 36px; width: 36px; height: 36px; }
}
.rg-tlogo { display: inline-flex; flex: 0 0 auto; }
.rg-tlogo .provider-logo, .rg-logo-mark { width: 26px; height: 26px; border-radius: 7px; }
.rg-tlogo.rg-logo-other { width: 26px; height: 26px; }
.rg-pill { height: 22px; padding: 0 9px 0 8px; font-size: 12px; font-weight: 500; }
.rg-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.rg-count-red { background: var(--tint-danger); color: var(--text-danger-2); }
.rg-count-amber { background: var(--tint-warning); color: var(--text-warning-4); }
.rg-count-zero { background: var(--bg-muted); color: var(--text-tertiary); }
.rg-more-cell { text-align: right; line-height: 0; padding-right: 10px !important; }

.rg-tfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.rg-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rg-apply:disabled { opacity: .5; cursor: not-allowed; }
.rg-selected { font-size: 12.5px; color: var(--text-2); }
.rg-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; }
.rg-empty-sm { padding: 34px 16px; }

/* --- Level 1 bottom row -------------------------------------------------------- */
.rg-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.rg-bcard { display: flex; flex-direction: column; padding: 16px 18px 18px; min-width: 0; }
.rg-card-head { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 12px; }
.rg-card-head .card-title { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; }
.rg-card-sub { margin: -6px 0 10px; font-size: 12.5px; color: var(--muted); }
.rg-donut-body { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; }
.rg-donut { flex: 0 0 138px; width: 138px; height: 138px; }
.rg-usage-row { }
.rg-usage-row .rg-donut-body { gap: 24px; padding: 4px 0; }
.rg-usage-row .rg-legend-pct { min-width: 34px; }
.rg-usage-row .rg-donut { flex: 0 0 124px; width: 124px; height: 124px; }
.rg-usage-row .rg-donut canvas { width: 124px !important; height: 124px !important; }
.rg-usage-row .rg-legend-name { overflow-wrap: normal; word-break: normal; }
.rg-donut canvas { width: 138px !important; height: 138px !important; }
.rg-donut-value { font-size: 22px; line-height: 26px; letter-spacing: -.5px; }
.rg-donut-label { margin-top: 1px; font-size: 11px; }
.rg-legend { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.rg-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; min-height: 24px; font-size: 12.5px; color: var(--text-2); }
.rg-legend-name { overflow-wrap: anywhere; }
.rg-legend .legend-dot { width: 9px; height: 9px; }
.rg-legend-name { min-width: 0; }
.rg-legend-val { font-weight: 700; color: var(--text); white-space: nowrap; }
.rg-legend-pct { min-width: 44px; text-align: right; color: var(--muted); white-space: nowrap; }
.rg-chart { position: relative; flex: 1 1 auto; min-height: 150px; }
.rg-chart-bars { min-height: 168px; }
.rg-timeline { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rg-timeline li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; min-height: 34px; font-size: 12.5px; }
.rg-tl-domain { min-width: 0; }
.rg-tl-date { color: var(--text-2); white-space: nowrap; }
.rg-tl-cost { min-width: 52px; text-align: right; font-weight: 600; color: var(--text); }
.rg-days { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rg-days-red { background: var(--tint-danger); color: var(--text-danger-2); }
.rg-days-amber { background: var(--tint-warning); color: var(--text-warning-4); }
.rg-days-green { background: var(--tint-success); color: var(--text-success); }

/* --- Level 2 layout ------------------------------------------------------------- */
/* Same collapsible master-detail rail as Cloudflare Accounts (see .cfa-body):
   the record list folds to an icon strip so the table beside it keeps its width. */
.rg-layout { --rg-rail: 330px; display: grid; grid-template-columns: var(--rg-rail) minmax(0, 1fr); gap: 16px; align-items: start; }
.rg-layout.is-rail-collapsed { --rg-rail: 60px; }
.is-rail-collapsed .rg-side { padding: 11px 10px; }
.is-rail-collapsed .rg-side-head { justify-content: center; margin-bottom: 10px; }
.is-rail-collapsed .rg-side-head .card-title,
.is-rail-collapsed .rg-side-head .btn,
.is-rail-collapsed .rg-acc-body,
.is-rail-collapsed .rg-acc-chev,
.is-rail-collapsed .rg-empty-sm .card-title,
.is-rail-collapsed .rg-empty-sm .sp-sub,
.is-rail-collapsed .rg-empty-sm .btn { display: none; }
.is-rail-collapsed .rg-empty-sm { padding: 6px 0; }
.is-rail-collapsed .rg-acclist { gap: 4px; }
.is-rail-collapsed .rg-acccard { padding: 4px; justify-content: center; gap: 0; border-radius: 10px; border-color: transparent; background: transparent; box-shadow: none; }
.is-rail-collapsed .rg-acccard:hover { border-color: transparent; background: var(--bg-subtle-7); }
.is-rail-collapsed .rg-acccard.is-selected { border-color: transparent; background: transparent; box-shadow: none; }
.is-rail-collapsed .rg-acccard.is-selected .rg-acclogo { box-shadow: 0 0 0 2px var(--primary); }
.rg-side { padding: 16px; position: sticky; top: 16px; }
.rg-side-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.rg-side-head .card-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; }
.rg-acclist { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rg-acccard { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); text-decoration: none; transition: border-color .12s ease, background-color .12s ease; }
.rg-acccard:hover { border-color: var(--border-primary-2); background: var(--bg-subtle-7); }
.rg-acccard.is-selected { border-color: var(--primary); background: var(--bg-selected-15); box-shadow: 0 0 0 1px var(--primary); }
.rg-acclogo { display: inline-flex; flex: 0 0 34px; }
.rg-acclogo .provider-logo { width: 34px; height: 34px; border-radius: 9px; }
.rg-acc-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.rg-acc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rg-acc-label { font-size: 13.5px; font-weight: 700; color: var(--text-link); }
.rg-default { height: 20px; padding: 0 8px 0 7px; font-size: 11px; }
.rg-acc-email { font-size: 12px; color: var(--muted); }
.rg-acc-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.rg-acc-icon { width: 13px; height: 13px; color: var(--text-tertiary); flex: 0 0 auto; }
.rg-acc-chev { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; align-self: center; }

/* --- Level 2/3 panel -------------------------------------------------------------- */
.rg-panel { padding: 16px 18px 18px; min-width: 0; }
.rg-panel-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.rg-panel-logo { display: inline-flex; flex: 0 0 46px; }
.rg-panel-logo .provider-logo { width: 46px; height: 46px; border-radius: 12px; }
.rg-panel-id { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.rg-panel-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rg-panel-title { margin: 0; font-size: 21px; line-height: 27px; font-weight: 700; color: var(--text); }
.rg-panel-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; flex-wrap: wrap; }

/* ---- account header: identity / credentials / facts ------------------------
   Three tiers under one logo. The email and the password are the same kind of
   thing — something you copy — so they are two identical chips on one line;
   the counts and dates are plain text underneath, deliberately quieter. */
.rg-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; }
.rg-head .rg-panel-logo { margin-top: 2px; }
.rg-head .rg-panel-logo .provider-logo { width: 52px; height: 52px; border-radius: 14px; }
.rg-head-main { display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; min-width: 0; }
.rg-head .rg-panel-logo .provider-logo { width: 64px; height: 64px; border-radius: 14px; }
.rg-head { padding-bottom: 0; border-bottom: 0; margin-bottom: 14px; }
.rg-cred-email { align-self: flex-start; height: 26px; padding: 0 4px 0 9px; font-size: 12px; }
.rg-cred-email .rg-copy { width: 20px; height: 20px; }
.rg-hdesc { margin: 0; font-size: 12px; color: var(--muted); }

/* ---- four account facts as cards ----------------------------------------- */
.rg-acctcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 10px; margin-bottom: 16px; }
.rg-acctcard { display: flex; align-items: center; gap: 11px; min-width: 0; height: 56px; padding: 0 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); }
.rg-acct-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
.rg-acct-icon .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.rg-acct-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.rg-acct-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rg-acct-value { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-success, #17A957); flex: 0 0 auto; }
.rg-acct-link { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.rg-acct-link .icon { width: 13px; height: 13px; }
.rg-acct-link:hover { text-decoration: underline; }
.rg-acctcard-pass .rg-pass-value { font-family: SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; font-size: 12px; }
.rg-acctcard-pass .rg-eye { flex: 0 0 auto; width: 26px; height: 26px; }
.rg-acctcard-pass .rg-copy-pass { height: 30px; padding: 0 10px; }
@media (max-width: 1240px) { .rg-acctcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .rg-acctcards { grid-template-columns: minmax(0, 1fr); } }
.rg-head .rg-panel-title-row { gap: 8px; }
.rg-head .rg-panel-title { font-size: 20px; line-height: 26px; letter-spacing: -.3px; }
.rg-head .rg-panel-actions { padding-top: 6px; }

.rg-cred-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 5px 0 11px;
  border: 1px solid var(--border-default); border-radius: 9px;
  background: var(--bg-surface); color: var(--text); font-size: 12.5px;
  max-width: 100%; min-width: 0;
}
.rg-cred-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-tertiary); }
.rg-cred-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-cred-pass .rg-pass-value { font-family: SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; font-size: 12px; }
.rg-cred-chip .rg-eye, .rg-cred-chip .rg-copy { width: 24px; height: 24px; }

.rg-delete-btn { color: var(--text-danger-2); border-color: var(--border-danger); }
.rg-delete-btn:hover { background: var(--tint-danger); border-color: var(--danger); color: var(--text-danger-2); }
.rg-copyline { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rg-copy { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text-tertiary); cursor: pointer; flex: 0 0 auto; }
.rg-copy:hover { background: var(--bg-muted); color: var(--text-link); }
.rg-copy.is-copied { color: var(--fg-success); }
.rg-copy .icon { width: 13px; height: 13px; }
.rg-pass { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 11px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.rg-pass-value { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: .5px; color: var(--text); white-space: nowrap; }
.rg-eye { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text-tertiary); cursor: pointer; }
.rg-eye:hover { background: var(--bg-muted); color: var(--text); }
.rg-eye .icon { width: 14px; height: 14px; }
.rg-copy-pass { height: 32px; flex: 0 0 auto; }

.rg-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.rg-tabs::-webkit-scrollbar { display: none; }
.rg-tab { flex: 0 0 auto; }
.rg-tab { position: relative; height: 40px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.rg-tab:hover { color: var(--text); }
.rg-tab { gap: 8px; }
.rg-tab-icon { width: 16px; height: 16px; color: var(--text-tertiary); }
.rg-tab.is-active .rg-tab-icon { color: var(--text-link); }
.rg-tab.is-active { color: var(--text-link); font-weight: 600; }
.rg-tab.is-active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.rg-panel-body { padding-top: 16px; }
.rg-tabbody { display: flex; flex-direction: column; gap: 14px; }

/* --- Domains tab ------------------------------------------------------------------- */
.rg-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1240px) { .rg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .rg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rg-dsearch { max-width: none; flex-basis: 100%; } .rg-add-domain { flex-basis: 100%; justify-content: center; } }
@media (max-width: 620px)  { .rg-head { flex-wrap: wrap; } .rg-head .rg-panel-actions { width: 100%; padding-top: 0; } }
/* Tiles are shortcuts into the table: each one applies its own filter, and
   the tile matching the active filter stays lit. */
.rg-tile { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 10px;
  background: var(--bg-surface); color: inherit; text-decoration: none; cursor: pointer;
  transition: border-color 130ms, background 130ms, box-shadow 130ms; }
.rg-tile:hover { border-color: var(--border-primary-2); background: var(--tint-info); }
.rg-tile:hover .rg-tile-go { opacity: 1; transform: translateX(0); }
.rg-tile.is-on { border-color: var(--border-primary-2); background: var(--tint-info); box-shadow: inset 0 0 0 1px var(--border-primary-2); }
.rg-tile-go { width: 14px; height: 14px; margin-left: auto; flex: 0 0 auto; color: var(--text-link);
  opacity: 0; transform: translateX(-3px); transition: opacity 130ms, transform 130ms; }
.rg-tile.is-on .rg-tile-go { opacity: 1; transform: translateX(0); }
.rg-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; }
.rg-tile-icon .icon { width: 16px; height: 16px; stroke-width: 1.9; }
.rg-tile-text { display: flex; flex-direction: column; }
.rg-tile-value { font-size: 15px; font-weight: 700; color: var(--text); }
.rg-tile-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rg-dsearch { display: flex; align-items: center; gap: 9px; flex: 1 1 180px; min-width: 160px; max-width: 280px; height: 40px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.rg-dsearch:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.rg-dsearch-icon { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.rg-dsearch input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-family: var(--font); font-size: 13px; color: var(--text); outline: none; }
.rg-add-domain { flex: 0 0 auto; height: 40px; margin-left: auto; }
.rg-dfilters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rg-dfilters .aff-select { flex: 0 1 auto; min-width: 96px; padding-right: 26px; }
.rg-dfilters .aff-select select { padding-right: 26px; }
.rg-dfilters .rg-more-filters { flex: 0 0 auto; }
.rg-dfilters .rg-more-filters.is-on { border-color: var(--border-primary-2); color: var(--text-link); background: var(--tint-info); }
.rg-dfilters-more { display: flex; align-items: center; gap: 8px; flex-basis: 100%; padding-top: 2px; }
.rg-dfilters-more[hidden] { display: none; }

/* min-width = the width at which no cell clips; below it .table-scroll scrolls. */
.rg-dtable-scroll { overflow-x: auto; padding-bottom: 2px; }
.rg-dtable { table-layout: auto; width: 100%; min-width: 940px; }
.rg-dtable thead th { height: 30px; background: var(--bg-subtle); font-size: 11.5px; }
.rg-dtable tbody td { height: 28px; padding-top: 2px; padding-bottom: 2px; }
.rg-dtable .rg-more-cell .btn-icon-only-xs { width: 26px; height: 26px; }
.rg-dtable .rg-cat, .rg-dtable .rg-days, .rg-dtable .rg-pill { height: 20px; font-size: 11px; }
.rg-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.rg-sort:hover { color: var(--text); }
.rg-sort-icon { width: 12px; height: 12px; opacity: .7; }
.page-gap { pointer-events: none; border-color: transparent; background: transparent; color: var(--text-tertiary); }
.rg-dtable .rg-col-check { width: 44px; }
.rg-dtable .rg-col-actions { width: 62px; }
.rg-dtable th, .rg-dtable td { white-space: nowrap; }
.rg-dtable th { height: 36px; padding: 0 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); text-align: left; }
.rg-dtable th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.rg-dtable th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.rg-dtable td { height: 46px; padding: 0 8px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.rg-dtable tbody tr:last-child td { border-bottom: 0; }
.rg-dtable tbody tr:hover td { background: var(--bg-subtle-7); }
.rg-domain { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.rg-ext { display: inline-flex; color: var(--text-tertiary); }
.rg-ext:hover { color: var(--text-link); }
.rg-ext .icon { width: 13px; height: 13px; }
.rg-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-2); }
.rg-cat-betting { background: var(--tint-success); color: var(--text-success); }
.rg-cat-casino { background: var(--tint-purple); color: var(--text-purple); }
.rg-cat-tools { background: var(--tint-info); color: var(--text-link); }
.rg-cat-blog { background: var(--tint-warning); color: var(--text-warning-4); }
.rg-cat-other { background: var(--bg-muted); color: var(--text-2); }
.rg-cat-branded { background: var(--tint-info); color: var(--text-link); font-weight: 700; }
.rg-expiry-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-geo { display: inline-flex; align-items: center; gap: 7px; }
.rg-geo .flag { width: 18px; height: 13px; border-radius: 2px; }
.rg-geo-globe { width: 15px; height: 15px; color: var(--text-tertiary); }
.rg-bm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rg-bm-mark { width: 22px !important; height: 22px !important; border-radius: 5px; }
.rg-expiry { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* --- Account Details tab --------------------------------------------------------------- */
.rg-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.rg-details-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rg-card { padding: 16px 18px 18px; }
.rg-card .rg-card-head .card-title { font-size: 15px; font-weight: 700; }
.rg-kv { margin: 0; padding: 0; }
.rg-kv-row { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 4px 0; border-bottom: 1px solid var(--border-soft); }
.rg-kv-row:last-child { border-bottom: 0; }
.rg-kv-row dt { flex: 0 0 40%; margin: 0; font-size: 13px; color: var(--text-2); }
.rg-kv-row dd { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 500; color: var(--text); }
.rg-kv-row dd .rg-pass { flex: 1 1 auto; min-width: 0; }
.rg-kv-row dd .rg-pass-value { overflow: hidden; text-overflow: ellipsis; }
.rg-kv-notes { align-items: flex-start; }
.rg-kv-notes dt { padding-top: 8px; }
.rg-notes { position: relative; width: 100%; padding: 10px 34px 10px 12px; border-radius: 9px; background: var(--bg-subtle); }
.rg-notes p { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--text-2); }
.rg-notes-edit { position: absolute; right: 8px; bottom: 8px; display: inline-flex; color: var(--text-tertiary); }
.rg-notes-edit:hover { color: var(--text-link); }
.rg-notes-edit .icon { width: 14px; height: 14px; }
.rg-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--text-success); font-weight: 600; }
.rg-warn { display: inline-flex; align-items: center; gap: 6px; color: var(--text-warning-4); font-weight: 600; }
.rg-ok-icon { width: 14px; height: 14px; }
.rg-ext-icon { width: 13px; height: 13px; color: var(--text-link); }
.rg-backup { display: inline-flex; align-items: center; gap: 8px; }
.rg-gdrive, .rg-gdrive .service-mark { width: 17px; height: 17px; }
.rg-view-btn { margin-left: auto; }
.rg-quick { display: flex; flex-direction: column; gap: 9px; }
.rg-quick-btn { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.rg-quick-btn:hover { background: var(--bg-subtle-7); border-color: var(--border-primary-2); }
.rg-quick-icon { width: 15px; height: 15px; color: var(--text-link); flex: 0 0 auto; }

/* --- Usage & Cost tab -------------------------------------------------------------------- */
.rg-usage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rg-utile { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--border-subtle); border-radius: 11px; }
.rg-utile-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
.rg-utile-icon .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.rg-utile-body { min-width: 0; }
.rg-utile-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.rg-utile-row { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
.rg-utile-value { font-size: 19px; line-height: 25px; font-weight: 700; color: var(--text); white-space: nowrap; }
.rg-utile-sub { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.rg-usage-row { display: grid; grid-template-columns: 1fr 1.42fr; gap: 14px; align-items: stretch; }

/* --- Settings tab -------------------------------------------------------------------------- */
.rg-settings { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: start; }
.rg-settings-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rg-saved { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-success); }
.rg-saved[hidden] { display: none; }
.rg-saved.is-error { color: var(--text-danger-2); }
.rg-saved .icon { width: 14px; height: 14px; }
.rg-toggles { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rg-toggle-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; }
.rg-toggle-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-subtle); color: var(--text-2); }
.rg-toggle-icon .icon { width: 15px; height: 15px; }
.rg-toggle-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.rg-toggle-label { font-size: 13px; font-weight: 600; color: var(--text); }
.rg-toggle-desc { font-size: 11.5px; color: var(--muted); }
.rg-switch { position: relative; flex: 0 0 44px; width: 44px; height: 25px; padding: 0; border: 0; border-radius: 13px; background: var(--bg-muted-6); cursor: pointer; transition: background-color .15s ease; }
.rg-switch.is-on { background: var(--success); }
.rg-switch-knob { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px var(--ink-28); transition: transform .15s ease; }
.rg-switch.is-on .rg-switch-knob { transform: translateX(19px); }
.rg-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rg-checks { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rg-check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 13px; color: var(--text); cursor: pointer; }
.rg-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.rg-check-box { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--bg-surface); color: transparent; transition: background-color .12s ease, border-color .12s ease; }
.rg-check-box .icon { width: 12px; height: 12px; stroke-width: 3; }
.rg-check input:checked + .rg-check-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.rg-check input:focus-visible + .rg-check-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.rg-kv-selects .rg-kv-row { border-bottom: 0; min-height: 44px; }
.rg-kv-selects .rg-kv-row dt { flex-basis: 42%; }
.rg-select { position: relative; display: block; width: 100%; }
.rg-select select { width: 100%; height: 36px; padding: 0 30px 0 11px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: var(--font); font-size: 12.5px; color: var(--text); outline: none; appearance: none; cursor: pointer; }
.rg-select .aff-select-chev { right: 10px; }
.rg-danger-card { border-color: var(--border-danger); }
.rg-danger { display: flex; align-items: flex-start; gap: 11px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--border-danger); border-radius: 11px; background: var(--tint-danger); }
.rg-danger-text { flex: 1 1 190px; }
.rg-danger .rg-delete-btn { margin-left: auto; }
.rg-danger-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-surface); color: var(--text-danger-2); }
.rg-danger-icon .icon { width: 15px; height: 15px; }
.rg-danger-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.rg-danger-title { font-size: 13px; font-weight: 700; color: var(--text-danger-2); }
.rg-danger-sub { font-size: 11.5px; line-height: 16px; color: var(--text-danger-2); opacity: .85; }
.rg-danger .rg-delete-btn { flex: 0 0 auto; background: var(--danger); border-color: var(--danger); color: #fff; }
.rg-danger .rg-delete-btn:hover { background: var(--fill-danger-2); border-color: var(--fill-danger-2); color: #fff; }


@media (max-width: 1760px) { .rg-settings { grid-template-columns: 1fr 1fr; } .rg-settings-right { grid-column: span 2; flex-direction: row; } .rg-settings-right > * { flex: 1 1 0; } }
@media (max-width: 1400px) {
  .rg-bottom { grid-template-columns: 1fr 1fr; }
  .rg-bottom > :last-child { grid-column: span 2; }
  .rg-layout:not(.is-rail-collapsed) { --rg-rail: 290px; }
  .rg-usage-row { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .rg-layout, .rg-layout.is-rail-collapsed { grid-template-columns: minmax(0, 1fr); }
  .is-rail-collapsed .rg-side-head { justify-content: flex-start; }
  .is-rail-collapsed .rg-side-head .card-title { display: block; }
  .is-rail-collapsed .rg-acclist { flex-direction: row; flex-wrap: wrap; }
  .rg-side { position: static; }
  .rg-details { grid-template-columns: 1fr; }
  .rg-settings, .rg-settings-right { grid-template-columns: 1fr; flex-direction: column; }
  .rg-settings-right { grid-column: auto; }
}
@media (max-width: 900px) {
  .rg-bottom, .rg-bottom > :last-child { grid-template-columns: 1fr; grid-column: auto; }
  .rg-heading { flex-wrap: wrap; }
  .rg-heading-actions { width: 100%; flex-wrap: wrap; }
  .rg-donut-body { flex-direction: column; align-items: flex-start; }
  .rg-donut { align-self: center; }
  .rg-legend { width: 100%; }
  .rg-meta-pass { margin-left: 0; }
}

/* ==========================================================================
   AFFILIATE ACCOUNTS & IDs — content area (design-reference/affiliate-accounts.png)
   Prefix .aff-. Content area only; sidebar/topbar untouched.
   ========================================================================== */
.page-aff .breadcrumb-aff { margin-bottom: 10px; }

.aff-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.aff-heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--tint-info); color: var(--text-link); }
.aff-heading-icon .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.aff-heading-text { flex: 1 1 auto; min-width: 0; }
.page-title-aff { font-size: 26px; line-height: 32px; }
.aff-heading-text .page-subtitle { margin-top: 3px; font-size: 13px; line-height: 18px; }
.aff-heading-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-top: 2px; }
.aff-date { width: auto; min-width: 0; height: 38px; padding: 0 10px 0 12px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.aff-date .control-icon { width: 15px; height: 15px; margin-right: 8px; color: var(--text-2); }
.aff-export { height: 38px; }
.aff-primary { height: 38px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }

/* --- 5 stat cards ---------------------------------------------------------- */
.aff-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.aff-stat { display: flex; align-items: center; gap: 11px; padding: 16px; min-width: 0; }
.aff-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; }
.aff-stat-icon .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.aff-stat-ring { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--bg-muted) 0); -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); }
.aff-stat-body { min-width: 0; flex: 1 1 auto; }
.aff-stat-row { display: flex; align-items: center; gap: 7px; }
.aff-stat-value { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.6px; color: var(--text); white-space: nowrap; }
.aff-stat-label { margin-top: 1px; font-size: 13px; font-weight: 600; color: var(--text); }
.aff-stat-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* --- charts row ------------------------------------------------------------ */
.aff-charts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.aff-chart-card { display: flex; flex-direction: column; padding: 16px 18px 18px; min-width: 0; }
.aff-card-head { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 10px; }
.aff-card-head .card-title { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; }
.aff-head-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; }
.aff-head-icon .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.aff-rev-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.aff-rev-value { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.6px; color: var(--text); }
.aff-rev-note { font-size: 12.5px; color: var(--muted); }
.aff-chart { position: relative; flex: 1 1 auto; min-height: 118px; }
.aff-pin { position: absolute; right: 8%; top: 4px; display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 6px 16px var(--ink-08); pointer-events: none; z-index: 2; }
.aff-pin.is-hidden { opacity: 0; }
.aff-pin-title { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.aff-pin-row { display: flex; align-items: center; gap: 7px; }
.aff-pin-val { font-size: 13.5px; font-weight: 700; color: var(--text); }

.aff-donut-body { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; }
.aff-donut { flex: 0 0 124px; width: 124px; height: 124px; }
.aff-donut canvas { width: 124px !important; height: 124px !important; }
.aff-donut-value { font-size: 18px; line-height: 22px; letter-spacing: -.4px; }
.aff-donut-label { margin-top: 1px; font-size: 10.5px; }
.aff-legend { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.aff-legend li { display: grid; grid-template-columns: 9px 1fr auto auto; gap: 8px; align-items: center; height: 21px; font-size: 12.5px; color: var(--text-2); }
.aff-legend .legend-dot { width: 9px; height: 9px; }
.aff-legend-name { min-width: 0; }
.aff-legend-val { font-weight: 700; color: var(--text); white-space: nowrap; }
.aff-legend-pct { min-width: 38px; text-align: right; color: var(--muted); white-space: nowrap; }

/* --- tabs + view toggle ------------------------------------------------------ */
.aff-tabs-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aff-subnav { flex: 1 1 auto; min-width: 0; height: 42px; overflow-x: auto; }
.aff-subnav .detail-tab { flex: 0 0 auto; padding: 0 15px; font-size: 13px; }
.aff-view-toggle { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 4px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); }
.aff-view { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.aff-view:hover { background: var(--bg-subtle-7); color: var(--text); }
.aff-view.is-active, .aff-view.is-active:hover { background: var(--primary); color: #fff; }
.aff-view-icon { width: 15px; height: 15px; }

/* --- filter bar --------------------------------------------------------------- */
.aff-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; }
.aff-search { display: flex; align-items: center; gap: 9px; flex: 1 1 240px; min-width: 200px; height: 38px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.aff-search:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.aff-search-icon { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.aff-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-family: var(--font); font-size: 13px; color: var(--text); outline: none; }
.aff-search input::placeholder { color: var(--muted); }
.aff-select { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 0 0 auto; min-width: 132px; height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.aff-select-label { font-size: 10.5px; font-weight: 500; color: var(--muted); line-height: 12px; }
.aff-select select { width: 100%; border: 0; background: transparent; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--text); outline: none; appearance: none; cursor: pointer; line-height: 15px; }
.aff-select-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.aff-more-filters { height: 38px; flex: 0 0 auto; }
.aff-filter-bar.is-expanded { box-shadow: inset 0 -3px 0 var(--primary); }

/* --- accounts table ------------------------------------------------------------ */
.aff-table-card { padding: 0; overflow: hidden; }
/* min-width = the width at which no cell clips; below it .table-scroll scrolls. */
.aff-table { table-layout: fixed; width: 100%; min-width: 1120px; }
.aff-table thead th { height: auto; padding: 12px 8px; vertical-align: top; font-size: 12.5px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); border-bottom: 1px solid var(--border-soft); text-align: left; }
.aff-sub-head { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--muted); }
.aff-th-actions { text-align: right; }
.aff-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.aff-sort:hover { color: var(--text); }
.aff-sort.is-sorted { color: var(--text-link); font-weight: 600; }
.aff-sort-icon { width: 12px; height: 12px; opacity: .6; }
.aff-sort.is-sorted .aff-sort-icon { opacity: 1; }
.aff-table tbody td { height: 52px; padding: 8px; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.aff-row:hover td { background: var(--bg-subtle-7); }
.aff-rank { font-weight: 600; color: var(--text-2); }
.aff-bm { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.aff-bm-logo { display: inline-flex; flex: 0 0 auto; }
.aff-bm-mark { width: 28px !important; height: 28px !important; border-radius: 7px; }
.aff-bm-name { font-weight: 600; min-width: 0; }
.aff-account { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aff-email { font-size: 12px; color: var(--muted); }
.aff-geos { display: inline-flex; align-items: center; gap: 4px; }
.aff-geos .flag { width: 18px; height: 13px; border-radius: 2px; flex: 0 0 auto; }
.aff-geo-more { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--bg-muted); font-size: 11px; font-weight: 600; color: var(--text-2); }
.aff-revenue { font-weight: 700; }
.aff-pill { height: 22px; padding: 0 9px 0 8px; font-size: 12px; font-weight: 500; }
.aff-actions-cell { text-align: right; white-space: nowrap; line-height: 0; }
.aff-actions-cell .row-more { display: inline-flex; vertical-align: middle; }
.aff-chevron { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; vertical-align: middle; }
.aff-chevron:hover { background: var(--bg-muted); color: var(--text); }
.aff-chevron-icon { width: 15px; height: 15px; transition: transform .18s ease; }
.aff-chevron[aria-expanded="true"] .aff-chevron-icon { transform: rotate(180deg); }
.aff-row.is-expanded > td { background: var(--bg-selected-15); }
.aff-row.is-expanded > td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* --- expanded panel -------------------------------------------------------------- */
.aff-expand-row > td { padding: 0 !important; height: auto !important; background: var(--bg-selected-15); box-shadow: inset 3px 0 0 var(--primary); border-bottom: 1px solid var(--border-soft); }
.aff-expand-slot { padding: 14px 16px 16px 20px; }
.aff-exp-loading { padding: 26px 0; font-size: 13px; color: var(--muted); text-align: center; }
.aff-exp-error { color: var(--text-danger-2); }
.aff-exp { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); padding: 14px 16px 16px; }
.aff-exp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aff-exp-logo { display: inline-flex; flex: 0 0 auto; }
.aff-exp-mark { width: 44px !important; height: 44px !important; border-radius: 11px; }
.aff-exp-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 0 0 auto; }
.aff-exp-name-row { display: flex; align-items: center; gap: 9px; }
.aff-exp-name { font-size: 15px; font-weight: 700; color: var(--text); }
.aff-exp-account { font-size: 12.5px; font-weight: 500; }
.aff-exp-email, .aff-exp-ids { font-size: 11.5px; color: var(--muted); }
.aff-exp-metrics { display: flex; align-items: center; gap: 0; flex: 1 1 auto; justify-content: flex-end; margin: 0; flex-wrap: wrap; }
.aff-metric { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 0 14px; border-left: 1px solid var(--border-soft); }
.aff-metric:first-child { border-left: 0; }
.aff-metric dt { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.aff-metric dd { margin: 0; font-size: 11.5px; color: var(--muted); }
.aff-metric-deal { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px !important; }
.aff-deal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple, #7C3AED); }
.aff-metric-icon { min-width: 60px; }
.aff-exp-tile { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--tint-info); color: var(--text-link); }
.aff-exp-tile .icon { width: 17px; height: 17px; }

.aff-exp-bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-soft); }
.aff-subtabs { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.aff-subtab { position: relative; height: 36px; padding: 0 12px; border: 0; background: transparent; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.aff-subtab:hover { color: var(--text); }
.aff-subtab.is-active { color: var(--text-link); font-weight: 600; }
.aff-subtab.is-active::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.aff-add-id { flex: 0 0 auto; margin-bottom: 6px; color: var(--text-link); border-color: var(--border-primary-2); }
.aff-add-id:hover { background: var(--tint-info); border-color: var(--primary); }

.aff-ids-table { table-layout: fixed; width: 100%; min-width: 700px; }
.aff-ids-table th { height: 32px; padding: 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: transparent; border-bottom: 1px solid var(--border-soft); text-align: left; }
.aff-ids-table td { height: 40px; padding: 0 8px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.aff-ids-table tbody tr:last-child td { border-bottom: 0; }
.aff-ids-table tbody tr:hover td { background: var(--bg-subtle-7); }
.aff-ids-table .flag { width: 18px; height: 13px; border-radius: 2px; }
.aff-more-cell { text-align: right; line-height: 0; padding-right: 0 !important; }

/* --- table footer ----------------------------------------------------------------- */
.aff-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.aff-showing { font-size: 12.5px; color: var(--text-2); }
.aff-foot-right { display: flex; align-items: center; gap: 14px; }
.aff-perpage { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.aff-perpage select { height: 30px; padding: 0 8px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-family: var(--font); font-size: 12.5px; color: var(--text); cursor: pointer; }
.aff-pager { display: inline-flex; align-items: center; gap: 5px; }
.aff-pager .page-btn.is-disabled { opacity: .4; pointer-events: none; }

.aff-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; }

/* --- cards view --------------------------------------------------------------------- */
.aff-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 16px; }
.aff-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); }
.aff-card:hover { border-color: var(--border-primary-2); }
.aff-card-top { display: flex; align-items: center; gap: 10px; }
.aff-card-id { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.aff-card-bm { font-size: 13.5px; font-weight: 700; color: var(--text); }
.aff-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.aff-card-metrics dt { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.aff-card-metrics dd { margin: 0; font-size: 11.5px; color: var(--muted); }
.aff-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aff-card-deal { font-size: 12px; color: var(--text-2); }

/* --- bottom row ------------------------------------------------------------------------ */
.aff-bottom { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.aff-bottom-card { display: flex; flex-direction: column; padding: 16px 18px 18px; min-width: 0; }
.aff-activity { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.aff-activity li { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 13px; }
.aff-act-num { flex: 0 0 12px; font-size: 12px; color: var(--muted); }
.aff-act-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; }
.aff-act-icon .icon { width: 14px; height: 14px; stroke-width: 1.9; }
.aff-act-text { flex: 1 1 auto; min-width: 0; color: var(--text); }
.aff-act-link { flex: 0 0 auto; font-size: 12.5px; }
.aff-act-time { flex: 0 0 auto; min-width: 70px; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }

.aff-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aff-quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 76px; padding: 12px 6px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); font-size: 12px; font-weight: 500; letter-spacing: -.1px; color: var(--text); text-align: center; text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.aff-quick-btn:hover { background: var(--bg-subtle-7); border-color: var(--border-primary-2); }
.aff-quick-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.aff-quick-icon .icon { width: 16px; height: 16px; stroke-width: 1.9; }

.aff-insights { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.aff-insights li { display: flex; align-items: flex-start; gap: 11px; }
.aff-ins-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; }
.aff-ins-icon .icon { width: 16px; height: 16px; stroke-width: 1.9; }
.aff-ins-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aff-ins-title { font-size: 13px; font-weight: 700; color: var(--text); }
.aff-ins-sub { font-size: 12px; line-height: 17px; color: var(--muted); }

/* below the design width the stat value + trend pill no longer share a line */
@media (max-width: 1400px) {
  .aff-stat-value { font-size: 20px; line-height: 26px; }
  .aff-stat { gap: 10px; }
  .aff-stat-icon, .aff-stat-ring { flex-basis: 36px; width: 36px; height: 36px; }
}
@media (max-width: 1400px) {
  .aff-charts { grid-template-columns: 1fr 1fr; }
  .aff-charts > :last-child { grid-column: span 2; }
  .aff-bottom { grid-template-columns: 1fr 1fr; }
  .aff-bottom > :last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .aff-charts, .aff-charts > :last-child, .aff-bottom, .aff-bottom > :last-child { grid-template-columns: 1fr; grid-column: auto; }
  .aff-heading { flex-wrap: wrap; }
  .aff-heading-actions { width: 100%; flex-wrap: wrap; }
  .aff-exp-metrics { justify-content: flex-start; }
  .aff-metric { border-left: 0; padding: 0 12px 0 0; }
}
@media (max-width: 560px) {
  .aff-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aff-tabs-row { flex-wrap: wrap; }
  .aff-select { flex: 1 1 140px; }
}

/* ==========================================================================
   SITE DETAIL → FINANCE TAB (design-reference/site-finance-tab.png)  Prefix .sf-.
   ========================================================================== */
.sf-panel { display: flex; flex-direction: column; gap: 16px; }
.sf-table { table-layout: fixed; width: 100%; min-width: 440px; }
.sf-table th { height: 34px; padding: 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); }
.sf-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.sf-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.sf-table td { height: 38px; padding: 0 10px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.sf-table tbody tr:last-child td { border-bottom: 0; }
.sf-table tbody tr:hover td { background: var(--bg-subtle-7); }
.sf-table-txn { min-width: 660px; }
.sf-desc { color: var(--text); font-weight: 500; }
.sf-desc:hover { color: var(--text-link); }
.sf-amount { font-weight: 600; }
.sf-amount-pos { color: var(--text-success-3); }
.sf-amount-neg { color: var(--text-danger-2); }
.sa-type-red { background: var(--tint-danger); color: var(--text-danger-2); }
.sf-pin-big { font-size: 14px; font-weight: 700; }

.sf-legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; height: 27px; }
.sf-legend .sa-geo-pct { min-width: 46px; text-align: right; }
.sf-legend .sp-legend-pct { min-width: 46px; text-align: right; }

.sf-sources { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sf-source { display: flex; align-items: center; gap: 12px; }
.sf-source-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; }
.sf-source-mark { width: 38px !important; height: 38px !important; border-radius: 9px; flex: 0 0 38px; }
.sf-source-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--tint-info); color: var(--text-link); }
.sf-source-icon .icon { width: 19px; height: 19px; stroke-width: 1.9; }
.sf-source-body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.sf-source-top { display: flex; align-items: baseline; gap: 10px; }
.sf-source-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }
.sf-source-pct { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.sf-source-amt { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.sf-track { height: 7px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.sf-bar { display: block; height: 100%; border-radius: 4px; }

.sf-qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

@media (max-width: 1180px) { .sf-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sf-panel .sp-row { grid-template-columns: 1fr; } .sf-qa { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sf-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   SITE DETAIL → SEO TAB (design-reference/site-seo-tab.png)   Prefix .ss-.
   ========================================================================== */
.ss-panel { display: flex; flex-direction: column; gap: 16px; }
.ss-table { table-layout: fixed; width: 100%; min-width: 470px; }
.ss-table th { height: 34px; padding: 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); }
.ss-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.ss-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.ss-table td { height: 38px; padding: 0 10px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.ss-table tbody tr:last-child td { border-bottom: 0; }
.ss-table tbody tr:hover td { background: var(--bg-subtle-7); }
.ss-table-kw { min-width: 540px; }
.ss-table-act { min-width: 560px; }
.ss-flat { color: var(--text-tertiary); }
.ss-note { font-size: 13px; font-weight: 500; color: var(--muted); }

.ss-legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; height: 30px; }
.ss-count { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ss-legend .sa-geo-pct { min-width: 46px; text-align: right; }

.ss-tech { display: flex; align-items: flex-start; gap: 18px; }
.ss-tech-left { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.ss-tech-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-success); white-space: nowrap; }
.ss-checks { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ss-checks li { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 13px; color: var(--text); }
.ss-good { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--tint-success); color: var(--text-success); font-size: 11.5px; font-weight: 600; }

.ss-vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ss-vital { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border: 1px solid var(--border-subtle); border-radius: 10px; }
.ss-gauge { width: 44px; height: 44px; margin-bottom: 4px; }
.ss-gauge canvas { width: 44px !important; height: 44px !important; }
.ss-vital-label { font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.ss-vital-value { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--text); }

.ss-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 66px; padding: 10px 4px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); font-size: 11.5px; font-weight: 500; letter-spacing: -.2px; color: var(--text); text-align: center; text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.ss-tool:hover { background: var(--bg-subtle-7); border-color: var(--border-primary-2); }
.ss-tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--text-link); }
.ss-tool-icon .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.ss-tool-logo, .ss-tool-logo .service-mark { width: 20px; height: 20px; }

@media (max-width: 1180px) { .ss-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ss-panel .sp-row { grid-template-columns: 1fr; } .ss-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ss-tech { flex-direction: column; align-items: stretch; } .ss-tech-left { flex-direction: row; justify-content: flex-start; } }
@media (max-width: 560px) { .ss-tools, .ss-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   SITE DETAIL → INFRASTRUCTURE TAB (design-reference/site-infrastructure-tab.png)
   Prefix .si-. Reuses the .sp-* card/head/metric scale.
   ========================================================================== */
.si-panel { display: flex; flex-direction: column; gap: 16px; }
.si-metric-value { font-size: 23px; line-height: 30px; }
.si-note { align-self: flex-start; margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); }

.si-list { margin: 0; padding: 0; }
.si-row { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 3px 0; border-bottom: 1px solid var(--border-soft); }
.si-row:last-child { border-bottom: 0; }
.si-row dt { flex: 0 0 44%; margin: 0; font-size: 13px; color: var(--text-2); }
.si-row dd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 500; color: var(--text); }
.si-logo { width: 20px; height: 20px; border-radius: 4px; flex: 0 0 auto; }
/* NB: do not lead this stack with `ui-monospace` — headless Chrome measures
   that keyword as a zero-advance font, so the flex item collapses to 0px
   while the glyphs still paint via fallback (text lands on the copy button). */
.si-copywrap { display: inline-flex; align-items: center; gap: 5px; }
.si-mono { font-size: 12.5px; white-space: nowrap; }
.si-copy { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text-tertiary); cursor: pointer; flex: 0 0 auto; }
.si-copy:hover { background: var(--bg-muted); color: var(--text-link); }
.si-copy.is-copied { color: var(--fg-success); }
.si-copy .icon { width: 13px; height: 13px; }
.si-ns { display: flex; align-items: center; width: 100%; }
.si-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.si-badge-icon { width: 12px; height: 12px; }
.si-badge-green { background: var(--tint-success); color: var(--text-success); }
.si-badge-amber { background: var(--tint-warning); color: var(--text-warning-4); }
.si-stack { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.si-strong { font-weight: 600; }
.si-action { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.si-action:hover { text-decoration: underline; text-underline-offset: 2px; }
.si-action-icon { width: 13px; height: 13px; }
.si-footlink { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; align-self: flex-start; font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.si-footlink:hover { text-decoration: underline; text-underline-offset: 2px; }
.si-footlink-icon { width: 13px; height: 13px; }
.si-svc-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: var(--tint-info); color: var(--text-link); }
.si-svc-icon .icon { width: 16px; height: 16px; }

.si-timeline { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.si-timeline li { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; }
.si-dot { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; }
.si-dot-green { background: var(--success); }
.si-dot-blue  { background: var(--primary); }
.si-dot-amber { background: var(--warning); }
.si-tl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-tl-title { font-size: 13px; font-weight: 500; color: var(--text); }
.si-tl-date { font-size: 12px; color: var(--muted); }

.si-res { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.si-res li { display: flex; align-items: center; gap: 11px; }
.si-res-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; }
.si-res-icon .icon { width: 16px; height: 16px; stroke-width: 1.9; }
.si-res-body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.si-res-bottom { display: flex; align-items: center; gap: 9px; }
.si-res-bottom .si-res-track { flex: 1 1 auto; }
.si-res-top { display: flex; align-items: baseline; gap: 8px; }
.si-res-label { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--text); }
.si-res-detail { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.si-res-track { height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.si-res-bar { display: block; height: 100%; border-radius: 3px; }
.si-bar-blue { background: var(--primary); }
.si-bar-purple { background: var(--purple, #7C3AED); }
.si-bar-green { background: var(--success); }
.si-bar-amber { background: var(--warning); }
.si-res-pct { flex: 0 0 auto; min-width: 34px; font-size: 13px; font-weight: 700; color: var(--text); }

.si-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.si-tool { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 4px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); font-size: 11.5px; font-weight: 500; letter-spacing: -.2px; color: var(--text); text-align: center; white-space: nowrap; text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.si-tool:hover { background: var(--bg-subtle-7); border-color: var(--border-primary-2); }
.si-tool-icon { width: 14px; height: 14px; color: var(--text-link); flex: 0 0 auto; }

.si-recs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.si-recs li { display: flex; align-items: flex-start; gap: 10px; }
.si-rec-check { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; color: #fff; }
.si-rec-check .icon { width: 11px; height: 11px; stroke-width: 3; }
.si-rec-green { background: var(--success); }
.si-rec-amber { background: var(--warning); }
.si-rec-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-rec-title { font-size: 13px; font-weight: 600; color: var(--text); }
.si-rec-sub { font-size: 12px; color: var(--muted); }

@media (max-width: 1180px) { .si-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .si-panel .sp-row { grid-template-columns: 1fr; } .si-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .si-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .si-row { flex-wrap: wrap; } .si-row dt { flex-basis: 100%; } }

/* ==========================================================================
   SITE DETAIL → AFFILIATE TAB (design-reference/site-affiliate-tab.png)
   Prefix .sa-. Reuses the .sp-* card/head/metric/donut scale.
   ========================================================================== */
.sa-panel { display: flex; flex-direction: column; gap: 16px; }
/* min-width = the width at which no cell clips; below it the shared
   .table-scroll wrapper scrolls instead of squeezing the fixed columns. */
.sa-table { table-layout: fixed; width: 100%; min-width: 520px; }
.sa-table th { height: 34px; padding: 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); }
.sa-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.sa-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.sa-table td { height: 38px; padding: 0 10px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.sa-table tbody tr:last-child td { border-bottom: 0; }
.sa-table tbody tr:hover td { background: var(--bg-subtle-7); }
.sa-table-links { min-width: 680px; }
.sa-table-conv { min-width: 600px; }
.sa-money { font-weight: 600; color: var(--text-success-3); }

.sa-type { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.sa-type-blue   { background: var(--tint-info);    color: var(--text-link); }
.sa-type-green  { background: var(--tint-success); color: var(--text-success); }
.sa-type-purple { background: var(--tint-purple);  color: var(--text-purple); }
.sa-type-amber  { background: var(--tint-warning); color: var(--text-warning-4); }
.sa-pill { height: 22px; padding: 0 9px 0 8px; font-size: 12px; font-weight: 500; }

.sa-geo-legend li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; height: 30px; }
.sa-geo-pct { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.sa-geo-legend .sp-legend-pct { min-width: 54px; text-align: right; }

.sa-method { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sa-method-logo { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 4px; }

.sa-creatives { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-creative { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; }
.sa-creative:hover { background: var(--bg-subtle-7); border-color: var(--border-default); }
.sa-thumb { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 62px; width: 62px; height: 34px; border-radius: 6px; background: var(--bg-ink); overflow: hidden; }
.sa-thumb-logo { width: 44px; height: 22px; }
.sa-creative-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sa-creative-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sa-creative-sub { font-size: 12px; color: var(--muted); }

.sa-qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sa-qa-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 12px 8px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); font-size: 12.5px; font-weight: 500; color: var(--text); text-align: center; text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.sa-qa-btn:hover { background: var(--bg-subtle-7); border-color: var(--border-primary-2); }
.sa-qa-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--tint-info); color: var(--text-link); }
.sa-qa-icon .icon { width: 16px; height: 16px; stroke-width: 1.9; }

@media (max-width: 1180px) { .sa-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sa-panel .sp-row { grid-template-columns: 1fr; } .sa-qa { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sa-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   SITE DETAIL → OVERVIEW TAB (design-reference/site-overview-tab.png)
   Prefix .so-. Shares the .sp-tint-* scale with the Performance tab.
   ========================================================================== */
.so-panel { display: flex; flex-direction: column; gap: 16px; }
.so-row { display: grid; gap: 16px; align-items: stretch; }
.so-row-2 { grid-template-columns: 1fr 1fr; }
.so-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.so-card { display: flex; flex-direction: column; padding: 18px 20px 20px; min-width: 0; }

.so-head { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 14px; }
.so-head-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; }
.so-head-icon .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.so-title { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.so-head .view-all, .so-head .so-edit, .so-head .sp-range { flex: 0 0 auto; }
.so-edit { color: var(--text-link); border-color: var(--border-primary-2); }
.so-edit:hover { background: var(--tint-info); border-color: var(--primary); }

/* --- 4 stat cards --------------------------------------------------------- */
.so-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.so-stat { display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px 16px; min-width: 0; }
.so-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; }
.so-stat-icon .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.so-stat-body { min-width: 0; flex: 1 1 auto; }
.so-stat-label { font-size: 14px; font-weight: 600; color: var(--text); }
.so-stat-row { display: flex; align-items: center; gap: 9px; margin-top: 3px; flex-wrap: wrap; }
.so-stat-value { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.7px; color: var(--text); }
.so-stat-sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* --- charts --------------------------------------------------------------- */
.so-chart { position: relative; height: 190px; flex: 1 1 auto; min-height: 190px; }
.so-legend { height: 18px; margin: 0 0 6px; gap: 24px; font-size: 12.5px; }

/* --- Site Information ------------------------------------------------------ */
.so-info { margin: 0; padding: 0; }
.so-info-row { display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 3px 0; border-bottom: 1px solid var(--border-soft); }
.so-info-row:last-child { border-bottom: 0; }
.so-info-row dt { display: flex; align-items: center; gap: 9px; flex: 0 0 46%; margin: 0; font-size: 13.5px; color: var(--text-2); }
.so-info-row dd { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--text); }
.so-info-icon { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.so-info-logo { width: 18px; height: 18px; border-radius: 4px; flex: 0 0 auto; }
.so-info-row dd .flag { width: 18px; height: 13px; border-radius: 2px; flex: 0 0 auto; }
.so-ext { width: 13px; height: 13px; color: var(--text-link); flex: 0 0 auto; }

/* --- Site Health ------------------------------------------------------------ */
.so-health-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.health-ring-so { flex: 0 0 92px; width: 92px; height: 92px; }
.health-ring-so span { font-size: 26px; font-weight: 700; }
.so-health-text { min-width: 0; }
.so-health-pill { height: 26px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.so-health-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.so-checks { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.so-checks li { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 13px; color: var(--text); }
.so-check-dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; }
.so-check-dot .icon { width: 11px; height: 11px; stroke-width: 3; }
.so-check-text { flex: 1 1 auto; min-width: 0; }
.so-check-val { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }

/* --- Quick Actions ---------------------------------------------------------- */
.so-actions { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.so-action { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-subtle-7); text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.so-action:hover { background: var(--bg-hover); border-color: var(--border-default); }
.so-action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; }
.so-action-icon .icon { width: 15px; height: 15px; stroke-width: 1.9; }
.so-action-label { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--text); }
.so-action-chev { width: 15px; height: 15px; color: var(--text-tertiary); flex: 0 0 auto; }
.sp-tint-gray { background: var(--bg-muted); color: var(--text-tertiary); }

/* --- Connected Services ------------------------------------------------------ */
.so-services, .so-dates { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.so-service, .so-date { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; text-decoration: none; transition: background-color .12s ease, border-color .12s ease; }
.so-service:hover, .so-date:hover { background: var(--bg-subtle-7); border-color: var(--border-default); }
.so-service-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; }
.so-provider { width: 30px; height: 30px; border-radius: 7px; }
.so-service-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.so-service-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.so-service-name { font-size: 13.5px; font-weight: 600; color: var(--text); min-width: 0; }
.so-service-pill { height: 19px; padding: 0 8px 0 7px; font-size: 11px; flex: 0 0 auto; }
.so-service-sub { font-size: 12px; color: var(--muted); }

/* --- Important Dates ---------------------------------------------------------- */
.so-date-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
.so-date-icon .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.so-date-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.so-date-label { font-size: 12.5px; color: var(--text-2); }
.so-date-value { font-size: 15px; font-weight: 700; color: var(--text); }
.so-pill { align-self: flex-start; display: inline-flex; align-items: center; height: 19px; margin-top: 3px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.so-pill-amber { background: var(--tint-warning); color: var(--text-warning-4); }
.so-pill-green { background: var(--tint-success); color: var(--text-success); }
.so-pill-red   { background: var(--tint-danger); color: var(--text-danger-2); }

/* --- Latest Activity ------------------------------------------------------------ */
.so-feed { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.so-feed li { display: flex; align-items: center; gap: 11px; min-height: 38px; }
.so-feed-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; }
.so-feed-icon .icon { width: 14px; height: 14px; stroke-width: 1.9; }
.so-feed-text { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text); }
.so-feed-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* --- tables --------------------------------------------------------------------- */
/* min-width = the width at which no cell clips; below it the shared
   .table-scroll wrapper scrolls instead of squeezing the fixed columns. */
.so-table { table-layout: fixed; width: 100%; min-width: 554px; }
.so-table th { height: 34px; padding: 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); }
.so-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.so-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.so-table td { height: 38px; padding: 0 10px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.so-table tbody tr:last-child td { border-bottom: 0; }
.so-table tbody tr:hover td { background: var(--bg-subtle-7); }
.so-amount-pos { color: var(--text-success-3); font-weight: 600; }
.so-more-cell { text-align: right; line-height: 0; padding-right: 0; }
.so-more-cell .row-more { display: inline-flex; width: 30px; }
/* pinned tooltip drawn on the Traffic Overview chart in the reference */
.so-chart { position: relative; }
.so-pin { position: absolute; left: 44%; top: 12px; display: flex; flex-direction: column; gap: 5px; padding: 9px 12px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); box-shadow: 0 6px 18px var(--ink-08); pointer-events: none; z-index: 2; }
.so-pin.is-hidden { opacity: 0; }
.so-pin-title { font-size: 12px; font-weight: 700; color: var(--text); }
.so-pin-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.so-pin-row .legend-dot { width: 8px; height: 8px; }
.so-pin-label { flex: 1 1 auto; }
.so-pin-val { font-weight: 600; color: var(--text); }

.so-notes { margin: 0; font-size: 13.5px; line-height: 21px; color: var(--text-2); }

@media (max-width: 1400px) {
  .so-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .so-row-2, .so-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .so-card { padding: 16px; }
  .so-info-row dt { flex-basis: 42%; }
}

/* ==========================================================================
   SITE DETAIL → PERFORMANCE TAB (design-reference/site-performance-tab.png)
   Prefix .sp-. Uses the shared card/table/trend tokens; adds the header date
   block (.site-dates) that replaced the Health Score card.
   ========================================================================== */
.site-dates { display: flex; align-items: center; gap: 34px; margin: 0 0 0 auto; padding: 4px 0 0 24px; align-self: center; }
.site-date { display: flex; flex-direction: column; gap: 6px; }
.site-date dt, .site-date dd { display: flex; align-items: center; gap: 7px; margin: 0; }
.site-date dt { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.site-date dd { font-size: 13.5px; font-weight: 700; color: var(--text); }
.site-date-icon { width: 14px; height: 14px; color: var(--text-tertiary); flex: 0 0 auto; }
.site-date dd .site-date-icon { color: var(--text-link); }

.sp-panel { display: flex; flex-direction: column; gap: 16px; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.sp-row-stacks { align-items: stretch; }
.sp-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sp-card { display: flex; flex-direction: column; padding: 18px 20px 20px; min-width: 0; }
.sp-card-grow { flex: 1 1 auto; }

.sp-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.sp-head-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
.sp-head-icon .icon { width: 19px; height: 19px; stroke-width: 1.9; }
.sp-head-icon-plain { background: transparent; }
.sp-head-icon-plain .icon { width: 24px; height: 24px; }
.sp-google, .sp-google .service-mark { width: 24px; height: 24px; }
/* country names read as body text in the reference; still clickable */
.sp-geo .table-link { color: var(--text); font-weight: 500; }
.sp-geo .table-link:hover { color: var(--text-link); }
.sp-head-text { flex: 1 1 auto; min-width: 0; }
.sp-head-text-row { display: flex; align-items: center; gap: 9px; }
.sp-title { font-size: 16px; font-weight: 600; line-height: 21px; color: var(--text); }
.sp-sub { margin: 2px 0 0; font-size: 13px; line-height: 17px; color: var(--muted); }
.sp-head .view-all, .sp-head .sp-range, .sp-head .sp-run { flex: 0 0 auto; margin-top: 2px; }
.sp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tint-info); color: var(--text-link); font-size: 11.5px; font-weight: 700; }
.sp-empty { margin: 6px 0 4px; padding: 22px 0; font-size: 13px; color: var(--muted); text-align: center; }

.sp-range-btn { width: auto; min-width: 0; height: 34px; padding: 0 10px 0 12px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.sp-range-btn .control-icon { width: 14px; height: 14px; margin-right: 7px; color: var(--text-link); }
.sp-range-btn .control-chevron { margin-left: 8px; }

/* tint scale shared by every icon tile on the tab */
.sp-tint-blue   { background: var(--tint-info);      color: var(--text-link); }
.sp-tint-green  { background: var(--tint-success);   color: var(--text-success); }
.sp-tint-teal   { background: var(--tint-success-5); color: var(--text-success); }
.sp-tint-red    { background: var(--tint-danger);    color: var(--text-danger-2); }
.sp-tint-amber  { background: var(--tint-warning);   color: var(--text-warning-4); }
.sp-tint-purple { background: var(--tint-purple);    color: var(--text-purple); }

/* --- Performance Summary: 5 metric boxes ---------------------------------- */
.sp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sp-metric { display: flex; flex-direction: column; padding: 14px 14px 13px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); min-width: 0; }
.sp-metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px; }
.sp-metric-icon .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.sp-metric-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.sp-metric-value { margin-top: 3px; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.6px; color: var(--text); }
.sp-metric-trend { align-self: flex-start; margin-top: 7px; }
.sp-metric-sub { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* --- charts ---------------------------------------------------------------- */
.sp-chart { position: relative; height: 210px; }
.sp-chart-legend { height: 18px; margin: 0 0 8px; gap: 24px; font-size: 12.5px; }
.sp-donut-body { display: flex; align-items: center; gap: 22px; }
.sp-donut { flex: 0 0 168px; width: 168px; height: 168px; }
.sp-donut canvas { width: 168px !important; height: 168px !important; }
.sp-donut-value { font-size: 22px; line-height: 26px; letter-spacing: -.5px; }
.sp-donut-label { margin-top: 1px; font-size: 11.5px; }
.sp-legend { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.sp-legend li { display: flex; align-items: center; gap: 10px; height: 25px; font-size: 13px; color: var(--text-2); }
.sp-legend .legend-dot { width: 10px; height: 10px; flex: 0 0 auto; }
.sp-legend-name { flex: 1 1 auto; min-width: 0; }
.sp-legend-pct { font-weight: 600; color: var(--text); white-space: nowrap; }
.sp-legend-dev li { height: 32px; }
.sp-dev-icon { display: inline-flex; flex: 0 0 auto; }
.sp-dev-icon .icon { width: 17px; height: 17px; stroke-width: 1.8; }

/* --- tables ---------------------------------------------------------------- */
.sp-table { table-layout: fixed; width: 100%; min-width: 320px; }
.sp-table th { height: 34px; padding: 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .2px; color: var(--text-2); background: var(--bg-subtle); }
.sp-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.sp-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.sp-table td { height: 38px; padding: 0 10px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table tbody tr:hover td { background: var(--bg-subtle-7); }
.sp-rank { font-weight: 600; color: var(--text-2); }
.sp-muted { color: var(--text-2); }
.sp-geo { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.sp-geo .flag { width: 18px; height: 13px; flex: 0 0 auto; border-radius: 2px; }
.sp-geo-globe { width: 16px; height: 16px; color: var(--text-tertiary); flex: 0 0 auto; }
.sp-event { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sp-event-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; }
.sp-event-icon .icon { width: 13px; height: 13px; stroke-width: 2; }

/* --- Search Performance ----------------------------------------------------- */
.sp-gsc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-gsc-item { padding: 11px 11px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; min-width: 0; }
.sp-gsc-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.sp-gsc-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.sp-gsc-value { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }

/* --- Core Web Vitals gauges -------------------------------------------------- */
.sp-vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sp-vital { display: flex; align-items: center; gap: 7px; padding: 10px 8px; border: 1px solid var(--border-subtle); border-radius: 10px; min-width: 0; }
.sp-gauge { position: relative; flex: 0 0 36px; width: 36px; height: 36px; }
.sp-gauge canvas { width: 36px !important; height: 36px !important; }
.sp-gauge-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text); }
.sp-vital-text { display: flex; flex-direction: column; min-width: 0; }
.sp-vital-label { font-size: 11px; font-weight: 500; letter-spacing: -.2px; color: var(--text-2); white-space: nowrap; }
.sp-vital-value { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--text); }
.sp-vital-state { font-size: 11px; font-weight: 500; }
.sp-state-green { color: var(--text-success); }
.sp-state-amber { color: var(--text-warning-4); }
.sp-state-red   { color: var(--text-danger-2); }

/* --- Recommendations ---------------------------------------------------------- */
.sp-recs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sp-rec { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--border-subtle); border-radius: 10px; }
.sp-rec:hover { background: var(--bg-subtle-7); border-color: var(--border-default); }
.sp-rec-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
.sp-rec-icon .icon { width: 17px; height: 17px; stroke-width: 1.9; }
.sp-rec-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.sp-rec-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sp-rec-sub { margin-top: 2px; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.sp-rec-btn { flex: 0 0 auto; color: var(--text-link); border-color: var(--border-primary-2); }
.sp-rec-btn:hover { background: var(--tint-info); border-color: var(--primary); }

/* --- placeholder panel for the tabs that are not built yet --------------------- */
.sp-soon { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; }
.sp-soon-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-muted); color: var(--text-tertiary); }
.sp-soon-icon .icon { width: 24px; height: 24px; }
.sp-soon .sp-sub { max-width: 46ch; }

@media (max-width: 1400px) {
  .sp-vitals, .sp-gsc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .sp-donut-body { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sp-donut { align-self: center; }
  .sp-legend { width: 100%; }
}
@media (max-width: 1024px) {
  .sp-row, .sp-row-stacks { grid-template-columns: 1fr; }
  .site-dates { margin-left: 0; padding-left: 0; }
}
@media (max-width: 768px) {
  .sp-card { padding: 16px; }
  .site-dates { gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .sp-head { flex-wrap: wrap; }
  .sp-head .view-all, .sp-head .sp-range, .sp-head .sp-run { margin-left: 46px; }
  .sp-rec { flex-wrap: wrap; }
  .sp-rec-btn { margin-left: 46px; }
}


/* ==========================================================================
   GEOs (COUNTRIES) — prefix .gx-. Content area only; the shell is untouched.
   ========================================================================== */

.page-geos { display: flex; flex-direction: column; gap: 12px; }
/* flex children default to min-width:auto; a wide table must not stretch the page */
.page-geos > * { min-width: 0; max-width: 100%; }

/* --- shared card ----------------------------------------------------------- */
.gx-card { border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); min-width: 0; }
.gx-pad { padding: 13px 14px 14px; display: flex; flex-direction: column; }
.gx-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.gx-card-head-sm { align-items: center; margin-bottom: 10px; }
.gx-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; }
.gx-card-ico svg { width: 15px; height: 15px; }
.gx-card-headtext { min-width: 0; }
.gx-card-title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.1px; color: var(--text); }
.gx-card-sub { margin: 3px 0 0; font-size: 11.5px; line-height: 15px; color: var(--muted); }

/* icon tile tints */
.gx-t-blue   { background: var(--tint-info);    color: var(--text-link); }
.gx-t-green  { background: var(--tint-success); color: var(--fg-success); }
.gx-t-purple { background: var(--tint-purple);  color: var(--fg-purple); }
.gx-t-violet { background: var(--tint-purple);  color: #7C3AED; }
.gx-t-amber  { background: var(--tint-warning); color: var(--fg-warning); }
.gx-t-red    { background: var(--tint-danger);  color: var(--fg-danger); }

/* --- breadcrumb + page header --------------------------------------------- */
.gx-crumb { margin-bottom: 4px; }
.gx-crumb a { display: inline-flex; align-items: center; gap: 6px; }
.gx-crumb-ico { width: 13px; height: 13px; }
.gx-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 4px; }
.gx-head-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tint-info); color: var(--text-link); flex: 0 0 auto; }
.gx-head-ico svg { width: 25px; height: 25px; }
.gx-head-text { min-width: 0; flex: 1 1 auto; }
.gx-title { margin: 0; font-size: 25px; line-height: 31px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.gx-sub { margin: 3px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.gx-head-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-top: 4px; }

/* --- buttons --------------------------------------------------------------- */
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.gx-btn-ico { width: 15px; height: 15px; }
.gx-btn-chev { width: 13px; height: 13px; color: var(--text-tertiary); }
.gx-btn-white:hover { border-color: var(--border-primary-2); background: var(--bg-subtle-7); }
.gx-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.gx-btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.gx-btn-ghost { border-color: transparent; background: var(--bg-subtle-3); color: var(--text-2); }
.gx-btn-ghost:hover { background: var(--bg-subtle-7); color: var(--text); }
.gx-export .dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 7px 11px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.gx-export .dropdown-menu a:hover { background: var(--bg-subtle-7); color: var(--text); }
.gx-export .dropdown-menu svg { width: 14px; height: 14px; }

/* --- stat cards ------------------------------------------------------------ */
.gx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gx-stat { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "ico body" "delta delta" "sub sub"; align-items: center; gap: 4px 11px; padding: 13px 14px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); min-width: 0; transition: border-color .12s ease, box-shadow .12s ease; }
.gx-stat:hover { border-color: var(--border-primary-2); box-shadow: 0 1px 4px var(--ink-06); }
.gx-stat-ico { grid-area: ico; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; }
.gx-stat-ico svg { width: 21px; height: 21px; }
.gx-stat-body { grid-area: body; min-width: 0; }
.gx-stat-value { font-size: 21px; line-height: 25px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.gx-stat-label { margin-top: 1px; font-size: 11.5px; line-height: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-stat-delta { grid-area: delta; display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--text-success); }
.gx-stat-delta.is-down { color: var(--text-danger); }
.gx-stat-arrow { width: 12px; height: 12px; }
.gx-stat-sub { grid-area: sub; font-size: 11px; line-height: 14px; color: var(--muted); }

/* --- map + top countries --------------------------------------------------- */
.gx-presence { display: grid; grid-template-columns: 1.57fr 1fr; gap: 12px; align-items: stretch; }
.gx-map-card { padding: 13px 14px 14px; display: flex; flex-direction: column; }
.gx-mapwrap { position: relative; flex: 1 1 auto; min-height: 300px; border-radius: 8px; overflow: hidden; }
.gx-map-stage { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); aspect-ratio: 1000 / 520; transform-origin: center center; transition: transform .18s ease; touch-action: none; }
.gx-mapwrap.is-pannable .gx-map-stage { cursor: grab; }
.gx-map-stage.is-dragging { cursor: grabbing; transition: none; }
.gx-atlas { display: block; width: 100%; height: 100%; }
.gx-atlas .wmap-countries path { stroke-width: .5; }
html:not([data-theme="dark"]) .gx-atlas .wmap-countries path { fill: #DFE4EC; stroke: #EDF0F5; }
html[data-theme="dark"] .gx-atlas .wmap-countries path { fill: #1B2E43; stroke: #12202F; }

.gx-pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; text-decoration: none; transition: transform .12s ease; }
/* The marker is the country's own flag, cropped to a circle; the ring keeps the
   legend's active / not-active colour readable behind it. */
.gx-pin-flag { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--surface);
    box-shadow: 0 0 0 1.5px var(--gx-pin-ring, #15803D), 0 0 0 3px var(--surface), 0 1px 3px rgba(2, 20, 10, .32); }
.gx-pin-flag svg, .gx-pin-flag .flag { width: 100%; height: 100%; display: block; }
.gx-pin.is-idle .gx-pin-flag { box-shadow: 0 0 0 1.5px #9DB3CC, 0 0 0 3px var(--surface), 0 1px 3px rgba(2, 20, 10, .22); opacity: .55; }
.gx-pin:hover { transform: scale(1.25); z-index: 6; }


.gx-map-zoom { position: absolute; top: 10px; right: 10px; z-index: 8; display: flex; flex-direction: column; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); overflow: hidden; box-shadow: 0 1px 3px var(--ink-06); }
.gx-zoom { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 29px; border: 0; background: var(--bg-surface); color: var(--text-2); cursor: pointer; }
.gx-zoom + .gx-zoom { border-top: 1px solid var(--border-soft); }
.gx-zoom:hover { background: var(--bg-subtle-7); color: var(--text-link); }
.gx-zoom svg { width: 15px; height: 15px; }
.gx-recenter { position: absolute; top: 78px; right: 10px; z-index: 8; width: 30px; height: 30px; border: 1px solid var(--border-default); border-radius: 8px; box-shadow: 0 1px 3px var(--ink-06); }

.gx-map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 8; display: flex; flex-direction: column; gap: 7px; }
.gx-leg { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text-2); }
.gx-leg i { width: 11px; height: 11px; border-radius: 50%; }
.gx-leg i.is-active { background: #0E5C34; }
.gx-leg i.is-planned { background: #4ADE80; }
.gx-leg i.is-idle { background: #C7D5E5; }

.gx-map-tip { position: absolute; z-index: 10; padding: 7px 10px; border-radius: 7px; background: var(--bg-ink, #0F172A); color: #fff; font-size: 11px; line-height: 15px; pointer-events: none; box-shadow: 0 4px 14px rgba(2, 12, 26, .3); white-space: nowrap; }
.gx-map-tip b { display: block; font-size: 11.5px; }
.gx-map-tip[hidden] { display: none; }

/* --- top countries card ---------------------------------------------------- */
.gx-top-card { padding: 13px 14px 14px; display: flex; flex-direction: column; }
.gx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.gx-tab { display: inline-flex; align-items: center; justify-content: center; height: 31px; padding: 0 6px; border-radius: 8px; background: var(--bg-subtle-3); font-size: 11.5px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background-color .12s ease, color .12s ease; }
.gx-tab:hover { background: var(--bg-subtle-7); color: var(--text); }
.gx-tab.is-active { background: var(--bg-surface); color: var(--text-link); box-shadow: inset 0 0 0 1px var(--border-primary-2), 0 -2px 0 var(--primary) inset; }
.gx-toplist { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gx-toplist th { height: 26px; padding: 0 5px; font-size: 10.5px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.gx-toplist td { height: 38px; padding: 0 5px; border-bottom: 1px solid var(--border-soft); font-size: 11.5px; color: var(--text-2); }
.gx-toplist tbody tr:last-child td { border-bottom: 0; }
.gx-toplist tbody tr:hover td { background: var(--bg-subtle-7); }
.gx-country { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; text-decoration: none; }
.gx-country-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gx-country-name { font-size: 12px; font-weight: 600; color: var(--text-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-country:hover .gx-country-name { text-decoration: underline; }
.gx-sharebar { display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--bg-track); overflow: hidden; }
.gx-sharebar i { display: block; height: 100%; border-radius: 2px; }
.gx-share-lead { color: var(--text-success); font-weight: 600; }
.gx-viewall { display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; margin-top: 10px; border-radius: 8px; background: var(--tint-info); font-size: 12px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.gx-viewall:hover { background: var(--bg-subtle-7); }
.gx-viewall-ico { width: 14px; height: 14px; }

/* --- flags ----------------------------------------------------------------- */
.gx-flag { display: inline-flex; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; flex: 0 0 auto; box-shadow: inset 0 0 0 1px var(--ink-10); }
.gx-flag svg, .gx-flag .flag { width: 100%; height: 100%; display: block; }
.gx-flag-lg { width: 26px; height: 18px; border-radius: 4px; }

/* --- insight row ----------------------------------------------------------- */
.gx-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.gx-insight { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
.gx-insight:hover { border-color: var(--border-primary-2); box-shadow: 0 1px 4px var(--ink-06); }
.gx-insight-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; }
.gx-insight-ico svg { width: 20px; height: 20px; }
.gx-insight-body { display: flex; flex-direction: column; min-width: 0; }
.gx-insight-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.gx-insight-name { margin-top: 3px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-insight-metric { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--text-success); }
.gx-insight-sub { margin-top: 2px; font-size: 11.5px; color: var(--muted); }


/* --- filter bar ------------------------------------------------------------ */
.gx-filters { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 13px; flex-wrap: wrap; }
.gx-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 190px; height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.gx-search:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(18, 103, 243, .1); }
.gx-search-ico { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-tertiary); }
.gx-search input { width: 100%; border: 0; padding: 0; background: none; font-family: var(--font); font-size: 12.5px; color: var(--text); outline: none; }
.gx-search input::placeholder { color: var(--text-tertiary); }
.gx-select { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 0 1 158px; min-width: 124px; height: 40px; padding: 0 26px 0 12px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); cursor: pointer; }
.gx-select:hover { border-color: var(--border-primary-2); }
.gx-select-wide { flex: 1 1 180px; }
.gx-select-label { font-size: 9.5px; font-weight: 500; letter-spacing: .2px; color: var(--muted); line-height: 11px; }
.gx-select select { width: 100%; border: 0; padding: 0; background: none; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 16px; outline: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.gx-select-chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.gx-more { margin-left: auto; height: 40px; }
.gx-more-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--primary); font-size: 10.5px; font-weight: 700; color: #fff; }
.gx-morepanel { display: flex; align-items: center; gap: 10px; width: 100%; padding-top: 11px; border-top: 1px solid var(--border-soft); }
.gx-morepanel[hidden] { display: none; }

/* --- countries table ------------------------------------------------------- */
.gx-table-card { padding: 13px 0 0; display: flex; flex-direction: column; }
.gx-table-card .gx-card-head { padding: 0 14px; }
.gx-tablewrap { overflow-x: auto; }
.gx-table { width: 100%; border-collapse: collapse; }
.gx-table th { height: 34px; padding: 0 8px; background: var(--bg-subtle-3); font-size: 11px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.gx-table td { height: 42px; padding: 0 8px; border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.gx-table tbody tr:last-child td { border-bottom: 0; }
.gx-table tbody tr:hover td { background: var(--bg-subtle-7); }
.gx-table .gx-check { width: 34px; padding-left: 14px; }
.gx-table .gx-rank { width: 30px; color: var(--muted); }
.gx-table input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.gx-c { text-align: center; }
.gx-r { text-align: right; }
.gx-strong { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.gx-muted { color: var(--muted); }
.gx-clip { overflow: hidden; text-overflow: ellipsis; }
.gx-profit { font-weight: 700; color: var(--text-success); font-variant-numeric: tabular-nums; }
.gx-code { color: var(--muted); font-size: 11.5px; }
.gx-sort { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.gx-sort:hover { color: var(--text); }
.gx-sort-ico { width: 11px; height: 11px; opacity: .45; transition: opacity .12s ease; }
.gx-table th:hover .gx-sort-ico { opacity: .8; }
.gx-table th.is-sorted { color: var(--text); font-weight: 600; }
.gx-table th.is-sorted .gx-sort-ico { opacity: 1; color: var(--text-link); }
.gx-link { color: var(--text-link); text-decoration: none; }
.gx-link:hover { text-decoration: underline; }

.gx-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600; }
.gx-badge i { width: 7px; height: 7px; border-radius: 50%; }
.gx-badge.is-ok { background: var(--tint-success); color: var(--text-success); }
.gx-badge.is-ok i { background: var(--success); }
.gx-badge.is-warn { background: var(--tint-warning); color: var(--text-warning); }
.gx-badge.is-warn i { background: var(--warning); }
.gx-badge.is-bad { background: var(--tint-danger); color: var(--text-danger); }
.gx-badge.is-bad i { background: var(--danger); }
.gx-badge.is-off { background: var(--bg-subtle-7); color: var(--muted); }
.gx-badge.is-off i { background: var(--muted); }
.gx-growth { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-success); }
.gx-growth.is-down { color: var(--text-danger); }
.gx-growth.is-flat { color: var(--text-muted); }
.gx-growth-ico { width: 12px; height: 12px; }

.gx-actions { display: inline-flex; }
.gx-dots { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 25px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); color: var(--muted); cursor: pointer; }
.gx-dots:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.gx-dots svg { width: 14px; height: 14px; }
.gx-actions .dropdown-menu a, .gx-actions .dropdown-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 11px; border: 0; background: none; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; text-decoration: none; cursor: pointer; }
.gx-actions .dropdown-menu a:hover, .gx-actions .dropdown-menu button:hover { background: var(--bg-subtle-7); color: var(--text); }
.gx-actions .dropdown-menu svg { width: 14px; height: 14px; }
.gx-actions .dropdown-menu .is-danger { color: var(--text-danger); }
.gx-actions .dropdown-menu .is-danger:hover { background: var(--tint-danger); color: var(--text-danger); }

.gx-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.gx-showing { margin: 0; flex: 1 1 auto; font-size: 12px; color: var(--muted); }
.gx-per { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.gx-per select { height: 30px; padding: 0 25px 0 10px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text); appearance: none; cursor: pointer; }
.gx-per-chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.gx-pager { display: inline-flex; align-items: center; gap: 6px; }
.gx-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-size: 12px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.gx-pg:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.gx-pg.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.gx-pg.is-off { opacity: .4; }
.gx-pg-ico { width: 13px; height: 13px; }

/* --- charts row ------------------------------------------------------------ */
.gx-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.gx-mix { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.gx-donut { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.gx-donut canvas { width: 100% !important; height: 100% !important; }
.gx-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.gx-donut-value { font-size: 19px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.gx-donut-label { margin-top: 1px; font-size: 10px; color: var(--muted); }
.gx-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gx-legend a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 4px 3px; border-radius: 6px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.gx-legend a:hover { background: var(--bg-subtle-7); color: var(--text); }
.gx-legend i { width: 10px; height: 10px; border-radius: 50%; }
.gx-legend-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-legend-val { min-width: 46px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.gx-legend-pct { min-width: 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.gx-legend-status .gx-legend-val { min-width: 20px; }
.gx-chart { position: relative; width: 100%; height: 150px; flex: 1 1 auto; }
.gx-chart canvas { display: block; width: 100% !important; height: 100% !important; }


/* --- empty state ----------------------------------------------------------- */
.gx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; min-height: 130px; padding: 22px 16px; text-align: center; }
.gx-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 5px; border-radius: 12px; background: var(--bg-subtle-3); color: var(--text-tertiary); }
.gx-empty-ico svg { width: 20px; height: 20px; }
.gx-empty-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.gx-empty-body { margin: 0 0 8px; font-size: 12px; color: var(--muted); max-width: 320px; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1400px) {
  .gx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .gx-presence { grid-template-columns: minmax(0, 1fr); }
  .gx-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .gx-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-trio > :last-child { grid-column: span 2; }
  .gx-table th.gx-check, .gx-table td.gx-check { position: sticky; left: 0; z-index: 2; background: var(--bg-surface); }
  .gx-table thead th.gx-check { background: var(--bg-subtle-3); z-index: 3; }
  .gx-table tbody tr:hover td.gx-check { background: var(--bg-subtle-7); }
}
@media (max-width: 900px) {
  .gx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-trio { grid-template-columns: minmax(0, 1fr); }
  .gx-trio > :last-child { grid-column: auto; }
}
@media (max-width: 620px) {
  .gx-stats { grid-template-columns: minmax(0, 1fr); }
  .gx-head { flex-wrap: wrap; }
  .gx-head-actions { width: 100%; }
  .gx-insights { grid-template-columns: minmax(0, 1fr); }
  .gx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-mix { flex-direction: column; align-items: stretch; }
  .gx-donut { align-self: center; }
  .gx-foot { flex-wrap: wrap; justify-content: center; }
  .gx-showing { flex: 1 1 100%; text-align: center; }
  .gx-search, .gx-select, .gx-more { flex: 1 1 100%; margin-left: 0; }
}


/* ==========================================================================
   ALL DOMAINS — prefix .sx-. Content area only.
   ========================================================================== */

.page-all-domains { display: flex; flex-direction: column; gap: 12px; }
.page-all-domains > * { min-width: 0; max-width: 100%; }

.sx-card { border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); min-width: 0; }
.sx-pad { padding: 13px 14px 14px; display: flex; flex-direction: column; }
.sx-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.sx-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto; }
.sx-card-ico svg { width: 14px; height: 14px; }
.sx-card-title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.1px; color: var(--text); }

.sx-t-blue  { background: var(--tint-info);    color: var(--text-link); }
.sx-t-green { background: var(--tint-success); color: var(--fg-success); }
.sx-t-amber { background: var(--tint-warning); color: var(--fg-warning); }
.sx-t-red   { background: var(--tint-danger);  color: var(--fg-danger); }
.sx-t-slate { background: var(--bg-subtle-3);  color: var(--muted); }

/* --- header ---------------------------------------------------------------- */
.sx-crumb { margin-bottom: 4px; }
.sx-crumb a { display: inline-flex; align-items: center; gap: 6px; }
.sx-crumb-ico { width: 13px; height: 13px; }
.sx-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 4px; }
.sx-head-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tint-info); color: var(--text-link); flex: 0 0 auto; }
.sx-head-ico svg { width: 25px; height: 25px; }
.sx-head-text { min-width: 0; flex: 1 1 auto; }
.sx-title { margin: 0; font-size: 25px; line-height: 31px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.sx-sub { margin: 3px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.sx-head-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-top: 4px; }

.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.sx-btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.sx-btn-ico { width: 15px; height: 15px; }
.sx-btn-chev { width: 13px; height: 13px; color: var(--text-tertiary); }
.sx-btn-white:hover { border-color: var(--border-primary-2); background: var(--bg-subtle-7); }
.sx-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.sx-btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.sx-btn-ghost { border-color: transparent; background: var(--bg-subtle-3); color: var(--text-2); }
.sx-btn-ghost:hover { background: var(--bg-subtle-7); color: var(--text); }
.sx-import .dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 7px 11px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.sx-import .dropdown-menu a:hover { background: var(--bg-subtle-7); color: var(--text); }
.sx-import .dropdown-menu svg { width: 14px; height: 14px; }

/* --- stat cards ------------------------------------------------------------ */
.sx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sx-stat { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "ico body" "delta delta" "sub sub"; align-items: center; gap: 3px 11px; padding: 13px 14px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
.sx-stat:hover { border-color: var(--border-primary-2); box-shadow: 0 1px 4px var(--ink-06); }
.sx-stat-ico { grid-area: ico; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; }
.sx-stat-ico svg { width: 21px; height: 21px; }
.sx-stat-ico.is-disc svg { fill: currentColor; stroke: none; }
.sx-stat-sub .sx-sub-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; vertical-align: middle; }
.sx-stat-body { grid-area: body; min-width: 0; }
.sx-stat-value { display: block; font-size: 21px; line-height: 25px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.sx-stat-label { display: block; margin-top: 1px; font-size: 11.5px; line-height: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-stat-delta { grid-area: delta; display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--text-success); }
.sx-stat-arrow { width: 12px; height: 12px; }
.sx-stat-sub { grid-area: sub; margin-top: 3px; font-size: 11px; line-height: 14px; color: var(--muted); }
.sx-stat-sub.is-solo { margin-top: 7px; }

/* --- chips ----------------------------------------------------------------- */
.sx-chips { display: flex; align-items: stretch; gap: 4px; padding: 4px 4px 0; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 1px 2px var(--ink-04); overflow-x: auto; }
.sx-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .12s ease, border-color .12s ease; }
.sx-chip:hover { color: var(--text); }
.sx-chip.is-active { color: var(--text-link); border-bottom-color: var(--primary); }
.sx-chip-ico { width: 15px; height: 15px; }
.sx-chip-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--bg-subtle-3); font-size: 11px; font-weight: 700; color: var(--text-2); }
.sx-chip.is-active .sx-chip-n { background: var(--primary); color: #fff; }

/* --- filter bar ------------------------------------------------------------ */
.sx-filters { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 13px; flex-wrap: wrap; }
.sx-search { position: relative; display: flex; align-items: center; flex: 1 1 250px; min-width: 180px; height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.sx-search:focus-within { border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(18, 103, 243, .1); }
.sx-search-ico { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-tertiary); }
.sx-search input { width: 100%; border: 0; padding: 0; background: none; font-family: var(--font); font-size: 12.5px; color: var(--text); outline: none; }
.sx-search input::placeholder { color: var(--text-tertiary); }
.sx-select { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 0 1 152px; min-width: 120px; height: 40px; padding: 0 26px 0 12px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); cursor: pointer; }
.sx-select:hover { border-color: var(--border-primary-2); }
.sx-select-wide { flex: 1 1 180px; }
.sx-select-label { font-size: 9.5px; font-weight: 500; letter-spacing: .2px; color: var(--muted); line-height: 11px; }
.sx-select select { width: 100%; border: 0; padding: 0; background: none; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 16px; outline: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.sx-select-chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.sx-more { margin-left: auto; height: 40px; }
.sx-morepanel { display: flex; align-items: center; gap: 10px; width: 100%; padding-top: 11px; border-top: 1px solid var(--border-soft); }
.sx-morepanel[hidden] { display: none; }

/* --- bulk bar -------------------------------------------------------------- */
.sx-bulk { display: flex; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 9px 12px; border-radius: 8px; background: var(--tint-info); }
.sx-bulk[hidden] { display: none; }
.sx-bulk-count { font-size: 12px; font-weight: 600; color: var(--text-link); }
.sx-bulk-select { height: 30px; padding: 0 10px; border: 1px solid var(--border-primary-2); border-radius: 7px; background: var(--bg-surface); font-family: var(--font); font-size: 12px; color: var(--text); }

/* --- table ----------------------------------------------------------------- */
.sx-table-card { padding: 0 0 0; display: flex; flex-direction: column; }
.sx-tablewrap { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; }
.sx-table th { height: 38px; padding: 0 9px; background: var(--bg-subtle-3); font-size: 11px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.sx-table td { height: 52px; padding: 0 9px; border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sx-table tbody tr:last-child td { border-bottom: 0; }
.sx-table tbody tr:hover td { background: var(--bg-subtle-7); }
.sx-table .sx-check { width: 36px; padding-left: 14px; }
.sx-table .sx-rank { width: 32px; color: var(--muted); }
.sx-table input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.sx-r { text-align: right; }
.sx-clip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.sx-nowrap { white-space: nowrap; }
.sx-muted { color: var(--muted); }
.sx-dash { color: var(--text-tertiary); }
.sx-link { color: var(--text-link); text-decoration: none; font-weight: 500; }
.sx-link:hover { text-decoration: underline; }
.sx-domain { font-weight: 600; }
.sx-site { display: inline-flex; align-items: center; gap: 5px; }
.sx-status { display: inline-flex; align-items: center; gap: 7px; }
.sx-open { display: inline-flex; color: var(--text-link); }
.sx-open:hover { color: var(--text-link); }
.sx-ext { width: 12px; height: 12px; opacity: .7; }
.sx-plain { text-decoration: none; color: inherit; }
.sx-sort { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.sx-sort:hover { color: var(--text); }
.sx-sort-ico { width: 11px; height: 11px; opacity: .45; transition: opacity .12s ease; }
.sx-table th:hover .sx-sort-ico { opacity: .8; }
.sx-table th.is-sorted { color: var(--text); font-weight: 600; }
.sx-table th.is-sorted .sx-sort-ico { opacity: 1; color: var(--text-link); }

.sx-badge { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.sx-badge i { width: 7px; height: 7px; border-radius: 50%; }
.sx-badge.is-live { background: var(--tint-success); color: var(--text-success); }
.sx-badge.is-live i { background: var(--success); }
.sx-badge.is-none { background: var(--bg-subtle-3); color: var(--muted); }
.sx-badge.is-none i { background: var(--muted); }

.sx-geo { display: inline-flex; align-items: center; gap: 7px; }
.sx-flag { display: inline-flex; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; flex: 0 0 auto; box-shadow: inset 0 0 0 1px var(--ink-10); }
.sx-flag svg, .sx-flag .flag { width: 100%; height: 100%; display: block; }
.sx-geo-globe { width: 15px; height: 15px; color: var(--text-link); }
.sx-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; background: var(--bg-subtle-3); font-size: 11.5px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.sx-cat:hover { background: var(--tint-info); color: var(--text-link); }

/* registrar cell: logo + name, with the specific account beneath it */
.sx-reg { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sx-reg-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; flex: 0 0 auto; background: var(--bg-subtle-3); }
.sx-reg-logo svg { width: 100%; height: 100%; }
.sx-reg-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sx-reg-name { font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.sx-reg-name:hover { color: var(--text-link); }
.sx-reg-acct { font-size: 10.5px; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.sx-reg-acct:hover { color: var(--text-link); text-decoration: underline; }

.sx-expiry { display: block; font-size: 12px; font-weight: 600; color: var(--text); }
.sx-days { display: inline-flex; align-items: center; height: 19px; margin-top: 3px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.sx-days.is-red    { background: var(--tint-danger);  color: var(--text-danger); }
.sx-days.is-orange { background: var(--tint-warning); color: var(--text-warning); }
.sx-days.is-amber  { background: var(--tint-warning); color: var(--text-warning); }
.sx-days.is-green  { background: var(--tint-success); color: var(--text-success); }

.sx-actions { display: inline-flex; }
.sx-dots { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 25px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); color: var(--muted); cursor: pointer; }
.sx-dots:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.sx-dots svg { width: 14px; height: 14px; }
.sx-actions .dropdown-menu a, .sx-actions .dropdown-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 11px; border: 0; background: none; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; text-decoration: none; cursor: pointer; }
.sx-actions .dropdown-menu a:hover, .sx-actions .dropdown-menu button:hover { background: var(--bg-subtle-7); color: var(--text); }
.sx-actions .dropdown-menu svg { width: 14px; height: 14px; }
.sx-actions .dropdown-menu .is-danger { color: var(--text-danger); }
.sx-actions .dropdown-menu .is-danger:hover { background: var(--tint-danger); color: var(--text-danger); }

.sx-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sx-showing { margin: 0; flex: 1 1 auto; font-size: 12px; color: var(--muted); }
.sx-per { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sx-per select { height: 30px; padding: 0 25px 0 10px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text); appearance: none; cursor: pointer; }
.sx-per-chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.sx-pager { display: inline-flex; align-items: center; gap: 5px; }
.sx-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); font-size: 12px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.sx-pg:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.sx-pg.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sx-pg.is-off { opacity: .4; }
.sx-pg.is-gap { border-color: transparent; background: none; }
.sx-pg-ico { width: 13px; height: 13px; }

/* --- bottom three cards ---------------------------------------------------- */
.sx-trio { display: grid; grid-template-columns: 1.03fr 1.02fr 1fr; gap: 12px; align-items: stretch; }
.sx-mix { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.sx-donut { position: relative; width: 162px; height: 162px; flex: 0 0 auto; }
.sx-donut canvas { width: 100% !important; height: 100% !important; }
.sx-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.sx-donut-value { font-size: 24px; font-weight: 700; letter-spacing: -.6px; color: var(--text); }
.sx-donut-label { margin-top: 1px; font-size: 11px; color: var(--muted); }
.sx-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sx-legend a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 3px 3px; border-radius: 6px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.sx-legend a:hover { background: var(--bg-subtle-7); color: var(--text); }
.sx-legend i { width: 10px; height: 10px; border-radius: 50%; }
.sx-legend-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-legend-n { min-width: 22px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sx-legend-pct { min-width: 40px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.sx-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1 1 auto; justify-content: center; }
.sx-bars a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "label n pct" "track track track"; align-items: center; gap: 6px 10px; padding: 2px 3px; border-radius: 6px; text-decoration: none; }
.sx-bars a:hover { background: var(--bg-subtle-7); }
.sx-bars-label { grid-area: label; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-bars-n { grid-area: n; font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sx-bars-pct { grid-area: pct; min-width: 32px; text-align: right; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sx-bars-track { grid-area: track; display: block; height: 6px; border-radius: 3px; background: var(--bg-track); overflow: hidden; }
.sx-bars-track i { display: block; height: 100%; border-radius: 3px; }

.sx-viewall { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.sx-viewall-ico { width: 13px; height: 13px; }
.sx-expiries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.sx-expiries li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 39px; border-bottom: 1px solid var(--border-soft); }
.sx-expiries li:last-child { border-bottom: 0; }
.sx-exp-dot { width: 9px; height: 9px; border-radius: 50%; }
.sx-exp-dot.is-red { background: var(--danger); }
.sx-exp-dot.is-orange, .sx-exp-dot.is-amber { background: var(--warning); }
.sx-exp-dot.is-green { background: var(--success); }
.sx-exp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sx-exp-date { min-width: 78px; text-align: right; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* --- pro tip --------------------------------------------------------------- */
.sx-tip { display: flex; align-items: center; gap: 13px; padding: 13px 14px; }
.sx-tip-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--tint-warning); color: var(--fg-warning); flex: 0 0 auto; }
.sx-tip-ico svg { width: 20px; height: 20px; }
.sx-tip-text { flex: 1 1 auto; min-width: 0; }
.sx-tip-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.sx-tip-body { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }

/* --- empty state ----------------------------------------------------------- */
.sx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; min-height: 150px; padding: 26px 16px; text-align: center; }
.sx-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 5px; border-radius: 12px; background: var(--bg-subtle-3); color: var(--text-tertiary); }
.sx-empty-ico svg { width: 20px; height: 20px; }
.sx-empty-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.sx-empty-body { margin: 0 0 8px; font-size: 12px; color: var(--muted); max-width: 340px; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .sx-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-trio > :last-child { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .sx-table th.sx-check, .sx-table td.sx-check { position: sticky; left: 0; z-index: 2; background: var(--bg-surface); }
  .sx-table thead th.sx-check { background: var(--bg-subtle-3); z-index: 3; }
  .sx-table tbody tr:hover td.sx-check { background: var(--bg-subtle-7); }
}
@media (max-width: 900px) {
  .sx-trio { grid-template-columns: minmax(0, 1fr); }
  .sx-trio > :last-child { grid-column: auto; }
  .sx-tip { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .sx-head { flex-wrap: wrap; }
  .sx-head-actions { width: 100%; }
  .sx-mix { flex-direction: column; align-items: stretch; }
  .sx-donut { align-self: center; }
  .sx-foot { flex-wrap: wrap; justify-content: center; }
  .sx-showing { flex: 1 1 100%; text-align: center; }
  .sx-search, .sx-select, .sx-more { flex: 1 1 100%; margin-left: 0; }
}


/* ==========================================================================
   SETTINGS › NOTIFICATIONS — prefix .nt-. Content area only.
   ========================================================================== */

.nt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.nt-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nt-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: 14px; }
.nt-card { padding: 14px; }
.nt-rail-card { padding: 13px; }

/* --- channel tiles --------------------------------------------------------- */
.nt-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.nt-ch { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-surface); min-width: 0; }
.nt-ch.is-off { opacity: .72; }
.nt-ch-head { display: flex; align-items: center; gap: 10px; }
.nt-ch-logo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-subtle-3); overflow: hidden; flex: 0 0 auto; }
.nt-ch-logo svg { width: 100%; height: 100%; }
.nt-ch-glyph { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--tint-info); color: var(--text-link); }
.nt-ch-glyph-ico { width: 18px; height: 18px; }
.nt-ch-id { flex: 1 1 auto; min-width: 0; }
.nt-ch-name { margin: 0 0 3px; font-size: 13px; font-weight: 700; color: var(--text); }
.nt-ch-meta { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-ch-meta > div { display: flex; align-items: baseline; gap: 7px; font-size: 11.5px; min-width: 0; }
.nt-ch-meta dt { color: var(--muted); flex: 0 0 auto; }
.nt-ch-meta dd { margin: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ch-foot { display: flex; align-items: center; gap: 8px; }
.nt-ch-foot .st-btn { flex: 1 1 auto; height: 30px; font-size: 11.5px; }

/* --- severity chips -------------------------------------------------------- */
.nt-sevchips { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nt-sevchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; background: var(--bg-subtle-3); font-size: 11.5px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nt-sevchip:hover { background: var(--bg-subtle-7); color: var(--text); }
.nt-sevchip.is-active { background: var(--primary); color: #fff; }
.nt-sevchip.is-active .nt-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.nt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.nt-dot.is-critical { background: var(--danger); }
.nt-dot.is-warning  { background: var(--warning); }
.nt-dot.is-info     { background: var(--primary); }

/* --- event table ----------------------------------------------------------- */
.nt-tablewrap { overflow-x: auto; margin-top: 12px; }
.nt-table { width: 100%; border-collapse: collapse; }
.nt-table thead th { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--border-soft); font-size: 11.5px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; vertical-align: middle; }
.nt-col-event { min-width: 240px; }
.nt-col-ch { width: 96px; text-align: center !important; }
.nt-col-freq { width: 130px; }
.nt-colhead { display: block; font-size: 11.5px; color: var(--muted); }
.nt-allbox { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 10.5px; color: var(--text-2); cursor: pointer; }
.nt-allbox input { width: 13px; height: 13px; accent-color: var(--primary); cursor: pointer; }
.nt-info { display: inline-flex; padding: 0; border: 0; background: none; color: var(--text-tertiary); cursor: help; vertical-align: middle; }
.nt-info-ico { width: 13px; height: 13px; }

.nt-grouprow td { padding: 0; border-top: 1px solid var(--border-soft); }
.nt-group:first-of-type .nt-grouprow td { border-top: 0; }
.nt-grouphead { display: flex; align-items: center; gap: 9px; padding: 11px 8px 9px; }
.nt-group-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--tint-info); color: var(--text-link); flex: 0 0 auto; }
.nt-group-ico-svg { width: 14px; height: 14px; }
.nt-group-name { font-size: 13px; font-weight: 700; color: var(--text); }
.nt-group-n { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--bg-subtle-3); font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.nt-grouphead .st-switch { margin-left: auto; }
.nt-collapse { display: inline-flex; padding: 0; border: 0; background: none; color: var(--text-tertiary); cursor: pointer; }
.nt-collapse-ico { width: 15px; height: 15px; transition: transform .15s ease; }
.nt-collapse[aria-expanded="false"] .nt-collapse-ico { transform: rotate(-90deg); }

.nt-event td { height: 38px; padding: 0 8px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-2); vertical-align: middle; }
.nt-event:hover td { background: var(--bg-subtle-7); }
.nt-event[hidden] { display: none; }
.nt-eventname { display: inline-flex; align-items: center; gap: 9px; padding-left: 22px; cursor: pointer; }
.nt-eventname span { font-size: 12px; color: var(--text-2); }
.nt-box { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.nt-col-freq .st-select { min-width: 0; }
.nt-col-freq select { height: 28px; font-size: 11.5px; }
.nt-group.is-collapsed .nt-event { display: none; }

/* --- secure strip ---------------------------------------------------------- */
.nt-secure { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-color: var(--border-success, var(--border-soft)); background: var(--tint-success); }
.nt-secure-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--success); color: #fff; flex: 0 0 auto; }
.nt-secure-ico svg { width: 19px; height: 19px; }
.nt-secure-text { flex: 1 1 auto; min-width: 0; }
.nt-secure-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.nt-secure-body { margin: 2px 0 0; font-size: 11.5px; line-height: 15px; color: var(--text-2); }

/* --- rail bits ------------------------------------------------------------- */
.st-hint-above { margin: 0 0 6px; }
.nt-multi { position: relative; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.nt-multi-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--tint-info); font-size: 11.5px; font-weight: 600; color: var(--text-link); }
.nt-multi-clear { display: inline-flex; padding: 0; margin-left: auto; border: 0; background: none; color: var(--text-tertiary); cursor: pointer; }
.nt-multi-clear:hover { color: var(--text-danger); }
.nt-multi-x { width: 13px; height: 13px; }
.nt-multi .st-select-chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.nt-quick { display: flex; align-items: center; gap: 8px; }
.nt-quick .st-select { flex: 1 1 auto; }
.nt-history-btn { width: 100%; justify-content: center; }
.nt-select-lead .nt-dot { margin-right: 2px; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .nt-grid { grid-template-columns: minmax(0, 1fr); }
  .nt-rail { position: static; }
}
@media (max-width: 1024px) {
  .nt-table .nt-col-event { position: sticky; left: 0; z-index: 2; background: var(--bg-surface); }
  .nt-table thead .nt-col-event { z-index: 3; }
  .nt-event:hover td.nt-col-event { background: var(--bg-subtle-7); }
}
@media (max-width: 760px) {
  .nt-channels { grid-template-columns: minmax(0, 1fr); }
  .nt-secure { flex-wrap: wrap; }
  .nt-secure .st-btn { width: 100%; justify-content: center; }
}


/* ==========================================================================
   SETTINGS › APPEARANCE — prefix .ap- (tab) and .apx- (live preview mock).
   ========================================================================== */

.ap-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 14px; align-items: stretch; }
.ap-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ap-side { display: flex; flex-direction: column; min-width: 0; }
.ap-card { display: flex; flex-direction: column; padding: 0 16px 20px; }
.ap-card .st-card-head { padding: 15px 0 0; gap: 12px; align-items: center; }
.ap-card .st-card-title { font-size: 15px; }
.ap-card .st-card-sub { margin-top: 2px; font-size: 12.5px; line-height: 1.4; }
.ap-sublabel { margin: 16px 0 9px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ap-card .ap-sublabel:first-of-type { margin-top: 16px; }

/* --- option cards ---------------------------------------------------------- */
.ap-opts { display: grid; gap: 12px; }
.ap-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-opt { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 17px 14px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); cursor: pointer; transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease; }
.ap-opt:hover { border-color: var(--border-primary-2); }
.ap-opt.is-on { border-color: var(--primary); background: var(--tint-info); box-shadow: 0 0 0 1px var(--primary) inset; }
.ap-opt-input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: var(--text-2); }
.ap-opt-ico-svg { width: 19px; height: 19px; }
.ap-opt.is-on .ap-opt-ico { color: var(--text-link); }
.ap-opt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ap-opt-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.ap-opt-desc { font-size: 12px; line-height: 16px; color: var(--muted); }
.ap-opt-mark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1px solid var(--border-default); border-radius: 5px; background: var(--bg-surface); color: transparent; flex: 0 0 auto; }
/* theme cards keep the icon on top and the round mark beneath it */
.ap-opt:has(.ap-opt-ico) { flex-direction: column; }
.ap-opt:has(.ap-opt-ico) .ap-opt-mark { border-radius: 50%; }
/* width and density cards read mark-then-title on one line */
.ap-opt:not(:has(.ap-opt-ico)) { flex-direction: row; align-items: flex-start; gap: 9px; }
.ap-opt.is-on .ap-opt-mark { border-color: var(--primary); background: var(--primary); color: #fff; }
.ap-opt-check { width: 11px; height: 11px; }
.ap-toggles { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
.ap-toggles .st-pref { min-height: 48px; }
.ap-toggles .st-pref-title { font-size: 15px; }
.ap-toggles .st-pref-desc { font-size: 13.5px; }

/* --- branding -------------------------------------------------------------- */
.ap-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.ap-fav-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
.ap-fav-tile { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid var(--border-soft); border-radius: 13px; background: var(--bg-subtle-3); overflow: hidden; flex: 0 0 auto; }
.ap-fav-tile img { width: 34px; height: 34px; object-fit: contain; }
.ap-fav-btn { cursor: pointer; }
.ap-fav-row .st-btn { width: 100%; justify-content: center; height: 44px; font-size: 13.5px; }
.ap-appname .st-field { margin: 0; }
.ap-save { height: 44px; padding: 0 20px; font-size: 13.5px; }

/* --- reset strip ----------------------------------------------------------- */
.ap-reset { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--tint-danger); border-color: var(--border-soft); }
.ap-reset-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-surface); color: var(--fg-danger); flex: 0 0 auto; }
.ap-reset-ico svg { width: 22px; height: 22px; }
.ap-reset-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; text-align: left; }
.ap-reset-title { display: block; margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.ap-reset-body { display: block; margin: 2px 0 0; font-size: 11.5px; color: var(--text-2); }
.ap-reset-action { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ap-reset-action:hover .ap-reset-title { color: var(--text-danger); }

/* --- preview shell --------------------------------------------------------- */
.ap-preview-card { padding: 14px; }
.ap-views { display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--bg-subtle-3); }
.ap-view { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.ap-view.is-on { background: var(--bg-surface); color: var(--text-link); box-shadow: 0 1px 2px var(--ink-06); }
.ap-view-ico { width: 15px; height: 15px; }
.ap-preview-card { flex: 1 1 auto; }
.ap-preview { display: flex; flex: 1 1 auto; margin-top: 12px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--bg-subtle-3); overflow: hidden; }
.ap-preview > .apx { flex: 1 1 auto; }
.ap-preview[data-view="tablet"] .apx { max-width: 560px; margin: 0 auto; }
.ap-preview[data-view="mobile"] .apx { max-width: 330px; margin: 0 auto; }
.ap-preview[data-view="mobile"] .apx-side { display: none; }
.ap-note { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; padding: 11px 12px; border-radius: 9px; background: var(--tint-info); font-size: 11.5px; line-height: 16px; color: var(--text-2); }
.ap-note-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; flex: 0 0 auto; }
.ap-note-ico svg { width: 13px; height: 13px; }
.ap-note strong { color: var(--text); }

/* --- the mock itself ------------------------------------------------------- */
.apx { display: grid; grid-template-columns: 134.4px minmax(0, 1fr); min-height: 690px; font-size: 11.2px; background: var(--bg-surface); }
.apx-ico { width: 11.2px; height: 11.2px; }
.apx-side { padding: 11.2px 8.4px; background: #0F1A29; color: #CDD1D9; display: flex; flex-direction: column; }
.apx-brand { display: flex; align-items: center; gap: 7px; padding: 2.8px 5.6px 11.2px; }
.apx-logo { width: 18.2px; height: 18.2px; border-radius: 5.6px; background: linear-gradient(135deg, #4076FF, #2A54D8); flex: 0 0 auto; }
.apx-brandname { font-size: 11.2px; font-weight: 700; color: #fff; }
.apx-brandname b { color: #8FA8FF; }
.apx-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; }
.apx-nav li { display: flex; align-items: center; gap: 7px; height: 21px; padding: 0 7px; border-radius: 5.6px; color: #9DABC0; white-space: nowrap; overflow: hidden; }
.apx-nav li.is-on { background: var(--sidebar-active, #3568F4); color: #fff; }
.apx-nav-ico { display: inline-flex; flex: 0 0 auto; }
.apx-side-foot { padding: 8.4px 7px 0; font-size: 9.8px; color: #7B8DA3; }
.apx-body { display: flex; flex-direction: column; background: var(--page-bg); min-width: 0; }
.apx-top { display: flex; align-items: center; gap: 8.4px; height: 28px; padding: 0 9.8px; background: var(--bg-surface); border-bottom: 1px solid var(--border-soft); }
.apx-burger, .apx-bell { display: inline-flex; color: var(--muted); position: relative; }
.apx-bell i { position: absolute; top: -1px; right: -1px; width: 5.6px; height: 5.6px; border-radius: 50%; background: var(--danger); }
.apx-search { display: flex; align-items: center; gap: 5.6px; flex: 1 1 auto; height: 18.2px; padding: 0 8.4px; border: 1px solid var(--border-default); border-radius: 9.8px; color: var(--text-tertiary); }
.apx-avatar { display: inline-flex; align-items: center; justify-content: center; width: 19.6px; height: 19.6px; border-radius: 50%; background: var(--primary); font-size: 8.4px; font-weight: 700; color: #fff; }
.apx-page { padding: 11.2px; display: flex; flex-direction: column; gap: 9.8px; flex: 1 1 auto; min-height: 0; }
.apx-h1 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15.4px; font-weight: 700; color: var(--text); }
.apx-h1-ico { display: inline-flex; align-items: center; justify-content: center; width: 19.6px; height: 19.6px; border-radius: 5.6px; background: var(--tint-info); color: var(--text-link); flex: 0 0 auto; }
.apx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8.4px; }
.apx-stat { display: flex; flex-direction: column; gap: 1px; padding: 8.4px; border: 1px solid var(--border-soft); border-radius: 9.8px; background: var(--bg-surface); }
.apx-stat-l { font-size: 9.8px; color: var(--muted); }
.apx-stat-v { font-size: 16.8px; font-weight: 700; color: var(--text); }
.apx-stat-d { font-size: 9.8px; font-weight: 600; color: var(--text-success); }
.apx-stat-d.is-warn { color: var(--text-warning); }
.apx-stat-d.is-down { color: var(--text-danger); }
.apx-chart, .apx-table { border: 1px solid var(--border-soft); border-radius: 11.2px; background: var(--bg-surface); padding: 9.8px; }
.apx-table { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.apx-chart-head, .apx-table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8.4px; }
.apx-chart-title { display: inline-flex; align-items: center; gap: 7px; font-size: 12.6px; font-weight: 700; color: var(--text); }
.apx-chip { padding: 2.8px 8.4px; border: 1px solid var(--border-default); border-radius: 11.2px; font-size: 9.8px; color: var(--text-2); }
.apx-link { font-size: 10.5px; font-weight: 600; color: var(--text-link); }
.apx-spark { display: block; width: 100%; height: 61.6px; }
.apx-spark polyline { fill: none; stroke: var(--primary); stroke-width: 2; }
.apx-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.apx-table th, .apx-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apx-table th:nth-child(1), .apx-table td:nth-child(1) { width: 6%; }
.apx-table th:nth-child(2), .apx-table td:nth-child(2) { width: 28%; }
.apx-table th:nth-child(3), .apx-table td:nth-child(3) { width: 28%; }
.apx-table th:nth-child(4), .apx-table td:nth-child(4) { width: 12%; }
.apx-table th:nth-child(5), .apx-table td:nth-child(5) { width: 12%; }
.apx-table th:nth-child(6), .apx-table td:nth-child(6) { width: 14%; }
.apx-table th { padding: 4.2px 5.6px; border-bottom: 1px solid var(--border-soft); font-size: 9.8px; font-weight: 500; color: var(--muted); text-align: left; }
.apx-table td { padding: 5.6px; border-bottom: 1px solid var(--border-soft); font-size: 10.5px; color: var(--text-2); }
.apx-table tr:last-child td { border-bottom: 0; }
.apx-site { color: var(--text-link); font-weight: 600; }
.apx-muted { color: var(--muted); }
.apx-geo { white-space: nowrap; }
.apx-flagdot { display: inline-block; vertical-align: middle; width: 9.8px; height: 7px; margin-right: 4px; border-radius: 1px; background: linear-gradient(90deg, #12B76A 50%, #F04438 50%); }
.apx-badge { display: inline-flex; align-items: center; gap: 4.2px; padding: 1px 7px; border-radius: 9.8px; font-size: 9.1px; font-weight: 600; max-width: 100%; overflow: hidden; white-space: nowrap; }
.apx-badge i { width: 5.6px; height: 5.6px; border-radius: 50%; }
.apx-badge.is-ok { background: var(--tint-success); color: var(--text-success); }
.apx-badge.is-ok i { background: var(--success); }
.apx-badge.is-info { background: var(--tint-info); color: var(--text-link); }
.apx-badge.is-info i { background: var(--primary); }
.apx-badge.is-warn { background: var(--tint-warning); color: var(--text-warning); }
.apx-badge.is-warn i { background: var(--warning); }
.apx-foot { padding-top: 2.8px; text-align: right; font-size: 9.8px; color: var(--muted); }

/* live settings reflected in the mock */
.ap-preview[data-density="compact"]     .apx-table td { padding: 2.8px 5.6px; }
.ap-preview[data-density="spacious"]    .apx-table td { padding: 9.8px 5.6px; }
.ap-preview[data-width="wide"]  .apx-page { padding: 11.2px 7px; }
.ap-preview[data-width="full"]  .apx-page { padding: 11.2px 2.8px; }
.ap-preview[data-icons="0"] .apx-h1-ico, .ap-preview[data-icons="0"] .apx-nav-ico { display: none; }
.ap-preview[data-badges="0"] .apx-badge { background: none !important; color: var(--text-2) !important; padding: 0; }
.ap-preview[data-badges="0"] .apx-badge i { display: none; }
.ap-preview[data-theme-mode="dark"] .apx { --bg-surface: #0D1B29; --page-bg: #07111D; --border-soft: #182B3C; --border-default: #213447; --text: #F8FAFC; --text-2: #E2E8F0; --muted: #8FA3B8; --bg-subtle-3: #102131; }
.ap-preview[data-theme-mode="dark"] .apx-body { background: #07111D; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-side { position: static; }
}
@media (max-width: 760px) {
  .ap-opts-3 { grid-template-columns: minmax(0, 1fr); }
  .ap-brand { grid-template-columns: minmax(0, 1fr); }
  .ap-reset { flex-wrap: wrap; }
  .ap-reset .st-btn { width: 100%; justify-content: center; }
  .apx { grid-template-columns: minmax(0, 1fr); }
  .apx-side { display: none; }
}

/* ==========================================================================
   APPEARANCE SETTINGS — applied app-wide from the attributes header.php
   stamps on <html>. Saving the Appearance tab changes every page.
   ========================================================================== */

/* The content is capped, but never centred: with a fixed sidebar on the left,
   centring leaves a dead column between the sidebar and the page. */
html[data-ui-width="wide"]   .page-content { max-width: 1680px; }
html[data-ui-width="full"]   .page-content { max-width: none; }
html[data-ui-width="normal"] .page-content { max-width: 1440px; }

html[data-ui-density="compact"]  .page-content table td { padding-top: 2px; padding-bottom: 2px; }
html[data-ui-density="compact"]  .page-content table tbody tr { line-height: 1.25; }
html[data-ui-density="spacious"] .page-content table td { padding-top: 9px; padding-bottom: 9px; }

html[data-ui-icons="0"] .page-content .st-tile,
html[data-ui-icons="0"] .page-content .gx-card-ico,
html[data-ui-icons="0"] .page-content .sx-card-ico,
html[data-ui-icons="0"] .page-content .anr-card-ico { display: none; }

html[data-ui-badges="0"] .page-content .status-pill,
html[data-ui-badges="0"] .page-content .gx-badge,
html[data-ui-badges="0"] .page-content .sx-badge,
html[data-ui-badges="0"] .page-content .anr-badge { background: none; padding: 0; color: var(--text-2); }
html[data-ui-badges="0"] .page-content .gx-badge i,
html[data-ui-badges="0"] .page-content .sx-badge i,
html[data-ui-badges="0"] .page-content .anr-badge i { display: none; }

html[data-ui-stickyhd="1"] .table-scroll > table thead th { position: sticky; top: 0; z-index: 4; }

html[data-ui-motion="1"] * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .06s !important; scroll-behavior: auto !important; }


/* The tab bodies all start the same distance below the Settings tab strip. */
.nt-form { margin-top: 12px; }

/* ==========================================================================
   SETTINGS › DATA & BACKUP — prefix .bk-.
   Every measurement here is taken from design-reference/settings-data-backup.png
   at its own scale (a 1383px-wide render captured down to 1024px).
   ========================================================================== */

.bk-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.bk-card { display: flex; flex-direction: column; padding: 0 20px 22px; }
.bk-card .st-card-head { padding: 14px 0 0; gap: 12px; align-items: center; }
.bk-card .st-card-title { font-size: 15px; }
.bk-card .st-card-sub { margin-top: 2px; font-size: 12.5px; line-height: 1.4; }
.bk-card .st-tile { width: 48px; height: 48px; border-radius: 14px; }
.bk-card .st-tile-ico { width: 26px; height: 26px; }
.bk-backup-row { display: grid; grid-template-columns: minmax(0, 53.5fr) minmax(0, 46.5fr); gap: 10px; align-items: stretch; }
.bk-restore-row { display: grid; grid-template-columns: minmax(0, 36.5fr) minmax(0, 63.5fr); gap: 10px; align-items: stretch; }
.bk-sample-row { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); gap: 10px; align-items: stretch; }
.bk-strong { font-weight: 700; color: var(--text); }

/* --- backup ---------------------------------------------------------------- */
.bk-last { display: grid; grid-template-columns: minmax(0, 59fr) minmax(0, 41fr); gap: 13px; margin-top: 16px; align-items: start; }
.bk-lastbox { display: flex; align-items: flex-start; gap: 16px; padding: 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--bg-subtle-3); }
.bk-last-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--tint-info); color: var(--text-link); flex: 0 0 auto; }
.bk-last-ico svg { width: 21px; height: 21px; }
.bk-last-label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text); }
.bk-last-when { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -.1px; }
.bk-last-meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.bk-ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--tint-success); font-size: 11px; font-weight: 600; color: var(--fg-success); }
.bk-ok-ico { width: 11px; height: 11px; }
.bk-last-cta { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; }
.bk-cta { width: 100%; justify-content: center; height: 50px; font-size: 14.5px; font-weight: 600; border-radius: 10px; }
.bk-cta-hint { margin: 0; font-size: 11.5px; color: var(--muted); text-align: center; }

.bk-auto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; margin-top: 13px; }
.bk-auto .st-field { margin: 0; }
.bk-info { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 0; padding: 9px 11px; border-radius: 9px; background: var(--tint-info); font-size: 12px; line-height: 17px; color: var(--text-2); }
.bk-info-ico { display: inline-flex; color: var(--text-link); flex: 0 0 auto; }
.bk-info-ico svg { width: 15px; height: 15px; }
.bk-info-lg { margin: 0; align-self: stretch; align-items: center; padding: 11px 13px; }

/* --- important strip ------------------------------------------------------- */
.bk-important { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; background: var(--tint-warning); border-color: var(--tint-warning-line, var(--border-soft)); }
.bk-important-ico { display: inline-flex; color: var(--fg-warning); flex: 0 0 auto; }
.bk-important-ico svg { width: 28px; height: 28px; }
.bk-important-text { margin: 0; max-width: 76ch; font-size: 12.5px; line-height: 19px; color: var(--text-2); }
.bk-important-text strong { color: var(--text); font-weight: 700; }
.bk-important-text code { font-family: inherit; font-size: 12.5px; color: var(--text-2); }

/* --- restore --------------------------------------------------------------- */
.bk-drop { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 13px; padding: 19px 14px 16px; border: 1.5px dashed var(--border-primary-2); border-radius: 12px; background: var(--tint-info); text-align: center; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.bk-drop:hover, .bk-drop.is-over { border-color: var(--primary); background: var(--bg-subtle-7); }
.bk-drop-ico { display: inline-flex; color: var(--text-link); margin-bottom: 9px; }
.bk-drop-ico svg { width: 34px; height: 34px; }
.bk-drop-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.bk-drop-sub { font-size: 13.5px; font-weight: 700; color: var(--text); }
.bk-drop-link { color: var(--text-link); }
.bk-drop-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.bk-drop-name { margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--text-link); }
.bk-inspect { display: none; }

.bk-preview-card .st-card-body, .bk-preview { flex: 1 1 auto; }
.bk-preview { display: grid; grid-template-columns: minmax(0, 59fr) minmax(0, 41fr); gap: 20px; margin-top: 13px; align-items: stretch; }
.bk-panel { border: 1px solid var(--border-soft); border-radius: 11px; overflow: hidden; background: var(--bg-surface); display: flex; flex-direction: column; }
.bk-ptable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bk-ptable th { padding: 10px 13px; background: var(--bg-subtle-3); font-size: 12.5px; font-weight: 700; color: var(--text); text-align: left; }
.bk-ptable td { padding: 5px 13px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); }
.bk-ptable th:nth-child(2), .bk-ptable td:nth-child(2) { width: 25%; }
.bk-ptable th:nth-child(3), .bk-ptable td:nth-child(3) { width: 26%; }
.bk-ptable-more td { border-top: 1px solid var(--border-soft); }
.bk-ptype { display: inline-flex; align-items: center; gap: 11px; }
.bk-ptype-ico { width: 16px; height: 16px; color: var(--text-2); flex: 0 0 auto; }
.bk-more { display: block; width: 100%; padding: 7px 13px; border: 0; border-top: 1px solid var(--border-soft); background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-link); text-align: left; cursor: pointer; }
.bk-more:hover { text-decoration: underline; }

.bk-danger { display: flex; flex-direction: column; padding: 14px; border-radius: 11px; background: var(--tint-danger); }
.bk-danger-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--text); }
.bk-danger-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bk-danger-list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.bk-danger-dot { display: inline-flex; color: var(--fg-danger); flex: 0 0 auto; }
.bk-danger-dot svg { width: 17px; height: 17px; }
.bk-restore { width: 100%; height: 40px; margin-top: auto; border: 0; border-radius: 10px; background: var(--danger); font: inherit; font-size: 13.5px; font-weight: 600; color: #fff; cursor: pointer; }
.bk-restore:hover:not([disabled]) { background: var(--fill-danger); }
.bk-restore[disabled] { background: var(--btn-disabled-bg); color: var(--btn-disabled-fg); cursor: not-allowed; }

/* --- export grid ----------------------------------------------------------- */
.bk-soft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 34px; padding: 0 15px; border: 0; border-radius: 10px; background: var(--tint-info); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-link); text-decoration: none; cursor: pointer; white-space: nowrap; }
.bk-soft-btn, .bk-soft-btn:hover, .bk-fmt, .bk-fmt:hover, .bk-danger-btn, .bk-danger-btn:hover, .bk-next, .bk-next:hover { text-decoration: none; }
.bk-soft-btn:hover { background: var(--bg-subtle-7); }
.bk-soft-ico { width: 16px; height: 16px; }

.bk-mods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 18px; row-gap: 13px; margin-top: 15px; align-items: stretch; }
.bk-mod { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--bg-surface); min-width: 0; }
.bk-mod-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; }
.bk-mod-ico-svg { width: 26px; height: 26px; }
.bk-mod-logo { width: 29px; height: 29px; }
.bk-t-blue    { background: #0B6BF5; }
.bk-t-green   { background: #07A35A; }
.bk-t-purple  { background: #8B23E0; }
.bk-t-orange  { background: #FA8B12; }
.bk-t-red     { background: #F42046; }
.bk-t-violet  { background: #5610FC; }
.bk-t-emerald { background: #0E8A4A; }
.bk-t-pink    { background: #FC0E6F; }
.bk-t-google  { background: var(--bg-surface); border: 1px solid var(--border-soft); }
.bk-mod-body { display: flex; flex-direction: column; min-width: 0; }
.bk-mod-name { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -.1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-mod-n { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.bk-mod-note { margin: 1px 0 0; font-size: 11.5px; color: var(--muted); }
.bk-mod-btns { display: flex; gap: 12px; margin-top: 9px; }
.bk-fmt { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px; min-width: 51px; border-radius: 8px; background: var(--tint-info); font-size: 12.5px; font-weight: 700; color: var(--text-link); text-decoration: none; }
.bk-fmt:hover { background: var(--bg-subtle-7); }
.bk-mod-split { margin-top: 9px; }
.bk-split-main { height: 30px; padding: 0 11px; gap: 7px; font-size: 12.5px; font-weight: 700; border-radius: 8px; }
.bk-split-caret { display: inline-flex; align-items: center; height: 30px; margin: 0 -11px 0 3px; padding: 0 8px; border-left: 1px solid var(--border-primary-2); }
.bk-split-caret svg { width: 13px; height: 13px; }
.bk-plain-menu { min-width: 226px; padding: 11px; }
.bk-plain { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.bk-plain input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--danger); }
.bk-plain small { color: var(--muted); font-size: 11.5px; }
.bk-plain-warn { display: flex; align-items: flex-start; gap: 7px; margin: 9px 0 0; padding: 9px; border-radius: 8px; background: var(--tint-danger); font-size: 11.5px; line-height: 15px; color: var(--text-danger); }
.bk-plain-ico { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }

/* --- import ---------------------------------------------------------------- */
.bk-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bk-step { position: relative; display: flex; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--bg-surface); }
.bk-step.is-on { border-color: var(--primary); background: var(--tint-info); }
.bk-step-n { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 41px; border-radius: 50%; background: #94A3B8; font-size: 15px; font-weight: 700; color: #fff; flex: 0 0 auto; }
.bk-step.is-on .bk-step-n { background: var(--primary); }
.bk-step-text { display: flex; flex-direction: column; min-width: 0; }
.bk-step-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.bk-step-desc { margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.bk-step-sep { position: absolute; left: -20px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--text-tertiary); }
.bk-step-sep-ico { width: 14px; height: 14px; }
.bk-import { display: grid; grid-template-columns: minmax(0, calc((100% - 56px) / 3)) minmax(0, 1fr) auto; gap: 28px; align-items: end; margin-top: 24px; }
.bk-import .st-field { margin: 0; }
.bk-next { height: 44px; padding: 0 26px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }

/* --- sample + storage ------------------------------------------------------ */
.bk-sample { display: flex; flex-direction: column; gap: 13px; margin-top: 13px; }
.bk-sample-warn { display: flex; align-items: center; gap: 13px; margin: 0; padding: 17px 15px; border-radius: 11px; background: var(--tint-danger); font-size: 12.5px; line-height: 19px; color: var(--muted); }
.bk-sample-warn strong { color: var(--text-danger); font-weight: 700; }
.bk-sample-ico { display: inline-flex; color: var(--fg-danger); flex: 0 0 auto; }
.bk-sample-ico svg { width: 28px; height: 28px; }
.bk-danger-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 40px; border: 1px solid var(--border-danger-2, #FBCFD8); border-radius: 10px; background: var(--tint-danger); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-danger); text-decoration: none; cursor: pointer; }
.bk-danger-btn:hover { background: var(--tint-danger-2, #FEE2E6); }
.bk-danger-ico { width: 16px; height: 16px; }

.bk-storage { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 18px; margin-top: 11px; align-items: start; }
.bk-stable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bk-stable th { padding: 8px 13px; background: var(--bg-subtle-3); font-size: 12.5px; font-weight: 700; color: var(--text); text-align: left; }
.bk-stable td { padding: 8px 13px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); }
.bk-stable th:nth-child(2), .bk-stable td:nth-child(2) { width: 24%; }
.bk-stable th:nth-child(3), .bk-stable td:nth-child(3) { width: 19%; }
.bk-stable td:nth-child(2) { font-weight: 700; color: var(--text); }
.bk-stable-total td { border-top: 0; font-weight: 700; color: var(--text); }
.bk-bar { height: 6px; margin: 1px 13px 6px; border-radius: 999px; background: var(--border-soft); overflow: hidden; }
.bk-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--success); }
.bk-clean { padding: 10px 13px 10px; gap: 5px; }
.bk-clean-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); }
.bk-clean .st-field { margin: 0; }
.bk-check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.bk-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.bk-clean .bk-danger-btn { margin-top: auto; }

/* --- empty states ---------------------------------------------------------- */
.bk-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1 1 auto; min-height: 150px; padding: 20px 14px; text-align: center; }
.bk-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 5px; border-radius: 11px; background: var(--bg-subtle-3); color: var(--text-tertiary); }
.bk-empty-ico svg { width: 19px; height: 19px; }
.bk-empty-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.bk-empty-body { margin: 0; font-size: 12px; color: var(--muted); }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1380px) {
  .bk-mods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-import { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 13px; }
  .bk-next { justify-self: start; }
}
@media (max-width: 1040px) {
  .bk-restore-row { grid-template-columns: minmax(0, 1fr); }
  .bk-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bk-backup-row, .bk-sample-row, .bk-storage, .bk-auto, .bk-preview { grid-template-columns: minmax(0, 1fr); }
  .bk-last { grid-template-columns: minmax(0, 1fr); }
  .bk-last-cta { padding-top: 0; }
  .bk-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bk-step-sep { display: none; }
}
@media (max-width: 560px) { .bk-mods { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   SEO › BACKLINKS — outreach CRM. Prefix .lk-.
   Names avoid the responsive [class*="-row"|"-layout"|"-split"|"-metrics"]
   shell rules, which would otherwise force grid columns onto these boxes.
   ========================================================================== */

/* The design puts the cards closer to the sidebar than the app default, so the
   gutter is narrowed for this page only — the shell keeps its own value. */
.page-backlinks { --lk-gap: 17px; --content-pad-x: 8px; }
.page-backlinks .lk-crumb { margin-top: 8px; }
.lk-bulk[hidden], .lk-panel[hidden], .lk-scrim[hidden], .lk-morepanel[hidden], .lk-savepanel[hidden] { display: none; }
.lk-crumb { padding-left: 11px; margin-bottom: 6px; }
.lk-crumb-ico { width: 14px; height: 14px; margin-right: 6px; }
.lk-crumb a { color: var(--text-link); display: inline-flex; align-items: center; }
.lk-crumb a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.lk-head { display: flex; align-items: flex-start; gap: 14px; padding-left: 11px; margin-bottom: 44px; }
.lk-head-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint-info); color: var(--primary); flex: 0 0 auto; }
.lk-head-ico svg { width: 24px; height: 24px; }
.lk-head-text { min-width: 0; flex: 1 1 auto; }
.lk-title { margin: 0; font-size: 29px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; color: var(--text); }
.lk-sub { margin: 5px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.lk-head-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-top: 4px; }

.lk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 47px; padding: 0 22px; border: 1px solid transparent; border-radius: 11px; font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.lk-btn-ico { width: 17px; height: 17px; flex: none; }
.lk-btn-chev { width: 15px; height: 15px; flex: none; }
.lk-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.lk-btn-primary:hover { background: var(--primary-strong, #1D4ED8); border-color: var(--primary-strong, #1D4ED8); }
.lk-btn-white { background: var(--bg-surface); border-color: var(--border-default); color: var(--text); }
.lk-btn-white:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.lk-btn-danger { background: var(--bg-surface); border-color: var(--border-danger-2, #FBCFD8); color: var(--text-danger); }
.lk-btn-danger:hover { background: var(--tint-danger); }
.lk-btn-icon { width: 47px; padding: 0; }
.lk-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.lk-btn-xs { height: 28px; padding: 0 11px; font-size: 11.5px; border-radius: 8px; }

/* ----------------------------------------------------------------- frame */
.lk-frame { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lk-gap); align-items: start; }
.lk-frame.is-open { grid-template-columns: minmax(0, 1fr) 406px; }
.lk-card { background: var(--bg-surface); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow-card); min-width: 0; overflow: hidden; }

/* ------------------------------------------------------------------ tabs */
.lk-tabs { display: flex; align-items: stretch; gap: 3px; padding: 0 11px; border-bottom: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tab { display: inline-flex; align-items: center; gap: 6px; height: 53px; padding: 0 9px; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.lk-tab:hover { color: var(--text-2); }
.lk-tab.is-on { color: var(--text-link); font-weight: 600; border-bottom-color: var(--primary); }
.lk-tab-ico { width: 16px; height: 16px; flex: none; }
.lk-tab-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--bg-subtle-3); font-size: 12px; font-weight: 600; color: var(--text-2); }
.lk-tab.is-on .lk-tab-n { background: var(--tint-info); color: var(--text-link); }
.lk-tab[href*="tab=outreach"]  .lk-tab-ico { color: var(--success); }
.lk-tab[href*="tab=negotiate"] .lk-tab-ico { color: var(--warning); }
.lk-tab[href*="tab=progress"]  .lk-tab-ico { color: var(--primary); }
.lk-tab[href*="tab=live"]      .lk-tab-ico { color: var(--success); }
.lk-tab[href*="tab=rejected"]  .lk-tab-ico { color: var(--danger); }

/* --------------------------------------------------------------- filters */
.lk-filters { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 11px 14px; }
/* widths measured off the design so the whole bar stays on one line */
.lk-fsel-dr select       { width: 58px; }
.lk-fsel-traffic select  { width: 74px; }
.lk-fsel-geo select      { width: 65px; }
.lk-fsel-niche select    { width: 73px; }
.lk-fsel-status select   { width: 77px; }
.lk-fsel-assignee select { width: 115px; }
.lk-search { position: relative; display: flex; align-items: center; flex: 0 0 190px; max-width: 190px; }
.lk-search-ico { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--text-tertiary); pointer-events: none; }
.lk-search input { width: 100%; height: 38px; padding: 0 10px 0 32px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 12.5px; color: var(--text); }
.lk-search input::placeholder { color: var(--text-tertiary); }
.lk-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }

.lk-fsel { position: relative; display: inline-flex; align-items: center; }
.lk-fsel select { appearance: none; height: 38px; padding: 0 25px 0 10px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.lk-fsel select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.lk-fsel-ico { position: absolute; right: 10px; width: 15px; height: 15px; color: var(--text-tertiary); pointer-events: none; }
.lk-fsel.is-on select { border-color: var(--primary); color: var(--text-link); background: var(--tint-info); }

.lk-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer; }
.lk-fbtn:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.lk-fbtn.is-on { border-color: var(--primary); background: var(--tint-info); color: var(--text-link); }
.lk-fbtn-ico { width: 14px; height: 14px; }
.lk-fbtn-n { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--primary); font-size: 11px; font-weight: 700; color: #fff; }

.lk-morepanel, .lk-savepanel { position: absolute; z-index: 30; top: calc(100% - 6px); right: 14px; width: min(560px, calc(100% - 28px)); padding: 14px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface); box-shadow: 0 12px 32px var(--ink-10, rgba(15,23,42,.12)); }
.lk-savepanel { width: min(320px, calc(100% - 28px)); }
.lk-morefields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lk-morefields .lk-fsel, .lk-morefields .lk-fsel select { width: 100%; }
.lk-num { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lk-num input { height: 38px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 13.5px; color: var(--text); }
.lk-moreact { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.lk-savetitle { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.lk-saveline { display: flex; gap: 8px; }
.lk-saveline input { flex: 1 1 auto; height: 38px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 13.5px; color: var(--text); }
.lk-savedlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-savedlist li { display: flex; align-items: center; gap: 6px; }
.lk-savedlist a { display: inline-flex; align-items: center; gap: 7px; flex: 1 1 auto; padding: 6px 8px; border-radius: 7px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.lk-savedlist a:hover { background: var(--bg-subtle-3); color: var(--text-link); }
.lk-saved-ico { width: 14px; height: 14px; }
.lk-saved-del { display: inline-flex; padding: 5px; border: 0; border-radius: 6px; background: none; color: var(--text-tertiary); cursor: pointer; }
.lk-saved-del svg { width: 13px; height: 13px; }
.lk-saved-del:hover { background: var(--tint-danger); color: var(--text-danger); }

/* ----------------------------------------------------------------- table */
.lk-tablewrap { overflow-x: auto; }
.lk-table { width: 100%; border-collapse: collapse; }
.lk-table th { padding: 9px 6px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-surface); font-size: 11.5px; font-weight: 600; color: var(--text-2); text-align: left; white-space: nowrap; }
.lk-table td { padding: 10px 6px; border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-2); vertical-align: middle; }
.lk-table tbody tr:last-child td { border-bottom: 0; }
.lk-table th:first-child, .lk-table td:first-child { padding-left: 12px; }
.lk-table th:last-child, .lk-table td:last-child { padding-right: 8px; }
.lk-tr { cursor: pointer; transition: background-color .1s ease; }
.lk-tr:hover { background: var(--bg-subtle-3); }
.lk-tr.is-open { background: var(--tint-info); }
.lk-tr.is-picked { background: var(--bg-subtle-7, var(--tint-info)); }

.lk-sortable a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.lk-sortable a:hover { color: var(--text-link); }
.lk-sortable.is-on a { color: var(--text-link); }
.lk-sort-ico { width: 13px; height: 13px; color: var(--text-tertiary); }
.lk-sortable.is-on .lk-sort-ico { color: var(--primary); }

.lk-table { table-layout: fixed; }
.lk-c-check   { width: 32px; }
.lk-c-domain  { width: 148px; }
.lk-c-source  { width: 138px; }
.lk-c-dr      { width: 46px; }
.lk-c-traffic { width: 49px; }
.lk-c-geo     { width: 44px; }
.lk-c-niche   { width: 84px; }
.lk-c-contact { width: 76px; }
.lk-c-status  { width: 126px; }
.lk-c-price   { width: 48px; }
.lk-c-assign  { width: 80px; }
.lk-c-updated { width: 78px; }
.lk-c-actions { width: 56px; }
.lk-table td.lk-c-niche, .lk-table td.lk-c-updated { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lk-check { display: inline-flex; align-items: center; cursor: pointer; }
.lk-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.lk-check span { display: inline-block; width: 17px; height: 17px; border: 1.5px solid var(--border-default); border-radius: 5px; background: var(--bg-surface); transition: background-color .1s ease, border-color .1s ease; }
.lk-check input:checked + span { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.lk-check input:indeterminate + span { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center/12px no-repeat; }
.lk-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--tint-info); }

.lk-domain { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.lk-fav { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; flex: none; overflow: hidden; }
.lk-fav img { width: 100%; height: 100%; object-fit: cover; }
.lk-fav-t0 { background: #1F2937; } .lk-fav-t1 { background: #DC2626; } .lk-fav-t2 { background: #EA580C; }
.lk-fav-t3 { background: #059669; } .lk-fav-t4 { background: #0891B2; } .lk-fav-t5 { background: #2563EB; }
.lk-fav-t6 { background: #7C3AED; } .lk-fav-t7 { background: #DB2777; } .lk-fav-t8 { background: #CA8A04; }
.lk-fav-t9 { background: #0F766E; }
.lk-domain-name { padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; white-space: nowrap; }
.lk-domain-name:hover { color: var(--text-link); text-decoration: underline; }

.lk-c-source { max-width: 210px; }
.lk-source { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 11px; letter-spacing: -.1px; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-source:hover { color: var(--text-link); text-decoration: underline; }
.lk-source-ico { width: 13px; height: 13px; flex: none; color: var(--text-tertiary); }
.lk-copy { display: inline-flex; padding: 4px; margin-left: 2px; border: 0; border-radius: 6px; background: none; color: var(--text-tertiary); cursor: pointer; vertical-align: middle; opacity: 0; transition: opacity .1s ease, color .1s ease; }
.lk-copy-ico { width: 13px; height: 13px; }
.lk-tr:hover .lk-copy, .lk-copy:focus-visible, .lk-p-url-field .lk-copy { opacity: 1; }
.lk-copy:hover { background: var(--bg-subtle-3); color: var(--text-link); }
.lk-copy.is-done { opacity: 1; color: var(--success); }

.lk-dr { display: inline-flex; align-items: center; justify-content: center; min-width: 31px; height: 23px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.lk-dr.is-green { background: var(--tint-success); color: var(--text-success); }
.lk-dr.is-amber { background: var(--tint-warning); color: var(--text-warning); }
.lk-dr.is-red   { background: var(--tint-danger);  color: var(--text-danger); }

.lk-geo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.lk-geo svg, .lk-geo img { width: 17px; height: 12px; border-radius: 2px; flex: none; }

.lk-contact { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.lk-contact i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.lk-contact.is-found { color: var(--text-success); } .lk-contact.is-found i { background: var(--success); }
.lk-contact.is-missing { color: var(--text-danger); } .lk-contact.is-missing i { background: var(--danger); }

.lk-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lk-pill i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.lk-pill.is-blue   { background: var(--tint-info);    color: var(--text-link); }    .lk-pill.is-blue i   { background: var(--primary); }
.lk-pill.is-amber  { background: var(--tint-warning); color: var(--text-warning); } .lk-pill.is-amber i  { background: var(--warning); }
.lk-pill.is-green  { background: var(--tint-success); color: var(--text-success); } .lk-pill.is-green i  { background: var(--success); }
.lk-pill.is-red    { background: var(--tint-danger);  color: var(--text-danger); }  .lk-pill.is-red i    { background: var(--danger); }
.lk-pill.is-purple { background: var(--tint-purple);  color: var(--fg-purple); }       .lk-pill.is-purple i { background: var(--purple); }
.lk-pill.is-slate  { background: var(--bg-subtle-3);  color: var(--text-2); }       .lk-pill.is-slate i  { background: var(--text-tertiary); }

.lk-prio { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.lk-prio.is-low    { background: var(--bg-subtle-3);  color: var(--text-2); }
.lk-prio.is-medium { background: var(--tint-warning); color: var(--text-warning); }
.lk-prio.is-high   { background: var(--tint-danger);  color: var(--text-danger); }

.lk-av { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; font-size: 11.5px; font-weight: 700; color: #fff; flex: none; }
.lk-av-sm { width: 22px; height: 22px; font-size: 10px; }
.lk-av-none { background: none; color: var(--text-tertiary); font-weight: 400; }
.lk-av-t0 { background: var(--av-t0); } .lk-av-t1 { background: var(--av-t1); } .lk-av-t2 { background: var(--av-t2); }
.lk-av-t3 { background: var(--av-t3); } .lk-av-t4 { background: var(--av-t4); } .lk-av-t5 { background: var(--av-t5); }
.lk-av-t6 { background: #7C3AED; } .lk-av-t7 { background: #DB2777; } .lk-av-t8 { background: #CA8A04; }
.lk-av-t9 { background: #0F766E; }
.lk-dash { color: var(--text-tertiary); }

.lk-rowbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text-tertiary); cursor: pointer; }
.lk-rowbtn svg { width: 16px; height: 16px; }
.lk-rowbtn:hover { background: var(--bg-subtle-3); color: var(--text); }

/* ------------------------------------------------------------- bulk + foot */
.lk-bulk { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border-soft); background: var(--bg-subtle-3); flex-wrap: wrap; }
.lk-bulk-n { font-size: 13.5px; font-weight: 600; color: var(--text); margin-right: 6px; }
.lk-bulk-menu .dropdown-menu { min-width: 200px; }
.lk-bulk-menu .dropdown-menu button { display: flex; align-items: center; gap: 8px; }

.lk-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.lk-showing { margin: 0; font-size: 13.5px; color: var(--muted); }
.lk-foot-end { display: flex; align-items: center; gap: 14px; }
.lk-pages { display: inline-flex; align-items: center; gap: 4px; }
.lk-page, .lk-page-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.lk-page:hover, .lk-page-arrow:hover { background: var(--bg-subtle-3); color: var(--text-link); }
.lk-page.is-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.lk-page-arrow { border-color: var(--border-default); }
.lk-page-arrow.is-off { color: var(--text-tertiary); opacity: .5; }
.lk-page-ico { width: 15px; height: 15px; }
.lk-page-gap { padding: 0 2px; color: var(--text-tertiary); font-size: 13px; }
.lk-per { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.lk-per select { appearance: none; height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.lk-per-ico { position: absolute; right: 9px; width: 14px; height: 14px; color: var(--text-tertiary); pointer-events: none; }

/* ----------------------------------------------------------- empty states */
.lk-empty, .lk-p-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 56px 24px; text-align: center; }
.lk-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 15px; background: var(--bg-subtle-3); color: var(--text-tertiary); }
.lk-empty-ico svg { width: 24px; height: 24px; }
.lk-empty-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.lk-empty-body { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); max-width: 40ch; }
.lk-empty-actions { display: flex; gap: 10px; }

/* ----------------------------------------------------------------- panel */
.lk-panel { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow-card); }
.lk-panel.is-loading { opacity: .55; }
.lk-scrim { display: none; }

.lk-p-head { display: flex; align-items: flex-start; gap: 11px; padding: 15px 16px 12px; }
.lk-p-fav { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.lk-p-id { min-width: 0; flex: 1 1 auto; }
.lk-p-domain { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.lk-p-domain a { display: inline-flex; color: var(--text-link); }
.lk-p-ext { width: 15px; height: 15px; }
.lk-p-url { display: inline-block; margin-top: 2px; font-size: 12.5px; color: var(--text-link); text-decoration: none; word-break: break-all; }
.lk-p-url:hover { text-decoration: underline; }
.lk-p-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--text-tertiary); cursor: pointer; flex: none; }
.lk-p-close svg { width: 18px; height: 18px; }
.lk-p-close:hover { background: var(--bg-subtle-3); color: var(--text); }

.lk-p-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); }
.lk-p-tab { padding: 0 10px 10px; border: 0; border-bottom: 2px solid transparent; background: none; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.lk-p-tab:hover { color: var(--text-2); }
.lk-p-tab.is-on { color: var(--text-link); font-weight: 600; border-bottom-color: var(--primary); }

.lk-p-body { padding: 13px 15px 18px; }
.lk-p-intro { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.lk-shot { display: block; width: 96px; height: 64px; border: 1px solid var(--border-soft); border-radius: 8px; overflow: hidden; background: var(--bg-subtle-3); }
.lk-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lk-shot.is-placeholder svg { width: 100%; height: 100%; display: block; opacity: .28; }
.lk-shot.is-placeholder svg rect { fill: currentColor; }
.lk-p-introtext { display: flex; flex-direction: column; min-width: 0; }
.lk-p-desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.lk-p-introfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 7px; }
.lk-p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-p-tags-sm { gap: 5px; }
.lk-tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--bg-subtle-3); font-size: 12px; white-space: nowrap; }
.lk-tag-xs { height: 20px; padding: 0 6px; font-size: 9.5px; }
.lk-p-tags-sm { flex-wrap: nowrap; overflow: hidden; font-weight: 500; color: var(--text-2); }
.lk-tag-x { display: none; padding: 0; border: 0; background: none; color: var(--text-tertiary); cursor: pointer; }
.lk-tag:hover .lk-tag-x, .lk-tag-x:focus-visible { display: inline-flex; }
.lk-tag-x svg { width: 11px; height: 11px; }
.lk-tag-x:hover { color: var(--text-danger); }
.lk-tag-add { border: 1px dashed var(--border-default); background: none; color: var(--text-link); cursor: pointer; font-family: inherit; }
.lk-tag-add:hover { border-color: var(--primary); background: var(--tint-info); }
.lk-tag-ico { width: 11px; height: 11px; }

.lk-p-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 13px 0 0; }
.lk-p-nums > div { padding: 9px 10px 10px; border: 1px solid var(--border-soft); border-left-width: 0; background: var(--bg-subtle-3); }
.lk-p-nums > div:first-child { border-left-width: 1px; border-radius: 9px 0 0 9px; }
.lk-p-nums > div:last-child { border-radius: 0 9px 9px 0; }
.lk-p-nums dt { font-size: 11px; color: var(--muted); }
.lk-p-nums dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.lk-p-nums dd.is-green { color: var(--text-success); }
.lk-p-nums dd.is-amber { color: var(--text-warning); }
.lk-p-nums dd.is-red   { color: var(--text-danger); }

.lk-p-sect { margin-top: 14px; }
.lk-p-h3 { margin: 0 0 9px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.lk-p-h3-gap { margin-top: 14px; }
.lk-p-h3bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.lk-p-h3bar .lk-p-h3 { margin: 0; }
.lk-p-addnote { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-link); cursor: pointer; }
.lk-p-addnote:hover { border-color: var(--border-primary-2); background: var(--tint-info); }
.lk-p-addnote-ico { width: 13px; height: 13px; }
.lk-p-hint { margin: -4px 0 9px; font-size: 12px; color: var(--muted); }
.lk-p-none { margin: 0; padding: 10px 0; font-size: 12.5px; color: var(--muted); }
.lk-p-plain { font-size: 13px; color: var(--text-2); }

.lk-p-kv { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 8px; padding: 3px 0; }
.lk-p-kv.is-tight { grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 3px 0; }
.lk-p-k { font-size: 12px; color: var(--muted); }
.lk-p-v { min-width: 0; font-size: 13px; color: var(--text-2); }
.lk-p-url-field { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lk-p-url-field a, .lk-p-url-field .lk-p-plain { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-p-url-field > a { color: var(--text-link); text-decoration: none; }
.lk-p-url-field > a:hover { text-decoration: underline; }
.lk-p-field { display: flex; align-items: center; gap: 4px; width: 100%; height: 31px; padding: 0 8px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); }
.lk-p-field > a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-link); text-decoration: none; }
.lk-p-field > a:hover { text-decoration: underline; }
.lk-datepick { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.lk-datepick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lk-datepick-face { font-size: 13px; font-weight: 600; color: var(--text); }
.lk-p-open { display: inline-flex; align-items: center; width: 17px; padding: 0 0 0 4px; border-radius: 6px; color: var(--text-tertiary); flex: none; }
.lk-p-open svg { width: 13px; height: 13px; }
.lk-p-open:hover { background: var(--bg-subtle-3); color: var(--text-link); }

.lk-inp { width: 100%; height: 31px; padding: 0 9px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: inherit; font-size: 13px; color: var(--text); }
.lk-inp::placeholder { color: var(--text-tertiary); }
.lk-inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.lk-inp.is-saved { border-color: var(--success); }
.lk-inp-bare { height: 28px; padding: 0 6px; border-color: transparent; background: none; font-weight: 600; color: var(--text); }
.lk-inp-bare:hover { border-color: var(--border-soft); }

.lk-sel { position: relative; display: flex; align-items: center; width: 100%; }
.lk-sel select { appearance: none; width: 100%; height: 31px; padding: 0 26px 0 9px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.lk-sel select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.lk-sel-ico { position: absolute; right: 9px; width: 14px; height: 14px; color: var(--text-tertiary); pointer-events: none; }
.lk-sel-bare select { height: 28px; padding-left: 6px; border-color: transparent; background: none; font-weight: 600; }
.lk-sel-bare select:hover { border-color: var(--border-soft); }

.lk-p-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 176px); gap: 13px; margin-top: 15px; }
.lk-p-duo > .lk-p-sect { margin-top: 0; }
.lk-p-assign { padding-left: 15px; border-left: 1px solid var(--border-soft); }

.lk-statuspick, .lk-priopick, .lk-assignpick { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.lk-statuspick select, .lk-priopick select, .lk-assignpick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lk-statuspick-face { display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 7px 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; }
.lk-statuspick-face i { width: 7px; height: 7px; border-radius: 50%; }
.lk-statuspick.is-blue .lk-statuspick-face   { background: var(--tint-info);    color: var(--text-link); }    .lk-statuspick.is-blue i   { background: var(--primary); }
.lk-statuspick.is-amber .lk-statuspick-face  { background: var(--tint-warning); color: var(--text-warning); } .lk-statuspick.is-amber i  { background: var(--warning); }
.lk-statuspick.is-green .lk-statuspick-face  { background: var(--tint-success); color: var(--text-success); } .lk-statuspick.is-green i  { background: var(--success); }
.lk-statuspick.is-red .lk-statuspick-face    { background: var(--tint-danger);  color: var(--text-danger); }  .lk-statuspick.is-red i    { background: var(--danger); }
.lk-statuspick.is-purple .lk-statuspick-face { background: var(--tint-purple);  color: var(--purple); }       .lk-statuspick.is-purple i { background: var(--purple); }
.lk-statuspick.is-slate .lk-statuspick-face  { background: var(--bg-subtle-3);  color: var(--text-2); }       .lk-statuspick.is-slate i  { background: var(--text-tertiary); }
.lk-statuspick-ico, .lk-priopick-ico, .lk-assignpick-ico { width: 13px; height: 13px; opacity: .7; }
.lk-priopick-face { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.lk-priopick.is-low .lk-priopick-face    { background: var(--bg-subtle-3);  color: var(--text-2); }
.lk-priopick.is-medium .lk-priopick-face { background: var(--tint-warning); color: var(--text-warning); }
.lk-priopick.is-high .lk-priopick-face   { background: var(--tint-danger);  color: var(--text-danger); }
.lk-assignpick { width: 100%; }
.lk-assignpick-face { display: flex; align-items: center; gap: 7px; width: 100%; height: 34px; padding: 0 7px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--text); }
.lk-assignpick-face span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-mention { position: relative; display: flex; align-items: center; }
.lk-mention-ico { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--text-tertiary); pointer-events: none; }
.lk-mention input { width: 100%; height: 34px; padding: 0 10px 0 30px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 13px; color: var(--text); }
.lk-mention input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }

.lk-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lk-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--bg-subtle-3); }
.lk-note-av { margin-top: 1px; }
.lk-note-main { min-width: 0; }
.lk-note-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0 0 3px; }
.lk-note-who { font-size: 11.5px; font-weight: 700; color: var(--text); }
.lk-note-dot { color: var(--text-tertiary); }
.lk-note-when { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text-link); white-space: nowrap; }
.lk-note-ico { width: 12px; height: 12px; }
.lk-note-body { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.lk-note-more { margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-link); cursor: pointer; }
.lk-note-more:hover { text-decoration: underline; }

/* the inline composer that replaced the browser prompt */
.lk-notebox { margin-bottom: 9px; padding: 10px; border: 1px solid var(--border-primary-2); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 1px 3px var(--ink-06, rgba(15, 23, 42, .06)); }
.lk-notebox[hidden] { display: none; }
.lk-notebox-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lk-notebox-who { font-size: 12px; font-weight: 700; color: var(--text); }
.lk-notebox-now { margin-left: auto; font-size: 11px; color: var(--muted); }
.lk-notebox-input { width: 100%; min-height: 62px; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-family: inherit; font-size: 12px; line-height: 1.45; color: var(--text); resize: vertical; }
.lk-notebox-input::placeholder { color: var(--text-tertiary); }
.lk-notebox-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.lk-notebox-input.is-empty { border-color: var(--danger); }
.lk-notebox-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.lk-notebox-hint { margin-right: auto; font-size: 11px; color: var(--muted); }
.lk-note-btn { display: inline-flex; padding: 2px; border: 0; border-radius: 5px; background: none; color: var(--text-tertiary); cursor: pointer; }
.lk-note-btn svg { width: 14px; height: 14px; }
.lk-note-btn:hover { background: var(--bg-surface); color: var(--text); }

.lk-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
.lk-tl { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding: 0 0 14px; }
.lk-tl::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 1px; background: var(--border-soft); }
.lk-tl:last-child { padding-bottom: 0; }
.lk-tl:last-child::before { display: none; }
.lk-tl-dot { width: 9px; height: 9px; margin-top: 4px; margin-left: 3px; border-radius: 50%; background: var(--text-tertiary); }
.lk-tl.is-status .lk-tl-dot { background: var(--primary); }
.lk-tl.is-price .lk-tl-dot  { background: var(--success); }
.lk-tl.is-note .lk-tl-dot   { background: var(--warning); }
.lk-tl.is-assign .lk-tl-dot { background: var(--purple); }
.lk-tl-text { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.lk-tl-meta { margin: 2px 0 0; font-size: 11px; color: var(--muted); }

.lk-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lk-hist-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 9px; }
.lk-hist-item.is-on { border-color: var(--primary); background: var(--tint-info); }
.lk-hist-link { padding: 0; border: 0; background: none; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-link); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-hist-link:hover { text-decoration: underline; }
.lk-hist-price { font-size: 12.5px; font-weight: 600; color: var(--text); }
.lk-hist-when { grid-column: 2; font-size: 11px; color: var(--muted); }

/* ----------------------------------------------------------- responsive */
/* --------------------------------------------- Add / Edit Backlink form --- */
.page-backlink-form { --content-pad-x: 20px; }
.page-backlink-form .lk-crumb { margin-top: 26px; }
.lkf-head { align-items: center; padding-left: 0; margin-bottom: 17px; }
.lkf-back { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border-default); border-radius: 11px; background: var(--bg-surface); color: var(--text-2); flex: none; }
.lkf-back:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.lkf-back svg { width: 18px; height: 18px; }
.lkf-head-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--primary); flex: none; }
.lkf-head-ico svg { width: 27px; height: 27px; }
.page-backlink-form .lk-title { font-size: 25px; }
.page-backlink-form .lk-sub { font-size: 13.5px; margin-top: 3px; }

.lkf-notice { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; background: var(--tint-success); font-size: 13px; color: var(--text-success); }
.lkf-notice.is-bad { background: var(--tint-danger); color: var(--text-danger); }
.lkf-notice-ico { width: 16px; height: 16px; flex: none; }

.lkf-frame { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; }
.lkf-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lkf-sect { padding: 14px 16px 16px; }

.lkf-shead { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; }
.lkf-sico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tint-info); color: var(--primary); flex: none; }
.lkf-sico-svg { width: 18px; height: 18px; }
.lkf-stitle { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.lkf-ssub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.lkf-grid { display: grid; gap: 12px 15px; }
.lkf-grid + .lkf-grid { margin-top: 10px; }
.lkf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lkf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lkf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lkf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lkf-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.lkf-label b { color: var(--danger); font-weight: 600; }
.lkf-field input[type="text"], .lkf-field input[type="url"], .lkf-field input[type="email"],
.lkf-field input[type="date"], .lkf-field textarea {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--border-default);
  border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 13px; color: var(--text);
}
.lkf-field textarea { height: 38px; min-height: 38px; padding: 9px 11px; line-height: 1.4; resize: vertical; }
.lkf-field textarea[rows="3"] { height: 88px; }
.lkf-field input::placeholder, .lkf-field textarea::placeholder { color: var(--text-tertiary); }
.lkf-field input:focus, .lkf-field textarea:focus, .lkf-select select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.lkf-field.has-error input, .lkf-field.has-error textarea, .lkf-field.has-error select { border-color: var(--danger); }
.lkf-err { font-size: 11.5px; color: var(--text-danger); }
.lkf-hint { font-size: 11.5px; color: var(--muted); }
.lkf-dupe { color: var(--text-warning); }

.lkf-input-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.lkf-inico { position: absolute; right: 9px; display: inline-flex; color: var(--text-tertiary); }
.lkf-inico svg { width: 15px; height: 15px; }
.lkf-inico.is-live { color: var(--text-link); }
.lkf-input-wrap input { padding-right: 34px; }
.lkf-money .lkf-prefix { position: absolute; left: 11px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.lkf-money input { padding-left: 26px; padding-right: 11px; }
.lkf-date .lkf-prefixico { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--text-tertiary); pointer-events: none; }
.lkf-date input { width: 100%; min-width: 0; padding-left: 31px; padding-right: 11px; }
.lkf-date input::-webkit-calendar-picker-indicator { opacity: 0; width: 100%; position: absolute; left: 0; cursor: pointer; }
.lkf-date input::-webkit-datetime-edit { color: var(--text); }
.lkf-date input:not(.is-set)::-webkit-datetime-edit { color: transparent; }
.lkf-date .lkf-dateface { position: absolute; left: 31px; font-size: 13px; color: var(--text-tertiary); pointer-events: none; }
.lkf-date input.is-set ~ .lkf-dateface { display: none; }

.lkf-select { position: relative; display: flex; align-items: center; }
.lkf-select select { appearance: none; width: 100%; height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.lkf-chev { position: absolute; right: 10px; width: 15px; height: 15px; color: var(--text-tertiary); pointer-events: none; }
.lkf-select-flag select { padding-left: 38px; }
.lkf-flag { position: absolute; left: 11px; display: inline-flex; pointer-events: none; }
.lkf-flag svg, .lkf-flag img { width: 19px; height: 14px; border-radius: 2px; }
.lkf-select-av select { padding-left: 36px; }
.lkf-av { position: absolute; left: 8px; display: inline-flex; pointer-events: none; }
.lkf-addlink { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.lkf-addlink:hover { text-decoration: underline; }
.lkf-addlink-ico { width: 13px; height: 13px; }
.lkf-counter { align-self: flex-end; font-size: 11.5px; color: var(--text-tertiary); }

.lkf-foot { display: flex; align-items: center; gap: 14px; padding: 13px 17px; border: 1px solid var(--card-border); border-radius: 14px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
.lkf-again { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.lkf-again input { position: absolute; opacity: 0; width: 0; height: 0; }
.lkf-again span { display: inline-block; width: 17px; height: 17px; border: 1.5px solid var(--border-default); border-radius: 5px; background: var(--bg-surface); }
.lkf-again input:checked + span { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.lkf-save { margin-left: auto; }
.lkf-save[disabled] { opacity: .55; cursor: not-allowed; }

.lkf-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 16px; }
.lkf-railcard { padding: 13px 14px 15px; }
.lkf-railhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lkf-railico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; flex: none; }
.lkf-railico svg { width: 16px; height: 16px; }
.lkf-railico.is-amber { background: var(--tint-warning); color: var(--warning); }
.lkf-railico.is-blue  { background: var(--tint-info);    color: var(--primary); }
.lkf-railtitle { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.lkf-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lkf-tips li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.3; color: var(--text-2); }
.lkf-tick { width: 16px; height: 16px; flex: none; color: var(--success); margin-top: 0; }
.lkf-guide { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lkf-guide li { display: grid; grid-template-columns: 10px 76px minmax(0, 1fr); align-items: center; gap: 9px; font-size: 12px; }
.lkf-gdot { width: 9px; height: 9px; border-radius: 50%; }
.lkf-gdot.is-blue { background: var(--primary); } .lkf-gdot.is-amber { background: var(--warning); }
.lkf-gdot.is-green { background: var(--success); } .lkf-gdot.is-red { background: var(--danger); }
.lkf-gdot.is-purple { background: var(--purple); } .lkf-gdot.is-slate { background: #1E293B; }
.lkf-gname { font-weight: 600; color: var(--text); }
.lkf-ghint { color: var(--muted); }
.lkf-help { margin: 0 0 13px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.lkf-doc { width: 100%; justify-content: center; height: 40px; font-size: 13px; color: var(--text-link); }

@media (max-width: 1240px) {
  .lkf-frame { grid-template-columns: minmax(0, 1fr); }
  .lkf-rail { position: static; }
}
@media (max-width: 1024px) { .lkf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .lkf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  {
  .lkf-grid-2, .lkf-grid-3, .lkf-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .lkf-foot { flex-wrap: wrap; }
  .lkf-save { margin-left: 0; width: 100%; }
}

/* ----------------------------------------------- Ahrefs CSV importer --- */
.lki-steps { list-style: none; display: flex; gap: 10px; margin: 0 0 15px; padding: 0; }
.lki-step { display: flex; align-items: center; gap: 10px; flex: 1 1 0; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--bg-surface); }
.lki-step.is-on { border-color: var(--primary); background: var(--tint-info); }
.lki-step.is-done { border-color: var(--border-success-2, var(--border-soft)); }
.lki-step-n { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--bg-subtle-3); font-size: 12.5px; font-weight: 700; color: var(--muted); flex: none; }
.lki-step-n svg { width: 14px; height: 14px; }
.lki-step.is-on .lki-step-n { background: var(--primary); color: #fff; }
.lki-step.is-done .lki-step-n { background: var(--success); color: #fff; }
.lki-step-label { font-size: 13px; font-weight: 600; color: var(--text); }

.lki-drop { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 34px 18px 28px; border: 1.5px dashed var(--border-primary-2); border-radius: 12px; background: var(--tint-info); text-align: center; cursor: pointer; }
.lki-drop:hover, .lki-drop.is-over { border-color: var(--primary); background: var(--bg-subtle-7, var(--tint-info)); }
.lki-drop.has-file { border-style: solid; }
.lki-drop-ico { display: inline-flex; color: var(--primary); margin-bottom: 8px; }
.lki-drop-ico svg { width: 30px; height: 30px; }
.lki-drop-title { font-size: 14px; font-weight: 700; color: var(--text); }
.lki-drop-sub { font-size: 13.5px; font-weight: 600; color: var(--text); }
.lki-drop-link { color: var(--text-link); }
.lki-drop-note { margin-top: 10px; font-size: 12px; color: var(--muted); max-width: 52ch; }
.lki-drop-name { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-link); }
.lki-go { width: 100%; justify-content: center; margin-top: 14px; }
.lki-foot { margin-top: 15px; box-shadow: none; border-color: var(--border-soft); }
.lki-foot .lkf-save { margin-left: auto; }

.lki-ptable { table-layout: auto; }
.lki-ptable th, .lki-ptable td { font-size: 12px; }
.lki-trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lki-why { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

.lki-progress { margin-top: 6px; }
.lki-bar { height: 8px; border-radius: 999px; background: var(--bg-subtle-3); overflow: hidden; }
.lki-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .2s ease; }
.lki-progress-text { margin: 9px 0 0; font-size: 12.5px; color: var(--text-2); }
.lki-nums { margin-top: 14px; }
.lki-nums dd { font-size: 20px; }
.page-backlinks-import .lkf-field select[multiple] { height: auto; padding: 6px 8px; }
.page-backlinks-import .lkf-field select[multiple] + .lkf-chev { display: none; }

@media (max-width: 900px) { .lki-steps { flex-wrap: wrap; } .lki-step { flex: 1 1 46%; } }
@media (max-width: 560px) { .lki-step { flex: 1 1 100%; } }

@media (max-width: 1400px) {
  .lk-frame.is-open { grid-template-columns: minmax(0, 1fr); }
  .lk-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: 420px; max-width: 92vw; max-height: none; border-radius: 0; border-right: 0; box-shadow: -18px 0 44px var(--ink-16, rgba(15,23,42,.18)); }
  .lk-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, .32); }
  .lk-scrim[hidden] { display: none; }
}
@media (max-width: 1200px) {
  .lk-morefields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .lk-head { flex-wrap: wrap; }
  .lk-head-actions { width: 100%; margin-top: 0; }
  .lk-morefields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-morepanel, .lk-savepanel { left: 14px; right: 14px; width: auto; }
}
@media (max-width: 768px) {
  .lk-title { font-size: 24px; }
  .lk-panel { width: 100%; max-width: 100%; }
  .lk-p-duo { grid-template-columns: minmax(0, 1fr); }
  .lk-p-assign { padding-left: 0; border-left: 0; border-top: 1px solid var(--border-soft); padding-top: 12px; }
  .lk-foot { flex-direction: column; align-items: stretch; }
  .lk-foot-end { justify-content: space-between; }
}
@media (max-width: 560px) {
  .lk-head-actions { flex-wrap: wrap; }
  .lk-head-actions .lk-btn { flex: 1 1 auto; }
  .lk-morefields { grid-template-columns: minmax(0, 1fr); }
  .lk-p-intro { grid-template-columns: minmax(0, 1fr); }
  .lk-shot { width: 100%; }
}


/* ==========================================================================
   TYPED DELETE CONFIRMATION — prefix .dgd-.
   Replaces the browser confirm() box for destructive actions; the Delete
   button stays locked until the word DELETE has been typed.
   ========================================================================== */

.dgd-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(28, 34, 45, .55); backdrop-filter: blur(6px); }
.dgd-scrim[hidden] { display: none; }
body.dgd-open { overflow: hidden; }

/* Centred card: icon, question, instruction, typed confirmation, two buttons. */
.dgd {
  position: fixed; z-index: 901; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(100vw - 40px); max-width: 430px;
  padding: 34px 32px 28px; border-radius: 18px; background: var(--bg-surface);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .30); text-align: center;
  animation: dgdIn 140ms ease-out;
}
@keyframes dgdIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dgd[hidden] { display: none; }

.dgd-x { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--text-tertiary); cursor: pointer; }
.dgd-x svg { width: 20px; height: 20px; stroke-width: 2.2; }
.dgd-x:hover { background: var(--bg-subtle-3); color: var(--text); }

.dgd-ico { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  margin: 0 auto 22px; border-radius: 50%; background: var(--tint-danger); color: var(--danger); }
.dgd-ico svg { width: 38px; height: 38px; stroke-width: 1.9; }

.dgd-title { margin: 0 0 12px; font-size: 25px; line-height: 32px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.dgd-lead { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-2); }
.dgd-lead b { font-weight: 700; color: var(--danger); }

.dgd-body { margin: 14px 0 0; padding: 10px 13px; border-radius: 10px; background: var(--bg-subtle-3);
  font-size: 13px; line-height: 1.5; color: var(--text-2); }
.dgd-body[hidden], .dgd-body:empty { display: none; }

.dgd-field { margin-top: 22px; }
.dgd-input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border-danger, #F3B7BD);
  border-radius: 11px; background: var(--tint-danger); font-family: inherit; font-size: 15px;
  font-weight: 600; letter-spacing: .5px; color: var(--text); text-align: left;
}
.dgd-input::placeholder { font-weight: 400; letter-spacing: 0; color: var(--text-tertiary); }
.dgd-input:focus { outline: none; border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 59, 74, .14); }
.dgd.is-ready .dgd-input, .dgd.is-ready .dgd-input:focus { border-color: var(--success); background: var(--tint-success); box-shadow: 0 0 0 3px var(--tint-success); }
.dgd-hint { margin: 9px 0 0; font-size: 11.5px; color: var(--muted); visibility: hidden; }
.dgd.is-typing .dgd-hint { visibility: visible; }
.dgd.is-ready .dgd-hint { color: var(--text-success); }

.dgd-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.dgd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 11px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 130ms, border-color 130ms, opacity 130ms; }
.dgd-btn-ico { width: 16px; height: 16px; }
.dgd-btn-ghost { border-color: var(--border-default); background: var(--bg-subtle); color: var(--text); }
.dgd-btn-ghost:hover { background: var(--bg-muted); }
@media (max-width: 480px) { .dgd { padding: 28px 20px 22px; } .dgd-foot { grid-template-columns: 1fr; } }

.dgd-btn-ghost:hover { border-color: var(--border-primary-2); color: var(--text-link); }
.dgd-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.dgd-btn-danger:hover:not([disabled]) { background: var(--text-danger); border-color: var(--text-danger); }
.dgd-btn-danger[disabled] { background: var(--danger); border-color: var(--danger); color: #fff; opacity: .5; cursor: not-allowed; }

@media (max-width: 520px) {
  .dgd { padding: 16px; }
  .dgd-foot { flex-direction: column-reverse; }
  .dgd-btn { width: 100%; }
}

/* Usage & Cost: the line that appears when some domains carry no price yet. */
.rg-usage-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 12px; border-radius: 9px; background: var(--tint-info); font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.rg-usage-note-ico { width: 15px; height: 15px; flex: none; color: var(--primary); }
.rg-usage-note a { color: var(--text-link); font-weight: 600; }

/* ---- All Domains: assign-to-website picker ---------------------------- */
.sx-pick-scrim { position: fixed; inset: 0; z-index: 880; background: rgba(15, 23, 42, .42); }
.sx-pick-scrim[hidden] { display: none; }
body.sx-pick-open { overflow: hidden; }
.sx-pick { position: fixed; z-index: 881; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; width: min(460px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 64px));
  border: 1px solid var(--card-border); border-radius: 16px; background: var(--bg-surface); box-shadow: 0 24px 64px rgba(15, 23, 42, .26); }
.sx-pick[hidden] { display: none; }
.sx-pick-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; }
.sx-pick-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--tint-info); color: var(--primary); flex: none; }
.sx-pick-ico svg { width: 20px; height: 20px; }
.sx-pick-headtext { min-width: 0; flex: 1 1 auto; }
.sx-pick-title { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--text); }
.sx-pick-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sx-pick-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--text-tertiary); cursor: pointer; flex: none; }
.sx-pick-x svg { width: 17px; height: 17px; }
.sx-pick-x:hover { background: var(--bg-subtle-3); color: var(--text); }
.sx-pick-search { position: relative; display: flex; align-items: center; margin: 0 18px 10px; }
.sx-pick-searchico { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--text-tertiary); pointer-events: none; }
.sx-pick-search input { width: 100%; height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); font-family: inherit; font-size: 13.5px; color: var(--text); }
.sx-pick-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.sx-pick-list { list-style: none; margin: 0; padding: 0 10px; overflow-y: auto; flex: 1 1 auto; }
.sx-pick-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.sx-pick-item:hover { background: var(--bg-subtle-3); }
.sx-pick-item.is-on { background: var(--tint-info); }
.sx-pick-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-pick-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sx-pick-check { width: 16px; height: 16px; color: var(--primary); opacity: 0; flex: none; }
.sx-pick-item.is-on .sx-pick-check { opacity: 1; }
.sx-pick-none { margin: 0; padding: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.sx-pick-none[hidden] { display: none; }
.sx-pick-foot { display: flex; gap: 9px; padding: 12px 18px 16px; border-top: 1px solid var(--border-soft); }
.sx-pick-foot .sx-btn { flex: 1 1 0; justify-content: center; }

/* ==========================================================================
   COUNTRY PICKER — sh_country_select(): live flag chip + native select.
   ========================================================================== */
.sh-cselect { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.sh-cselect-flag { position: absolute; left: 11px; display: inline-flex; align-items: center; pointer-events: none; z-index: 1; }
.sh-cselect-flag .flag { width: 19px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 .5px var(--ink-12); }
.sh-cselect-input { appearance: none; width: 100%; padding-left: 38px !important; padding-right: 30px !important; cursor: pointer; }
.sh-cselect-chev { position: absolute; right: 10px; width: 15px; height: 15px; color: var(--text-tertiary); pointer-events: none; }
.sh-cselect select:focus { outline: none; }
.flag-global { background: var(--bg-subtle-3); }

/* ==========================================================================
   SIDEBAR POLISH — depth, a lit active pill, accent bars and group guides.
   Token-driven, so light and dark both get it. Structure is untouched; this
   layer only restyles what was already there.
   ========================================================================== */

.sidebar {
  background: linear-gradient(180deg, var(--sidebar-grad-a) 0%, var(--sidebar-grad-b) 100%);
  border-right: 1px solid var(--sidebar-edge);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

/* brand block sits on its own, separated by a hairline */
.sidebar-brand { position: relative; }
.sidebar-brand::after {
  content: "";
  position: absolute;
  left: -13px; right: -13px; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sidebar-edge) 18%, var(--sidebar-edge) 82%, transparent);
}

/* every nav row gets room for a left accent bar */
.nav-item, .nav-group-toggle { position: relative; }
.nav-item::before, .nav-group-toggle::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--sidebar-accent);
  transform: translateY(-50%);
  transition: height .16s ease, opacity .16s ease;
  opacity: 0;
}
.nav-item:hover::before, .nav-group-toggle:hover::before { height: 14px; opacity: .55; }

.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item:hover .nav-icon { color: #fff; }

/* active: a lit gradient pill with a soft glow and a solid accent bar */
.nav-item-active,
.nav-item-active:hover {
  background: linear-gradient(135deg, var(--sidebar-active-a) 0%, var(--sidebar-active-b) 100%);
  color: #fff;
  box-shadow: 0 2px 10px var(--sidebar-active-glow), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.nav-item-active::before, .nav-item-active:hover::before { height: 18px; opacity: 1; background: #fff; }
.nav-item-active .nav-icon { color: #fff; }

/* icons read as one family: muted at rest, bright on hover, white when active */
.nav-icon { color: var(--sidebar-icon-muted); transition: color .12s ease; }
.nav-item-sub:hover .nav-icon { color: #fff; }

/* group headers.
   There used to be a 1px guide line down the children at left:19px. The child
   pill starts at the same 19px and its icon at 17px, so the line ran straight
   through every icon instead of beside them. The icon column already reads as
   a group, so the line is gone rather than nudged. */
.nav-group-toggle:hover { background: var(--sidebar-hover); color: #fff; }
.nav-group-toggle:hover .nav-icon-group { color: #fff; }
.nav-icon-group { transition: color .12s ease; }
.nav-sub { position: relative; }
.nav-group.is-open > .nav-group-toggle { color: #fff; }
.nav-group.is-open > .nav-group-toggle .nav-icon-group { color: var(--sidebar-accent); }

/* Sub-items carry no accent bar. It used to sit at left:19px, on the old guide
   line — but the sub-item's icon starts at 17px and is 18px wide, so the bar
   was drawn straight over the icon and stuck out above and below it. On a
   child row the filled pill already says "active"; the bar added nothing but
   the collision. */
.nav-item-sub::before, .nav-item-sub:hover::before,
.nav-item-sub.nav-item-active::before, .nav-item-sub.nav-item-active:hover::before { display: none; }
.nav-item-sub.nav-item-active { box-shadow: 0 2px 8px var(--sidebar-active-glow); }

/* footer separated from the list, controls a touch brighter */
.sidebar-footer { position: relative; }
.sidebar-footer::before {
  content: "";
  position: absolute;
  left: -13px; right: -13px; top: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sidebar-edge) 18%, var(--sidebar-edge) 82%, transparent);
}
.sidebar-search { transition: border-color .12s ease, background-color .12s ease; }
.sidebar-search:hover { border-color: var(--sidebar-accent); background: var(--sidebar-hover); }

/* ==========================================================================
   SYSTEM NORMALIZATION — final polish pass
   One page frame, one heading scale, one button scale, one pill scale and two
   table densities across every page. Page blocks above keep their layout and
   colour decisions; these rules only settle the values that drifted between
   references (title sizes, control heights, paddings) so the product reads as
   a single design system.
   ========================================================================== */
/* 1. Page frame: identical content padding everywhere */
.page-content, .page-content.page-registrars, .page-content.page-server, .page-content.page-cloudflare, .page-content.page-cf-detail, .page-content.page-wizard, .page-content.page-bwizard, .page-content.page-if, .page-content.page-detail, .page-content.page-fin { padding: 0 var(--content-pad-x) 24px; }

/* 2. Heading scale */
.page-title-lg, .page-title-xl, .page-title-ga, .page-title-aff, .page-title-links, .page-title-seo, .page-title-fin, .page-title-rep, .page-title-vault, .page-title-int, .page-title-ps, .page-title-bl, .wz-title, .bw-title, .if-title, .geo-title, .entity-title, .entity-title-gad, .entity-title-affid, .site-title { margin-top: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.5px; }
.page-subtitle, .fin-heading .page-subtitle, .wz-subtitle, .bw-subtitle, .if-subtitle, .geo-subtitle { margin-top: 3px; font-size: 13px; line-height: 17px; font-weight: 400; color: var(--muted); white-space: normal; }
.page-content .card-title, .page-content .card-title-md { font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: -.1px; }

/* 3. Button scale: 40 (hero) / 34 (page + form actions) / 30 (toolbar) / 28 (inside tables) / 26 (micro) */
.btn { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-md { height: 34px; padding: 0 12px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 11.5px; }
.btn-icon-only { width: 34px; padding: 0; }
.btn-sm.btn-icon-only { width: 30px; }
.page-content .page-actions .btn, .page-content .entity-actions .btn, .page-content .wz-heading-actions .btn, .page-content .bw-heading-actions .btn, .page-content .fin-actions .btn, .page-content .seo-actions .btn, .page-content .rep-actions .btn, .page-content .vault-actions .btn, .page-content .int-actions .btn, .page-content .ps-actions .btn, .page-content .bl-actions .btn, .page-content .site-actions .btn, .page-content .if-heading .btn, .page-content .geo-heading .btn, .page-content .settings-heading .btn { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; margin-top: 0; }
.page-content .page-actions .btn-icon-only, .page-content .entity-actions .btn-icon-only, .page-content .site-actions .btn-icon-only { width: 34px; padding: 0; }
.page-content .btn-more-filter, .page-content .view-tabs-row .btn, .page-content .fin-tabs-actions .btn, .page-content .bl-tabs-actions .btn { height: 34px; }
.page-content table .btn { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 6px; }
.page-content table .btn-icon-only { width: 28px; padding: 0; }
.page-content .table-footer .btn { height: 32px; }

/* 4. Status pills: 20 (default) / 18 (compact, inside dense tables) / 24 (entity headers) */
.page-content .status-pill { height: 20px; padding: 0 8px; font-size: 11.5px; line-height: 1; border-radius: 10px; gap: 6px; }
.page-content .status-pill-dot { width: 7px; height: 7px; }
.page-content .status-pill-sm, .page-content .status-pill-xs, .page-content .infra-row .status-pill, .page-content .links-table .status-pill, .page-content .ps-table .status-pill, .page-content .bl-table .status-pill, .page-content .bl-rail-row .status-pill, .page-content .fin-status-sm, .page-content .ids-table .status-pill-sm { height: 18px; padding: 0 7px; font-size: 11px; border-radius: 9px; }
.page-content .status-pill-lg, .page-content .status-pill-gad, .page-content .status-pill-affid, .page-content .entity-info-server .status-pill-lg, .page-content .status-pill-backup, .page-content .health-pill, .page-content .health-pill-geo { height: 24px; padding: 0 10px; font-size: 12px; border-radius: 12px; }

/* 5. Tables: list tables 40px rows / 36px header, widget tables 30px rows / 28px header */
.page-content .sites-table thead th { height: 36px; font-size: 12px; }
.page-content .sites-table thead tr:first-child th[rowspan] { height: 40px; }
.page-content .sites-table .thead-sub th { height: 18px; }
.page-content .sites-table tbody td { height: 40px; font-size: 12px; }
.page-content .bm-table thead th, .page-content .sites-table.geo-table thead th { height: 36px; }
.page-content .bm-table tbody td, .page-content .sites-table.geo-table tbody td { height: 40px; }
.page-content .dashboard-table thead th, .page-content .detail-table th, .page-content .geo-top-table th, .page-content .table-rows-28 th { height: 28px; }
.page-content .dashboard-table tbody td, .page-content .detail-table td, .page-content .geo-top-table td, .page-content .table-rows-28 td, .page-content .geo-bm-table td, .page-content .geo-portfolio-table td, .page-content .geo-aff-table td { height: 30px; }
.page-content .revenue-table th { height: 24px; }
.page-content .revenue-table td { height: 26px; }
.page-content .sites-table tbody td, .page-content .dashboard-table tbody td { vertical-align: middle; }

/* 6. Long text never spills: labels and cells ellipsize, subtitles wrap */
.kpi-label, .kpi-sub, .filter-control-label, .site-path, .td-muted, .site-link { overflow: hidden; text-overflow: ellipsis; }
.site-link, .table-link { display: inline-block; max-width: 100%; vertical-align: bottom; }

/* 7. Form controls: one height, one focus treatment */
.wz-input, .wz-select, .wz-textarea, .bw-input, .bw-select, .if-input, .if-select, .geo-input, .geo-select { border-radius: 8px; }
.btn:focus-visible, .control:focus-visible, .nav-item:focus-visible, .nav-group-toggle:focus-visible, .view-tab:focus-visible, .filter-chip:focus-visible, .page-btn:focus-visible, .detail-tab:focus-visible, .topbar-icon-btn:focus-visible, .topbar-profile-btn:focus-visible, .filter-control-btn:focus-visible, .qa-tile:focus-visible, .dropdown-menu > a:focus-visible, .dropdown-menu > button:focus-visible, a.view-all:focus-visible, .table-link:focus-visible, .site-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important; }
.btn:active { transform: translateY(0.5px); }
.btn:disabled, .btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.page-content table tbody tr { transition: background-color .12s ease; }
.page-content .sites-table tbody tr:hover > td { background: var(--bg-hover); }
.dropdown-menu { z-index: 40; }

/* 8. Cards and icons */
.dashboard-card { min-width: 0; }
.dashboard-card > .card-header .icon, .card-header .icon { flex: 0 0 auto; }
img.bookmaker-logo, .bookmaker-logo img, .provider-logo img, .service-logo img, .bm-logo img { object-fit: contain; }

/* 9. Dark-mode leftovers found by the audit */
html[data-theme="dark"] .payment-method { background: var(--bg-muted); color: var(--text); }
html[data-theme="dark"] .seo-cwv-bar span { opacity: .9; }

/* ==========================================================================
   RESPONSIVE SHELL — tablet & mobile (≤1024 / ≤768 / ≤480)
   Desktop layouts above 1024px are untouched; below that the sidebar becomes
   an off-canvas drawer, page-level layouts collapse to one column, row grids
   reduce to two columns then one, and every data table scrolls inside its card.
   ========================================================================== */
.topbar-nav-toggle { display: none; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; margin-right: 12px; padding: 0; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); color: var(--text-2); cursor: pointer; }
.topbar-nav-toggle:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.topbar-nav-toggle .topbar-icon { width: 18px; height: 18px; }
.nav-backdrop { position: fixed; inset: 0; z-index: 55; background: var(--bg-overlay); }
.nav-backdrop[hidden] { display: none; }
.table-scroll { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.table-scroll > table { width: 100%; }

@media (max-width: 1024px) {
  :root { --content-pad-x: 16px; }
  .app-main { overflow-x: clip; }
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; height: 100dvh; z-index: 60; transform: translateX(-104%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 48px rgba(0, 0, 0, .4); }
  body.nav-open { overflow: hidden; }
  .topbar-nav-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .global-search, .global-search-wide { width: auto; flex: 1 1 auto; max-width: 420px; }
  .topbar-actions { margin-left: 16px; }
  .topbar-add { margin-right: 14px; }
  .topbar-wide .topbar-chevron, .topbar-chevron { margin-left: 8px; }
  .topbar-icon-btn + .topbar-icon-btn { margin-left: 14px; }

  /* page-level layouts (main + rail) → single column, rails flow below */
  .page-content [class*="-layout"], .page-content [class*="layout-"], .wz-body, .bw-body, .geo-body, .gs-body, .fin-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .seo-rail, .vault-rail, .wz-rail, .bw-rail { position: static; margin-top: 0; }

  /* row grids → two columns */
  .dashboard-grid, .page-content [class*="-row"], .page-content [class*="-analytics"], .page-content [class*="-bottom"], .page-content [class*="grid-"], .page-content [class*="-grid"], .page-content [class*="-charts"], .page-content [class*="-tiles"], .page-content [class*="-cards"], .page-content [class*="-connected"], .page-content [class*="-available"], .page-content [class*="-metrics"], .page-content [class*="-status-row"], .page-content [class*="-split"], .page-content [class*="-cols"], .page-content [class*="-top"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content [class*="-kpis"], .page-content .provider-cards, .page-content .if-mini-grid, .page-content .if-service-grid, .page-content .wz-budget-tiles, .page-content .settings-status-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-content .wz-bm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-content .wz-type-grid, .page-content .wz-option-row, .page-content .wz-stat-row, .page-content .wz-review-grid, .page-content .qa-grid-3, .page-content .wz-grid-3, .page-content .bw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-content .wz-grid-4, .page-content .bw-grid-4, .page-content .metric-tiles, .page-content .snap-tiles, .page-content .res-meters, .page-content .dep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content .wz-prelaunch { grid-template-columns: minmax(0, 1fr); }
  .page-content .wz-prelaunch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content .wz-health-grid, .page-content .wz-grid-links, .page-content .wz-grid-domain { grid-template-columns: minmax(0, 1fr); }

  /* KPI strips wrap into two rows */
  .kpi-group { flex-wrap: wrap; row-gap: 14px; }
  .kpi-group .kpi-item { flex: 1 1 44% !important; width: auto !important; max-width: none !important; }

  /* headings, toolbars and footers wrap instead of overflowing */
  .page-heading, .wz-heading, .view-tabs-row, .quick-filters, .page-actions, .table-footer, .wz-heading-actions, .fin-heading, .if-heading, .seo-heading, .settings-heading, .bw-heading, .geo-heading, .bw-heading-actions { flex-wrap: wrap; row-gap: 10px; }
  .table-footer { height: auto; padding-bottom: 12px; }
  .view-tabs { flex-wrap: wrap; height: auto; min-height: 36px; }
  .view-tabs-flush { overflow: visible; }

  /* tab bars scroll, action rows wrap */
  .detail-tabs, .bl-tabs, .fin-tabs, .rail-tabs, .fin-tabs-chips { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .detail-tabs::-webkit-scrollbar, .bl-tabs::-webkit-scrollbar, .fin-tabs::-webkit-scrollbar { display: none; }
  .breadcrumb-row, .entity-actions, .site-actions, .site-actions-row, .kpi-value-row, .fin-tabs-row, .bl-tabs-row, .seo-kpi-trend, .entity-meta { flex-wrap: wrap; row-gap: 8px; }
  .breadcrumb-row { gap: 12px; }

  /* progress bars scroll horizontally */
  .wz-progress, .bw-progress { display: flex; overflow-x: auto; scrollbar-width: none; }
  .wz-progress::-webkit-scrollbar, .bw-progress::-webkit-scrollbar { display: none; }
  .wz-progress > *, .bw-progress > * { flex: 0 0 168px; }
  .wz-progress-dense > * { flex-basis: 150px; }

  /* tables keep their natural column widths and scroll inside the card */
  .table-scroll > table, .sites-table-scroll > table { min-width: calc(var(--table-cols, 6) * 112px); table-layout: auto; }
  .sites-table th, .sites-table td { white-space: nowrap; }
  .dashboard-table { table-layout: auto; }
  .wz-table { min-width: 560px; }

  /* charts never push the card wider than the viewport */
  .page-content canvas { max-width: 100%; }
  .gs-panel { min-height: 0; }
}

@media (max-width: 768px) {
  :root { --content-pad-x: 12px; }
  .topbar { height: 52px; padding: 0 12px; }
  .topbar-nav-toggle { margin-right: 10px; }
  .global-search-kbd, .topbar-profile-text, .topbar-add .btn-sm span, .topbar-add .btn-chevron { display: none; }
  .topbar-add .btn-sm { width: 34px; padding: 0; justify-content: center; }
  .topbar-actions { margin-left: 10px; }
  .topbar-icon-btn + .topbar-icon-btn { margin-left: 10px; }
  .topbar-profile-btn { padding-right: 0; }
  .topbar-chevron { display: none; }
  .global-search-input { padding-left: 34px; font-size: 12px; }

  .page-heading { padding-left: 0; }
  .page-title, .page-title-lg, .page-title-xl, .wz-title, .page-title-ga, .page-title-aff, .page-title-links, .page-title-seo, .page-title-fin { font-size: 20px; line-height: 26px; letter-spacing: -.3px; }
  .page-subtitle { font-size: 12px; line-height: 15px; }
  .page-actions, .wz-heading-actions { width: 100%; margin-top: 0; }
  .page-actions .btn, .wz-heading-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* everything collapses to one column; KPI and tile groups keep two */
  .dashboard-grid, .page-content [class*="-row"], .page-content [class*="-analytics"], .page-content [class*="-bottom"], .page-content [class*="grid-"], .page-content [class*="-grid"], .page-content [class*="-charts"], .page-content [class*="-cards"], .page-content [class*="-connected"], .page-content [class*="-available"], .page-content [class*="-split"], .page-content [class*="-cols"], .page-content [class*="-top"], .page-content .wz-review-grid, .page-content .qa-grid-3, .page-content .wz-grid-3, .page-content .bw-grid-3, .page-content .wz-option-row, .page-content .wz-grid-2, .page-content .wz-grid-4, .page-content .bw-grid-2, .page-content .bw-grid-4, .page-content .bw-grid-5, .page-content .wz-check-list-2col, .page-content .wz-prelaunch-list, .page-content .wz-grid-policy, .page-content .wz-grid-wp { grid-template-columns: minmax(0, 1fr); }
  .page-content [class*="-kpis"], .page-content [class*="-tiles"], .page-content [class*="-metrics"], .page-content .provider-cards, .page-content .if-mini-grid, .page-content .if-service-grid, .page-content .wz-budget-tiles, .page-content .settings-status-row, .page-content .wz-type-grid, .page-content .wz-stat-row, .page-content .wz-bm-grid, .page-content .wz-review-tiles, .page-content .qa-grid, .page-content .metric-tiles, .page-content .snap-tiles, .page-content .res-meters, .page-content .dep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-group .kpi-item { flex-basis: 44% !important; }

  .quick-filters { gap: 6px; }
  .table-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pagination-range { margin: 0 12px; }
  .pagination-bar { flex-wrap: wrap; row-gap: 8px; }
  .bulk-actions { width: 100%; }
  .btn-bulk { flex: 1 1 auto; }

  .gs-backdrop { padding: 12px; }
  .gs-panel { padding: 14px 12px 12px; border-radius: 12px; }
  .gs-types { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .gs-results { border-right: 0; padding-right: 0; }

  .wz-footer, .wz-footer-bare, .bw-footer, .if-footer { flex-wrap: wrap; gap: 8px; }
  .wz-footer-right { width: 100%; display: flex; gap: 8px; }
  .wz-footer-right .btn, .wz-footer .wz-btn-back { flex: 1 1 auto; justify-content: center; }
  .wz-processing-card { width: calc(100vw - 32px); }
  .wz-ready-banner { flex-wrap: wrap; }
  .wz-ready-stat { border-left: 0; padding: 0 8px 0 0; align-items: flex-start; }
  .wz-ready-btn { width: 100%; justify-content: center; }
  .wz-toggle-grid-2, .wz-check-grid, .wz-monitor-grid, .wz-kv-2col { grid-template-columns: minmax(0, 1fr); }
  .wz-backup-grid, .wz-ps-controls, .wz-ps-row { grid-template-columns: minmax(0, 1fr) !important; }
  .dashboard-card { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 480px) {
  .global-search { max-width: none; }
  .topbar-add { margin-right: 8px; }
  .topbar-icon-btn + .topbar-icon-btn { margin-left: 8px; }
  .topbar-profile-btn .avatar { margin: 0; }
  .page-title, .page-title-lg, .page-title-xl, .wz-title { font-size: 18px; line-height: 24px; }
  .page-content [class*="-kpis"], .page-content [class*="-tiles"], .page-content .provider-cards, .page-content .wz-bm-grid, .page-content .wz-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { padding: 0 12px; }
  .view-tab { padding: 0 9px; }
  .filter-chip { padding: 0 8px; }
  .wz-progress > *, .bw-progress > * { flex-basis: 140px; }
  .dashboard-card { padding-left: 10px; padding-right: 10px; }
}

/* ---- generic table empty state (injected by app.js when every row is filtered out) ---- */
.table-empty-row > td { padding: 0 !important; height: auto !important; }
.table-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 36px 16px; text-align: center; }
.table-empty-title { font-size: 13px; font-weight: 600; color: var(--text); }
.table-empty-text { font-size: 12px; color: var(--muted); }

/* ---- long-text safety at desktop widths (audit findings) ---- */
.page-content .sites-table thead th { white-space: nowrap; }
.kpi-item { min-width: 0; }
.kpi-label { white-space: normal; overflow: visible; text-overflow: clip; }
.site-cell-text { min-width: 0; }
.site-cell-text .site-path { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-content td.td-muted { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-control-btn { min-width: 0; }

/* ---- breadcrumbs and card headers: one rhythm everywhere ---- */
.breadcrumb, .breadcrumb-site, .breadcrumb-server, .breadcrumb-cf, .breadcrumb-cfd, .breadcrumb-seo, .breadcrumb-fin, .wz-crumb, .bw-crumb, .geo-crumb, .if-crumb { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--muted); }
.breadcrumb a, .wz-crumb a, .bw-crumb a, .geo-crumb a, .if-crumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover, .wz-crumb a:hover, .bw-crumb a:hover, .geo-crumb a:hover, .if-crumb a:hover { color: var(--text-link); }
.breadcrumb-sep, .breadcrumb .icon, .wz-crumb .icon, .bw-crumb .icon, .geo-crumb .icon, .if-crumb .icon { width: 12px; height: 12px; color: var(--text-disabled); }
.breadcrumb-current, .breadcrumb [aria-current], .wz-crumb .breadcrumb-current, .bw-crumb .breadcrumb-current, .if-crumb .breadcrumb-current, .geo-crumb .breadcrumb-current { color: var(--text); font-weight: 600; }

/* ---- audit round 2: remaining deviations ---- */
.page-bookmakers .page-title-lg { font-size: 26px; }
.page-content.page-domains, .page-content.page-hosting { padding-left: var(--content-pad-x); }
.if-footer-sticky { margin: 0 calc(-1 * var(--content-pad-x)); padding: 0 var(--content-pad-x); }
.nav-label, .nav-item .nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-upload-btn { height: 30px; padding: 0 11px; font-size: 12px; }
.page-content table .btn, .page-content .btn-mini-ctrl, .page-content .geo-table .btn-mini-ctrl, .page-content .fin-soft-btn, .page-content .btn-fin-tool, .page-content .btn-fin-tool-icon, .page-content .row-actions .btn, .page-content .bl-row-actions .btn { height: 28px; min-height: 28px; }
.page-content table .btn-icon-only, .page-content .row-actions .btn-icon-only { width: 28px; }
.page-content .table-footer .btn, .page-content .table-footer .btn-bulk, .page-content .table-footer .btn-apply, .page-content .table-footer .btn-rpp { height: 30px; }
.page-if .if-control, .page-add-google .if-control, .page-if .if-control-lg { height: 38px; }
.page-if .if-control-sm { height: 32px; }
.site-filter-bar { flex-wrap: wrap; row-gap: 8px; }
/* filter controls keep their reference widths as minimums, grow only to fit their own label, and the search box absorbs the difference */
.filter-control { flex: 0 0 auto; width: auto !important; }
.filter-control:nth-of-type(1) { min-width: 119px; } .filter-control:nth-of-type(2) { min-width: 118px; } .filter-control:nth-of-type(3) { min-width: 107px; } .filter-control:nth-of-type(4) { min-width: 126px; } .filter-control:nth-of-type(5) { min-width: 129px; } .filter-control:nth-of-type(6) { min-width: 134px; } .filter-control:nth-of-type(7) { min-width: 146px; }
.filter-control-btn { width: 100%; }
.filter-search { flex: 1 1 150px; width: auto; min-width: 150px; max-width: 204px; }
.fin-qa-grid .btn, .rail-qa-grid .btn, .link-qa-grid .btn, .vault-qa .btn { padding: 0 8px; min-width: 0; }
.page-content td .table-link, .page-content td .site-link, .page-content td .vault-name, .page-content td .domain-cell { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-pending-sub, .seo-kpi-sub, .fin-kpi-sub, .rep-kpi-sub, .kpi-sub, .fin-method-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1366px) {
  .metric-tiles-geo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- global search overlay on small screens ---- */
@media (max-width: 768px) {
  .gs-panel { width: 100%; }
  .gs-body { grid-template-columns: minmax(0, 1fr); }
  .gs-kbd, .gs-row-chevron, .gs-more { display: none; }
  .gs-row { flex-wrap: wrap; gap: 6px 10px; padding: 8px 8px 8px 10px; }
  .gs-row-text { flex-basis: calc(100% - 38px); }
  .gs-row-meta { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
  .gs-row-badges, .gs-row-side, .gs-row-amount { margin-left: 38px; width: auto; }
  .gs-preview { padding-top: 12px; border-top: 1px solid var(--border-subtle); }
  .gs-input { font-size: 15px; margin-left: 10px; }
}

/* ---- audit round 3: forms and headers ---- */
.page-content .if-control, .page-content .if-control-addon, .page-content .geo-control { height: 38px; }
.page-content .if-control > input, .page-content .if-control > select, .page-content .geo-control > input, .page-content .geo-control > select { height: 36px; }
.page-content .if-control-sm, .page-content .if-control-sm > select, .page-content .if-control-sm > input { height: 32px; }
.page-content .wz-body:not(.wz-dense) .wz-input-wrap > .wz-input, .page-content .wz-body:not(.wz-dense) .wz-input-wrap > .wz-select { height: var(--form-control-h); }
.page-content .if-head-title, .page-content .geo-section-head h2, .page-content .wz-body:not(.wz-dense) .wz-section-title, .page-content .bw-sec-title { font-size: 15px; line-height: 19px; font-weight: 700; }
.page-content .geo-card { border-radius: var(--radius-card); }
#bwLogoZone .bw-upload-btn, .bw-logo-zone .bw-upload-btn { height: 30px; min-height: 30px; }
.cf-filter-bar, .filter-bar, .fin-filter-bar, .seo-filter-bar { flex-wrap: wrap; row-gap: 8px; }
.page-content .sites-table:not(:has(.thead-sub)) thead th { white-space: normal; line-height: 14px; }
.page-content .sites-table:not(:has(.thead-sub)) thead th .th-sort { white-space: normal; }
.if-label { white-space: normal; }
.if-help { white-space: normal; }
.if-service-sub, .bw-step-label { overflow: hidden; text-overflow: ellipsis; }
.wz-preview-note { white-space: normal; }
.page-content table .row-more .btn, .page-content table .row-more .btn-icon-only { height: 28px; width: 28px; }

/* ---- global search panel: never wider than the viewport ---- */
.gs-panel { min-width: 0; }
.gs-panel > * { min-width: 0; }
@media (max-width: 768px) {
  .gs-panel { width: 100%; overflow: hidden; }
  .gs-commands, .gs-hints { flex-wrap: wrap; row-gap: 8px; }
  .gs-metrics, .gs-related, .gs-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-types { overflow-x: auto; flex-wrap: nowrap; }
}

/* ---- phone-width fixes (true 375–430 viewports) ---- */
@media (max-width: 768px) {
  .site-kpi-groups, .bm-kpi-groups, .geo-kpi-groups { grid-template-columns: minmax(0, 1fr); }
  .site-kpi-groups > .kpi-group .kpi-item, .bm-kpi-groups > .kpi-group .kpi-item, .geo-kpi-groups > .kpi-group .kpi-item { width: auto !important; flex: 1 1 44% !important; }
}
@media (max-width: 900px) {
  .settings-shell { flex-direction: column; }
  .settings-nav { flex: 0 0 auto; width: auto; padding: 14px 12px 10px; border-right: 0; border-bottom: 1px solid var(--border-default); }
  .settings-nav-list { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .settings-nav-list::-webkit-scrollbar { display: none; }
  .settings-nav-list li + li { margin-top: 0; }
  .settings-nav-item { height: 34px; padding: 0 12px; white-space: nowrap; gap: 8px; }
  .settings-usage, .settings-nav-foot { display: none; }
}
@media (max-width: 900px) {
  .settings-heading { height: auto; padding-top: 18px; padding-bottom: 12px; flex-direction: column; gap: 12px; }
  .settings-search { flex: 0 0 auto; width: 100%; margin-top: 0; }
}

/* ==========================================================================
   BRAND LOGO PICKER (includes/logo-picker.php)
   A site inherits its bookmaker's logo; this control shows what was resolved
   and lets the user pick another brand, upload artwork, or revert to auto.
   ========================================================================== */
.lp { display: block; }
.lp-head { margin-bottom: 10px; }
.lp-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); }
.lp-sub { margin: 3px 0 0; font-size: 11.5px; line-height: 15px; color: var(--muted); }
.lp-body { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); }
.bm-logo.lp-preview-logo { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 44px; }
.bm-logo.lp-preview-logo .logo-mark { width: 34px; height: 32px; }
.lp-meta { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.lp-brand { font-size: 13px; font-weight: 700; color: var(--text); }
.lp-source { font-size: 11px; color: var(--muted); }
.lp-source[data-state="override"], .lp-source[data-state="custom"] { color: var(--text-link); }
.lp-source[data-state="none"] { color: var(--text-warning); }
.lp-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.lp-btn { height: 32px; padding: 0 12px; gap: 7px; font-size: 11.5px; font-weight: 600; border-radius: 7px; color: var(--text-link); border-color: var(--border-primary); cursor: pointer; }
.lp-btn .btn-icon { width: 13px; height: 13px; color: var(--text-link); }
.lp-btn-reset { color: var(--text-2); border-color: var(--border-default); }
.lp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lp-msg { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.lp-msg[data-tone="ok"] { color: var(--text-success); }
.lp-msg[data-tone="error"] { color: var(--text-danger); }

.lp-panel { margin-top: 10px; padding: 10px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-subtle); }
.lp-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lp-search { flex: 1 1 auto; position: relative; display: flex; align-items: center; }
.lp-search .wz-input { height: 32px; padding-left: 34px; font-size: 12px; border-radius: 7px; }
.lp-search-ico { position: absolute; left: 11px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.lp-close { width: 30px; height: 30px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lp-close .icon { width: 13px; height: 13px; }
.lp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 7px; max-height: 250px; overflow-y: auto; }
.lp-choice[hidden] { display: none; }
.lp-choice-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); cursor: pointer; font-family: var(--font); text-align: left; }
.lp-choice-btn:hover { border-color: var(--border-primary); }
.lp-choice.is-active .lp-choice-btn { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.bm-logo.lp-choice-logo { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 28px; }
.bm-logo.lp-choice-logo .logo-mark { width: 22px; height: 20px; }
.lp-choice-name { font-size: 11.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-choice-tag { margin-left: auto; font-size: 9.5px; font-weight: 600; color: var(--text-link); }
.lp-empty { margin: 10px 2px 2px; font-size: 11.5px; color: var(--muted); }
/* dark mode: the ink tile sits on a dark card, so give it a hairline edge */
html[data-theme="dark"] .bm-logo,
html[data-theme="dark"] .lp-choice-logo,
html[data-theme="dark"] .lp-preview-logo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }

/* logo picker as a popover on entity headers (Site Detail) */
.lp-anchor { position: relative; display: inline-flex; flex: 0 0 auto; }
.lp-anchor-btn { position: absolute; right: -5px; bottom: -5px; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 1px solid var(--border-default); border-radius: 50%;
  background: var(--bg-surface); color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity .12s ease; z-index: 2; }
.lp-anchor:hover .lp-anchor-btn, .lp-anchor-btn:focus-visible, .lp-anchor.is-open .lp-anchor-btn { opacity: 1; }
.lp-anchor-btn .icon { width: 11px; height: 11px; }
.lp-anchor-btn:hover { color: var(--text-link); border-color: var(--border-primary); }
.lp-pop { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: 460px; max-width: 78vw;
  padding: 12px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface);
  box-shadow: 0 12px 32px rgba(15, 26, 43, .16); }
.lp-pop { width: 528px; }
html[data-theme="dark"] .lp-pop { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.lp-pop .lp-body { border: 0; padding: 0; }
.lp-pop .lp-grid { max-height: 210px; }
.lp-pop .lp-body { gap: 14px; }
.lp-pop .lp-meta { min-width: 156px; }
.lp-brand, .lp-source { white-space: nowrap; }

/* ==========================================================================
   BOOKMAKERS — insights row
   The four insight cards (Top Performing, GEO Distribution, Status, Quick
   Actions) sit in one equal-height row under the full-width table instead of
   a narrow right rail, so the table gets the whole content width.
   ========================================================================== */
.bm-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bm-side { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.bm-side > .side-card { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 12px; }
.bm-side .side-card-header { height: 24px; margin-bottom: 6px; }
.bm-side .rank-list, .bm-side .geo-dist, .bm-side .action-list { flex: 1 1 auto; }
.bm-side .rank-row { gap: 10px; height: 34px; }
.bm-side .rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-side .rank-value { width: auto; min-width: 54px; text-align: right; font-weight: 600; color: var(--text-2); }
.bm-side .rank-trend { width: 44px; justify-content: flex-end; }
.bm-side .geo-dist-row { height: 30px; }
.bm-side .geo-dist-row .geo-cell { flex: 0 0 auto; min-width: 0; width: 42%; gap: 8px; }
.bm-side .geo-dist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-side .geo-dist-count { flex: 0 0 22px; }
.bm-side .progress { flex: 1 1 auto; margin-left: 10px; }
.bm-side .geo-dist-pct { flex: 0 0 38px; }
.bm-side .status-chart { flex: 1 1 auto; justify-content: center; gap: 18px; height: auto; min-height: 120px; }
.bm-side .donut-wrap-md { margin-left: 0; }
.bm-side .status-legend { margin-left: 0; }
.bm-side .action-list { display: flex; flex-direction: column; gap: 4px; }
.bm-side .action-list li + li { margin-top: 0; }
.bm-side .action-row { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-subtle); background: var(--bg-subtle); transition: background-color .12s ease, border-color .12s ease; }
.bm-side .action-row:hover { background: var(--bg-hover); border-color: var(--border-primary); color: var(--text-link); }
.bm-side .action-icon { color: var(--text-link); }
@media (max-width: 1366px) {
  .bm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .bm-side { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   UI POLISH PASS — icon scale, contrast, typography
   Appended last so it wins over per-page rules. Geometry (card sizes, grid
   tracks, page padding) is deliberately untouched so the pages still line up
   with design-reference/.
   ========================================================================== */

/* ---- 1. Icon scale -------------------------------------------------------
   All icons are now genuine Lucide (24x24, stroke 2, round caps). Lucide is
   drawn on a 24 grid with a 2 stroke, so it needs a touch more room than the
   old hand-drawn 1.8 set to read at the same weight. */
:root {
  --icon-xs: 14px;   /* dense table cells, inline meta */
  --icon-sm: 16px;   /* buttons, table actions */
  --icon-md: 18px;   /* section headers, list rows */
  --icon-nav: 20px;  /* sidebar */
  --icon-lg: 22px;   /* stat / KPI tiles */
}
.sidebar .nav-icon { width: var(--icon-nav); height: var(--icon-nav); stroke-width: 2; }
.sidebar .nav-item-sub .nav-icon { width: 18px; height: 18px; }
/* Sub-item labels need 118px; the default right padding left exactly 117px and
   clipped "Cloudflare Accounts" by a fraction of a pixel. Nothing visible moves. */
.sidebar .nav-item-sub { padding-right: 10px; }
.sidebar .nav-icon-group { width: 17px; height: 17px; }
.sidebar-search .nav-icon { width: 16px; height: 16px; }
.btn .btn-icon { width: var(--icon-sm); height: var(--icon-sm); stroke-width: 2; }
.kpi-icon > .icon { width: var(--icon-lg); height: var(--icon-lg); stroke-width: 2; }
.card-icon .icon { width: var(--icon-sm); height: var(--icon-sm); stroke-width: 2; }
.quick-action-icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.topbar-icon { width: 19px; height: 19px; stroke-width: 2; }

/* ---- 2. Stat / KPI tiles: one container treatment ------------------------
   Previously three cards used a solid-filled circle with a white glyph while
   the rest used a tinted circle with a coloured glyph — four styles in one
   row. Everything now uses the tinted container in the card's accent colour. */
.kpi-icon { border-radius: 12px; }
.kpi-icon .kpi-icon-dot {
  width: 100%; height: 100%; border-radius: inherit;
  background: transparent !important; color: inherit;
}
.kpi-icon .kpi-icon-dot .icon {
  width: var(--icon-lg); height: var(--icon-lg); stroke-width: 2;
}
.quick-action-icon-green-solid,
.quick-action-icon-green {
  border-radius: 0; background: transparent; color: var(--text-success-5);
}
.quick-action-icon-green-solid .icon { width: 24px; height: 24px; stroke-width: 2; }
.quick-action-icon-navy { color: var(--text-link); }

/* ---- 3. Contrast ---------------------------------------------------------
   Card edges and shadows were near-invisible (#EDF0F5 / 3% alpha) and muted
   body text sat lighter than WCAG-comfortable on white. */
html[data-theme="light"] {
  --card-border: #E2E8F0;
  --border: #E2E8F0;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --muted: #64748B;
  --muted-2: #64748B;
  --text-3: #475569;
  --text-tertiary-2: #475569;
  --bw-help: #64748B;
}

/* ---- 4. Interactive feedback --------------------------------------------- */
.dashboard-card { transition: box-shadow .15s ease, border-color .15s ease; }
.table-card:hover, .quick-actions-card:hover { box-shadow: 0 2px 6px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .05); }
.dashboard-table tbody tr, .sites-table tbody tr, .bw-table tbody tr { transition: background-color .12s ease; }
.dashboard-table tbody tr:hover, .sites-table tbody tr:hover { background: var(--bg-hover); }
.quick-action { transition: border-color .12s ease, background-color .12s ease, transform .12s ease; }
.quick-action:hover { transform: translateY(-1px); }
.view-all { transition: color .12s ease; }
.view-all:hover { text-decoration: underline; }

/* ---- 5. Typography ------------------------------------------------------- */
.kpi-value { letter-spacing: -.4px; }
.kpi-label { font-weight: 600; }

/* ==========================================================================
   DETAIL PANEL — reusable right-side panel (pagespeed.php, backlinks.php, …)
   Hidden by default; opens on row click. Side-by-side ≥1400px, drawer below.
   ========================================================================== */
:root {
  --dp-w: 380px;
  --dp-w-drawer: 420px;
  --dp-gap: 16px;
  --dp-ease: 200ms cubic-bezier(.4, 0, .2, 1);
}

.dp-host { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.dp-main { min-width: 0; }

/* ---- panel shell -------------------------------------------------------- */
.dp {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bg-surface); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); box-shadow: 0 8px 28px rgba(15, 23, 42, .10);
  opacity: 0; transform: translateX(12px);
  transition: opacity var(--dp-ease), transform var(--dp-ease);
}
.dp[hidden] { display: none; }
.dp-host.dp-open .dp { opacity: 1; transform: none; }

.dp-head {
  position: sticky; top: 0; z-index: 2; flex: 0 0 auto;
  padding: 14px 16px 0; background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle); border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.dp-head-main { display: flex; align-items: flex-start; gap: 12px; }
.dp-logo { flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-ink); overflow: hidden; }
.dp-logo .dp-logo-inner, .dp-logo .logo-mark, .dp-logo img { width: 30px; height: 28px; display: block; object-fit: contain; }
.dp-logo-globe { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; }
.dp-logo-globe .icon { width: 20px; height: 20px; }
.dp-head-text { flex: 1 1 auto; min-width: 0; }
.dp-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dp-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 21px; letter-spacing: -.2px; color: var(--text); overflow-wrap: anywhere; }
.dp-title a { color: inherit; text-decoration: none; }
.dp-title a:hover { color: var(--text-link); }
.dp-ext { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: var(--text-link); }
.dp-ext .icon { width: 14px; height: 14px; }
.dp-ext:hover { background: var(--bg-hover); }
.dp-sub { margin: 5px 0 0; font-size: 11.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.dp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.dp-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.dp-meta-item .flag { width: 16px; height: 11px; border-radius: 2px; }
.dp-close { flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-surface); color: var(--text-2); cursor: pointer; transition: background-color .12s, color .12s; }
.dp-close .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.dp-close:hover { background: var(--bg-muted); color: var(--text); }
.dp-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.dp-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 12px; }
.dp-tab { position: relative; padding: 8px 10px 9px; border: 0; background: none; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.dp-tab::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.dp-tab:hover { color: var(--text-2); }
.dp-tab.is-active { color: var(--text-link); }
.dp-tab.is-active::after { background: var(--primary); }

.dp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 20px; }
.dp-body:focus { outline: none; }
.dp-sections { display: flex; flex-direction: column; gap: 16px; }

/* ---- loading / error ---------------------------------------------------- */
.dp-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 44px 12px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.dp-state[hidden] { display: none; }
.dp-state .icon { width: 22px; height: 22px; color: var(--fg-danger); }
.dp-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-default); border-top-color: var(--primary); animation: dp-spin .7s linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }
.dp-retry { height: 30px; padding: 0 12px; font-size: 12px; }

/* ---- scores ------------------------------------------------------------- */
.dp-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dp-score { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); }
.dp-ring { position: relative; flex: 0 0 48px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: conic-gradient(var(--dp-ring-c) calc(var(--score) * 1%), var(--bg-muted) 0); }
.dp-ring > span { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 50%; background: var(--bg-surface); font-size: 14px; font-weight: 700; color: var(--text); }
.dp-ring-green { --dp-ring-c: var(--success); } .dp-ring-amber { --dp-ring-c: var(--warning); } .dp-ring-red { --dp-ring-c: var(--danger); }
.dp-score-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dp-score-label { font-size: 12px; font-weight: 500; color: var(--text-3); overflow-wrap: anywhere; }
.dp-grade { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.dp-grade-green { color: var(--text-success); } .dp-grade-amber { color: var(--text-warning); } .dp-grade-red { color: var(--text-danger); }
.dp-grade-icon { width: 12px; height: 12px; }

/* ---- blocks / tiles ----------------------------------------------------- */
.dp-block { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); }
.dp-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dp-block-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.dp-view-all { font-size: 12px; font-weight: 600; color: var(--text-link); text-decoration: none; }
.dp-view-all:hover { text-decoration: underline; }
.dp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.dp-tile { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-subtle); }
.dp-tile-label { font-size: 11px; font-weight: 600; color: var(--text-3); }
.dp-tile-value { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.dp-tile-mark .icon { width: 13px; height: 13px; }
.dp-tile .dp-grade { font-size: 11px; }

/* ---- key/value ---------------------------------------------------------- */
.dp-kv { margin: 0; display: flex; flex-direction: column; }
.dp-kv-row { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.dp-kv-row:first-child { border-top: 0; }
.dp-kv-label { margin: 0; font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.dp-kv-value { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dp-note { font-weight: 500; color: var(--text-muted); }
.dp-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text-link); text-decoration: none; overflow-wrap: anywhere; }
.dp-link:hover { text-decoration: underline; }
.dp-link-icon { width: 12px; height: 12px; flex: 0 0 12px; }
.dp-link-url { font-weight: 500; }
.dp-site { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.dp-site:hover { color: var(--text-link); }
.dp-site .flag { width: 16px; height: 11px; border-radius: 2px; flex: 0 0 16px; }
.dp-vendor { display: inline-flex; align-items: center; gap: 6px; }
.dp-vendor-icon { width: 14px; height: 14px; color: var(--text-muted); }
.dp-kv-action { height: 24px; padding: 0 9px; border: 1px solid var(--border-primary); border-radius: 6px; background: var(--bg-surface); font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-link); cursor: pointer; white-space: nowrap; }
.dp-kv-action:hover { background: var(--bg-hover); }

/* ---- pills / badges ----------------------------------------------------- */
.dp-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-2); }
.dp-pill-type-guest { background: var(--tint-info); color: var(--text-link); }
.dp-pill-type-niche { background: var(--tint-purple); color: var(--text-purple); }
.dp-pill-type-sidebar { background: var(--tint-warning); color: var(--text-warning); }
.dp-pill-type-banner { background: var(--tint-purple); color: var(--text-purple); }
.dp-pill-type-home { background: var(--tint-success); color: var(--text-success); }
.dp-pill-follow-do { background: var(--tint-success); color: var(--text-success); }
.dp-pill-follow-no { background: var(--tint-danger); color: var(--text-danger); }
.dp-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-2); }
.dp-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dp-badge-green { background: var(--tint-success); color: var(--text-success); }
.dp-badge-amber { background: var(--tint-warning); color: var(--text-warning); }
.dp-badge-red { background: var(--tint-danger); color: var(--text-danger); }
.dp-badge-purple { background: var(--tint-purple); color: var(--text-purple); }
.dp-badge-grey { background: var(--bg-muted); color: var(--text-muted); }

/* ---- chart -------------------------------------------------------------- */
.dp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dp-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.dp-legend-item i { width: 8px; height: 8px; border-radius: 50%; }
.dp-chart { position: relative; width: 100%; min-width: 0; }
.dp-chart canvas { display: block; width: 100% !important; }

/* ---- issues ------------------------------------------------------------- */
.dp-issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dp-issue { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border-subtle); font-size: 12px; }
.dp-issue:first-child { border-top: 0; }
.dp-level { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.dp-level-red { background: var(--tint-danger); color: var(--text-danger); }
.dp-level-amber { background: var(--tint-warning); color: var(--text-warning); }
.dp-level-green { background: var(--tint-success); color: var(--text-success); }
.dp-level-icon { width: 11px; height: 11px; }
.dp-issue-text { color: var(--text-2); overflow-wrap: anywhere; }
.dp-issue-value { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.dp-block-btn { justify-content: center; width: 100%; height: 32px; gap: 7px; font-size: 12px; color: var(--text-link); }
.dp-btn-icon { width: 13px; height: 13px; }

/* ---- actions / buttons -------------------------------------------------- */
.dp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.dp-action { justify-content: flex-start; height: 34px; gap: 8px; padding: 0 10px; font-size: 12px; text-align: left; }
.dp-action-icon { width: 14px; height: 14px; flex: 0 0 14px; color: var(--text-2); }
.dp-action span { overflow-wrap: anywhere; }
.dp-btn-row { display: grid; gap: 8px; }
.dp-btn-row-1 { grid-template-columns: minmax(0, 1fr); }
.dp-btn-row-2 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.dp-btn-row-3 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.dp-btn { justify-content: center; height: 34px; gap: 7px; padding: 0 10px; font-size: 12px; white-space: normal; }
.dp-btn-danger { color: var(--text-danger); border-color: var(--border-danger); }
.dp-btn-danger:hover { background: var(--tint-danger); }

/* ---- backdrop ----------------------------------------------------------- */
.dp-backdrop { position: fixed; inset: 0; z-index: 60; background: var(--bg-overlay); opacity: 0; transition: opacity var(--dp-ease); }
.dp-backdrop[hidden] { display: none; }
.dp-host.dp-open .dp-backdrop { opacity: 1; }

/* ---- side-by-side (wide desktop) ---------------------------------------- */
@media (min-width: 1400px) {
  /* the column snaps; only the panel itself animates (transform + opacity) */
  .dp-host { grid-template-columns: minmax(0, 1fr) 0; column-gap: 0; }
  .dp-host.dp-open { grid-template-columns: minmax(0, 1fr) var(--dp-w); column-gap: var(--dp-gap); }
  .dp { position: sticky; top: 64px; max-height: calc(100vh - 80px); }
  .dp-backdrop { display: none !important; }
}

/* ---- drawer (narrow desktop / tablet) ----------------------------------- */
@media (max-width: 1399.98px) {
  .dp {
    position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
    width: min(var(--dp-w-drawer), 100vw); max-height: none; border-radius: 0;
    border-top: 0; border-right: 0; border-bottom: 0;
    transform: translateX(100%); box-shadow: -10px 0 30px rgba(15, 23, 42, .16);
  }
  .dp-head { border-radius: 0; padding-top: 16px; }
  .dp-host.dp-open .dp { transform: translateX(0); }
  body.dp-locked { overflow: hidden; }
}

/* ---- full screen (mobile) ----------------------------------------------- */
@media (max-width: 767.98px) {
  .dp { width: 100vw; }
  .dp-head { padding: 14px 14px 0; }
  .dp-body { padding: 14px 14px 24px; }
  .dp-kv-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .dp-kv-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .dp, .dp-backdrop, .dp-host { transition: none !important; }
}

/* ==========================================================================
   PAGESPEED + BACKLINKS — layout, density and responsive polish
   Scoped to .page-ps / .page-bl so other pages keep their approved sizing.
   ========================================================================== */

/* ---- page header: title and actions wrap instead of overlapping --------- */
.page-ps .seo-heading, .page-bl .seo-heading {
  position: static; display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 12px 20px; padding-right: 0; margin-bottom: 4px;
}
.page-ps .seo-heading-main, .page-bl .seo-heading-main { flex: 1 1 420px; min-width: 0; }
.page-bl .page-subtitle { max-width: 78ch; }
.page-ps .ps-actions, .page-bl .bl-actions {
  position: static; top: auto; right: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 10px; margin-left: auto; flex: 0 1 auto;
}
.page-ps .ps-actions > *, .page-bl .bl-actions > * { flex: 0 0 auto; }

/* ---- PageSpeed header + KPI strip: matched to SEO Overview -------------- */
/* seo.php is the reference: .seo-heading padding 14/15, 14px subtitle, 36px
   controls, and a .seo-kpi-strip whose items use 0 4px 0 16px + 13px body gap. */
.page-ps .seo-heading-ps { padding: 14px 0 15px 3px; }
.page-ps .seo-heading-ps .breadcrumb-seo { font-size: 13px; }
.page-ps .page-title-ps { margin-top: 6px; }
.page-ps .seo-heading-ps .page-subtitle {
  margin-top: 3px; font-size: 14px; line-height: 17px; color: var(--text-tertiary-2); white-space: normal;
}
.page-ps .ps-actions { top: 26px; gap: 12px; }
.page-ps .seg-control-ps { height: 36px; border-radius: 8px; }
.page-ps .seg-control-ps .seg-btn { height: 100%; padding: 0 14px; font-size: 12.5px; font-weight: 500; gap: 8px; }
.page-ps .seg-control-ps .seg-btn .btn-icon { width: 15px; height: 15px; }
.page-ps .control-date-ps { height: 36px; padding: 0 12px 0 14px; font-size: 12.5px; font-weight: 500; }
.page-ps .control-date-ps .control-icon { width: 15px; height: 15px; margin-right: 9px; }
.page-ps .control-compare-ps { height: 36px; padding: 0 12px 0 16px; font-size: 12.5px; font-weight: 500; }
.page-ps .control-compare-ps .control-icon { width: 15px; height: 15px; margin-right: 9px; }
.page-ps .split-btn .btn { height: 36px; font-size: 12.5px; font-weight: 500; }
.page-ps .split-btn-main { padding: 0 14px; gap: 9px; border-radius: 8px 0 0 8px !important; }
.page-ps .split-btn-main .btn-icon { width: 15px; height: 15px; }
.page-ps .split-btn-toggle { width: 34px; border-radius: 0 8px 8px 0 !important; }

.page-ps .ps-kpi-strip { flex-wrap: wrap; row-gap: 14px; margin-bottom: 14px; }
.page-ps .ps-kpi { flex: 1 1 152px; padding: 0 4px 0 16px; }
.page-ps .ps-kpi .seo-kpi-body { margin-left: 13px; min-height: 83px; }
.page-ps .ps-kpi .seo-kpi-value { font-size: 18.5px; line-height: 22px; letter-spacing: -.4px; }
.page-ps .ps-kpi .seo-kpi-label {
  margin-top: 2px; font-size: 11px; line-height: 14px; letter-spacing: -.1px;
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word;
}
.page-ps .ps-kpi .seo-kpi-trend { margin-top: 11px; }
.page-ps .ps-kpi .seo-kpi-trend .kpi-trend { height: 16px; font-size: 11px; }
.page-ps .ps-kpi-sub { margin-top: 5px; font-size: 10.5px; line-height: 13px; color: var(--muted); white-space: normal; }
.page-ps .ps-kpi-icon { flex-basis: 40px; width: 40px; height: 40px; margin-top: 5px; }
.page-ps .ps-kpi-icon > .icon { width: 19px; height: 19px; }
.page-ps .ps-kpi-ring { flex: 0 0 40px; width: 40px; height: 40px; margin-top: 5px; }
.page-ps .ps-kpi-ring > span { width: 29px; height: 29px; font-size: 11px; }

.page-bl .bl-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 0 0 18px;
}
.page-bl .bl-kpi-card { height: auto; min-height: 100px; padding: 20px; display: flex; align-items: center; }
.page-bl .bl-kpi { align-items: center; gap: 14px; width: 100%; padding: 0; border-left: 0; }
.page-bl .bl-kpi + .bl-kpi { border-left: 0; }
.page-bl .seo-kpi-body { margin-left: 0; min-width: 0; }
.page-bl .seo-kpi-value { font-size: 28px; font-weight: 700; line-height: 34px; letter-spacing: -.6px; color: var(--text); }
.page-bl .seo-kpi-label {
  margin-top: 4px; font-size: 13.5px; font-weight: 500; line-height: 18px; letter-spacing: 0;
  color: var(--text-3); white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word;
}
.page-bl .seo-kpi-sub { margin-top: 6px; font-size: 12.5px; line-height: 16px; color: var(--text-muted); white-space: normal; }
.page-bl .seo-kpi-trend { margin-top: 7px; }
.page-bl .seo-kpi-trend .kpi-trend { height: 18px; font-size: 12px; }
.page-bl .bl-kpi-icon { flex: 0 0 44px; width: 44px; height: 44px; margin-top: 0; align-self: center; }
.page-bl .bl-kpi-icon > .icon { width: 22px; height: 22px; }

/* ---- charts: fixed-height containers, nothing squashed ----------------- */
.page-ps .chart-area, .page-bl .chart-area { min-width: 0; }
.page-ps .chart-area canvas, .page-bl .chart-area canvas { max-width: 100%; }
.page-ps .ps-trend-card { height: auto; min-height: 237px; padding: 14px 16px 12px; }
.page-ps .chart-area-ps-trend { height: 170px; }
.page-ps .ps-row > *, .page-bl .bl-row > * { min-width: 0; }

/* ---- filter bar: wraps at every width ---------------------------------- */
.page-ps .seo-filter-bar, .page-bl .seo-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px;
}
.page-ps .seo-filter-bar .filter-search, .page-bl .seo-filter-bar .filter-search {
  flex: 1 1 240px; width: auto; min-width: 200px; max-width: 320px;
}
.page-ps .seo-filter-bar .filter-control, .page-bl .seo-filter-bar .filter-control {
  flex: 1 1 132px; width: auto !important; min-width: 124px; max-width: 190px;
}
.page-ps .seo-filter-bar .btn-more-filter, .page-bl .seo-filter-bar .btn-more-filter { margin-left: 0; }
.page-ps .seo-filter-bar .btn, .page-bl .seo-filter-bar .btn { flex: 0 0 auto; }

/* ---- backlinks status tab row: wraps, never clipped -------------------- */
.page-bl .bl-tabs-row { height: auto; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; padding-left: 0; }
.page-bl .bl-tabs { height: auto; flex-wrap: wrap; gap: 4px 6px; }
.page-bl .bl-tabs-actions { flex-wrap: wrap; }
.page-bl .bl-tab { height: 32px; white-space: nowrap; }

/* ---- tables: readable, aligned, scrollable ----------------------------- */
.page-ps .sites-table-scroll, .page-bl .sites-table-scroll {
  overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.page-ps .ps-table, .page-bl .bl-table { width: 100%; min-width: 1120px; table-layout: auto; }
.page-ps .sites-table.ps-table thead th, .page-bl .sites-table.bl-table thead th {
  height: auto; padding: 11px 12px; font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .045em; color: var(--text-muted);
  white-space: nowrap; vertical-align: middle; background: var(--bg-subtle-3);
}
.page-ps .sites-table.ps-table tbody td, .page-bl .sites-table.bl-table tbody td {
  height: auto; padding: 13px 12px; font-size: 14px; letter-spacing: 0;
  vertical-align: middle; color: var(--text-2);
}
.page-ps .ps-table .table-link, .page-bl .bl-table .table-link { font-size: 14px; letter-spacing: 0; }
.page-ps .ps-table .td-muted, .page-bl .bl-table .td-muted { color: var(--text-muted); }
.page-ps .ps-table .status-pill, .page-bl .bl-table .status-pill,
.page-bl .bl-table .type-pill { height: 24px; padding: 0 9px; font-size: 12px; gap: 6px; letter-spacing: 0; }
.page-bl .bl-table .status-pill-dot, .page-bl .bl-table .type-pill-dot { width: 6px; height: 6px; }
.page-ps .ps-table .score-chip { min-width: 34px; height: 24px; font-size: 12.5px; }

/* identifier columns keep their full value */
.page-ps .ps-table td:nth-child(3), .page-ps .ps-table th:nth-child(3) { min-width: 210px; }
.page-bl .bl-table td:nth-child(3), .page-bl .bl-table th:nth-child(3) { min-width: 205px; }
.page-bl .bl-table td:nth-child(4), .page-bl .bl-table th:nth-child(4) { min-width: 180px; }
.page-bl .bl-table td:nth-child(6), .page-bl .bl-table th:nth-child(6) { min-width: 150px; }
.page-ps .ps-domain, .page-bl .bl-domain { white-space: nowrap; }
.page-bl .bl-table .td-anchor { color: var(--text-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sticky identifier group while scrolling sideways */
.page-ps .ps-table th:nth-child(-n+3), .page-ps .ps-table td:nth-child(-n+3),
.page-bl .bl-table th:nth-child(-n+3), .page-bl .bl-table td:nth-child(-n+3) {
  position: sticky; z-index: 1; background: var(--bg-surface);
}
.page-ps .ps-table thead th:nth-child(-n+3), .page-bl .bl-table thead th:nth-child(-n+3) { z-index: 3; background: var(--bg-subtle-3); }
.page-ps .ps-table th:nth-child(1), .page-ps .ps-table td:nth-child(1),
.page-bl .bl-table th:nth-child(1), .page-bl .bl-table td:nth-child(1) { left: 0; width: 46px; }
.page-ps .ps-table th:nth-child(2), .page-ps .ps-table td:nth-child(2),
.page-bl .bl-table th:nth-child(2), .page-bl .bl-table td:nth-child(2) { left: 46px; width: 44px; }
.page-ps .ps-table th:nth-child(3), .page-ps .ps-table td:nth-child(3),
.page-bl .bl-table th:nth-child(3), .page-bl .bl-table td:nth-child(3) { left: 90px; box-shadow: 1px 0 0 var(--border-subtle); }

/* ---- clickable rows ---------------------------------------------------- */
.dp-row { cursor: pointer; }
.dp-row:hover > td { background: var(--bg-hover); }
.dp-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.dp-row.is-dp-selected > td { background: var(--bg-selected-6); }
.dp-row.is-dp-selected > td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.dp-row .bl-action-btn, .dp-row .row-more { position: relative; z-index: 2; }

/* ---- backlinks bottom widgets: equal height, reflowing ----------------- */
.page-bl .bl-bottom {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; align-items: stretch; margin-top: 4px;
}
.page-bl .bl-bottom-card { height: auto; min-height: 196px; display: flex; flex-direction: column; padding: 16px; }
.page-bl .bl-bottom-header { height: auto; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.page-bl .bl-bottom-header .card-title { font-size: 14px; }
.page-bl .bl-bottom-header .view-all { margin-left: auto; font-size: 12.5px; }
.page-bl .bl-bottom-card > ul, .page-bl .bl-bottom-card > .bl-bottom-list { flex: 1 1 auto; }
.page-bl .bl-bottom-card li { overflow-wrap: anywhere; }

/* ---- responsive ties --------------------------------------------------- */
@media (max-width: 1400px) {
  .page-ps .ps-row-charts, .page-ps .ps-row-queue, .page-bl .bl-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .page-ps .ps-actions, .page-bl .bl-actions { width: 100%; justify-content: flex-start; }
  .page-ps .seo-filter-bar .filter-control, .page-bl .seo-filter-bar .filter-control { max-width: none; }
}
@media (max-width: 767.98px) {
  .page-bl .bl-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .page-bl .bl-kpi-card { padding: 16px; min-height: 88px; }
  .page-bl .seo-kpi-value { font-size: 24px; line-height: 29px; }
  .page-ps .ps-kpi { flex-basis: 132px; }
  .page-ps .seo-filter-bar .filter-search, .page-bl .seo-filter-bar .filter-search { max-width: none; flex-basis: 100%; }
  /* sticky columns cost too much room on phones */
  .page-ps .ps-table th, .page-ps .ps-table td,
  .page-bl .bl-table th, .page-bl .bl-table td { position: static !important; box-shadow: none !important; }
}

/* ---- keep the main column shrinkable so the panel never pushes the page --- */
.dp-main, .dp-main > *, .dp-main section, .dp-main .dashboard-card { min-width: 0; }
.page-ps .sites-table-scroll, .page-bl .sites-table-scroll { max-width: 100%; min-width: 0; }
.page-ps .ps-table-card, .page-bl .bl-table-card { overflow: hidden; }

/* ---- panel refinements -------------------------------------------------- */
.dp [hidden] { display: none !important; }
.dp-grade { white-space: nowrap; }
.dp-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tab { padding: 8px 9px 9px; font-size: 12px; flex: 0 0 auto; }
.dp-scores { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.dp-score { padding: 11px 10px; gap: 10px; }
.dp-ring { flex-basis: 44px; width: 44px; height: 44px; }
.dp-ring > span { width: 34px; height: 34px; font-size: 13px; }
.dp-score-label { font-size: 11.5px; line-height: 15px; }

/* ---- backlinks analytics row: reflow instead of squeezing the legends --- */
.page-bl .bl-analytics {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-bottom: 16px;
}
.page-bl .bl-chart-card { height: auto; min-height: 176px; padding: 16px; }
.page-bl .bl-mini-legend li { height: auto; min-height: 20px; padding: 1px 0; font-size: 11.5px; letter-spacing: 0; white-space: normal; }
.page-bl .bl-mini-legend .bl-legend-pct { font-size: 11px; color: var(--text-muted); }
.page-bl .bl-mini-legend { margin-left: 12px; }
.page-bl .bl-chart-card .card-title { font-size: 14px; }

/* ---- backlinks bottom lists: full domain names, no ellipsis ------------- */
.page-bl .bl-analytics { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.page-bl .bl-list { display: flex; flex-direction: column; gap: 2px; }
.page-bl .bl-list-row { height: auto; min-height: 30px; gap: 8px; padding: 3px 0; align-items: flex-start; flex-wrap: wrap; }
.page-bl .bl-list-icon { margin-top: 2px; }
.page-bl .bl-list-text { font-size: 12.5px; line-height: 18px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.page-bl .bl-list-text .table-link { font-size: 12.5px; letter-spacing: 0; }
.page-bl .bl-list-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.page-bl .bl-list-in { width: auto; min-width: 62px; }
.page-bl .bl-list-cost { width: auto; min-width: 34px; font-size: 12px; }
.page-bl .bl-activity-row { align-items: flex-start; }
.page-bl .bl-bottom-card .card-icon { flex: 0 0 22px; width: 22px; height: 22px; }
.page-bl .bl-bottom-card .card-icon .icon { width: 13px; height: 13px; }
.page-bl .bl-list-row { flex-wrap: nowrap; }
.page-bl .bl-list-text { flex: 1 1 auto; min-width: 0; }
.page-bl .bl-list-meta, .page-bl .bl-list-cost { flex: 0 0 auto; white-space: nowrap; }
@media (min-width: 1400px) { .dp { min-width: 0; overflow: hidden; } }

/* ---- PageSpeed header ---------------------------------------------------
   The four controls need 855px and the title 364px, so they only share a row
   once the content column passes ~1245px (≈1490px viewport). Above that the
   header matches SEO Overview exactly; below it the controls take their own
   right-aligned row so nothing ever overlaps. */
@media (min-width: 1490px) {
  .page-ps .seo-heading-ps { position: relative; display: block; }
  .page-ps .ps-actions { position: absolute; right: 0; top: 26px; width: auto; justify-content: flex-end; }
  .page-ps .seo-heading-ps .seo-heading-main { padding-right: 0; }
  .page-ps .seo-heading-ps .page-title-ps { max-width: calc(100% - 890px); }
  .page-ps .seo-heading-ps .page-subtitle { max-width: 100%; white-space: nowrap; }
}
/* seo.php has no extra gap between heading and KPI strip — match it */
.page-ps .ps-main { padding-top: 0; }

/* ---- finance pages: the slide-over drawer replaced the always-on rail ---- */
.fin-layout-full { grid-template-columns: minmax(0, 1fr) !important; column-gap: 0 !important; }
.fin-layout-full > .fin-main { min-width: 0; }

/* ==========================================================================
   GEOs (COUNTRIES) — rebuilt page (design-reference/geos-main.png)
   Prefix .geo- , scoped to .page-geos-v2. Uses the shared filter controls
   from the "FILTERS" block and the app's theme tokens, so dark mode and the
   filter bar behave exactly as they do everywhere else.
   ========================================================================== */
.page-geos-v2 {
  --geo-gap: 16px;
  --geo-pad: 20px;
  --geo-radius: 12px;
  --geo-map-1: #BFDBFE; --geo-map-2: #60A5FA; --geo-map-3: #2563EB; --geo-map-4: #1E40AF;
  --geo-map-base: #DDE3EC; --geo-map-line: var(--bg-surface); --geo-map-bg: #F4F7FB;
  padding: 0 20px 24px;
}
html[data-theme="dark"] .page-geos-v2 {
  --geo-map-1: #1E3A5F; --geo-map-2: #1D4ED8; --geo-map-3: #3B82F6; --geo-map-4: #60A5FA;
  --geo-map-base: #1B2E43; --geo-map-line: #0B1724; --geo-map-bg: #0B1724;
}

/* ---- 1. breadcrumb bar ---------------------------------------------- */
.geo-topbar { display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; }
.geo-topbar-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); color: var(--text-2); text-decoration: none; }
.geo-topbar-btn:hover { background: var(--bg-subtle); color: var(--text); border-color: var(--border-strong); }
.geo-topbar-btn .icon { width: 15px; height: 15px; }
.geo-crumb { padding: 0; margin-left: 4px; font-size: 13px; }
.geo-crumb .breadcrumb-current { color: var(--text-2); font-weight: 500; }

/* ---- 2. page header -------------------------------------------------- */
.geo-header { display: flex; align-items: flex-start; gap: 14px; padding: 2px 0 18px; }
.geo-header-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--tint-info); color: var(--text-link); }
.geo-header-icon .icon { width: 24px; height: 24px; }
.geo-header-text { flex: 1 1 auto; min-width: 0; }
/* the reference shows the title sitting on top of the subtitle — an explicit
   line-height + margin on both keeps them apart at every font size */
.geo-header-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 34px; letter-spacing: -.5px; color: var(--text); }
.geo-header-sub { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--text-tertiary-2); }
.geo-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-top: 3px; }
.geo-btn { height: 38px; padding: 0 14px; gap: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.geo-btn .btn-icon { width: 16px; height: 16px; }
.geo-btn-sm { height: 32px; padding: 0 10px; font-size: 12px; gap: 6px; }
.geo-btn-add { background: var(--primary); color: #fff; border-color: var(--primary); }
.geo-btn-add:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.geo-btn-add .btn-icon { color: #fff; }

/* ---- 3. stat cards --------------------------------------------------- */
.geo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--geo-gap); margin-bottom: var(--geo-gap); }
.geo-stat { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 15px; border-radius: var(--geo-radius); }
.geo-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; }
.geo-stat-icon .icon { width: 22px; height: 22px; }
.geo-stat-body { flex: 1 1 auto; min-width: 0; }
.geo-stat-label { font-size: 12.5px; font-weight: 500; color: var(--text-tertiary-2); }
.geo-stat-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; min-width: 0; }
.geo-stat-value { font-size: 27px; font-weight: 700; line-height: 32px; letter-spacing: -.6px; color: var(--text); overflow-wrap: anywhere; }
.geo-stat-sub { margin-top: 2px; font-size: 11px; line-height: 15px; color: var(--muted); white-space: nowrap; }

/* tone tiles + delta pills, shared by every block on the page */
.geo-tone-blue   { background: var(--tint-info);    color: var(--text-link); }
.geo-tone-green  { background: var(--tint-success); color: var(--text-success); }
.geo-tone-amber  { background: var(--tint-warning); color: var(--text-warning); }
.geo-tone-red    { background: var(--tint-danger);  color: var(--text-danger); }
.geo-tone-purple { background: var(--tint-purple);  color: var(--text-purple); }
.geo-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.geo-delta-up { color: var(--text-success); }
.geo-delta-down { color: var(--text-danger); }
.geo-delta-icon { width: 12px; height: 12px; stroke-width: 2.6; }
.geo-delta-down .geo-delta-icon { transform: rotate(180deg); }
.geo-delta-sm { font-size: 11px; }

/* ---- shared card chrome --------------------------------------------- */
.geo-map-card, .geo-side-card, .geo-opp-card, .geo-dist-card, .geo-table-card, .geo-bottom-card { padding: var(--geo-pad); border-radius: var(--geo-radius); }
.geo-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.geo-card-head-sm { align-items: center; margin-bottom: 14px; }
.geo-card-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
.geo-card-ico .icon { width: 19px; height: 19px; }
.geo-card-headtext { flex: 1 1 auto; min-width: 0; }
.geo-card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 21px; letter-spacing: -.2px; color: var(--text); overflow-wrap: anywhere; }
.geo-card-sub { margin: 2px 0 0; font-size: 13px; line-height: 17px; color: var(--text-tertiary-2); overflow-wrap: anywhere; }
.geo-card-head-sm .geo-card-title { flex: 1 1 auto; }
.geo-card-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.geo-mini-empty { padding: 18px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

.geo-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg-subtle-10); }
.geo-seg-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.geo-seg-btn:hover { color: var(--text); }
.geo-seg-btn.is-active { background: var(--primary); color: #fff; }

/* ---- 4. map ---------------------------------------------------------- */
.geo-map-row { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: var(--geo-gap); margin-bottom: var(--geo-gap); align-items: stretch; }
.geo-map-card { display: flex; flex-direction: column; }
.geo-map { position: relative; flex: 1 1 auto; min-height: 392px; border-radius: 10px; background: var(--geo-map-bg); overflow: hidden; }
.geo-map-canvas { position: absolute; inset: 0; display: flex; align-items: stretch; justify-content: center; padding: 2px 2px 22px; }
.wmap-svg { width: 100%; height: 100%; }
.geo-map-canvas .wmap-svg { object-fit: contain; }
.wmap-countries path { fill: var(--geo-map-base); stroke: var(--geo-map-line); stroke-width: .5; transition: fill .12s ease; }
.wmap-countries path.is-geo { cursor: pointer; }
.wmap-countries path.lv1 { fill: var(--geo-map-1); }
.wmap-countries path.lv2 { fill: var(--geo-map-2); }
.wmap-countries path.lv3 { fill: var(--geo-map-3); }
.wmap-countries path.lv4 { fill: var(--geo-map-4); }
.wmap-countries path.is-hover { fill: var(--text-link); stroke: var(--bg-surface); stroke-width: 1; }
.geo-map-missing { margin: auto; font-size: 12.5px; color: var(--muted); }

.geo-map-tiles { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.geo-map-tile { display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 8px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
.geo-map-tile-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; background: var(--tint-info); color: var(--text-link); }
.geo-map-tile-ico .icon { width: 15px; height: 15px; }
.geo-map-tile-value { font-size: 16px; font-weight: 700; line-height: 19px; color: var(--text); }
.geo-map-tile-label { font-size: 11px; color: var(--muted); }

.geo-map-zoom { position: absolute; right: 14px; bottom: 40px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.geo-zoom-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface); color: var(--text-2); cursor: pointer; }
.geo-zoom-btn:hover:not(:disabled) { background: var(--bg-subtle); color: var(--text); }
.geo-zoom-btn:disabled { opacity: .4; cursor: default; }
.geo-zoom-btn .icon { width: 14px; height: 14px; }

.geo-map-legend { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.geo-legend-label { font-weight: 600; color: var(--text-2); }
.geo-legend-bar { display: inline-block; width: 108px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--geo-map-1), var(--geo-map-2), var(--geo-map-3), var(--geo-map-4)); }

.geo-map-tip { position: absolute; z-index: 5; min-width: 172px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); box-shadow: 0 8px 24px rgba(15, 23, 42, .14); pointer-events: none; }
.geo-map-tip[hidden] { display: none; }
.geo-tip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--text); }
.geo-tip-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 11.5px; line-height: 18px; }
.geo-tip-k { color: var(--muted); }
.geo-tip-v { font-weight: 600; color: var(--text-2); }
.geo-tip-up { color: var(--text-success); }
.geo-tip-down { color: var(--text-danger); }

/* ---- 5. right column ------------------------------------------------- */
.geo-map-side { display: flex; flex-direction: column; gap: var(--geo-gap); min-width: 0; }
.geo-side-card { display: flex; flex-direction: column; }
.geo-donut-row { display: flex; align-items: center; gap: 16px; }
.geo-donut-wrap { position: relative; flex: 0 0 128px; width: 128px; height: 128px; }
.geo-donut-wrap-lg { flex-basis: 148px; width: 148px; height: 148px; }
.geo-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.geo-donut-value { font-size: 19px; font-weight: 700; line-height: 22px; letter-spacing: -.4px; color: var(--text); }
.geo-donut-label { font-size: 10.5px; color: var(--muted); }
.geo-legend-list { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.geo-legend-list li { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 12.5px; color: var(--text-2); }
.geo-legend-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.geo-legend-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-legend-pct { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.geo-legend-val { flex: 0 0 auto; min-width: 44px; text-align: right; font-weight: 600; color: var(--text); }

.geo-top-table, .geo-activity-table { width: 100%; border-collapse: collapse; }
.geo-top-table th, .geo-activity-table th { padding: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border-soft); }
.geo-top-table td, .geo-activity-table td { padding: 0 6px 0 0; height: 38px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border-soft); }
.geo-activity-table { table-layout: fixed; }
.geo-activity-table th:nth-child(1), .geo-activity-table td:nth-child(1) { width: 22px; }
.geo-activity-table th:nth-child(2), .geo-activity-table td:nth-child(2) { width: 30%; }
.geo-activity-table th:nth-child(3), .geo-activity-table td:nth-child(3) { width: 25%; }
.geo-activity-table th:nth-child(4), .geo-activity-table td:nth-child(4) { width: 20%; }
.geo-activity-table td { font-size: 11.5px; }
.geo-activity-table .geo-act { gap: 6px; min-width: 0; }
.geo-activity-table .geo-act-ico { flex-basis: 19px; width: 19px; height: 19px; }
.geo-activity-table .geo-act-ico .icon { width: 11px; height: 11px; }
.geo-activity-table .geo-flag { flex-basis: 16px; width: 16px; height: 11px; }
.geo-activity-table .geo-country-link { gap: 6px; font-size: 11.5px; }
.geo-activity-table td span, .geo-activity-table .geo-country-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-activity-table .geo-act { min-width: 0; }
.geo-top-table tr:last-child td, .geo-activity-table tr:last-child td { border-bottom: 0; }
.geo-top-table tbody tr:hover td, .geo-activity-table tbody tr:hover td { background: var(--bg-subtle); }
.geo-top-rank { width: 22px; font-weight: 600; color: var(--muted); }
.ta-r { text-align: right; }
.geo-num { font-weight: 600; color: var(--text); }
.geo-nowrap { white-space: nowrap; }

.geo-country-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-link); font-weight: 500; text-decoration: none; }
.geo-country-link:hover { text-decoration: underline; }
.geo-flag { flex: 0 0 20px; width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .07); }
.geo-flag-lg { flex-basis: 30px; width: 30px; height: 21px; border-radius: 3px; }

/* ---- 6. opportunity + distribution ----------------------------------- */
.geo-opp-row { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: var(--geo-gap); margin-bottom: var(--geo-gap); align-items: stretch; }
.geo-opp-card, .geo-dist-card { display: flex; flex-direction: column; }
.geo-opp-body { display: grid; grid-template-columns: minmax(0, 1fr) 188px; gap: 18px; flex: 1 1 auto; }
.geo-scatter-wrap { position: relative; min-height: 210px; height: 100%; }
.geo-opp-list { display: flex; flex-direction: column; gap: 6px; }
.geo-opp-list-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--text-success); }
.geo-opp-list-ico { width: 14px; height: 14px; }
.geo-opp-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 9px; border-radius: 9px; background: var(--bg-subtle); text-decoration: none; }
.geo-opp-item:hover { background: var(--bg-hover); }
.geo-opp-item-text { flex: 1 1 auto; min-width: 0; }
.geo-opp-item-name { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.geo-opp-item-why { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-opp-score { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--text-2); }

.geo-dist-body { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1 1 auto; }
.geo-dist-body .geo-legend-list { width: 100%; }

/* ---- 7-8. filter bar + chips ----------------------------------------- */
.geo-filter-bar { display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--geo-radius); }
.geo-filter-bar .filter-search { flex: 1 1 200px; min-width: 120px; }
.geo-filter-bar .filter-control { flex: 0 1 auto; min-width: 0; width: 132px; }
.geo-filter-bar .btn-more-filter { flex: 0 0 auto; margin-left: auto; }
.geo-chip-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.geo-chip-row .quick-filters { flex: 1 1 auto; margin: 0; }
.filter-chip-ico { width: 13px; height: 13px; }
.geo-view-toggle { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.geo-view-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.geo-view-btn:hover { background: var(--bg-subtle); color: var(--text); }
.geo-view-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.geo-view-ico { width: 15px; height: 15px; }

/* ---- 9. table -------------------------------------------------------- */
.geo-table-card { padding: 0; }
.geo-table-scroll { overflow-x: auto; border-radius: var(--geo-radius) var(--geo-radius) 0 0; }
.geo-table { width: 100%; border-collapse: collapse; min-width: 1215px; }
.geo-table thead th { height: 40px; padding: 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-align: left; white-space: nowrap; background: var(--bg-subtle-3); border-bottom: 1px solid var(--border-soft); }
.geo-table thead th.ta-r { text-align: right; }
.geo-table thead th.ta-r .th-sort { justify-content: flex-end; }
.geo-table .th-sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; color: inherit; font: inherit; text-decoration: none; }
.geo-table .th-sort:hover { color: var(--text); }
.geo-table tbody td { height: 46px; padding: 0 8px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.geo-table tbody tr:last-child td { border-bottom: 0; }
.geo-table tbody tr:hover td { background: var(--bg-subtle); }
.geo-table .th-check, .geo-table .td-check { width: 34px; padding-left: 14px; }
.geo-table .td-check { line-height: 0; }
.geo-table .th-num, .geo-table .td-num { width: 34px; color: var(--muted); }
.geo-table .td-muted { color: var(--muted); }
.geo-profit { font-weight: 600; color: var(--text-success); }
.geo-profit.is-negative { color: var(--text-danger); }
.geo-table .row-actions { display: inline-flex; align-items: center; gap: 6px; }
/* keep the country column readable while the rest scrolls */
.geo-table tbody td:nth-child(3), .geo-table thead th:nth-child(3) { position: sticky; left: 0; z-index: 1; background: var(--bg-surface); }
.geo-table thead th:nth-child(3) { background: var(--bg-subtle-3); }
.geo-table tbody tr:hover td:nth-child(3) { background: var(--bg-subtle); }
.geo-table th:nth-child(14), .geo-table td:nth-child(14) { min-width: 96px; }
.geo-table th:last-child, .geo-table td:last-child { min-width: 96px; padding-right: 14px; }
.geo-table .btn-view { height: 26px; padding: 0 11px; font-size: 12px; }
.geo-table .row-more .btn-icon-only { width: 26px; height: 26px; }
.geo-table-footer { padding: 12px 16px; border-top: 1px solid var(--border-soft); }

/* cards view */
.geo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 16px; }
.geo-card-item { display: block; padding: 14px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); text-decoration: none; }
.geo-card-item:hover { border-color: var(--border-primary); box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.geo-card-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.geo-card-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.geo-card-item-region { font-size: 11.5px; color: var(--muted); }
.geo-card-item-top .status-pill { margin-left: auto; }
.geo-card-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.geo-card-item-grid div { display: flex; flex-direction: column; }
.geo-card-item-grid span { font-size: 11px; color: var(--muted); }
.geo-card-item-grid strong { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ---- 11. bottom row -------------------------------------------------- */
.geo-bottom-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--geo-gap); margin-top: var(--geo-gap); align-items: stretch; }
.geo-bottom-card { display: flex; flex-direction: column; }
.geo-act { display: inline-flex; align-items: center; gap: 8px; }
.geo-act-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; }
.geo-act-ico .icon { width: 13px; height: 13px; }
.geo-qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; align-content: start; }
.geo-qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 12px 8px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); font-size: 11.5px; font-weight: 500; color: var(--text-2); text-align: center; text-decoration: none; }
.geo-qa:hover { border-color: var(--border-primary); background: var(--bg-hover); color: var(--text); }
.geo-qa-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; }
.geo-qa-ico .icon { width: 17px; height: 17px; }
.geo-insights { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.geo-insight { display: flex; align-items: flex-start; gap: 10px; }
.geo-insight-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; }
.geo-insight-ico .icon { width: 15px; height: 15px; }
.geo-insight-text { min-width: 0; }
.geo-insight-title { display: block; font-size: 12.5px; font-weight: 600; line-height: 17px; color: var(--text); }
.geo-insight-sub { display: block; margin-top: 1px; font-size: 11.5px; line-height: 16px; color: var(--muted); }

/* ---- 12. sidebar support card ---------------------------------------- */
.sidebar-support { margin-top: 10px; padding: 12px; border: 1px solid var(--sidebar-border); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.sidebar-support-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #fff; }
.sidebar-support-ico { width: 15px; height: 15px; color: var(--sidebar-muted); }
.sidebar-support-text { margin: 4px 0 9px; font-size: 11px; line-height: 15px; color: var(--sidebar-muted); }
.sidebar-support-btn { display: block; height: 28px; line-height: 28px; border-radius: 7px; background: var(--sidebar-active); color: #fff; font-size: 11.5px; font-weight: 600; text-align: center; text-decoration: none; }
.sidebar-support-btn:hover { filter: brightness(1.08); }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 1600px) {
  .geo-opp-body { grid-template-columns: minmax(0, 1fr) 172px; }
}
@media (max-width: 1366px) {
  .geo-map-row, .geo-opp-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .geo-filter-bar .filter-control { width: 118px; }
}
@media (max-width: 1180px) {
  .geo-map-row, .geo-opp-row { grid-template-columns: minmax(0, 1fr); }
  .geo-map-side { flex-direction: row; }
  .geo-map-side > * { flex: 1 1 0; min-width: 0; }
  .geo-donut-row { flex-wrap: wrap; justify-content: center; }
  .geo-donut-row .geo-legend-list { flex-basis: 100%; }
  .geo-bottom-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-bottom-row > *:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .page-geos-v2 { padding: 0 14px 20px; }
  .geo-header { flex-wrap: wrap; }
  .geo-header-actions { width: 100%; padding-top: 0; }
  .geo-map-side { flex-direction: column; }
  .geo-opp-body { grid-template-columns: minmax(0, 1fr); }
  .geo-bottom-row, .geo-bottom-row > *:last-child { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
  .geo-filter-bar { flex-wrap: wrap; }
  .geo-filter-bar .filter-control { width: calc(50% - 5px); }
  .geo-chip-row { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .geo-header-title { font-size: 23px; line-height: 29px; }
  .geo-stat-value { font-size: 23px; line-height: 28px; }
  .geo-map { min-height: 260px; }
  .geo-map-tiles { gap: 6px; }
  .geo-map-tile { padding: 6px 9px 6px 7px; }
  .geo-donut-row { flex-direction: column; }
  .geo-qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-filter-bar .filter-control { width: 100%; }
}

/* ==========================================================================
   CLOUDFLARE ACCOUNTS — content area
   Reference: design-reference/cloudflare-accounts.png (content only; the
   sidebar and topbar are the project's shared shell and are untouched).
   ========================================================================== */
:root {
  --cfa-orange: #F6821F;
  --cfa-orange-2: #FBAD41;
  --cfa-gap: 15px;
  --cfa-rail: 212px;
}

.page-cfa { padding: 0 20px 22px 12px; }

/* ---- breadcrumb + heading ---------------------------------------------- */
.breadcrumb-cfa { padding: 14px 0 0; font-size: 13px; }
.cfa-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 20px; padding: 10px 0 16px; }
.cfa-heading-main { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 420px; min-width: 0; }
.cfa-heading-logo { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; color: var(--cfa-orange); }
.cfa-heading-logo .icon { width: 44px; height: 44px; }
.cfa-heading-text { min-width: 0; }
.cfa-title { margin: 0; font-size: 30px; line-height: 37px; font-weight: 700; letter-spacing: -.7px; color: var(--text-primary-2); }
.cfa-subtitle { margin: 3px 0 0; font-size: 14px; line-height: 19px; color: var(--text-tertiary); }
.cfa-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cfa-control { height: 42px; padding: 0 12px 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.cfa-control .control-icon { width: 16px; height: 16px; margin-right: 9px; color: var(--text-muted); }
.cfa-control .control-chevron { margin-left: 10px; width: 14px; height: 14px; }
.cfa-control-sm { height: 32px; padding: 0 8px 0 12px; font-size: 12.5px; border-radius: 8px; }
.cfa-control-sm .control-chevron { margin-left: 8px; }
.cfa-icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 10px; justify-content: center; }
.cfa-icon-btn .btn-icon { width: 17px; height: 17px; color: var(--text-2); }
.cfa-add { height: 42px; padding: 0 18px; gap: 9px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.cfa-add .btn-icon { width: 17px; height: 17px; }

.cfa-flash { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px;
  background: var(--tint-success); color: var(--text-success); font-size: 13px; font-weight: 600; }
.cfa-flash .icon { width: 16px; height: 16px; }
.cfa-hidden-form { display: none; }

/* ---- stat cards --------------------------------------------------------- */
.cfa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cfa-stat { display: flex; align-items: flex-start; gap: 13px; padding: 18px; border-radius: 14px; }
.cfa-stat-ico { flex: 0 0 42px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.cfa-stat-ico .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.cfa-stat-body { min-width: 0; flex: 1 1 auto; }
.cfa-stat-label { margin: 0; min-height: 36px; font-size: 13.5px; font-weight: 500; line-height: 18px; color: var(--text-tertiary); overflow-wrap: break-word; }
.cfa-stat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cfa-stat-value { font-size: 28px; font-weight: 700; line-height: 33px; letter-spacing: -.6px; color: var(--text-primary-2); }
.cfa-stat-sub { margin: 5px 0 0; font-size: 12.5px; line-height: 16px; color: var(--text-muted); overflow-wrap: break-word; }
.cfa-pill { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.cfa-pill-icon { width: 12px; height: 12px; }
.cfa-pill-up { background: var(--tint-success); color: var(--text-success); }
.cfa-pill-down { background: var(--tint-danger); color: var(--text-danger); }
.cfa-pill-flat { background: var(--bg-muted); color: var(--text-muted); }

/* tone tiles — shared by stat cards and quick actions */
.cfa-tone-blue { background: var(--tint-info); color: var(--text-link); }
.cfa-tone-sky { background: #E4F2FE; color: #1D8FE1; }
.cfa-tone-indigo { background: #E8ECFE; color: #4F5BD5; }
.cfa-tone-green { background: var(--tint-success); color: var(--fg-success); }
.cfa-tone-red { background: var(--tint-danger); color: var(--fg-danger); }
.cfa-tone-amber { background: var(--tint-warning); color: var(--fg-warning); }
.cfa-tone-violet { background: var(--tint-purple); color: var(--fg-purple); }
.cfa-tone-navy { background: var(--bg-muted-3); color: var(--text-secondary-2); }

/* ---- layout ------------------------------------------------------------- */
.cfa-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--cfa-rail); gap: var(--cfa-gap); align-items: start; }
.cfa-main { min-width: 0; display: flex; flex-direction: column; gap: var(--cfa-gap); }
.cfa-rail { min-width: 0; display: flex; flex-direction: column; gap: var(--cfa-gap); }

.cfa-row { display: grid; grid-template-columns: 375fr 403fr 271fr; gap: var(--cfa-gap); align-items: stretch; }
.cfa-row > * { min-width: 0; }
.cfa-card { display: flex; flex-direction: column; padding: 18px 20px 20px; border-radius: 14px; }
.cfa-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cfa-card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 21px; color: var(--text-primary-2); }
.cfa-link { font-size: 13px; font-weight: 500; color: var(--text-link); text-decoration: none; }
.cfa-link:hover { text-decoration: underline; }
.cfa-empty { margin: auto 0; padding: 22px 0; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ---- donuts ------------------------------------------------------------- */
.cfa-donut-row { display: flex; align-items: center; gap: 13px; flex: 1 1 auto; min-width: 0; }
.cfa-donut { position: relative; flex: 0 0 120px; width: 120px; height: 120px; }
.cfa-donut canvas { display: block; width: 100% !important; height: 100% !important; }
.cfa-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.cfa-donut-center strong { font-size: 23px; font-weight: 700; line-height: 27px; letter-spacing: -.5px; color: var(--text-primary-2); }
.cfa-donut-center small { font-size: 12px; color: var(--text-muted); }
.cfa-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cfa-legend li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.cfa-legend li > a { display: flex; align-items: center; gap: 8px; width: 100%; color: inherit; text-decoration: none; border-radius: 6px; }
.cfa-legend li > a:hover { color: var(--text-link); }
.cfa-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; }
.cfa-legend-name { flex: 1 1 auto; min-width: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfa-legend strong { font-weight: 600; color: var(--text-primary-2); }
.cfa-legend-pct { flex: 0 0 auto; font-size: 12.5px; color: var(--text-muted); }

/* ---- map ---------------------------------------------------------------- */
.cfa-map-row { display: flex; align-items: stretch; gap: 14px; flex: 1 1 auto; min-width: 0; }
.cfa-map { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.cfa-map-svg { width: 100%; height: auto; display: block; }
.cfa-map-svg .wmap-countries path, .cfa-map-svg path { fill: #DCE9F8; stroke: #EDF3FB; stroke-width: .5; }
.cfa-map-pins { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cfa-pin { cursor: pointer; }
.cfa-pin-glow { fill: var(--text-link); opacity: .16; transition: opacity .15s ease, r .15s ease; }
.cfa-pin-core { fill: var(--text-link); opacity: .9; }
.cfa-pin:hover .cfa-pin-glow, .cfa-pin:focus-visible .cfa-pin-glow { opacity: .3; }
.cfa-pin:focus-visible { outline: none; }
.cfa-pin:focus-visible .cfa-pin-core { stroke: var(--primary); stroke-width: 2; }
.cfa-map-tip { position: absolute; z-index: 5; transform: translate(-50%, -120%); padding: 5px 9px; border-radius: 7px;
  background: var(--bg-ink); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .22); }
.cfa-map-tip[hidden] { display: none; }
.cfa-geo-list { list-style: none; margin: 0; padding: 0; flex: 0 0 148px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cfa-geo-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.cfa-geo-list .flag { flex: 0 0 20px; width: 20px; height: 14px; border-radius: 3px; }
.cfa-geo-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfa-geo-list strong { font-weight: 600; color: var(--text-primary-2); }

/* ---- filter bar --------------------------------------------------------- */
.cfa-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cfa-search { flex: 1 1 280px; min-width: 220px; max-width: 320px; height: 52px; border-radius: 12px;
  border: 1px solid var(--card-border); background: var(--bg-surface); box-shadow: var(--shadow-card); }
.cfa-search .filter-search-icon { width: 17px; height: 17px; color: var(--text-muted); }
.cfa-search input { font-size: 13.5px; }
.cfa-select { position: relative; flex: 1 1 104px; min-width: 96px; max-width: 140px; height: 52px;
  border: 1px solid var(--card-border); border-radius: 12px; background: var(--bg-surface); box-shadow: var(--shadow-card); }
.cfa-select label { position: absolute; top: 8px; left: 13px; font-size: 11px; font-weight: 500; color: var(--text-muted); pointer-events: none; }
.cfa-select select { width: 100%; height: 100%; padding: 18px 30px 0 13px; border: 0; background: transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-primary-2); appearance: none; cursor: pointer; border-radius: inherit; }
.cfa-select select:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.cfa-select-chevron { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-muted); pointer-events: none; }
.cfa-more { flex: 0 0 auto; height: 52px; padding: 0 18px; gap: 9px; border-radius: 12px; font-size: 13.5px; font-weight: 500; }
.cfa-more .btn-icon { width: 16px; height: 16px; }
.cfa-reset { align-self: center; font-size: 13px; font-weight: 500; color: var(--text-link); }

/* ---- table -------------------------------------------------------------- */
.cfa-table-card { padding: 0; border-radius: 14px; overflow: hidden; }
.cfa-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 6px 20px 0; border-bottom: 1px solid var(--border-subtle); }
.cfa-tab { position: relative; padding: 13px 2px 12px; font-size: 13.5px; font-weight: 500; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.cfa-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; border-radius: 2px 2px 0 0; }
.cfa-tab:hover { color: var(--text-2); }
.cfa-tab.is-active { color: var(--text-link); font-weight: 600; }
.cfa-tab.is-active::after { background: var(--primary); }

.cfa-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.cfa-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.cfa-table thead th { height: 44px; padding: 0 9px; text-align: left; vertical-align: middle; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-muted);
  background: var(--bg-subtle-3); border-bottom: 1px solid var(--border-subtle); }
.cfa-table tbody td { height: 52px; padding: 0 9px; vertical-align: middle; font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border-subtle); }
.cfa-table tbody tr:last-child td { border-bottom: 0; }
.cfa-table tbody tr:hover td { background: var(--bg-hover); }
.cfa-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.cfa-sort:hover { color: var(--text-2); }
.cfa-sort-icon { width: 13px; height: 13px; opacity: .5; }
.cfa-sort.is-sorted { color: var(--text-link); }
.cfa-sort.is-sorted .cfa-sort-icon { opacity: 1; }
.cfa-th-check, .cfa-td-check { width: 44px; padding-left: 20px; padding-right: 0; }
.cfa-th-num, .cfa-td-num { width: 40px; color: var(--text-muted); }
.cfa-th-edit, .cfa-td-edit { width: 36px; padding-left: 0; padding-right: 0; }
.cfa-th-icon { width: 14px; height: 14px; opacity: .55; }
.cfa-th-name, .cfa-td-name { min-width: 170px; }
.cfa-td-email { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.cfa-th-n, .cfa-td-n { width: 78px; font-weight: 600; color: var(--text-primary-2); }
.cfa-th-actions, .cfa-td-actions { width: 76px; text-align: center; padding-right: 20px; }
.cfa-acct { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.cfa-mark { flex: 0 0 20px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--cfa-orange); }
.cfa-mark .icon { width: 20px; height: 20px; }
.cfa-acct-link { font-size: 14px; font-weight: 500; color: var(--text-link); text-decoration: none; white-space: nowrap; }
.cfa-acct-link:hover { text-decoration: underline; }
.cfa-edit { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; color: var(--text-disabled); }
.cfa-edit .icon { width: 14px; height: 14px; }
.cfa-edit:hover { background: var(--bg-muted); color: var(--text-link); }
.cfa-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0;
  border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }
.cfa-action-btn .icon { width: 16px; height: 16px; }
.cfa-action-btn:hover { background: var(--bg-muted); color: var(--text-2); }
.cfa-badge { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.cfa-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.cfa-badge-green { background: var(--tint-success); color: var(--text-success); }
.cfa-badge-amber { background: var(--tint-warning); color: var(--text-warning); }
.cfa-badge-red { background: var(--tint-danger); color: var(--text-danger); }
.cfa-badge-grey { background: var(--bg-muted); color: var(--text-muted); }

.cfa-empty-row td { height: auto !important; padding: 0 !important; }
.cfa-empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 54px 20px; text-align: center; }
.cfa-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-subtle); color: var(--cfa-orange); margin-bottom: 4px; }
.cfa-empty-ico .icon { width: 26px; height: 26px; }
.cfa-empty-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary-2); }
.cfa-empty-text { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); max-width: 42ch; }

.cfa-table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--border-subtle); }
.cfa-showing { font-size: 13px; color: var(--text-muted); }
.cfa-foot-right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cfa-rpp-label { font-size: 13px; color: var(--text-muted); }
.cfa-rpp { height: 34px; padding: 0 10px 0 12px; gap: 8px; border-radius: 8px; font-size: 13px; }
.cfa-pager { display: inline-flex; align-items: center; gap: 6px; }
.cfa-page { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface);
  font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.cfa-page:hover { background: var(--bg-hover); }
.cfa-page.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cfa-page.is-disabled { opacity: .45; pointer-events: none; }
.cfa-page .icon { width: 14px; height: 14px; }
.cfa-page-gap { padding: 0 2px; color: var(--text-muted); }

/* ---- right rail --------------------------------------------------------- */
.cfa-qa-card { padding: 18px 16px 18px; }
.cfa-qa-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cfa-qa { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 9px; border-radius: 10px;
  border: 1px solid var(--border-subtle); background: var(--bg-surface);
  font-size: 12.5px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.cfa-qa:hover { background: var(--bg-hover); border-color: var(--border-primary); color: var(--text-link); }
.cfa-qa-ico { flex: 0 0 24px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.cfa-qa-ico .icon { width: 15px; height: 15px; }
.cfa-qa > span:last-child { min-width: 0; overflow-wrap: break-word; }

.cfa-promo { position: relative; padding: 18px 16px 18px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #EFF6FF 0%, #F7FAFF 46%, var(--bg-surface) 100%); }
.cfa-promo-mark { display: flex; align-items: center; justify-content: center; height: 62px; margin-bottom: 12px; color: var(--cfa-orange); }
.cfa-promo-mark .icon { width: 64px; height: 64px; }
.cfa-promo-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-primary-2); }
.cfa-promo-text { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.cfa-promo-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cfa-promo-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.cfa-promo-check { flex: 0 0 16px; width: 16px; height: 16px; color: var(--fg-success); }
.cfa-promo-btn { width: 100%; height: 42px; margin-top: 16px; gap: 9px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.cfa-promo-arrow { width: 15px; height: 15px; transform: rotate(90deg); }

.cfa-tip { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border-radius: 14px; }
.cfa-tip-ico { flex: 0 0 22px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-warning); }
.cfa-tip-ico .icon { width: 20px; height: 20px; }
.cfa-tip-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary-2); }
.cfa-tip-text { margin: 4px 0 0; font-size: 12.5px; line-height: 17px; color: var(--text-muted); }

/* ---- dark mode ---------------------------------------------------------- */
html[data-theme="dark"] .cfa-map-svg path { fill: #1B2E44; stroke: #16273A; }
html[data-theme="dark"] .cfa-promo { background: linear-gradient(160deg, #12263B 0%, #102131 52%, var(--bg-surface) 100%); }
html[data-theme="dark"] .cfa-tone-sky { background: rgba(29, 143, 225, .18); color: #6FC3FF; }
html[data-theme="dark"] .cfa-tone-indigo { background: rgba(79, 91, 213, .2); color: #9AA6FF; }
html[data-theme="dark"] .cfa-search, html[data-theme="dark"] .cfa-select { box-shadow: none; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1500px) {
  .cfa-row { grid-template-columns: 1fr 1fr; }
  .cfa-card-map { grid-column: span 2; }
}
@media (max-width: 1240px) {
  .cfa-layout { grid-template-columns: minmax(0, 1fr); }
  .cfa-rail { flex-direction: row; flex-wrap: wrap; }
  .cfa-rail > * { flex: 1 1 280px; }
}
@media (max-width: 900px) {
  .cfa-row, .cfa-row .cfa-card-map { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
  .cfa-actions { width: 100%; margin-left: 0; }
}
@media (max-width: 767.98px) {
  .page-cfa { padding: 0 14px 20px; }
  .cfa-title { font-size: 25px; line-height: 31px; }
  .cfa-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .cfa-stat { padding: 16px; }
  .cfa-stat-value { font-size: 24px; line-height: 29px; }
  .cfa-map-row { flex-direction: column; }
  .cfa-geo-list { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .cfa-geo-list li { flex: 0 0 auto; }
  .cfa-search, .cfa-select { max-width: none; flex-basis: 100%; }
  .cfa-rail { flex-direction: column; }
}

/* ---- pass 1 corrections ------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* official Cloudflare mark (assets/images/forms/cloudflare.svg) */
.cfa-heading-mark .if-logo-svg { width: 46px; height: 46px; }
.cfa-mark .if-logo-svg { width: 22px; height: 22px; display: block; }
.cfa-mark { flex: 0 0 22px; width: 22px; height: 22px; }
.cfa-empty-mark .if-logo-svg { width: 28px; height: 28px; }
.cfa-promo-cloud .if-logo-svg { width: 76px; height: 76px; }
.cfa-promo-mark { position: relative; }
.cfa-promo-badge { position: absolute; right: calc(50% - 44px); bottom: 4px; display: inline-flex; align-items: center;
  justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
  box-shadow: 0 0 0 3px var(--bg-surface); }
.cfa-promo-badge .icon { width: 14px; height: 14px; }

/* idle sort arrows stay quiet until hover, like the reference */
.cfa-sort .cfa-sort-icon { opacity: 0; transition: opacity .12s ease; }
.cfa-sort:hover .cfa-sort-icon { opacity: .55; }
.cfa-sort.is-sorted .cfa-sort-icon { opacity: 1; }

/* bigger, brighter map pins */
.cfa-map { min-height: 168px; }
.cfa-pin-glow { opacity: .18; }
.cfa-pin-core { opacity: .95; }

/* ---- pass 2 corrections ------------------------------------------------- */
/* stat cards: fit every label on one line at the reference width */
.cfa-stats { gap: 14px; }
.cfa-stat { gap: 11px; padding: 15px 14px; }
.cfa-stat-ico { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; }
.cfa-stat-ico .icon { width: 20px; height: 20px; }
.cfa-stat-label { min-height: 0; font-size: 12.5px; line-height: 17px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cfa-stat-row { margin-top: 3px; }
.cfa-stat-value { font-size: 26px; line-height: 31px; }
.cfa-stat-sub { margin-top: 4px; font-size: 12px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* three-card row: tighter so the legends get the reference's width */
.cfa-card { padding: 16px; }
.cfa-card-head { margin-bottom: 12px; }
.cfa-donut { flex-basis: 112px; width: 112px; height: 112px; }
.cfa-donut-center strong { font-size: 22px; line-height: 26px; }
.cfa-donut-center small { font-size: 11.5px; }
.cfa-donut-row { gap: 12px; }
.cfa-legend { gap: 6px; }
.cfa-legend li { font-size: 12px; gap: 6px; }
.cfa-legend-pct { font-size: 11.5px; }

/* quick actions: one line per item inside the 212px rail */
.cfa-qa { font-size: 12px; padding: 7px 8px; gap: 8px; min-height: 38px; }
.cfa-qa-ico { flex-basis: 22px; width: 22px; height: 22px; border-radius: 7px; }
.cfa-qa-ico .icon { width: 14px; height: 14px; }
.cfa-qa > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfa-qa-card { padding: 16px 14px; }
.cfa-qa-list { gap: 7px; margin-top: 12px; }

/* table rhythm from the reference (≈42px rows) */
.cfa-table thead th { height: 42px; font-size: 12.5px; }
.cfa-table tbody td { height: 44px; font-size: 13.5px; }
.cfa-acct-link { font-size: 13.5px; }
.cfa-td-email { font-size: 12.5px; }
.cfa-badge { height: 23px; font-size: 11.5px; padding: 0 8px; }
.cfa-tabs { padding: 4px 18px 0; }
.cfa-tab { padding: 11px 2px 10px; font-size: 13px; }
.cfa-table-foot { padding: 12px 18px; }

/* map: larger, softer markers that read at card size */
.cfa-map-row { gap: 12px; }
.cfa-geo-list { flex-basis: 140px; gap: 9px; }
.cfa-geo-list li { font-size: 12.5px; }
.cfa-pin-glow { opacity: .16; }
.cfa-pin-halo { fill: var(--text-link); opacity: .07; }
.cfa-pin:hover .cfa-pin-halo { opacity: .14; }

/* promo badge sits on the cloud's lower-right like the reference */
.cfa-promo-badge { right: calc(50% - 40px); bottom: 6px; width: 22px; height: 22px; }
.cfa-promo-badge .icon { width: 13px; height: 13px; }
.cfa-promo-cloud .if-logo-svg { width: 72px; height: 72px; }
.cfa-promo { padding: 16px 14px; }
.cfa-promo-list li { font-size: 12.5px; }
.cfa-promo-text { font-size: 12.5px; }

/* ---- pass 3 corrections ------------------------------------------------- */
/* never truncate a label — wrap instead, and keep every value row aligned */
.cfa-stat-label { white-space: normal; overflow: visible; text-overflow: clip; min-height: 34px; }
.cfa-stat-sub { white-space: normal; overflow: visible; text-overflow: clip; }

/* zone-health legend needs the full label */
.cfa-row .cfa-card { padding: 16px 14px; }
.cfa-donut { flex-basis: 104px; width: 104px; height: 104px; }
.cfa-donut-center strong { font-size: 21px; line-height: 25px; }
.cfa-legend li { font-size: 11.5px; gap: 5px; }
.cfa-legend-pct { font-size: 11px; }
.cfa-legend strong { font-size: 12px; }

/* quick actions fit the 212px rail on one line */
.cfa-qa-card { padding: 14px 12px; }
.cfa-qa { font-size: 11.5px; padding: 7px; gap: 7px; }
.cfa-qa-ico { flex-basis: 21px; width: 21px; height: 21px; }
.cfa-qa-ico .icon { width: 13px; height: 13px; }

/* table: every column inside the main column, no horizontal scroll at 1536 */
.cfa-table { min-width: 900px; }
.cfa-table thead th, .cfa-table tbody td { padding: 0 7px; }
.cfa-th-check, .cfa-td-check { width: 38px; padding-left: 14px; }
.cfa-th-num, .cfa-td-num { width: 32px; }
.cfa-th-edit, .cfa-td-edit { width: 30px; }
.cfa-th-n, .cfa-td-n { width: 68px; }
.cfa-th-name, .cfa-td-name { min-width: 150px; }
.cfa-th-actions, .cfa-td-actions { width: 60px; padding-right: 14px; }
.cfa-td-email { font-size: 12px; }
.cfa-badge { height: 22px; font-size: 11px; padding: 0 7px; gap: 5px; }
.cfa-acct { gap: 7px; }
.cfa-acct-link { font-size: 13px; }

/* primary buttons match the reference blue, not the indigo default */
.page-cfa .cfa-add, .page-cfa .cfa-promo-btn, .page-cfa .cfa-page.is-active,
.page-cfa .cfa-empty-state .btn-primary { background: var(--primary); border-color: var(--primary); }
.page-cfa .cfa-add:hover, .page-cfa .cfa-promo-btn:hover { background: var(--primary-hover); }

/* slightly tighter markers */
.cfa-pin-glow { opacity: .15; }
.cfa-pin-halo { opacity: .06; }
/* ---- pass 3b: last two Quick Action labels fit on one line -------------- */
.cfa-qa { font-size: 11px; padding: 7px 6px; gap: 6px; letter-spacing: -.1px; }
.cfa-qa-ico { flex-basis: 20px; width: 20px; height: 20px; }
.cfa-qa-ico .icon { width: 12px; height: 12px; }
/* donut back up now that the legends fit */
.cfa-donut { flex-basis: 112px; width: 112px; height: 112px; }
.cfa-donut-center strong { font-size: 22px; line-height: 26px; }
/* ---- pass 3c: cap the map so the card can't grow unbounded -------------- */
/* base map and pin overlay share viewBox 0 0 1000 520 + xMidYMid meet, so a
   fixed box keeps the two layers in exact register at any width. */
.cfa-map { height: 172px; }
.cfa-map-svg { width: 100%; height: 100%; display: block; }
.cfa-map-pins { width: 100%; height: 100%; }
@media (max-width: 900px) { .cfa-map { height: 200px; } }
@media (max-width: 767.98px) { .cfa-map { height: 168px; } }

/* ==========================================================================
   DASHBOARD — rebuilt content area (design-reference/dashboard-main.png)
   Prefix .dash- , scoped to .page-dashboard. Sidebar and top bar untouched.
   ========================================================================== */
.page-dashboard {
  --dash-gap: 16px;
  --dash-pad: 20px;
  --dash-radius: 12px;
  padding: 0 20px 24px;
}

/* ---- 1. greeting ----------------------------------------------------- */
.dash-greeting { display: flex; align-items: center; gap: 14px; padding: 18px 0 18px; }
.dash-greet-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: var(--tint-warning); color: var(--fg-warning); }
.dash-greet-icon .icon { width: 24px; height: 24px; }
.dash-greet-text { flex: 1 1 auto; min-width: 0; }
.dash-greet-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 23px; font-weight: 700; line-height: 29px; letter-spacing: -.4px; color: var(--text); }
.dash-wave { width: 21px; height: 21px; color: var(--fg-warning); flex: 0 0 auto; }
.dash-greet-sub { margin: 3px 0 0; font-size: 13px; line-height: 17px; color: var(--text-tertiary-2); }
.dash-greet-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.dash-month-btn { height: 36px; padding: 0 13px; gap: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.dash-month-btn .btn-icon { width: 15px; height: 15px; }
.dash-quote { margin: 0; font-size: 12.5px; font-style: italic; color: var(--muted); }

/* ---- 2. stat cards --------------------------------------------------- */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dash-gap); margin-bottom: var(--dash-gap); }
.dash-stat { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--dash-radius); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.dash-stat:hover { border-color: var(--border-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.dash-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; }
.dash-stat-icon .icon { width: 23px; height: 23px; }
.dash-stat-body { flex: 1 1 auto; min-width: 0; }
.dash-stat-label { font-size: 12.5px; font-weight: 500; color: var(--text-tertiary-2); }
.dash-stat-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.dash-stat-value { font-size: 27px; font-weight: 700; line-height: 33px; letter-spacing: -.7px; color: var(--text); overflow-wrap: anywhere; }
.dash-stat-sub { display: block; margin-top: 3px; font-size: 11.5px; line-height: 15px; color: var(--muted); }
.dash-stat-sub-link { cursor: pointer; text-underline-offset: 2px; }
.dash-stat-sub-link:hover { color: var(--text-link); text-decoration: underline; }
.dash-stat-sub.is-danger { color: var(--text-danger); font-weight: 600; }
.dash-stat-sub.is-danger:hover { color: var(--text-danger); }

.dash-tone-blue   { background: var(--tint-info);    color: var(--text-link); }
.dash-tone-green  { background: var(--tint-success); color: var(--text-success); }
.dash-tone-amber  { background: var(--tint-warning); color: var(--text-warning); }
.dash-tone-red    { background: var(--tint-danger);  color: var(--text-danger); }
.dash-tone-purple { background: var(--tint-purple);  color: var(--text-purple); }
.dash-tone-grey   { background: var(--bg-muted);     color: var(--text-2); }

.dash-delta { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 5px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dash-delta-up { background: var(--tint-success); color: var(--text-success); }
.dash-delta-down { background: var(--tint-danger); color: var(--text-danger); }
.dash-delta-icon { width: 11px; height: 11px; stroke-width: 2.8; }
.dash-delta-down .dash-delta-icon { transform: rotate(180deg); }

/* ---- shared card chrome --------------------------------------------- */
.dash-row { display: grid; gap: var(--dash-gap); margin-bottom: var(--dash-gap); align-items: stretch; }
.dash-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-card { display: flex; flex-direction: column; padding: var(--dash-pad); border-radius: var(--dash-radius); }
.dash-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dash-card-title { flex: 0 1 auto; margin: 0; font-size: 16px; font-weight: 600; line-height: 21px; letter-spacing: -.2px; color: var(--text); }
.dash-card-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; }
.dash-card-ico .icon { width: 15px; height: 15px; }
.dash-card-head .view-all { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.dash-head-btn { margin-left: auto; height: 30px; padding: 0 11px; gap: 6px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-link); border-color: var(--border-primary); }
.dash-head-btn:hover { background: var(--bg-hover); }
.dash-head-btn .btn-icon { width: 14px; height: 14px; }
.dash-empty { margin: auto 0 0; padding: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.dash-empty-row { padding: 22px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---- 3. charts ------------------------------------------------------- */
.dash-legend { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.dash-legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.dash-legend-item:hover { color: var(--text); }
.dash-legend-item.is-off { opacity: .4; text-decoration: line-through; }
.dash-legend-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.dash-range { flex: 0 0 auto; }
.dash-card-head .dash-legend + .dash-range { margin-left: 12px; }
.dash-range-btn { height: 30px; padding: 0 10px; gap: 6px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.dash-chart { position: relative; height: 232px; }

/* ---- 4. donuts ------------------------------------------------------- */
.dash-donut-row { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; }
.dash-donut { position: relative; flex: 0 0 150px; width: 150px; height: 150px; }
.dash-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.dash-donut-value { font-size: 25px; font-weight: 700; line-height: 29px; letter-spacing: -.5px; color: var(--text); }
.dash-donut-label { font-size: 11px; color: var(--muted); }
.dash-donut-legend { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.dash-donut-legend li a { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 6px; border-radius: 7px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.dash-donut-legend li a:hover { background: var(--bg-subtle); color: var(--text); }
.dash-legend-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-legend-n { font-weight: 600; color: var(--text); }
.dash-legend-pct { flex: 0 0 auto; min-width: 42px; text-align: right; font-size: 12px; color: var(--muted); }

/* ---- 5-7. tables ----------------------------------------------------- */
.dash-table-scroll { flex: 1 1 auto; overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table thead th { height: 30px; padding: 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border-soft); }
.dash-table tbody td { height: 41px; padding: 0 8px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; border-bottom: 1px solid var(--border-soft); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr[data-href] { cursor: pointer; }
.dash-table tbody tr[data-href]:hover td { background: var(--bg-subtle); }
.dash-table th:first-child, .dash-table td:first-child { padding-left: 0; }
.dash-table th:last-child, .dash-table td:last-child { padding-right: 0; }
.dash-table .ta-r { text-align: right; }
.dash-table .w-num { width: 24px; color: var(--muted); font-weight: 600; }
.dash-num { font-weight: 600; color: var(--text); }
.dash-muted { color: var(--muted); }
.dash-link { color: var(--text-link); font-weight: 500; text-decoration: none; }
.dash-link:hover { text-decoration: underline; }
.dash-sub-link { color: var(--text-2); text-decoration: none; }
.dash-sub-link:hover { color: var(--text-link); text-decoration: underline; }
.dash-bm { display: inline-flex; align-items: center; gap: 8px; }
.dash-geo { display: inline-flex; align-items: center; gap: 7px; }
.dash-geo .flag, .dash-bm .flag { width: 19px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .07); }
.dash-days-soon { color: var(--text-danger); font-weight: 600; }

.dash-pri { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.dash-pri-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dash-pri-high { background: var(--tint-danger); color: var(--text-danger); }
.dash-pri-medium { background: var(--tint-warning); color: var(--text-warning); }
.dash-pri-low { background: var(--tint-success); color: var(--text-success); }

/* ---- quick actions + promo ------------------------------------------ */
.dash-qa-col { display: flex; flex-direction: column; gap: var(--dash-gap); }
.dash-qa-col > .dash-card { flex: 1 1 auto; }
.dash-qa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; align-content: start; }
.dash-qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 82px; padding: 12px 6px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); font-size: 11.5px; font-weight: 500; color: var(--text-2); text-align: center; text-decoration: none; transition: border-color .12s ease, background-color .12s ease, transform .12s ease; }
.dash-qa:hover { border-color: var(--border-primary); background: var(--bg-hover); color: var(--text); transform: translateY(-1px); }
.dash-qa-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; }
.dash-qa-ico .icon { width: 18px; height: 18px; }

.dash-promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--dash-radius); background: var(--bg-selected-6); border-color: var(--border-primary-4); text-decoration: none; }
.dash-promo:hover { background: var(--bg-selected); }
.dash-promo-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-surface); color: var(--text-link); }
.dash-promo-ico .icon { width: 22px; height: 22px; }
.dash-promo-text { flex: 1 1 auto; min-width: 0; }
.dash-promo-title { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-link); }
.dash-promo-sub { display: block; margin-top: 2px; font-size: 11.5px; line-height: 16px; color: var(--text-tertiary-2); }
.dash-promo-go { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; }
.dash-promo-go .icon { width: 17px; height: 17px; }
.dash-promo:hover .dash-promo-go { background: var(--primary-hover); }

/* ---- customize dialog ------------------------------------------------ */
.dash-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dash-modal[hidden] { display: none; }
.dash-modal-backdrop { position: absolute; inset: 0; background: var(--bg-overlay); }
.dash-modal-card { position: relative; width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto; padding: 20px; border: 1px solid var(--border-default); border-radius: 14px; background: var(--bg-surface); box-shadow: 0 24px 60px rgba(15, 23, 42, .26); }
.dash-modal-head { display: flex; align-items: center; gap: 10px; }
.dash-modal-x { display: inline-flex; margin-left: auto; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.dash-modal-x:hover { background: var(--bg-subtle); color: var(--text); }
.dash-modal-x .icon { width: 16px; height: 16px; }
.dash-modal-sub { margin: 5px 0 14px; font-size: 12.5px; color: var(--muted); }
.dash-modal-list { display: flex; flex-direction: column; gap: 4px; }
.dash-modal-opt { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.dash-modal-opt:hover { background: var(--bg-subtle); }
.dash-modal-opt input { accent-color: var(--primary); width: 15px; height: 15px; }
.dash-modal-opt input:disabled + .dash-qa-ico { opacity: .4; }
.dash-modal-opt .dash-qa-ico { width: 28px; height: 28px; border-radius: 8px; }
.dash-modal-opt .dash-qa-ico .icon { width: 15px; height: 15px; }
.dash-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 1500px) {
  .page-dashboard .dash-qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .dash-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .dash-row-2 { grid-template-columns: minmax(0, 1fr); }
  .dash-qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-dashboard { padding: 0 14px 20px; }
  .dash-qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-greeting { flex-wrap: wrap; }
  .dash-greet-side { width: 100%; align-items: flex-start; }
  .dash-donut-row { flex-direction: column; align-items: stretch; }
  .dash-donut { align-self: center; }
  .dash-legend { width: 100%; margin-left: 0; order: 3; }
  .dash-card-head { flex-wrap: wrap; }
  .dash-card-head .dash-legend + .dash-range { margin-left: auto; }
}
@media (max-width: 820px) {
  .page-dashboard .dash-qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dash-greet-title { font-size: 20px; line-height: 26px; }
  .dash-stat-value { font-size: 23px; line-height: 28px; }
  .dash-chart { height: 200px; }
}

/* ==========================================================================
   DOMAINS — rebuilt content area (domains-table-view / domains-cards-view)
   Prefix .dm- , scoped to .page-domains-v2. Sidebar and top bar untouched.
   ========================================================================== */
.page-domains-v2 { --dm-gap: 16px; --dm-pad: 20px; --dm-radius: 12px; padding: 0 20px 24px; }

/* ---- header ---------------------------------------------------------- */
.dm-header { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0 14px; }
.dm-header-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: var(--tint-info); color: var(--text-link); }
.dm-header-icon .icon { width: 25px; height: 25px; }
.dm-header-text { flex: 1 1 auto; min-width: 0; }
.dm-header-title { margin: 0; font-size: 27px; font-weight: 700; line-height: 33px; letter-spacing: -.5px; color: var(--text); }
.dm-header-sub { margin: 3px 0 0; font-size: 13px; line-height: 18px; color: var(--text-tertiary-2); }
.dm-header-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding-top: 4px; }
.dm-btn { height: 36px; padding: 0 13px; gap: 7px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.dm-btn .btn-icon { width: 15px; height: 15px; }
.dm-btn-icon { width: 36px; padding: 0; justify-content: center; }
.dm-btn-add { background: var(--success-8); border-color: var(--success-8); color: #fff; }
.dm-btn-add:hover { background: var(--success-9); border-color: var(--success-9); }
.dm-btn-add .btn-icon { color: #fff; }

/* ---- sub-tabs -------------------------------------------------------- */
.dm-tabs { display: flex; align-items: center; gap: 2px; margin-bottom: var(--dm-gap); border-bottom: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.dm-tabs::-webkit-scrollbar { display: none; }
.dm-tab { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 2px solid transparent; font-size: 13.5px; font-weight: 500; color: var(--text-tertiary-2); text-decoration: none; white-space: nowrap; }
.dm-tab:hover { color: var(--text); }
.dm-tab.is-active { border-bottom-color: var(--primary); color: var(--text-link); font-weight: 600; }
.dm-tab-ico { width: 15px; height: 15px; }

/* ---- stat cards ------------------------------------------------------ */
.dm-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--dm-gap); margin-bottom: var(--dm-gap); }
.dm-stat { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--dm-radius); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.dm-stat:hover { border-color: var(--border-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.dm-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; }
.dm-stat-icon .icon { width: 22px; height: 22px; }
.dm-stat-body { flex: 1 1 auto; min-width: 0; }
.dm-stat-label { font-size: 12.5px; font-weight: 500; color: var(--text-tertiary-2); }
.dm-stat-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.dm-stat-value { font-size: 26px; font-weight: 700; line-height: 32px; letter-spacing: -.6px; color: var(--text); overflow-wrap: anywhere; }
.dm-stat-sub { margin-top: 2px; font-size: 11.5px; line-height: 15px; color: var(--muted); }

.dm-tone-blue { background: var(--tint-info); color: var(--text-link); }
.dm-tone-green { background: var(--tint-success); color: var(--text-success); }
.dm-tone-amber { background: var(--tint-warning); color: var(--text-warning); }
.dm-tone-red { background: var(--tint-danger); color: var(--text-danger); }
.dm-tone-purple { background: var(--tint-purple); color: var(--text-purple); }
.dm-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dm-delta-up { color: var(--text-success); }
.dm-delta-down { color: var(--text-danger); }
.dm-delta-icon { width: 11px; height: 11px; stroke-width: 2.8; }
.dm-delta-down .dm-delta-icon { transform: rotate(180deg); }

/* ---- analytics row --------------------------------------------------- */
.dm-analytics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dm-gap); margin-bottom: var(--dm-gap); align-items: stretch; }
.dm-mini { display: flex; flex-direction: column; padding: var(--dm-pad); border-radius: var(--dm-radius); }
.dm-mini-head { display: flex; align-items: center; gap: 10px; }
.dm-mini-head .view-all { margin-left: auto; font-size: 12px; font-weight: 600; }
.dm-mini-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: var(--text); }
.dm-mini-head .dm-mini-title { margin-bottom: 12px; }
.dm-mini-empty { padding: 16px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

.dm-donut-row { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; }
.dm-donut { position: relative; flex: 0 0 108px; width: 108px; height: 108px; }
.dm-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.dm-donut-value { font-size: 19px; font-weight: 700; line-height: 22px; color: var(--text); }
.dm-donut-label { font-size: 10px; color: var(--muted); }
.dm-legend, .dm-bars { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
.dm-legend li a, .dm-bars li a { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 5px; border-radius: 6px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.dm-legend li a:hover, .dm-bars li a:hover { background: var(--bg-subtle); color: var(--text); }
.dm-legend-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.dm-legend-name, .dm-bar-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-legend-n, .dm-bar-n { flex: 0 0 auto; font-weight: 600; color: var(--text); }
.dm-legend-pct, .dm-bar-pct { flex: 0 0 auto; min-width: 40px; text-align: right; font-size: 11.5px; color: var(--muted); }
.dm-bars li a { height: 30px; gap: 9px; }
.dm-bar-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; }
.dm-bar-ico .flag { width: 18px; height: 12px; border-radius: 2px; }
.dm-bar-ico .icon { width: 15px; height: 15px; color: var(--muted); }
.dm-bar-name { flex: 0 0 74px; }
.dm-bar-track { flex: 1 1 auto; min-width: 30px; height: 7px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.dm-bar-fill { display: block; height: 100%; border-radius: 4px; }
.dm-provider { width: 17px; height: 17px; border-radius: 4px; object-fit: contain; flex: 0 0 auto; }

.dm-mini-table { width: 100%; border-collapse: collapse; }
.dm-mini-table th { padding: 0 0 7px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border-soft); }
.dm-mini-table td { height: 32px; padding: 0; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--border-soft); }
.dm-mini-table tr:last-child td { border-bottom: 0; }
.dm-mini-table tbody tr:hover td { background: var(--bg-subtle); }
.ta-r { text-align: right; } .ta-c { text-align: center; }

/* ---- filter bar + chips ---------------------------------------------- */
.dm-filter-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--dm-radius); }
.dm-filter-bar .filter-search { flex: 1 1 180px; min-width: 110px; }
.dm-filter-bar .filter-control { flex: 0 1 auto; min-width: 0; width: 118px; }
.dm-filter-bar .filter-control-label { overflow: hidden; text-overflow: ellipsis; }
.dm-filter-bar .btn-more-filter { flex: 0 0 auto; margin-left: auto; }
.dm-chip-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dm-chip-row .quick-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.dm-chip-row .quick-filters::-webkit-scrollbar { display: none; }
.dm-chip-row .filter-chip { flex: 0 0 auto; height: 29px; padding: 0 8px; font-size: 11px; gap: 5px; }
.dm-chip-row .filter-chip-count { font-size: 11px; }
.dm-chip-row .quick-filters { flex: 1 1 auto; margin: 0; }
.dm-view-toggle { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.dm-view-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.dm-view-btn:hover { background: var(--bg-subtle); color: var(--text); }
.dm-view-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.dm-view-ico { width: 15px; height: 15px; }
.dm-export-btn { height: 32px; padding: 0 12px; gap: 6px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.dm-export-btn .btn-icon { width: 14px; height: 14px; }

/* ---- table ----------------------------------------------------------- */
.dm-table-card { padding: 0; border-radius: var(--dm-radius); }
.dm-table-scroll { overflow-x: auto; border-radius: var(--dm-radius) var(--dm-radius) 0 0; }
.dm-table { width: 100%; border-collapse: collapse; min-width: 1560px; }
.dm-table thead th { height: 38px; padding: 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-align: left; white-space: nowrap; background: var(--bg-subtle-3); border-bottom: 1px solid var(--border-soft); }
.dm-table thead th.ta-c { text-align: center; }
.dm-table thead th.ta-r { text-align: right; }
.dm-table .th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; font: inherit; text-decoration: none; }
.dm-table .th-sort:hover { color: var(--text); }
.dm-table tbody td { height: 52px; padding: 0 10px; font-size: 13px; color: var(--text-2); white-space: nowrap; border-bottom: 1px solid var(--border-soft); }
.dm-table tbody tr:last-child td { border-bottom: 0; }
.dm-table tbody tr:hover td { background: var(--bg-subtle); }
.dm-table .th-check, .dm-table .td-check { width: 36px; padding-left: 14px; }
.dm-table .td-check { line-height: 0; }
/* the domain column stays put while the account columns scroll */
.dm-table thead th:nth-child(2), .dm-table tbody td:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--bg-surface); box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .14); }
.dm-table thead th:nth-child(2) { background: var(--bg-subtle-3); }
.dm-table tbody tr:hover td:nth-child(2) { background: var(--bg-subtle); }

.dm-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text-link); font-weight: 500; text-decoration: none; }
.dm-link:hover { text-decoration: underline; }
.dm-ext { width: 12px; height: 12px; opacity: .65; flex: 0 0 auto; }
.dm-muted { color: var(--muted); }
.dm-nowrap { white-space: nowrap; }
.dm-dash { color: var(--text-disabled); }

.dm-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-2); }
.dm-cat-betting { background: var(--tint-success); color: var(--text-success); }
.dm-cat-casino  { background: var(--tint-purple);  color: var(--text-purple); }
.dm-cat-blog    { background: var(--tint-warning); color: var(--text-warning); }
.dm-cat-tools   { background: var(--tint-info);    color: var(--text-link); }
.dm-geo { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dm-geo .flag { width: 19px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .07); }

.dm-acct { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); text-decoration: none; }
.dm-acct:hover .dm-acct-name { color: var(--text-link); text-decoration: underline; }
.dm-acct-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dm-acct-name { font-size: 12.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-acct-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-seo { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--bg-muted); font-size: 12px; font-weight: 700; color: var(--text); }
.dm-days { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-width: 34px; height: 22px; padding: 0 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.dm-days-red { background: var(--tint-danger); color: var(--text-danger); }
.dm-days-amber { background: var(--tint-warning); color: var(--text-warning); }
.dm-days-green { background: var(--tint-success); color: var(--text-success); }
.dm-state-active     { background: var(--tint-success); color: var(--text-success); }
.dm-state-expiring   { background: var(--tint-warning); color: var(--text-warning); }
.dm-state-inwork     { background: var(--tint-info);    color: var(--text-link); }
.dm-state-parked     { background: var(--bg-muted);     color: var(--text-2); }
.dm-state-transfer   { background: var(--tint-purple);  color: var(--text-purple); }
.dm-footer { padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.dm-footer-cards { border-top: 0; padding: 4px 2px 0; }
.dm-showing { font-size: 12.5px; color: var(--muted); }

/* ---- cards view ------------------------------------------------------ */
.dm-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--dm-gap); align-items: stretch; }
.dm-card { display: flex; flex-direction: column; padding: 14px; border-radius: var(--dm-radius); border-left: 3px solid var(--border-default); }
.dm-card:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, .08); }
.dm-card-active   { border-left-color: var(--success); }
.dm-card-expiring { border-left-color: var(--warning); }
.dm-card-inwork   { border-left-color: var(--primary); }
.dm-card-parked   { border-left-color: var(--text-disabled); }
.dm-card-transfer { border-left-color: var(--purple); }
.dm-card-top { display: flex; align-items: center; gap: 7px; }
.dm-card-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; }
.dm-card-name { white-space: nowrap; }
/* .dm-link is inline-flex, so the ellipsis has to live on an inner box. */
.dm-name-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-card-name .dm-ext { flex: 0 0 auto; }
.dm-card-meta { min-width: 0; }
.dm-acct-inline { min-width: 0; overflow: hidden; }
.dm-acct-inline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-card-top .status-pill { flex: 0 0 auto; height: 21px; padding: 0 8px; font-size: 11px; }
.dm-card-menu-btn { display: inline-flex; padding: 2px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.dm-card-menu-btn:hover { background: var(--bg-subtle); color: var(--text); }
.dm-card-menu-btn .icon { width: 15px; height: 15px; }
.dm-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.dm-acct-inline { gap: 6px; font-size: 12px; }
.dm-card-meta .bm-logo { flex: 0 0 auto; }
.dm-card .logo-mono, .dm-table .logo-mono { overflow: hidden; }
.dm-card-accounts { display: flex; flex-direction: column; gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; flex: 1 1 auto; }
.dm-card-accounts li a { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 5px; border-radius: 6px; text-decoration: none; }
.dm-card-accounts li a:hover { background: var(--bg-subtle); }
.dm-row-label { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row-val { flex: 0 1 auto; min-width: 0; max-width: 52%; font-size: 11.5px; font-weight: 500; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-card-foot { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-soft); }
.dm-foot-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-foot-expiry { flex: 1 1 auto; }
.dm-foot-k { font-size: 10.5px; color: var(--muted); }
.dm-foot-date { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; }
.dm-card-actions { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.dm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--border-default); border-radius: 6px; color: var(--text-link); }
.dm-icon-btn:hover { background: var(--bg-hover); border-color: var(--border-primary); }
.dm-icon-btn .icon { width: 13px; height: 13px; }
.dm-icon-danger { color: var(--text-danger); }
.dm-icon-danger:hover { background: var(--tint-danger); border-color: var(--border-danger); }
.dm-cards-empty { grid-column: 1 / -1; }

/* ---- secondary tab panels -------------------------------------------- */
.dm-panel { padding: var(--dm-pad); border-radius: var(--dm-radius); }
.dm-panel-head { display: flex; align-items: center; gap: 10px; }
.dm-panel-head .view-all { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.dm-panel-note { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.dm-panel-head .dm-panel-note { margin: 0 0 12px auto; }
.dm-panel-table td { height: 40px; font-size: 13px; }
.dm-panel-bars li a { height: 34px; }
.dm-auto { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.dm-auto-on { background: var(--tint-success); color: var(--text-success); }
.dm-auto-off { background: var(--bg-muted); color: var(--text-2); }
.dm-bulk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dm-bulk-tile { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--border-default); border-radius: 10px; text-decoration: none; }
.dm-bulk-tile:hover { border-color: var(--border-primary); background: var(--bg-hover); }
.dm-bulk-tile span span, .dm-bulk-tile > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.dm-bulk-tile strong { font-size: 13px; font-weight: 600; color: var(--text); }
.dm-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.dm-settings div { padding: 12px; border: 1px solid var(--border-default); border-radius: 10px; }
.dm-settings dt { font-size: 11.5px; color: var(--muted); }
.dm-settings dd { margin: 3px 0 0; font-size: 13px; font-weight: 600; color: var(--text); }

/* ---- responsive ------------------------------------------------------ */
/* Five cards only have room on a reference-width screen; below that the
   domain names start truncating, so drop to four. */
@media (max-width: 1600px) {
  .dm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* the chips wrap rather than scroll out of sight behind the view toggle */
  .dm-chip-row { flex-wrap: wrap; }
  .dm-chip-row .quick-filters { flex-wrap: wrap; overflow-x: visible; row-gap: 8px; }
}
@media (max-width: 1440px) {
  .dm-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .dm-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-filter-bar .filter-control { width: 108px; }
}
@media (max-width: 1200px) { .dm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .dm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-domains-v2 { padding: 0 14px 20px; }
  .dm-header { flex-wrap: wrap; }
  .dm-header-actions { width: 100%; padding-top: 0; }
  .dm-analytics { grid-template-columns: minmax(0, 1fr); }
  .dm-filter-bar { flex-wrap: wrap; }
  .dm-filter-bar .filter-control { width: calc(33.333% - 6px); }
  .dm-chip-row { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .dm-cards { grid-template-columns: minmax(0, 1fr); }
  .dm-header-title { font-size: 22px; line-height: 28px; }
  .dm-stat-value { font-size: 22px; line-height: 28px; }
  .dm-filter-bar .filter-control { width: calc(50% - 4px); }
}

/* ==========================================================================
   HOSTING & SERVERS — four-level module (hub / provider / server / account)
   Every colour is a semantic token, so dark mode comes for free.
   ========================================================================== */
.page-hosting-v2 {
  --ho-pad: 18px;
  --ho-gap: 16px;
  --ho-radius: 12px;
  display: flex; flex-direction: column; gap: var(--ho-gap);
  padding: 18px var(--content-pad-x) 28px;
  min-width: 0;
}
.page-hosting-v2 .dashboard-card { background: var(--bg-surface); border: 1px solid var(--card-border); border-radius: var(--ho-radius); }

/* ---- breadcrumb ------------------------------------------------------ */
.ho-crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ho-crumb-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 auto;
  border: 1px solid var(--border-default); border-radius: 50%;
  background: var(--bg-surface); color: var(--muted);
}
.ho-crumb-back:hover { background: var(--bg-hover); border-color: var(--border-primary); color: var(--text-link); }
.ho-crumb-back .icon { width: 14px; height: 14px; }
.ho-crumb-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; min-width: 0; }
.ho-crumb { font-size: 13px; color: var(--muted); min-width: 0; }
.ho-crumb a { color: var(--text-link); text-decoration: none; }
.ho-crumb a:hover { text-decoration: underline; }
.ho-crumb.is-current span { color: var(--text); font-weight: 600; }
.ho-crumb-sep { display: inline-flex; color: var(--text-disabled); }
.ho-crumb-sep .icon { width: 13px; height: 13px; }

/* ---- page header ----------------------------------------------------- */
.ho-header { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.ho-header-icon, .ho-header-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 13px; background: var(--tint-info); color: var(--text-link);
}
.ho-header-icon .icon { width: 27px; height: 27px; }
/* brand tiles carry the logo nearly edge to edge, as in the references */
.ho-header-logo { background: var(--bg-subtle); padding: 7px; overflow: hidden; }
.ho-header-mark { display: block; width: 100%; height: 100%; }
.ho-header-mark svg { width: 100%; height: 100%; }
.ho-header-text { flex: 1 1 auto; min-width: 0; }
.ho-header-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0; font-size: 27px; line-height: 34px; font-weight: 700; color: var(--text);
}
.ho-header-sub { margin: 4px 0 0; font-size: 13.5px; line-height: 20px; color: var(--muted); }
.ho-header-mail { display: flex; align-items: center; gap: 5px; }
.ho-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding-top: 4px; flex-wrap: wrap; }
.ho-header-actions .btn { height: 34px; }
.btn-icon-only { width: 34px; padding: 0; justify-content: center; }
.btn-danger-ghost { color: var(--text-danger); }
.btn-danger-ghost:hover { background: var(--tint-danger); border-color: var(--border-danger); }

/* ---- meta row -------------------------------------------------------- */
.ho-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px;
  padding: 11px 14px; border: 1px solid var(--card-border); border-radius: var(--ho-radius);
  background: var(--bg-surface); font-size: 13px; color: var(--text-2);
}
.ho-meta-row > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ho-mini-ico { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.ho-meta-mark { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.ho-meta-mark svg { width: 100%; height: 100%; }

/* ---- stat cards ------------------------------------------------------ */
.ho-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ho-gap); }
.ho-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ho-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ho-stat { display: flex; align-items: flex-start; gap: 10px; padding: 13px; min-width: 0; text-decoration: none; }
a.ho-stat:hover { border-color: var(--border-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .07); }
.ho-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
}
.ho-stat-icon .icon { width: 20px; height: 20px; }
.ho-stat-icon-blue   { background: var(--tint-info); color: var(--text-link); }
.ho-stat-icon-green  { background: var(--tint-success); color: var(--fg-success); }
.ho-stat-icon-red    { background: var(--tint-danger); color: var(--fg-danger); }
.ho-stat-icon-amber  { background: var(--tint-warning); color: var(--fg-warning); }
.ho-stat-icon-purple { background: var(--tint-purple); color: var(--fg-purple); }
.ho-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ho-stat-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-stat-row { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.ho-stat-value { font-size: 28px; line-height: 34px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.ho-stat-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ho-stat-trend-up { color: var(--text-success); }
.ho-stat-trend-down { color: var(--text-danger); }
.ho-stat-trend-icon { width: 12px; height: 12px; }
.ho-stat-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- provider summary cards ------------------------------------------ */
.ho-providers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ho-gap); }
.ho-prov { display: flex; flex-direction: column; gap: 5px; padding: 13px; min-width: 0; text-decoration: none; }
.ho-prov:hover { border-color: var(--border-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .07); }
.ho-prov-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ho-prov-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 auto; padding: 5px;
  border-radius: 10px; background: var(--bg-subtle); color: var(--muted); overflow: hidden;
}
.ho-prov-logo .icon { width: 18px; height: 18px; }
.ho-prov-mark { display: block; width: 100%; height: 100%; }
.ho-prov-mark svg { width: 100%; height: 100%; }
.ho-prov-name { font-size: 14.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-prov-accounts { font-size: 13px; font-weight: 500; color: var(--text-2); }
.ho-prov-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-prov-bar { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.ho-prov-track { flex: 1 1 auto; height: 5px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; min-width: 0; }
.ho-prov-fill { display: block; height: 100%; border-radius: 3px; }
.ho-prov-pct { font-size: 11.5px; font-weight: 600; color: var(--muted); flex: 0 0 auto; }

/* ---- analytics row --------------------------------------------------- */
.ho-analytics { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.02fr) minmax(0, 1.05fr); gap: var(--ho-gap); align-items: stretch; }
.ho-usage-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ho-gap); }
.ho-chart-card, .ho-donut-card, .ho-renewals-card { display: flex; flex-direction: column; padding: var(--ho-pad); min-width: 0; }
.ho-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-width: 0; }
.ho-card-title { margin: 0 0 12px; font-size: 16.5px; font-weight: 600; color: var(--text); }
.ho-card-head .ho-card-title { margin: 0; }
.ho-card-link { font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: none; flex: 0 0 auto; }
.ho-card-link:hover { text-decoration: underline; }
.ho-head-btn { height: 28px; padding: 0 10px; font-size: 12px; }
.ho-head-btn .btn-icon { width: 13px; height: 13px; }
.ho-legend-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
/* the card title keeps one line; the legend is what gives way */
.ho-chart-card .ho-card-head > .ho-card-title { white-space: nowrap; flex: 0 0 auto; }
/* the legend wraps to its own line when the card is narrow — it must never
   paint outside the card, which is what nowrap used to do */
.ho-chart-card .ho-card-head { flex-wrap: wrap; row-gap: 8px; }
.ho-chart-card .ho-legend-row { flex: 1 1 auto; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ho-chart-card .ho-legend { font-size: 11px; white-space: nowrap; flex: 0 0 auto; gap: 5px; }
.ho-range .filter-select { padding: 0 8px; font-size: 11px; white-space: nowrap; }
.ho-range .filter-select span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-range { flex: 0 1 auto; min-width: 0; }
.ho-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.ho-legend-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.ho-chart { position: relative; height: 200px; min-width: 0; flex: 1 1 auto; }
.ho-chart-tall { height: 216px; }
.ho-chart canvas { max-width: 100%; }

.ho-donut-row { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.ho-donut { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.ho-donut canvas { width: 100% !important; height: 100% !important; }
.ho-donut-centre {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; pointer-events: none;
}
.ho-donut-value { font-size: 21px; line-height: 25px; font-weight: 700; color: var(--text); }
.ho-donut-label { font-size: 10.5px; color: var(--muted); }
.ho-donut-legend { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; min-width: 0; }
.ho-donut-legend li a {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 25px; padding: 0 5px; border-radius: 6px; text-decoration: none;
}
.ho-donut-legend li a:hover { background: var(--bg-subtle); }
.ho-legend-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-legend-count { font-size: 12.5px; font-weight: 600; color: var(--text); flex: 0 0 auto; }
.ho-legend-pct { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; min-width: 34px; text-align: right; }

/* ---- upcoming renewals ------------------------------------------------ */
.ho-renewals { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ho-renewal { display: flex; align-items: center; gap: 8px; padding: 5px 0; min-width: 0; }
.ho-renewal + .ho-renewal { border-top: 1px solid var(--border-soft); }
.ho-renewal-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 32px; flex: 0 0 auto; padding: 3px 0; border-radius: 7px; background: var(--bg-subtle);
}
.ho-renewal-mon { font-size: 9px; font-weight: 700; letter-spacing: .4px; color: var(--text-danger); }
.ho-renewal-day { font-size: 13px; font-weight: 700; color: var(--text); line-height: 15px; }
.ho-renewal-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-renewal-name:hover { text-decoration: underline; }
.ho-renewal-item { color: var(--muted); font-weight: 400; }
.ho-renewal-cost { font-size: 12.5px; font-weight: 600; color: var(--text); flex: 0 0 auto; white-space: nowrap; }

/* ---- pills, bars, chips ---------------------------------------------- */
.ho-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto;
}
.ho-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.ho-pill-green  { background: var(--tint-success); color: var(--text-success); }
.ho-pill-red    { background: var(--tint-danger);  color: var(--text-danger); }
.ho-pill-amber  { background: var(--tint-warning); color: var(--text-warning); }
.ho-pill-purple { background: var(--tint-purple);  color: var(--fg-purple); }
.ho-pill-grey   { background: var(--bg-muted);     color: var(--muted); }

.ho-usage { display: inline-flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.ho-usage-track { flex: 1 1 auto; min-width: 34px; height: 5px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.ho-usage-fill { display: block; height: 100%; border-radius: 3px; }
.ho-usage-green { background: var(--success); }
.ho-usage-amber { background: var(--warning); }
.ho-usage-red   { background: var(--danger); }
.ho-usage-pct { font-size: 11.5px; font-weight: 600; color: var(--muted); flex: 0 0 auto; min-width: 30px; text-align: right; }

.ho-days {
  display: inline-flex; align-items: center; justify-content: center;
  height: 21px; padding: 0 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap; flex: 0 0 auto;
}
.ho-days-red   { background: var(--tint-danger);  color: var(--text-danger); }
.ho-days-amber { background: var(--tint-warning); color: var(--text-warning); }
.ho-days-green { background: var(--tint-success); color: var(--text-success); }

.ho-plan { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ho-plan-blue  { background: var(--tint-info); color: var(--text-link); }
.ho-plan-slate { background: var(--bg-muted);  color: var(--text-2); }

.ho-aff { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.ho-aff-blue   { background: var(--tint-info);    color: var(--text-link); }
.ho-aff-amber  { background: var(--tint-warning); color: var(--text-warning); }
.ho-aff-purple { background: var(--tint-purple);  color: var(--fg-purple); }
.ho-aff-slate  { background: var(--bg-muted);     color: var(--muted); }

.ho-cat { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-muted); color: var(--text-2); white-space: nowrap; }
.ho-cat-betting { background: var(--tint-success); color: var(--text-success); }
.ho-cat-casino  { background: var(--tint-purple);  color: var(--fg-purple); }
.ho-cat-blog    { background: var(--tint-warning); color: var(--text-warning); }
.ho-cat-tools   { background: var(--tint-info);    color: var(--text-link); }

/* ---- filter bar + chips ---------------------------------------------- */
.ho-filter-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-width: 0; flex-wrap: nowrap; }
.ho-filter-bar .filter-search { flex: 1 1 190px; min-width: 120px; }
.ho-filter-bar .filter-control { width: 118px; flex: 0 0 auto; }
.ho-filter-bar .filter-control-label { overflow: hidden; text-overflow: ellipsis; }
.ho-filter-bar .btn-more-filter { flex: 0 0 auto; margin-left: auto; }
.ho-filter-add { flex: 0 0 auto; height: 34px; }
.ho-chip-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ho-chip-row .quick-filters { flex: 1 1 auto; flex-wrap: wrap; row-gap: 8px; margin: 0; }
.ho-chip-row .filter-chip { flex: 0 0 auto; height: 29px; padding: 0 9px; font-size: 11.5px; gap: 5px; }
.ho-view-toggle { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ho-view-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--border-default); border-radius: 8px;
  background: var(--bg-surface); color: var(--text-2);
  font-size: 12.5px; font-weight: 500; text-decoration: none;
}
.ho-view-btn:hover { background: var(--bg-hover); border-color: var(--border-primary); }
.ho-view-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ho-view-ico { width: 14px; height: 14px; }

/* ---- tables ----------------------------------------------------------- */
.ho-list-card { padding: 0; overflow: hidden; min-width: 0; }
.ho-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.ho-server-table { min-width: 850px; }
.ho-site-table { min-width: 960px; }
.ho-table th, .ho-table td { padding: 10px 12px; text-align: left; vertical-align: middle; }
.ho-server-table th, .ho-server-table td { padding: 10px 6px; }
.ho-server-table thead th { font-size: 10.5px; letter-spacing: .1px; }
.ho-server-table .ho-plan { padding: 0 6px; font-size: 11px; }
.ho-server-table .ho-disk { min-width: 82px; }
.ho-server-table .th-check { width: 28px; }
.ho-server-table .th-num { width: 26px; }
.ho-table thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--muted); background: var(--bg-subtle); border-bottom: 1px solid var(--border-default); white-space: nowrap;
}
.ho-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.ho-table tbody tr:last-child { border-bottom: 0; }
.ho-table tbody tr:hover { background: var(--bg-subtle); cursor: pointer; }
.ho-table tbody td { font-size: 13.5px; color: var(--text-2); }
.ho-table .th-num, .ho-table .td-muted { color: var(--muted); }
.ho-table .th-check { width: 34px; padding-right: 0; }
.ho-table .th-num { width: 38px; }
.ho-table .ta-c { text-align: center; }
.ho-table .ta-r { text-align: right; }
.ho-date-soon { color: var(--text-danger); font-weight: 500; }
.ho-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text-link); font-weight: 500; text-decoration: none; min-width: 0; }
.ho-link:hover { text-decoration: underline; }
.ho-ext { width: 12px; height: 12px; flex: 0 0 auto; }
.ho-row-mark { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 5px; overflow: hidden; }
.ho-row-mark svg { width: 100%; height: 100%; }
.ho-server-link { align-items: center; }
.ho-server-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; white-space: nowrap; }
.ho-server-slug { font-size: 11px; font-weight: 400; color: var(--muted); }
.ho-region { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ho-region .flag { width: 16px; height: 11px; border-radius: 2px; flex: 0 0 auto; }
.ho-disk { display: flex; flex-direction: column; gap: 3px; min-width: 108px; }
.ho-disk-text { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ho-admin { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ho-tech { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ho-tech-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; }
.ho-tech-logo svg, .ho-tech-mark { width: 100%; height: 100%; }
.ho-tech-code { color: var(--muted); }
.ho-tech-code .icon { width: 18px; height: 18px; }
.ho-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 auto; padding: 0;
  border: 0; border-radius: 5px; background: transparent; color: var(--text-disabled); cursor: pointer;
}
.ho-copy:hover { background: var(--bg-muted); color: var(--text-link); }
.ho-copy.is-copied { color: var(--text-success); }
.ho-copy .icon { width: 13px; height: 13px; }
.ho-dash { color: var(--text-disabled); }
.ho-foot { flex-wrap: wrap; gap: 10px; }

/* ---- level 2 split ---------------------------------------------------- */
/* wide enough for the longest line an account card holds ("Last synced:
   2 hours ago"); the servers table beside it is a scroll container, so it
   gives way rather than the text */
.ho-split { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 14px; align-items: start; }
.ho-acc-rail { padding: 15px; min-width: 0; }
.ho-acc-rail .ho-card-head { flex-wrap: wrap; }
.ho-acc-rail .ho-card-title { font-size: 15.5px; }
.ho-acc-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ho-acc-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px;
  border: 1px solid var(--border-default); border-radius: 10px;
  background: var(--bg-surface); text-decoration: none; min-width: 0;
}
.ho-acc-item:hover { border-color: var(--border-primary); background: var(--bg-hover); }
.ho-acc-item.is-selected { border-color: var(--primary); background: var(--tint-info); box-shadow: inset 0 0 0 1px var(--primary); }
.ho-acc-item-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 auto; padding: 5px;
  border-radius: 9px; background: var(--bg-subtle); overflow: hidden;
}
.ho-acc-item-mark { display: block; width: 100%; height: 100%; }
.ho-acc-item-mark svg { width: 100%; height: 100%; }
.ho-acc-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ho-acc-item-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ho-acc-item-label { font-size: 14.5px; font-weight: 600; color: var(--text-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-default { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--tint-success); color: var(--text-success); font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.ho-acc-item-mail, .ho-acc-item-meta, .ho-acc-item-sync { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-acc-item-meta, .ho-acc-item-sync { display: flex; align-items: center; gap: 5px; }
.ho-acc-item-chev { display: inline-flex; align-items: center; color: var(--text-disabled); flex: 0 0 auto; align-self: center; }
.ho-acc-item-chev .icon { width: 15px; height: 15px; }

.ho-panel { display: flex; flex-direction: column; gap: 13px; padding: 15px; min-width: 0; }
.ho-panel-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex-wrap: wrap; }
.ho-panel-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: 0 0 auto; padding: 7px;
  border-radius: 12px; background: var(--bg-subtle); overflow: hidden;
}
.ho-panel-mark { display: block; width: 100%; height: 100%; }
.ho-panel-mark svg { width: 100%; height: 100%; }
.ho-panel-title-wrap { flex: 1 1 200px; min-width: 0; }
.ho-panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; font-size: 21px; line-height: 27px; font-weight: 700; color: var(--text); }
.ho-panel-mail { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; font-size: 13px; color: var(--muted); min-width: 0; }
.ho-panel-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.ho-panel-actions .btn { height: 32px; font-size: 12.5px; }
.ho-panel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; font-size: 13px; color: var(--text-2); }
.ho-panel-meta > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- tabs ------------------------------------------------------------- */
.ho-tabs { display: flex; align-items: center; gap: 3px; border-bottom: 1px solid var(--border-default); overflow-x: auto; scrollbar-width: none; }
.ho-tabs::-webkit-scrollbar { display: none; }
.ho-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px;
  border-bottom: 2px solid transparent; color: var(--muted);
  font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.ho-tab:hover { color: var(--text); }
.ho-tab.is-active { color: var(--text-link); border-bottom-color: var(--primary); font-weight: 600; }
.ho-tab-count { color: inherit; opacity: .75; }
.ho-tab-icon { width: 15px; height: 15px; }

/* ---- tiles ------------------------------------------------------------ */
.ho-tile-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 8px; align-items: stretch; }
.ho-tile-row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ho-tile {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; min-width: 0;
  border: 1px solid var(--card-border); border-radius: 10px; background: var(--bg-surface); text-decoration: none;
}
a.ho-tile:hover { border-color: var(--border-primary); background: var(--bg-hover); }
.ho-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; }
.ho-tile-icon .icon { width: 18px; height: 18px; }
.ho-tile-icon-blue   { background: var(--tint-info); color: var(--text-link); }
.ho-tile-icon-green  { background: var(--tint-success); color: var(--fg-success); }
.ho-tile-icon-red    { background: var(--tint-danger); color: var(--fg-danger); }
.ho-tile-icon-amber  { background: var(--tint-warning); color: var(--fg-warning); }
.ho-tile-icon-purple { background: var(--tint-purple); color: var(--fg-purple); }
.ho-tile-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.ho-tile-value { font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the label wraps rather than truncating — six tiles plus a button is tight */
.ho-tile-label { font-size: 11.5px; line-height: 14px; color: var(--muted); }
.ho-tile-btn { height: auto; align-self: stretch; white-space: nowrap; padding: 0 12px; }
.ho-tile-bar { margin-top: 3px; }

/* ---- website panel ---------------------------------------------------- */
.ho-panel-slot { min-width: 0; }
.ho-panel-slot.is-loading { opacity: .5; }
.ho-site-panel { display: flex; flex-direction: column; gap: 13px; padding: var(--ho-pad); min-width: 0; }
.ho-site-row.is-open { background: var(--tint-info); box-shadow: inset 3px 0 0 var(--primary); }
.ho-site-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex-wrap: wrap; }
.ho-site-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; background: var(--bg-subtle);
}
/* sh_site_logo wraps the mark in a span; size the inner SVG, not the span */
.ho-site-mark, .ho-site-logo img, .ho-site-logo svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.ho-site-logo { background: var(--bg-ink, #0B1220); padding: 7px; }
.ho-site-logo .logo-mark, .ho-site-logo .logo-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ho-site-logo .logo-mono { width: 100%; height: 100%; font-size: clamp(9px, 34cqw, 18px); }
.ho-site-title-wrap { flex: 1 1 200px; min-width: 0; }
.ho-site-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.ho-site-title a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; }
.ho-site-title a:hover { color: var(--text-link); }
.ho-site-desc { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.ho-site-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.ho-site-actions .btn { height: 32px; font-size: 12.5px; }
.ho-site-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1px solid var(--border-default); border-radius: 8px;
  background: var(--bg-surface); color: var(--muted);
}
.ho-site-close:hover { background: var(--tint-danger); border-color: var(--border-danger); color: var(--text-danger); }
.ho-site-close .icon { width: 15px; height: 15px; }
.ho-site-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ho-gap); align-items: start; }
.ho-site-col, .ho-acct-col { display: flex; flex-direction: column; gap: var(--ho-gap); min-width: 0; }
.ho-sub-card { padding: 15px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--bg-surface); min-width: 0; }
.ho-site-panel .ho-sub-card { background: var(--bg-subtle); }

/* ---- definition lists -------------------------------------------------- */
.ho-dl { display: flex; flex-direction: column; }
.ho-dl-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
.ho-dl-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; min-width: 0; border-bottom: 1px solid var(--border-soft); }
.ho-dl-row:last-child { border-bottom: 0; }
.ho-dl-k { flex: 0 0 138px; font-size: 13px; color: var(--muted); }
.ho-dl-v { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--text); flex-wrap: wrap; }
.ho-dl-v .flag { width: 16px; height: 11px; border-radius: 2px; flex: 0 0 auto; }
.ho-dl-note .ho-dl-v { font-weight: 400; color: var(--muted); }
.ho-inline-btn { height: 26px; padding: 0 9px; font-size: 11.5px; margin-left: auto; }
.ho-2fa { display: inline-flex; align-items: center; gap: 5px; color: var(--text-success); font-weight: 600; }
.ho-2fa-off { color: var(--text-danger); }
.ho-2fa-ico { width: 15px; height: 15px; }

/* ---- credentials ------------------------------------------------------- */
.ho-secret { gap: 7px; }
.ho-secret-input {
  flex: 1 1 auto; min-width: 80px; height: 30px; padding: 0 10px;
  border: 1px solid var(--border-default); border-radius: 7px;
  background: var(--bg-input); color: var(--text);
  font-family: var(--font); font-size: 12.5px; letter-spacing: .5px;
}
.ho-eye {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: 0 0 auto; padding: 0;
  border: 1px solid var(--border-default); border-radius: 7px;
  background: var(--bg-surface); color: var(--muted); cursor: pointer;
}
.ho-eye:hover { background: var(--bg-hover); color: var(--text-link); }
.ho-eye.is-on { background: var(--tint-info); border-color: var(--border-primary); color: var(--text-link); }
.ho-eye .icon { width: 15px; height: 15px; }
.ho-secret-copy { height: 28px; padding: 0 9px; font-size: 11.5px; flex: 0 0 auto; }
.ho-secret-copy .btn-icon { width: 13px; height: 13px; }

/* ---- quick actions ----------------------------------------------------- */
.ho-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ho-quick-btn {
  display: flex; align-items: center; gap: 7px; min-width: 0; padding: 10px;
  border: 1px solid var(--border-default); border-radius: 9px;
  background: var(--bg-surface); color: var(--text-2);
  font-size: 12.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  font-family: var(--font); text-align: left;
}
.ho-quick-btn:hover { background: var(--bg-hover); border-color: var(--border-primary); color: var(--text-link); }
.ho-quick-btn .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.ho-quick-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-quick-danger { color: var(--text-danger); }
.ho-quick-danger:hover { background: var(--tint-danger); border-color: var(--border-danger); color: var(--text-danger); }

/* ---- level 4 ----------------------------------------------------------- */
.ho-acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ho-gap); align-items: start; }
.ho-notes { margin-top: 12px; }
.ho-notes-box {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 5px; padding: 10px 12px;
  border-radius: 9px; background: var(--bg-subtle); border: 1px solid var(--border-soft);
}
.ho-notes-box p { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 12.5px; line-height: 18px; color: var(--text-2); }
.ho-notes-edit { display: inline-flex; color: var(--text-disabled); flex: 0 0 auto; }
.ho-notes-edit:hover { color: var(--text-link); }
.ho-notes-edit .icon { width: 14px; height: 14px; }
.ho-note-body { margin: 0 0 10px; font-size: 13px; line-height: 19px; color: var(--text-2); }
.ho-team-table { width: 100%; min-width: 420px; border-collapse: collapse; }
.ho-team-table th, .ho-team-table td { padding: 9px 10px; text-align: left; font-size: 12.5px; }
.ho-team-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border-default); }
.ho-team-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.ho-team-table tbody tr:last-child { border-bottom: 0; }

.ho-timeline { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ho-tl-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; min-width: 0; }
.ho-tl-item + .ho-tl-item { border-top: 1px solid var(--border-soft); }
.ho-tl-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; }
.ho-tl-icon .icon { width: 14px; height: 14px; }
.ho-tl-green  { background: var(--tint-success); color: var(--text-success); }
.ho-tl-blue   { background: var(--tint-info);    color: var(--text-link); }
.ho-tl-purple { background: var(--tint-purple);  color: var(--fg-purple); }
.ho-tl-amber  { background: var(--tint-warning); color: var(--text-warning); }
.ho-tl-text { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-tl-when { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }

.ho-encrypt-note {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--border-soft); border-radius: var(--ho-radius); background: var(--bg-subtle);
}
.ho-encrypt-icon { display: inline-flex; color: var(--text-link); flex: 0 0 auto; }
.ho-encrypt-icon .icon { width: 17px; height: 17px; }
.ho-encrypt-note p { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--text-2); }
.ho-encrypt-time { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }

/* ---- level 1 cards view ------------------------------------------------ */
.ho-acc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ho-gap); }
.ho-acc-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-left: 3px solid var(--border-default); min-width: 0; }
.ho-acc-active    { border-left-color: var(--success); }
.ho-acc-renewing  { border-left-color: var(--warning); }
.ho-acc-suspended { border-left-color: var(--danger); }
.ho-acc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ho-acc-logo { display: inline-flex; width: 32px; height: 32px; flex: 0 0 auto; padding: 4px; border-radius: 8px; background: var(--bg-subtle); overflow: hidden; }
.ho-acc-mark { display: block; width: 100%; height: 100%; }
.ho-acc-mark svg { width: 100%; height: 100%; }
.ho-acc-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-acc-label { font-size: 15px; font-weight: 700; color: var(--text-link); text-decoration: none; }
.ho-acc-label:hover { text-decoration: underline; }
.ho-acc-plan { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--muted); min-width: 0; flex-wrap: wrap; }
.ho-acc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; }
.ho-acc-facts dt { font-size: 10.5px; color: var(--muted); }
.ho-acc-facts dd { margin: 1px 0 0; font-size: 13px; font-weight: 600; color: var(--text); }
.ho-acc-usage { margin-top: 4px; }
.ho-acc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.ho-acc-renew { font-size: 11.5px; color: var(--muted); }
.ho-acc-renew.is-soon { color: var(--text-danger); font-weight: 500; }

/* ---- empty states ------------------------------------------------------ */
.ho-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 20px; text-align: center; min-width: 0; }
.ho-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-muted); color: var(--muted); }
.ho-empty-icon .icon { width: 20px; height: 20px; }
.ho-empty-title { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.ho-empty-body { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 420px; }
.ho-empty-btn { margin-top: 6px; height: 32px; }

/* ---- modal dialogs ------------------------------------------------------ */
.ho-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ho-modal-scrim { position: absolute; inset: 0; background: var(--bg-overlay); }
.ho-modal-card { position: relative; width: min(720px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: var(--ho-pad); box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.ho-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ho-modal-head .ho-card-title { text-transform: capitalize; }
.ho-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; color: var(--muted); }
.ho-modal-close:hover { background: var(--bg-muted); color: var(--text); }
.ho-modal-close .icon { width: 16px; height: 16px; }
.ho-modal-note { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.ho-form { display: flex; flex-direction: column; gap: 12px; }
.ho-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ho-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ho-field-wide { grid-column: 1 / -1; }
.ho-field-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.ho-field-hint { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.ho-input {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border-default); border-radius: 8px;
  background: var(--bg-input); color: var(--text); font-family: var(--font); font-size: 13px;
}
.ho-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.ho-form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; }
body.ho-modal-open { overflow: hidden; }

/* ---- toast --------------------------------------------------------------- */
.ho-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 9px 16px; border-radius: 20px;
  background: var(--text); color: var(--bg-surface);
  font-size: 12.5px; font-weight: 500;
  transition: opacity .18s ease, transform .18s ease;
}
.ho-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1600px) {
  .page-hosting-v2 .ho-acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the three analytics cards sit side by side down to laptop width, as in the
   reference; below that the renewals list takes a full row of its own */
@media (max-width: 1400px) {
  .page-hosting-v2 .ho-analytics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-hosting-v2 .ho-renewals-card { grid-column: 1 / -1; }
}
@media (max-width: 1440px) {
  /* keep six across while they still fit, rather than dropping straight to three */
  .page-hosting-v2 .ho-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .page-hosting-v2 .ho-stats-5, .page-hosting-v2 .ho-stats-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .page-hosting-v2 .ho-providers { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
  /* the plan name after the provider is the first thing to go when space runs out */
  .page-hosting-v2 .ho-tile-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hosting-v2 .ho-tile-row-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hosting-v2 .ho-tile-btn { grid-column: 1 / -1; }
  .page-hosting-v2 .ho-split { grid-template-columns: 296px minmax(0, 1fr); }
  .page-hosting-v2 .ho-filter-bar { flex-wrap: wrap; }
  .page-hosting-v2 .ho-filter-bar .filter-control { width: calc(25% - 6px); }
  .page-hosting-v2 .ho-filter-bar .btn-more-filter { margin-left: 0; }
}
@media (max-width: 1200px) {
  .page-hosting-v2 .ho-split { grid-template-columns: minmax(0, 1fr); }
  .page-hosting-v2 .ho-acc-rail { order: -1; }
  .page-hosting-v2 .ho-acc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .page-hosting-v2 .ho-site-grid, .page-hosting-v2 .ho-acct-grid, .page-hosting-v2 .ho-usage-row, .page-hosting-v2 .ho-dl-2 { grid-template-columns: minmax(0, 1fr); }
  .page-hosting-v2 .ho-acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hosting-v2 .ho-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-hosting-v2 { padding: 14px 14px 22px; }
  .page-hosting-v2 .ho-analytics { grid-template-columns: minmax(0, 1fr); }
  .page-hosting-v2 .ho-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hosting-v2 .ho-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hosting-v2 .ho-tile-row, .page-hosting-v2 .ho-tile-row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hosting-v2 .ho-header { flex-wrap: wrap; }
  .page-hosting-v2 .ho-header-actions { width: 100%; padding-top: 0; }
  .page-hosting-v2 .ho-filter-bar .filter-control { width: calc(33.333% - 6px); }
  .page-hosting-v2 .ho-donut-row { flex-direction: column; align-items: stretch; }
  .page-hosting-v2 .ho-donut { align-self: center; }
  .page-hosting-v2 .ho-form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page-hosting-v2 .ho-stats, .page-hosting-v2 .ho-stats-5, .page-hosting-v2 .ho-stats-4, .page-hosting-v2 .ho-providers, .page-hosting-v2 .ho-acc-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hosting-v2 .ho-tile-row, .page-hosting-v2 .ho-tile-row-5, .page-hosting-v2 .ho-quick { grid-template-columns: minmax(0, 1fr); }
  .page-hosting-v2 .ho-header-title { font-size: 21px; line-height: 27px; }
  .page-hosting-v2 .ho-stat-value { font-size: 22px; line-height: 28px; }
  .page-hosting-v2 .ho-filter-bar .filter-control { width: calc(50% - 4px); }
  .page-hosting-v2 .ho-dl-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-hosting-v2 .ho-dl-k { flex: 0 0 auto; }
}

/* ==========================================================================
   FINANCE — Overview + Revenue Manager (rebuilt)
   Scoped to .page-fin-v2 so the app-wide responsive fallbacks cannot outrank
   these rules (they use [class*="-grid"] / [class*="-row"] selectors).
   ========================================================================== */
.page-fin-v2 {
  --fin-gap: 16px;
  --fin-pad: 20px;
  --fin-radius: 12px;
  display: flex; flex-direction: column; gap: var(--fin-gap);
  padding: 16px var(--content-pad-x) 28px;
  min-width: 0;
}
.page-fin-v2 .dashboard-card { background: var(--bg-surface); border: 1px solid var(--card-border); border-radius: var(--fin-radius); }

/* ---- breadcrumb + header --------------------------------------------- */
.page-fin-v2 .fin-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; flex-wrap: wrap; }
.page-fin-v2 .fin-crumbs a { color: var(--text-link); text-decoration: none; }
.page-fin-v2 .fin-crumbs a:hover { text-decoration: underline; }
.page-fin-v2 .fin-crumbs [aria-current] { color: var(--text); font-weight: 600; }
.page-fin-v2 .fin-crumb-sep { display: inline-flex; color: var(--text-disabled); }
.page-fin-v2 .fin-crumb-sep .icon { width: 13px; height: 13px; }

.page-fin-v2 .fin-header { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.page-fin-v2 .fin-header-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 13px;
  background: var(--tint-info); color: var(--text-link);
}
.page-fin-v2 .fin-header-icon-green { background: var(--tint-success); color: var(--fg-success); }
.page-fin-v2 .fin-header-icon .icon { width: 26px; height: 26px; }
.page-fin-v2 .fin-header-text { flex: 1 1 auto; min-width: 0; }
.page-fin-v2 .fin-header-title { margin: 0; font-size: 27px; line-height: 34px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.page-fin-v2 .fin-header-sub { margin: 4px 0 0; font-size: 13.5px; line-height: 20px; color: var(--muted); }
.page-fin-v2 .fin-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding-top: 5px; flex-wrap: wrap; }
.page-fin-v2 .fin-header-actions .btn { height: 36px; }

/* ---- global filter bar ------------------------------------------------ */
.page-fin-v2 .fin-filter-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; flex-wrap: wrap; min-width: 0; }
.page-fin-v2 .fin-filter { flex: 0 1 auto; min-width: 132px; }
.page-fin-v2 .fin-filter-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; min-width: 0;
  border: 1px solid var(--border-default); border-radius: 9px;
  background: var(--bg-surface); color: var(--text-2);
  font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer;
}
.page-fin-v2 .fin-filter-btn:hover { background: var(--bg-hover); border-color: var(--border-primary); }
.page-fin-v2 .fin-filter.is-set .fin-filter-btn { border-color: var(--primary); color: var(--text-link); background: var(--tint-info); }
.page-fin-v2 .fin-filter-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.page-fin-v2 .fin-filter.is-set .fin-filter-icon { color: var(--text-link); }
.page-fin-v2 .fin-filter-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.25; }
.page-fin-v2 .fin-filter-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.page-fin-v2 .fin-filter-cap { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.page-fin-v2 .fin-filter-val { font-size: 13px; font-weight: 600; color: var(--text); }
.page-fin-v2 .fin-filter-chevron { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-disabled); }
.page-fin-v2 .fin-filter-menu { max-height: 320px; overflow-y: auto; }
.page-fin-v2 .fin-filter-lg .fin-filter-btn { height: 46px; }
.page-fin-v2 .fin-filter-bar-wide .fin-filter-btn { height: 46px; }
.page-fin-v2 .fin-filter-clear {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; margin-left: auto;
  border-radius: 9px; color: var(--text-danger); font-size: 12.5px; font-weight: 500; text-decoration: none; flex: 0 0 auto;
}
.page-fin-v2 .fin-filter-clear:hover { background: var(--tint-danger); }
.page-fin-v2 .fin-filter-clear-icon { width: 14px; height: 14px; }
.page-fin-v2 .fin-more-filters { height: 38px; flex: 0 0 auto; }
.page-fin-v2 .fin-filter-bar-wide .fin-more-filters { height: 46px; margin-left: auto; }

/* ---- stat cards ------------------------------------------------------- */
.page-fin-v2 .fin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* six across needs a tighter card so the longest label stays on one line */
.page-fin-v2 .fin-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.page-fin-v2 .fin-stats-6 .fin-stat { padding: 12px 12px 13px; }
.page-fin-v2 .fin-stats-6 .fin-stat-head { gap: 7px; }
.page-fin-v2 .fin-stats-6 .fin-stat-icon { width: 28px; height: 28px; border-radius: 8px; }
.page-fin-v2 .fin-stats-6 .fin-stat-icon .icon { width: 15px; height: 15px; }
.page-fin-v2 .fin-stats-6 .fin-stat-label { font-size: 11.5px; line-height: 15px; }
.page-fin-v2 .fin-stats-6 .fin-stat-value { font-size: 23px; line-height: 29px; }
.page-fin-v2 .fin-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 13px 16px 14px; min-width: 0; }
.page-fin-v2 .fin-stat-head { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; margin-bottom: 3px; }
.page-fin-v2 .fin-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
}
.page-fin-v2 .fin-stat-icon .icon { width: 17px; height: 17px; }
.page-fin-v2 .fin-stat-icon-green  { background: var(--tint-success); color: var(--fg-success); }
.page-fin-v2 .fin-stat-icon-red    { background: var(--tint-danger);  color: var(--fg-danger); }
.page-fin-v2 .fin-stat-icon-blue   { background: var(--tint-info);    color: var(--text-link); }
.page-fin-v2 .fin-stat-icon-purple { background: var(--tint-purple);  color: var(--fg-purple); }
.page-fin-v2 .fin-stat-icon-amber  { background: var(--tint-warning); color: var(--fg-warning); }
.page-fin-v2 .fin-stat-label { flex: 1 1 auto; min-width: 0; font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--text-2); }
.page-fin-v2 .fin-stat-menu { flex: 0 0 auto; }
.page-fin-v2 .fin-stat-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex: 0 0 auto; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: var(--text-disabled); cursor: pointer;
}
.page-fin-v2 .fin-stat-menu-btn:hover { background: var(--bg-muted); color: var(--text); }
.page-fin-v2 .fin-stat-menu-btn .icon { width: 13px; height: 13px; }
.page-fin-v2 .fin-stat-value { display: block; font-size: 27px; line-height: 34px; font-weight: 700; color: var(--text); letter-spacing: -.6px; text-decoration: none; }
.page-fin-v2 a.fin-stat-value:hover { color: var(--text-link); }
.page-fin-v2 .fin-stat-sub { font-size: 11.5px; line-height: 15px; color: var(--muted); }

.page-fin-v2 .fin-pill { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.page-fin-v2 .fin-pill-up { color: var(--text-success); }
.page-fin-v2 .fin-pill-down { color: var(--text-danger); }
.page-fin-v2 .fin-pill-flat { color: var(--muted); }
.page-fin-v2 .fin-pill-icon { width: 13px; height: 13px; }
/* inside the ranked lists the references fill the pill */
.page-fin-v2 .fin-rank .fin-pill { height: 20px; padding: 0 7px; border-radius: 20px; font-size: 11.5px; }
.page-fin-v2 .fin-rank .fin-pill-up   { background: var(--tint-success); }
.page-fin-v2 .fin-rank .fin-pill-down { background: var(--tint-danger); }
.page-fin-v2 .fin-rank .fin-pill-flat { background: var(--bg-muted); }
.page-fin-v2 .fin-rank .fin-pill-icon { width: 11px; height: 11px; }

/* ---- rows ------------------------------------------------------------- */
.page-fin-v2 .fin-row { display: grid; gap: var(--fin-gap); align-items: stretch; min-width: 0; }
.page-fin-v2 .fin-row-2a { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); }
.page-fin-v2 .fin-row-2b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); }
.page-fin-v2 .fin-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.page-fin-v2 .fin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-width: 0; flex-wrap: wrap; row-gap: 8px; }
.page-fin-v2 .fin-card-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; }
.page-fin-v2 .fin-view-all { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--text-link); text-decoration: none; flex: 0 0 auto; }
.page-fin-v2 .fin-view-all:hover { text-decoration: underline; }
.page-fin-v2 .fin-view-all-icon { width: 13px; height: 13px; }

.page-fin-v2 .fin-chart-card, .page-fin-v2 .fin-donut-card, .page-fin-v2 .fin-list-card, .page-fin-v2 .fin-map-card, .page-fin-v2 .fin-health-card { display: flex; flex-direction: column; height: auto; padding: var(--fin-pad); min-width: 0; }
.page-fin-v2 .fin-chart { position: relative; height: 190px; min-width: 0; flex: 1 1 auto; }
.page-fin-v2 .fin-chart canvas { max-width: 100%; }

.page-fin-v2 .fin-legend-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
/* the reference puts the series legend on its own centred line under the title */
.page-fin-v2 .fin-legend-row-under { justify-content: center; gap: 16px; margin: -6px 0 8px; }
.page-fin-v2 .fin-legend {
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
  border: 0; background: none; color: var(--text-2);
  font-family: var(--font); font-size: 12px; cursor: pointer; white-space: nowrap;
}
.page-fin-v2 .fin-legend:hover { color: var(--text); }
.page-fin-v2 .fin-legend.is-off { opacity: .42; text-decoration: line-through; }
.page-fin-v2 .fin-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

.page-fin-v2 .fin-select { flex: 0 0 auto; }
.page-fin-v2 .fin-select-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--border-default); border-radius: 8px;
  background: var(--bg-surface); color: var(--text-2);
  font-family: var(--font); font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.page-fin-v2 .fin-select-btn:hover { background: var(--bg-hover); border-color: var(--border-primary); }
.page-fin-v2 .fin-select-chevron { width: 13px; height: 13px; color: var(--text-disabled); }

/* ---- donuts ----------------------------------------------------------- */
.page-fin-v2 .fin-donut-row { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 auto; }
.page-fin-v2 .fin-donut { position: relative; width: 176px; height: 176px; flex: 0 0 auto; }
.page-fin-v2 .fin-donut canvas { width: 100% !important; height: 100% !important; }
.page-fin-v2 .fin-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; pointer-events: none; }
.page-fin-v2 .fin-donut-value { font-size: 23px; line-height: 27px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.page-fin-v2 .fin-donut-label { font-size: 10.5px; color: var(--muted); }
/* the batch-06 block makes the <li> a flex container with a fixed height,
   which left my <a> shrink-wrapped and broke the legend's columns */
.page-fin-v2 .fin-donut-legend, .page-fin-v2 .fin-geo-list { display: flex; flex-direction: column; gap: 1px; margin: 0 0 0 0; padding: 0; list-style: none; flex: 1 1 auto; min-width: 0; }
.page-fin-v2 .fin-donut-legend li, .page-fin-v2 .fin-geo-list li { display: block; height: auto; font-size: inherit; letter-spacing: normal; white-space: normal; }
.page-fin-v2 .fin-donut-legend li a, .page-fin-v2 .fin-geo-list li a {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 29px; padding: 0 5px; border-radius: 6px; text-decoration: none;
}
.page-fin-v2 .fin-donut-legend li a:hover, .page-fin-v2 .fin-geo-list li a:hover { background: var(--bg-subtle); }
.page-fin-v2 .fin-geo-list .flag { width: 17px; height: 12px; border-radius: 2px; flex: 0 0 auto; }
/* the name takes the slack so the percentage and the amount form real
   columns, as they do in the references */
/* the references keep the name and the percentage together in fixed columns
   and push only the amount to the right edge */
.page-fin-v2 .fin-donut-legend .fin-legend-name { flex: 0 1 106px; width: 106px; }
.page-fin-v2 .fin-geo-list .fin-legend-name { flex: 0 1 88px; width: 88px; }
.page-fin-v2 .fin-donut-legend .fin-legend-name, .page-fin-v2 .fin-geo-list .fin-legend-name { min-width: 0; font-size: 12.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-fin-v2 .fin-donut-legend .fin-legend-amount, .page-fin-v2 .fin-geo-list .fin-legend-amount { margin-left: auto; }
.page-fin-v2 .fin-legend-name { flex: 1 1 0%; min-width: 0; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-donut-legend .fin-legend-pct, .page-fin-v2 .fin-geo-list .fin-legend-pct { width: 46px; }
.page-fin-v2 .fin-legend-pct { font-size: 12.5px; color: var(--muted); flex: 0 0 auto; width: 46px; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.page-fin-v2 .fin-legend-amount { font-size: 13px; font-weight: 600; color: var(--text); flex: 0 0 auto; width: 68px; min-width: 68px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---- world map -------------------------------------------------------- */
.page-fin-v2 .fin-map-row { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.page-fin-v2 .fin-map { position: relative; flex: 1 1 auto; min-width: 0; }
.page-fin-v2 .fin-map { min-width: 0; flex: 1 1 auto; align-self: center; }
.page-fin-v2 .fin-map svg, .page-fin-v2 .fin-map .wmap-svg { display: block; width: 100%; max-width: 100%; height: auto; }
.page-fin-v2 .fin-map path { fill: var(--bg-muted); stroke: var(--bg-surface); stroke-width: .5; }
.page-fin-v2 .fin-map path.fin-geo { cursor: pointer; transition: fill .12s ease; }
.page-fin-v2 .fin-map path.fin-lv1 { fill: #BFDBFE; }
.page-fin-v2 .fin-map path.fin-lv2 { fill: #93C5FD; }
.page-fin-v2 .fin-map path.fin-lv3 { fill: #60A5FA; }
.page-fin-v2 .fin-map path.fin-lv4 { fill: #3B82F6; }
.page-fin-v2 .fin-map path.fin-lv5 { fill: #1D4ED8; }
.page-fin-v2 .fin-map path.fin-geo:hover { fill: var(--text-link); }
.page-fin-v2 .fin-map-tip {
  position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px; border-radius: 8px; pointer-events: none;
  background: var(--chart-tooltip-bg); border: 1px solid var(--chart-tooltip-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .14); min-width: 132px;
}
/* a class-level display beats the UA rule for [hidden], so the empty tip box
   was painting under the map until it was first used */
.page-fin-v2 .fin-map-tip[hidden] { display: none; }
.page-fin-v2 .fin-map-tip-name { font-size: 12.5px; font-weight: 600; color: var(--chart-tooltip-text); }
.page-fin-v2 .fin-map-tip-amount { font-size: 13px; font-weight: 700; color: var(--text-link); }
.page-fin-v2 .fin-map-tip-pct { font-size: 11px; color: var(--muted); }
.page-fin-v2 .fin-map-missing { margin: 0; padding: 24px; text-align: center; font-size: 12.5px; color: var(--muted); }
/* country names need more room than bookmaker names, and the flag column
   eats into the row — size the list so nothing truncates */
.page-fin-v2 .fin-geo-list { flex: 0 0 254px; max-width: 254px; }

/* ---- ranked lists ----------------------------------------------------- */
.page-fin-v2 .fin-rank-list { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.page-fin-v2 .fin-rank { display: flex; align-items: center; gap: 9px; padding: 5px 4px; min-width: 0; border-radius: 7px; }
.page-fin-v2 .fin-rank:hover { background: var(--bg-subtle); }
.page-fin-v2 .fin-rank + .fin-rank { border-top: 1px solid var(--border-soft); }
.page-fin-v2 .fin-rank-n { width: 14px; flex: 0 0 auto; font-size: 12px; color: var(--muted); text-align: center; }
.page-fin-v2 .fin-rank-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 5px; overflow: hidden; background: var(--bg-subtle); color: var(--muted); }
.page-fin-v2 .fin-rank-logo .icon { width: 13px; height: 13px; }
/* a real brand mark is drawn white, so it needs the dark ground; the
   placeholder glyph is drawn in ink and needs the light one */
.page-fin-v2 .fin-rank-logo > .fin-rank-mark-mark,
.page-fin-v2 .fin-row-mark > .fin-row-mark-mark {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 2px; border-radius: inherit; background: var(--bg-ink, #0F1A2B);
}
.page-fin-v2 .fin-rank-logo > .fin-rank-mark-placeholder,
.page-fin-v2 .fin-row-mark > .fin-row-mark-placeholder { color: var(--muted); }
/* in the table the helper's class lands on the tile itself, not a child */
.page-fin-v2 .fin-row-mark.fin-row-mark-mark { padding: 2px; background: var(--bg-ink, #0F1A2B); }
.page-fin-v2 .fin-row-mark.fin-row-mark-placeholder { color: var(--muted); }
.page-fin-v2 .fin-rank-logo > span, .page-fin-v2 .fin-rank-logo svg, .page-fin-v2 .fin-rank-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-fin-v2 .fin-rank-mark { width: 100%; height: 100%; }
.page-fin-v2 .fin-rank-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 500; color: var(--text-link); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-rank-name:hover { text-decoration: underline; }
/* the batch-06 block pins this class to 46px, which clips a negative figure */
.page-fin-v2 .fin-rank-amount { width: auto; font-size: 13px; font-weight: 600; flex: 0 0 auto; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

.page-fin-v2 .fin-num-green { color: var(--text-success); }
.page-fin-v2 .fin-num-red { color: var(--text-danger); }
.page-fin-v2 .fin-num-grey { color: var(--muted); }

/* ---- pending payments ------------------------------------------------- */
.page-fin-v2 .fin-pending-list { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.page-fin-v2 .fin-pending { display: flex; align-items: center; gap: 9px; padding: 6px 4px; min-width: 0; border-radius: 7px; }
.page-fin-v2 .fin-pending:hover { background: var(--bg-subtle); }
.page-fin-v2 .fin-pending + .fin-pending { border-top: 1px solid var(--border-soft); }
.page-fin-v2 .fin-pending-logo, .page-fin-v2 .fin-bm-logo { display: inline-flex; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: var(--bg-ink, #0F1A2B); }
.page-fin-v2 .fin-pending-logo > span, .page-fin-v2 .fin-bm-logo > span, .page-fin-v2 .fin-bm-logo svg, .page-fin-v2 .fin-bm-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-fin-v2 .fin-bm-logo-sm { width: 22px; height: 22px; }
.page-fin-v2 .fin-bm-logo-xs { width: 20px; height: 20px; border-radius: 5px; }
/* container-query sizing rounds the two initials just past the tile here;
   fixed sizes keep them whole in these small brand marks */
.page-fin-v2 .fin-bm-logo .logo-mono, .page-fin-v2 .fin-pending-logo .logo-mono,
.page-fin-v2 .fin-rank-logo .logo-mono, .page-fin-v2 .fin-row-mark .logo-mono { font-size: 8px; letter-spacing: 0; overflow: visible; }
.page-fin-v2 .fin-bm-logo-xs .logo-mono { font-size: 7px; }
.page-fin-v2 .fin-pending-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.page-fin-v2 .fin-pending-name { font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-pending-name:hover { color: var(--text-link); }
.page-fin-v2 .fin-pending-id { font-weight: 500; color: var(--muted); }
.page-fin-v2 .fin-pending-date { font-size: 11.5px; color: var(--text-warning); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-pending-amount { font-size: 13px; font-weight: 700; color: var(--text); flex: 0 0 auto; }

/* ---- badges, margins, numbers ----------------------------------------- */
.page-fin-v2 .fin-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto;
}
.page-fin-v2 .fin-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.page-fin-v2 .fin-badge-green { background: var(--tint-success); color: var(--text-success); }
.page-fin-v2 .fin-badge-amber { background: var(--tint-warning); color: var(--text-warning); }
.page-fin-v2 .fin-badge-red { background: var(--tint-danger);  color: var(--text-danger); }
.page-fin-v2 .fin-badge-purple { background: var(--tint-purple);  color: var(--fg-purple); }
.page-fin-v2 .fin-badge-grey { background: var(--bg-muted);     color: var(--muted); }
.page-fin-v2 .fin-margin { font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-fin-v2 .fin-margin-ink   { color: var(--text); }
.page-fin-v2 .fin-margin-amber { color: var(--text-warning); }
.page-fin-v2 .fin-margin-red   { color: var(--text-danger); }

/* ---- tables ----------------------------------------------------------- */
.page-fin-v2 .fin-table-card { padding: 0; overflow: hidden; min-width: 0; }
.page-fin-v2 .fin-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px 0; border-bottom: 1px solid var(--border-default); min-width: 0; flex-wrap: wrap; }
.page-fin-v2 .fin-tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.page-fin-v2 .fin-tabs::-webkit-scrollbar { display: none; }
.page-fin-v2 .fin-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px;
  border-bottom: 2px solid transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.page-fin-v2 .fin-tab:hover { color: var(--text); }
.page-fin-v2 .fin-tab.is-active { color: var(--text-link); border-bottom-color: var(--primary); font-weight: 600; }
.page-fin-v2 .fin-tab-count { opacity: .75; }
.page-fin-v2 .fin-tab-icon { width: 15px; height: 15px; }
.page-fin-v2 .fin-table-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; flex: 0 0 auto; }
.page-fin-v2 .fin-search { width: 210px; min-width: 0; }
.page-fin-v2 .fin-table-tools .btn { height: 34px; }

.page-fin-v2 .fin-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.page-fin-v2 .fin-rev-table { min-width: 980px; }
.page-fin-v2 .fin-table th, .page-fin-v2 .fin-table td { padding: 7px 9px; text-align: left; vertical-align: middle; }
.page-fin-v2 .fin-table thead th {
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--muted); background: var(--bg-subtle); border-bottom: 1px solid var(--border-default); white-space: nowrap;
}
.page-fin-v2 .fin-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.page-fin-v2 .fin-table tbody tr:last-child { border-bottom: 0; }
.page-fin-v2 .fin-table tbody tr:hover { background: var(--bg-subtle); }
.page-fin-v2 .fin-table tbody td { font-size: 13px; color: var(--text-2); }
.page-fin-v2 .fin-table .th-check { width: 34px; padding-right: 0; }
.page-fin-v2 .fin-table .th-num { width: 36px; color: var(--muted); }
.page-fin-v2 .fin-table .ta-r { text-align: right; }
.page-fin-v2 .fin-table .ta-c { text-align: center; }
.page-fin-v2 .fin-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-link); font-weight: 500; text-decoration: none; min-width: 0; }
.page-fin-v2 .fin-link:hover { text-decoration: underline; }
.page-fin-v2 .fin-link-muted { color: var(--text-2); }
.page-fin-v2 .fin-row-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 5px; overflow: hidden; background: var(--bg-subtle); color: var(--muted); }
.page-fin-v2 .fin-row-mark .icon { width: 13px; height: 13px; }
.page-fin-v2 .fin-row-mark > span, .page-fin-v2 .fin-row-mark svg, .page-fin-v2 .fin-row-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-fin-v2 .fin-geo { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.page-fin-v2 .fin-geo .flag { width: 18px; height: 13px; border-radius: 2px; flex: 0 0 auto; }
.page-fin-v2 .fin-expected { color: var(--text-warning); }
.page-fin-v2 .fin-dash { color: var(--text-disabled); }
.page-fin-v2 .fin-footer { flex-wrap: wrap; gap: 10px; }
.page-fin-v2 .fin-showing { font-size: 12.5px; color: var(--muted); }

/* ---- mini tables ------------------------------------------------------ */
.page-fin-v2 .fin-mini-table { width: 100%; min-width: 260px; border-collapse: collapse; }
.page-fin-v2 .fin-mini-table th, .page-fin-v2 .fin-mini-table td { padding: 8px 6px; text-align: left; font-size: 12.5px; vertical-align: middle; }
.page-fin-v2 .fin-mini-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border-default); }
.page-fin-v2 .fin-mini-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.page-fin-v2 .fin-mini-table tbody tr:last-child { border-bottom: 0; }
.page-fin-v2 .fin-mini-table tbody tr:hover { background: var(--bg-subtle); }
.page-fin-v2 .fin-mini-table .ta-r { text-align: right; }
.page-fin-v2 .fin-nowrap { white-space: nowrap; }
.page-fin-v2 .fin-mini-rank { display: inline-block; width: 13px; margin-right: 6px; font-size: 11.5px; color: var(--muted); vertical-align: middle; }
.page-fin-v2 .fin-mini-table td:first-child { white-space: nowrap; }
.page-fin-v2 .fin-mini-table td:first-child .fin-link { max-width: 148px; }
.page-fin-v2 .fin-mini-table td:first-child .fin-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-tx-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; }
.page-fin-v2 .fin-tx-icon .icon { width: 14px; height: 14px; }
.page-fin-v2 .fin-tx-in { background: var(--tint-success); color: var(--text-success); }
.page-fin-v2 .fin-tx-out { background: var(--tint-danger);  color: var(--text-danger); }
.page-fin-v2 .fin-tx-link { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-decoration: none; }
.page-fin-v2 .fin-tx-label { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-tx-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-tx-link:hover .fin-tx-label { color: var(--text-link); }

/* ---- budget vs actual -------------------------------------------------- */
.page-fin-v2 .fin-budget-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.page-fin-v2 .fin-budget { display: flex; align-items: center; gap: 10px; padding: 6px 2px; min-width: 0; }
.page-fin-v2 .fin-budget-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; }
.page-fin-v2 .fin-budget-icon .icon { width: 15px; height: 15px; }
.page-fin-v2 .fin-budget-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 0 0 128px; }
.page-fin-v2 .fin-budget-name { font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-fin-v2 .fin-budget-name:hover { color: var(--text-link); }
.page-fin-v2 .fin-budget-nums { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.page-fin-v2 .fin-budget-bar { flex: 1 1 auto; min-width: 40px; height: 8px; border-radius: 5px; background: var(--bg-muted); overflow: hidden; }
.page-fin-v2 .fin-budget-fill { display: block; height: 100%; border-radius: 5px; }
.page-fin-v2 .fin-budget-pct { font-size: 12px; font-weight: 600; color: var(--muted); flex: 0 0 auto; min-width: 32px; text-align: right; }

/* ---- health card ------------------------------------------------------- */
.page-fin-v2 .fin-health-row { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 auto; }
.page-fin-v2 .fin-ring { position: relative; width: 116px; height: 116px; flex: 0 0 auto; }
.page-fin-v2 .fin-ring svg { width: 100%; height: 100%; display: block; }
.page-fin-v2 .fin-ring-track { stroke: var(--bg-muted); }
.page-fin-v2 .fin-ring-green .fin-ring-fill { stroke: var(--success); }
.page-fin-v2 .fin-ring-amber .fin-ring-fill { stroke: var(--warning); }
.page-fin-v2 .fin-ring-red   .fin-ring-fill { stroke: var(--danger); }
/* explicit edges, not `inset`: an app-wide rule resets the shorthand and the
   box shrink-wrapped to its narrowest child */
.page-fin-v2 .fin-ring-text { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; overflow: hidden; padding: 0 4px; }
.page-fin-v2 .fin-ring-value { font-size: 22px; line-height: 26px; font-weight: 700; color: var(--text); }
.page-fin-v2 .fin-ring-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.page-fin-v2 .fin-check-list { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; min-width: 0; }
.page-fin-v2 .fin-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.page-fin-v2 .fin-check-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--fg-success); }
.page-fin-v2 .fin-check.is-off { color: var(--muted); }
.page-fin-v2 .fin-check.is-off .fin-check-icon { color: var(--fg-warning); }
.page-fin-v2 .fin-health-note {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 12px;
  border-radius: 10px; background: var(--tint-success); border: 1px solid var(--border-success, transparent);
}
.page-fin-v2 .fin-health-note p { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--text-success); }
.page-fin-v2 .fin-health-note-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--text-success); }
.page-fin-v2 .fin-health-note-warn { background: var(--tint-warning); }
.page-fin-v2 .fin-health-note-warn p, .page-fin-v2 .fin-health-note-warn .fin-health-note-icon { color: var(--text-warning); }

/* ---- empty states ------------------------------------------------------ */
.page-fin-v2 .fin-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px 20px; text-align: center; min-width: 0; flex: 1 1 auto; }
.page-fin-v2 .fin-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-muted); color: var(--muted); }
.page-fin-v2 .fin-empty-icon .icon { width: 20px; height: 20px; }
.page-fin-v2 .fin-empty-title { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.page-fin-v2 .fin-empty-body { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 380px; }
.page-fin-v2 .fin-empty-btn { margin-top: 8px; height: 32px; }

/* ---- modal + forms ----------------------------------------------------- */
.page-fin-v2 .fin-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.page-fin-v2 .fin-modal-scrim { position: absolute; inset: 0; background: var(--bg-overlay); }
.page-fin-v2 .fin-modal-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: var(--fin-pad); box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.page-fin-v2 .fin-modal-wide { width: min(820px, 100%); }
.page-fin-v2 .fin-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.page-fin-v2 .fin-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; color: var(--muted); }
.page-fin-v2 .fin-modal-close:hover { background: var(--bg-muted); color: var(--text); }
.page-fin-v2 .fin-modal-close .icon { width: 16px; height: 16px; }
.page-fin-v2 .fin-modal-note { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.page-fin-v2 .fin-form { display: flex; flex-direction: column; gap: 12px; }
.page-fin-v2 .fin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-fin-v2 .fin-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.page-fin-v2 .fin-field-wide { grid-column: 1 / -1; }
.page-fin-v2 .fin-field-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.page-fin-v2 .fin-input {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--border-default); border-radius: 8px;
  background: var(--bg-input); color: var(--text); font-family: var(--font); font-size: 13px;
}
.page-fin-v2 .fin-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-info); }
.page-fin-v2 .fin-form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.page-fin-v2 .fin-btn-danger { color: var(--text-danger); margin-right: auto; }
.page-fin-v2 .fin-btn-danger:hover { background: var(--tint-danger); border-color: var(--border-danger); }

.page-fin-v2 .fin-steps { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; flex-wrap: wrap; }
.page-fin-v2 .fin-step { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.page-fin-v2 .fin-step span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-muted); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.page-fin-v2 .fin-step.is-active { color: var(--text); font-weight: 600; }
.page-fin-v2 .fin-step.is-active span { background: var(--primary); color: #fff; }
.page-fin-v2 .fin-step + .fin-step::before { content: ''; width: 18px; height: 1px; background: var(--border-default); }
.page-fin-v2 .fin-drop {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 28px 20px;
  border: 1.5px dashed var(--border-default); border-radius: 12px; background: var(--bg-subtle); cursor: pointer; text-align: center;
}
.page-fin-v2 .fin-drop:hover { border-color: var(--primary); background: var(--tint-info); }
.page-fin-v2 .fin-drop-icon { width: 26px; height: 26px; color: var(--text-link); }
.page-fin-v2 .fin-drop-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.page-fin-v2 .fin-drop-sub { font-size: 12px; color: var(--muted); }
.page-fin-v2 .fin-import-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-success); }
.page-fin-v2 .fin-map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-fin-v2 .fin-preview-table { min-width: 560px; }
body.fin-modal-open { overflow: hidden; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1600px) {
  .page-fin-v2 .fin-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 1400px) {
  .page-fin-v2 .fin-row-2a, .page-fin-v2 .fin-row-2b { grid-template-columns: minmax(0, 1fr); }
  .page-fin-v2 .fin-geo-list { max-width: none; }
}
@media (max-width: 1200px) {
  .page-fin-v2 .fin-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-fin-v2 .fin-health-card { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .page-fin-v2 .fin-donut-row, .page-fin-v2 .fin-map-row, .page-fin-v2 .fin-health-row { flex-direction: column; align-items: stretch; }
  .page-fin-v2 .fin-donut, .page-fin-v2 .fin-ring { align-self: center; }
  .page-fin-v2 .fin-table-head { align-items: stretch; }
  .page-fin-v2 .fin-table-tools { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .page-fin-v2 { padding: 14px 14px 22px; }
  .page-fin-v2 .fin-row-3 { grid-template-columns: minmax(0, 1fr); }
  .page-fin-v2 .fin-header { flex-wrap: wrap; }
  .page-fin-v2 .fin-header-actions { width: 100%; padding-top: 0; }
  .page-fin-v2 .fin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-fin-v2 .fin-search { width: 100%; }
  .page-fin-v2 .fin-form-grid, .page-fin-v2 .fin-map-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page-fin-v2 .fin-stats { grid-template-columns: minmax(0, 1fr); }
  .page-fin-v2 .fin-header-title { font-size: 22px; line-height: 28px; }
  .page-fin-v2 .fin-stat-value { font-size: 24px; line-height: 30px; }
  .page-fin-v2 .fin-filter-bar { gap: 8px; }
  .page-fin-v2 .fin-filter { flex: 1 1 calc(50% - 4px); }
  .page-fin-v2 .fin-filter-clear { margin-left: 0; }
}

/* ==========================================================================
   SETTINGS › ARCHIVE — put a page away, bring it back
   ========================================================================== */
.page-archive { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.page-archive .arch-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-archive .arch-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; }
.page-archive .arch-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; }
.page-archive .arch-stat-icon .icon { width: 19px; height: 19px; }
.page-archive .arch-stat-icon-green { background: var(--tint-success); color: var(--fg-success); }
.page-archive .arch-stat-icon-amber { background: var(--tint-warning); color: var(--fg-warning); }
.page-archive .arch-stat-icon-blue  { background: var(--tint-info);    color: var(--text-link); }
.page-archive .arch-stat-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.page-archive .arch-stat-value { font-size: 24px; line-height: 29px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.page-archive .arch-stat-label { font-size: 12px; color: var(--muted); }

.page-archive .arch-card { padding: 18px; min-width: 0; }
.page-archive .arch-card-head { margin-bottom: 14px; }
.page-archive .arch-card-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.page-archive .arch-card-icon { width: 18px; height: 18px; color: var(--muted); }
.page-archive .arch-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 20px; background: var(--bg-muted); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.page-archive .arch-card-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.page-archive .arch-group { margin: 14px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.page-archive .arch-group:first-of-type { margin-top: 0; }
.page-archive .arch-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.page-archive .arch-row {
  display: flex; align-items: center; gap: 11px; min-width: 0;
  padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--bg-surface);
}
.page-archive .arch-row:hover { border-color: var(--border-primary); background: var(--bg-hover); }
.page-archive .arch-row.is-archived { background: var(--bg-subtle); border-style: dashed; }
.page-archive .arch-check { flex: 0 0 auto; }
.page-archive .arch-row-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: var(--bg-subtle); color: var(--muted); }
.page-archive .arch-row.is-archived .arch-row-icon { background: var(--tint-warning); color: var(--fg-warning); }
.page-archive .arch-row-icon .icon { width: 16px; height: 16px; }
.page-archive .arch-row-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.page-archive .arch-row-name { font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.arch-row-name:hover { color: var(--text-link); text-decoration: underline; }
.page-archive .arch-row-meta { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-archive .arch-btn { height: 30px; padding: 0 11px; font-size: 12.5px; flex: 0 0 auto; }
.page-archive .arch-btn .btn-icon { width: 14px; height: 14px; }
.page-archive .arch-btn-archive:hover { color: var(--text-warning); border-color: var(--border-warning, var(--border-default)); }

.page-archive .arch-bulk { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.page-archive .arch-bulk-count { font-size: 12.5px; color: var(--muted); }

.page-archive .arch-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 28px 20px; text-align: center; }
.page-archive .arch-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-muted); color: var(--muted); }
.page-archive .arch-empty-icon .icon { width: 19px; height: 19px; }
.page-archive .arch-empty-title { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.page-archive .arch-empty-body { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 380px; }
.page-archive .arch-empty-btn { margin-top: 8px; height: 32px; }

.settings-nav-count { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 20px; background: var(--tint-warning); color: var(--text-warning); font-size: 10.5px; font-weight: 700; }

/* ---- the notice an archived page shows ---------------------------------- */
.page-archived { display: flex; align-items: flex-start; justify-content: center; padding: 48px var(--content-pad-x); min-width: 0; }
.page-archived .arch-notice { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(560px, 100%); padding: 34px 28px; text-align: center; }
.page-archived .arch-notice-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tint-warning); color: var(--fg-warning); }
.page-archived .arch-notice-icon .icon { width: 26px; height: 26px; }
.page-archived .arch-notice-title { margin: 10px 0 0; font-size: 21px; line-height: 27px; font-weight: 700; color: var(--text); }
.page-archived .arch-notice-body { margin: 0; font-size: 13.5px; line-height: 20px; color: var(--muted); max-width: 440px; }
.page-archived .arch-notice-when { margin: 2px 0 0; font-size: 12px; color: var(--text-disabled); }
.page-archived .arch-notice-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.page-archived .arch-notice-actions .btn { height: 36px; }

@media (max-width: 900px) {
  .page-archive .arch-stats { grid-template-columns: minmax(0, 1fr); }
  .page-archive .arch-row { flex-wrap: wrap; }
  .page-archive .arch-btn { margin-left: auto; }
}

/* ==========================================================================
   ALL WEBSITES — portfolio page + inline row-expand panel (wb-*)
   Everything is scoped to .page-websites so the app-wide responsive
   fallbacks (which select on [class*="-grid"] / [class*="-row"]) cannot
   outrank it, and so nothing here can reach another page.
   ========================================================================== */
.page-websites {
  --wb-gap: 19px;
  --wb-pad: 15px;
  --wb-radius: 12px;
  --wb-radius-sm: 9px;
  --wb-field-bg: #EFF3FB;
  display: flex;
  flex-direction: column;
  gap: var(--wb-gap);
  padding: 8px 16px 28px;
  min-width: 0;
}
.page-websites .dashboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--wb-radius);
  box-shadow: none;
}

/* ---- breadcrumb ------------------------------------------------------- */
.page-websites .wb-crumbs { margin-bottom: -8px; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); min-width: 0; }
.page-websites .wb-crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.page-websites .wb-crumbs a:hover { color: var(--blue-link); }
.page-websites .wb-crumb-icon { width: 13px; height: 13px; }
.page-websites .wb-crumb-sep { color: var(--muted-2); opacity: .7; }
.page-websites .wb-crumb-now { color: var(--text-3); }

/* ---- page heading ----------------------------------------------------- */
.page-websites .wb-heading { display: flex; align-items: flex-start; gap: 13px; padding: 0; }
.page-websites .wb-heading-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint-success); color: var(--green-text);
}
.page-websites .wb-heading-icon .icon { width: 25px; height: 25px; }
.page-websites .wb-heading-text { min-width: 0; flex: 1 1 auto; }
.page-websites .wb-title { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.5px; color: var(--text); margin: 0; }
.page-websites .wb-subtitle { font-size: 14px; line-height: 19px; color: var(--muted); margin: 2px 0 0; }
.page-websites .wb-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-top: 4px; }
.page-websites .wb-actions .btn { height: 36px; padding: 0 14px; border-radius: var(--wb-radius-sm); font-size: 13px; font-weight: 600; }
.page-websites .wb-actions .btn-white { color: var(--blue-link); border-color: var(--border); }
.page-websites .wb-actions .btn-white .btn-icon { color: var(--blue-link); }
.page-websites .wb-actions .btn-icon-only { padding: 0; width: 36px; justify-content: center; color: var(--muted); }

/* ---- stat cards ------------------------------------------------------- */
.page-websites .wb-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.page-websites .wb-stat {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 10px 13px 13px; min-height: 114px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.page-websites .wb-stat:hover { border-color: var(--border-primary-2); transform: translateY(-1px); }
.page-websites .wb-stat-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-websites .wb-stat-icon .icon { width: 23px; height: 23px; }
.page-websites .wb-stat-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; padding-top: 1px; }
.page-websites .wb-stat-label { font-size: 11.5px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-websites .wb-stat-value { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.page-websites .wb-stat-sub { font-size: 11px; line-height: 16px; letter-spacing: -.1px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-websites .wb-tone-blue   { background: var(--tint-info);    color: var(--text-link); }
.page-websites .wb-tone-green  { background: var(--tint-success); color: var(--green-text); }
.page-websites .wb-tone-amber  { background: var(--tint-warning); color: var(--amber-text); }
.page-websites .wb-tone-red    { background: var(--tint-danger);  color: var(--red-text); }
.page-websites .wb-tone-purple { background: var(--tint-purple);  color: var(--fg-purple); }

.page-websites .wb-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 16px; }
.page-websites .wb-stat .wb-delta { align-self: flex-start; margin: 1px 0; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; }
.page-websites .wb-stat .wb-delta-up { background: var(--tint-success); }
.page-websites .wb-stat .wb-delta-down { background: var(--tint-danger); }
.page-websites .wb-stat .wb-delta-flat { background: var(--tint-warning); }
.page-websites .wb-delta-icon { width: 13px; height: 13px; }
.page-websites .wb-delta-up   { color: var(--green-text); }
.page-websites .wb-delta-down { color: var(--red-text); }
.page-websites .wb-delta-flat { color: var(--amber-text); }

/* ---- grouped-view tabs ------------------------------------------------ */
.page-websites .wb-views { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.page-websites .wb-views::-webkit-scrollbar { display: none; }
.page-websites .wb-view {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  height: 36px; padding: 0 14px; border-radius: var(--wb-radius-sm);
  background: var(--bg-muted); color: var(--text-3);
  font-size: 12.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.page-websites .wb-view:hover { background: var(--bg-selected); color: var(--blue-link); }
.page-websites .wb-view.is-active { background: var(--blue); color: #fff; font-weight: 600; }
.page-websites .wb-view-icon { width: 15px; height: 15px; opacity: .85; }
.page-websites .wb-view.is-active .wb-view-icon { opacity: 1; }

/* ---- filter bar ------------------------------------------------------- */
.page-websites .wb-filters { display: flex; align-items: center; gap: 9px; padding: 8px 9px; }
.page-websites .wb-search {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 11px; border-radius: var(--wb-radius-sm);
  background: var(--bg-subtle); border: 1px solid var(--border-soft);
}
.page-websites .wb-search-icon { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 auto; }
.page-websites .wb-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text); outline: none; }
.page-websites .wb-search input::placeholder { color: var(--muted-2); }
.page-websites .wb-search-go { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--blue-link); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.page-websites .wb-search-go:hover { background: var(--bg-selected); }
.page-websites .wb-search-go .icon { width: 15px; height: 15px; }

.page-websites .wb-control { position: relative; flex: 0 0 152px; min-width: 0; }
.page-websites .wb-control-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 40px; padding: 0 10px; border-radius: var(--wb-radius-sm);
  background: var(--bg-surface); border: 1px solid var(--border); cursor: pointer; text-align: left;
}
.page-websites .wb-control-btn:hover { border-color: var(--border-primary-2); }
.page-websites .wb-control.is-set .wb-control-btn { border-color: var(--blue); background: var(--bg-selected); }
.page-websites .wb-control-text { display: flex; flex-direction: column; min-width: 0; }
.page-websites .wb-control-label { font-size: 10.5px; line-height: 13px; color: var(--muted-2); }
.page-websites .wb-control-value { font-size: 12.5px; line-height: 16px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-websites .wb-control-chevron { width: 14px; height: 14px; color: var(--muted-2); margin-left: auto; flex: 0 0 auto; }
.page-websites .wb-control .dropdown-menu { min-width: 190px; max-height: 320px; overflow-y: auto; }

.page-websites .wb-morefilters {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  height: 40px; padding: 0 13px; border-radius: var(--wb-radius-sm);
  background: var(--bg-selected); border: 1px solid var(--border-primary-2); color: var(--blue-link);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.page-websites .wb-morefilters:hover { background: var(--tint-info); }
.page-websites .wb-morefilters .btn-icon { width: 15px; height: 15px; }
.page-websites .wb-filter-badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.page-websites .wb-active-filters { display: flex; align-items: center; gap: 10px; margin-top: -4px; font-size: 12.5px; color: var(--muted); }
.page-websites .wb-clear { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-link); text-decoration: none; font-weight: 600; }
.page-websites .wb-clear:hover { text-decoration: underline; }
.page-websites .wb-clear .icon { width: 13px; height: 13px; }

/* ---- map + category donut -------------------------------------------- */
.page-websites .wb-insights { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr); gap: var(--wb-gap); align-items: stretch; }
.page-websites .wb-map-card,
.page-websites .wb-cat-card { display: flex; flex-direction: column; padding: 13px 14px 13px; }
.page-websites .wb-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.page-websites .wb-h2 { font-size: 16px; line-height: 21px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -.2px; }
.page-websites .wb-viewall { font-size: 12.5px; font-weight: 500; color: var(--blue-link); text-decoration: underline; text-underline-offset: 2px; }

.page-websites .wb-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg-selected); gap: 3px; }
.page-websites .wb-seg-btn { padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--blue-link); text-decoration: none; white-space: nowrap; }
.page-websites .wb-seg-btn:hover { color: var(--blue-link); }
.page-websites .wb-seg-btn.is-active { background: var(--blue); color: #fff; }

.page-websites .wb-mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 14px; align-items: start; flex: 1 1 auto; }
.page-websites .wb-map { position: relative; min-width: 0; }
.page-websites .wb-map svg { width: 100%; height: auto; max-width: 100%; display: block; }
.page-websites .wb-map svg path { fill: #8CD2AC; stroke: var(--bg-surface); stroke-width: .35; }
.page-websites .wb-map svg path.wb-geo { cursor: pointer; }
.page-websites .wb-map svg path.wb-geo.lv1 { fill: #8ED4B0; }
.page-websites .wb-map svg path.wb-geo.lv2 { fill: #74C99E; }
.page-websites .wb-map svg path.wb-geo.lv3 { fill: #55BC8B; }
.page-websites .wb-map svg path.wb-geo.lv4 { fill: #33A874; }
.page-websites .wb-map svg path.wb-geo.lv5 { fill: #178F5E; }
.page-websites .wb-map svg path.wb-geo:hover { fill: #0F8A59; }
.page-websites .wb-map-tip {
  position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px;
  padding: 7px 10px; border-radius: 8px; background: var(--chart-tooltip-bg);
  border: 1px solid var(--chart-tooltip-border); box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
  font-size: 12px; color: var(--chart-tooltip-text); pointer-events: none; white-space: nowrap;
}
.page-websites .wb-map-tip[hidden] { display: none; }
.page-websites .wb-tip-name { font-weight: 700; }
.page-websites .wb-tip-row { color: var(--muted); }
.page-websites .wb-tip-pct { color: var(--green-text); font-weight: 600; }
.page-websites .wb-map-missing { font-size: 13px; color: var(--muted); }

.page-websites .wb-country-list { display: flex; flex-direction: column; min-width: 0; }
.page-websites .wb-country-head { display: grid; grid-template-columns: 1fr 34px 46px; gap: 6px; font-size: 10.5px; color: var(--muted-2); padding: 0 6px 5px; }
.page-websites .wb-country-head span:nth-child(2) { text-align: right; }
.page-websites .wb-country-head span:nth-child(3) { text-align: right; }
.page-websites .wb-country {
  display: grid; grid-template-columns: 22px 1fr 32px 44px; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 8px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border-soft);
}
.page-websites .wb-country:last-child { border-bottom: 0; }
.page-websites .wb-country:hover { background: var(--bg-hover); }
.page-websites .wb-country-flag { display: inline-flex; align-items: center; }
.page-websites .wb-country-flag .flag { width: 20px; height: 14px; border-radius: 3px; }
.page-websites .wb-country-flag .icon { width: 17px; height: 17px; color: var(--text-link); }
.page-websites .wb-country-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-websites .wb-country-count { font-size: 13px; font-weight: 700; color: var(--blue-link); text-align: right; }
.page-websites .wb-country-pct { font-size: 13px; color: var(--muted); text-align: right; }

.page-websites .wb-catwrap { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; }
.page-websites .wb-donut { position: relative; flex: 0 0 178px; width: 178px; height: 178px; }
.page-websites .wb-donut canvas { width: 100% !important; height: 100% !important; }
.page-websites .wb-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.page-websites .wb-donut-value { font-size: 27px; line-height: 31px; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.page-websites .wb-donut-label { font-size: 11.5px; color: var(--muted); }
.page-websites .wb-cat-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.page-websites .wb-cat-legend li { display: block; margin: 0; }
.page-websites .wb-cat-legend a {
  display: grid; grid-template-columns: 13px minmax(0, 1fr) 28px 46px; align-items: center; gap: 9px;
  padding: 6px; border-radius: 7px; text-decoration: none; color: inherit;
}
.page-websites .wb-cat-legend a:hover { background: var(--bg-hover); }
.page-websites .wb-legend-dot { width: 11px; height: 11px; border-radius: 50%; }
.page-websites .wb-legend-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-websites .wb-legend-count { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.page-websites .wb-legend-pct { font-size: 13px; color: var(--muted); text-align: right; }

/* ---- table card ------------------------------------------------------- */
.page-websites .wb-table-card { padding: 14px 0 0; overflow: hidden; }
.page-websites .wb-table-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 0 var(--wb-pad) 12px; }
.page-websites .wb-table-sub { font-size: 12.5px; line-height: 17px; color: var(--muted); margin: 2px 0 0; }
.page-websites .wb-table-tools { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.page-websites .wb-sort-label { font-size: 12.5px; color: var(--muted); }
.page-websites .wb-sort { position: relative; }
.page-websites .wb-sort-btn, .page-websites .wb-rpp-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 11px;
  border-radius: var(--wb-radius-sm); border: 1px solid var(--border); background: var(--bg-surface);
  font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer;
}
.page-websites .wb-sort-btn:hover, .page-websites .wb-rpp-btn:hover { border-color: var(--border-primary-2); }
.page-websites .wb-sort-chevron { width: 14px; height: 14px; color: var(--muted-2); margin-left: auto; }
.page-websites .wb-viewmode { display: inline-flex; gap: 6px; }
.page-websites .wb-viewmode-btn {
  width: 34px; height: 34px; border-radius: var(--wb-radius-sm); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg-surface);
}
.page-websites .wb-viewmode-btn .icon { width: 17px; height: 17px; }
.page-websites .wb-viewmode-btn:hover { border-color: var(--border-primary-2); color: var(--blue-link); }
.page-websites .wb-viewmode-btn.is-active { background: var(--bg-selected); border-color: var(--border-primary-2); color: var(--text-link); }

.page-websites .wb-table-scroll { overflow-x: auto; }
.page-websites .wb-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.page-websites .wb-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-subtle); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: 9px 10px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.page-websites .wb-table thead th:first-child { padding-left: var(--wb-pad); }
.page-websites .wb-table thead th:last-child { padding-right: var(--wb-pad); text-align: right; }
.page-websites .wb-th-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.page-websites .wb-th-sort:hover { color: var(--blue-link); }
.page-websites .wb-th-sort.is-on { color: var(--blue-link); font-weight: 600; }
/* the reference's header is plain text, so the sort arrow only appears on
   hover; the active column is marked by its colour instead */
.page-websites .wb-th-icon { width: 12px; height: 12px; opacity: 0; transition: opacity .12s ease; }
.page-websites .wb-th-sort:hover .wb-th-icon, .page-websites .wb-th-sort:focus-visible .wb-th-icon { opacity: .8; }
.page-websites .wb-th-num { width: 34px; }
.page-websites .wb-th-check { width: 38px; }
.page-websites .wb-th-health { text-align: center !important; }

.page-websites .wb-table tbody td { padding: 6px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--text-2); }
.page-websites .wb-table tbody td:first-child { padding-left: var(--wb-pad); }
.page-websites .wb-table tbody td:last-child { padding-right: var(--wb-pad); }
.page-websites .wb-row { height: 42px; transition: background .12s ease; }
.page-websites .wb-row:hover > td { background: var(--bg-hover); }
.page-websites .wb-row.is-open > td { background: var(--bg-selected); border-bottom-color: transparent; }
.page-websites .wb-td-num { color: var(--muted); font-size: 12.5px; }
.page-websites .wb-td-site { white-space: nowrap; }
.page-websites .wb-td-site, .page-websites .wb-td-brand { display: table-cell; }
.page-websites .wb-td-site .wb-logo, .page-websites .wb-td-site .wb-domain, .page-websites .wb-td-site .wb-ext { vertical-align: middle; }

.page-websites .wb-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px; background: #0B1220; overflow: hidden; flex: 0 0 auto;
}
.page-websites .wb-logo .logo-mark { width: 24px; height: 21px; display: block; }
.page-websites .wb-logo img { width: 24px; height: 18px; object-fit: contain; display: block; }
.page-websites .wb-logo-sm .logo-mark { width: 19px; height: 17px; }
.page-websites .wb-logo-sm img { width: 21px; height: 16px; }
.page-websites .wb-logo-mono { font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.page-websites .wb-logo-sm { width: 25px; height: 25px; border-radius: 6px; }
.page-websites .wb-domain { font-size: 13px; font-weight: 500; color: var(--blue-link); text-decoration: none; margin: 0 5px 0 8px; }
.page-websites .wb-domain:hover { text-decoration: underline; }
.page-websites .wb-ext { display: inline-flex; color: var(--blue-link); opacity: .75; }
.page-websites .wb-ext .icon { width: 14px; height: 14px; }
.page-websites .wb-ext:hover { opacity: 1; }
.page-websites .wb-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); text-decoration: none; font-size: 13px; white-space: nowrap; }
.page-websites .wb-brand:hover { color: var(--blue-link); }

.page-websites .wb-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.page-websites .wb-pill-cat { height: 25px; padding: 0 11px; background: var(--bg-muted); color: var(--text-3); }
.page-websites .wb-pill-cat:hover { background: var(--bg-selected); color: var(--blue-link); }
.page-websites .wb-pill-geo { height: 25px; padding: 0 9px; background: var(--bg-muted); color: var(--text-3); }
.page-websites .wb-pill-status { height: 25px; padding: 0 11px; border-radius: 999px; font-weight: 500; }
.page-websites .wb-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.page-websites .wb-st-active { background: var(--tint-success); color: var(--green-text); }
.page-websites .wb-st-paused { background: var(--tint-warning); color: var(--amber-text); }
.page-websites .wb-st-issue  { background: var(--tint-danger);  color: var(--red-text); }

.page-websites .wb-geo-cell { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.page-websites .wb-geo-cell .flag { width: 21px; height: 15px; border-radius: 3px; }
.page-websites .wb-geo-cell:hover { color: var(--blue-link); }

.page-websites .wb-td-traffic { white-space: nowrap; }
.page-websites .wb-traffic { font-size: 13px; font-weight: 600; color: var(--text); }
.page-websites .wb-td-traffic .wb-delta { margin-left: 7px; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; }
.page-websites .wb-td-traffic .wb-delta-up { background: var(--tint-success); }
.page-websites .wb-td-traffic .wb-delta-down { background: var(--tint-danger); }

.page-websites .wb-td-health { text-align: center; }
.page-websites .wb-ring {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(var(--wb-ring-c) calc(var(--score) * 1%), var(--bg-track) 0);
}
.page-websites .wb-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-surface); }
.page-websites .wb-ring span { position: relative; z-index: 1; font-size: 11px; font-weight: 700; color: var(--text); }
.page-websites .wb-ring-green { --wb-ring-c: #17A45F; }
.page-websites .wb-ring-amber { --wb-ring-c: #E9A020; }
.page-websites .wb-ring-red   { --wb-ring-c: #E23B4E; }
.page-websites .wb-row:hover .wb-ring::after { background: var(--bg-hover); }
.page-websites .wb-row.is-open .wb-ring::after { background: var(--bg-selected); }

.page-websites .wb-td-updated { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.page-websites .wb-td-actions { text-align: right; }
.page-websites .wb-rowbtns { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.page-websites .wb-icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; text-decoration: none;
}
.page-websites .wb-icon-btn .icon { width: 15px; height: 15px; }
.page-websites .wb-icon-btn:hover { border-color: var(--border-primary-2); color: var(--blue-link); background: var(--bg-hover); }
.page-websites .wb-expand .wb-chev { transition: transform .18s ease; }
.page-websites .wb-expand.is-open { background: var(--bg-selected); border-color: var(--border-primary-2); color: var(--text-link); }
.page-websites .wb-expand.is-open .wb-chev { transform: rotate(180deg); }
.page-websites .wb-rowmenu { position: relative; }
.page-websites .wb-rowmenu .dropdown-menu a, .page-websites .wb-rowmenu .dropdown-menu button { display: flex; align-items: center; gap: 9px; }
.page-websites .wb-rowmenu .dropdown-menu .icon { width: 15px; height: 15px; }

/* ---- footer ----------------------------------------------------------- */
.page-websites .wb-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--wb-pad) 14px; }
.page-websites .wb-foot-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.page-websites .wb-pager { display: flex; align-items: center; gap: 6px; }
.page-websites .wb-page {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-2); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.page-websites .wb-page .icon { width: 15px; height: 15px; }
.page-websites .wb-page:hover:not([disabled]) { border-color: var(--border-primary-2); color: var(--blue-link); }
.page-websites .wb-page.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-websites .wb-page[disabled] { opacity: .4; cursor: not-allowed; }
.page-websites .wb-page-gap { border: 1px solid var(--border); color: var(--muted-2); }
.page-websites .wb-rpp { display: flex; align-items: center; gap: 9px; }
.page-websites .wb-rpp-label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---- grid layout ------------------------------------------------------ */
.page-websites .wb-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0 var(--wb-pad) 4px; }
.page-websites .wb-sc { border: 1px solid var(--card-border); border-radius: var(--wb-radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-surface); }
.page-websites .wb-sc:hover { border-color: var(--border-primary-2); }
.page-websites .wb-sc-head { display: flex; align-items: center; gap: 9px; }
.page-websites .wb-sc-id { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.page-websites .wb-sc-id .wb-domain { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.page-websites .wb-sc-brand { font-size: 12px; color: var(--muted); }
.page-websites .wb-sc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-websites .wb-sc-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.page-websites .wb-sc-stats > span { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.page-websites .wb-mini-label { font-size: 11px; color: var(--muted-2); }
.page-websites .wb-mini-value { font-size: 13px; font-weight: 700; color: var(--text); }
.page-websites .wb-sc-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 8px; background: var(--bg-subtle); color: var(--blue-link); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.page-websites .wb-sc-open:hover { background: var(--bg-selected); }
.page-websites .wb-sc-open .wb-chev { width: 14px; height: 14px; }

/* ---- empty state ------------------------------------------------------ */
.page-websites .wb-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 34px 16px; text-align: center; }
.page-websites .wb-empty-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-muted); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.page-websites .wb-empty-icon .icon { width: 20px; height: 20px; }
.page-websites .wb-empty-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; }
.page-websites .wb-empty-body { font-size: 12.5px; color: var(--muted); margin: 0; max-width: 380px; }
.page-websites .wb-empty-action { margin-top: 9px; }

/* ---- row-expand panel ------------------------------------------------- */
.page-websites .wb-row-detail > td { padding: 0 !important; background: var(--bg-selected); border-bottom: 1px solid var(--border-soft); }
.page-websites .wb-row-detail[hidden] { display: none; }
.page-websites .wb-panel {
  margin: 0 var(--wb-pad) 12px; border: 1px solid var(--card-border); border-radius: var(--wb-radius);
  background: var(--bg-surface); overflow: hidden;
}
.page-websites .wb-panel-loading { padding: 28px var(--wb-pad); font-size: 13px; color: var(--muted); text-align: center; }
.page-websites .wb-panel-loading.is-error { color: var(--red-text); }

.page-websites .wb-panel-head { display: flex; align-items: flex-start; gap: 22px; padding: 14px var(--wb-pad); }
.page-websites .wb-preview {
  flex: 0 0 306px; width: 306px; height: 148px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0B1220 0%, #14203A 55%, #0B1220 100%);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  padding: 14px 16px; text-decoration: none; position: relative;
}
.page-websites .wb-preview::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 15%, rgba(37, 99, 235, .34), transparent 60%); pointer-events: none; }
.page-websites .wb-preview-logo { display: block; width: 128px; height: 34px; }
.page-websites .wb-preview-logo svg { width: 100%; height: 100%; }
.page-websites .wb-preview-logo-mono { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; font-weight: 700; }
.page-websites .wb-preview-meta { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.page-websites .wb-preview-domain { font-size: 13px; font-weight: 700; color: #fff; }
.page-websites .wb-preview-tag { font-size: 11.5px; color: rgba(255, 255, 255, .68); }

.page-websites .wb-panel-id { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.page-websites .wb-panel-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 25px; line-height: 31px; font-weight: 700; letter-spacing: -.4px; }
.page-websites .wb-panel-title a { color: var(--text); text-decoration: none; }
.page-websites .wb-panel-title a:hover { color: var(--blue-link); }
.page-websites .wb-panel-ext { display: inline-flex; color: var(--blue-link); }
.page-websites .wb-panel-ext .icon { width: 17px; height: 17px; }
.page-websites .wb-panel-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.page-websites .wb-panel-pills { display: flex; align-items: center; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.page-websites .wb-panel-pills .wb-pill { height: 30px; padding-inline: 13px; font-size: 13px; font-weight: 600; }
.page-websites .wb-panel-pills .flag { width: 21px; height: 15px; border-radius: 3px; }

.page-websites .wb-panel-dates { flex: 0 0 auto; display: flex; align-items: stretch; border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.page-websites .wb-date { display: flex; flex-direction: column; gap: 4px; padding: 11px 16px; min-width: 116px; }
.page-websites .wb-date + .wb-date { border-left: 1px solid var(--card-border); }
.page-websites .wb-date-label { font-size: 11.5px; color: var(--muted); }
.page-websites .wb-date-value { font-size: 14px; font-weight: 700; color: var(--text); }

.page-websites .wb-tabs { display: flex; align-items: center; gap: 22px; padding: 0 var(--wb-pad); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.page-websites .wb-tabs::-webkit-scrollbar { display: none; }
.page-websites .wb-tab {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 11px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.page-websites .wb-tab:hover { color: var(--blue-link); }
.page-websites .wb-tab-icon { width: 15px; height: 15px; }
.page-websites .wb-tab.is-active { color: var(--text-link); font-weight: 600; border-bottom-color: var(--blue); }

.page-websites .wb-panel-body { padding: 13px var(--wb-pad) 15px; display: flex; flex-direction: column; gap: 11px; background: var(--bg-subtle); }
.page-websites .wb-panel-body.is-loading { opacity: .45; }

.page-websites .wb-group { border: 1px solid var(--card-border); border-radius: 10px; background: var(--bg-surface); padding: 11px 12px 12px; }
.page-websites .wb-group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.page-websites .wb-group-icon { width: 18px; height: 18px; color: var(--text-link); }
.page-websites .wb-grid { display: grid; gap: 10px; }
.page-websites .wb-grid-1 { grid-template-columns: minmax(0, 1fr); }
.page-websites .wb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-websites .wb-grid-3, .page-websites .wb-grid-tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-websites .wb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-websites .wb-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.page-websites .wb-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.page-websites .wb-tile {
  display: flex; align-items: center; gap: 11px; min-height: 60px;
  padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 9px;
  background: var(--bg-surface); text-decoration: none; color: inherit;
}
.page-websites a.wb-tile:hover { border-color: var(--border-primary-2); background: var(--bg-hover); }
.page-websites .wb-tile-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.page-websites .wb-tile-icon .icon { width: 18px; height: 18px; }
.page-websites .wb-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-websites .wb-tile-label { font-size: 12px; line-height: 16px; color: var(--muted); }
.page-websites .wb-tile-value { display: flex; align-items: center; gap: 7px; font-size: 16px; line-height: 21px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.page-websites .wb-tile-value .flag { width: 21px; height: 15px; border-radius: 3px; flex: 0 0 auto; }
.page-websites .wb-tile-extra { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.page-websites .wb-tile-sub { font-size: 12px; color: var(--muted); }
.page-websites .wb-tile-plain { min-height: 54px; }
.page-websites .wb-tile-plain .wb-tile-value { font-size: 13.5px; font-weight: 600; }
.page-websites .wb-group-tech .wb-tile-value { white-space: normal; }
/* the reference gives the Notes tile the room a sentence needs */
.page-websites .wb-group-tech .wb-grid-6 { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.8fr); }
.page-websites .wb-acc-logo { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.page-websites .wb-acc-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.page-websites .wb-acc-mark svg { width: 100%; height: 100%; }
.page-websites .wb-tile-acc.is-empty { opacity: .75; }

.page-websites .wb-group-geo .wb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.page-websites .wb-geo-primary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 9px; }
.page-websites .wb-geo-primary .flag { width: 38px; height: 27px; border-radius: 5px; }
.page-websites .wb-geo-text { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.page-websites .wb-geo-name { font-size: 14px; font-weight: 700; color: var(--text); }
.page-websites .wb-geo-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-selected); color: var(--blue-link); }
.page-websites .wb-geo-others { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 9px; }
.page-websites .wb-geo-chips { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.page-websites .wb-geo-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--card-border); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.page-websites .wb-geo-chip:hover { border-color: var(--border-primary-2); color: var(--blue-link); }
.page-websites .wb-geo-chip .flag { width: 20px; height: 14px; border-radius: 3px; }
.page-websites .wb-geo-more { color: var(--blue-link); background: var(--bg-selected); border-color: transparent; }
.page-websites .wb-geo-none { font-size: 12.5px; color: var(--muted); }
.page-websites .wb-group-links { border: 0; background: none; padding: 0; }

/* ---- Access & Links cards --------------------------------------------- */
.page-websites .wb-card { display: flex; flex-direction: column; }
.page-websites .wb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px 9px; }
.page-websites .wb-card-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); }
.page-websites .wb-card-icon { width: 18px; height: 18px; color: var(--text-link); }
.page-websites .wb-card-btn { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px; color: var(--blue-link); }
.page-websites .wb-card-btn .btn-icon { width: 13px; height: 13px; color: var(--blue-link); }
.page-websites .wb-card-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }

.page-websites .wb-field { display: flex; flex-direction: column; gap: 5px; }
.page-websites .wb-field-label { font-size: 12px; color: var(--muted); }
.page-websites .wb-field-box { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px 0 11px; border-radius: 8px; background: var(--wb-field-bg); border: 1px solid transparent; }
.page-websites .wb-field-box.is-failed { border-color: var(--red-text); }
.page-websites .wb-field-text { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-websites .wb-field-link { color: var(--blue-link); text-decoration: none; }
.page-websites .wb-field-link:hover { text-decoration: underline; }
.page-websites .wb-field-dash { color: var(--muted-2); }
.page-websites .wb-field-secret { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.page-websites .wb-dots { font-size: 10px; letter-spacing: 3.5px; color: var(--text-2); }
.page-websites .wb-field-btns { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.page-websites .wb-fbtn { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--blue-link); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.page-websites .wb-fbtn .icon { width: 15px; height: 15px; }
.page-websites .wb-fbtn:hover { background: var(--bg-selected); }
.page-websites .wb-fbtn[disabled] { opacity: .35; cursor: default; }
.page-websites .wb-fbtn.is-copied { background: var(--tint-success); color: var(--green-text); }
.page-websites .wb-fbtn.is-failed { background: var(--tint-danger); color: var(--red-text); }
.page-websites .wb-field-divider { padding-top: 4px; border-top: 1px dashed var(--border); margin-top: 2px; }
.page-websites .wb-field-divider-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }

.page-websites .wb-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.page-websites .wb-note { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.page-websites .wb-note:last-child { border-bottom: 0; }
.page-websites .wb-note-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.page-websites .wb-dot-green { background: #1FA36C; }
.page-websites .wb-dot-amber { background: #F0A81E; }
.page-websites .wb-dot-red   { background: #E23B4E; }
.page-websites .wb-note-body { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.page-websites .wb-note-text { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.page-websites .wb-note-meta { font-size: 11.5px; color: var(--muted-2); }
.page-websites .wb-note-more { position: relative; flex: 0 0 auto; }
.page-websites .wb-note-more .wb-icon-btn { width: 26px; height: 26px; border: 0; background: none; }
.page-websites .wb-card-notes .wb-card-body { padding-top: 2px; }

/* ---- bulk bar --------------------------------------------------------- */
.page-websites .wb-bulk {
  position: sticky; bottom: 14px; z-index: 20; align-self: center;
  display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 16px;
  border-radius: 999px; background: var(--bg-ink); color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .24);
}
.page-websites .wb-bulk[hidden] { display: none; }
.page-websites .wb-bulk-count { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.page-websites .wb-bulk-btns { display: flex; align-items: center; gap: 7px; }
.page-websites .wb-bulk .btn { height: 30px; border-radius: 999px; font-size: 12px; }
.page-websites .wb-bulk .btn.is-danger { color: var(--red-text); }
.page-websites .wb-bulk-clear { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.page-websites .wb-bulk-clear .icon { width: 14px; height: 14px; }

/* ---- modals ----------------------------------------------------------- */
.page-websites .wb-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.page-websites .wb-modal[hidden] { display: none; }
.page-websites .wb-modal-backdrop { position: absolute; inset: 0; background: var(--bg-overlay); border: 0; }
.page-websites .wb-modal-card { position: relative; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--card-border); box-shadow: 0 22px 60px rgba(15, 23, 42, .24); }
.page-websites .wb-modal-wide { max-width: 620px; }
.page-websites .wb-modal-sm { max-width: 400px; }
.page-websites .wb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 4px; }
.page-websites .wb-modal-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.page-websites .wb-modal-icon { width: 19px; height: 19px; color: var(--text-link); }
.page-websites .wb-modal-icon-red { color: var(--red-text); }
.page-websites .wb-modal-sub { margin: 0; padding: 0 16px 6px; font-size: 12.5px; color: var(--muted); }
.page-websites .wb-modal-body { padding: 10px 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.page-websites .wb-modal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-websites .wb-modal-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-websites .wb-modal-text { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-3); }
.page-websites .wb-input { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.page-websites .wb-input-label { font-size: 12px; color: var(--muted); }
.page-websites .wb-input input, .page-websites .wb-input select, .page-websites .wb-input textarea {
  width: 100%; min-height: 36px; padding: 8px 11px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-input); color: var(--text);
  font: inherit; font-size: 13px; outline: none; resize: vertical;
}
.page-websites .wb-input input:focus, .page-websites .wb-input select:focus, .page-websites .wb-input textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--bg-selected); }
.page-websites .wb-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 16px 16px; }

/* ---- dark-mode touch-ups (tokens cover the rest) ---------------------- */
html[data-theme="dark"] .page-websites .wb-stat:hover,
html[data-theme="dark"] .page-websites .wb-control-btn:hover,
html[data-theme="dark"] .page-websites .wb-sort-btn:hover,
html[data-theme="dark"] .page-websites .wb-rpp-btn:hover,
html[data-theme="dark"] .page-websites .wb-viewmode-btn:hover,
html[data-theme="dark"] .page-websites .wb-icon-btn:hover,
html[data-theme="dark"] .page-websites a.wb-tile:hover,
html[data-theme="dark"] .page-websites .wb-geo-chip:hover,
html[data-theme="dark"] .page-websites .wb-page:hover:not([disabled]),
html[data-theme="dark"] .page-websites .wb-sc:hover { border-color: #2C4C6B; }
html[data-theme="dark"] .page-websites { --wb-field-bg: #142434; }
html[data-theme="dark"] .page-websites .wb-morefilters { border-color: #2C4C6B; }
html[data-theme="dark"] .page-websites .wb-morefilters:hover { background: rgba(22, 119, 255, .24); }
html[data-theme="dark"] .page-websites .wb-viewmode-btn.is-active,
html[data-theme="dark"] .page-websites .wb-expand.is-open { border-color: #2C4C6B; color: #4C9AFF; }
html[data-theme="dark"] .page-websites .wb-map svg path { fill: #1B3D2C; stroke: #0D1B29; }
html[data-theme="dark"] .page-websites .wb-map svg path.wb-geo.lv1 { fill: #245A42; }
html[data-theme="dark"] .page-websites .wb-map svg path.wb-geo.lv2 { fill: #216048; }
html[data-theme="dark"] .page-websites .wb-map svg path.wb-geo.lv3 { fill: #24795A; }
html[data-theme="dark"] .page-websites .wb-map svg path.wb-geo.lv4 { fill: #219A6D; }
html[data-theme="dark"] .page-websites .wb-map svg path.wb-geo.lv5 { fill: #2BBD83; }
html[data-theme="dark"] .page-websites .wb-map svg path.wb-geo:hover { fill: #4FE0A6; }
html[data-theme="dark"] .page-websites .wb-ring::after { background: var(--bg-surface); }
html[data-theme="dark"] .page-websites .wb-preview { background: linear-gradient(135deg, #060E18 0%, #0F1C31 55%, #060E18 100%); }
html[data-theme="dark"] .page-websites .wb-bulk { background: #16283A; }


/* ---- access + tech columns ------------------------------------------- */
/* Fifteen columns need ~1500px, so the table scrolls inside its card at every
   width and the identity columns stay pinned while the rest slides under them */
.page-websites .wb-table { min-width: 1380px; }
.page-websites .wb-td-check, .page-websites .wb-th-check { position: sticky; left: 0; z-index: 3; }
.page-websites .wb-td-num, .page-websites .wb-th-num { position: sticky; left: 33px; z-index: 3; }
.page-websites .wb-td-site, .page-websites .wb-table thead th:nth-child(3) { position: sticky; left: 68px; z-index: 3; box-shadow: 6px 0 8px -7px rgba(15, 23, 42, .3); }
.page-websites .wb-table thead th.wb-th-check, .page-websites .wb-table thead th.wb-th-num, .page-websites .wb-table thead th:nth-child(3) { z-index: 4; }
.page-websites .wb-table tbody .wb-td-check,
.page-websites .wb-table tbody .wb-td-num,
.page-websites .wb-table tbody .wb-td-site { background: var(--bg-surface); }
.page-websites .wb-row:hover > .wb-td-check,
.page-websites .wb-row:hover > .wb-td-num,
.page-websites .wb-row:hover > .wb-td-site { background: var(--bg-hover); }
.page-websites .wb-row.is-open > .wb-td-check,
.page-websites .wb-row.is-open > .wb-td-num,
.page-websites .wb-row.is-open > .wb-td-site { background: var(--bg-selected); }
.page-websites .wb-row-detail > td { position: static; }
.page-websites .wb-td-site { overflow: hidden; text-overflow: ellipsis; }

.page-websites .wb-cell-dash { color: var(--muted); }

/* category pills carry the donut's colours */
.page-websites .wb-ct-brand  { background: var(--tint-info);    color: var(--text-link); }
.page-websites .wb-ct-seo    { background: var(--tint-success); color: var(--text-success); }
.page-websites .wb-ct-tools  { background: var(--tint-warning); color: var(--text-warning-4); }
.page-websites .wb-ct-news   { background: rgba(236, 72, 153, .13); color: #DB2777; }
.page-websites .wb-ct-review { background: var(--tint-purple);  color: var(--text-purple); }
.page-websites .wb-ct-listing { background: rgba(8, 145, 178, .12); color: #0E7490; }
.page-websites .wb-ct-other  { background: var(--bg-muted);     color: var(--text-3); }
html[data-theme="dark"] .page-websites .wb-ct-listing { background: rgba(8, 145, 178, .2); color: #67E8F9; }
.page-websites .wb-logo-placeholder .icon { width: 16px; height: 16px; color: #fff; opacity: .85; }
.page-websites .wb-pill-cat:hover { filter: brightness(.96); }
html[data-theme="dark"] .page-websites .wb-ct-news { background: rgba(236, 72, 153, .18); color: #F9A8D4; }

/* technology */
.page-websites .wb-tech { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: var(--text-2); }
.page-websites .wb-tech-mark { width: 22px !important; height: 22px !important; border-radius: 5px; flex: 0 0 auto; }
.page-websites .wb-tech-code { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: var(--bg-muted); color: var(--text-2); flex: 0 0 auto; }
.page-websites .wb-tech-code .icon { width: 13px; height: 13px; }
.page-websites .wb-tech-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.page-websites .wb-tech-empty { color: var(--muted); }

/* admin user + admin url */
.page-websites .wb-td-user, .page-websites .wb-td-admin { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-websites .wb-user { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text); }
.page-websites .wb-admin-link { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--blue-link); text-decoration: none; font-size: 13px; }
.page-websites .wb-admin-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-websites .wb-admin-link .icon { width: 13px; height: 13px; flex: 0 0 auto; opacity: .75; }
.page-websites .wb-admin-link:hover { text-decoration: underline; }
.page-websites .wb-admin-link:hover .icon { opacity: 1; }

/* masked password in a cell — same hooks as the Access card */
.page-websites .wb-td-pass { white-space: nowrap; }
.page-websites .wb-secret-cell {
  display: inline-flex; align-items: center; gap: 2px; height: 28px; width: 100px; max-width: 100%; padding: 0 2px 0 8px;
  border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); box-sizing: border-box; overflow: hidden;
}
/* the mask is a fixed-width strip, so the buttons sit inside the box whatever
   size the browser draws the dot glyph at */
.page-websites .wb-secret-cell .wb-dots { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 8px; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.page-websites .wb-secret-text { flex: 1 1 auto; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-websites .wb-secret-cell .wb-fbtn { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 5px; }
.page-websites .wb-secret-cell .wb-fbtn .icon { width: 12px; height: 12px; }
.page-websites .wb-secret-cell.is-failed { border-color: var(--red-text); }

/* Last Updated as a calendar field */
.page-websites .wb-updated { position: relative; display: inline-flex; max-width: 100%; }
.page-websites .wb-updated-btn {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin: 0; padding: 3px 8px 3px 6px;
  border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; text-align: left; font: inherit;
}
.page-websites .wb-updated-btn:hover, .page-websites .wb-updated-btn:focus-visible { border-color: var(--border-default); background: var(--bg-surface); color: var(--blue-link); }
.page-websites .wb-updated-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--muted); }
.page-websites .wb-updated-btn:hover .wb-updated-icon { color: var(--blue-link); }
.page-websites .wb-updated-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.2; }
.page-websites .wb-updated-date { font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.page-websites .wb-updated-ago { font-size: 11px; color: var(--muted); white-space: nowrap; }
.page-websites .wb-updated-ago:empty { display: none; }
/* the native input stays in the tree (showPicker() anchors to it) but never paints */
.page-websites .wb-updated-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; margin: 0; pointer-events: none; }
.page-websites .wb-updated.is-saving .wb-updated-btn { opacity: .55; pointer-events: none; }
.page-websites .wb-updated.is-saved .wb-updated-btn { border-color: var(--text-success); }
.page-websites .wb-updated.is-failed .wb-updated-btn { border-color: var(--red-text); }
.page-websites .wb-td-updated { overflow: visible; }
/* the expand panel is as wide as what you can see, not as wide as the table:
   it sticks to the scroll viewport (websites.js keeps --wb-vw current) */
.page-websites .wb-row-detail .wb-panel { position: sticky; left: var(--wb-pad); width: calc(var(--wb-vw, 100%) - var(--wb-pad) * 2); box-sizing: border-box; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 1300px) {
  .page-websites .wb-insights { grid-template-columns: minmax(0, 1fr); }
  .page-websites .wb-mapwrap { grid-template-columns: minmax(0, 1fr) 250px; }
  .page-websites .wb-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-websites .wb-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-websites .wb-group-tech .wb-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .page-websites .wb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-websites .wb-panel-head { flex-wrap: wrap; }
  .page-websites .wb-panel-dates { order: 3; width: 100%; }
  .page-websites .wb-date { flex: 1 1 0; }
}
@media (max-width: 1024px) {
  .page-websites { padding-top: 10px; }
  .page-websites .wb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-websites .wb-heading { flex-wrap: wrap; }
  .page-websites .wb-actions { width: 100%; margin-top: 8px; }
  .page-websites .wb-actions .btn { flex: 1 1 auto; justify-content: center; }
  .page-websites .wb-actions .btn-icon-only { flex: 0 0 36px; }
  .page-websites .wb-filters { flex-wrap: wrap; }
  .page-websites .wb-search { flex: 1 1 100%; order: -1; }
  .page-websites .wb-control { flex: 1 1 calc(50% - 5px); }
  .page-websites .wb-grid-4, .page-websites .wb-grid-5, .page-websites .wb-grid-6,
  .page-websites .wb-grid-3, .page-websites .wb-grid-tri,
  .page-websites .wb-group-tech .wb-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-websites .wb-group-geo .wb-grid { grid-template-columns: minmax(0, 1fr); }
  .page-websites .wb-mapwrap { grid-template-columns: minmax(0, 1fr); }
  .page-websites .wb-table-head { flex-wrap: wrap; }
  .page-websites .wb-foot { flex-wrap: wrap; justify-content: flex-start; row-gap: 10px; }
  .page-websites .wb-pager { order: 3; width: 100%; }
}
@media (max-width: 768px) {
  .page-websites .wb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-websites .wb-title { font-size: 22px; line-height: 28px; }
  .page-websites .wb-stat-value { font-size: 22px; line-height: 28px; }
  .page-websites .wb-grid-4, .page-websites .wb-grid-5, .page-websites .wb-grid-6,
  .page-websites .wb-grid-3, .page-websites .wb-grid-tri, .page-websites .wb-grid-2,
  .page-websites .wb-group-tech .wb-grid-6 { grid-template-columns: minmax(0, 1fr); }
  .page-websites .wb-panel { margin-inline: 8px; }
  .page-websites .wb-preview { flex: 0 0 100%; width: 100%; }
  .page-websites .wb-modal-fields, .page-websites .wb-modal-pair { grid-template-columns: minmax(0, 1fr); }
  .page-websites .wb-catwrap { flex-direction: column; align-items: stretch; }
  .page-websites .wb-donut { align-self: center; }
}
@media (max-width: 520px) {
  .page-websites .wb-stats { grid-template-columns: minmax(0, 1fr); }
  .page-websites .wb-control { flex: 1 1 100%; }
  .page-websites .wb-heading-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .page-websites .wb-table-tools { flex-wrap: wrap; }
  .page-websites .wb-panel-dates { flex-direction: column; }
  .page-websites .wb-date + .wb-date { border-left: 0; border-top: 1px solid var(--card-border); }
}

/* backlink type pill for rows outside the five named types */
.type-pill.type-other { background: var(--bg-muted); color: var(--text-2); }
.type-pill.type-other .type-pill-dot { background: var(--muted-2); }

/* Integrations: status tabs beside their search box */
.int-tabs-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.int-tabs-row .int-tabs { flex: 1 1 auto; min-width: 0; }
.int-search { position: relative; flex: 0 0 260px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.int-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text); outline: none; }
.int-search-clear { display: inline-flex; color: var(--text-tertiary); }
.int-search-clear .icon { width: 15px; height: 15px; }
.int-search-clear:hover { color: var(--text-link); }
.int-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; text-align: center; }
@media (max-width: 768px) { .int-search { flex: 1 1 100%; } }

/* ==========================================================================
   Overflow clean-up — long labels ellipsize instead of spilling out of their
   card, and the SEO KPI strip wraps once it cannot fit seven across.
   ========================================================================== */
.seo-kpi-sub, .seo-kpi-label, .seo-kpi-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-kpi-body { min-width: 0; }
@media (max-width: 1100px) {
  .seo-kpi-strip { flex-wrap: wrap; row-gap: 14px; }
  .seo-kpi { flex: 1 1 30%; min-width: 180px; }
}
@media (max-width: 680px) {
  .seo-kpi { flex: 1 1 100%; }
}

.fx-li-name, .fx-li-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-opp-item-why { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.settings-status-body { min-width: 0; }
.settings-status-body > * { overflow: hidden; text-overflow: ellipsis; }
.vault-name { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.bl-status-body { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lt-alert-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-anchor { min-width: 0; overflow-wrap: anywhere; }

/* SEO Control Center on a phone: the fixed-height cards and the two-up
   PageSpeed block stack instead of spilling past the card edge. */
@media (max-width: 900px) {
  /* the three-up rows are built from fr ratios that never collapse on their
     own, so each SEO row becomes a single column on a narrow screen */
  /* .page-seo raises specificity past the app-wide [class*="-row"] fallback */
  .page-seo .seo-row, .page-seo .seo-row-perf, .page-seo .seo-row-overview,
  .page-seo .seo-row-tables, .page-seo .seo-row-bottom { grid-template-columns: minmax(0, 1fr) !important; }
  /* a child still spanning two tracks makes the grid invent a second column */
  .page-seo .seo-organic-card, .page-seo .seo-spend-card, .page-seo .seo-cwv-card { grid-column: auto !important; }
}
@media (max-width: 680px) {
  .seo-health-card, .seo-ps-card { height: auto; }
  .seo-health-body { flex-direction: column; align-items: stretch; gap: 14px; height: auto; }
  .seo-ps-body { flex-direction: column; align-items: stretch; gap: 14px; height: auto; }
  .seo-ps-device + .seo-ps-device { border-left: 0; border-top: 1px solid var(--border-soft); padding-left: 0; padding-top: 14px; }
  .seo-ps-device { flex-wrap: wrap; }
  .seo-ps-legend { flex: 1 1 100%; }
  .seo-ps-legend li, .seo-ps-device-label { white-space: normal; }
  .pinned-tooltip { max-width: calc(100vw - 48px); }
  .pinned-tooltip-row { flex-wrap: wrap; }
}

/* the pinned SEO tooltip sized itself narrower than its own rows */
.pinned-tooltip { width: max-content; max-width: min(280px, calc(100vw - 48px)); }
.pinned-tooltip-row { min-width: 0; }

/* ==== SETTINGS MODULE BLOCK START ==== */

/* ==========================================================================
   SETTINGS MODULE — General + Integrations tabs
   Scoped to .set-page so nothing here can reach the shell, the sidebar or
   any other screen. Derived from design-reference/settings-general.png and
   design-reference/settings-integrations.png.
   ========================================================================== */

.set-page {
  --st-rail: 288px;
  --st-gap: 14px;
  --st-card-radius: 14px;
  --st-tile-blue: #EAF1FE;
  --st-tile-green: #E4F7EC;
  --st-tile-amber: #FEF1DC;
  --st-tile-red: #FDE9EA;
  --st-tile-grey: #EEF1F6;
  --st-ink-blue: #1D4ED8;
  --st-field-border: #E4E9F2;
  --st-field-bg: #FFFFFF;
  padding: 18px 22px 40px;
  max-width: 100%;
}

/* ---------------------------------------------------------- breadcrumbs */

.set-crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1; }
.set-crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-link); text-decoration: none; font-weight: 500; }
.set-crumb:hover { text-decoration: underline; }
.set-crumb.is-current { color: var(--text-2); font-weight: 500; cursor: default; }
.set-crumb-ico { width: 15px; height: 15px; }
.set-crumb-sep { width: 13px; height: 13px; color: var(--muted-2); flex: none; }

/* --------------------------------------------------------- page heading */

.set-head { display: flex; align-items: flex-start; gap: 15px; margin-top: 14px; }
.set-head-tile {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  background: var(--st-tile-blue); display: grid; place-items: center;
}
.set-head-ico { width: 27px; height: 27px; color: var(--st-ink-blue); stroke-width: 2; }
.set-head-text { min-width: 0; flex: 1 1 auto; padding-top: 1px; }
.set-head-title { margin: 0; font-size: 30px; line-height: 1.16; font-weight: 700; letter-spacing: -.6px; color: var(--text); }
.set-head-sub { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.set-head-aside { flex: none; margin-left: auto; padding-top: 2px; }

/* status pill (General) */
.st-status {
  background: var(--st-tile-green); border: 1px solid rgba(34, 165, 91, .16);
  border-radius: 11px; padding: 8px 12px; text-align: left;
}
.st-status-top { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.st-status-ico { width: 16px; height: 16px; color: var(--fg-green); flex: none; }
.st-status-sub { margin: 2px 0 0; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- tabs */

.set-tabs-wrap { margin-top: 19px; }
.set-tabs {
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg-surface); border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: var(--shadow-card);
  padding: 0 8px; overflow-x: auto; scrollbar-width: none;
}
.set-tabs::-webkit-scrollbar { display: none; }
.set-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 12px; font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.set-tab-ico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.set-tab:hover { color: var(--st-ink-blue); }
.set-tab:hover .set-tab-ico { color: var(--st-ink-blue); }
.set-tab.is-active { color: var(--st-ink-blue); font-weight: 600; }
.set-tab.is-active .set-tab-ico { color: var(--st-ink-blue); }
.set-tab.is-active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--st-ink-blue);
}

/* --------------------------------------------------------------- layout */

.set-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--st-rail);
  gap: var(--st-gap); align-items: start; margin-top: 16px;
}
.set-main, .set-rail, .set-int { display: flex; flex-direction: column; gap: var(--st-gap); min-width: 0; }
.set-solo { margin-top: 16px; }

/* ---------------------------------------------------------------- cards */

.st-card {
  background: var(--bg-surface); border: 1px solid var(--card-border);
  border-radius: var(--st-card-radius); box-shadow: var(--shadow-card);
  min-width: 0;
}
.st-card-head { display: flex; align-items: flex-start; gap: 13px; padding: 14px 20px; }
.st-card-head.is-mid { align-items: center; }
.st-card-rail .st-card-head { gap: 11px; padding: 14px 18px; }
.st-card-text { min-width: 0; flex: 1 1 auto; }
.st-card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--text); letter-spacing: -.1px; }
.st-card-sub { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.st-card-aside { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }

.st-tile {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--st-tile-blue);
}
.st-tile-ico { width: 22px; height: 22px; color: var(--st-ink-blue); stroke-width: 2; }
.st-tile-sm { width: 36px; height: 36px; border-radius: 10px; }
.st-card-rail .st-tile { width: 36px; height: 36px; border-radius: 10px; }
.st-card-rail .st-tile-ico { width: 19px; height: 19px; }
.st-card-rail .st-card-title { font-size: 16px; white-space: nowrap; }
.st-tile-sm .st-tile-ico { width: 18px; height: 18px; }
.st-tile-green { background: var(--st-tile-green); }
.st-tile-green .st-tile-ico { color: var(--fg-green); }
.st-tile-amber { background: var(--st-tile-amber); }
.st-tile-amber .st-tile-ico { color: #F08A1D; }
.st-tile-red { background: var(--st-tile-red); }
.st-tile-red .st-tile-ico { color: var(--red-text); }
.st-tile-grey { background: var(--st-tile-grey); }
.st-tile-grey .st-tile-ico { color: var(--muted); }
.st-tile-green-solid { background: var(--green); }
.st-tile-green-solid .st-tile-ico { color: #FFFFFF; stroke-width: 3; }

.st-body { padding: 14px 20px 20px; border-top: 1px solid var(--border-soft); }
.st-card-rail .st-body { padding: 2px 18px 16px; border-top: 0; }
.st-body-flush { padding: 0; border-top: 1px solid var(--border-soft); }
.st-body-tight { padding-bottom: 12px; }

/* ------------------------------------------------------------ form grid */

.st-cols-2, .st-cols-3, .st-cols-4, .st-acct { display: grid; gap: 16px 20px; }
.st-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Account & Workspace runs a 5:7 split, with the GEO/currency pair sharing the
   wider track — measured off the reference, which leaves the left cell empty. */
.st-acct { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.st-acct-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.st-span-2 { grid-column: span 2; min-width: 0; }
.st-spacer { display: block; }

.st-field { min-width: 0; }
.st-label {
  display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500;
  line-height: 1.3; color: var(--text-3);
}
.st-label-dot { display: flex; align-items: center; gap: 8px; }
.st-hdot { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st-hdot-ico { width: 9px; height: 9px; color: #FFFFFF; }
.st-hdot-green { background: var(--green); }
.st-hdot-amber { background: var(--amber); }
.st-hdot-red { background: var(--red); }

.st-input {
  width: 100%; height: 38px; padding: 0 13px;
  font: 500 14.5px/38px var(--font); color: var(--text);
  background: var(--st-field-bg); border: 1px solid var(--st-field-border);
  border-radius: 10px; outline: none; -webkit-appearance: none; appearance: none;
}
.st-input::placeholder { color: var(--muted-2); font-weight: 400; }
.st-input:hover { border-color: #D5DCE8; }
.st-input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.st-input[readonly] { background: var(--bg-subtle); color: var(--text-3); cursor: default; }
.st-input.is-invalid, .has-error .st-input { border-color: var(--red); }
.st-input[type="number"] { -moz-appearance: textfield; }
.st-input[type="number"]::-webkit-outer-spin-button,
.st-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.st-hint { margin: 4px 0 0; font-size: 12px; line-height: 1.3; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.st-hint-ico { width: 13px; height: 13px; flex: none; }
.st-error { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--red-text); font-weight: 500; }
.st-optional { color: var(--muted-2); font-weight: 400; }

/* --------------------------------------------------------------- select */

.st-select { position: relative; display: block; }
.st-select select {
  width: 100%; height: 38px; padding: 0 36px 0 13px;
  font: 500 14.5px/38px var(--font); color: var(--text);
  background: var(--st-field-bg); border: 1px solid var(--st-field-border);
  border-radius: 10px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.st-select.has-lead select { padding-left: 42px; }
.st-select select:hover { border-color: #D5DCE8; }
.st-select select:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.st-select-chev {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.st-select-lead {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; display: grid; place-items: center; pointer-events: none;
}
.st-select-lead .flag, .st-select-lead img, .st-select-lead svg { display: block; }
.st-select-logo { width: 22px; height: 22px; border-radius: 6px; display: block; }
.st-select-lead .st-select-logo > svg, .st-select-lead .st-select-logo > img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.st-select-glyph { width: 18px; height: 18px; color: var(--muted); }
.st-select-lead .st-cat-dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #17B897; }
.st-select-lead .st-cat-dot .st-select-glyph { width: 13px; height: 13px; color: #FFFFFF; }
.st-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted-2); display: block; }
.st-dot-live { background: var(--green); }
.st-dot-in-development { background: var(--blue-2); }
.st-dot-paused { background: var(--amber); }
.st-dot-archived { background: var(--muted-2); }

/* --------------------------------------------------- display and format */

.st-display { display: grid; grid-template-columns: minmax(0, 1fr) 178px; gap: 20px; align-items: end; padding-bottom: 6px; }
.st-preview {
  border: 1px solid var(--st-field-border); border-radius: 10px;
  background: var(--bg-subtle); padding: 8px 13px; min-height: 38px;
  display: flex; flex-direction: column; justify-content: center;
}
.st-preview-label { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.st-preview-value { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }

/* ---------------------------------------------------------- preferences */

.st-prefs { gap: 14px 24px; }
.st-pref { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.st-switch-input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-switch {
  grid-row: span 1; width: 44px; height: 25px; border-radius: 999px;
  background: #CBD5E1; position: relative; cursor: pointer; flex: none;
  transition: background .18s ease; margin-top: 1px;
}
.st-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 23, 42, .22);
  transition: transform .18s ease;
}
.st-switch-input:checked + .st-switch { background: var(--fill-accent-2); }
.st-switch-input:checked + .st-switch .st-switch-knob { transform: translateX(19px); }
.st-switch-input:focus-visible + .st-switch { box-shadow: 0 0 0 3px rgba(59, 130, 246, .3); }
.st-pref-text { display: block; cursor: pointer; min-width: 0; }
.st-pref-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.st-pref-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------------------------- save bar */

.st-savebar { display: flex; align-items: center; gap: 13px; padding: 14px 20px; }
.st-savebar .st-tile { width: 36px; height: 36px; border-radius: 10px; }
.st-savebar .st-tile-ico { width: 19px; height: 19px; }
.st-savebar .st-card-title { font-size: 15.5px; }
.st-savebar .st-card-sub { font-size: 13.5px; }

/* -------------------------------------------------------------- buttons */

.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.st-btn-ico { width: 17px; height: 17px; flex: none; }
.st-btn-chev { width: 15px; height: 15px; flex: none; opacity: .8; }
.st-btn-primary { background: var(--fill-accent-2); color: #FFFFFF; }
.st-btn-primary:hover { background: #1B54DF; }
.st-btn-ghost { background: var(--bg-surface); color: var(--blue-link); border-color: #D5E0F8; }
.st-btn-ghost:hover { background: #F4F8FF; border-color: #B9CCF3; }
.st-btn-soft { background: var(--bg-subtle); color: var(--text-2); border-color: transparent; }
.st-btn-soft:hover { background: #EBEFF6; }
.st-btn-danger { background: var(--red); color: #FFFFFF; }
.st-btn-danger:hover { background: #DA3E4E; }
.st-btn:disabled { opacity: .55; cursor: not-allowed; }
.st-btn.is-busy { position: relative; color: transparent; }
.st-btn.is-busy::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  color: #FFFFFF; animation: st-spin .7s linear infinite;
}
.st-btn-ghost.is-busy::after, .st-btn-soft.is-busy::after { color: var(--blue-link); }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-btn.is-dirty { box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }

.st-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue-link); text-decoration: none; }
.st-link:hover { text-decoration: underline; }
.st-link-ico { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- rail */

.st-who { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; }
.st-who-avatar {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  background: var(--fill-accent-2); color: #FFFFFF; display: grid; place-items: center;
  font-size: 16px; font-weight: 700; letter-spacing: .3px;
}
.st-who-name { display: block; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.st-who-role { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }

.st-kv { margin: 0; border-top: 1px solid var(--border-soft); padding-top: 4px; }
.st-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.st-kv-row + .st-kv-row { border-top: 1px solid var(--border-soft); }
.st-kv dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st-kv-ico { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.st-kv dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }

.st-actions { display: flex; flex-direction: column; gap: 4px; padding-top: 0; }
.st-action {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 5px; border: 0; border-radius: 10px; background: transparent;
  cursor: pointer; text-align: left; font: inherit;
}
.st-action:hover { background: var(--bg-subtle); }
.st-action-text { min-width: 0; flex: 1 1 auto; }
.st-action-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.st-action-sub { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-action-chev { width: 15px; height: 15px; color: var(--blue-link); flex: none; }
.st-action .st-tile { width: 32px; height: 32px; border-radius: 9px; }
.st-action .st-tile-ico { width: 17px; height: 17px; }
.st-action.is-danger .st-action-chev { color: var(--red-text); }

/* ============================== INTEGRATIONS ============================= */

.st-row { display: grid; gap: var(--st-gap); align-items: start; min-width: 0; }
.st-row-overview { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.st-row-three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.st-row-health { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }

.st-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-stat { display: flex; align-items: center; gap: 9px; min-width: 0; }
.st-stat .st-tile { width: 30px; height: 30px; border-radius: 9px; }
.st-stat .st-tile-ico { width: 16px; height: 16px; }
.st-stat-text { min-width: 0; }
.st-stat-num { display: block; font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--text); }
.st-stat-label { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); line-height: 1.25; white-space: nowrap; }

.st-bulk { display: flex; gap: 10px; flex-wrap: wrap; }
.st-bulk .st-btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }

/* ------------------------------------------------------------- sections */

.st-sect {
  background: var(--bg-surface); border: 1px solid var(--card-border);
  border-radius: var(--st-card-radius); box-shadow: var(--shadow-card); min-width: 0;
}
.st-sect-head { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 14px 20px; }
.st-sect-aside { position: absolute; top: 12px; right: 16px; display: flex; align-items: center; gap: 8px; }
.st-sect-head .st-card-sub { padding-right: 40px; }
.st-sect-head.has-add .st-card-sub { padding-right: 0; }
.st-sect-add { height: 36px; padding: 0 14px; font-size: 13.5px; }
.st-sect-toggle {
  width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--blue-link);
}
.st-sect-toggle:hover { background: var(--bg-subtle); }
.st-sect-chev { width: 19px; height: 19px; transition: transform .18s ease; }
.st-sect.is-collapsed .st-sect-chev { transform: rotate(180deg); }
.st-sect-body { padding: 0 20px 18px; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 13px; }

/* ---------------------------------------------------------- provider tile */

.st-int {
  display: flex; flex-direction: column; gap: 9px; min-width: 0;
  padding: 12px; border: 1px solid var(--card-border); border-radius: 12px;
  background: var(--bg-surface);
}
.st-int.is-working { opacity: .6; }
.st-int-head { display: flex; align-items: flex-start; gap: 11px; }
.st-int-logo { flex: none; width: 38px; height: 38px; display: grid; place-items: center; }
.st-int-mark { width: 38px; height: 38px; border-radius: 10px; display: block; }
.st-int-glyph { width: 36px; height: 36px; border-radius: 10px; background: var(--fill-accent-2); display: grid; place-items: center; }
.st-int-glyph-ico { width: 20px; height: 20px; color: #FFFFFF; }
.st-int-initial {
  width: 36px; height: 36px; border-radius: 10px; background: var(--st-tile-grey);
  display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--text-3);
}
.st-int-id { min-width: 0; flex: 1 1 auto; }
.st-int-name { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.25; word-break: break-word; }
.st-int-menu { position: relative; flex: none; }
.st-int-menu-btn {
  width: 26px; height: 26px; border-radius: 7px; border: 0;
  background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted-2);
}
.st-int-menu-btn:hover { background: var(--bg-subtle); color: var(--text-2); }
.st-int-menu-ico { width: 15px; height: 15px; }
.st-int-menu .dropdown-menu { right: 0; left: auto; }
.st-int-menu .dropdown-menu .is-danger { color: var(--red-text); }

.st-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px 0 6px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.st-pill-ico { width: 13px; height: 13px; flex: none; }
.st-pill-ok { background: var(--st-tile-green); color: var(--green-text); }
.st-pill-fail { background: var(--st-tile-red); color: var(--red-text); }
.st-pill-off { background: var(--st-tile-grey); color: var(--muted); }

.st-int-counts { margin: 0; display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12.5px; color: var(--muted); }
.st-int-sync { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.st-int-sync-label { flex: none; }
.st-int-dash { color: var(--muted-2); }
.st-mini { position: relative; display: inline-flex; min-width: 0; }
.st-mini select {
  height: 28px; padding: 0 24px 0 8px; font: 600 13px/28px var(--font);
  field-sizing: content; max-width: 108px; text-overflow: ellipsis;
  color: var(--text); background: var(--bg-subtle); border: 1px solid var(--card-border);
  border-radius: 8px; cursor: pointer; -webkit-appearance: none; appearance: none; outline: none;
}
.st-mini select:focus { border-color: var(--blue-2); }
.st-mini-chev { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--muted); pointer-events: none; }

.st-int-last { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-int-last.is-muted { color: var(--muted-2); }
.st-int-result-slot:empty { display: none; }
.st-int-result {
  margin: 0; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 7px; border-radius: 8px; font-size: 11px; font-weight: 600; line-height: 1.3;
}
.st-int-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-int-result-ico { width: 13px; height: 13px; flex: none; }
.st-int-result.is-ok { background: var(--st-tile-green); color: var(--green-text); }
.st-int-result.is-fail { background: var(--st-tile-red); color: var(--red-text); }
.st-int-cta { width: 100%; margin-top: auto; height: 38px; }

.st-quota { display: flex; flex-direction: column; gap: 5px; }
.st-quota-label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.st-quota-bar { height: 6px; border-radius: 999px; background: var(--st-tile-grey); overflow: hidden; }
.st-quota-bar span { display: block; height: 100%; border-radius: 999px; background: var(--green); }

/* ---------------------------------------------------------------- table */

.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-table th, .st-table td { text-align: left; padding: 11px 22px; vertical-align: middle; }
.st-table thead th {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-subtle); border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
.st-table tbody tr + tr th, .st-table tbody tr + tr td { border-top: 1px solid var(--border-soft); }
.st-td-name { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); min-width: 0; }
.st-td-logo { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.st-td-glyph { width: 22px; height: 22px; border-radius: 6px; background: var(--fill-accent-2); display: grid; place-items: center; flex: none; }
.st-td-glyph-ico { width: 13px; height: 13px; color: #FFFFFF; }
.st-td-when { color: var(--muted); white-space: nowrap; }
.st-td-msg { color: var(--text-3); }
.st-td-msg.is-fail { color: var(--red-text); font-weight: 500; }
.st-th-sort { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.st-th-chev { width: 14px; height: 14px; transition: transform .15s ease; }
.st-th-sort.is-desc .st-th-chev { transform: rotate(180deg); }

/* -------------------------------------------------- secure storage strip */

.st-secure {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  background: #F1FAF4; border: 1px solid rgba(34, 165, 91, .18); border-radius: var(--st-card-radius);
}
.st-secure .st-card-title { font-size: 15px; }
.st-secure .st-card-sub { font-size: 13.5px; color: var(--text-3); }

/* ----------------------------------------------------- empty + feedback */

.st-empty {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 30px 20px; text-align: center;
}
.st-empty-ico { width: 30px; height: 30px; color: var(--muted-2); margin-bottom: 4px; }
.st-empty-title { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.st-empty-sub { font-size: 13px; color: var(--muted); max-width: 340px; }
.st-empty .st-btn { margin-top: 12px; }
.st-loading { padding: 30px; text-align: center; color: var(--muted); font-size: 13.5px; }

.st-flash {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
}
.st-flash-ico { width: 18px; height: 18px; flex: none; }
.st-flash.is-ok { background: var(--st-tile-green); color: var(--green-text); }
.st-flash.is-fail { background: var(--st-tile-red); color: var(--red-text); }

/* --------------------------------------------------------------- modals */

.st-modal-backdrop { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 90; }
body.st-locked { overflow: hidden; }
.st-modal { position: fixed; inset: 0; z-index: 91; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.st-modal[hidden], .st-modal-backdrop[hidden] { display: none; }
.st-modal-card {
  width: min(100%, 460px); background: var(--bg-surface); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24); display: flex; flex-direction: column; max-height: calc(100vh - 48px);
}
.st-modal-lg .st-modal-card { width: min(100%, 720px); }
.st-modal-head { display: flex; align-items: flex-start; gap: 13px; padding: 20px 22px 16px; border-bottom: 1px solid var(--border-soft); }
.st-modal-x { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); margin-left: auto; }
.st-modal-x:hover { background: var(--bg-subtle); color: var(--text); }
.st-modal-x-ico { width: 17px; height: 17px; }
.st-modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.st-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border-soft); }
.st-modal-error { margin: 0; font-size: 13px; font-weight: 500; color: var(--red-text); }
.st-modal-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--bg-subtle); padding: 1px 6px; border-radius: 5px; }

.st-steps { display: flex; gap: 8px; margin: 0; padding: 14px 22px 0; list-style: none; }
.st-steps li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); flex: 1 1 0; }
.st-steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--st-tile-grey); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.st-steps li.is-active { color: var(--text); font-weight: 600; }
.st-steps li.is-active span { background: var(--fill-accent-2); color: #FFFFFF; }
.st-steps li.is-done span { background: var(--green); color: #FFFFFF; }
.st-step { display: flex; flex-direction: column; gap: 16px; }
.st-step-lead { margin: 0; font-size: 13.5px; color: var(--muted); }
.st-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 20px; border: 1.5px dashed #CBD5E1; border-radius: 12px;
  background: var(--bg-subtle); cursor: pointer; text-align: center;
}
.st-drop:hover { border-color: var(--blue-2); background: #F4F8FF; }
.st-drop-ico { width: 26px; height: 26px; color: var(--blue-link); margin-bottom: 4px; }
.st-drop-title { font-size: 14px; font-weight: 600; color: var(--text); }
.st-drop-sub { font-size: 12.5px; color: var(--muted); }
.st-map { display: flex; flex-direction: column; gap: 10px; }
.st-map-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.st-map-field { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.st-map-row .st-select select { height: 36px; line-height: 36px; font-size: 14px; }

.st-log { display: flex; flex-direction: column; }
.st-log-row { display: grid; grid-template-columns: 170px 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 13px; }
.st-log-row + .st-log-row { border-top: 1px solid var(--border-soft); }
.st-log-when { color: var(--muted); white-space: nowrap; }
.st-log-what { font-weight: 600; color: var(--text-2); }
.st-log-detail { color: var(--muted); word-break: break-word; }

.st-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.st-toast {
  position: relative; padding: 12px 38px 12px 14px; border-radius: 11px;
  background: var(--bg-surface); border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .14); animation: st-toast-in .2s ease;
}
.st-toast.is-out { opacity: 0; transition: opacity .25s ease; }
.st-toast.is-ok { border-left: 3px solid var(--green); }
.st-toast.is-fail { border-left: 3px solid var(--red); }
.st-toast-msg { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }
.st-toast-list { margin: 7px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.st-toast-x { position: absolute; top: 7px; right: 9px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted-2); cursor: pointer; }
@keyframes st-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ dark mode */

html[data-theme="dark"] .set-page {
  --st-tile-blue: rgba(59, 130, 246, .16);
  --st-tile-green: rgba(34, 197, 94, .16);
  --st-tile-amber: rgba(245, 166, 35, .16);
  --st-tile-red: rgba(239, 75, 91, .16);
  --st-tile-grey: rgba(148, 163, 184, .16);
  --st-ink-blue: #7DA8FF;
  --st-field-border: var(--border);
  --st-field-bg: var(--bg-input);
}
html[data-theme="dark"] .st-switch { background: #3A465C; }
html[data-theme="dark"] .st-input:hover, html[data-theme="dark"] .st-select select:hover { border-color: #4A5871; }
html[data-theme="dark"] .st-secure { background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .22); }
html[data-theme="dark"] .st-btn-ghost { background: transparent; border-color: rgba(125, 168, 255, .34); color: #9CC0FF; }
html[data-theme="dark"] .st-btn-ghost:hover { background: rgba(125, 168, 255, .1); }
html[data-theme="dark"] .st-drop { border-color: #40506B; }
html[data-theme="dark"] .st-toast { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .st-int-mark, html[data-theme="dark"] .st-td-logo, html[data-theme="dark"] .st-select-logo { background: rgba(255, 255, 255, .06); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1340px) {
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
}

@media (max-width: 1200px) {
  .st-row-three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-row-three > .st-sect:last-child { grid-column: span 2; }
}

@media (max-width: 1180px) {
  .set-page { --st-rail: 264px; }
  .st-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-row-overview { grid-template-columns: minmax(0, 1fr); }
  .st-row-health { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .set-rail { flex-direction: row; flex-wrap: wrap; }
  .set-rail > .st-card { flex: 1 1 260px; }
  .st-row-three { grid-template-columns: minmax(0, 1fr); }
  .st-row-three > .st-sect:last-child { grid-column: auto; }
}

@media (max-width: 860px) {
  .set-page { padding: 16px 16px 32px; }
  .set-head-title { font-size: 25px; }
  .set-head-sub { font-size: 14px; }
  .set-head-tile { width: 48px; height: 48px; border-radius: 14px; }
  .set-head-ico { width: 23px; height: 23px; }
  .set-head-aside { width: 100%; margin-left: 0; order: 3; }
  .set-head { flex-wrap: wrap; }
  .st-cols-2, .st-cols-3, .st-cols-4, .st-acct, .st-acct-pair { grid-template-columns: minmax(0, 1fr); }
  .st-span-2 { grid-column: auto; }
  .st-spacer { display: none; }
  .st-display { grid-template-columns: minmax(0, 1fr); }
  .st-prefs { gap: 16px; }
  .st-savebar { flex-wrap: wrap; }
  .st-savebar .st-btn { width: 100%; }
  .st-card-head, .st-sect-head { padding: 16px 16px 14px; }
  .st-body { padding: 16px 16px 18px; }
  .st-sect-body { padding: 0 16px 16px; }
  .st-table th, .st-table td { padding: 10px 16px; }
}

@media (max-width: 620px) {
  .st-stats { grid-template-columns: minmax(0, 1fr); }
  .st-bulk { flex-direction: column; }
  .st-bulk .st-btn { width: 100%; }
  .st-tiles { grid-template-columns: minmax(0, 1fr); }
  .st-sect-head { flex-wrap: wrap; }
  .st-sect-aside { width: 100%; margin-left: 58px; }
  .st-sect-add { flex: 1 1 auto; }
  .st-secure { flex-direction: column; align-items: flex-start; gap: 10px; }
  .st-map-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .st-log-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .st-modal { padding: 12px; }
  .st-toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* ==========================================================================
   Button chrome reset
   A <button> with no background of its own falls back to the UA "buttonface"
   colour, which no theme can reach — it rendered as a light grey pill on dark
   (.vault-name, .row-more-btn, .filter-select). Clearing it once here stops the
   whole class of bug; every styled button sets its own background via a class,
   which outranks this element selector.
   ========================================================================== */
button {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

/* Two row-level controls had no CSS at all and were relying on the UA button
   chrome for their border and fill. Given the real treatment here they look the
   same in light and finally theme correctly in dark. */
.row-more-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-surface); color: var(--muted); cursor: pointer;
}
.row-more-btn .icon { width: 15px; height: 15px; }
.row-more-btn:hover { border-color: var(--border-primary); color: var(--text-link); background: var(--bg-hover); }
.row-more-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.filter-select {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-surface); color: var(--text);
  font-family: var(--font); font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.filter-select-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.filter-select:hover { border-color: var(--border-primary); }
.filter-select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.filter-select-chevron { width: 14px; height: 14px; color: var(--muted-2); }

/* Sparkline strokes follow the theme (they were literal hex in the PHP). */
.sparkline { color: var(--text-link); }
.sparkline.spark-green { color: var(--text-success); }
.sparkline.spark-amber { color: var(--text-warning); }
.sparkline.spark-red   { color: var(--text-danger); }

/* the System swatch reads as half light / half dark */
.theme-option-swatch-system {
  background: linear-gradient(135deg, var(--bg-surface) 0 50%, var(--d-surface, #0D1B29) 50% 100%);
  color: var(--muted);
  border: 1px solid var(--border);
}
html[data-theme="dark"] .theme-option-swatch-system {
  background: linear-gradient(135deg, #F6F8FB 0 50%, var(--d-surface) 50% 100%);
}


/* ---------------------------------------------------------------------------
   Sidebar unread badge (Alerts & Tasks) and the Getting Started block.
   Additive only: no existing sidebar rule is touched.
   --------------------------------------------------------------------------- */
/* The badge steals from the label's line; close the gap on that row only so
   "Alerts & Tasks" still fits the 208px rail without being ellipsed. */
.nav-item:has(.nav-badge) { gap: 10px; }
.nav-item:has(.nav-badge) .nav-label { flex: 0 1 auto; min-width: 0; }
.nav-item .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 19px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sidebar-compact .nav-item .nav-badge,
.sidebar-collapsed .nav-item .nav-badge { margin-left: auto; }
.sidebar-onboarding .sidebar-usage-bar { gap: 0; }

/* ==========================================================================
   AUTH SCREENS — setup, sign-in, two-factor
   Standalone shell (no sidebar/topbar); everything below reads the same
   tokens as the app so light and dark are automatic.
   ========================================================================== */
.auth-body { min-height: 100vh; margin: 0; background: var(--page-bg); color: var(--text); font-family: var(--font); display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.auth-wrap { width: 100%; max-width: 420px; display: grid; gap: 18px; }
.auth-wrap-wide { max-width: 560px; }
.auth-brand { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.auth-brand img { width: 36px; height: 36px; border-radius: 9px; }
.auth-brand strong { display: block; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.auth-brand span { display: block; font-size: 12px; color: var(--muted); }
.auth-card { padding: 28px 28px 26px; }
.auth-title { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.auth-sub { margin: 0 0 20px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.auth-form { display: grid; gap: 16px; }
.auth-form .wz-input { height: 42px; font-size: 14px; }
.auth-pw { position: relative; }
.auth-pw .wz-input { padding-right: 44px; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--muted); cursor: pointer; }
.auth-eye:hover { background: var(--bg-subtle); color: var(--text); }
.auth-eye .icon { width: 17px; height: 17px; }
.auth-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px !important; letter-spacing: .28em; text-align: center; }
.auth-rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.auth-rules li { position: relative; padding-left: 18px; }
.auth-rules li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.auth-rules li.is-ok { color: var(--fg-success); }
.auth-rules li.is-ok::before { background: var(--fg-success); border-color: var(--fg-success); }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.auth-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.auth-check small { color: var(--muted); }
.auth-check-inline { align-items: center; }
.auth-check-inline input { margin-top: 0; }
.auth-submit { width: 100%; height: 42px; font-size: 14px; }
.auth-submit[disabled] { opacity: .55; cursor: not-allowed; }
.auth-alert { padding: 11px 13px; border-radius: 9px; background: var(--tint-danger); border: 1px solid var(--border-danger); color: var(--fg-danger); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-note { padding: 10px 13px; border-radius: 9px; background: var(--tint-info, var(--bg-subtle)); color: var(--text-2); font-size: 13px; margin-bottom: 16px; }
.auth-alt { margin-top: 14px; text-align: center; }
.auth-link { background: none; border: 0; padding: 4px; color: var(--text-link); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { margin: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } .auth-rules { grid-template-columns: 1fr; } }

/* 2FA enrolment + account panels inside Settings › Security */
.au-qr { width: 196px; height: 196px; display: block; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--border-default); box-sizing: content-box; }
.au-secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .08em; word-break: break-all; user-select: all; padding: 8px 10px; border-radius: 8px; background: var(--bg-subtle); border: 1px solid var(--border-default); }
.au-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 10px 0 0; padding: 12px 14px; border-radius: 9px; background: var(--bg-subtle); border: 1px dashed var(--border-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; letter-spacing: .06em; list-style: none; }
.au-enrol { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 640px) { .au-enrol { grid-template-columns: 1fr; } }
.au-sessions td, .au-history td { vertical-align: middle; }
.au-me { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; background: var(--tint-success); color: var(--fg-success); font-size: 11px; font-weight: 700; margin-left: 6px; }
.au-result { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.au-result.is-success { background: var(--tint-success); color: var(--fg-success); }
.au-result.is-failure, .au-result.is-blocked, .au-result.is-2fa_failed, .au-result.is-csrf_rejected, .au-result.is-remember_rejected { background: var(--tint-danger); color: var(--fg-danger); }
.au-result.is-logout, .au-result.is-expired, .au-result.is-revoked, .au-result.is-setup { background: var(--bg-subtle); color: var(--text-2); }
.au-result.is-password_changed, .au-result.is-email_changed, .au-result.is-2fa_enabled, .au-result.is-2fa_disabled, .au-result.is-reveal { background: var(--tint-warning, var(--bg-subtle)); color: var(--fg-warning, var(--text-2)); }

/* ---- edit-domain dialog (registrar account → Domains tab) ------------------ */
.rg-edit-scrim { position: fixed; inset: 0; z-index: 880; background: rgba(28, 34, 45, .5); backdrop-filter: blur(4px); }
.rg-edit-scrim[hidden] { display: none; }
.rg-edit {
  position: fixed; z-index: 881; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(100vw - 40px); max-width: 520px; max-height: 88vh; overflow-y: auto;
  border: 1px solid var(--border-default); border-radius: 16px; background: var(--bg-surface);
  box-shadow: 0 28px 64px rgba(15, 23, 42, .28);
}
.rg-edit[hidden] { display: none; }
.rg-edit-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.rg-edit-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: var(--tint-info); color: var(--text-link); }
.rg-edit-ico svg { width: 19px; height: 19px; }
.rg-edit-headtext { flex: 1 1 auto; min-width: 0; }
.rg-edit-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; color: var(--text); }
.rg-edit-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-edit-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border: 0; border-radius: 9px; background: none; color: var(--text-tertiary); cursor: pointer; }
.rg-edit-x svg { width: 18px; height: 18px; }
.rg-edit-x:hover { background: var(--bg-subtle-3); color: var(--text); }
.rg-edit-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 20px; }
.rg-edit-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rg-edit-field > span { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.rg-edit-field input, .rg-edit-field select {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 10px;
  background: var(--bg-surface); font-family: inherit; font-size: 13px; color: var(--text);
}
.rg-edit-field select { appearance: none; padding-right: 30px; cursor: pointer; }
.rg-edit-field input:focus, .rg-edit-field select:focus { outline: none; border-color: var(--border-primary-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.rg-edit-field .at-select-wrap { position: relative; display: block; }
.rg-edit-field .aff-select-chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--text-tertiary); pointer-events: none; }
.rg-edit-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.rg-edit-msg { margin-right: auto; font-size: 12.5px; color: var(--text-danger); }
@media (max-width: 560px) { .rg-edit-body { grid-template-columns: 1fr; } }

/* Archive sits inside the standard settings shell, so it inherits that spacing. */
.set-page .set-archive { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

/* Banner shown while previewing a page that is still archived. */
.arch-preview-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 var(--content-pad-x) 14px; padding: 11px 16px;
  border: 1px solid var(--border-warning, #F2D9A8); border-radius: 12px;
  background: var(--tint-warning); color: var(--text-warning-4);
}
.arch-preview-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.arch-preview-text { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.arch-preview-text b { font-weight: 700; }
.arch-preview-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.page-archive .arch-row-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.page-archive .arch-inline { display: inline-flex; }

/* ---- Archive → feature preview and "show me where it is" ------------------ */
.page-archive .arch-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.page-archive .arch-preview-label { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-tertiary); text-transform: uppercase; }
.page-archive .arch-preview .fp-th { font-size: 10.5px; font-weight: 600; color: var(--muted); padding-right: 2px; }
.page-archive .arch-preview .fp-plain { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.page-archive .arch-row-body { min-width: 0; }

/* The column a View link points at. */
.rg-hl-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 11px 15px;
  border: 1px solid var(--border-primary-2); border-radius: 12px; background: var(--tint-info); color: var(--text-link); }
.rg-hl-ico { width: 17px; height: 17px; flex: 0 0 auto; }
.rg-hl-text { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-2); }
.rg-hl-text b { color: var(--text-link); font-weight: 700; }
.rg-dtable th.is-hl, .rg-dtable td.is-hl { background: var(--tint-info); box-shadow: inset 1px 0 0 var(--border-primary-2), inset -1px 0 0 var(--border-primary-2); }
.rg-dtable thead th.is-hl { box-shadow: inset 1px 1px 0 var(--border-primary-2), inset -1px 0 0 var(--border-primary-2); }
.rg-dtable tbody tr:last-child td.is-hl { box-shadow: inset 1px 0 0 var(--border-primary-2), inset -1px -1px 0 var(--border-primary-2); }
.page-archive .arch-preview .rg-geo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.page-archive .arch-preview .rg-geo-globe { width: 14px; height: 14px; color: var(--text-tertiary); }
.page-archive .arch-preview .rg-bm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.page-archive .arch-preview .rg-bm-mark { width: 18px; height: 18px; border-radius: 4px; }
.page-archive .arch-preview .flag { width: 16px; height: 11px; border-radius: 2px; }
/* An archived feature shown only for this preview reads amber, not blue. */
.rg-hl-bar.is-archived { border-color: var(--border-warning, #F2D9A8); background: var(--tint-warning); }
.rg-hl-bar.is-archived .rg-hl-text b { color: var(--text-warning-4); }
.rg-hl-bar .arch-inline { display: inline-flex; }

/* Hosting: an account can hold servers in several countries, so the Region
   cell shows one flag per country (full name on hover) and only spells the
   name out when there is a single one. */
.ho-region-multi { gap: 4px; }
.ho-region-flag { display: inline-flex; align-items: center; border-radius: 2px; }
.ho-region-multi .ho-region-flag { box-shadow: 0 0 0 1px var(--border-default); }
.ho-region-none { color: var(--muted); }

/* Cloudflare: the account's nameservers, one copy button each plus one for the
   pair — a registrar form always asks for both. */
.cf-nsrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.cf-ns-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cf-ns-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-subtle); max-width: 100%; }
.cf-ns-chip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-ns-chip .cf-copy { flex: 0 0 auto; }
.cf-ns-all { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); color: var(--text-link); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.cf-ns-all:hover { background: var(--bg-subtle); }
.cf-ns-all .icon { width: 13px; height: 13px; }
.cf-ns-empty { font-size: 12.5px; color: var(--muted); }
/* inside the Account Details key/value list the label is already the <dt> */
.cf-nsrow-kv { margin-top: 0; }
.cf-nsrow-kv > .cf-pass-label { display: none; }
@media (max-width: 700px) { .cf-ns-chip code { max-width: 52vw; } }
