    :root {
      --bg: #030405;
      --bg-2: #060708;
      --surface: #0a0b0d;
      --surface-2: #101113;
      --surface-3: #151517;
      --line: rgba(220, 177, 88, .24);
      --line-soft: rgba(220, 177, 88, .10);
      --text: #f5f3ee;
      --muted: #aaa59c;
      --faint: #706b63;
      --gold: #d9af57;
      --gold-deep: #9b6f28;
      --gold-bright: #f1d477;
      --gold-pale: #ffe9a6;
      --cyan: #d9af57;
      --cyan-2: #a97a2f;
      --green: #58cf91;
      --violet: #c8b88f;
      --amber: #f0a942;
      --red: #ff6678;
      --brand: #b98731;
      --brand-bright: #f1d477;
      --shadow: 0 24px 64px rgba(0, 0, 0, .58);
      --gold-glow: 0 0 18px rgba(239, 201, 104, .22);
      --radius: 12px;
      --ease: cubic-bezier(.2,.75,.25,1);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 72% -10%, rgba(199, 148, 51, .13), transparent 32%),
        radial-gradient(circle at 96% 94%, rgba(126, 87, 24, .07), transparent 27%),
        linear-gradient(145deg, #020304, #070705 48%, #020304);
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 13px;
      overflow: hidden;
      letter-spacing: -.01em;
    }

    button, input, select, textarea { font: inherit; }
    button { color: inherit; }
    button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 2px solid var(--cyan);
      outline-offset: 2px;
    }
    ::selection { color: #100d07; background: var(--gold-bright); }
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-thumb { background: #183e53; border-radius: 99px; }
    ::-webkit-scrollbar-track { background: transparent; }

    .app-shell {
      height: 100vh;
      display: grid;
      grid-template-columns: 176px minmax(0, 1fr);
      grid-template-rows: 64px minmax(0, 1fr) 32px;
      isolation: isolate;
    }

    .app-shell::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      opacity: .18;
      background-image:
        linear-gradient(rgba(217, 175, 87, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 175, 87, .07) 1px, transparent 1px);
      background-size: 40px 40px;
      mask-image: radial-gradient(circle at 86% 8%, black 0, transparent 34%);
    }

    .topbar {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 244px minmax(280px, 630px) 1fr auto;
      align-items: center;
      gap: 18px;
      height: 64px;
      padding: 0 16px 0 13px;
      border-bottom: 1px solid var(--line);
      background: rgba(3, 14, 24, .92);
      backdrop-filter: blur(18px);
      z-index: 20;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .brand-mark {
      width: 38px;
      height: 42px;
      flex: 0 0 auto;
      filter: drop-shadow(0 0 12px rgba(33, 223, 242, .22));
    }

    .brand-name {
      font-size: 15px;
      line-height: 1;
      font-weight: 730;
      letter-spacing: .055em;
      white-space: nowrap;
    }
    .brand-name .brand-dynamic { color: #f5fbff; }
    .brand-name .brand-peptides { color: #3f8cff; font-style: normal; }

    .brand-line {
      margin-top: 7px;
      color: var(--cyan);
      font-size: 8px;
      font-weight: 750;
      letter-spacing: .23em;
      white-space: nowrap;
    }

    .command-trigger {
      height: 40px;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      color: #adc3d0;
      background: linear-gradient(180deg, #0a2030, #081a28);
      border: 1px solid #28506a;
      border-radius: 9px;
      cursor: pointer;
      transition: border-color .2s, background .2s;
    }

    .command-trigger:hover { border-color: #3c7897; background: #0b2333; }
    .command-trigger .placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .key-hint {
      margin-left: auto;
      padding: 2px 5px;
      color: #86a4b5;
      border: 1px solid #315267;
      border-radius: 4px;
      font-size: 10px;
      letter-spacing: .06em;
    }

    .header-context {
      justify-self: end;
      color: var(--cyan);
      font-size: 8px;
      font-weight: 720;
      line-height: 1.35;
      letter-spacing: .19em;
      text-transform: uppercase;
      opacity: .82;
      text-align: right;
    }

    .header-actions { display: flex; align-items: center; gap: 9px; }
    .primary-btn, .secondary-btn, .ghost-btn, .icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      border-radius: 8px;
      cursor: pointer;
      transition: transform .18s var(--ease), border-color .18s, background .18s;
    }

    .primary-btn {
      min-height: 36px;
      padding: 0 14px;
      color: #fff;
      background: linear-gradient(135deg, var(--brand), var(--brand-bright));
      border: 1px solid #4b9dff;
      font-size: 12px;
      font-weight: 760;
      box-shadow: 0 9px 28px rgba(23, 105, 232, .22);
    }

    .primary-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(23, 105, 232, .32); }
    .primary-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
    .secondary-btn {
      min-height: 34px;
      padding: 0 12px;
      color: #cfe7f3;
      background: #0a2030;
      border: 1px solid #28506a;
      font-size: 11px;
      font-weight: 650;
    }
    .secondary-btn:hover { border-color: #407b9a; background: #0b2638; }
    .ghost-btn {
      min-height: 30px;
      padding: 0 9px;
      color: var(--cyan);
      background: transparent;
      border: 1px solid transparent;
      font-size: 10px;
      font-weight: 650;
    }
    .ghost-btn:hover { background: rgba(33, 223, 242, .07); border-color: rgba(33, 223, 242, .18); }
    .icon-btn {
      width: 34px;
      height: 34px;
      padding: 0;
      color: #b6d0de;
      background: transparent;
      border: 1px solid transparent;
      position: relative;
    }
    .icon-btn:hover { color: white; background: rgba(255,255,255,.045); border-color: var(--line); }
    .notify-dot { position: absolute; top: 5px; right: 4px; width: 7px; height: 7px; background: #ff5164; border: 1px solid #fff; border-radius: 50%; }
    .avatar {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #ddecf4;
      background: linear-gradient(140deg, #314156, #142336);
      border: 1px solid #344b62;
      font-weight: 680;
    }

    .sidebar {
      grid-row: 2 / 4;
      grid-column: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      border-right: 1px solid var(--line);
      background: rgba(3, 14, 23, .93);
      z-index: 10;
    }

    .nav-scroll { flex: 1; min-height: 0; overflow: auto; padding: 13px 8px 8px; }
    .nav-group { margin-bottom: 11px; }
    .nav-label {
      padding: 2px 12px 5px;
      color: #7393a7;
      font-size: 8px;
      font-weight: 760;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .nav-item {
      width: 100%;
      height: 33px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 11px;
      color: #b7ccda;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 6px;
      cursor: pointer;
      text-align: left;
      font-size: 11px;
      position: relative;
    }

    .nav-item:hover { color: white; background: rgba(28, 114, 153, .09); }
    .nav-item.active {
      color: #e9fbff;
      background: linear-gradient(90deg, rgba(18, 135, 177, .27), rgba(18, 135, 177, .1));
      border-color: rgba(32, 164, 210, .19);
    }
    .nav-item.active::before { content:""; position:absolute; left:-9px; top:4px; bottom:4px; width:2px; background:var(--cyan); box-shadow:0 0 10px var(--cyan); }
    .nav-item svg { width: 16px; height: 16px; stroke-width: 1.65; color: currentColor; }
    .nav-count { margin-left:auto; min-width:18px; color: #6f93a7; font-size:9px; text-align:right; }
    .nav-item.active .nav-count { color: var(--cyan); }

    .sidebar-proof {
      flex: 0 0 auto;
      display: grid;
      grid-template-columns: 32px 1fr;
      gap: 9px;
      align-items: center;
      padding: 12px 14px;
      border-top: 1px solid var(--line);
      color: #d1e5ef;
      background: rgba(4, 19, 30, .9);
      font-size: 8px;
      font-weight: 680;
      letter-spacing: .06em;
      line-height: 1.55;
    }
    .flag { width: 28px; height: 18px; border-radius: 2px; overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.2); }

    .main {
      grid-column: 2;
      grid-row: 2;
      min-width: 0;
      min-height: 0;
      padding: 12px;
      overflow: auto;
      scroll-behavior: smooth;
    }

    .dashboard {
      min-width: 1080px;
      display: grid;
      gap: 11px;
      align-content: start;
    }

    .panel {
      min-width: 0;
      background:
        linear-gradient(145deg, rgba(10, 29, 43, .96), rgba(4, 18, 29, .96));
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
      overflow: hidden;
    }

    .panel.clickable, .metric-card.clickable { cursor: pointer; transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
    .panel.clickable:hover, .metric-card.clickable:hover { border-color: #2c617e; box-shadow: 0 14px 28px rgba(0,0,0,.13); }

    .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
    .metric-card {
      height: 106px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 112px;
      grid-template-rows: auto 1fr auto;
      padding: 14px 14px 12px;
      background: linear-gradient(145deg, rgba(9, 28, 43, .98), rgba(5, 19, 30, .98));
      border: 1px solid var(--line);
      border-radius: var(--radius);
      position: relative;
      overflow: hidden;
    }
    .metric-card::after { content:""; position:absolute; right:-25px; bottom:-35px; width:120px; height:90px; background:radial-gradient(circle, rgba(22,191,224,.11), transparent 67%); pointer-events:none; }
    .metric-label { color: #c5d9e4; font-size: 11px; font-weight: 610; }
    .metric-value { grid-column: 1; align-self:end; font-size: 25px; line-height: 1; font-weight: 740; letter-spacing: -.045em; }
    .metric-delta { grid-column:1; align-self:end; color:var(--green); font-size:10px; font-weight:710; }
    .metric-delta span { margin-left:7px; color:#668b9f; font-weight:520; }
    .sparkline { grid-column:2; grid-row:1 / -1; align-self:center; width:100%; height:56px; overflow:visible; }
    .sparkline .area { fill:url(#sparkFade); opacity:.34; }
    .sparkline .line { fill:none; stroke:var(--cyan); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 4px rgba(33,223,242,.4)); }

    .primary-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 11px; height: 306px; }
    .panel-header { height: 48px; display:flex; align-items:center; gap:10px; padding: 0 13px; border-bottom:1px solid var(--line-soft); }
    .panel-title { font-size: 15px; line-height: 1.1; font-weight: 710; letter-spacing: -.025em; }
    .panel-subtitle { margin-top:3px; color:#7fa0b3; font-size:10px; }
    .panel-header-actions { margin-left:auto; display:flex; align-items:center; gap:7px; }
    .range-toggle { display:flex; padding:2px; border:1px solid #24506b; border-radius:7px; background:#05131e; }
    .range-btn { min-width:53px; height:26px; padding:0 10px; color:#91afc0; background:transparent; border:0; border-radius:5px; cursor:pointer; font-size:9px; }
    .range-btn.active { color:#eaffff; background:linear-gradient(180deg,#145277,#0d3c5c); box-shadow:inset 0 0 0 1px rgba(67,183,229,.25); }
    .select-compact { height:30px; padding:0 28px 0 9px; color:#c3dae5; background:#071824; border:1px solid #28516a; border-radius:7px; font-size:9px; }

    .chart-wrap { position:relative; height:calc(100% - 48px); padding: 13px 13px 7px 9px; }
    .revenue-chart { width:100%; height:198px; display:block; overflow:visible; }
    .chart-grid line { stroke:rgba(73,142,176,.17); stroke-width:1; }
    .chart-label { fill:#7c9caf; font-size:9px; }
    #revenueArea { fill:url(#revenueFade); }
    #revenueLine { fill:none; stroke:var(--cyan); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 4px rgba(33,223,242,.35)); }
    #spendLine { fill:none; stroke:var(--violet); stroke-width:1.8; stroke-dasharray:7 6; stroke-linecap:round; }
    .chart-legend { position:absolute; left:50%; bottom:8px; transform:translateX(-50%); display:flex; gap:20px; white-space:nowrap; color:#aac3d1; font-size:9px; }
    .legend-dot { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; }
    .chart-tooltip { position:absolute; width:130px; padding:9px; color:#cfe5ef; background:#06141f; border:1px solid #2b5f7c; border-radius:7px; box-shadow:var(--shadow); font-size:9px; pointer-events:none; opacity:0; transform:translate(-50%, -100%); transition:opacity .15s; }
    .chart-tooltip strong { display:block; margin-bottom:5px; color:white; font-size:10px; }

    .live-panel { display:flex; flex-direction:column; }
    .live-head { height:48px; display:flex; align-items:center; padding:0 13px; }
    .live-status { margin-left:auto; display:flex; align-items:center; gap:7px; color:#7f9eb0; font-size:9px; }
    .live-dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 10px rgba(69,238,157,.62); animation:pulse 1.8s infinite; }
    @keyframes pulse { 50% { opacity:.48; box-shadow:0 0 4px rgba(69,238,157,.3); } }
    .live-body { flex:1; display:grid; grid-template-columns: .9fr 1.35fr; min-height:0; border-top:1px solid var(--line-soft); }
    .live-left { padding:10px 12px; border-right:1px solid var(--line-soft); }
    .visitor-number { font-size:26px; line-height:1; font-weight:740; letter-spacing:-.04em; }
    .visitor-number span { margin-left:6px; color:#9cb8c7; font-size:10px; font-weight:560; letter-spacing:0; }
    .source-title { margin:10px 0 6px; color:#cce0ea; font-size:10px; font-weight:650; }
    .source-row { display:grid; grid-template-columns:8px 1fr 28px; align-items:center; gap:7px; height:20px; color:#a9c1ce; font-size:9px; }
    .source-dot { width:6px; height:6px; border-radius:50%; }
    .source-row strong { color:#e7f7fd; font-weight:630; text-align:right; }
    .live-right { min-width:0; display:grid; grid-template-rows: 1fr 83px; }
    .geo { display:grid; grid-template-columns:1fr 86px; gap:4px; padding:8px 8px 2px 10px; min-height:0; }
    .map-box { position:relative; min-height:0; }
    .us-map { width:100%; height:112px; opacity:.92; }
    .map-outline { fill:rgba(16,111,149,.12); stroke:#1a8bb9; stroke-width:1.1; }
    .map-grid { stroke:rgba(38,198,232,.15); stroke-width:.55; }
    .map-ping { fill:var(--cyan); filter:drop-shadow(0 0 5px var(--cyan)); animation:mapPulse 2.3s infinite; transform-box:fill-box; transform-origin:center; }
    .map-ping:nth-of-type(2n) { animation-delay:.8s; }
    @keyframes mapPulse { 50% { opacity:.42; transform:scale(.72); } }
    .geo-list { padding-top:8px; color:#9cb5c4; font-size:9px; }
    .geo-list strong { display:block; margin-bottom:6px; color:#d9ebf3; font-size:10px; }
    .geo-row { display:flex; justify-content:space-between; height:18px; }
    .checkout-events { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line-soft); }
    .event-stat { padding:10px 11px; }
    .event-stat + .event-stat { border-left:1px solid var(--line-soft); }
    .event-label { color:#8f897f; font-size:8px; text-transform:uppercase; letter-spacing:.07em; }
    .event-value { margin-top:5px; color:#fff; font-size:19px; font-weight:720; }
    .event-value span { margin-left:5px; color:#8ba9b8; font-size:9px; font-weight:520; }

    .tables-grid { display:grid; grid-template-columns: 1fr 1fr; gap:11px; height:226px; }
    .table-panel { min-width:0; display:flex; flex-direction:column; }
    .table-panel .panel-header { height:40px; }
    .table-wrap { flex:1; min-height:0; overflow:auto; }
    table { width:100%; border-collapse:collapse; table-layout:fixed; }
    th { height:26px; padding:0 10px; color:#83a5b8; background:rgba(8,31,47,.72); border-bottom:1px solid var(--line-soft); font-size:8px; font-weight:650; text-align:left; white-space:nowrap; }
    td { height:31px; padding:0 10px; color:#c4d9e4; border-bottom:1px solid rgba(52,107,137,.14); font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    tbody tr { cursor:pointer; transition:background .15s; }
    tbody tr:hover { background:rgba(33,223,242,.045); }
    .status { display:inline-flex; align-items:center; gap:5px; }
    .status::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--green); }
    .status.review::before { background:var(--amber); }
    .status.paused::before { background:#70879a; }
    .status.blocked::before { background:var(--red); }
    .roas { color:var(--green); font-weight:680; }
    .channel { display:inline-flex; align-items:center; gap:6px; }
    .channel-icon { width:16px; height:16px; display:grid; place-items:center; border:1px solid currentColor; border-radius:5px; color:var(--cyan); font-size:8px; font-weight:800; }
    .channel-icon.instagram { color:#f36cbe; }
    .channel-icon.email { color:#2fdff0; }
    .channel-icon.sms { color:#53ee9d; border-radius:50%; }
    .channel-icon.affiliate { color:#8c8fff; transform:rotate(-8deg); }
    .mini-action { width:25px; height:23px; display:grid; place-items:center; color:#9bb5c5; background:#091d2a; border:1px solid #1a3b50; border-radius:5px; cursor:pointer; }
    .mini-action:hover { color:var(--cyan); border-color:#34718e; }

    .lower-grid { display:grid; grid-template-columns: 1.45fr .78fr .72fr; gap:11px; height:170px; }
    .funnel-panel { padding:0; }
    .funnel-head { height:38px; padding:0 12px; display:flex; align-items:center; border-bottom:1px solid var(--line-soft); }
    .funnel-body { height:131px; display:grid; grid-template-columns: 1.25fr .78fr; }
    .funnel-list { padding:7px 12px 7px 14px; }
    .funnel-row { height:20px; display:grid; grid-template-columns:96px minmax(120px,1fr) 54px 42px; gap:6px; align-items:center; color:#9eb8c7; font-size:8px; cursor:pointer; }
    .funnel-row:hover { color:#fff; }
    .funnel-bar-wrap { height:13px; display:flex; justify-content:center; }
    .funnel-bar { height:100%; background:linear-gradient(90deg,#498aff,#24dfea); clip-path:polygon(4% 0,96% 0,90% 100%,10% 100%); box-shadow:0 0 10px rgba(33,223,242,.16); }
    .funnel-row:nth-child(2) .funnel-bar { background:linear-gradient(90deg,#409eea,#25cde8); }
    .funnel-row:nth-child(n+4) .funnel-bar { background:linear-gradient(90deg,#26cddc,#4dedb0); }
    .funnel-count { color:#e7f7fc; font-weight:650; text-align:right; }
    .funnel-rate { color:#7f9fae; text-align:right; }
    .repeat-card { margin:8px 9px 8px 3px; padding:11px; border:1px solid #1683a8; border-radius:9px; background:linear-gradient(145deg,rgba(8,47,65,.85),rgba(5,25,37,.85)); position:relative; overflow:hidden; }
    .repeat-card::after { content:""; position:absolute; inset:auto -30px -55px auto; width:130px; height:100px; background:radial-gradient(circle,rgba(33,223,242,.22),transparent 65%); }
    .repeat-number { font-size:20px; font-weight:730; }
    .repeat-number span { margin-left:6px; color:#b4ceda; font-size:9px; font-weight:550; }
    .repeat-delta { margin-top:7px; color:var(--green); font-size:12px; font-weight:700; }
    .repeat-caption { margin-top:3px; color:#7899aa; font-size:8px; }

    .ops-panel, .compliance-panel { display:flex; flex-direction:column; }
    .compact-head { height:38px; display:flex; align-items:center; padding:0 11px; border-bottom:1px solid var(--line-soft); }
    .compact-list { flex:1; }
    .ops-row { height:32px; display:grid; grid-template-columns:22px 1fr auto; align-items:center; padding:0 10px; border-bottom:1px solid rgba(52,107,137,.14); color:#b7ced9; font-size:9px; cursor:pointer; }
    .ops-row:hover { background:rgba(33,223,242,.04); }
    .ops-row svg { width:16px; height:16px; color:var(--cyan); }
    .ops-row.alert svg { color:var(--red); }
    .ops-row strong { color:white; font-size:10px; }
    .ops-good { color:var(--green) !important; font-size:8px !important; }
    .compliance-body { flex:1; display:grid; grid-template-columns:66px 1fr; gap:4px; padding:12px 10px 8px; }
    .shield-wrap { display:grid; place-items:start center; }
    .shield { width:48px; height:58px; filter:drop-shadow(0 0 10px rgba(33,223,242,.2)); }
    .compliance-copy { color:#c0d6e1; font-size:9px; line-height:1.45; }
    .check-line { display:flex; align-items:center; gap:6px; margin-top:5px; color:#9fbac8; font-size:8px; }
    .check-dot { width:13px; height:13px; display:grid; place-items:center; color:#052014; background:var(--green); border-radius:50%; font-size:8px; font-weight:900; }

    .activity-bar {
      grid-column:2;
      grid-row:3;
      min-width:0;
      display:flex;
      align-items:center;
      gap:20px;
      padding:0 14px;
      border-top:1px solid var(--line);
      color:#8f897f;
      background:rgba(3,14,23,.96);
      font-size:8px;
      overflow:hidden;
    }
    .activity-title { flex:0 0 auto; display:flex; align-items:center; gap:7px; color:#d4e7ef; font-weight:650; }
    .activity-track { display:flex; align-items:center; gap:0; min-width:0; flex:1; overflow:hidden; }
    .activity-item { flex:0 0 auto; display:flex; align-items:center; gap:8px; height:20px; padding:0 18px; border-left:1px solid var(--line-soft); white-space:nowrap; }
    .activity-time { color:#4f829c; }
    .activity-highlight { color:var(--cyan); }
    .demo-note { flex:0 0 auto; margin-left:auto; color:#58798b; white-space:nowrap; }

    .overlay {
      position:fixed;
      inset:0;
      display:grid;
      place-items:center;
      padding:18px;
      background:rgba(0,7,12,.7);
      backdrop-filter:blur(9px);
      z-index:100;
      opacity:0;
      pointer-events:none;
      transition:opacity .2s;
    }
    .overlay.open { opacity:1; pointer-events:auto; }
    .modal {
      width:min(720px, calc(100vw - 36px));
      max-height:min(780px, calc(100vh - 36px));
      display:flex;
      flex-direction:column;
      color:var(--text);
      background:linear-gradient(145deg,#0a1e2d,#04121d 68%);
      border:1px solid #2a536c;
      border-radius:14px;
      box-shadow:0 40px 100px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.03);
      overflow:hidden;
      transform:translateY(12px) scale(.985);
      transition:transform .24s var(--ease);
    }
    .overlay.open .modal { transform:none; }
    .modal-header { min-height:62px; display:flex; align-items:center; gap:12px; padding:0 18px; border-bottom:1px solid var(--line); }
    .modal-icon { width:36px; height:36px; display:grid; place-items:center; color:var(--cyan); background:rgba(33,223,242,.08); border:1px solid rgba(33,223,242,.22); border-radius:9px; }
    .modal-icon svg { width:19px; height:19px; }
    .modal-title { font-size:16px; font-weight:720; }
    .modal-kicker { margin-top:3px; color:#7396a9; font-size:9px; }
    .modal-close { margin-left:auto; }
    .modal-body { min-height:0; padding:17px 18px; overflow:auto; }
    .modal-footer { min-height:60px; display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:0 18px; border-top:1px solid var(--line); background:rgba(2,12,20,.42); }

    .drawer-shell { position:fixed; inset:0; background:rgba(0,7,12,.38); z-index:90; opacity:0; pointer-events:none; transition:opacity .2s; }
    .drawer-shell.open { opacity:1; pointer-events:auto; }
    .drawer {
      position:absolute;
      top:0;
      right:0;
      width:min(430px, 94vw);
      height:100%;
      display:flex;
      flex-direction:column;
      color:var(--text);
      background:linear-gradient(160deg,#0a1e2d,#04121c 65%);
      border-left:1px solid #2a536c;
      box-shadow:-34px 0 80px rgba(0,0,0,.48);
      transform:translateX(102%);
      transition:transform .28s var(--ease);
    }
    .drawer-shell.open .drawer { transform:none; }
    .drawer-header { min-height:68px; display:flex; align-items:center; gap:12px; padding:0 18px; border-bottom:1px solid var(--line); }
    .drawer-body { min-height:0; flex:1; padding:17px 18px; overflow:auto; }
    .drawer-footer { min-height:62px; display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:0 18px; border-top:1px solid var(--line); }

    .field-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .field { display:grid; gap:6px; }
    .field.full { grid-column:1/-1; }
    .field label { color:#8eacbc; font-size:9px; font-weight:650; }
    .field input, .field select, .field textarea {
      width:100%;
      color:#e8f7fc;
      background:#061721;
      border:1px solid #22465c;
      border-radius:7px;
      padding:0 10px;
    }
    .field input, .field select { height:38px; }
    .field textarea { min-height:92px; padding-top:10px; resize:vertical; }
    .field input::placeholder, .field textarea::placeholder { color:#4e7082; }
    .field-help { color:#58798b; font-size:8px; line-height:1.45; }
    .section-label { margin:2px 0 10px; color:#7499ac; font-size:8px; font-weight:750; text-transform:uppercase; letter-spacing:.12em; }
    .divider { height:1px; margin:16px 0; background:var(--line); }
    .stepper { display:flex; gap:6px; margin-bottom:15px; }
    .step { height:3px; flex:1; background:#17394d; border-radius:99px; }
    .step.active { background:var(--cyan); box-shadow:0 0 8px rgba(33,223,242,.35); }
    .review-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:15px; }
    .summary-box { padding:10px; background:rgba(9,32,46,.65); border:1px solid var(--line); border-radius:8px; }
    .summary-box span { display:block; color:#6d91a4; font-size:8px; }
    .summary-box strong { display:block; margin-top:4px; color:#edf9ff; font-size:12px; }

    .checklist { display:grid; gap:7px; }
    .review-check {
      display:grid;
      grid-template-columns:20px 1fr auto;
      gap:9px;
      align-items:center;
      min-height:44px;
      padding:8px 10px;
      background:rgba(8,29,43,.64);
      border:1px solid var(--line);
      border-radius:8px;
    }
    .review-check.warn { border-color:rgba(255,201,85,.34); background:rgba(65,48,15,.15); }
    .review-check.block { border-color:rgba(255,101,116,.42); background:rgba(69,16,28,.15); }
    .review-check input { accent-color:var(--cyan); }
    .check-copy strong { display:block; color:#dcecf4; font-size:10px; }
    .check-copy span { display:block; margin-top:3px; color:#7898aa; font-size:8px; line-height:1.35; }
    .check-state { color:var(--green); font-size:8px; font-weight:700; }
    .check-state.warn { color:var(--amber); }
    .check-state.block { color:var(--red); }
    .risk-banner { display:flex; align-items:flex-start; gap:10px; margin-bottom:13px; padding:11px; color:#d7e7ef; background:rgba(74,21,31,.23); border:1px solid rgba(255,101,116,.4); border-radius:8px; font-size:9px; line-height:1.5; }
    .risk-banner svg { flex:0 0 auto; width:18px; height:18px; color:var(--red); }

    .module-hero { margin:-17px -18px 16px; padding:21px 18px; background:linear-gradient(135deg,rgba(22,120,158,.16),rgba(8,28,42,.15)); border-bottom:1px solid var(--line); }
    .module-hero h2 { margin:0; font-size:21px; letter-spacing:-.04em; }
    .module-hero p { margin:7px 0 0; max-width:355px; color:#8baabb; font-size:10px; line-height:1.55; }
    .drawer-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
    .drawer-metric { padding:10px; background:#081b28; border:1px solid var(--line); border-radius:8px; }
    .drawer-metric span { color:#7193a6; font-size:8px; }
    .drawer-metric strong { display:block; margin-top:4px; color:white; font-size:16px; letter-spacing:-.03em; }
    .task-list { display:grid; gap:7px; }
    .task-row { min-height:48px; display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:9px; padding:8px 9px; background:rgba(7,25,37,.72); border:1px solid var(--line-soft); border-radius:8px; cursor:pointer; }
    .task-row:hover { border-color:#2d6682; }
    .task-icon { width:27px; height:27px; display:grid; place-items:center; color:var(--cyan); background:rgba(33,223,242,.07); border-radius:6px; }
    .task-icon svg { width:15px; height:15px; }
    .task-copy strong { display:block; color:#d9ebf3; font-size:9px; }
    .task-copy span { display:block; margin-top:3px; color:#6d8da0; font-size:8px; }
    .task-meta { color:#6d91a4; font-size:8px; }

    .command-modal { width:min(650px, calc(100vw - 32px)); align-self:start; margin-top:8vh; }
    .command-search { height:58px; display:flex; align-items:center; gap:10px; padding:0 15px; border-bottom:1px solid var(--line); }
    .command-search input { flex:1; height:42px; color:white; background:transparent; border:0; outline:0; font-size:14px; }
    .command-results { max-height:400px; padding:8px; overflow:auto; }
    .command-row { width:100%; min-height:48px; display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:10px; padding:7px 10px; color:#c8dce6; background:transparent; border:1px solid transparent; border-radius:8px; cursor:pointer; text-align:left; }
    .command-row:hover, .command-row.selected { background:rgba(33,223,242,.055); border-color:rgba(33,223,242,.18); }
    .command-row strong { display:block; font-size:10px; }
    .command-row span { display:block; margin-top:3px; color:#6c8da0; font-size:8px; }
    .command-key { color:#64889c; font-size:8px; }

    .toast-stack { position:fixed; right:16px; bottom:44px; z-index:160; display:grid; gap:8px; }
    .toast { width:310px; display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:9px; padding:11px; color:#dcecf3; background:#09202d; border:1px solid #2b627d; border-radius:9px; box-shadow:0 18px 44px rgba(0,0,0,.42); animation:toastIn .3s var(--ease); }
    @keyframes toastIn { from { opacity:0; transform:translateY(10px); } }
    .toast-icon { width:28px; height:28px; display:grid; place-items:center; color:#052016; background:var(--green); border-radius:7px; font-weight:900; }
    .toast strong { display:block; font-size:10px; }
    .toast span { display:block; margin-top:3px; color:#7898a9; font-size:8px; }
    .toast button { color:#6f91a4; background:transparent; border:0; cursor:pointer; }

    .mobile-menu, .mobile-search { display:none; }

    /* Full workspace views */
    .workspace {
      min-width: 1120px;
      display: grid;
      align-content: start;
      gap: 10px;
      padding-bottom: 4px;
    }
    .workspace[hidden], .dashboard[hidden] { display:none !important; }
    .workspace-head {
      min-height: 58px;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 0 2px;
    }
    .workspace-head-copy { min-width:0; }
    .workspace-eyebrow { color:var(--cyan); font-size:8px; font-weight:780; letter-spacing:.17em; text-transform:uppercase; }
    .workspace-title { margin:4px 0 0; color:#f4fbff; font-size:21px; line-height:1; font-weight:760; letter-spacing:-.035em; }
    .workspace-subtitle { margin-top:6px; color:#83a7ba; font-size:10px; }
    .workspace-meta { margin-left:auto; display:flex; align-items:center; gap:7px; }
    .ws-badge {
      height:25px; display:inline-flex; align-items:center; gap:6px; padding:0 9px;
      color:#9bc3d6; background:#071a28; border:1px solid #244b62; border-radius:6px;
      font-size:8px; font-weight:730; letter-spacing:.055em; text-transform:uppercase;
    }
    .ws-badge.good { color:var(--green); border-color:rgba(69,238,157,.28); background:rgba(19,78,60,.2); }
    .ws-badge.warn { color:var(--amber); border-color:rgba(255,201,85,.28); background:rgba(100,73,17,.17); }
    .ws-tabs { height:38px; display:flex; align-items:flex-end; gap:3px; padding:0 10px; border-bottom:1px solid var(--line); background:rgba(5,20,31,.72); border-radius:9px 9px 0 0; }
    .ws-tab { height:37px; padding:0 11px; color:#789bae; background:transparent; border:0; border-bottom:2px solid transparent; cursor:pointer; font-size:9px; font-weight:660; }
    .ws-tab:hover { color:#d9ecf4; }
    .ws-tab.active { color:#eaffff; border-color:var(--cyan); }
    .demo-ribbon {
      min-height:49px; display:flex; align-items:center; gap:11px; padding:9px 13px;
      color:#d8e7ee; background:linear-gradient(90deg,rgba(100,59,14,.29),rgba(42,26,12,.2));
      border:1px solid rgba(255,179,64,.43); border-radius:9px;
    }
    .demo-ribbon > [data-icon] { color:var(--amber); }
    .demo-ribbon strong { display:block; color:#fff; font-size:10px; }
    .demo-ribbon span { display:block; margin-top:3px; color:#a98f6f; font-size:8px; }
    .demo-ribbon .secondary-btn { margin-left:auto; flex:0 0 auto; }
    .workspace .panel { border-radius:9px; }
    .ws-panel-head { min-height:39px; display:flex; align-items:center; gap:8px; padding:0 11px; border-bottom:1px solid var(--line-soft); }
    .ws-panel-head strong { font-size:11px; letter-spacing:-.015em; }
    .ws-panel-head small { margin-left:auto; color:#688a9d; font-size:8px; }
    .source-line { display:flex; align-items:center; gap:5px; color:#66889b; font-size:7px; }
    .source-line i { width:5px; height:5px; border-radius:50%; background:var(--green); }

    /* Integration Control */
    .connector-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
    .connector-card { min-height:221px; position:relative; }
    .connector-card.attention { border-color:rgba(255,201,85,.36); }
    .connector-top { min-height:55px; display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid var(--line-soft); }
    .connector-mark { width:35px; height:35px; display:grid; place-items:center; flex:0 0 auto; border:1px solid #26536d; border-radius:8px; color:#fff; background:#0c2a40; font-size:15px; font-weight:820; box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
    .connector-mark.hostinger { color:#b494ff; background:linear-gradient(145deg,#4f2c9a,#171b40); }
    .connector-mark.cloudflare { color:#ff9c47; background:linear-gradient(145deg,#653414,#2a1e19); }
    .connector-mark.wordpress { color:#64baff; background:linear-gradient(145deg,#13507a,#10283a); }
    .connector-name { color:#fff; font-size:13px; font-weight:730; }
    .connector-role { margin-top:3px; color:#7399ac; font-size:8px; }
    .connector-state { margin-left:auto; min-width:92px; height:26px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 8px; color:var(--amber); background:#0a1c29; border:1px solid #315166; border-radius:6px; font-size:8px; }
    .connector-state::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 7px currentColor; }
    .connector-metrics { display:grid; grid-template-columns:repeat(4,1fr); padding:12px 9px 9px; }
    .connector-metric { min-width:0; min-height:64px; padding:0 8px; border-right:1px solid var(--line-soft); }
    .connector-metric:last-child { border:0; }
    .connector-metric span { display:block; min-height:20px; color:#7394a6; font-size:7px; line-height:1.35; }
    .connector-metric strong { display:block; margin-top:5px; color:#f2fbff; font-size:15px; letter-spacing:-.035em; overflow:hidden; text-overflow:ellipsis; }
    .connector-metric em { display:block; margin-top:5px; color:var(--green); font-size:7px; font-style:normal; }
    .connector-chart { display:grid; grid-template-columns:1fr 67px; gap:8px; align-items:end; margin:0 12px 8px; padding-top:9px; border-top:1px solid var(--line-soft); }
    .connector-chart svg { width:100%; height:42px; overflow:visible; }
    .connector-chart path.line { fill:none; stroke:var(--cyan); stroke-width:1.6; }
    .connector-chart path.fill { fill:rgba(33,223,242,.08); }
    .connector-score { color:#7b9aac; font-size:7px; text-align:right; }
    .connector-score strong { display:block; margin-bottom:3px; color:#fff; font-size:14px; }
    .connector-foot { min-height:34px; display:flex; align-items:center; padding:0 11px; color:#69899c; border-top:1px solid var(--line-soft); font-size:7px; }
    .connector-foot .ghost-btn { margin-left:auto; }
    .integration-mid { display:grid; grid-template-columns:1.16fr 1fr .82fr; gap:10px; height:229px; }
    .sync-table th { height:25px; }
    .sync-table td { height:30px; padding:0 8px; font-size:8px; }
    .flow-stack { padding:7px 10px; }
    .flow-row { height:34px; display:grid; grid-template-columns:21px 1fr 62px 54px; gap:7px; align-items:center; border-bottom:1px solid rgba(61,117,146,.14); color:#a7bfcb; font-size:8px; }
    .flow-row:last-child { border-bottom:0; }
    .flow-index { width:19px; height:19px; display:grid; place-items:center; color:var(--cyan); background:#092232; border:1px solid #1f506a; border-radius:5px; font-size:7px; font-weight:800; }
    .flow-row strong { color:#dfeff5; font-size:8px; }
    .flow-row span { color:#6f91a4; text-align:right; }
    .flow-row em { color:var(--green); font-style:normal; text-align:right; }
    .truth-map { padding:7px 10px; }
    .truth-row { height:27px; display:grid; grid-template-columns:1fr 14px 90px; align-items:center; gap:5px; border-bottom:1px solid rgba(61,117,146,.13); color:#a5bdca; font-size:8px; }
    .truth-row:last-child { border:0; }
    .truth-row b { color:#dfeff5; font-weight:640; }
    .truth-row i { color:var(--cyan); font-style:normal; text-align:center; }
    .truth-row span { color:#78a1b6; }
    .integration-bottom { display:grid; grid-template-columns:1.15fr 1fr; gap:10px; height:187px; }
    .permissions-list { padding:6px 10px; }
    .permission-row { min-height:30px; display:grid; grid-template-columns:92px 82px 1fr 88px; align-items:center; gap:8px; border-bottom:1px solid rgba(61,117,146,.13); color:#a8c0cc; font-size:8px; }
    .permission-row:last-child { border-bottom:0; }
    .permission-row strong { color:#e1f0f6; }
    .permission-row span:nth-child(2) { color:#84abc0; }
    .permission-row em { color:var(--amber); font-style:normal; text-align:right; }
    .integration-actions { padding:10px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
    .action-tile { min-height:79px; display:grid; grid-template-columns:34px 1fr 18px; align-items:center; gap:8px; padding:10px; color:#cfe4ee; background:#071c2a; border:1px solid #28516a; border-radius:8px; cursor:pointer; text-align:left; }
    .action-tile:hover { border-color:#3f88ab; background:#092434; }
    .action-tile.primary { background:linear-gradient(135deg,#1769e8,#009bfb); border-color:#54adff; color:#fff; }
    .action-tile [data-icon] { width:32px; height:32px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.22); border-radius:8px; }
    .action-tile strong { display:block; font-size:10px; }
    .action-tile span { display:block; margin-top:3px; color:#7fa5b9; font-size:7px; }
    .action-tile.primary span { color:#d8efff; }
    .integration-note { grid-column:1/-1; min-height:44px; display:flex; align-items:center; gap:8px; padding:8px 10px; color:#779caf; background:rgba(4,24,37,.64); border:1px solid var(--line); border-radius:7px; font-size:8px; line-height:1.45; }

    /* AI Social Command */
    .social-kpis { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
    .social-kpi { min-height:64px; padding:9px 10px; background:linear-gradient(145deg,#092033,#061722); border:1px solid var(--line); border-radius:8px; }
    .social-kpi span { color:#789aad; font-size:7px; }
    .social-kpi strong { display:block; margin-top:7px; color:#fff; font-size:17px; letter-spacing:-.035em; }
    .social-kpi em { display:block; margin-top:5px; color:var(--green); font-size:7px; font-style:normal; }
    .agent-strip { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; }
    .agent-card { min-height:48px; display:grid; grid-template-columns:27px 1fr; gap:8px; align-items:center; padding:7px 9px; background:#061926; border:1px solid var(--line); border-radius:8px; }
    .agent-icon { width:27px; height:27px; display:grid; place-items:center; color:var(--cyan); background:#092637; border:1px solid #20516b; border-radius:7px; }
    .agent-card strong { display:block; color:#dcecf3; font-size:8px; }
    .agent-card span { display:block; margin-top:3px; color:#65889c; font-size:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .account-strip { display:grid; grid-template-columns:repeat(9,1fr); gap:6px; padding:8px; }
    .platform-chip { min-width:0; min-height:50px; display:grid; grid-template-columns:27px 1fr; gap:6px; align-items:center; padding:6px; color:#aac4d2; background:#071b29; border:1px solid #183d53; border-radius:7px; cursor:pointer; text-align:left; }
    .platform-chip[aria-pressed="true"] { border-color:#2983a8; background:#09283a; box-shadow:inset 0 0 0 1px rgba(33,223,242,.1); }
    .platform-logo { width:27px; height:27px; display:grid; place-items:center; border-radius:7px; color:white; background:#146bd1; font-size:9px; font-weight:850; }
    .platform-logo.ig { background:linear-gradient(145deg,#f14c9b,#8746eb,#ef922f); }
    .platform-logo.fb { background:#287be4; }
    .platform-logo.threads { background:#111; }
    .platform-logo.tt { background:linear-gradient(145deg,#1ad3d9,#111 48%,#fa3f67); }
    .platform-logo.yt { background:#e7192c; }
    .platform-logo.x { background:#111; }
    .platform-logo.in { background:#1474a9; }
    .platform-logo.pin { background:#d3212c; }
    .platform-logo.gb { background:#357ae8; }
    .platform-chip strong { display:block; color:#e7f4fa; font-size:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .platform-chip small { display:block; margin-top:3px; color:var(--green); font-size:6px; }
    .social-main { display:grid; grid-template-columns:minmax(0,1.58fr) minmax(300px,.62fr); gap:10px; }
    .social-primary { min-width:0; display:grid; gap:10px; }
    .composer-body { padding:10px; }
    .brief-row { display:grid; grid-template-columns:minmax(0,1fr) 142px; gap:9px; }
    .ai-brief { width:100%; height:70px; resize:none; padding:10px 11px; color:#dcebf2; background:#061725; border:1px solid #28526b; border-radius:8px; line-height:1.45; font-size:9px; }
    .generate-box { display:flex; flex-direction:column; gap:7px; }
    .generate-box .primary-btn { flex:1; min-height:38px; }
    .generate-box .secondary-btn { min-height:27px; font-size:8px; }
    .composer-controls { margin-top:8px; display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:7px; }
    .compact-control { min-width:0; height:30px; padding:0 8px; color:#b7cfdb; background:#071a27; border:1px solid #244b62; border-radius:6px; font-size:8px; }
    .preview-strip { display:flex; gap:7px; margin-top:9px; padding-bottom:2px; overflow-x:auto; }
    .platform-preview { flex:0 0 173px; min-height:105px; display:grid; grid-template-rows:25px 1fr auto; background:#071b29; border:1px solid #1d4258; border-radius:7px; overflow:hidden; }
    .preview-head { display:flex; align-items:center; gap:6px; padding:0 7px; color:#d9eaf1; border-bottom:1px solid var(--line-soft); font-size:7px; font-weight:700; }
    .preview-head i { width:6px; height:6px; border-radius:50%; background:var(--green); }
    .preview-copy { padding:8px; color:#bed4df; font-size:7px; line-height:1.45; }
    .preview-copy strong { display:block; margin-bottom:4px; color:#fff; font-size:9px; }
    .preview-meta { padding:6px 8px; color:#618598; background:rgba(4,17,26,.55); font-size:6px; }
    .preview-meta b { color:var(--cyan); float:right; }
    .inbox-shell { min-height:226px; display:grid; grid-template-columns:207px minmax(0,1fr); }
    .inbox-list { border-right:1px solid var(--line); }
    .inbox-item { min-height:55px; display:grid; grid-template-columns:25px 1fr; gap:7px; padding:8px; border-bottom:1px solid rgba(59,116,146,.15); cursor:pointer; }
    .inbox-item:hover, .inbox-item.active { background:rgba(28,127,174,.12); }
    .inbox-item .platform-logo { width:25px; height:25px; font-size:8px; }
    .inbox-item strong { display:block; color:#dcebf2; font-size:8px; }
    .inbox-item span { display:block; margin-top:4px; color:#6d90a3; font-size:7px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .inbox-thread { min-width:0; display:grid; grid-template-rows:auto 1fr auto; padding:10px; }
    .thread-context { display:flex; align-items:center; gap:8px; color:#84a4b5; font-size:7px; }
    .thread-context strong { color:#e5f2f7; font-size:9px; }
    .message-bubble { align-self:start; max-width:82%; margin-top:9px; padding:9px 10px; color:#cfe1e9; background:#102b40; border:1px solid #244c65; border-radius:8px 8px 8px 2px; font-size:8px; line-height:1.45; }
    .ai-reply { align-self:end; margin-top:8px; padding:8px; background:rgba(6,42,58,.72); border:1px solid #19789d; border-radius:8px; }
    .ai-reply-head { display:flex; align-items:center; gap:6px; margin-bottom:6px; color:var(--cyan); font-size:7px; font-weight:700; }
    .ai-reply textarea { width:100%; height:46px; resize:none; padding:7px; color:#d6e8ef; background:#061725; border:1px solid #244f67; border-radius:6px; font-size:8px; line-height:1.35; }
    .reply-actions { margin-top:7px; display:flex; justify-content:flex-end; gap:6px; }
    .growth-panel { min-width:0; }
    .growth-body { padding:10px; }
    .growth-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
    .growth-kpi { min-height:56px; padding:8px; background:#0a2132; border-radius:6px; }
    .growth-kpi span { color:#7497aa; font-size:6px; }
    .growth-kpi strong { display:block; margin-top:6px; color:#fff; font-size:14px; }
    .growth-kpi em { display:block; margin-top:4px; color:var(--green); font-size:6px; font-style:normal; }
    .growth-chart { width:100%; height:104px; margin:7px 0 4px; }
    .growth-chart .grid { stroke:rgba(83,146,176,.14); }
    .growth-chart .followers { fill:none; stroke:#319cff; stroke-width:2; }
    .growth-chart .engagement { fill:none; stroke:#24e0d7; stroke-width:1.8; }
    .mini-section-title { margin:9px 0 6px; color:#d8e9f0; font-size:9px; font-weight:700; }
    .audience-row { height:24px; display:grid; grid-template-columns:98px 31px 1fr; gap:6px; align-items:center; color:#8facbc; font-size:7px; }
    .audience-row b { color:#d9eaf1; text-align:right; font-weight:620; }
    .bar-track { height:5px; background:#112f43; border-radius:9px; overflow:hidden; }
    .bar-track i { display:block; height:100%; background:linear-gradient(90deg,var(--brand),var(--cyan)); border-radius:9px; }
    .opportunity { min-height:33px; display:grid; grid-template-columns:19px 1fr auto; gap:7px; align-items:center; border-top:1px solid rgba(63,122,151,.15); font-size:7px; }
    .opportunity > i { width:18px; height:18px; display:grid; place-items:center; color:var(--cyan); background:#092536; border-radius:50%; font-style:normal; font-weight:800; }
    .opportunity strong { display:block; color:#cce0e9; font-size:7px; }
    .opportunity span { display:block; margin-top:2px; color:#65889c; }
    .opportunity button { color:var(--cyan); background:transparent; border:0; cursor:pointer; font-size:7px; }
    .autonomy-card { margin-top:8px; padding:9px; background:#081c2a; border:1px solid #244c62; border-radius:7px; }
    .autonomy-card select { width:100%; height:30px; margin-top:7px; padding:0 8px; color:#d8e8ef; background:#061724; border:1px solid #2a5269; border-radius:6px; font-size:8px; }
    .autonomy-copy { margin-top:6px; color:#7194a7; font-size:7px; line-height:1.4; }
    .human-gate { margin-top:8px; display:flex; align-items:center; gap:8px; padding:9px; color:#ffc2c8; background:rgba(92,22,32,.22); border:1px solid rgba(255,101,116,.38); border-radius:7px; font-size:8px; }
    .human-gate strong { display:block; color:var(--red); font-size:9px; }
    .human-gate span { display:block; margin-top:3px; color:#a97880; font-size:7px; }
    .social-bottom { display:grid; grid-template-columns:1.2fr .9fr; gap:10px; height:155px; }
    .growth-sprint { padding:9px 10px; display:grid; grid-template-columns:1.2fr .9fr; gap:10px; }
    .growth-sprint h3 { margin:0 0 4px; font-size:11px; }
    .growth-sprint p { margin:0; color:#7193a6; font-size:7px; line-height:1.5; }
    .safe-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
    .safe-tag { padding:4px 6px; color:#87afc2; background:#071925; border:1px solid #23485d; border-radius:5px; font-size:6px; }
    .safe-tag.exclude { color:#d6a0a6; border-color:rgba(255,101,116,.28); background:rgba(78,24,31,.16); }
    .sprint-metrics { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
    .sprint-metric { padding:7px; background:#092131; border-radius:6px; }
    .sprint-metric span { color:#66899d; font-size:6px; }
    .sprint-metric strong { display:block; margin-top:4px; color:#fff; font-size:12px; }
    .governance-matrix { padding:7px 10px; }
    .governance-row { min-height:30px; display:grid; grid-template-columns:86px 1fr; gap:8px; align-items:center; border-bottom:1px solid rgba(60,116,145,.13); font-size:7px; }
    .governance-row:last-child { border:0; }
    .governance-row strong { color:#cae0ea; }
    .governance-row span { color:#718fa1; line-height:1.35; }
    .governance-row.lock strong { color:var(--red); }

    .loading-dots { display:inline-flex; gap:3px; margin-left:5px; }
    .loading-dots i { width:3px; height:3px; border-radius:50%; background:currentColor; animation:pulse 1s infinite; }
    .loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}

    /* Black + champagne-gold visual system */
    html { color-scheme: dark; }
    body {
      background:
        radial-gradient(circle at 67% -14%, rgba(202, 151, 49, .16), transparent 34%),
        radial-gradient(circle at 103% 92%, rgba(145, 98, 25, .07), transparent 29%),
        linear-gradient(145deg, #020304 0%, #070706 52%, #020304 100%);
    }
    button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 2px solid var(--gold-bright);
      outline-offset: 3px;
      box-shadow: 0 0 0 5px rgba(217, 175, 87, .16);
    }
    ::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #7b5925, #d2aa55);
      border: 1px solid #2d2416;
    }
    .app-shell::after {
      opacity: .24;
      background-image:
        linear-gradient(rgba(217, 175, 87, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 175, 87, .065) 1px, transparent 1px);
      mask-image: radial-gradient(circle at 76% 0%, black 0, transparent 38%);
    }

    /* Brand and centered 3D command bar */
    .topbar {
      position: relative;
      grid-template-columns: 224px 1fr auto;
      gap: 14px;
      border-bottom-color: rgba(220, 177, 88, .20);
      background: rgba(4, 5, 6, .94);
      box-shadow: 0 12px 36px rgba(0, 0, 0, .34), inset 0 -1px rgba(255, 226, 154, .025);
    }
    .brand { width: 210px; gap: 0; }
    .brand-lockup { display: flex; align-items: center; gap: 9px; }
    .official-brand-mark {
      width: 40px;
      height: 40px;
      object-fit: contain;
      filter: brightness(0) saturate(100%) invert(81%) sepia(56%) saturate(584%) hue-rotate(358deg) brightness(99%) contrast(91%) drop-shadow(0 0 9px rgba(241, 212, 119, .28));
    }
    .brand-name .brand-dynamic { color: #f8f5ed; }
    .brand-name .brand-peptides { color: #e7c56c; }
    .brand-line { color: var(--gold-bright); }
    .brand-mark { display: none; }
    .header-context { display: none; }
    .header-actions { grid-column: 3; justify-self: end; }
    .command-trigger {
      position: absolute;
      left: 50%;
      top: 12px;
      width: clamp(360px, 43vw, 640px);
      height: 42px;
      padding: 0 16px;
      color: #beb9ae;
      background:
        linear-gradient(180deg, rgba(30, 30, 29, .98), rgba(9, 10, 10, .98)),
        #0a0b0c;
      border: 1px solid rgba(232, 195, 105, .48);
      border-radius: 999px;
      box-shadow:
        0 4px 0 rgba(73, 50, 17, .75),
        0 11px 26px rgba(0, 0, 0, .48),
        inset 0 1px 0 rgba(255, 241, 196, .14),
        inset 0 -8px 16px rgba(0, 0, 0, .20);
      transform: translateX(-50%);
    }
    .command-trigger:hover {
      color: #f5f0e5;
      background: linear-gradient(180deg, #232220, #0d0e0f);
      border-color: var(--gold-bright);
      box-shadow:
        0 3px 0 rgba(98, 68, 22, .82),
        0 13px 30px rgba(0, 0, 0, .52),
        0 0 22px rgba(217, 175, 87, .11),
        inset 0 1px 0 rgba(255, 241, 196, .20);
      transform: translateX(-50%) translateY(-1px);
    }
    .command-trigger:active {
      transform: translateX(-50%) translateY(2px);
      box-shadow: 0 1px 0 rgba(83, 56, 17, .85), inset 0 2px 8px rgba(0, 0, 0, .45);
    }
    .command-trigger [data-icon] { color: var(--gold-bright); }
    .key-hint {
      color: #cfc5aa;
      background: linear-gradient(180deg, #26231d, #11100d);
      border-color: rgba(232, 195, 105, .36);
      border-radius: 999px;
      box-shadow: inset 0 1px rgba(255, 239, 186, .08);
    }

    /* Uniform dimensional pill controls */
    .primary-btn, .secondary-btn, .ghost-btn {
      width: 148px;
      min-width: 148px;
      max-width: 148px;
      height: 36px;
      min-height: 36px;
      padding: 0 16px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 760;
      line-height: 1;
      white-space: nowrap;
    }
    .primary-btn {
      color: #151108;
      background: linear-gradient(145deg, #fff0b0 0%, #e7c263 43%, #b9822b 100%);
      border-color: #ffe59a;
      box-shadow:
        0 4px 0 #74501a,
        0 10px 24px rgba(211, 163, 62, .22),
        inset 0 1px 0 rgba(255, 255, 255, .58),
        inset 0 -6px 10px rgba(104, 65, 8, .12);
      text-shadow: 0 1px rgba(255, 246, 211, .42);
    }
    .primary-btn:hover {
      transform: translateY(-1px);
      box-shadow:
        0 4px 0 #74501a,
        0 13px 28px rgba(211, 163, 62, .30),
        0 0 22px rgba(239, 201, 104, .14),
        inset 0 1px 0 rgba(255, 255, 255, .65);
    }
    .primary-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #604113, inset 0 3px 9px rgba(90, 55, 5, .22); }
    .primary-btn:disabled { color: #76694d; background: linear-gradient(180deg, #3a352a, #211f1a); border-color: #594c31; box-shadow: none; }
    .secondary-btn, .ghost-btn {
      color: var(--gold-bright);
      background: linear-gradient(180deg, #1a1a19, #090a0b);
      border: 1px solid rgba(232, 193, 105, .46);
      box-shadow:
        0 3px 0 #382814,
        0 8px 18px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 239, 190, .10);
    }
    .secondary-btn:hover, .ghost-btn:hover {
      color: #fff1bd;
      background: linear-gradient(180deg, #25231e, #0d0e0e);
      border-color: var(--gold-bright);
      box-shadow: 0 3px 0 #493418, 0 9px 22px rgba(0, 0, 0, .4), 0 0 16px rgba(217, 175, 87, .10);
    }
    .secondary-btn:active, .ghost-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #382814, inset 0 2px 8px rgba(0, 0, 0, .44); }
    .icon-btn, .mini-action {
      color: #d9d3c8;
      background: linear-gradient(180deg, #20201f, #0a0b0c);
      border: 1px solid rgba(222, 180, 91, .30);
      border-radius: 50%;
      box-shadow: 0 3px 0 #2d2112, 0 7px 16px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 239, 190, .09);
    }
    .icon-btn { width: 36px; height: 36px; }
    .mini-action { width: 28px; height: 28px; }
    .icon-btn:hover, .mini-action:hover { color: var(--gold-pale); border-color: var(--gold); background: linear-gradient(180deg, #2a271f, #101110); }
    .avatar {
      color: #191309;
      background: linear-gradient(145deg, #f7dfa1, #bc8730);
      border-color: #f1cf72;
      box-shadow: 0 3px 0 #604315, 0 8px 18px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .48);
    }
    .range-toggle {
      padding: 3px;
      background: #070808;
      border-color: rgba(220, 177, 88, .25);
      border-radius: 999px;
      box-shadow: inset 0 2px 7px rgba(0, 0, 0, .62), 0 1px rgba(255, 229, 160, .035);
    }
    .range-btn {
      height: 28px;
      min-width: 56px;
      color: #9d988e;
      border-radius: 999px;
    }
    .range-btn.active {
      color: #171108;
      background: linear-gradient(145deg, #f8dda0, #c9963d);
      box-shadow: 0 2px 0 #674617, inset 0 1px rgba(255, 255, 255, .48);
    }

    /* Matte black chrome and premium surfaces */
    .sidebar, .activity-bar {
      background: rgba(4, 5, 6, .95);
      border-color: rgba(220, 177, 88, .17);
    }
    .sidebar-proof { background: rgba(8, 8, 8, .96); border-color: var(--line); color: #d8d4ca; }
    .nav-label { color: #817b70; }
    .nav-item {
      height: 36px;
      color: #bdb8ae;
      border-radius: 999px;
      box-shadow: inset 0 1px rgba(255, 255, 255, .018);
    }
    .nav-item:hover { color: #fff8e8; background: rgba(217, 175, 87, .065); }
    .nav-item.active {
      color: #fff7de;
      background: linear-gradient(90deg, rgba(213, 168, 72, .19), rgba(213, 168, 72, .035));
      border-color: rgba(224, 184, 96, .24);
      box-shadow: inset 0 1px rgba(255, 239, 190, .05), 0 6px 14px rgba(0, 0, 0, .2);
    }
    .nav-item.active::before { background: var(--gold-bright); box-shadow: 0 0 11px rgba(241, 212, 119, .6); }
    .nav-count, .activity-time, .demo-note { color: var(--faint); }
    .nav-item.active .nav-count, .activity-highlight { color: var(--gold-bright); }
    .activity-title { color: #ded9cf; }

    .panel, .metric-card, .connector-card, .social-kpi, .agent-card {
      background: linear-gradient(145deg, rgba(17, 18, 19, .985), rgba(7, 8, 9, .985));
      border-color: var(--line);
      box-shadow: inset 0 1px 0 rgba(255, 239, 190, .025), 0 12px 30px rgba(0, 0, 0, .16);
    }
    .panel.clickable:hover, .metric-card.clickable:hover {
      border-color: rgba(241, 212, 119, .46);
      box-shadow: 0 16px 32px rgba(0, 0, 0, .30), 0 0 18px rgba(217, 175, 87, .055);
    }
    .metric-card::after { background: radial-gradient(circle, rgba(217, 175, 87, .13), transparent 67%); }
    .metric-label, .source-title, .workspace-subtitle, .connector-role, .panel-subtitle { color: #aaa59b; }
    .metric-delta span, .visitor-number span, .event-value span { color: #817c73; }
    .chart-grid line, .growth-chart .grid, .map-grid { stroke: rgba(217, 175, 87, .13); }
    .chart-label { fill: #8c877e; }
    #sparkFade stop:first-child, #revenueFade stop:first-child { stop-color: var(--gold-bright); }
    #sparkFade stop:last-child, #revenueFade stop:last-child { stop-color: var(--gold-deep); }
    .sparkline .line, #revenueLine { stroke: var(--gold-bright); filter: drop-shadow(0 0 5px rgba(241, 212, 119, .42)); }
    #spendLine { stroke: #c8b88f; }
    .chart-legend { color: #b6b0a5; }
    .chart-tooltip {
      color: #ddd7cd;
      background: #090a0b;
      border-color: rgba(232, 193, 105, .42);
      box-shadow: var(--shadow), inset 0 1px rgba(255, 239, 190, .05);
    }
    .map-outline { fill: rgba(188, 139, 52, .10); stroke: #a77a2f; }
    .map-ping { fill: var(--gold-bright); filter: drop-shadow(0 0 6px rgba(241, 212, 119, .8)); }
    .live-status, .source-row, .geo-list { color: #aaa59b; }
    .source-row strong, .geo-list strong { color: #e6e1d8; }
    .source-row:nth-child(2) .source-dot { background: #ffe5a0 !important; }
    .source-row:nth-child(3) .source-dot { background: #e8c56c !important; }
    .source-row:nth-child(4) .source-dot { background: #c69a49 !important; }
    .source-row:nth-child(5) .source-dot { background: #9c7636 !important; }
    .source-row:nth-child(6) .source-dot { background: #d8c7a0 !important; }
    .source-row:nth-child(7) .source-dot { background: #746a58 !important; }
    th { color: #918b80; background: rgba(16, 16, 15, .86); }
    td { color: #ccc7bd; border-bottom-color: rgba(220, 177, 88, .09); }
    tbody tr:hover { background: rgba(217, 175, 87, .045); }
    .channel-icon { color: var(--gold-bright); }
    .channel-icon.email { color: #d9af57; }
    .channel-icon.sms { color: var(--green); }
    .channel-icon.affiliate { color: #c8b88f; }
    .funnel-row { color: #aaa59b; }
    .funnel-count { color: #ece7dd; }
    .funnel-rate { color: #817c72; }
    .funnel-bar { background: linear-gradient(90deg, #9b6f28, #f1d477); box-shadow: 0 0 10px rgba(217, 175, 87, .18); }
    .funnel-row:nth-child(2) .funnel-bar { background: linear-gradient(90deg, #a97a2f, #e7c46b); }
    .funnel-row:nth-child(n+4) .funnel-bar { background: linear-gradient(90deg, #76531f, #c8a14f); }
    .repeat-card {
      background: linear-gradient(145deg, rgba(34, 29, 19, .92), rgba(9, 9, 9, .96));
      border-color: rgba(224, 184, 96, .38);
      box-shadow: inset 0 1px rgba(255, 239, 190, .04);
    }
    .repeat-card::after { background: radial-gradient(circle, rgba(217, 175, 87, .22), transparent 65%); }
    .repeat-number span, .repeat-caption { color: #9a9489; }
    .ops-row { color: #bdb8ae; border-bottom-color: rgba(220, 177, 88, .09); }
    .ops-row:hover { background: rgba(217, 175, 87, .045); }
    .compliance-copy, .check-line { color: #aaa59b; }
    .shield { filter: drop-shadow(0 0 10px rgba(217, 175, 87, .22)); }

    /* Forms, overlays, drawers, command palette, and notifications */
    .overlay, .drawer-shell { background: rgba(0, 0, 0, .74); }
    .modal, .drawer {
      background: linear-gradient(145deg, #141413, #060707 68%);
      border-color: rgba(232, 193, 105, .38);
      box-shadow: 0 40px 100px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 239, 190, .045);
    }
    .modal-icon {
      color: var(--gold-bright);
      background: rgba(217, 175, 87, .08);
      border-color: rgba(217, 175, 87, .25);
    }
    .modal-kicker, .field label, .field-help, .section-label { color: #928c81; }
    .modal-footer { background: rgba(0, 0, 0, .28); }
    .field input, .field select, .field textarea, .select-compact, .ai-brief, .compact-control, .ai-reply textarea, .autonomy-card select {
      color: #ede8de;
      background: linear-gradient(180deg, #111211, #080909);
      border-color: rgba(220, 177, 88, .28);
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 239, 190, .025);
    }
    .field input::placeholder, .field textarea::placeholder, .ai-brief::placeholder { color: #68635b; }
    .step { background: #352c1e; }
    .step.active { background: var(--gold-bright); box-shadow: 0 0 8px rgba(241, 212, 119, .36); }
    .summary-box, .review-check, .drawer-metric, .task-row {
      background: rgba(13, 14, 14, .82);
      border-color: var(--line-soft);
    }
    .summary-box span, .task-meta { color: #858077; }
    .summary-box strong, .check-copy strong, .task-copy strong { color: #eee9df; }
    .check-copy span, .task-copy span { color: #8c877e; }
    .review-check.warn { border-color: rgba(240, 169, 66, .36); background: rgba(94, 62, 16, .16); }
    .review-check.block { border-color: rgba(255, 102, 120, .42); background: rgba(69, 16, 28, .15); }
    .module-hero { background: linear-gradient(135deg, rgba(188, 139, 52, .16), rgba(16, 15, 12, .22)); }
    .module-hero p { color: #a39e94; }
    .task-row:hover { border-color: rgba(232, 193, 105, .38); background: rgba(217, 175, 87, .035); }
    .task-icon { color: var(--gold-bright); background: rgba(217, 175, 87, .075); }
    .command-modal { border-radius: 18px; }
    .command-search {
      height: 48px;
      margin: 10px 12px 2px;
      padding: 0 14px;
      background: linear-gradient(180deg, #1b1b19, #090a0a);
      border: 1px solid rgba(232, 193, 105, .38);
      border-radius: 999px;
      box-shadow: 0 3px 0 #352613, 0 9px 20px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 239, 190, .09);
    }
    .command-search input { height: 44px; padding: 0 4px; border-radius: 999px; }
    .command-search input:focus-visible { outline: 0; box-shadow: none; }
    .command-row {
      color: #d3cec4;
      border-radius: 999px;
    }
    .command-row:hover, .command-row.selected { background: rgba(217, 175, 87, .075); border-color: rgba(217, 175, 87, .22); }
    .command-row span, .command-key { color: #817c72; }
    .toast {
      color: #e9e4db;
      background: linear-gradient(145deg, #171716, #090a0a);
      border-color: rgba(232, 193, 105, .36);
      border-radius: 14px;
      box-shadow: 0 18px 44px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 239, 190, .04);
    }
    .toast span, .toast button { color: #8f897f; }

    /* Integration workspace */
    .workspace-eyebrow { color: var(--gold-bright); }
    .workspace-title { color: #f7f3ea; }
    .ws-badge {
      color: #c7bda5;
      background: #0b0c0c;
      border-color: rgba(220, 177, 88, .25);
      border-radius: 999px;
    }
    .ws-tabs {
      align-items: center;
      gap: 6px;
      background: rgba(7, 8, 8, .82);
      border-color: var(--line);
      border-radius: 14px 14px 0 0;
    }
    .ws-tab {
      height: 28px;
      padding: 0 13px;
      color: #8e897f;
      border: 1px solid transparent;
      border-radius: 999px;
    }
    .ws-tab:hover { color: #eee5ce; background: rgba(217, 175, 87, .045); }
    .ws-tab.active {
      color: #161108;
      background: linear-gradient(145deg, #f6dda0, #c89438);
      border-color: #f7d77d;
      box-shadow: 0 2px 0 #674617, inset 0 1px rgba(255, 255, 255, .45);
    }
    .demo-ribbon { color: #ddd5c6; background: linear-gradient(90deg, rgba(99, 64, 14, .26), rgba(26, 21, 13, .28)); border-color: rgba(240, 169, 66, .43); }
    .demo-ribbon span { color: #b6a280; }
    .ws-panel-head small, .source-line { color: #817b71; }
    .connector-mark { background: #121313; border-color: rgba(220, 177, 88, .22); }
    .connector-name, .connector-metric strong, .connector-score strong { color: #f2eee5; }
    .connector-state {
      width: 126px;
      min-width: 126px;
      height: 36px;
      padding: 0 12px;
      background: linear-gradient(180deg, #1a1916, #090a0a);
      border-color: rgba(240, 169, 66, .42);
      border-radius: 999px;
      box-shadow: 0 3px 0 #382814, 0 8px 18px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 239, 190, .09);
    }
    .connector-metric span, .connector-score, .connector-foot { color: #817c72; }
    .connector-chart path.line { stroke: var(--gold-bright); filter: drop-shadow(0 0 3px rgba(241, 212, 119, .25)); }
    .connector-chart path.fill { fill: rgba(217, 175, 87, .10); }
    .flow-row, .truth-row, .permission-row { color: #aca79d; border-color: rgba(220, 177, 88, .09); }
    .flow-index {
      color: var(--gold-bright);
      background: #11100d;
      border-color: rgba(220, 177, 88, .30);
      border-radius: 50%;
    }
    .flow-row strong, .truth-row b, .permission-row strong { color: #e3ded5; }
    .flow-row span, .truth-row span, .permission-row span:nth-child(2) { color: #888278; }
    .action-tile {
      color: #d8d2c7;
      background: linear-gradient(180deg, #1a1a19, #090a0a);
      border-color: rgba(220, 177, 88, .30);
      border-radius: 999px;
      box-shadow: 0 4px 0 #2f2314, 0 9px 20px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 239, 190, .08);
    }
    .action-tile:hover { border-color: var(--gold-bright); background: linear-gradient(180deg, #25231f, #0d0e0e); }
    .action-tile.primary {
      color: #151108;
      background: linear-gradient(145deg, #fff0b0, #e4bd5b 46%, #b47d29);
      border-color: #ffe59a;
      box-shadow: 0 4px 0 #74501a, 0 10px 24px rgba(211, 163, 62, .22), inset 0 1px rgba(255, 255, 255, .55);
    }
    .action-tile span { color: #918b81; }
    .action-tile.primary span { color: #49350f; }
    .integration-note { color: #999388; background: rgba(13, 13, 12, .72); }

    /* AI Social workspace */
    .social-kpi span, .agent-card span { color: #817b72; }
    .agent-icon {
      color: var(--gold-bright);
      background: #11100d;
      border-color: rgba(220, 177, 88, .30);
      border-radius: 50%;
    }
    .agent-card strong { color: #ddd8cf; }
    .platform-chip {
      color: #c0baaf;
      background: linear-gradient(180deg, #141514, #080909);
      border-color: rgba(220, 177, 88, .15);
      border-radius: 999px;
      box-shadow: 0 3px 0 #231b10, inset 0 1px rgba(255, 255, 255, .035);
    }
    .platform-chip[aria-pressed="true"] {
      color: #f8f1dd;
      border-color: rgba(241, 212, 119, .52);
      background: linear-gradient(180deg, #27231a, #10100e);
      box-shadow: 0 3px 0 #4d3515, 0 0 15px rgba(217, 175, 87, .09), inset 0 1px rgba(255, 239, 190, .11);
    }
    .platform-chip strong { color: #eee9df; }
    .platform-preview, .message-bubble, .growth-kpi, .autonomy-card, .safe-tag, .sprint-metric {
      background: #0d0e0e;
      border-color: var(--line-soft);
    }
    .preview-head, .inbox-item strong, .thread-context strong, .mini-section-title, .opportunity strong, .governance-row strong { color: #ded9cf; }
    .preview-copy, .message-bubble { color: #bbb5aa; }
    .preview-meta { color: #79736a; background: rgba(0, 0, 0, .24); }
    .inbox-item { border-color: rgba(220, 177, 88, .09); }
    .inbox-item:hover, .inbox-item.active { background: rgba(217, 175, 87, .065); }
    .inbox-item span, .thread-context, .growth-kpi span, .audience-row, .opportunity span, .autonomy-copy, .growth-sprint p, .sprint-metric span, .governance-row span { color: #89837a; }
    .message-bubble { border-color: rgba(220, 177, 88, .18); }
    .ai-reply { background: rgba(34, 28, 17, .78); border-color: rgba(217, 175, 87, .36); }
    .ai-reply-head { color: var(--gold-bright); }
    .growth-chart .followers { stroke: var(--gold-bright); }
    .growth-chart .engagement { stroke: #c8b88f; }
    .bar-track { background: #28231a; }
    .bar-track i { background: linear-gradient(90deg, #9b6f28, #f1d477); }
    .opportunity { border-color: rgba(220, 177, 88, .10); }
    .opportunity > i { color: var(--gold-bright); background: #18150f; }
    .opportunity button {
      width: 90px;
      min-width: 90px;
      height: 30px;
      color: var(--gold-bright);
      background: linear-gradient(180deg, #1b1a17, #090a0a);
      border: 1px solid rgba(232, 193, 105, .38);
      border-radius: 999px;
      box-shadow: 0 2px 0 #382814, 0 6px 14px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 239, 190, .08);
      font-size: 7px;
      font-weight: 760;
    }
    .autonomy-card { border-color: rgba(220, 177, 88, .20); }
    .safe-tag { color: #aaa398; }
    .sprint-metric { box-shadow: inset 0 1px rgba(255, 239, 190, .025); }
    .governance-row { border-color: rgba(220, 177, 88, .09); }

    /* Runtime-injected content follows the same palette */
    .modal-body p { color: #aaa59c !important; }
    .modal-body svg[style] { background: rgba(10, 10, 9, .72) !important; }
    .modal-body svg path[stroke="#21dff2"] { stroke: var(--gold-bright) !important; }
    .modal-body > div[style*="background:#071925"] { color: #bbb5aa !important; background: #0d0e0e !important; }
    .risk-banner[style*="14,55,72"] {
      background: rgba(63, 49, 22, .24) !important;
      border-color: rgba(217, 175, 87, .32) !important;
    }
    .risk-banner[style*="14,55,72"] svg { color: var(--gold-bright); }

    /* Consistent button geometry by interface context */
    .generate-box .primary-btn,
    .generate-box .secondary-btn {
      width: 148px;
      min-width: 148px;
      max-width: 148px;
      height: 36px;
      min-height: 36px;
      flex: 0 0 36px;
    }
    .ai-brief { height: 79px; }
    .connector-foot { min-height: 48px; }
    .modal-footer .primary-btn,
    .modal-footer .secondary-btn {
      width: 210px;
      min-width: 210px;
      max-width: 210px;
    }
    .event-label, .activity-bar { color: #8f897f; }

    @media (max-width: 1160px) {
      .topbar { grid-template-columns: 218px minmax(240px,1fr) auto; }
      .header-context { display:none; }
      .dashboard { min-width: 1010px; }
      .brand-name { font-size:14px; }
      .workspace { min-width:1040px; }
    }

    @media (max-width: 760px) {
      body { overflow:auto; }
      .app-shell { min-height:100vh; height:auto; display:block; }
      .topbar { position:sticky; top:0; height:58px; grid-template-columns:1fr auto; padding:0 10px; }
      .brand-mark { width:31px; height:35px; }
      .brand-name { font-size:12px; }
      .brand-line { font-size:6px; }
      .command-trigger, .header-context, .header-actions .primary-btn, .header-actions .avatar { display:none; }
      .mobile-menu, .mobile-search { display:inline-flex; }
      .sidebar { position:fixed; inset:58px auto 0 0; width:190px; transform:translateX(-102%); transition:transform .25s var(--ease); z-index:80; box-shadow:25px 0 60px rgba(0,0,0,.5); }
      .sidebar.open { transform:none; }
      .main { padding:9px; overflow:auto; }
      .dashboard { min-width:0; display:block; }
      .workspace { min-width:0; display:block; }
      .workspace > * { margin-bottom:9px; }
      .workspace-head { align-items:flex-start; padding-top:8px; flex-wrap:wrap; }
      .workspace-meta { width:100%; margin-left:0; flex-wrap:wrap; }
      .connector-grid, .integration-mid, .integration-bottom, .social-main, .social-bottom { display:block; height:auto; }
      .connector-card, .integration-mid > .panel, .integration-bottom > .panel, .social-primary > .panel, .growth-panel, .social-bottom > .panel { margin-bottom:9px; }
      .social-kpis { grid-template-columns:repeat(2,1fr); }
      .agent-strip { grid-template-columns:1fr 1fr; }
      .account-strip { grid-template-columns:repeat(3,1fr); }
      .brief-row, .composer-controls { grid-template-columns:1fr; }
      .inbox-shell { grid-template-columns:1fr; }
      .inbox-list { border-right:0; border-bottom:1px solid var(--line); }
      .permission-row { grid-template-columns:80px 1fr; padding:5px 0; }
      .permission-row span:nth-child(3), .permission-row em { display:none; }
      .metrics-grid { grid-template-columns:1fr 1fr; }
      .metric-card { height:102px; margin-bottom:9px; grid-template-columns:1fr 72px; }
      .metric-value { font-size:21px; }
      .primary-grid, .tables-grid, .lower-grid { height:auto; display:block; }
      .panel { margin-bottom:9px; }
      .chart-panel { height:370px; }
      .chart-panel .panel-header { height:82px; align-items:flex-start; flex-wrap:wrap; padding:10px 12px 8px; }
      .chart-panel .panel-header-actions { width:100%; margin-left:0; justify-content:space-between; }
      .chart-panel .range-toggle { flex:1; }
      .chart-panel .range-btn { flex:1; }
      .chart-panel .select-compact { flex:0 0 112px; }
      .chart-panel .chart-wrap { height:calc(100% - 82px); }
      .live-panel { height:320px; }
      .table-panel { height:260px; }
      .funnel-panel, .ops-panel, .compliance-panel { height:190px; }
      .activity-bar { display:none; }
      .live-body { grid-template-columns:1fr 1.2fr; }
      .funnel-body { grid-template-columns:1fr; }
      .repeat-card { display:none; }
      .topbar .icon-btn { display:inline-flex; }
      .generate-box .primary-btn, .generate-box .secondary-btn { width:100%; min-width:100%; max-width:100%; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
    }
