      :root {
        color-scheme: light;
        --bg: #f4f6f8;
        --surface: #ffffff;
        --surface-soft: #f8fafc;
        --line: #d9e0e8;
        --line-strong: #c8d2dc;
        --ink: #17212b;
        --muted: #667789;
        --accent: #0f766e;
        --accent-weak: #d9f3ef;
        --blue: #2563eb;
        --blue-weak: #e4ecff;
        --warn: #b45309;
        --warn-weak: #fff1d8;
        --bad: #b42318;
        --bad-weak: #ffe4e0;
        --good: #16803c;
        --good-weak: #dff6e8;
        --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        min-width: 1120px;
        background: var(--bg);
        color: var(--ink);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
        font-size: 14px;
        letter-spacing: 0;
      }

      button,
      input,
      select {
        font: inherit;
      }

      button {
        height: 34px;
        border: 1px solid var(--accent);
        border-radius: 6px;
        background: var(--accent);
        color: #fff;
        padding: 0 12px;
        cursor: pointer;
        white-space: nowrap;
      }

      button.secondary {
        background: #fff;
        color: var(--accent);
      }

      button.neutral {
        border-color: var(--line-strong);
        background: #fff;
        color: var(--ink);
      }

      button.danger {
        border-color: var(--bad);
        background: #fff;
        color: var(--bad);
      }

      button:disabled {
        cursor: not-allowed;
        opacity: 0.55;
      }

      input,
      select {
        height: 34px;
        border: 1px solid var(--line-strong);
        border-radius: 6px;
        background: #fff;
        color: var(--ink);
        padding: 0 10px;
      }

      input[type="file"] {
        height: auto;
        max-width: 100%;
        padding: 7px;
      }

      input[type="file"]::file-selector-button {
        height: 30px;
        margin-right: 10px;
        border: 1px solid var(--line-strong);
        border-radius: 6px;
        background: var(--surface-soft);
        color: var(--ink);
      }

      .app-shell {
        display: grid;
        grid-template-columns: 238px minmax(860px, 1fr);
        min-height: 100vh;
      }

      .sidebar {
        background: #0f1f2e;
        color: #d8e3ee;
        padding: 18px 14px;
      }

      .brand {
        display: grid;
        gap: 4px;
        padding: 6px 10px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      }

      .brand-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
      }

      .brand-subtitle {
        font-size: 12px;
        color: #8fa3b8;
      }

      .nav {
        display: grid;
        gap: 6px;
        margin-top: 18px;
      }

      .nav button {
        width: 100%;
        height: 38px;
        justify-content: flex-start;
        border: 0;
        background: transparent;
        color: #c8d6e3;
        text-align: left;
        padding: 0 10px;
      }

      .nav button.active,
      .nav button:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
      }

      .sidebar-status {
        display: grid;
        gap: 10px;
        margin-top: 22px;
        padding: 12px 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
      }

      .main {
        display: grid;
        grid-template-rows: 64px 1fr;
        min-width: 0;
      }

      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 22px;
        border-bottom: 1px solid var(--line);
        background: #fff;
      }

      .page-title {
        font-size: 18px;
        font-weight: 700;
      }

      .page-subtitle {
        margin-top: 2px;
        color: var(--muted);
        font-size: 12px;
      }

      .top-actions {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .content {
        padding: 18px 22px 72px;
        overflow: auto;
      }

      .view {
        display: none;
        gap: 16px;
      }

      .view.active {
        display: grid;
      }

      .metrics {
        display: grid;
        grid-template-columns: repeat(6, minmax(130px, 1fr));
        gap: 12px;
      }

      .data-context {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
      }

      .data-context-main,
      .data-context-meta {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .date-filter,
      .segment-control {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }

      .date-filter label {
        color: var(--muted);
        font-size: 12px;
      }

      .date-filter input {
        width: 142px;
      }

      .segment-control button {
        border-color: var(--line-strong);
        background: #fff;
        color: var(--ink);
      }

      .segment-control button.active {
        border-color: var(--accent);
        background: var(--accent-weak);
        color: var(--accent);
      }

      .campaign-name {
        display: grid;
        gap: 3px;
        min-width: 150px;
      }

      .trend-chart {
        display: flex;
        align-items: end;
        gap: 6px;
        min-height: 210px;
        padding: 18px 8px 8px;
        overflow-x: auto;
      }

      .trend-column {
        display: grid;
        grid-template-rows: 160px 22px;
        gap: 6px;
        min-width: 30px;
        flex: 1 0 30px;
      }

      .trend-bars {
        display: flex;
        align-items: end;
        justify-content: center;
        gap: 3px;
        height: 160px;
        border-bottom: 1px solid var(--line);
      }

      .trend-bar {
        width: 8px;
        min-height: 2px;
        border-radius: 3px 3px 0 0;
      }

      .trend-bar.cost {
        background: var(--blue);
      }

      .trend-bar.revenue {
        background: var(--good);
      }

      .trend-label {
        overflow: hidden;
        color: var(--muted);
        font-size: 10px;
        text-align: center;
        white-space: nowrap;
      }

      .legend {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--muted);
        font-size: 12px;
      }

      .legend i {
        width: 9px;
        height: 9px;
        border-radius: 2px;
        display: inline-block;
        margin-right: 4px;
      }

      .metric {
        min-height: 92px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        padding: 13px 14px;
        box-shadow: var(--shadow);
      }

      .metric-label {
        color: var(--muted);
        font-size: 12px;
      }

      .metric-value {
        margin-top: 8px;
        font-size: 24px;
        font-weight: 750;
      }

      .metric-foot {
        margin-top: 8px;
        color: var(--muted);
        font-size: 12px;
      }

      .band {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow);
      }

      .band-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 54px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
      }

      .band-title {
        font-weight: 700;
      }

      .toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
      }

      .band-body {
        padding: 14px;
      }

      .split {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 16px;
      }

      .table-wrap {
        overflow: auto;
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      th,
      td {
        height: 42px;
        border-bottom: 1px solid var(--line);
        padding: 9px 10px;
        text-align: left;
        vertical-align: top;
      }

      th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #edf2f7;
        color: #3b4a5a;
        font-size: 12px;
        font-weight: 700;
      }

      td {
        font-size: 13px;
      }

      tr:last-child td {
        border-bottom: 0;
      }

      code {
        color: #0f4f4a;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        word-break: break-all;
      }

      .muted {
        color: var(--muted);
      }

      .small {
        font-size: 12px;
      }

      .pill {
        display: inline-flex;
        align-items: center;
        height: 22px;
        border-radius: 999px;
        padding: 0 8px;
        background: var(--surface-soft);
        color: #3b4a5a;
        font-size: 12px;
        white-space: nowrap;
      }

      .pill.good {
        background: var(--good-weak);
        color: var(--good);
      }

      .pill.warn {
        background: var(--warn-weak);
        color: var(--warn);
      }

      .pill.bad {
        background: var(--bad-weak);
        color: var(--bad);
      }

      .pill.blue {
        background: var(--blue-weak);
        color: var(--blue);
      }

      .stack {
        display: grid;
        gap: 12px;
      }

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

      .field {
        display: grid;
        gap: 6px;
      }

      .field label {
        color: var(--muted);
        font-size: 12px;
      }

      .message {
        min-height: 20px;
        color: var(--muted);
        font-size: 12px;
      }

      .empty {
        padding: 22px;
        color: var(--muted);
        text-align: center;
      }

      .hidden { display: none !important; }

      .api-search {
        width: 320px;
      }
      .site-records {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px 18px;
        padding: 16px 24px 18px;
        border-top: 1px solid var(--line);
        background: #fff;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
      }

      .site-records a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: inherit;
        text-decoration: none;
      }

      .site-records a:hover {
        color: var(--blue);
      }

      .police-badge {
        width: 16px;
        height: 17px;
        display: block;
        flex: 0 0 auto;
        object-fit: contain;
      }

      body {
        min-width: 0;
        background:
          radial-gradient(circle at 14% 8%, rgba(37, 99, 235, 0.16), transparent 28%),
          linear-gradient(135deg, #f8fbff 0%, #edf4f8 42%, #f7faf7 100%);
      }

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image:
          linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
          linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
        background-size: 34px 34px;
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
      }

      .app-shell {
        grid-template-columns: 238px minmax(880px, 1fr);
        min-height: calc(100vh - 51px);
        isolation: isolate;
      }

      .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 18px 14px;
        background: #0f2237;
        box-shadow: 10px 0 28px rgba(15, 23, 42, 0.12);
      }

      .brand {
        padding: 6px 10px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      }

      .brand::before {
        content: none;
      }

      .brand-title {
        font-size: 18px;
        letter-spacing: 0;
        color: #fff;
      }

      .brand-subtitle {
        color: #8fa3b8;
        line-height: 1.45;
      }

      .nav {
        gap: 6px;
        padding-top: 6px;
      }

      .nav button {
        min-height: 38px;
        padding: 0 10px;
        border-radius: 6px;
        color: #d8e3ee;
        transition: background 0.16s ease, color 0.16s ease;
      }

      .nav button::before {
        content: none;
      }

      .nav button.active,
      .nav button:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        transform: none;
      }

      .nav button.active::before,
      .nav button:hover::before {
        content: none;
      }

      .sidebar-status {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
      }

      .sidebar-status strong {
        color: #fff;
      }

      .main {
        min-width: 0;
        background: transparent;
      }

      .topbar {
        position: sticky;
        top: 0;
        z-index: 5;
        min-height: 76px;
        padding: 14px 22px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.24);
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(18px);
      }

      .page-title {
        font-size: 21px;
        color: #102033;
      }

      .page-subtitle {
        margin-top: 4px;
        color: #62748a;
      }

      button {
        border-radius: 8px;
        box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
        transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
      }

      button:hover {
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(37, 99, 235, 0.16);
      }

      button:active {
        transform: translateY(0);
      }

      body.is-refreshing button[onclick="refreshAll()"] {
        color: transparent;
        pointer-events: none;
      }

      body.is-refreshing button[onclick="refreshAll()"]::after {
        content: "同步中";
        color: #fff;
      }

      .content {
        display: grid;
        gap: 16px;
        padding: 20px 24px 78px;
      }

      .view.active {
        animation: viewIn 0.24s ease both;
      }

      @keyframes viewIn {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .metrics {
        grid-template-columns: repeat(6, minmax(132px, 1fr));
      }

      .metric,
      .band {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
      }

      .metric {
        position: relative;
        overflow: hidden;
      }

      .metric::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: linear-gradient(90deg, #2f7cf6, #14b8a6);
        transform: scaleX(0.24);
        transform-origin: left;
        transition: transform 0.2s ease;
      }

      .metric:hover::after,
      .metric.pulse::after {
        transform: scaleX(1);
      }

      .metric-label {
        color: #5b6b7d;
        font-weight: 700;
      }

      .metric-value {
        color: #0f2237;
        font-size: 24px;
      }

      .metric-foot {
        color: #74859a;
      }

      .band {
        overflow: hidden;
      }

      .band-header {
        background: linear-gradient(180deg, #fff, #f8fbfd);
      }

      .band-title {
        color: #102033;
        font-size: 15px;
      }

      .toolbar {
        align-items: center;
      }

      input,
      select {
        border-radius: 8px;
        transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
      }

      input:focus,
      select:focus {
        border-color: #2f7cf6;
        box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.12);
        outline: none;
      }

      .table-wrap {
        border-radius: 8px;
      }

      table {
        border-collapse: separate;
        border-spacing: 0;
      }

      th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f6f9fc;
        color: #4a5a6c;
      }

      tbody tr {
        transition: background 0.14s ease, transform 0.14s ease;
      }

      tbody tr:hover {
        background: #f7fbff;
      }

      .pill {
        border-radius: 999px;
        font-weight: 700;
      }

      .api-search {
        min-width: 320px;
      }

      .site-records {
        position: relative;
        z-index: 1;
        min-height: 51px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(14px);
      }

      @media (max-width: 980px) {
        .app-shell {
          display: block;
          min-height: auto;
        }

        .sidebar {
          position: static;
          height: auto;
        }

        .nav {
          grid-template-columns: repeat(6, minmax(68px, 1fr));
          overflow-x: auto;
        }

        .nav button {
          padding-inline: 6px;
          white-space: nowrap;
        }

        .topbar {
          position: static;
          align-items: flex-start;
          gap: 12px;
        }

        .metrics,
        .split,
        .form-grid {
          grid-template-columns: 1fr;
        }

        .toolbar {
          flex-wrap: wrap;
        }

        .data-context {
          align-items: flex-start;
          flex-direction: column;
        }

        .api-search {
          width: 100%;
          min-width: 0;
        }
      }
    .login-shell {
      position: fixed;
      inset: 0;
      z-index: 40;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: #eef3f7;
    }

    .login-shell.active {
      display: flex;
    }

    .login-panel {
      width: min(460px, 100%);
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
      padding: 0 28px 28px;
      overflow: hidden;
    }

    .login-cats {
      position: relative;
      height: 148px;
      margin: 0 -28px 20px;
      overflow: hidden;
      background: #f5f7fb;
    }

    .login-cats img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .login-cats .cats-hiding {
      opacity: 0;
      transform: translateY(6px);
    }

    .login-panel.is-hiding .cats-peeking {
      opacity: 0;
      transform: translateY(6px);
    }

    .login-panel.is-hiding .cats-hiding {
      opacity: 1;
      transform: translateY(0);
    }

    .password-field {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
    }

    .password-field input {
      width: 100%;
    }

    .password-toggle {
      min-width: 58px;
      border-color: var(--line-strong);
      background: #fff;
      color: var(--ink);
    }

    .login-panel h1 {
      margin: 0;
      font-size: 22px;
      letter-spacing: 0;
      color: var(--ink);
    }

    .login-panel p {
      margin: 8px 0 22px;
      color: var(--muted);
      font-size: 13px;
    }

    .login-panel > label {
      display: grid;
      gap: 7px;
      margin-top: 14px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 650;
    }

    .login-panel > label > input {
      width: 100%;
    }

    .login-panel > button[type="submit"] {
      width: 100%;
      margin-top: 18px;
    }

    .login-error {
      display: none;
      margin-bottom: 14px;
      padding: 10px 12px;
      border: 1px solid #fecaca;
      border-radius: 8px;
      background: #fff1f2;
      color: #991b1b;
      font-size: 13px;
    }

    .login-error.active {
      display: block;
    }

    .app-shell.locked {
      display: none;
    }

    .analytics-metrics {
      grid-template-columns: repeat(4, minmax(170px, 1fr));
    }

    .metric-topline,
    .metric-comparison {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .metric-delta {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      border-radius: 999px;
      padding: 2px 8px;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .metric-delta.up { background: var(--good-weak); color: var(--good); }
    .metric-delta.down { background: var(--bad-weak); color: var(--bad); }
    .metric-delta.reverse.up { background: var(--bad-weak); color: var(--bad); }
    .metric-delta.reverse.down { background: var(--good-weak); color: var(--good); }

    .metric-mini-track {
      height: 4px;
      margin-top: 10px;
      overflow: hidden;
      border-radius: 99px;
      background: #e8eef5;
    }

    .metric-mini-track span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--blue), #14b8a6);
    }

    .quick-ranges {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 3px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface-soft);
    }

    .quick-ranges button {
      height: 28px;
      border-color: transparent;
      background: transparent;
      color: var(--muted);
      padding: 0 8px;
      box-shadow: none;
    }

    .quick-ranges button.active {
      background: #fff;
      color: var(--accent);
      box-shadow: var(--shadow);
    }

    .chart-wrap { position: relative; min-height: 280px; }
    .chart-canvas { display: block; width: 100%; height: 280px; }

    .chart-tooltip {
      position: absolute;
      z-index: 3;
      display: none;
      min-width: 150px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 8px;
      padding: 9px 10px;
      background: rgba(15, 34, 55, 0.94);
      color: #fff;
      font-size: 12px;
      line-height: 1.55;
      pointer-events: none;
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    }

    .insight-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.8fr 1.1fr;
      gap: 16px;
    }

    .funnel { display: grid; gap: 10px; }

    .funnel-stage {
      display: grid;
      grid-template-columns: 62px minmax(120px, 1fr) 84px;
      align-items: center;
      gap: 10px;
    }

    .funnel-bar {
      height: 28px;
      overflow: hidden;
      border-radius: 6px;
      background: #edf2f7;
    }

    .funnel-bar span {
      display: block;
      height: 100%;
      min-width: 3px;
      border-radius: inherit;
      background: linear-gradient(90deg, #2563eb, #14b8a6);
    }

    .funnel-value { text-align: right; font-variant-numeric: tabular-nums; }

    .budget-panel {
      display: grid;
      place-items: center;
      gap: 12px;
      min-height: 190px;
    }

    .budget-gauge {
      --progress: 0deg;
      position: relative;
      display: grid;
      width: 132px;
      height: 132px;
      place-items: center;
      border-radius: 50%;
      background: conic-gradient(var(--accent) var(--progress), #e7edf3 0);
    }

    .budget-gauge::after {
      content: "";
      position: absolute;
      width: 96px;
      height: 96px;
      border-radius: 50%;
      background: #fff;
    }

    .budget-gauge strong,
    .budget-gauge span { position: relative; z-index: 1; }
    .budget-gauge strong { font-size: 24px; }
    .budget-gauge span { margin-top: -28px; color: var(--muted); font-size: 11px; }

    .budget-detail {
      display: grid;
      grid-template-columns: repeat(2, minmax(80px, 1fr));
      width: 100%;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    .anomaly-list { display: grid; gap: 8px; }

    .anomaly-item {
      display: grid;
      grid-template-columns: 8px 1fr;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px;
      background: var(--surface-soft);
    }

    .anomaly-marker { width: 8px; border-radius: 99px; background: var(--warn); }
    .anomaly-item.high .anomaly-marker { background: var(--bad); }
    .anomaly-title { font-weight: 700; }

    .anomaly-detail {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .budget-progress { min-width: 100px; }

    .budget-progress-track {
      height: 6px;
      margin-top: 5px;
      overflow: hidden;
      border-radius: 99px;
      background: #e7edf3;
    }

    .budget-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
    .budget-progress-track span.warn { background: var(--warn); }
    .budget-progress-track span.bad { background: var(--bad); }

    .analytics-tabs {
      gap: 6px;
    }

    .analytics-summary {
      grid-template-columns: repeat(6, minmax(135px, 1fr));
    }

    .analytics-summary .metric {
      min-height: 86px;
    }

    .analytics-split {
      grid-template-columns: minmax(620px, 1.4fr) minmax(260px, 0.6fr);
    }

    .breakdown-chart-wrap,
    .breakdown-canvas {
      min-height: 360px;
      height: 360px;
    }

    .coverage-grid {
      display: grid;
      gap: 10px;
    }

    .coverage-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid var(--line);
      padding-bottom: 9px;
    }

    .coverage-item:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .entity-cell {
      display: grid;
      gap: 3px;
      min-width: 180px;
    }

    .creative-preview {
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 7px;
      object-fit: cover;
      background: var(--surface-soft);
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 1180px) {
      .analytics-metrics { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
      .analytics-summary { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
      .insight-grid { grid-template-columns: 1fr; }
      .analytics-split { grid-template-columns: 1fr; }
    }

    @media (max-width: 700px) {
      .analytics-metrics { grid-template-columns: 1fr; }
      .analytics-summary { grid-template-columns: 1fr; }
      .funnel-stage { grid-template-columns: 56px 1fr 72px; }
    }
