
    :root {
      --bg: #f5f5f7;
      --bg-alt: #ffffff;
      --card: #ffffff;
      --border-soft: #e5e7eb;
      --border-strong: #d1d5db;
      --text-main: #111827;
      --text-soft: #4b5563;
      --accent: #f97316;  /* Eyetrosoft orange, slightly lighter */
      --accent-soft: rgba(249, 115, 22, 0.1);
      --accent-strong: #ea580c;
      --pill-bg: #111827;
      --radius-lg: 18px;
      --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

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

    body {
      margin: 0;
      padding: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #ffffff 0, #f5f5f7 45%, #e5e7eb 100%);
      color: var(--text-main);
      position: relative;
      min-height: 100vh;
      transition: background 0.25s ease, color 0.25s ease;
    }

    .page {
      max-width: 1240px;
      margin: 0 auto;
      padding: 20px 16px 40px;
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
      padding: 18px 20px;
      border-radius: 28px;
      border: 1px solid rgba(209,213,219,0.14);
      background: rgba(255,255,255,0.82);
      box-shadow: 0 18px 40px rgba(15,23,42,0.1);
      backdrop-filter: blur(14px);
      flex-wrap: wrap;
    }

    .header-main,
    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .header-main {
      flex: 1 1 420px;
    }

    .header-actions {
      flex: 1 1 420px;
      justify-content: flex-end;
    }

    .dashboard-shell {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .dashboard-rail {
      min-width: 0;
      order: 2;
      margin: 0 0 14px;
    }

    .dashboard-shell > .hero {
      order: 1;
    }

    .dashboard-content,
    .dashboard-panels {
      min-width: 0;
    }

    .dashboard-panels {
      display: grid;
      gap: 0;
      order: 3;
    }

    .dashboard-rail-card {
      display: none;
    }

    .dashboard-rail-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .dashboard-rail-logo {
      width: 54px;
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .dashboard-rail-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .dashboard-rail-brand-copy {
      display: grid;
      gap: 4px;
    }

    .dashboard-rail-brand-copy strong {
      font-size: 1.08rem;
      line-height: 1.2;
    }

    .dashboard-rail-brand-copy span,
    .dashboard-rail-meta small {
      color: var(--text-soft);
      line-height: 1.5;
    }

    .dashboard-rail-meta {
      display: grid;
      gap: 4px;
    }

    .dashboard-rail-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--text-soft);
    }

    .workspace-theme-block {
      display: grid;
      gap: 6px;
      min-width: 180px;
    }

    .workspace-theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px;
      border-radius: 999px;
      border: 1px solid var(--border-soft);
      background: rgba(255,255,255,0.92);
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    }

    .theme-toggle-btn {
      border: none;
      background: transparent;
      color: var(--text-soft);
      min-height: 36px;
      padding: 0 14px;
      border-radius: 999px;
      font: inherit;
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .theme-toggle-btn.active {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #fff;
      box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
    }

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

    .brand-mark {
      width: 56px;
      height: 56px;
      border-radius: 0;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      overflow: hidden;
      flex: 0 0 auto;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

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

    .brand-text span:first-child {
      font-size: 0.75rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--text-soft);
    }

    .brand-text span:last-child {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text-main);
    }

    .build-tag {
      font-size: 0.75rem;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--border-soft);
      background: rgba(255,255,255,0.9);
      color: var(--text-soft);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .build-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    .hero {
      background: radial-gradient(circle at top, #ffffff 0, #f5f5f7 60%, #e5e7eb 100%);
      border-radius: 26px;
      padding: 22px 22px 18px;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(209, 213, 219, 0.8);
      margin-bottom: 20px;
    }

    .hero-title {
      font-size: clamp(1.5rem, 3vw, 2.1rem);
      font-weight: 700;
      margin-bottom: 4px;
    }

    .hero-sub {
      font-size: 0.9rem;
      color: var(--text-soft);
      max-width: 640px;
    }

    .hero-sub span {
      font-weight: 500;
      color: var(--accent-strong);
    }

    .hero-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .hero-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .hero-pill {
      font-size: 0.78rem;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid var(--border-soft);
      background: rgba(255,255,255,0.9);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--text-soft);
    }

    .hero-pill strong {
      font-weight: 600;
      color: var(--text-main);
    }

    .tab-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .tab-btn {
      border-radius: 999px;
      border: 1px solid transparent;
      background: rgba(255,255,255,0.9);
      padding: 7px 14px;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      color: var(--text-soft);
      transition: background 0.15s ease, border-color 0.15s ease,
        transform 0.05s ease, box-shadow 0.15s ease, color 0.15s ease;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
      backdrop-filter: blur(10px);
    }

    .tab-btn span.icon {
      font-size: 1.05rem;
    }

    .tab-btn.active {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #ffffff;
      border-color: rgba(0,0,0,0.05);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    }

    .tab-btn:active {
      transform: scale(0.97);
    }

    .panel {
      display: none;
      background: var(--bg-alt);
      border-radius: 22px;
      padding: 18px 18px 20px;
      border: 1px solid var(--border-soft);
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
      margin-bottom: 20px;
    }

    .panel.active {
      display: block;
    }

    .panel-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .panel-title {
      font-size: 1rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-soft);
      font-weight: 600;
    }

    .panel-sub {
      font-size: 0.85rem;
      color: var(--text-soft);
      max-width: 520px;
    }

    body[data-dashboard-theme="modern"] {
      --bg: #0f1419;
      --bg-alt: rgba(18, 24, 33, 0.46);
      --card: rgba(17, 24, 39, 0.5);
      --border-soft: rgba(255, 255, 255, 0.14);
      --border-strong: rgba(255, 255, 255, 0.22);
      --text-main: #f8fafc;
      --text-soft: rgba(226, 232, 240, 0.8);
      --pill-bg: rgba(2, 6, 23, 0.68);
      --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.36);
      background: #0b1015;
    }

    body[data-dashboard-theme="modern"]::before {
      content: "";
      position: fixed;
      inset: -8%;
      background:
        linear-gradient(115deg, rgba(110, 68, 42, 0.76) 0%, rgba(79, 48, 32, 0.48) 24%, rgba(82, 123, 149, 0.42) 58%, rgba(120, 183, 219, 0.54) 100%),
        linear-gradient(180deg, rgba(6, 10, 16, 0.68), rgba(12, 18, 27, 0.12));
      filter: blur(26px) saturate(1.1);
      transform: scale(1.08);
      z-index: -2;
      pointer-events: none;
    }

    body[data-dashboard-theme="modern"]::after {
      content: "";
      position: fixed;
      inset: 0;
      background: linear-gradient(180deg, rgba(7, 10, 14, 0.18), rgba(7, 10, 14, 0.42));
      z-index: -1;
      pointer-events: none;
    }

    body[data-dashboard-theme="modern"] .page {
      max-width: 1440px;
      padding: 18px 18px 40px;
    }

    body[data-dashboard-theme="modern"] header,
    body[data-dashboard-theme="modern"] .workspace-shell-top,
    body[data-dashboard-theme="modern"] .workspace-widget-shell,
    body[data-dashboard-theme="modern"] .hero,
    body[data-dashboard-theme="modern"] .panel,
    body[data-dashboard-theme="modern"] .card,
    body[data-dashboard-theme="modern"] .workspace-modal-card,
    body[data-dashboard-theme="modern"] .notification-drawer,
    body[data-dashboard-theme="modern"] .campaign-modal .box {
      background: rgba(18, 24, 33, 0.42);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(26px);
      -webkit-backdrop-filter: blur(26px);
    }

    body[data-dashboard-theme="modern"] header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 24px;
      margin-bottom: 12px;
    }

    body[data-dashboard-theme="modern"] .dashboard-shell {
      display: grid;
      grid-template-columns: 248px minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }

    body[data-dashboard-theme="modern"] .dashboard-rail {
      grid-column: 1;
      grid-row: 1 / span 2;
      position: sticky;
      top: 14px;
      display: grid;
      gap: 12px;
      align-self: start;
      margin: 0;
    }

    body[data-dashboard-theme="modern"] .hero {
      grid-column: 2;
      grid-row: 1;
    }

    body[data-dashboard-theme="modern"] .dashboard-panels {
      grid-column: 2;
      grid-row: 2;
      gap: 18px;
    }

    body[data-dashboard-theme="modern"] .dashboard-rail-card {
      display: grid;
      gap: 12px;
      padding: 16px;
      border-radius: 26px;
      background: rgba(18, 24, 33, 0.44);
      border: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
    }

    body[data-dashboard-theme="modern"] .dashboard-rail-meta strong {
      font-size: 1.12rem;
      line-height: 1.3;
    }

    body[data-dashboard-theme="modern"] .dashboard-rail-meta small {
      color: rgba(226, 232, 240, 0.72);
    }

    body[data-dashboard-theme="modern"] .tab-bar {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin: 0;
      padding: 12px;
      border-radius: 26px;
      background: rgba(18, 24, 33, 0.44);
      border: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
    }

    body[data-dashboard-theme="modern"] .tab-btn {
      width: 100%;
      justify-content: flex-start;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255,255,255,0.04);
      color: rgba(248, 250, 252, 0.88);
      box-shadow: none;
    }

    body[data-dashboard-theme="modern"] .tab-btn.active {
      background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
      border-color: rgba(255,255,255,0.2);
      color: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 3px 0 0 rgba(249,115,22,0.92), 0 16px 30px rgba(0,0,0,0.2);
    }

    body[data-dashboard-theme="modern"] .tab-btn.active .icon {
      filter: saturate(1.2);
    }

    body[data-dashboard-theme="modern"] .workspace-theme-toggle {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.14);
      box-shadow: none;
    }

    body[data-dashboard-theme="modern"] .theme-toggle-btn {
      color: rgba(248,250,252,0.78);
    }

    body[data-dashboard-theme="modern"] .theme-toggle-btn.active {
      box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
    }

    body[data-dashboard-theme="modern"] .build-tag,
    body[data-dashboard-theme="modern"] .hero-pill,
    body[data-dashboard-theme="modern"] .campaign-chip,
    body[data-dashboard-theme="modern"] .workspace-search-tag,
    body[data-dashboard-theme="modern"] .badge,
    body[data-dashboard-theme="modern"] .pill,
    body[data-dashboard-theme="modern"] .pill.subtle {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.14);
      color: rgba(248, 250, 252, 0.82);
    }

    body[data-dashboard-theme="modern"] .header-main {
      gap: 8px;
      flex-wrap: nowrap;
    }

    body[data-dashboard-theme="modern"] .header-actions {
      flex: 0 1 auto;
      gap: 8px;
      align-items: center;
    }

    body[data-dashboard-theme="modern"] .brand-mark {
      width: 42px;
      height: 42px;
    }

    body[data-dashboard-theme="modern"] .brand-text span:first-child {
      font-size: 0.68rem;
      letter-spacing: 0.18em;
    }

    body[data-dashboard-theme="modern"] .brand-text span:last-child {
      font-size: 1rem;
    }

    body[data-dashboard-theme="modern"] .build-tag,
    body[data-dashboard-theme="modern"] .campaign-chip,
    body[data-dashboard-theme="modern"] .pill.subtle {
      min-height: 38px;
      padding: 0 12px;
      font-size: 0.84rem;
    }

    body[data-dashboard-theme="modern"] .workspace-shell-top {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    body[data-dashboard-theme="modern"] .workspace-shell-top,
    body[data-dashboard-theme="modern"] .workspace-widget-shell {
      padding: 10px 12px;
      border-radius: 20px;
    }

    body[data-dashboard-theme="modern"] .workspace-breadcrumbs .crumb {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
      color: rgba(226,232,240,0.72);
    }

    body[data-dashboard-theme="modern"] .workspace-breadcrumbs .crumb.current {
      background: rgba(249,115,22,0.16);
      border-color: rgba(249,115,22,0.26);
      color: #fff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    body[data-dashboard-theme="modern"] .workspace-shell-actions {
      display: grid;
      grid-template-columns: minmax(180px, 228px) minmax(260px, 1fr) auto auto auto;
      gap: 8px;
      justify-content: start;
      align-items: end;
    }

    body[data-dashboard-theme="modern"] .workspace-breadcrumbs {
      min-height: 0;
      gap: 6px;
    }

    body[data-dashboard-theme="modern"] .workspace-breadcrumbs .crumb {
      padding: 7px 11px;
      font-size: 0.82rem;
    }

    body[data-dashboard-theme="modern"] .workspace-search-row .input {
      min-width: 0;
      width: 100%;
    }

    body[data-dashboard-theme="modern"] .notification-btn {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.14);
    }

    body[data-dashboard-theme="modern"] .hero {
      margin-bottom: 0;
      border-radius: 24px;
      padding: 18px;
      background: rgba(18, 24, 33, 0.44);
    }

    body[data-dashboard-theme="modern"] .hero-row {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
      gap: 22px;
      align-items: start;
    }

    body[data-dashboard-theme="modern"] .hero-pills {
      justify-content: flex-end;
    }

    body[data-dashboard-theme="modern"] .panel {
      margin-bottom: 0;
      border-radius: 24px;
      padding: 18px;
    }

    body[data-dashboard-theme="modern"] .campaign-header {
      gap: 8px;
      margin-left: 0;
    }

    body[data-dashboard-theme="modern"] .panel-title,
    body[data-dashboard-theme="modern"] .field-label {
      color: rgba(248,250,252,0.72);
    }

    body[data-dashboard-theme="modern"] .panel-sub,
    body[data-dashboard-theme="modern"] .panel-subtitle,
    body[data-dashboard-theme="modern"] .muted,
    body[data-dashboard-theme="modern"] .field-hint,
    body[data-dashboard-theme="modern"] .hint-inline,
    body[data-dashboard-theme="modern"] .status-line,
    body[data-dashboard-theme="modern"] .card-subtitle,
    body[data-dashboard-theme="modern"] .hero-sub {
      color: rgba(226,232,240,0.76);
    }

    body[data-dashboard-theme="modern"] textarea,
    body[data-dashboard-theme="modern"] input[type="text"],
    body[data-dashboard-theme="modern"] input[type="search"],
    body[data-dashboard-theme="modern"] input[type="date"],
    body[data-dashboard-theme="modern"] input[type="number"],
    body[data-dashboard-theme="modern"] input[type="url"],
    body[data-dashboard-theme="modern"] input[type="email"],
    body[data-dashboard-theme="modern"] input[type="password"],
    body[data-dashboard-theme="modern"] select {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.14);
      color: var(--text-main);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    body[data-dashboard-theme="modern"] textarea::placeholder,
    body[data-dashboard-theme="modern"] input::placeholder {
      color: rgba(226,232,240,0.42);
    }

    body[data-dashboard-theme="modern"] textarea:focus,
    body[data-dashboard-theme="modern"] input[type="text"]:focus,
    body[data-dashboard-theme="modern"] input[type="search"]:focus,
    body[data-dashboard-theme="modern"] input[type="date"]:focus,
    body[data-dashboard-theme="modern"] input[type="number"]:focus,
    body[data-dashboard-theme="modern"] input[type="url"]:focus,
    body[data-dashboard-theme="modern"] input[type="email"]:focus,
    body[data-dashboard-theme="modern"] input[type="password"]:focus,
    body[data-dashboard-theme="modern"] select:focus {
      background: rgba(255,255,255,0.09);
      border-color: rgba(249,115,22,0.46);
      box-shadow: 0 0 0 1px rgba(249,115,22,0.2);
    }

    body[data-dashboard-theme="modern"] .btn-secondary,
    body[data-dashboard-theme="modern"] .btn-ghost,
    body[data-dashboard-theme="modern"] .btn,
    body[data-dashboard-theme="modern"] .campaign-row-btn {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.14);
      color: rgba(248,250,252,0.88);
      box-shadow: none;
      min-height: 40px;
      padding: 0 12px;
      border-radius: 13px;
      font-size: 0.88rem;
      font-weight: 600;
    }

    body[data-dashboard-theme="modern"] .btn-primary {
      min-height: 40px;
      padding: 0 14px;
      border-radius: 13px;
      font-size: 0.9rem;
      font-weight: 700;
    }

    body[data-dashboard-theme="modern"] .theme-toggle-btn {
      min-height: 32px;
      padding: 0 12px;
      border-radius: 11px;
      font-size: 0.84rem;
      font-weight: 600;
    }

    body[data-dashboard-theme="modern"] .workspace-date-filter,
    body[data-dashboard-theme="modern"] .workspace-search,
    body[data-dashboard-theme="modern"] .workspace-theme-block {
      min-width: 0;
      gap: 4px;
    }

    body[data-dashboard-theme="modern"] .field-label {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
    }

    body[data-dashboard-theme="modern"] .workspace-search-row {
      gap: 6px;
      align-items: stretch;
    }

    body[data-dashboard-theme="modern"] .workspace-date-filter select,
    body[data-dashboard-theme="modern"] .workspace-date-filter input,
    body[data-dashboard-theme="modern"] .workspace-search-row .input,
    body[data-dashboard-theme="modern"] .workspace-search-row button,
    body[data-dashboard-theme="modern"] .notification-btn {
      min-height: 40px;
      font-size: 0.88rem;
    }

    body[data-dashboard-theme="modern"] .workspace-date-filter {
      grid-template-columns: minmax(180px, 228px) minmax(0, 128px) minmax(0, 128px);
    }

    body[data-dashboard-theme="modern"] .workspace-theme-block {
      min-width: 196px;
    }

    body[data-dashboard-theme="modern"] .workspace-theme-toggle {
      min-height: 40px;
      padding: 4px;
      border-radius: 13px;
      width: fit-content;
    }

    body[data-dashboard-theme="modern"] .notification-btn {
      padding-inline: 12px;
      gap: 8px;
    }

    body[data-dashboard-theme="modern"] .notification-count {
      min-width: 22px;
      height: 22px;
      font-size: 0.78rem;
    }

    body[data-dashboard-theme="modern"] .campaign-row-btn.danger {
      color: #fecaca;
      border-color: rgba(254, 202, 202, 0.22);
    }

    body[data-dashboard-theme="modern"] .campaign-modal .box {
      background: rgba(12, 18, 26, 0.92);
    }

    body[data-dashboard-theme="modern"] .campaign-modal .title,
    body[data-dashboard-theme="modern"] #selectedCampaignName,
    body[data-dashboard-theme="modern"] .campaign-list .name {
      color: #f8fafc;
    }

    body[data-dashboard-theme="modern"] .campaign-modal .muted,
    body[data-dashboard-theme="modern"] .campaign-list .meta,
    body[data-dashboard-theme="modern"] #selectedCampaignMeta {
      color: rgba(226, 232, 240, 0.74);
    }

    body[data-dashboard-theme="modern"] .campaign-modal .card {
      background: rgba(8, 12, 18, 0.62);
      border-color: rgba(255,255,255,0.12);
    }

    body[data-dashboard-theme="modern"] .campaign-list {
      background: rgba(8, 12, 18, 0.68);
      border-color: rgba(255,255,255,0.12);
    }

    body[data-dashboard-theme="modern"] .campaign-list .row {
      background: rgba(255,255,255,0.03);
      border-bottom-color: rgba(255,255,255,0.08);
    }

    body[data-dashboard-theme="modern"] .campaign-list .row:nth-child(even) {
      background: rgba(255,255,255,0.05);
    }

    body[data-dashboard-theme="modern"] .campaign-list .row:hover {
      background: rgba(249,115,22,0.12);
    }

    body[data-dashboard-theme="modern"] .campaign-list .row.active {
      background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(255,255,255,0.06));
      box-shadow: inset 3px 0 0 rgba(249,115,22,0.92);
    }

    body[data-dashboard-theme="modern"] .seg button {
      min-height: 40px;
      padding: 0 16px;
      border-radius: 14px;
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.12);
      color: rgba(248,250,252,0.84);
      font-size: 0.9rem;
    }

    body[data-dashboard-theme="modern"] .seg button.active {
      background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(255,255,255,0.06));
      border-color: rgba(249,115,22,0.42);
      color: #ffffff;
    }

    body[data-dashboard-theme="modern"] .platform-tab,
    body[data-dashboard-theme="modern"] .subtab-btn,
    body[data-dashboard-theme="modern"] .subtab,
    body[data-dashboard-theme="modern"] .rs-source-tab,
    body[data-dashboard-theme="modern"] .rs-nav {
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      border-radius: 0;
      padding: 10px 4px;
      box-shadow: none;
      color: rgba(226,232,240,0.66);
    }

    body[data-dashboard-theme="modern"] .platform-tab.active,
    body[data-dashboard-theme="modern"] .subtab-btn.active,
    body[data-dashboard-theme="modern"] .subtab.active,
    body[data-dashboard-theme="modern"] .rs-source-tab.active,
    body[data-dashboard-theme="modern"] .rs-nav.active {
      background: transparent;
      border-bottom-color: rgba(249,115,22,0.88);
      color: #ffffff;
    }

    body[data-dashboard-theme="modern"] .table-shell,
    body[data-dashboard-theme="modern"] .table-wrap {
      border-radius: 18px;
    }

    body[data-dashboard-theme="modern"] .pub-table th,
    body[data-dashboard-theme="modern"] .pub-table td,
    body[data-dashboard-theme="modern"] .admin-table th,
    body[data-dashboard-theme="modern"] .admin-table td {
      border-color: rgba(255,255,255,0.08);
      color: var(--text-main);
    }

    body[data-dashboard-theme="modern"] .pub-table tbody tr:nth-child(odd),
    body[data-dashboard-theme="modern"] .admin-table tbody tr:nth-child(odd) {
      background: rgba(255,255,255,0.03);
    }

    body[data-dashboard-theme="modern"] .pub-table tbody tr:hover,
    body[data-dashboard-theme="modern"] .admin-table tbody tr:hover {
      background: rgba(249,115,22,0.08);
    }

    body[data-dashboard-theme="modern"] .workspace-search-result,
    body[data-dashboard-theme="modern"] .notification-item,
    body[data-dashboard-theme="modern"] .home-widget,
	    body[data-dashboard-theme="modern"] .ad-summary-card,
	    body[data-dashboard-theme="modern"] .ad-reference-card,
	    body[data-dashboard-theme="modern"] .ad-match-card,
	    body[data-dashboard-theme="modern"] .ad-proof-item,
	    body[data-dashboard-theme="modern"] .ad-proof-media > div,
	    body[data-dashboard-theme="modern"] .ad-proof-billboard-frame,
	    body[data-dashboard-theme="modern"] .ad-proof-support-card,
	    body[data-dashboard-theme="modern"] .ad-proof-support-card > div,
	    body[data-dashboard-theme="modern"] .ad-proof-pages li,
	    body[data-dashboard-theme="modern"] .api-status-strip,
    body[data-dashboard-theme="modern"] .api-status-card,
    body[data-dashboard-theme="modern"] .dash-card,
    body[data-dashboard-theme="modern"] .reporting-panel,
    body[data-dashboard-theme="modern"] .report-card,
    body[data-dashboard-theme="modern"] .exec-kpi,
    body[data-dashboard-theme="modern"] .exec-mention-card,
    body[data-dashboard-theme="modern"] .quickstart-card,
    body[data-dashboard-theme="modern"] .rs-kpi,
    body[data-dashboard-theme="modern"] .rs-card,
    body[data-dashboard-theme="modern"] .rs-section,
    body[data-dashboard-theme="modern"] .rs-stat-card,
    body[data-dashboard-theme="modern"] .rs-surface-card,
    body[data-dashboard-theme="modern"] .rs-empty-card,
    body[data-dashboard-theme="modern"] .rs-insight-card,
    body[data-dashboard-theme="modern"] .rs-voice-card,
    body[data-dashboard-theme="modern"] .doc-extract-page {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.1);
      box-shadow: none;
    }

    body[data-dashboard-theme="modern"] .api-status-strip {
      background: rgba(10, 15, 22, 0.68);
    }

    body[data-dashboard-theme="modern"] .api-status-card {
      background: rgba(255,255,255,0.04);
    }

    body[data-dashboard-theme="modern"] .rs-sidebar,
    body[data-dashboard-theme="modern"] .rs-period,
    body[data-dashboard-theme="modern"] .rs-platforms,
    body[data-dashboard-theme="modern"] .rs-scope {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.12);
      color: rgba(248,250,252,0.82);
    }

    body[data-dashboard-theme="modern"] .rs-card-title,
    body[data-dashboard-theme="modern"] .rs-section h3,
    body[data-dashboard-theme="modern"] .rs-surface-title,
    body[data-dashboard-theme="modern"] .rs-stat-value,
    body[data-dashboard-theme="modern"] .rs-bar-head span,
    body[data-dashboard-theme="modern"] .rs-bar-head strong,
    body[data-dashboard-theme="modern"] .rs-voice-top h4,
    body[data-dashboard-theme="modern"] .rs-voice-metrics strong,
    body[data-dashboard-theme="modern"] .rs-body,
    body[data-dashboard-theme="modern"] .rs-table td {
      color: #f8fafc;
    }

    body[data-dashboard-theme="modern"] .rs-card-sub,
    body[data-dashboard-theme="modern"] .rs-stat-note,
    body[data-dashboard-theme="modern"] .rs-bar-meta,
    body[data-dashboard-theme="modern"] .rs-voice-top p,
    body[data-dashboard-theme="modern"] .rs-voice-metrics,
    body[data-dashboard-theme="modern"] .rs-table th,
    body[data-dashboard-theme="modern"] .rs-pill {
      color: rgba(226,232,240,0.74);
    }

    body[data-dashboard-theme="modern"] .rs-section,
    body[data-dashboard-theme="modern"] .rs-kpi,
    body[data-dashboard-theme="modern"] .rs-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
      border-color: rgba(255,255,255,0.12);
      box-shadow: none;
    }

    body[data-dashboard-theme="modern"] .rs-stat-card {
      background: linear-gradient(180deg, rgba(249,115,22,0.16), rgba(255,255,255,0.05));
      border-color: rgba(255,255,255,0.12);
    }

    body[data-dashboard-theme="modern"] .rs-surface-card {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
    }

    body[data-dashboard-theme="modern"] .rs-empty-card {
      background: rgba(255,255,255,0.04);
      border-color: rgba(255,255,255,0.14);
      color: rgba(226,232,240,0.72);
    }

    body[data-dashboard-theme="modern"] .rs-exec-pane {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.12);
      color: #f8fafc;
    }

    body[data-dashboard-theme="modern"] .rs-exec-pane--ai {
      background: linear-gradient(180deg, rgba(249,115,22,0.12), rgba(255,255,255,0.04));
      border-color: rgba(249,115,22,0.28);
    }

    body[data-dashboard-theme="modern"] .rs-inline-title,
    body[data-dashboard-theme="modern"] .rs-ai-inline-heading {
      color: rgba(226,232,240,0.82);
    }

    body[data-dashboard-theme="modern"] .rs-ai-inline-list li,
    body[data-dashboard-theme="modern"] .rs-ai-evidence-preview {
      background: rgba(15,23,42,0.44);
      border-color: rgba(255,255,255,0.10);
      color: rgba(248,250,252,0.92);
    }

    body[data-dashboard-theme="modern"] .rs-ai-narrative {
      background: rgba(15,23,42,0.44);
      border-color: rgba(255,255,255,0.10);
    }

    body[data-dashboard-theme="modern"] .rs-ai-inline-list p {
      color: rgba(248,250,252,0.94);
    }

    body[data-dashboard-theme="modern"] .rs-ai-narrative p {
      color: rgba(248,250,252,0.94);
    }

    body[data-dashboard-theme="modern"] .rs-insight-card {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
      color: #e2e8f0;
    }

    body[data-dashboard-theme="modern"] .rs-insight-card--orange {
      background: linear-gradient(180deg, rgba(249,115,22,0.18), rgba(255,255,255,0.05));
    }

    body[data-dashboard-theme="modern"] .rs-insight-card--slate {
      background: linear-gradient(180deg, rgba(148,163,184,0.14), rgba(255,255,255,0.04));
    }

	    body[data-dashboard-theme="modern"] .rs-voice-card {
	      background: rgba(255,255,255,0.06);
	      border-color: rgba(255,255,255,0.1);
	    }

	    body[data-dashboard-theme="modern"] .rs-sentiment-reason-row {
	      background: rgba(255,255,255,0.06);
	      border-color: rgba(255,255,255,0.1);
	      color: #e2e8f0;
	    }

	    body[data-dashboard-theme="modern"] .rs-sentiment-reason-row strong {
	      color: #f8fafc;
	    }

	    body[data-dashboard-theme="modern"] .rs-pill,
    body[data-dashboard-theme="modern"] .rs-badge {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.12);
    }

    body[data-dashboard-theme="modern"] .rs-table th,
    body[data-dashboard-theme="modern"] .rs-table td {
      border-bottom-color: rgba(255,255,255,0.08);
    }

    body[data-dashboard-theme="modern"] .results-column {
      scrollbar-color: rgba(255,255,255,0.22) transparent;
    }

    body[data-dashboard-theme="modern"] .ad-country-copy,
    body[data-dashboard-theme="modern"] .status-line {
      color: rgba(226,232,240,0.82);
    }

    body[data-dashboard-theme="modern"] .workspace-collapse,
    body[data-dashboard-theme="modern"] .workspace-collapse--nested {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.1);
    }

    body[data-dashboard-theme="modern"] .workspace-collapse summary {
      color: #f8fafc;
    }

    body[data-dashboard-theme="modern"] .workspace-collapse summary::after {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.1);
      color: rgba(248,250,252,0.84);
    }

    body[data-dashboard-theme="modern"] .workspace-collapse-meta {
      background: rgba(249,115,22,0.14);
      border-color: rgba(249,115,22,0.26);
      color: #fdba74;
    }

    body[data-dashboard-theme="modern"] .ad-scan-progress-top,
    body[data-dashboard-theme="modern"] .ad-scan-progress-top strong {
      color: rgba(248,250,252,0.9);
    }

    body[data-dashboard-theme="modern"] .ad-scan-progress .progress-outer {
      background: rgba(255,255,255,0.12);
    }

    body[data-dashboard-theme="modern"] .ad-row-active-country {
      background: rgba(249,115,22,0.1);
    }

    body[data-dashboard-theme="modern"] .ad-table thead th {
      background: rgba(8,12,18,0.86);
      color: #f8fafc;
    }

    body[data-dashboard-theme="modern"] .ad-table tbody tr:nth-child(odd) {
      background: rgba(255,255,255,0.03);
    }

    body[data-dashboard-theme="modern"] .ad-table tbody tr:nth-child(even) {
      background: rgba(255,255,255,0.015);
    }

    body[data-dashboard-theme="modern"] .ad-table td {
      color: #e2e8f0;
    }

    .panel-sub strong {
      color: var(--accent-strong);
      font-weight: 600;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
      gap: 16px;
    }

    .source-layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }

    .source-layout > * {
      min-width: 0;
    }

    .source-layout > :first-child {
      display: grid;
      gap: 12px;
      padding: 0 0 2px;
    }

    .source-layout > :last-child {
      display: grid;
      gap: 10px;
    }

    .source-layout .field-group:last-of-type {
      margin-bottom: 0;
    }

    .source-layout .results-tabs {
      margin-top: 2px;
    }

    .source-layout .results-column {
      min-height: 280px;
    }

    @media (max-width: 900px) {
      .grid-2 {
        grid-template-columns: minmax(0, 1fr);
      }

      .source-layout {
        gap: 16px;
      }
    }

    .field-label {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--text-soft);
      margin-bottom: 4px;
    }

    textarea,
    input[type="text"],
    select {
      width: 100%;
      font-family: inherit;
      font-size: 0.9rem;
      padding: 9px 11px;
      border-radius: 12px;
      border: 1px solid var(--border-soft);
      background: #f9fafb;
      color: var(--text-main);
      resize: vertical;
      min-height: 44px;
    }

    textarea {
      min-height: 140px;
      white-space: pre;
    }

    textarea:focus,
    input[type="text"]:focus,
    select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
      background: #ffffff;
    }

    .btn-primary {
      border-radius: 999px;
      border: none;
      padding: 10px 18px;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #ffffff;
      font-size: 0.9rem;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
      transition: transform 0.05s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    }

    .btn-primary:disabled {
      opacity: 0.65;
      cursor: default;
      box-shadow: none;
    }

    .btn-primary:active {
      transform: scale(0.97);
      box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    }

    .btn-secondary {
      border-radius: 999px;
      border: 1px solid var(--border-soft);
      padding: 9px 14px;
      background: #ffffff;
      color: var(--text-soft);
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }

    .status-line {
      font-size: 0.78rem;
      color: var(--text-soft);
      margin-top: 6px;
    }

    .status-line strong {
      color: var(--accent-strong);
    }

    .results-column {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 520px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .card {
      background: #ffffff;
      border-radius: 16px;
      border: 1px solid var(--border-soft);
      padding: 10px 12px 12px;
      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .card-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
    }

    .card-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-main);
    }

    .card-subtitle {
      font-size: 0.8rem;
      color: var(--text-soft);
    }

    .badges-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 0.74rem;
    }

    .badge {
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid var(--border-soft);
      background: #f9fafb;
      color: var(--text-soft);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .badge-pill {
      border-radius: 999px;
    }

    
    .date-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
    .date-row input{min-width:160px}
    .badge-btn{cursor:pointer;user-select:none}
    .badge-btn:hover{filter:brightness(0.98)}
    .badge-btn:active{transform:translateY(1px)}
    .hint-inline{font-size:0.8rem;color:var(--text-soft);margin-top:6px}

.badge-source {
      background: var(--pill-bg);
      color: #ffffff;
      border-color: transparent;
    }

    .badge-sentiment-positive {
      background: rgba(22, 163, 74, 0.08);
      border-color: rgba(22, 163, 74, 0.3);
      color: #15803d;
    }

    .badge-sentiment-neutral {
      background: rgba(148, 163, 184, 0.08);
      border-color: rgba(148, 163, 184, 0.4);
      color: #4b5563;
    }

    .badge-sentiment-negative {
      background: rgba(220, 38, 38, 0.08);
      border-color: rgba(220, 38, 38, 0.4);
      color: #b91c1c;
    }

    .card-snippet {
      font-size: 0.82rem;
      color: var(--text-soft);
      line-height: 1.45;
      max-height: 90px;
      overflow: hidden;
    }

    .card-snippet.has-page-extracts {
      max-height: 320px;
      overflow: auto;
      padding-right: 4px;
    }

    .doc-extracts {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 8px;
    }

    .doc-extracts-head {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      align-items: baseline;
      flex-wrap: wrap;
      font-size: 0.78rem;
      color: var(--text-soft);
    }

    .doc-extract-page {
      border: 1px solid var(--border-soft);
      border-radius: 8px;
      background: rgba(255,255,255,0.78);
      padding: 8px 10px;
    }

    .doc-extract-page-title {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
    }

    .doc-extract-item {
      font-size: 0.8rem;
      line-height: 1.45;
      color: var(--text-soft);
      margin-top: 5px;
      overflow-wrap: anywhere;
    }

    .doc-extract-item:first-child {
      margin-top: 0;
    }

    .doc-extract-meta {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-left: 6px;
      vertical-align: middle;
    }

    .doc-extract-keyword {
      font-weight: 700;
      color: var(--accent-strong);
    }

    .doc-extract-divider {
      padding: 0 4px;
      color: var(--text-soft);
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
    }

    .card-footer a {
      font-size: 0.8rem;
      color: var(--accent-strong);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .card-footer a:hover {
      text-decoration: underline;
    }

    .meta-line {
      font-size: 0.75rem;
      color: var(--text-soft);
    }

    .progress-outer {
      width: 100%;
      border-radius: 999px;
      border: 1px solid var(--border-soft);
      height: 8px;
      overflow: hidden;
      background: #f3f4f6;
      margin-top: 4px;
    }

    .progress-inner {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent-strong));
      transition: width 0.25s ease;
    }

    .section-footer {
      margin-top: 8px;
      font-size: 0.8rem;
      color: var(--text-soft);
    }

    .reporting-panel {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at top left, rgba(249,115,22,0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 28%),
        linear-gradient(160deg, rgba(17,24,39,0.98), rgba(24,34,49,0.98));
      border-radius: 26px;
      padding: 20px 20px 22px;
      border: 1px solid rgba(148,163,184,0.18);
      box-shadow: 0 24px 56px rgba(15,23,42,0.34);
      color: #e5e7eb;
    }

    .reporting-panel .panel-title,
    .reporting-panel .panel-sub,
    .reporting-panel .field-hint,
    .reporting-panel .status-line {
      color: #e5e7eb;
    }

    .reporting-panel .btn-secondary {
      border-color: rgba(148,163,184,0.2);
      background: rgba(30,41,59,0.76);
      color: #f8fafc;
      box-shadow: none;
    }

    .reporting-panel .btn-secondary:hover {
      background: rgba(51,65,85,0.94);
    }

    .reporting-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 14px;
    }

    .reporting-hero-copy {
      min-width: 0;
      flex: 1;
    }

    .reporting-eyebrow {
      font-size: 0.74rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #f59e0b;
      margin-bottom: 8px;
    }

    .reporting-title-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .reporting-title-row .panel-title {
      margin: 0;
      font-size: clamp(1.4rem, 2vw, 2rem);
      font-weight: 800;
      line-height: 1.1;
    }

    .reporting-title-star {
      font-size: 1.2rem;
      color: #cbd5e1;
      opacity: 0.85;
    }

    .reporting-hero-copy .panel-sub {
      margin-top: 6px;
      color: #94a3b8;
      font-size: 0.98rem;
    }

    .reporting-hero-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      flex-wrap: wrap;
    }

    .reporting-date-pill {
      min-height: 46px;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      border-radius: 14px;
      border: 1px solid rgba(148,163,184,0.18);
      background: rgba(15,23,42,0.72);
      color: #f8fafc;
      font-weight: 600;
      white-space: nowrap;
    }

    .reporting-export-btn {
      min-height: 46px;
      padding: 0 18px;
      border-radius: 14px;
      border: 1px solid rgba(251,146,60,0.65);
      background: linear-gradient(180deg, #fb923c, #f97316);
      color: #fff7ed;
      font-size: 0.94rem;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 14px 30px rgba(249,115,22,0.28);
    }

    .reporting-export-btn:hover {
      filter: brightness(1.04);
    }

    .reporting-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .reporting-toolbar-left,
    .reporting-toolbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .reporting-scope-pill {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(249,115,22,0.35);
      background: rgba(249,115,22,0.12);
      color: #fed7aa;
      font-weight: 700;
      font-size: 0.85rem;
    }

    .reporting-empty {
      margin-top: 8px;
      border-radius: 20px;
      border: 1px dashed rgba(148,163,184,0.28);
      background: rgba(15,23,42,0.45);
      padding: 18px;
      color: #94a3b8;
      font-size: 0.95rem;
    }

    .report-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 12px;
      margin-top: 6px;
    }

    .report-card {
      border-radius: 16px;
      border: 1px solid rgba(148,163,184,0.14);
      padding: 10px 12px;
      background: rgba(15,23,42,0.52);
      font-size: 0.82rem;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .report-card h4 {
      margin: 0;
      font-size: 0.86rem;
      font-weight: 600;
      color: #f8fafc;
    }

    .emoji-cloud {
      margin-top: 4px;
      font-size: 1.1rem;
    }

    .export-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid rgba(148,163,184,0.12);
    }

    @media (max-width: 640px) {
      header {
        flex-direction: column;
        align-items: flex-start;
      }
      .hero-row {
        flex-direction: column;
        align-items: flex-start;
      }
      .results-column {
        max-height: none;
      }
    }
  
    .api-status-strip {
      margin-top: 14px;
      padding: 12px 14px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(15,23,42,0.99));
      border: 1px solid rgba(148, 163, 184, 0.4);
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
    }
    .api-status-heading {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #9ca3af;
      margin-bottom: 8px;
    }
    .api-status-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    @media (min-width: 1680px) {
      .api-status-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }
    }
    @media (max-width: 1100px) {
      .api-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 768px) {
      .api-status-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }
    .api-status-card {
      background: rgba(15, 23, 42, 0.9);
      border-radius: 10px;
      padding: 8px 10px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 4px 8px;
    }
    .api-status-label {
      font-size: 0.74rem;
      color: #e5e7eb;
      line-height: 1.25;
    }
    .api-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-self: end;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.72rem;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: rgba(15, 23, 42, 0.9);
      transition: background 0.18s, border-color 0.18s, color 0.18s;
      min-height: 28px;
    }
    .api-status-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #6b7280;
      box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.25);
    }
    .api-status-text {
      white-space: nowrap;
    }
    .api-status-note {
      grid-column: 1 / -1;
      font-size: 0.72rem;
      color: #9ca3af;
      line-height: 1.35;
      min-height: 0;
    }
    .api-status-note:empty {
      display: none;
    }
    .api-status-error {
      margin-top: 4px;
      font-size: 0.72rem;
      color: #f97373;
    }
    .api-status-pill--ok {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.12);
      color: #bbf7d0;
    }
    .api-status-pill--ok .api-status-dot {
      background: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.27);
    }
    .api-status-pill--warn {
      border-color: #facc15;
      background: rgba(250, 204, 21, 0.12);
      color: #fef9c3;
    }
    .api-status-pill--warn .api-status-dot {
      background: #facc15;
      box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.27);
    }
    .api-status-pill--error {
      border-color: #ef4444;
      background: rgba(239, 68, 68, 0.12);
      color: #fee2e2;
    }
    .api-status-pill--error .api-status-dot {
      background: #ef4444;
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.27);
    }
    .api-status-pill--unknown {
      border-color: rgba(148, 163, 184, 0.6);
      background: rgba(15, 23, 42, 0.9);
      color: #e5e7eb;
    }

  
    .btn-row{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-top:10px;
      align-items:center;
    }
    .btn-secondary{
      border-radius: 999px;
      border: 1px solid var(--border-strong);
      background: rgba(255,255,255,0.9);
      padding: 10px 14px;
      font-size: 0.9rem;
      cursor: pointer;
      color: var(--text-main);
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    }
    .btn-secondary:disabled{
      opacity:0.55;
      cursor:not-allowed;
    }
    .camera-wrap{
      margin-top:12px;
      border:1px solid var(--border-soft);
      border-radius: 18px;
      overflow:hidden;
      background:#000;
      min-height:240px;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    #camera-video, #camera-capture{
      width:100%;
      height:auto;
      display:block;
      max-height:420px;
      object-fit:contain;
    }

  
    .backend-row{
      display:flex;
      align-items:center;
      gap:12px;
      padding:10px 0 12px;
      border-bottom: 1px solid rgba(148,163,184,0.18);
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .backend-label{
      font-size:12px;
      letter-spacing:0.12em;
      text-transform:uppercase;
      color:#9ca3af;
      min-width: 120px;
    }
    .backend-controls{
      display:flex;
      align-items:center;
      gap:10px;
      flex: 1;
      min-width: 260px;
    }
    #backend-url{
      flex: 1;
      min-width: 260px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(148,163,184,0.25);
      background: rgba(15,23,42,0.35);
      color: #e5e7eb;
      outline: none;
    }
    .backend-note{
      font-size: 12px;
      color: #9ca3af;
    }

    /* Technical robot status bar (global) */
    .robot-bar {
      margin-top: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 16px;
      border: 1px solid var(--border-soft);
      background: rgba(255,255,255,0.92);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
      backdrop-filter: blur(10px);
    }

    .robot-led {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--robot-color, #f59e0b);
      box-shadow: 0 0 14px var(--robot-color, #f59e0b);
      flex: 0 0 auto;
    }

    .robot-track {
      flex: 1;
      height: 10px;
      border-radius: 999px;
      background: rgba(17, 24, 39, 0.08);
      overflow: hidden;
      position: relative;
    }

    .robot-fill {
      height: 100%;
      width: 22%;
      border-radius: 999px;
      background: var(--robot-color, #f59e0b);
      box-shadow: 0 0 18px var(--robot-color, #f59e0b);
      transition: width 0.2s ease, filter 0.2s ease;
    }

    .robot-text {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(17, 24, 39, 0.78);
      white-space: nowrap;
    }

    @keyframes robotPulse {
      0% { filter: brightness(1); }
      50% { filter: brightness(1.35); }
      100% { filter: brightness(1); }
    }

    .robot-bar.robot-idle { --robot-color: #f59e0b; }
    .robot-bar.robot-run  { --robot-color: #10b981; }
    .robot-bar.robot-ok   { --robot-color: #22c55e; }
    .robot-bar.robot-err  { --robot-color: #ef4444; }

    .robot-bar.robot-run .robot-led,
    .robot-bar.robot-run .robot-fill {
      animation: robotPulse 0.9s ease-in-out infinite;
    }

    .robot-bar.robot-err .robot-led,
    .robot-bar.robot-err .robot-fill {
      animation: robotPulse 0.55s ease-in-out infinite;
    }
  
    /* b16 additions */
    .platform-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 14px}
    .platform-tab{border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:10px 12px;border-radius:12px;cursor:pointer;font-weight:700}
    .platform-tab.active{background:rgba(249,115,22,.12);border-color:rgba(249,115,22,.35);color:var(--text)}
    .platform-pane{display:none}
    .platform-pane.active{display:block}
    .results-tabs{display:flex;gap:10px;margin:10px 0 12px}
    .subtab-btn{border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:700;font-size:13px}
    .subtab-btn.active{background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.35);color:var(--text)}


    /* ===== B16.1.7 Keyword-Priority + Dashboard ===== */
    .gauge-strip{
      margin-top:10px;
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
    }
    .gauge{
      flex: 1 1 170px;
      min-width:170px;
      border:1px solid rgba(148,163,184,0.35);
      border-radius:999px;
      padding:7px 10px;
      display:flex;
      align-items:center;
      gap:10px;
      background: rgba(255,255,255,0.75);
    }
    .gauge-label{
      font-size:11px;
      letter-spacing:0.12em;
      text-transform:uppercase;
      color:#6b7280;
      min-width:76px;
    }
    .gauge-track{
      position:relative;
      height:10px;
      flex:1;
      border-radius:999px;
      overflow:hidden;
      background: rgba(15,23,42,0.08);
    }
    .gauge-fill{
      position:absolute;
      inset:0;
      width:40%;
      border-radius:999px;
      background: var(--gauge-color, #f59e0b);
      box-shadow: 0 0 16px var(--gauge-color, #f59e0b);
      transform: translateX(-60%);
    }
    .gauge.run .gauge-fill{
      animation: gaugeSweep 1.2s linear infinite;
    }
    .gauge.idle { --gauge-color:#f59e0b; }
    .gauge.ok   { --gauge-color:#22c55e; }
    .gauge.err  { --gauge-color:#ef4444; }
    .gauge.ok .gauge-fill{ width:100%; transform:none; }
    .gauge.err .gauge-fill{ width:100%; transform:none; animation: robotPulse 0.55s ease-in-out infinite; }
    @keyframes gaugeSweep{
      0%{ transform: translateX(-70%); width:35%; }
      50%{ transform: translateX(40%); width:55%; }
      100%{ transform: translateX(140%); width:35%; }
    }

    .dash-wrap{
      margin-top: 8px;
      display:flex;
      flex-direction:column;
      gap:14px;
    }

    .overview-metric-grid{
      display:grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .overview-metric-card{
      border: 1px solid rgba(148,163,184,0.16);
      background: linear-gradient(180deg, rgba(30,41,59,0.84), rgba(15,23,42,0.84));
      border-radius: 18px;
      padding: 14px 16px 12px;
      min-height: 156px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }

    .overview-metric-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }

    .overview-metric-label{
      font-size: 0.76rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #cbd5e1;
    }

    .overview-metric-delta{
      color: #4ade80;
      font-size: 0.92rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .overview-metric-delta.is-down{
      color: #f87171;
    }

    .overview-metric-value{
      font-size: clamp(1.8rem, 2.5vw, 2.4rem);
      line-height: 1;
      font-weight: 800;
      color: #f8fafc;
      font-variant-numeric: tabular-nums;
    }

    .overview-metric-note{
      color: #94a3b8;
      font-size: 0.84rem;
      line-height: 1.4;
      min-height: 2.35em;
    }

    .overview-sparkline{
      margin-top: auto;
      min-height: 48px;
    }

    .overview-grid{
      display:grid;
      gap:12px;
      grid-auto-flow:dense;
      align-items:start;
    }

    .overview-grid--primary,
    .overview-grid--secondary,
    .overview-grid--tertiary,
    .overview-grid--risk,
    .overview-grid--feature-rail,
    .overview-grid--split-heavy{
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    }

    .overview-grid--triad,
    .overview-grid--duo{
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    .overview-card{
      border: 1px solid rgba(148,163,184,0.14);
      background: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(15,23,42,0.86));
      border-radius: 20px;
      padding: 16px 18px;
      min-width: 0;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    }

    .overview-card--span-2{
      grid-column:auto;
    }

    .overview-grid--primary > .overview-card--span-2,
    .overview-grid--secondary > .overview-card--span-2,
    .overview-grid--tertiary > .overview-card--span-2,
    .overview-grid--risk > .overview-card--span-2,
    .overview-grid--split-heavy > .overview-card--span-2{
      grid-column:auto;
    }

    .overview-risk-card{
      background:
        radial-gradient(circle at 18% 8%, rgba(249,115,22,0.14), transparent 32%),
        linear-gradient(180deg, rgba(17,24,39,0.94), rgba(15,23,42,0.88));
    }

    .overview-risk-score-row{
      display:grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 14px;
      align-items:center;
      margin-bottom: 14px;
    }

    .overview-risk-score{
      width: 78px;
      height: 78px;
      border-radius: 18px;
      display:flex;
      align-items:center;
      justify-content:center;
      color:#fff7ed;
      font-size: 1.9rem;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      background: linear-gradient(180deg, rgba(249,115,22,0.32), rgba(234,88,12,0.18));
      border: 1px solid rgba(251,146,60,0.32);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .overview-risk-level{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height: 30px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border: 1px solid rgba(255,255,255,0.12);
      color:#e5e7eb;
      background: rgba(148,163,184,0.16);
      margin-bottom: 8px;
    }

    .overview-risk-level--low{ color:#bbf7d0; background:rgba(34,197,94,0.16); border-color:rgba(34,197,94,0.3); }
    .overview-risk-level--mild{ color:#fef3c7; background:rgba(245,158,11,0.16); border-color:rgba(245,158,11,0.3); }
    .overview-risk-level--medium{ color:#fed7aa; background:rgba(249,115,22,0.18); border-color:rgba(249,115,22,0.32); }
    .overview-risk-level--high{ color:#fecaca; background:rgba(239,68,68,0.18); border-color:rgba(239,68,68,0.32); }
    .overview-risk-level--critical{ color:#ffe4e6; background:rgba(190,18,60,0.28); border-color:rgba(244,63,94,0.42); }

    .overview-risk-action{
      color:#cbd5e1;
      font-size: 0.86rem;
      line-height: 1.45;
      overflow-wrap:anywhere;
    }

    .overview-risk-reasons{
      display:flex;
      flex-wrap:wrap;
      gap: 8px;
    }

    .overview-risk-reason{
      display:inline-flex;
      align-items:center;
      max-width:100%;
      padding: 6px 9px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.12);
      background: rgba(255,255,255,0.04);
      color:#dbeafe;
      font-size: 0.78rem;
      line-height: 1.25;
      overflow-wrap:anywhere;
    }

    .overview-card-head{
      display:flex;
      flex-wrap: wrap;
      align-items:flex-start;
      justify-content:space-between;
      gap: 10px 14px;
      margin-bottom: 12px;
    }

    .overview-card-head > :first-child{
      min-width: 0;
    }

    .overview-card-tools{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      justify-content:flex-end;
      gap: 8px 10px;
      min-width: 0;
      margin-left: auto;
    }

    .overview-card-label{
      color: #f59e0b;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .overview-card h4{
      margin: 0;
      font-size: 1rem;
      font-weight: 700;
      color: #f8fafc;
      line-height: 1.15;
    }

    .overview-card-meta{
      color: #94a3b8;
      font-size: 0.82rem;
      text-align: right;
      line-height: 1.35;
      max-width: 140px;
      margin-left: auto;
      overflow-wrap: anywhere;
    }

    .overview-sentiment-shell{
      display:grid;
      grid-template-columns: minmax(0, 1fr) minmax(240px, 0.95fr);
      gap: 16px;
      align-items:start;
    }

    .overview-sentiment-chart{
      position: relative;
      height: clamp(200px, 18vw, 250px);
      min-height: 0;
      max-height: 250px;
    }

    .overview-sentiment-center{
      position: absolute;
      inset: 50% auto auto 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-size: clamp(1.5rem, 2vw, 1.9rem);
      font-weight: 800;
      color: #f8fafc;
      pointer-events: none;
      text-align: center;
      width: 108px;
      line-height: 1.05;
      padding: 0 8px;
    }

    .overview-sentiment-center span{
      font-size: 0.9rem;
      font-weight: 600;
      color: #cbd5e1;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .overview-sentiment-legend{
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    .overview-sentiment-stat{
      display:grid;
      grid-template-columns:minmax(0, 1fr) auto;
      align-items:center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(148,163,184,0.08);
    }

    .overview-sentiment-stat-label{
      display:flex;
      align-items:center;
      gap: 8px;
      color: #e5e7eb;
      font-weight: 600;
      min-width: 0;
      line-height: 1.2;
    }

    .overview-sentiment-dot{
      width: 10px;
      height: 10px;
      border-radius: 999px;
      flex: 0 0 auto;
    }

    .overview-sentiment-value{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap: 8px;
      font-variant-numeric: tabular-nums;
      color: #f8fafc;
      font-weight: 700;
      text-align: right;
      min-width: max-content;
      flex: 0 0 auto;
    }

    .overview-sentiment-pct,
    .overview-sentiment-count{
      display:inline-block;
      white-space: nowrap;
    }

    .overview-sentiment-sep{
      color: #94a3b8;
      flex: 0 0 auto;
    }

    @media (max-width: 1440px){
      .overview-sentiment-stat{
        grid-template-columns: 1fr;
        align-items: flex-start;
      }
      .overview-sentiment-value{
        justify-content: flex-start;
      }
    }

    .overview-table-shell{
      overflow:auto;
    }

    .overview-table{
      width:100%;
      border-collapse:collapse;
      font-size: 0.9rem;
    }

    .overview-table th,
    .overview-table td{
      padding: 11px 0;
      border-bottom: 1px solid rgba(148,163,184,0.12);
      text-align:left;
      vertical-align:top;
      color: #e5e7eb;
    }

    .overview-table th{
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #94a3b8;
      font-weight: 700;
    }

    .overview-source-name{
      display:flex;
      align-items:center;
      gap: 10px;
      font-weight: 600;
      color: #f8fafc;
    }

    .overview-source-icon{
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size: 0.9rem;
      background: rgba(249,115,22,0.16);
      color: #fdba74;
      border: 1px solid rgba(249,115,22,0.2);
      flex: 0 0 auto;
    }

    .overview-source-pct{
      color: #cbd5e1;
      font-variant-numeric: tabular-nums;
    }

    .overview-geo-shell{
      display:grid;
      grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
      gap: 14px;
      align-items:flex-start;
    }

    .overview-geo-heat{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .overview-geo-tile{
      min-height: 84px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.05);
      padding: 12px;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      background: rgba(255,255,255,0.03);
      color: #fff7ed;
    }

    .overview-geo-code{
      font-size: 0.76rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255,247,237,0.9);
    }

    .overview-geo-count{
      font-size: 1.2rem;
      font-weight: 800;
      color: #ffffff;
      font-variant-numeric: tabular-nums;
    }

    .overview-geo-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }

    .overview-geo-row{
      display:grid;
      grid-template-columns: minmax(110px, 1fr) minmax(0, 1fr) auto;
      gap: 10px;
      align-items:center;
    }

    .overview-geo-name,
    .overview-geo-val{
      color: #e5e7eb;
      font-size: 0.9rem;
    }

    .overview-geo-val{
      font-variant-numeric: tabular-nums;
      text-align:right;
      color: #f8fafc;
      font-weight: 700;
    }

    .overview-geo-bar{
      height: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow:hidden;
    }

    .overview-geo-bar > span{
      display:block;
      height:100%;
      border-radius:inherit;
      background: linear-gradient(90deg, #fdba74, #f97316);
    }

    .overview-stack-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }

    .overview-stack-item{
      display:grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 12px;
      align-items:flex-start;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(148,163,184,0.08);
    }

    .overview-stack-icon{
      width: 34px;
      height: 34px;
      border-radius: 999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size: 0.92rem;
      color: #fff7ed;
      flex: 0 0 auto;
    }

    .overview-stack-icon.is-high{ background: rgba(239,68,68,0.22); color: #fecaca; }
    .overview-stack-icon.is-critical{ background: rgba(190,18,60,0.28); color: #ffe4e6; }
    .overview-stack-icon.is-low{ background: rgba(34,197,94,0.18); color: #bbf7d0; }
    .overview-stack-icon.is-mild{ background: rgba(245,158,11,0.18); color: #fef3c7; }
    .overview-stack-icon.is-medium{ background: rgba(249,115,22,0.2); color: #fdba74; }
    .overview-stack-icon.is-info{ background: rgba(59,130,246,0.2); color: #bfdbfe; }
    .overview-stack-icon.is-source{ background: rgba(249,115,22,0.18); color: #fdba74; }
    .overview-stack-icon.is-feed{ background: rgba(56,189,248,0.18); color: #bae6fd; }

    .overview-stack-main{
      min-width: 0;
      display:flex;
      flex-direction:column;
      gap: 4px;
    }

    .overview-stack-title{
      color: #f8fafc;
      font-weight: 700;
      font-size: 0.92rem;
      line-height: 1.25;
    }

    .overview-stack-text{
      margin-top: 4px;
      color: #cbd5e1;
      font-size: 0.84rem;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .overview-stack-time{
      color: #94a3b8;
      font-size: 0.76rem;
      white-space: normal;
      text-align: left;
      grid-column: 2;
      margin-top: 2px;
    }

    .overview-hot-shell{
      overflow-x: auto;
      padding-bottom: 4px;
    }

    .overview-hot-grid{
      display: grid;
      grid-template-columns: 42px repeat(24, minmax(18px, 1fr));
      gap: 6px 7px;
      align-items: center;
      min-width: 720px;
    }

    .overview-hot-axis,
    .overview-hot-day{
      color: #94a3b8;
      font-size: 0.72rem;
      line-height: 1.1;
    }

    .overview-hot-axis{
      text-align: center;
      white-space: nowrap;
      transform: rotate(-38deg);
      transform-origin: center;
      min-height: 42px;
      display:flex;
      align-items:flex-end;
      justify-content:center;
      padding-bottom: 4px;
    }

    .overview-hot-day{
      font-weight: 700;
      color: #cbd5e1;
      white-space: nowrap;
    }

    .overview-hot-cell{
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(148,163,184,0.12);
      justify-self: center;
    }

    .overview-hot-cell.is-low{ background: rgba(148,163,184,0.22); }
    .overview-hot-cell.is-mid{ background: rgba(125,211,252,0.78); }
    .overview-hot-cell.is-high{ background: rgba(96,165,250,0.9); }
    .overview-hot-cell.is-top{ background: rgba(139,92,246,0.92); }

    .overview-source-platform{
      color: #94a3b8;
      font-size: 0.8rem;
      font-weight: 600;
      white-space: nowrap;
    }

    .overview-source-main{
      display:flex;
      flex-direction:column;
      gap: 3px;
      min-width:0;
    }

    .overview-source-main span:last-child{
      overflow-wrap: anywhere;
    }

    .overview-table--followers td{
      vertical-align: middle;
    }

    .overview-toggle-group{
      display:inline-flex;
      align-items:center;
      gap: 4px;
      padding: 4px;
      border-radius: 999px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(148,163,184,0.12);
    }

    .overview-toggle-btn{
      border: 0;
      background: transparent;
      color: #94a3b8;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 7px 10px;
      border-radius: 999px;
      cursor: pointer;
      transition: background .15s ease, color .15s ease, box-shadow .15s ease;
      white-space: nowrap;
    }

    .overview-toggle-btn.is-active{
      background: rgba(249,115,22,0.18);
      color: #fff7ed;
      box-shadow: inset 0 0 0 1px rgba(249,115,22,0.28);
    }

    .overview-switch{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      color: #cbd5e1;
      font-size: 0.78rem;
      font-weight: 600;
      white-space: nowrap;
    }

    .overview-switch input{
      accent-color: #f97316;
    }

    .overview-cloud{
      min-height: 220px;
      padding: 10px 8px;
      display:flex;
      flex-wrap:wrap;
      align-content:flex-start;
      gap: 10px 14px;
    }

    .overview-cloud--emoji{
      align-items:center;
      justify-content:center;
      gap: 14px 20px;
    }

    .overview-cloud-word{
      color: #dbeafe;
      font-weight: 700;
      line-height: 1;
      opacity: 0.95;
    }

    .overview-cloud-word.is-positive{ color: #4ade80; }
    .overview-cloud-word.is-negative{ color: #f87171; }
    .overview-cloud-word.is-neutral{ color: #cbd5e1; }

    .overview-cloud-emoji{
      line-height: 1;
      filter: drop-shadow(0 10px 18px rgba(15,23,42,0.2));
    }

    .overview-chart-stack{
      display:flex;
      flex-direction:column;
      gap: 12px;
      min-width: 0;
    }

    .overview-chart-compact{
      height: clamp(180px, 18vw, 240px);
      min-height: 0;
      max-height: 240px;
      position: relative;
      display:flex;
      align-items:center;
      justify-content:center;
      overflow:hidden;
    }

    .overview-chart-compact canvas,
    .overview-sentiment-chart canvas{
      display:block;
      width:100% !important;
      height:100% !important;
      max-height:100% !important;
    }

    .overview-legend-list{
      display:flex;
      flex-direction:column;
      gap: 8px;
    }

    .overview-legend-item{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      padding: 9px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(148,163,184,0.08);
    }

    .overview-legend-item-left{
      display:flex;
      align-items:center;
      gap: 8px;
      min-width: 0;
      color: #e5e7eb;
      font-weight: 600;
    }

    .overview-legend-swatch{
      width: 10px;
      height: 10px;
      border-radius: 999px;
      flex: 0 0 auto;
    }

    .overview-legend-value{
      color: #f8fafc;
      font-variant-numeric: tabular-nums;
      font-weight: 700;
      white-space: nowrap;
    }

    .overview-link{
      color: #bfdbfe;
      text-decoration: none;
      overflow-wrap: anywhere;
    }

    .overview-destination-cell{
      display:flex;
      flex-direction:column;
      gap: 3px;
      min-width:0;
    }

    .overview-destination-cell span:last-child{
      color: #94a3b8;
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1.25;
      overflow-wrap:anywhere;
    }

    .overview-destination-label{
      color:#e5e7eb;
      font-weight:800;
      overflow-wrap:anywhere;
    }

    #overviewTrendingLinksBody .overview-link{
      display:inline-block;
      max-width:100%;
      word-break:normal;
    }

    .overview-table--links{
      table-layout:fixed;
    }

    #overviewTrendingLinksBody td:first-child{
      width:82%;
    }

    #overviewTrendingLinksBody td:last-child{
      white-space:nowrap;
    }

    .overview-link:hover{
      color: #ffffff;
      text-decoration: underline;
    }

    .overview-drilldown-modal{
      position:fixed;
      inset:0;
      z-index:1140;
      display:none;
      align-items:center;
      justify-content:center;
      padding:24px;
    }

    .overview-drilldown-modal.show{
      display:flex;
    }

    body.overview-drilldown-open{
      overflow:hidden;
    }

    .overview-drilldown-backdrop{
      position:absolute;
      inset:0;
      background:rgba(2,6,23,0.68);
      backdrop-filter:blur(10px);
      -webkit-backdrop-filter:blur(10px);
    }

    .overview-drilldown-card{
      position:relative;
      width:min(1040px, calc(100vw - 32px));
      max-height:calc(100vh - 48px);
      overflow:auto;
      border-radius:22px;
      border:1px solid rgba(255,255,255,0.16);
      background:linear-gradient(145deg, rgba(15,23,42,0.98), rgba(18,32,45,0.96));
      box-shadow:0 32px 90px rgba(0,0,0,0.48);
      padding:18px;
    }

    .overview-drilldown-head{
      display:flex;
      justify-content:space-between;
      gap:16px;
      align-items:flex-start;
      padding-bottom:14px;
      border-bottom:1px solid rgba(148,163,184,0.16);
    }

    .overview-drilldown-head h3{
      margin:4px 0 4px;
      color:#f8fafc;
      font-size:1.18rem;
      line-height:1.25;
    }

    .overview-drilldown-summary{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin:14px 0;
    }

    .overview-drilldown-chip{
      display:inline-flex;
      align-items:center;
      gap:6px;
      min-height:30px;
      padding:0 10px;
      border-radius:999px;
      background:rgba(255,255,255,0.06);
      border:1px solid rgba(255,255,255,0.12);
      color:#e5e7eb;
      font-size:0.78rem;
      font-weight:700;
    }

    .overview-drilldown-list{
      display:grid;
      gap:10px;
    }

    .overview-drilldown-item{
      display:grid;
      gap:9px;
      padding:13px 14px;
      border-radius:16px;
      border:1px solid rgba(148,163,184,0.14);
      background:rgba(15,23,42,0.58);
    }

    .overview-drilldown-item-head{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
    }

    .overview-drilldown-title{
      color:#f8fafc;
      font-weight:800;
      line-height:1.28;
      min-width:0;
      overflow-wrap:anywhere;
    }

    .overview-drilldown-meta{
      color:#94a3b8;
      font-size:0.78rem;
      font-weight:700;
      white-space:nowrap;
    }

    .overview-drilldown-text{
      color:#cbd5e1;
      font-size:0.88rem;
      line-height:1.52;
      overflow-wrap:anywhere;
    }

    .overview-drilldown-actions{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      align-items:center;
    }

    .overview-drilldown-source{
      color:#fdba74;
      font-size:0.78rem;
      font-weight:800;
      letter-spacing:0.08em;
      text-transform:uppercase;
    }

    .overview-drilldown-link{
      color:#bfdbfe;
      text-decoration:none;
      overflow-wrap:anywhere;
      font-size:0.84rem;
      font-weight:700;
    }

    .overview-drilldown-link:hover{
      color:#ffffff;
      text-decoration:underline;
    }

    .overview-drilldown-empty{
      padding:18px;
      border-radius:16px;
      background:rgba(255,255,255,0.04);
      border:1px solid rgba(148,163,184,0.14);
      color:#cbd5e1;
    }

    .overview-drillable,
    .overview-card canvas{
      cursor:pointer;
    }

    button.overview-drillable,
    button.overview-legend-item,
    button.overview-sentiment-stat,
    button.overview-geo-tile,
    button.overview-geo-row,
    button.overview-cloud-word,
    button.overview-cloud-emoji,
    button.overview-hot-cell{
      font:inherit;
      color:inherit;
      text-align:left;
      appearance:none;
      -webkit-appearance:none;
    }

    button.overview-legend-item,
    button.overview-sentiment-stat{
      width:100%;
    }

    button.overview-cloud-word,
    button.overview-cloud-emoji{
      border:0;
      background:transparent;
      padding:0;
    }

    button.overview-hot-cell{
      padding:0;
    }

    button.overview-geo-row{
      width:100%;
      border:0;
      background:transparent;
    }

    .overview-legend-item.overview-drillable,
    .overview-sentiment-stat.overview-drillable,
    .overview-geo-tile.overview-drillable,
    .overview-geo-row.overview-drillable,
    .overview-table tbody tr.overview-drillable{
      transition:background .15s ease, border-color .15s ease, transform .15s ease;
    }

    .overview-legend-item.overview-drillable:hover,
    .overview-sentiment-stat.overview-drillable:hover,
    .overview-geo-tile.overview-drillable:hover,
    .overview-geo-row.overview-drillable:hover,
    .overview-table tbody tr.overview-drillable:hover{
      background:rgba(249,115,22,0.12);
      border-color:rgba(249,115,22,0.28);
    }

    .overview-geo-tile.overview-drillable:hover{
      transform:translateY(-1px);
    }

    @media (max-width: 680px){
      .overview-drilldown-modal{
        align-items:flex-start;
        padding:12px;
      }
      .overview-drilldown-card{
        width:100%;
        max-height:calc(100vh - 24px);
        border-radius:18px;
        padding:14px;
      }
      .overview-drilldown-head,
      .overview-drilldown-item-head{
        display:grid;
      }
      .overview-drilldown-meta{
        white-space:normal;
      }
    }

    .overview-presence-shell{
      display:grid;
      grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
      gap: 16px;
      align-items:center;
    }

    .overview-gauge{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap: 10px;
      text-align:center;
    }

    .overview-gauge-ring{
      --pct: 0;
      width: 176px;
      height: 176px;
      border-radius: 999px;
      background:
        radial-gradient(circle at center, rgba(15,23,42,0.96) 0 58%, transparent 59%),
        conic-gradient(#3b82f6 calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
      display:grid;
      place-items:center;
      box-shadow: inset 0 0 0 1px rgba(148,163,184,0.1);
    }

    .overview-gauge-center{
      font-size: 2.35rem;
      font-weight: 800;
      color: #f8fafc;
      font-variant-numeric: tabular-nums;
    }

    .overview-gauge-caption{
      color: #cbd5e1;
      font-size: 0.9rem;
      line-height: 1.45;
      max-width: 220px;
    }

    .overview-mention-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }

    .overview-mention-card{
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(148,163,184,0.08);
      display:flex;
      flex-direction:column;
      gap: 8px;
    }

    .overview-mention-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 12px;
    }

    .overview-mention-title{
      color: #f8fafc;
      font-weight: 700;
      font-size: 0.98rem;
      line-height: 1.35;
      min-width: 0;
    }

    .overview-mention-meta{
      display:flex;
      flex-wrap:wrap;
      gap: 8px 12px;
      color: #94a3b8;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .overview-mention-copy{
      color: #cbd5e1;
      font-size: 0.88rem;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    .overview-mention-foot{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      justify-content:space-between;
      gap: 10px 14px;
      color: #94a3b8;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .overview-sentiment-pill{
      display:inline-flex;
      align-items:center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.74rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .overview-sentiment-pill.is-positive{ background: rgba(74,222,128,0.15); color: #bbf7d0; }
    .overview-sentiment-pill.is-neutral{ background: rgba(203,213,225,0.12); color: #e2e8f0; }
    .overview-sentiment-pill.is-negative{ background: rgba(248,113,113,0.15); color: #fecaca; }

    .overview-mini-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .overview-mini-grid--stacked{
      grid-template-columns: minmax(0, 1fr);
    }

    .overview-mini-stat{
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(148,163,184,0.08);
      display:flex;
      flex-direction:column;
      gap: 6px;
      min-width: 0;
    }

    .overview-mini-label{
      color: #94a3b8;
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .overview-mini-value{
      color: #f8fafc;
      font-size: 1.15rem;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .overview-mini-note{
      color: #cbd5e1;
      font-size: 0.82rem;
      line-height: 1.45;
    }

    .overview-snippet-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .dash-summary,
    .overview-snippet-list{
      font-size: 0.92rem;
      color: #cbd5e1;
      line-height: 1.6;
    }

    .overview-snippet-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }

    .overview-snippet-item{
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(148,163,184,0.08);
      color: #e5e7eb;
    }

    .overview-snippet-item strong{
      color: #f8fafc;
    }

    .mini-list{
      display:flex;
      flex-direction:column;
      gap:8px;
    }

    .mini-item{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:8px 10px;
      border:1px solid rgba(148,163,184,0.18);
      border-radius:12px;
      background: rgba(255,255,255,0.03);
    }

    .mini-item .name{
      font-weight:700;
      color:#f8fafc;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .mini-item .val{
      font-variant-numeric: tabular-nums;
      font-weight:800;
      color:#f8fafc;
    }

    .pub-table{
      width:100%;
      border-collapse:collapse;
      font-size:13px;
      overflow:hidden;
      border-radius:14px;
      border:1px solid rgba(148,163,184,0.18);
      background: rgba(15,23,42,0.72);
    }

    .pub-table th,.pub-table td{
      padding:10px 12px;
      border-bottom:1px solid rgba(148,163,184,0.18);
      text-align:left;
      vertical-align:top;
      color: #e5e7eb;
    }

    .pub-table th{
      color:#cbd5e1;
      font-size:12px;
      letter-spacing:0.08em;
      text-transform:uppercase;
      background:rgba(249,115,22,0.12);
    }

    .pub-table tbody tr:nth-child(odd){background:rgba(255,255,255,0.02)}
    .pub-table tbody tr:hover{background:rgba(249,115,22,0.08)}

    @media (max-width: 1220px){
      .overview-metric-grid,
      .overview-snippet-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .overview-grid--primary,
      .overview-grid--secondary,
      .overview-grid--tertiary,
      .overview-grid--triad,
      .overview-grid--duo,
      .overview-grid--risk,
      .overview-grid--feature-rail,
      .overview-grid--split-heavy{
        grid-template-columns: 1fr;
      }
      .overview-card--span-2{
        grid-column: span 1;
      }
      .overview-geo-shell{
        grid-template-columns: 1fr;
      }
      .overview-presence-shell{
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 860px){
      .reporting-panel{
        padding: 16px;
        border-radius: 22px;
      }
      .reporting-hero{
        flex-direction: column;
      }
      .reporting-hero-actions,
      .reporting-toolbar{
        align-items: stretch;
      }
      .reporting-hero-actions > *,
      .reporting-toolbar-left > *,
      .reporting-toolbar-right > *{
        width: 100%;
      }
      .overview-metric-grid,
      .overview-snippet-grid{
        grid-template-columns: 1fr;
      }
      .overview-mini-grid{
        grid-template-columns: 1fr;
      }
      .overview-sentiment-shell{
        grid-template-columns: 1fr;
      }
      .overview-sentiment-stat{
        grid-template-columns: 1fr;
        align-items:flex-start;
      }
      .overview-sentiment-value{
        justify-content:flex-start;
      }
      .overview-geo-heat{
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .overview-stack-item{
        grid-template-columns: auto minmax(0, 1fr);
      }
      .overview-hot-grid{
        min-width: 660px;
      }
      .overview-cloud{
        min-height: 180px;
      }
      .overview-card-tools{
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
      }
    }



    /* ===== Premium Report Studio (b98) ===== */
    #report-panel{overflow:hidden}
    #report-panel *, #rsCampaignPicker *{box-sizing:border-box}
    .rs-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}
    .rs-picker-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start}
    .rs-picker-actions > *{flex:1 1 220px}
    .rs-wrap{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:14px;align-items:start;max-width:100%}
    .rs-sidebar{position:sticky;top:14px;max-height:calc(100vh - 120px);overflow:auto;overflow-x:hidden;padding:12px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));backdrop-filter:blur(10px)}
    .rs-scope{font-weight:800;padding:10px 12px;border-radius:8px;border:1px solid rgba(249,115,22,.35);background:rgba(249,115,22,.10);color:var(--text);margin-bottom:10px;overflow-wrap:anywhere}
    .rs-nav{width:100%;text-align:left;padding:10px 12px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--muted);cursor:pointer;font-weight:750;margin-bottom:6px;line-height:1.35}
    .rs-nav.active{background:rgba(249,115,22,.14);border-color:rgba(249,115,22,.35);color:var(--text)}
    .rs-actions{display:grid;gap:10px;margin-top:12px}
    .rs-actions .btn-secondary{width:100%}
    .rs-main,.rs-topbar,.rs-meta,.rs-kpis,.rs-kpi,.rs-grid,.rs-card,.rs-section,.rs-sections,.rs-detail-grid,.rs-detail-card,.rs-detail-kpis,.rs-detail-kpi,.rs-split-grid,.rs-surface-card,.rs-stat-grid,.rs-stat-card{min-width:0}
    .rs-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;margin-bottom:12px}
    .rs-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
    .rs-period,.rs-platforms{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-weight:700;white-space:normal;overflow-wrap:anywhere}
    .rs-hint{color:var(--muted);font-weight:650;max-width:280px;text-align:right;align-self:center}
    .rs-source-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
    .rs-source-tab{border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:10px 12px;border-radius:8px;cursor:pointer;font-weight:800;line-height:1.2}
    .rs-source-tab.active{background:rgba(249,115,22,.12);border-color:rgba(249,115,22,.35);color:var(--text)}
    .rs-source-tab:disabled{opacity:.48;cursor:not-allowed}
    .rs-kpis{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:12px;margin:12px 0 14px;align-items:start}
    .rs-kpi{grid-column:span var(--rs-card-span,3);border:1px solid rgba(148,163,184,0.18);border-radius:18px;background:linear-gradient(180deg,#ffffff,rgba(249,250,251,0.96));padding:14px;overflow:hidden;box-shadow:0 14px 28px rgba(15,23,42,0.06);height:var(--rs-card-height,auto);min-height:0;align-self:start;position:relative}
    .rs-drillable{cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease}
    .rs-drillable:hover{border-color:rgba(249,115,22,.45)!important;box-shadow:0 14px 34px rgba(249,115,22,.14)}
    .rs-drillable:focus-visible{outline:3px solid rgba(59,130,246,.75);outline-offset:3px}
    .rs-drillable-canvas{cursor:pointer}
    .rs-kpi-label{color:var(--muted);font-weight:800;font-size:.85rem}
    .rs-kpi-value{font-weight:900;font-size:1.55rem;margin-top:4px;overflow-wrap:anywhere}
    .rs-spark{display:block;width:100% !important;max-width:100%;margin-top:8px;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.12)}
    .rs-grid,.rs-grid-visuals{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:14px;margin-bottom:14px;align-items:start}
    .rs-card{display:block;width:100%;grid-column:span var(--rs-card-span,6);margin:0;border:1px solid rgba(148,163,184,0.18);border-radius:18px;background:linear-gradient(180deg,#ffffff,rgba(249,250,251,0.98));padding:14px;overflow:hidden;box-shadow:0 14px 30px rgba(15,23,42,0.06);height:var(--rs-card-height,auto);min-height:0;vertical-align:top;break-inside:avoid;page-break-inside:avoid;position:relative}
    .rs-card-title{font-weight:900;margin-bottom:8px;overflow-wrap:anywhere;font-size:1.02rem}
    .rs-card-sub{color:var(--muted);margin-top:8px;font-weight:650;white-space:pre-line;overflow-wrap:anywhere}
    .rs-quality-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
    .rs-quality-tab{border:1px solid rgba(148,163,184,0.18);background:rgba(15,23,42,.68);color:#cbd5e1;padding:10px 14px;border-radius:999px;cursor:pointer;font-weight:850;transition:border-color .15s ease,background .15s ease,color .15s ease}
    .rs-quality-tab:hover{border-color:rgba(249,115,22,.34);background:rgba(30,41,59,.84);color:#fff}
    .rs-quality-tab.active{background:linear-gradient(180deg,rgba(249,115,22,.18),rgba(249,115,22,.08));border-color:rgba(249,115,22,.42);color:#fff}
    .rs-quality-pane{display:none}
    .rs-quality-pane.active{display:block}
    .rs-detail-shell{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:14px;margin:0 0 14px}
    .rs-detail-nav{display:grid;gap:12px;align-self:start;position:sticky;top:14px;padding:12px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(15,23,42,.72));backdrop-filter:blur(10px)}
    .rs-detail-group{display:grid;gap:6px}
    .rs-detail-heading{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;font-weight:900;padding:2px 4px}
    .rs-detail-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(148,163,184,0.14);background:rgba(15,23,42,.74);color:#cbd5e1;cursor:pointer;font-weight:780;text-align:left;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}
    .rs-detail-btn:hover{border-color:rgba(249,115,22,.4);background:rgba(30,41,59,.9);color:#fff;transform:translateY(-1px)}
    .rs-detail-btn.active{background:linear-gradient(180deg,rgba(249,115,22,.18),rgba(249,115,22,.08));border-color:rgba(249,115,22,.45);color:#fff;box-shadow:0 0 0 1px rgba(249,115,22,.15) inset}
    .rs-detail-btn > span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .rs-detail-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;font-weight:900}
    .rs-detail-badge--purple{background:rgba(168,85,247,.14);border:1px solid rgba(168,85,247,.35);color:#e9d5ff}
    .rs-detail-badge--blue{background:rgba(59,130,246,.14);border:1px solid rgba(59,130,246,.35);color:#bfdbfe}
    .rs-detail-main{min-width:0;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(15,23,42,.80));padding:16px;box-shadow:0 14px 36px rgba(2,6,23,.22)}
    .rs-detail-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
    .rs-detail-kicker{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#f59e0b;font-weight:900}
    .rs-detail-title{font-size:1.55rem;font-weight:950;color:#f8fafc;line-height:1.15;margin-top:4px}
    .rs-detail-meta{max-width:440px;color:#94a3b8;font-weight:650;line-height:1.45;text-align:right}
    .rs-detail-content{display:grid;gap:14px}
    .rs-detail-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:14px;align-items:start}
    .rs-detail-grid > .rs-detail-card{grid-column:span var(--rs-card-span,4)}
    .rs-detail-grid--2 > .rs-detail-card{grid-column:span var(--rs-card-span,6)}
    .rs-detail-grid--4 > .rs-detail-card{grid-column:span var(--rs-card-span,3)}
    .rs-detail-card{border:1px solid rgba(148,163,184,.14);border-radius:18px;background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(30,41,59,.86));padding:14px;min-width:0;height:var(--rs-card-height,auto);min-height:0;align-self:start;position:relative;overflow:hidden}
    .rs-detail-card-title{font-size:1.02rem;font-weight:900;color:#f8fafc;margin-bottom:10px}
    .rs-detail-note{margin-top:10px;color:#94a3b8;font-size:.9rem;line-height:1.45}
    .rs-detail-kpis{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:12px;align-items:start}
    .rs-detail-kpi{grid-column:span var(--rs-card-span,3);border:1px solid rgba(148,163,184,.14);border-radius:16px;background:rgba(15,23,42,.76);padding:14px;height:var(--rs-card-height,auto);min-height:0;align-self:start;position:relative;overflow:hidden}
    .rs-detail-kpi-label{font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;font-weight:900}
    .rs-detail-kpi-value{font-size:1.45rem;font-weight:950;color:#fff;margin-top:8px}
    .rs-detail-kpi-note{margin-top:6px;color:#94a3b8;font-size:.9rem;line-height:1.4}
    .rs-detail-table{width:100%;border-collapse:collapse;table-layout:fixed}
    .rs-detail-table th,.rs-detail-table td{padding:10px 0;border-bottom:1px solid rgba(148,163,184,.10);text-align:left;vertical-align:top}
    .rs-detail-table th{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;font-weight:900}
    .rs-detail-table td{color:#e5e7eb;overflow-wrap:anywhere}
    .rs-detail-table tr:last-child td{border-bottom:0}
    .rs-detail-table a{color:#fdba74}
    .rs-detail-metric{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(148,163,184,.10)}
    .rs-detail-metric:last-child{border-bottom:0;padding-bottom:0}
    .rs-detail-metric strong{color:#fff;font-size:1.12rem}
    .rs-detail-metric span{color:#cbd5e1;font-weight:700}
    .rs-detail-rich-list{display:grid;gap:10px}
    .rs-detail-rich-item{border:1px solid rgba(148,163,184,.12);border-radius:14px;background:rgba(15,23,42,.72);padding:12px}
    .rs-detail-rich-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
    .rs-detail-rich-title{font-weight:900;color:#fff;line-height:1.3}
    .rs-detail-rich-meta{margin-top:4px;color:#94a3b8;font-size:.88rem}
    .rs-detail-rich-copy{margin-top:8px;color:#cbd5e1;line-height:1.5}
    .rs-detail-rich-foot{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;color:#94a3b8;font-size:.84rem}
    .rs-detail-chip-cloud{display:flex;flex-wrap:wrap;gap:10px}
    .rs-detail-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(148,163,184,.14);color:#e5e7eb;font-weight:760}
    .rs-detail-chip--soft{background:rgba(249,115,22,.10);border-color:rgba(249,115,22,.18);color:#fdba74}
    .rs-detail-actions{display:flex;flex-wrap:wrap;gap:10px}
    .rs-detail-btn-secondary{padding:10px 14px;border-radius:12px;border:1px solid rgba(148,163,184,.18);background:rgba(15,23,42,.72);color:#fff;font-weight:820;cursor:pointer}
    .rs-detail-btn-secondary:hover{border-color:rgba(249,115,22,.4);background:rgba(30,41,59,.88)}
    .rs-detail-copybox{padding:14px;border-radius:16px;border:1px solid rgba(148,163,184,.14);background:rgba(15,23,42,.76);color:#e5e7eb;line-height:1.6;white-space:pre-wrap}
    .rs-detail-empty{padding:14px;border-radius:16px;border:1px dashed rgba(148,163,184,.22);background:rgba(15,23,42,.48);color:#94a3b8}
    .rs-detail-legend{display:grid;gap:8px}
    .rs-detail-legend-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
    .rs-detail-legend-left{display:flex;align-items:center;gap:8px;color:#e5e7eb}
    .rs-detail-swatch{width:12px;height:12px;border-radius:999px;display:inline-block}
    .rs-detail-wordcloud{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
    .rs-detail-word{display:inline-flex;align-items:center;line-height:1;padding:4px 0;color:#dbeafe}
    .rs-detail-word--positive{color:#86efac}
    .rs-detail-word--negative{color:#fda4af}
    .rs-detail-word--neutral{color:#cbd5e1}
    .rs-detail-heatmap{display:grid;gap:10px}
    .rs-detail-heat-head,.rs-detail-heat-row{display:grid;grid-template-columns:64px repeat(24,minmax(0,1fr));gap:6px;align-items:center}
    .rs-detail-heat-label{color:#94a3b8;font-size:.85rem;font-weight:800}
    .rs-detail-heat-cell{height:18px;border-radius:999px;background:rgba(148,163,184,.14);border:1px solid rgba(148,163,184,.10)}
    .rs-builder-v1{border-color:rgba(249,115,22,.24);background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(15,23,42,.78))}
    .rs-builder-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,420px);gap:16px;align-items:start;margin-bottom:14px}
    .rs-builder-title{font-size:1.14rem;font-weight:950;color:var(--text);margin-top:4px}
    .rs-builder-grid{display:grid;grid-template-columns:1.15fr .85fr .7fr .7fr 1.2fr;gap:12px;align-items:end}
    .rs-saved-report-field{min-width:0}
    .rs-section-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:14px 0}
    .rs-section-picker label{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:rgba(255,255,255,.04);color:#dbe3ee;font-weight:760;line-height:1.25}
    .rs-section-picker input{accent-color:#f97316;flex:0 0 auto}
    .rs-builder-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
    .rs-builder-actions > button{min-height:42px}
    #rsBtnSaveV1{
      border-color:rgba(34,197,94,.48);
      background:linear-gradient(135deg,#16a34a,#22c55e);
      color:#ffffff;
      font-weight:900;
      box-shadow:0 12px 26px rgba(34,197,94,.26), inset 0 1px 0 rgba(255,255,255,.20);
    }
    #rsBtnSaveV1:hover{
      border-color:rgba(134,239,172,.76);
      background:linear-gradient(135deg,#15803d,#22c55e);
      transform:translateY(-1px);
      box-shadow:0 16px 34px rgba(34,197,94,.34), inset 0 1px 0 rgba(255,255,255,.24);
    }
    #rsBtnSaveV1:active{
      transform:translateY(0) scale(.98);
      box-shadow:0 8px 18px rgba(34,197,94,.25);
    }
    #rsBtnSaveV1:focus-visible{
      outline:3px solid rgba(134,239,172,.78);
      outline-offset:3px;
    }
    #rsBuilderStatus{margin-top:10px}
    #rsBuilderStatus.is-error{color:#fecaca}
    #rsBuilderStatus.is-ok{color:#bbf7d0}
    .rs-html-report-preview{display:none;margin-top:16px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:#f3f4f6;overflow:auto}
    .rs-html-report-preview[data-generated="1"]{display:block}
    .eim-report-v1{max-width:1060px;margin:0 auto;background:#fff;color:#111827;padding:34px;font-family:Inter,Arial,sans-serif}
    .eim-report-v1 *{box-sizing:border-box}
    .eim-report-v2{max-width:1180px;padding:0;background:#f8fafc;color:#111827}
    .rs-v2-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:22px;padding:30px;background:linear-gradient(135deg,#111827,#1f2937 60%,#431407);color:#fff;border-radius:8px 8px 0 0}
    .rs-v2-brand{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#fdba74;font-weight:950}
    .rs-v2-hero h1{font-size:38px;line-height:1.04;margin:8px 0 12px;color:#fff;letter-spacing:0}
    .rs-v2-hero p{font-size:15px;line-height:1.65;margin:0;color:#e5e7eb;max-width:820px}
    .rs-v2-hero aside{display:grid;gap:6px;align-content:start;padding:16px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.08)}
    .rs-v2-hero aside span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#fed7aa;font-weight:900}
    .rs-v2-hero aside strong{font-size:13px;color:#fff;overflow-wrap:anywhere}
    .eim-report-v2 > .rs-v2-metric-grid{padding:18px 24px 6px}
    .rs-v2-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
    .rs-v2-metric{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:14px;box-shadow:0 10px 26px rgba(15,23,42,.05)}
    .rs-v2-metric span{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#64748b;font-weight:900}
    .rs-v2-metric strong{display:block;font-size:24px;line-height:1.15;margin-top:5px;color:#111827;overflow-wrap:anywhere}
    .rs-v2-metric p{margin:6px 0 0;color:#64748b;font-size:12px;line-height:1.35}
    .rs-v2-section{margin:14px 24px;padding:18px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.05);break-inside:avoid}
    .rs-v2-verdict{border-color:#fdba74;background:linear-gradient(180deg,#fff7ed,#ffffff)}
    .rs-v2-section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid #e5e7eb;padding-bottom:10px;margin-bottom:14px}
    .rs-v2-section-head span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#f97316;font-weight:950;white-space:nowrap}
    .rs-v2-section-head h2{font-size:22px;line-height:1.15;margin:0;color:#111827;border:0;padding:0;letter-spacing:0}
    .rs-v2-lede{font-size:16px!important;line-height:1.75!important;color:#1f2937!important;margin:0 0 14px!important;font-weight:650}
    .rs-v2-insight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
    .rs-v2-insight{border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;padding:14px}
    .rs-v2-insight span{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#9a3412;font-weight:950}
    .rs-v2-insight h3{font-size:16px;margin:5px 0 8px;color:#111827;letter-spacing:0}
    .rs-v2-insight p{margin:0;color:#374151;line-height:1.55}
    .rs-v2-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;align-items:start}
    .rs-v2-chart-grid h3{font-size:15px;margin:0 0 8px;color:#111827;letter-spacing:0}
    .rs-v2-chart-grid .rs-v1-chart,
    .eim-report-v2 > .rs-v2-section > .rs-v1-chart{height:230px;min-height:230px}
    .rs-v2-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff;margin-top:10px}
    .rs-v2-table th,.rs-v2-table td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top;overflow-wrap:anywhere}
    .rs-v2-table th{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#64748b;background:#f8fafc;font-weight:950}
    .rs-v2-table tr:last-child td{border-bottom:0}
    .rs-v2-empty{border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;padding:12px;font-size:13px}
    .rs-v2-note{margin:0 0 12px!important;color:#64748b!important;font-size:13px!important}
    .rs-v2-risk{border-color:#fed7aa;background:linear-gradient(180deg,#fff7ed,#fff)}
    .rs-v2-evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
    .rs-v2-evidence-card{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:13px;break-inside:avoid}
    .rs-v2-evidence-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}
    .rs-v2-evidence-top strong{font-size:13px;color:#111827;line-height:1.35}
    .rs-v2-evidence-card blockquote{margin:8px 0 0;padding:10px 12px;border-left:4px solid #f97316;background:#fff7ed;color:#1f2937}
    .rs-v2-evidence-card p{margin:8px 0 0!important;color:#64748b!important;font-size:11px!important}
    .rs-v2-footer{margin:16px 24px 24px;padding-top:14px;border-top:1px solid #e5e7eb;color:#64748b;font-size:12px}
    @media (max-width:760px){
      .rs-v2-hero{grid-template-columns:1fr;padding:22px}
      .rs-v2-hero h1{font-size:30px}
      .eim-report-v2 > .rs-v2-metric-grid{padding:14px 14px 4px}
      .rs-v2-section{margin:12px 14px;padding:14px}
      .rs-v2-section-head{display:grid;gap:6px}
      .rs-v2-chart-grid .rs-v1-chart,
      .eim-report-v2 > .rs-v2-section > .rs-v1-chart{height:210px;min-height:210px}
      .rs-v2-footer{margin:14px}
    }
    .rs-v1-cover{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;border-bottom:4px solid #f97316;padding-bottom:22px;margin-bottom:22px}
    .rs-v1-brand{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#f97316;font-weight:900}
    .rs-v1-cover h1{font-size:34px;line-height:1.08;margin:8px 0 10px;color:#111827;letter-spacing:0}
    .rs-v1-cover p{font-size:16px;color:#4b5563;margin:0;line-height:1.5}
    .rs-v1-cover-meta{display:grid;gap:6px;padding:16px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb}
    .rs-v1-cover-meta span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#6b7280;font-weight:800}
    .rs-v1-cover-meta strong{font-size:14px;color:#111827;overflow-wrap:anywhere}
    .rs-v1-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 28px}
    .rs-v1-kpis div{border:1px solid #e5e7eb;border-radius:8px;padding:14px;background:#fff7ed}
    .rs-v1-kpis span{display:block;font-size:12px;color:#6b7280;font-weight:800}
    .rs-v1-kpis strong{display:block;font-size:24px;margin-top:4px;color:#111827;overflow-wrap:anywhere}
    .eim-report-v1 section{break-inside:avoid;margin:0 0 28px}
    .eim-report-v1 h2{font-size:21px;margin:0 0 12px;color:#111827;border-bottom:1px solid #e5e7eb;padding-bottom:8px;letter-spacing:0}
    .eim-report-v1 p,.eim-report-v1 li,.eim-report-v1 td,.eim-report-v1 th{font-size:13px;line-height:1.5;color:#1f2937}
    .eim-report-v1 ul{margin:0;padding-left:20px}
    .rs-v1-table{width:100%;border-collapse:collapse;margin-top:10px;table-layout:fixed}
    .rs-v1-table th,.rs-v1-table td{border-bottom:1px solid #e5e7eb;padding:9px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
    .rs-v1-table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;background:#f9fafb;font-weight:900}
    .rs-v1-chart{border:1px solid #e5e7eb;border-radius:8px;padding:12px;margin:10px 0;background:#fff;min-height:180px}
    .rs-v1-chart canvas{max-height:260px}
    .rs-v1-chart-image{display:block;max-width:100%;height:auto}
    .rs-v1-evidence-list{display:grid;gap:12px}
    .rs-v1-evidence-item{border:1px solid #e5e7eb;border-radius:8px;padding:14px;background:#fff}
    .rs-v1-evidence-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:10px;align-items:flex-start}
    .rs-v1-evidence-head strong{color:#111827}
    .rs-v1-evidence-head span{display:block;color:#6b7280;font-size:12px;margin-top:3px}
    .rs-v1-evidence-head a{color:#c2410c;font-weight:800}
    .eim-report-v1 blockquote{margin:10px 0 0;padding:10px 12px;border-left:4px solid #f97316;background:#fff7ed;color:#1f2937}
    .eim-report-v1 blockquote footer{margin-top:5px;color:#6b7280;font-size:11px}
    .eim-report-v1 mark{background:#fde68a;color:#111827;padding:0 2px;border-radius:3px}
    .rs-v1-evidence-meta,.rs-v1-footer,.rs-v1-empty{color:#6b7280;font-size:12px;margin-top:10px}
    .rs-v1-ai-summary{border:2px solid #fed7aa;border-radius:8px;padding:16px;background:#fffaf5}
    .rs-v1-ai-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
    .rs-v1-ai-meta span,.rs-v1-citations span{display:inline-flex;border:1px solid #fed7aa;border-radius:999px;padding:4px 8px;background:#fff;color:#7c2d12;font-size:11px;font-weight:800}
    .rs-v1-ai-narrative{border:1px solid #fed7aa;border-radius:8px;background:#fff;padding:14px 16px;margin:0 0 16px;color:#1f2937;font-size:16px;line-height:1.72;font-weight:650}
    .rs-v1-ai-block{margin-top:14px}
    .rs-v1-ai-block h3{font-size:15px;margin:0 0 8px;color:#111827;letter-spacing:0}
    .rs-v1-ai-block li{margin-bottom:10px}
    .rs-v1-ai-block li.is-insufficient p{color:#92400e}
    .rs-v1-citations{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
    .rs-v1-citations small{display:block;width:100%;color:#6b7280;font-size:10px}
    .rs-v1-citations.is-insufficient span{border-color:#fde68a;background:#fffbeb;color:#92400e}
    .rs-v1-muted{color:#6b7280;font-size:11px;margin-top:2px}
    .rs-v1-author-article{display:grid;gap:3px;margin-bottom:8px}
    .rs-v1-author-article strong{display:block;color:#111827}
    .rs-v1-author-article span{display:block;color:#6b7280;font-size:11px}
    .eim-report-v1 .rs-badge{display:inline-flex;align-items:center;border:1px solid #e5e7eb;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:900;text-transform:capitalize;background:#f9fafb;color:#374151}
    .eim-report-v1 .rs-badge.is-positive{background:#dcfce7;border-color:#86efac;color:#166534}
    .eim-report-v1 .rs-badge.is-neutral{background:#f1f5f9;border-color:#cbd5e1;color:#334155}
    .eim-report-v1 .rs-badge.is-negative{background:#fee2e2;border-color:#fca5a5;color:#991b1b}
    .rs-detail-heat-cell.level-1{background:rgba(96,165,250,.38)}
    .rs-detail-heat-cell.level-2{background:rgba(96,165,250,.72)}
    .rs-detail-heat-cell.level-3{background:rgba(168,85,247,.72)}
    .rs-detail-heat-cell.level-4{background:rgba(249,115,22,.88)}
    .rs-detail-callout{padding:12px 14px;border-radius:14px;border:1px solid rgba(249,115,22,.20);background:rgba(249,115,22,.10);color:#ffedd5;font-weight:700;line-height:1.45}
    .rs-sections{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:14px;align-items:start}
    .rs-section{grid-column:span var(--rs-card-span,12);border:1px solid rgba(148,163,184,0.18);border-radius:18px;background:linear-gradient(180deg,#ffffff,rgba(249,250,251,0.98));padding:16px;overflow:hidden;box-shadow:0 14px 30px rgba(15,23,42,0.05);height:var(--rs-card-height,auto);min-height:0;align-self:start;position:relative}
    .rs-section h3{margin:0 0 12px 0;font-weight:950;overflow-wrap:anywhere;font-size:1.08rem}
    .rs-section-intro{margin:-4px 0 14px;color:#64748b;max-width:860px;line-height:1.55;font-weight:650}
    .rs-body{color:var(--text);line-height:1.5;overflow-wrap:anywhere}
    .rs-body ul{margin:8px 0 0 20px;padding-right:6px;display:grid;gap:8px}
    .rs-body li{margin:0}
    .rs-exec-pair{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}
    .rs-exec-pane{min-width:0;width:100%;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:rgba(255,255,255,.74);padding:13px}
    .rs-exec-pane--ai{border-color:rgba(249,115,22,.36);background:linear-gradient(180deg,rgba(255,247,237,.92),rgba(255,255,255,.82))}
    .rs-inline-title{font-size:.78rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase;color:#64748b;margin-bottom:8px}
    .rs-ai-inline{display:grid;gap:12px}
    .rs-ai-inline-meta{display:flex;flex-wrap:wrap;gap:6px}
    .rs-ai-inline-meta span,.rs-ai-citations span{display:inline-flex;align-items:center;border:1px solid rgba(249,115,22,.28);border-radius:999px;background:rgba(255,247,237,.9);color:#9a3412;font-size:.74rem;font-weight:900;padding:4px 8px}
    .rs-ai-narrative{border:1px solid rgba(148,163,184,.18);border-radius:12px;background:rgba(255,255,255,.84);padding:14px 16px}
    .rs-ai-narrative p{margin:0;color:#1f2937;font-size:1rem;line-height:1.72;font-weight:650}
    .rs-ai-evidence-strip{display:flex;flex-wrap:wrap;gap:6px}
    .rs-ai-evidence-strip span{display:inline-flex;align-items:center;border:1px solid rgba(249,115,22,.28);border-radius:999px;background:rgba(255,247,237,.9);color:#9a3412;font-size:.74rem;font-weight:900;padding:4px 8px}
    .rs-ai-inline-block{display:grid;gap:7px}
    .rs-ai-inline-heading{font-weight:950;color:#111827}
    .rs-ai-inline-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
    .rs-ai-inline-list li{border:1px solid rgba(148,163,184,.18);border-radius:10px;background:rgba(255,255,255,.82);padding:10px 12px}
    .rs-ai-inline-list p{margin:0;color:#1f2937}
    .rs-ai-inline-list li.is-insufficient p{color:#92400e}
    .rs-ai-citations{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
    .rs-ai-citations.is-insufficient span{border-color:#facc15;background:#fffbeb;color:#92400e}
    .rs-ai-evidence-preview{border-left:3px solid #f97316;padding:8px 10px;background:rgba(255,247,237,.9);border-radius:8px;color:#334155;font-size:.86rem}
    .rs-ai-report{display:grid;gap:13px;color:#1f2937}
    .rs-ai-report h2{margin:0;color:#111827;font-size:1.05rem;line-height:1.2;letter-spacing:0}
    .rs-ai-report h3{margin:2px 0 0;color:#111827;font-size:.86rem;line-height:1.25;font-weight:950;letter-spacing:0}
    .rs-ai-report p{margin:0;color:#1f2937;line-height:1.6;font-size:.92rem}
    .rs-ai-report-intro{padding:12px 14px;border:1px solid rgba(249,115,22,.22);border-radius:12px;background:rgba(255,247,237,.86)}
    .rs-ai-best-wording{padding:12px 14px;border-left:4px solid #f97316;background:#fff7ed;border-radius:10px;font-weight:750}
    .rs-ai-report-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(148,163,184,.22);border-radius:10px;overflow:hidden;background:rgba(255,255,255,.82);table-layout:fixed}
    .rs-ai-report-table th,.rs-ai-report-table td{padding:9px 10px;border-bottom:1px solid rgba(148,163,184,.18);text-align:left;vertical-align:top;font-size:.84rem;line-height:1.45;overflow-wrap:anywhere}
    .rs-ai-report-table tr:last-child th,.rs-ai-report-table tr:last-child td{border-bottom:0}
    .rs-ai-report-table th{width:42%;background:rgba(248,250,252,.92);color:#475569;font-weight:950}
    .rs-ai-report-table thead th{width:auto;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;color:#64748b}
    .rs-ai-report ul{margin:0;padding-left:19px;display:grid;gap:7px}
    .rs-ai-report li{margin:0;color:#1f2937;line-height:1.5;font-size:.88rem}
    .rs-ai-topic-strip{display:flex;flex-wrap:wrap;gap:6px}
    .rs-ai-topic-strip span{display:inline-flex;border:1px solid rgba(249,115,22,.24);border-radius:999px;background:rgba(255,247,237,.9);color:#9a3412;font-size:.74rem;font-weight:900;padding:4px 8px}
    .rs-ai-report-empty{padding:10px 12px;border:1px dashed rgba(148,163,184,.35);border-radius:10px;color:#64748b;background:rgba(248,250,252,.7);font-size:.86rem}
    .rs-ai-report--v1 h2{font-size:22px;border-bottom:1px solid #fed7aa;padding-bottom:8px}
    .rs-ai-report--v1 h3{font-size:15px;margin-top:4px}
    .rs-ai-report--v1 p,.rs-ai-report--v1 li,.rs-ai-report--v1 td,.rs-ai-report--v1 th{font-size:13px}
    .rs-pill{display:inline-block;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted);font-weight:700;margin:4px 6px 0 0;max-width:100%;overflow-wrap:anywhere}
    .rs-table{width:100%;border-collapse:collapse;margin-top:10px;table-layout:fixed}
    .rs-table th,.rs-table td{border-bottom:1px solid rgba(255,255,255,.08);padding:8px 6px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
    .rs-table th{color:var(--muted);font-weight:900}
    .rs-table a{overflow-wrap:anywhere;word-break:break-word}
    .rs-audit-wrap{display:grid;gap:14px}
    .rs-audit-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
    .rs-audit-stat{border:1px solid rgba(249,115,22,.18);border-radius:8px;padding:12px;background:linear-gradient(180deg,rgba(249,115,22,.10),rgba(255,255,255,.02))}
    .rs-audit-stat-label{color:var(--muted);font-size:.82rem;font-weight:800}
    .rs-audit-stat-value{font-size:1.35rem;font-weight:900;margin-top:4px}
    .rs-evidence-shell{border:1px solid rgba(255,255,255,.08);border-radius:8px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015))}
    .rs-evidence-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
    .rs-evidence-title{font-weight:900}
    .rs-evidence-sub{color:var(--muted);font-size:.92rem;margin-top:4px}
    .rs-evidence-meta{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
	    .rs-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--muted);font-weight:750;font-size:.82rem}
	    button.rs-badge{font:inherit;cursor:pointer;text-align:left}
	    button.rs-badge:hover,.rs-evidence-button:hover{filter:brightness(1.08)}
	    .rs-badge.is-positive{border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.10);color:#d1fae5}
    .rs-badge.is-neutral{border-color:rgba(148,163,184,.28);background:rgba(148,163,184,.10);color:#e2e8f0}
    .rs-badge.is-negative{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.10);color:#fee2e2}
    .rs-evidence-table{width:100%;border-collapse:separate;border-spacing:0}
    .rs-evidence-table thead th{
      position:sticky;
      top:0;
      background:linear-gradient(180deg,#0f172a,#111827);
      z-index:1;
      color:#fff;
      font-size:.78rem;
      text-transform:uppercase;
      letter-spacing:.08em;
      box-shadow:inset 0 -1px 0 rgba(255,255,255,.08);
    }
    .rs-evidence-table th,.rs-evidence-table td{padding:14px 12px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top}
    .rs-evidence-table tbody tr:nth-child(odd){background:rgba(255,255,255,.018)}
    .rs-evidence-table tbody tr:hover{background:rgba(249,115,22,.08)}
    .rs-evidence-table tbody tr.rs-drillable:hover{background:rgba(249,115,22,.13)}
    .rs-evidence-title-cell{display:grid;gap:6px}
    .rs-evidence-item-title{font-weight:850;line-height:1.35}
    .rs-evidence-preview{color:var(--muted);font-size:.92rem;line-height:1.45}
    .rs-evidence-mark{background:rgba(249,115,22,.25);color:#fff7ed;border-radius:5px;padding:0 3px}
	    .rs-evidence-link{display:inline-flex;align-items:center;gap:6px;font-weight:800}
	    .rs-evidence-button{border:0;background:transparent;color:var(--accent-strong);padding:0;cursor:pointer}
    .rs-evidence-source{display:grid;gap:4px}
    .rs-evidence-source strong{font-weight:850}
    .rs-evidence-source span{color:var(--muted);font-size:.9rem}
    .rs-evidence-score{font-weight:900;font-size:1.05rem}
    .rs-card canvas,.rs-kpi canvas,.rs-main canvas{display:block;width:100% !important;max-width:100%;height:auto;min-height:0}
    .rs-detail-card canvas,
    .rs-surface-card canvas,
    .rs-card canvas:not(.rs-spark){
      max-height:270px;
    }
    .rs-detail-card > canvas,
    .rs-surface-card > canvas{
      height:240px !important;
    }
    .rs-v1-chart{
      min-height:0;
      height:auto;
    }
    .rs-v1-chart canvas,
    .rs-v1-chart-image{
      max-height:260px;
      object-fit:contain;
    }
    .rs-stat-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:12px;margin-bottom:14px;align-items:start}
    .rs-stat-card{grid-column:span var(--rs-card-span,3);border:1px solid rgba(148,163,184,0.18);border-radius:16px;background:linear-gradient(180deg,rgba(249,115,22,0.10),rgba(255,255,255,0.92));padding:14px;height:var(--rs-card-height,auto);min-height:0;align-self:start;position:relative;overflow:hidden}
    .rs-stat-label{font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:#6b7280;font-weight:800}
    .rs-stat-value{font-size:1.12rem;font-weight:900;color:#111827;margin-top:8px;line-height:1.35}
    .rs-stat-note{font-size:.88rem;color:#4b5563;margin-top:6px;line-height:1.45}
    .rs-split-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:12px;margin-bottom:12px;align-items:start}
    .rs-split-grid > .rs-surface-card{grid-column:span var(--rs-card-span,6)}
    .rs-surface-card{border:1px solid rgba(148,163,184,0.18);border-radius:16px;padding:14px;background:rgba(255,255,255,0.9);height:var(--rs-card-height,auto);min-height:0;align-self:start;position:relative;overflow:hidden}
    .rs-surface-title{font-weight:900;margin-bottom:10px;color:#111827}
    .rs-empty-card{padding:12px;border:1px dashed rgba(148,163,184,0.35);border-radius:14px;background:rgba(248,250,252,0.85);color:#64748b}
    .rs-resizable-card{padding-bottom:max(14px, calc(var(--rs-card-padding-bottom, 14px) + 6px))}
    .rs-masonry-grid{grid-auto-rows:12px}
    .rs-masonry-grid > .rs-masonry-card{grid-row:span var(--rs-card-row-span,1)}
    .rs-resizable-card.is-rs-resizing{user-select:none;box-shadow:0 18px 42px rgba(249,115,22,.16),0 0 0 1px rgba(249,115,22,.26) inset!important}
    .rs-resizable-card.is-rs-resized{border-color:rgba(249,115,22,.26);overflow:auto}
    .rs-resize-handle{
      position:absolute;
      right:8px;
      bottom:8px;
      width:18px;
      height:18px;
      border-radius:6px;
      cursor:nwse-resize;
      touch-action:none;
      z-index:8;
      border:1px solid rgba(249,115,22,.34);
      background:
        linear-gradient(135deg,transparent 0 44%,rgba(249,115,22,.42) 45% 52%,transparent 53%),
        linear-gradient(135deg,transparent 0 63%,rgba(249,115,22,.70) 64% 72%,transparent 73%),
        rgba(15,23,42,.72);
      box-shadow:0 8px 20px rgba(15,23,42,.18);
      opacity:.74;
      transition:opacity .14s ease,transform .14s ease,border-color .14s ease;
    }
    .rs-resize-handle:hover,
    .rs-resizable-card.is-rs-resizing .rs-resize-handle{
      opacity:1;
      transform:scale(1.06);
      border-color:rgba(249,115,22,.72);
    }
    .rs-resize-handle:focus-visible{outline:3px solid rgba(59,130,246,.75);outline-offset:3px}
    .rs-resizable-card[style*="--rs-card-height"] > canvas:not(.rs-spark),
    .rs-resizable-card[style*="--rs-card-height"] > .overview-chart-compact,
    .rs-resizable-card[style*="--rs-card-height"] > .overview-sentiment-chart{
      height:clamp(150px,calc(var(--rs-card-height) - 104px),520px)!important;
      max-height:none!important;
    }
    .rs-resizable-card[style*="--rs-card-height"] > .rs-spark{
      height:clamp(44px,calc(var(--rs-card-height) - 92px),160px)!important;
      max-height:none!important;
    }
    .eim-resizable-grid{
      grid-auto-flow:row;
      align-items:start;
    }
    .eim-masonry-grid{
      grid-auto-rows:auto;
    }
    .eim-masonry-grid > .eim-resizable-card{
      grid-row:auto!important;
    }
    .eim-resizable-card{
      --eim-card-scale:1;
      --eim-heading-scale:1;
      --eim-card-height:auto;
      --eim-card-width:auto;
      --eim-chart-height:220px;
      position:relative;
      z-index:0;
      isolation:isolate;
      min-width:min(220px,100%);
      max-width:100%;
      min-height:var(--eim-card-min-height,120px);
      overflow:auto;
      scrollbar-gutter:stable;
      container-type:inline-size;
      font-size:clamp(12px,calc(13px * var(--eim-card-scale)),16px);
      transition:border-color .16s ease,box-shadow .16s ease;
    }
    .eim-resizable-card.is-eim-resized{
      height:var(--eim-card-height,auto);
      position:relative;
      z-index:0;
      border-color:rgba(249,115,22,.34)!important;
      box-shadow:0 18px 36px rgba(15,23,42,.16),0 0 0 1px rgba(249,115,22,.10) inset;
    }
    .eim-resizable-card.is-eim-resized.eim-grid-card{
      grid-column:span var(--eim-card-span,1)!important;
    }
    .eim-resizable-card.is-eim-resized:not(.eim-grid-card){
      width:var(--eim-card-width,auto);
      max-width:100%;
    }
    .eim-resizable-card.is-eim-resizing{
      z-index:30;
      user-select:none;
      box-shadow:0 20px 44px rgba(249,115,22,.18),0 0 0 1px rgba(249,115,22,.32) inset!important;
    }
    #trending-keywords-panel .tk-board.eim-resizable-grid{
      grid-auto-flow:row;
    }
    #trending-keywords-panel .tk-panel-detail.eim-grid-card{
      grid-column:1 / -1!important;
    }
    #trending-keywords-panel .tk-panel,
    #trending-keywords-panel .tk-article,
    #trending-keywords-panel .tk-mini-chart,
    #trending-panel .card,
    #trending-panel .trend-item{
      transform:none!important;
    }
    .eim-resizable-card :is(h1,h2,h3,h4,.panel-title,.rs-card-title,.rs-detail-card-title,.rs-surface-title,.overview-card-title,.overview-card-label,.tk-panel h3,.tk-detail-head h3,.tk-mini-chart h4){
      font-size:clamp(.88rem,calc(1rem * var(--eim-heading-scale)),1.55rem);
      line-height:1.14;
    }
    .eim-resizable-card :is(.muted,small,.rs-card-sub,.rs-stat-note,.rs-detail-copybox,.overview-card-meta,.overview-metric-note,.tk-detail-head p,.tk-article-meta,.tk-article-foot){
      font-size:clamp(11px,calc(12px * var(--eim-card-scale)),15px);
      line-height:1.38;
    }
    .eim-resizable-card canvas:not(.rs-spark){
      display:block;
      width:100%!important;
      max-width:100%!important;
    }
    .eim-resizable-card.is-eim-resized canvas:not(.rs-spark),
    .eim-resizable-card.is-eim-resized .overview-chart-compact,
    .eim-resizable-card.is-eim-resized .overview-sentiment-chart,
    .eim-resizable-card.is-eim-resized .tk-chart-wrap{
      height:var(--eim-chart-height)!important;
      max-height:none!important;
    }
    .eim-resizable-card.is-eim-resized .tk-mini-chart canvas,
    .eim-resizable-card.is-eim-resized .overview-sparkline canvas{
      height:clamp(70px,calc(var(--eim-card-height) - 92px),420px)!important;
      max-height:none!important;
    }
    .eim-resize-handle{
      position:absolute;
      right:8px;
      bottom:8px;
      width:20px;
      height:20px;
      border:1px solid rgba(249,115,22,.42);
      border-radius:7px;
      cursor:nwse-resize;
      touch-action:none;
      z-index:20;
      opacity:.76;
      background:
        linear-gradient(135deg,transparent 0 44%,rgba(249,115,22,.40) 45% 52%,transparent 53%),
        linear-gradient(135deg,transparent 0 63%,rgba(249,115,22,.78) 64% 72%,transparent 73%),
        rgba(15,23,42,.82);
      box-shadow:0 8px 20px rgba(0,0,0,.24);
      transition:opacity .14s ease,transform .14s ease,border-color .14s ease;
    }
    .eim-resize-handle:hover,
    .eim-resizable-card.is-eim-resizing .eim-resize-handle{
      opacity:1;
      transform:scale(1.07);
      border-color:rgba(249,115,22,.78);
    }
    .eim-resize-handle:focus-visible{
      outline:3px solid rgba(59,130,246,.72);
      outline-offset:3px;
    }
    .eim-resizable-card :is(table,.overview-table){
      width:100%;
      table-layout:auto;
    }
    .eim-resizable-card :is(p,li,td,th,.overview-snippet-item,.tk-keyword-main strong,.tk-article h4,.tk-article p){
      overflow-wrap:anywhere;
    }
    .rs-bar-list{display:grid;gap:12px}
    .rs-bar-row{display:grid;gap:6px}
    .rs-bar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.95rem}
    .rs-bar-head span{font-weight:700;color:#111827;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .rs-bar-head strong{font-weight:900;color:#111827;white-space:nowrap}
    .rs-bar-track{height:10px;border-radius:999px;background:rgba(148,163,184,0.18);overflow:hidden}
    .rs-bar-fill{display:block;height:100%;border-radius:999px}
    .rs-bar-fill--orange{background:linear-gradient(90deg,#f97316,#fb923c)}
    .rs-bar-fill--slate{background:linear-gradient(90deg,#0f172a,#475569)}
    .rs-bar-meta{font-size:.82rem;color:#6b7280}
    .rs-insight-grid{display:grid;gap:10px}
    .rs-insight-card{padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,0.16);background:#fff;color:#334155;line-height:1.5}
    .rs-insight-card--orange{background:linear-gradient(180deg,rgba(249,115,22,0.12),rgba(255,255,255,0.96))}
    .rs-insight-card--slate{background:linear-gradient(180deg,rgba(15,23,42,0.06),rgba(255,255,255,0.96))}
    .rs-detail-card .rs-bar-head span,
    .rs-detail-card .rs-bar-head strong,
    .rs-detail-card .rs-surface-title{color:#f8fafc}
    .rs-detail-card .rs-bar-meta{color:#94a3b8}
    .rs-detail-card .rs-bar-track{background:rgba(148,163,184,.16)}
    .rs-detail-card .rs-insight-card{background:rgba(15,23,42,.72);border-color:rgba(148,163,184,.12);color:#e5e7eb}
    .rs-detail-card .rs-insight-card--orange{background:linear-gradient(180deg,rgba(249,115,22,.16),rgba(15,23,42,.82))}
    .rs-detail-card .rs-insight-card--slate{background:linear-gradient(180deg,rgba(30,41,59,.88),rgba(15,23,42,.82))}
.rs-detail-card .rs-empty-card{background:rgba(15,23,42,.48);border-color:rgba(148,163,184,.20);color:#94a3b8}
.rs-chart-fallback{margin-top:8px}
.rs-chart-fallback .rs-detail-table,
.rs-chart-fallback .rs-bar-list{margin-bottom:0}
    .rs-voice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
    .rs-voice-card{border:1px solid rgba(148,163,184,0.18);border-radius:16px;background:#fff;padding:14px;display:grid;gap:12px}
    .rs-voice-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
    .rs-voice-top h4{margin:0;font-size:1rem;color:#111827}
    .rs-voice-top p{margin:4px 0 0;color:#64748b;font-size:.9rem}
    .rs-voice-metrics{display:flex;flex-wrap:wrap;gap:10px;font-size:.88rem;color:#475569}
    .rs-voice-metrics strong{color:#111827}
    .rs-author-sentiment-card{margin-top:14px;border:1px solid rgba(148,163,184,0.18);border-radius:16px;background:rgba(255,255,255,0.96);padding:14px;display:grid;gap:12px}
    .rs-author-table-wrap{overflow:auto}
    .rs-author-table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}
    .rs-author-table th,.rs-author-table td{padding:12px;border-bottom:1px solid rgba(148,163,184,0.16);text-align:left;vertical-align:top}
    .rs-author-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:#64748b;background:rgba(248,250,252,0.86);font-weight:900}
    .rs-author-table tbody tr:hover{background:rgba(249,115,22,0.06)}
    .rs-author-counts{margin-top:5px;font-size:.8rem;color:#64748b;line-height:1.4}
    .rs-author-article-list{display:grid;gap:8px}
    .rs-author-article{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid rgba(148,163,184,0.16);border-radius:10px;background:rgba(248,250,252,0.88)}
    .rs-author-article strong{display:block;color:#111827;font-size:.9rem;line-height:1.35}
    .rs-author-article span{display:block;margin-top:2px;color:#64748b;font-size:.78rem}
    .rs-author-article-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;min-width:120px}
    .rs-author-article-actions a{font-size:.78rem;font-weight:900;color:#c2410c;text-decoration:none}
    .rs-author-more{font-size:.78rem;color:#64748b;font-weight:800}
    .rs-detail-card .rs-author-sentiment-card{background:rgba(15,23,42,.72);border-color:rgba(148,163,184,.16)}
    .rs-detail-card .rs-author-table th{background:rgba(15,23,42,.9);color:#94a3b8}
    .rs-detail-card .rs-author-table td{border-bottom-color:rgba(148,163,184,.12);color:#e5e7eb}
    .rs-detail-card .rs-author-table tbody tr:hover{background:rgba(249,115,22,.09)}
    .rs-detail-card .rs-author-article{background:rgba(15,23,42,.62);border-color:rgba(148,163,184,.14)}
    .rs-detail-card .rs-author-article strong{color:#f8fafc}
    .rs-detail-card .rs-author-article span,
    .rs-detail-card .rs-author-counts,
    .rs-detail-card .rs-author-more{color:#94a3b8}
	    .rs-sentiment-reasons{display:grid;gap:8px;margin-top:8px}
    .rs-sentiment-reason-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 10px;border:1px solid rgba(148,163,184,0.18);border-radius:8px;background:rgba(255,255,255,0.74);color:var(--text)}
    .rs-sentiment-reason-row strong{color:var(--text)}
    .ocr-inline-metrics{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
    .ocr-entity-grid,.ocr-page-grid{display:grid;gap:12px}
    .ocr-entity-card,.ocr-page-card{border:1px solid rgba(148,163,184,0.18);border-radius:16px;background:rgba(255,255,255,0.94);overflow:hidden}
    .ocr-entity-card summary,.ocr-page-card summary,.ocr-debug-summary{list-style:none;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px;cursor:pointer}
    .ocr-entity-card summary::-webkit-details-marker,.ocr-page-card summary::-webkit-details-marker,.ocr-debug-summary::-webkit-details-marker{display:none}
    .ocr-entity-body,.ocr-page-body{padding:0 16px 16px;display:grid;gap:10px}
    .ocr-snippet-stack{display:grid;gap:10px}
    .ocr-snippet-card{border:1px solid rgba(148,163,184,0.16);border-radius:12px;background:rgba(248,250,252,0.9);padding:10px 12px;display:grid;gap:8px}
    .ocr-trend-row{display:flex;flex-wrap:wrap;gap:8px}
    .ocr-trend-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:rgba(249,115,22,0.12);border:1px solid rgba(249,115,22,0.18);font-size:.8rem;font-weight:700;color:#c2410c}
    .ocr-debug-grid{display:grid;gap:12px;margin-top:12px}
    .ocr-debug-card{border:1px solid rgba(148,163,184,0.16);border-radius:14px;background:rgba(255,255,255,0.92);padding:12px}
    .ocr-debug-card pre.code{margin:8px 0 0;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}

    .rs-modal{position:fixed;inset:0;display:none;z-index:9999}
    .rs-modal.show{display:block}
    .rs-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
    .rs-modal-card{position:relative;max-width:980px;margin:60px auto;background:#0b0f19;border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:0 18px 60px rgba(0,0,0,.55);overflow:hidden}
    .rs-modal-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.10)}
    .rs-modal-title{font-weight:950}
    .rs-modal-close{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#fff;border-radius:12px;padding:8px 10px;cursor:pointer}
    .rs-modal-body{padding:12px 14px;max-height:70vh;overflow:auto}
    .rs-verification-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
    .rs-verification-note{flex-basis:100%;color:#cbd5e1;line-height:1.45;font-weight:650}
    .rs-verification-table{width:100%;border-collapse:separate;border-spacing:0}
    .rs-verification-table th{position:sticky;top:0;background:#111827;color:#f8fafc;z-index:1}
    .rs-verification-table th,.rs-verification-table td{padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.08);vertical-align:top;text-align:left}
    .rs-verification-table tbody tr:hover{background:rgba(249,115,22,.08)}
    .rs-verification-signal-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
    .rs-sentiment-current{margin-bottom:10px;color:var(--text-soft);font-size:.9rem}
    .rs-sentiment-choices{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
    .rs-sentiment-choice{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(148,163,184,0.22);border-radius:12px;background:rgba(15,23,42,0.96);color:#e5e7eb;cursor:pointer;transition:border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease}
    .rs-sentiment-choice:hover{border-color:rgba(249,115,22,0.45);background:rgba(30,41,59,0.96)}
    .rs-sentiment-choice input{margin:0;accent-color:#f97316}
    .rs-sentiment-choice-label{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:inherit}
    .rs-sentiment-choice.is-selected{background:linear-gradient(180deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08));border-color:rgba(249,115,22,0.55);box-shadow:0 0 0 1px rgba(249,115,22,0.18) inset;color:#fff}
    .rs-sentiment-snippet{margin:10px 0 14px;padding:12px;border:1px solid rgba(148,163,184,0.18);border-radius:14px;background:rgba(7,10,18,0.9);font-size:.92rem;line-height:1.45;white-space:pre-line;color:#f8fafc;overflow-wrap:anywhere}
    .rs-sentiment-reason-copy{white-space:pre-line;overflow-wrap:anywhere}
    .rs-sentiment-actions{display:flex;gap:10px;flex-wrap:wrap}
    .rs-sentiment-hint{margin-top:10px}

    @media (max-width: 1200px){
      .rs-wrap{grid-template-columns:1fr}
      .rs-sidebar{position:relative;top:auto;max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
      .rs-scope,.rs-actions{grid-column:1 / -1}
      .rs-actions{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
      .rs-nav{margin-bottom:0}
      .rs-topbar{grid-template-columns:1fr}
      .rs-hint{max-width:none;text-align:left}
      .rs-quality-tabs{gap:8px}
      .rs-detail-shell{grid-template-columns:1fr}
      .rs-detail-nav{position:relative;top:auto}
      .rs-detail-nav{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
    }

    @media (max-width: 980px){
      #report-panel .panel-header{display:grid;gap:10px}
      .rs-sidebar{grid-template-columns:1fr}
      .rs-picker-grid{grid-template-columns:1fr}
      .rs-picker-actions{display:grid;grid-template-columns:1fr}
      .rs-kpi,.rs-detail-kpi,.rs-stat-card{grid-column:span var(--rs-card-span,6)}
      .rs-grid,.rs-grid-visuals,.rs-sections,.rs-detail-grid,.rs-detail-grid--2,.rs-detail-grid--4,.rs-split-grid{grid-template-columns:1fr}
      .rs-card,.rs-section,.rs-detail-grid > .rs-detail-card,.rs-detail-grid--2 > .rs-detail-card,.rs-detail-grid--4 > .rs-detail-card,.rs-split-grid > .rs-surface-card{grid-column:1 / -1}
      .rs-split-grid{grid-template-columns:1fr}
      .rs-exec-pair{grid-template-columns:1fr}
      .rs-detail-head{display:grid}
      .rs-detail-meta{text-align:left;max-width:none}
      .rs-detail-nav{grid-template-columns:1fr}
      .rs-source-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
      .rs-table{display:block;overflow:auto}
      .rs-table tbody,.rs-table thead,.rs-table tr{width:100%}
      .rs-evidence-head{display:grid}
      .rs-evidence-meta{justify-content:flex-start}
    }

    @media (max-width: 640px){
      .rs-kpis,.rs-detail-kpis,.rs-stat-grid{grid-template-columns:1fr}
      .rs-kpi,.rs-detail-kpi,.rs-stat-card{grid-column:1 / -1}
      .rs-source-tabs{grid-template-columns:1fr}
      .rs-detail-heat-head,.rs-detail-heat-row{grid-template-columns:48px repeat(24,minmax(10px,1fr));gap:4px}
      .rs-sentiment-choice{width:100%;justify-content:flex-start}
      .rs-sentiment-actions{display:grid;grid-template-columns:1fr}
    }

    @media print{
      .tab-bar, .rs-sidebar, .rs-hint, .btn-primary, .btn-secondary, .rs-source-tabs { display:none !important; }
      body { background:#fff !important; }
      .rs-section, .rs-card, .rs-kpi { break-inside:avoid; }
      .rs-resize-handle,.eim-resize-handle{display:none!important}
      .eim-resizable-card{overflow:visible!important;scrollbar-gutter:auto}
    }

  
/* ===== Details Modal (Social) ===== */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:24px;z-index:9999}
.modal-overlay.hidden{display:none}
.modal{background:rgba(17,24,39,.98);color:#fff;width:min(980px,100%);max-height:88vh;overflow:hidden;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.10)}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.modal-title{font-weight:800;font-size:15px;line-height:1.2;margin:0}
.modal-sub{opacity:.78;font-size:12px;margin-top:2px}
.modal-close{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;border-radius:10px;padding:6px 10px;cursor:pointer}
.modal-close:hover{background:rgba(255,255,255,.10)}
.modal-body{padding:16px 18px;overflow:auto;max-height:calc(88vh - 64px)}
.kpi-row{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 14px}
.kpi-chip{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:999px;padding:8px 10px;font-size:12px;white-space:nowrap}
.details-text{white-space:pre-wrap;font-size:13px;opacity:.95;margin:10px 0 12px}
.section-title{font-weight:800;font-size:13px;margin:12px 0 8px}
.comments-list{display:flex;flex-direction:column;gap:10px}
.comment-item{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px}
.comment-author{font-weight:800;font-size:12px}
.comment-text{opacity:.92;font-size:12px;margin-top:4px;white-space:pre-wrap}
.modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.link-btn{background:none;border:none;color:var(--accent-strong);font-size:0.8rem;cursor:pointer;padding:0;display:inline-flex;align-items:center;gap:4px}
.link-btn:hover{text-decoration:underline}


    /* Campaign gate + session */
    .campaign-header{
      display:flex;
      gap:10px;
      align-items:center;
      margin-left:auto;
      flex-wrap:wrap;
    }
    header{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
    .campaign-chip{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:8px 12px;
      border:1px solid var(--border-soft);
      background:rgba(255,255,255,0.75);
      backdrop-filter: blur(8px);
      border-radius:999px;
      color:var(--text-main);
      font-size:13px;
      box-shadow: 0 6px 18px rgba(15,23,42,0.08);
    }
    .campaign-chip span{ font-weight:700; }
    .campaign-modal{
      position:fixed; inset:0;
      display:none;
      align-items:center;
      justify-content:center;
      background:rgba(17,24,39,0.55);
      z-index:9999;
      padding:18px;
    }
    .campaign-modal.show{ display:flex; }
    .campaign-modal .box{
      width:min(980px, 100%);
      max-height: 92vh;
      overflow:auto;
      background:var(--card);
      border:1px solid var(--border-soft);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding:18px;
    }
    .campaign-modal .top{
      display:flex; align-items:center; justify-content:space-between; gap:10px;
      margin-bottom:10px;
    }
    .campaign-modal .title{ font-size:18px; font-weight:800; }
    .campaign-modal .grid{
      display:grid; grid-template-columns: 1fr 1fr; gap:14px;
    }
    @media (max-width: 860px){ .campaign-modal .grid{ grid-template-columns:1fr; } }
    .seg{ display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 12px; }
    .seg button{
      padding:8px 10px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      background:var(--bg-alt);
      cursor:pointer;
      font-weight:700;
      font-size:13px;
    }
    .seg button.active{
      border-color: var(--accent);
      background: var(--accent-soft);
      color: var(--text-main);
    }
    .campaign-list{
      border:1px solid var(--border-soft);
      border-radius:14px;
      overflow:hidden;
      background: #fff;
    }
    .campaign-list .row{
      padding:12px;
      border-bottom:1px solid var(--border-soft);
      cursor:pointer;
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }
    .campaign-list .row:last-child{ border-bottom:none; }
    .campaign-list .row:hover{ background:rgba(249,115,22,0.07); }
    .campaign-list .row.active{ background:rgba(249,115,22,0.10); }
    .campaign-list .row-main{ min-width:0; flex:1 1 auto; }
    .campaign-list .row-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
    .campaign-row-btn{
      border:1px solid var(--border-soft);
      background:#fff;
      color:var(--text-main);
      border-radius:16px;
      min-height:42px;
      padding:0 14px;
      font-size:13px;
      font-weight:700;
      cursor:pointer;
    }
    .campaign-row-btn:hover{ background:rgba(249,115,22,0.08); border-color:rgba(249,115,22,0.28); }
    .campaign-row-btn.danger{ color:#b91c1c; border-color:rgba(239,68,68,0.28); }
    .campaign-row-btn.danger:hover{ background:rgba(239,68,68,0.08); }
    .campaign-list .name{ font-weight:800; }
    .campaign-list .meta{ color:var(--text-soft); font-size:12px; margin-top:2px; }
    .muted{ color:var(--text-soft); font-size:12px; }
    @media (max-width: 720px){
      .campaign-list .row{ flex-direction:column; }
      .campaign-list .row-actions{ width:100%; justify-content:flex-start; }
    }


    #global-toast{
      position:fixed;
      left:50%;
      transform:translateX(-50%);
      bottom:18px;
      padding:10px 14px;
      border-radius:999px;
      background: rgba(17,24,39,0.92);
      color:#fff;
      font-weight:700;
      font-size:13px;
      opacity:0;
      transition: opacity 200ms ease;
      z-index:10000;
      pointer-events:none;
      max-width:min(92vw, 920px);
      text-align:center;
    }
    #global-toast.err{ background: rgba(185,28,28,0.94); }



/* b50: simplify date range UI */
.date-row{display:none !important;}

/* b50: safety for clickability */
.campaign-modal{pointer-events:auto;}


/* ---------- Admin (SALGA) ---------- */
.form-row{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .form-row{ grid-template-columns: minmax(0,1fr); }
}
.field label{
  display:block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.table-wrap{
  max-height: 420px;
  overflow:auto;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background:#fff;
}
.admin-table{
  width:100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td{
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.admin-table thead th{
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}
.admin-table tbody tr:hover{
  background: #fbfbff;
}

/* ===== Google Trends style Trending Now table ===== */
.trends-card{
  overflow:visible;
}
.trends-filterbar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:10px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:12px;
  background:rgba(15,23,42,.58);
}
.trends-filter{
  width:auto;
  min-width:148px;
  max-width:240px;
}
.trends-status{
  margin:10px 2px;
}
.trends-table-shell{
  overflow:auto;
  border:1px solid rgba(148,163,184,.18);
  border-radius:12px;
  background:rgba(248,250,252,.98);
  color:#334155;
}
.trends-table{
  width:100%;
  min-width:920px;
  border-collapse:collapse;
  table-layout:fixed;
}
.trends-table th,
.trends-table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(148,163,184,.18);
  vertical-align:middle;
  text-align:left;
}
.trends-table th{
  color:#475569;
  font-size:12px;
  font-weight:850;
  background:#fff;
}
.trends-table tbody tr:hover{
  background:#f8fafc;
}
.trends-check{
  width:34px;
}
.trends-term{
  display:grid;
  gap:4px;
  min-width:0;
}
.trends-term a{
  color:#1e293b;
  font-weight:800;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.trends-term a:hover{
  color:#0f62fe;
  text-decoration:underline;
}
.trends-source-line{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.trends-volume{
  font-weight:850;
  color:#334155;
}
.trends-growth{
  display:block;
  margin-top:2px;
  color:#16a34a;
  font-size:12px;
  font-weight:800;
}
.trends-started{
  color:#334155;
  font-weight:750;
}
.trends-active{
  display:block;
  margin-top:3px;
  color:#16a34a;
  font-size:12px;
  font-weight:800;
}
.trends-breakdown{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}
.trends-breakdown-chip{
  display:inline-flex;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-bottom:1px dotted rgba(51,65,85,.62);
  color:#334155;
  font-size:12px;
  font-weight:750;
}
.trends-spark{
  width:128px;
  height:44px;
  display:block;
}
.trends-query-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(260px,1fr));
  gap:14px;
  margin-top:14px;
}
.trends-support-card{
  padding:14px!important;
  border-radius:12px!important;
}
.trends-support-title{
  font-weight:850;
  margin-bottom:8px;
}
.trends-hidden-link{
  display:none;
}
@media (max-width: 860px){
  .trends-filter{
    flex:1 1 180px;
    max-width:none;
  }
  .trends-query-grid{
    grid-template-columns:1fr;
  }
}

/* ===== Trending Keywords intelligence ===== */
.tk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.tk-status {
  margin: 12px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .58);
  color: #b8c6d8;
  font-weight: 800;
}

.tk-status.is-ok {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, .35);
  background: rgba(20, 83, 45, .22);
}

.tk-status.is-error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, .4);
  background: rgba(127, 29, 29, .22);
}

.tk-progress {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .7);
}

.tk-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dbe7f3;
  font-size: .92rem;
  font-weight: 800;
}

.tk-progress-row span {
  color: #aebdd0;
  text-align: right;
}

.tk-progress-row-sub {
  margin-top: 10px;
  font-size: .84rem;
}

.tk-progress-track {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16);
}

.tk-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  transition: width .25s ease;
}

.tk-progress-track-batch {
  height: 8px;
}

.tk-progress-bar-batch {
  background: linear-gradient(90deg, #ff7a1a, #fbbf24);
}

.tk-progress.is-active .tk-progress-bar-batch {
  background-size: 28px 28px;
  background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent);
  animation: tkBatchMove .8s linear infinite;
}

@keyframes tkBatchMove {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

.tk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tk-kpi {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, .88), rgba(15, 23, 42, .92));
  min-width: 0;
}

.tk-kpi span,
.tk-eyebrow {
  display: block;
  color: #f59e0b;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 900;
}

.tk-kpi strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.tk-kpi small {
  display: block;
  margin-top: 8px;
  color: #aab8ca;
  font-weight: 750;
  line-height: 1.3;
}

.tk-board {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.tk-panel {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  padding: 18px;
  min-width: 0;
}

.tk-panel-detail {
  grid-column: 1 / -1;
}

.tk-panel-head,
.tk-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tk-panel h3,
.tk-detail-head h3,
.tk-mini-chart h4 {
  margin: 5px 0 0;
  color: #f8fafc;
  line-height: 1.1;
}

.tk-detail-head p {
  margin: 7px 0 0;
  color: #aab8ca;
  font-weight: 760;
}

.tk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 999px;
  background: rgba(30, 41, 59, .9);
  color: #dbe7f3;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tk-chip-strong {
  color: #fff7ed;
  border-color: rgba(249, 115, 22, .42);
  background: rgba(154, 52, 18, .42);
}

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

.tk-list-compact {
  gap: 7px;
}

.tk-keyword-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(30, 41, 59, .58);
  color: #e5edf7;
  text-align: left;
  cursor: pointer;
}

.tk-keyword-row-compact {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 9px;
}

.tk-keyword-row-compact .tk-rank {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.tk-keyword-row-compact .tk-keyword-main strong {
  font-size: 14px;
}

.tk-keyword-row:hover,
.tk-keyword-row.is-active {
  border-color: rgba(249, 115, 22, .62);
  background: linear-gradient(145deg, rgba(124, 45, 18, .46), rgba(30, 41, 59, .74));
}

.tk-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .8);
  color: #fbbf24;
  font-weight: 950;
}

.tk-keyword-main {
  min-width: 0;
}

.tk-keyword-main strong,
.tk-keyword-main small,
.tk-keyword-count,
.tk-keyword-count small {
  display: block;
}

.tk-keyword-main strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.tk-keyword-main small {
  margin-top: 3px;
  color: #aab8ca;
  font-weight: 800;
}

.tk-keyword-count {
  text-align: right;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.tk-keyword-count small {
  margin-top: 2px;
  color: #9fb0c3;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tk-chart-wrap {
  height: 220px;
  max-height: 220px;
}

.tk-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tk-mini-chart {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(2, 6, 23, .28);
}

.tk-mini-chart canvas {
  display: block;
  width: 100%;
  height: 120px !important;
  min-height: 120px;
  max-height: 120px;
}

.tk-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.tk-article {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(30, 41, 59, .6);
  min-width: 0;
}

.tk-article-meta,
.tk-article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #9fb0c3;
  font-size: 12px;
  font-weight: 850;
}

.tk-article h4 {
  margin: 8px 0;
  color: #f8fafc;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.tk-article h4 a,
.tk-article-foot a {
  color: #bfdbfe;
}

.tk-article p {
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.tk-article-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, .14);
  border: 1px solid rgba(249, 115, 22, .28);
  color: #fed7aa;
}

.tk-empty {
  border: 1px dashed rgba(148, 163, 184, .28);
  border-radius: 8px;
  padding: 16px;
  color: #aab8ca;
  background: rgba(15, 23, 42, .5);
  font-weight: 800;
}

@media (max-width: 980px) {
  .tk-kpi-grid,
  .tk-board,
  .tk-detail-grid {
    grid-template-columns: 1fr;
  }
  .tk-panel-detail {
    grid-column: auto;
  }
  .tk-chart-wrap {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .tk-panel-head,
  .tk-detail-head,
  .tk-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .tk-keyword-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .tk-keyword-count {
    grid-column: 2;
    text-align: left;
  }
}

.source-registry-card{
  gap: 18px;
}

.source-registry-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.source-registry-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}

.source-registry-checkbox{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.source-active-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.source-active-toggle input{
  width:18px;
  height:18px;
  margin:0;
}

.source-registry-panels{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.95fr);
  gap:18px;
  margin-top:18px;
}

.source-health-grid{
  display:grid;
  gap:14px;
}

.source-status-summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.source-health-card{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border-soft);
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.source-health-card__label{
  font-size:0.76rem;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color: var(--text-soft);
  margin-bottom:6px;
}

.source-health-card__value{
  font-size:1.75rem;
  line-height:1;
  font-weight:800;
  color: var(--text);
  margin-bottom:8px;
}

.source-table-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.source-table-actions .btn{
  min-width:84px;
}

.health-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  font-size:0.74rem;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.health-pill--working{
  color:#7bf1b1;
  border-color: rgba(57, 208, 129, 0.36);
  background: rgba(57, 208, 129, 0.16);
}

.health-pill--failed{
  color:#ff949d;
  border-color: rgba(255, 101, 117, 0.34);
  background: rgba(255, 101, 117, 0.16);
}

.health-pill--blocked{
  color:#ffd782;
  border-color: rgba(255, 190, 92, 0.34);
  background: rgba(255, 190, 92, 0.14);
}

.health-pill--slow{
  color:#8fc6ff;
  border-color: rgba(84, 163, 255, 0.34);
  background: rgba(84, 163, 255, 0.14);
}

.health-pill--untested,
.health-pill--inactive{
  color: var(--text-soft);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 1280px){
  .source-registry-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .source-registry-panels{
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px){
  .source-registry-actions{
    justify-content:flex-start;
  }
  .source-registry-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-status-summary{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .source-registry-grid,
  .source-status-summary{
    grid-template-columns:1fr;
  }
  .source-table-actions{
    flex-direction:column;
  }
  .source-table-actions .btn{
    width:100%;
  }
}


/* b58: Fix file inputs overflowing into right column and blocking doc buttons */
.docs-grid .left { overflow: hidden; }
.docs-grid input[type="file"] { width: 100%; max-width: 100%; box-sizing: border-box; }
.doc-actions-row { position: relative; z-index: 10; pointer-events: auto; }


/* ===== Global responsive pass (b123.3) ===== */
@media (max-width: 1100px){
  .page{
    padding:18px 16px 44px;
  }
  header,
  .workspace-shell-top{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  .header-main,
  .header-actions,
  .campaign-header{
    width:100%;
    justify-content:flex-start;
  }
  .workspace-shell-actions{
    width:100%;
    justify-content:stretch;
  }
  .workspace-date-filter{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .workspace-search-row{
    flex-wrap:wrap;
  }
  .workspace-search-row .input{
    min-width:0;
    width:100%;
  }
  .grid-2,
  .ad-grid{
    grid-template-columns:1fr;
  }
  .news-country-row,
  .campaign-list .row,
  .workspace-widget-head,
  .workspace-modal-head,
  .card-head-row,
  .ad-service-card{
    flex-direction:column;
    align-items:stretch;
  }
  .campaign-list .row-actions{
    width:100%;
    justify-content:flex-start;
  }
  .news-country-left{
    min-width:0;
  }
  .news-country-actions,
  .ad-service-actions,
  .ad-url-actions,
  .action-row,
  .results-tabs,
  .platform-tabs{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }
  .news-country-actions > *,
  .ad-service-actions > *,
  .ad-url-actions > *,
  .action-row > *,
  .results-tabs > *,
  .platform-tabs > *{
    width:100%;
    min-width:0;
  }
  .overview-metric-grid,
  .overview-snippet-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .overview-grid--primary,
  .overview-grid--secondary,
  .overview-grid--tertiary,
  .overview-grid--triad,
  .overview-grid--duo,
  .overview-grid--risk,
  .overview-grid--feature-rail,
  .overview-grid--split-heavy{
    grid-template-columns:1fr;
  }
  .overview-card--span-2{
    grid-column:span 1;
  }
  .overview-sentiment-shell,
  .overview-geo-shell,
  .overview-presence-shell,
  .ad-proof-item,
  .ad-proof-media,
  .ad-match-compare{
    grid-template-columns:1fr;
  }
  .ad-proof-support{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-template-rows:none;
  }
  .overview-card-tools{
    width:100%;
    justify-content:flex-start;
    margin-left:0;
  }
  .ad-current-scan-top{
    flex-direction:column;
    align-items:stretch;
  }
  .overview-card-head{
    gap:10px;
  }
  .overview-table-shell,
  .table-shell,
  .overview-table-shell .overview-table,
  .pub-table,
  .admin-table{
    min-width:0;
  }
  body[data-dashboard-theme="modern"] .dashboard-shell{
    grid-template-columns:1fr;
  }
  body[data-dashboard-theme="modern"] .dashboard-rail{
    grid-column:1;
    grid-row:auto;
    position:relative;
    top:auto;
  }
  body[data-dashboard-theme="modern"] .hero,
  body[data-dashboard-theme="modern"] .dashboard-panels{
    grid-column:1;
    grid-row:auto;
  }
  body[data-dashboard-theme="modern"] .hero-row{
    grid-template-columns:1fr;
  }
  body[data-dashboard-theme="modern"] .hero-pills{
    justify-content:flex-start;
  }
  body[data-dashboard-theme="modern"] .tab-bar{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    overflow:visible;
    flex-wrap:wrap;
    padding:14px;
  }
  body[data-dashboard-theme="modern"] .tab-btn{
    width:100%;
    min-height:48px;
  }
}

@media (max-width: 820px){
  .page{
    padding:16px 14px 40px;
  }
  header,
  .panel,
  .workspace-shell-top,
  .workspace-widget-shell,
  .ad-service-card,
  .workspace-modal-card,
  .campaign-modal .box{
    border-radius:18px;
  }
  .panel,
  .workspace-shell-top,
  .workspace-widget-shell,
  .ad-service-card{
    padding:14px;
  }
  .hero-pills,
  .workspace-breadcrumbs,
  .widget-toggle-panel{
    gap:8px;
  }
  .workspace-date-filter,
  .workspace-shell-actions{
    grid-template-columns:1fr;
  }
  .workspace-search-row{
    display:grid;
    grid-template-columns:1fr;
  }
  .workspace-theme-toggle{
    width:100%;
    justify-content:space-between;
  }
  .theme-toggle-btn{
    flex:1 1 0;
    justify-content:center;
  }
  .results-tabs,
  .platform-tabs,
  .news-country-actions,
  .ad-service-actions,
  .ad-url-actions,
  .action-row{
    grid-template-columns:1fr;
  }
  .overview-metric-grid,
  .overview-snippet-grid,
  .overview-mini-grid,
  .rs-kpis,
  .rs-detail-kpis,
  .rs-stat-grid{
    grid-template-columns:1fr;
  }
  .rs-kpi,
  .rs-detail-kpi,
  .rs-stat-card{
    grid-column:1 / -1;
  }
  .overview-hot-grid{
    min-width:600px;
  }
  .overview-cloud{
    min-height:180px;
  }
  .campaign-row-btn{
    width:100%;
  }
  .workspace-modal-card{
    margin:16px auto;
    max-height:calc(100vh - 32px);
    padding:16px;
  }
  .notification-drawer{
    width:100vw;
    right:-100vw;
  }
  .rs-source-tabs,
  .rs-quality-tabs{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .rs-source-tab,
  .rs-quality-tab{
    width:100%;
    text-align:center;
  }
  .rs-table,
  .pub-table,
  .admin-table,
  .overview-table{
    min-width:640px;
  }
  body[data-dashboard-theme="modern"] .page{
    padding:16px 14px 40px;
  }
  body[data-dashboard-theme="modern"] header,
  body[data-dashboard-theme="modern"] .workspace-shell-top,
  body[data-dashboard-theme="modern"] .workspace-widget-shell,
  body[data-dashboard-theme="modern"] .hero,
  body[data-dashboard-theme="modern"] .panel,
  body[data-dashboard-theme="modern"] .dashboard-rail-card,
  body[data-dashboard-theme="modern"] .tab-bar{
    border-radius:20px;
  }
}

@media (max-width: 640px){
  .page{
    padding:14px 12px 34px;
  }
  .header-main,
  .header-actions,
  .campaign-header,
  .workspace-search-result-top,
  .notification-item-head{
    display:grid;
    gap:8px;
  }
  .workspace-breadcrumbs .crumb,
  .campaign-chip{
    width:100%;
    justify-content:flex-start;
    white-space:normal;
  }
  .home-widget-board,
  .ad-summary-grid,
  .overview-metric-grid,
  .overview-snippet-grid,
  .overview-mini-grid,
  .rs-kpis,
  .rs-detail-kpis,
  .rs-stat-grid{
    grid-template-columns:1fr;
  }
  .rs-kpi,
  .rs-detail-kpi,
  .rs-stat-card{
    grid-column:1 / -1;
  }
  .overview-geo-heat{
    grid-template-columns:1fr;
  }
  .overview-hot-grid{
    min-width:520px;
  }
  .ad-proof-support{
    grid-template-columns:1fr;
  }
  .workspace-modal-card,
  .rs-modal-card,
  .campaign-modal .box,
  .modal{
    width:min(calc(100% - 16px), 980px);
  }
  .rs-source-tabs,
  .rs-quality-tabs,
  body[data-dashboard-theme="modern"] .tab-bar{
    grid-template-columns:1fr;
  }
  body[data-dashboard-theme="modern"] .tab-bar{
    overflow:visible;
    padding:12px;
  }
  body[data-dashboard-theme="modern"] .tab-btn{
    min-height:46px;
  }
  .modal-overlay{
    padding:12px;
  }
  .modal-header,
  .modal-body{
    padding:14px;
  }
  .campaign-modal{
    padding:12px;
  }
  .campaign-modal .top{
    display:grid;
    gap:10px;
  }
}

@media (max-width: 480px){
  .page{
    padding:12px 10px 28px;
  }
  .panel,
  .workspace-shell-top,
  .workspace-widget-shell,
  .ad-service-card,
  .workspace-modal-card,
  .campaign-modal .box{
    padding:12px;
    border-radius:16px;
  }
  .panel-title,
  .reporting-title,
  .title,
  .overview-card h4,
  .rs-card-title{
    overflow-wrap:anywhere;
  }
  .overview-hot-grid{
    min-width:460px;
  }
  .workspace-shell-actions,
  .workspace-date-filter,
  .workspace-search-row,
  .results-tabs,
  .platform-tabs,
  .news-country-actions,
  .ad-service-actions,
  .ad-url-actions,
  .action-row{
    gap:8px;
  }
}
.doc-actions-row button { position: relative; z-index: 11; pointer-events: auto; }
.docs-jobs-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
  border:1px solid rgba(148,163,184,0.16);
  background:linear-gradient(180deg, rgba(17,24,39,0.78), rgba(15,23,42,0.7));
  border-radius:16px;
  padding:12px;
}
.docs-jobs-empty{
  color:#94a3b8;
  font-size:13px;
}
.docs-jobs-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.docs-job-card{
  border:1px solid rgba(148,163,184,0.14);
  background:rgba(15,23,42,0.55);
  border-radius:14px;
  padding:12px;
}
.docs-job-card.is-report-link{
  cursor:pointer;
  transition:border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.docs-job-card.is-report-link:hover{
  border-color:rgba(249,115,22,0.32);
  box-shadow:0 8px 22px rgba(249,115,22,0.08);
  transform:translateY(-1px);
}
.docs-job-card.is-report-link:focus-visible{
  outline:none;
  border-color:rgba(249,115,22,0.48);
  box-shadow:0 0 0 3px rgba(249,115,22,0.18);
}
.docs-job-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.docs-job-title{
  color:#f8fafc;
  font-weight:700;
  font-size:14px;
  line-height:1.3;
}
.docs-job-sub{
  color:#94a3b8;
  font-size:12px;
  margin-top:2px;
}
.docs-job-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border:1px solid rgba(148,163,184,0.22);
  color:#e5e7eb;
  background:rgba(30,41,59,0.92);
  white-space:nowrap;
}
.docs-job-badge.is-queued{
  color:#fdba74;
  border-color:rgba(249,115,22,0.35);
  background:rgba(124,45,18,0.28);
}
.docs-job-badge.is-processing{
  color:#93c5fd;
  border-color:rgba(59,130,246,0.35);
  background:rgba(30,64,175,0.24);
}
.docs-job-badge.is-paused{
  color:#fde68a;
  border-color:rgba(245,158,11,0.35);
  background:rgba(120,53,15,0.24);
}
.docs-job-badge.is-completed{
  color:#86efac;
  border-color:rgba(34,197,94,0.35);
  background:rgba(20,83,45,0.24);
}
.docs-job-badge.is-canceled{
  color:#fda4af;
  border-color:rgba(244,63,94,0.35);
  background:rgba(136,19,55,0.22);
}
.docs-job-badge.is-failed{
  color:#fca5a5;
  border-color:rgba(239,68,68,0.35);
  background:rgba(127,29,29,0.24);
}
.docs-job-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  color:#cbd5e1;
  font-size:12px;
  margin-bottom:8px;
}
.docs-job-meta strong{
  color:#f8fafc;
}
.docs-job-progress{
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
}
.docs-job-progress > span{
  display:block;
  height:100%;
  width:0;
  border-radius:999px;
  background:linear-gradient(90deg, #f97316, #fb923c);
  transition:width 0.25s ease;
}
.docs-job-page-progress{
  margin-top:10px;
}
.docs-job-page-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  color:#cbd5e1;
  font-size:11px;
}
.docs-job-page-progress-head strong{
  color:#f8fafc;
  font-size:11px;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.docs-job-page-progress-bar{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(10px, 1fr));
  gap:4px;
}
.docs-job-page-seg{
  display:block;
  height:10px;
  border-radius:999px;
  background:rgba(148,163,184,0.18);
  border:1px solid rgba(148,163,184,0.12);
}
.docs-job-page-seg.is-complete{
  background:linear-gradient(90deg, rgba(34,197,94,0.95), rgba(74,222,128,0.95));
  border-color:rgba(34,197,94,0.4);
  box-shadow:0 0 0 1px rgba(34,197,94,0.08);
}
.docs-job-page-seg.is-active{
  background:linear-gradient(90deg, rgba(249,115,22,0.95), rgba(251,146,60,0.95));
  border-color:rgba(249,115,22,0.42);
  box-shadow:0 0 0 1px rgba(249,115,22,0.12);
}
.docs-job-page-progress.is-waiting{
  margin-top:10px;
  color:#94a3b8;
  font-size:12px;
}
.docs-job-message{
  color:#94a3b8;
  font-size:12px;
  margin-top:8px;
  line-height:1.4;
}
.docs-job-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.docs-job-action-btn{
  appearance:none;
  border:1px solid rgba(148,163,184,0.22);
  background:rgba(30,41,59,0.82);
  color:#e5e7eb;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  padding:7px 12px;
  cursor:pointer;
  transition:background 0.2s ease,border-color 0.2s ease,opacity 0.2s ease;
}
.docs-job-action-btn:hover{
  background:rgba(51,65,85,0.95);
}
.docs-job-action-btn.is-primary{
  border-color:rgba(59,130,246,0.35);
  background:rgba(30,64,175,0.24);
  color:#bfdbfe;
}
.docs-job-action-btn.is-danger{
  border-color:rgba(239,68,68,0.35);
  background:rgba(127,29,29,0.24);
  color:#fecaca;
}
.docs-job-action-btn:disabled,
.docs-jobs-list.is-busy .docs-job-action-btn{
  opacity:0.55;
  cursor:wait;
}



/* ===== Country-grouped news sources UI ===== */
.news-country-row{
  display:flex;
  gap:12px;
  align-items:flex-end;
  justify-content:space-between;
  margin:8px 0 4px;
}
.news-country-left{ flex:1; min-width:220px; }
.news-country-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

/* ===== Campaign modal reason ===== */
.campaign-reason{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:10px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

/* ===== Report Studio (needs campaign) ===== */
.rs-need-campaign .card{
  margin: 10px 0;
}


/* EIM Identity Lock (do not change names of buttons) */
.is-disabled{opacity:0.6;cursor:not-allowed;}
mark{background: rgba(245,158,11,0.25); padding:0 2px; border-radius:4px;}


/* --- Auth (b93) --- */
.auth-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;}
.auth-card{width:min(520px, 92vw); background:var(--card); border:1px solid var(--border-soft); border-radius:22px; padding:26px; box-shadow: 0 20px 60px rgba(0,0,0,.08);}
.auth-brand{display:flex; align-items:center; gap:12px; margin-bottom:14px;}
.brand-mark{width:56px; height:56px; border-radius:0; display:flex; align-items:center; justify-content:center; background:transparent; overflow:hidden; flex:0 0 auto;}
.brand-mark img{width:100%; height:100%; object-fit:contain; display:block;}
.brand-name{font-weight:800; letter-spacing:.12em; font-size:12px; color:var(--text-soft);}
.brand-sub{font-weight:800; font-size:18px; color:var(--text-main);}
.auth-title{margin:12px 0 4px; font-size:26px;}


/* LinkedIn + Executive + reliability */
#platform-linkedin .field-hint { color:#6b7280; font-size:12px; }
#linkedin-inputs, #linkedin-keywords, #linkedin-language-filter { width:100%; }

.badge-language {
  background: #eef4ff;
  color: #214e9b;
  border: 1px solid #cfe0ff;
}

.exec-shell{display:grid;gap:16px;border:1px solid rgba(148,163,184,0.18);background:linear-gradient(180deg,#ffffff,rgba(249,250,251,0.96))}
.exec-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px}
.exec-summary-panel,.exec-top-panel{border:1px solid rgba(148,163,184,0.18);border-radius:18px;padding:16px;background:#fff}
.exec-badge-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.exec-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;font-size:.82rem;font-weight:800}
.exec-chip--green{background:rgba(34,197,94,0.12);color:#166534;border:1px solid rgba(34,197,94,0.24)}
.exec-chip--amber{background:rgba(245,158,11,0.14);color:#92400e;border:1px solid rgba(245,158,11,0.24)}
.exec-chip--red{background:rgba(239,68,68,0.12);color:#991b1b;border:1px solid rgba(239,68,68,0.24)}
.exec-chip--subtle{background:rgba(15,23,42,0.06);color:#334155;border:1px solid rgba(148,163,184,0.18)}
.exec-summary-text {
  font-size: 18px;
  line-height: 1.65;
  color: #1f2937;
  margin-bottom: 4px;
}
.exec-top-grid{display:grid;gap:10px}
.exec-mention-card{border:1px solid rgba(148,163,184,0.18);border-radius:14px;padding:12px;background:rgba(248,250,252,0.9);display:grid;gap:8px}
.exec-mention-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.exec-mention-source{font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:#f97316;font-weight:900}
.exec-mention-tag{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#111827;color:#fff;font-size:.78rem;font-weight:800}
.exec-mention-title{font-weight:800;color:#111827;line-height:1.45}
.exec-mention-actions a{font-size:.9rem;font-weight:800}
.exec-empty{padding:14px;border-radius:14px;background:rgba(248,250,252,0.9);color:#64748b;border:1px dashed rgba(148,163,184,0.28)}
.exec-kpis {
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap:12px;
  margin: 0;
}
.exec-kpi {
  border:1px solid rgba(148,163,184,0.18);
  background:#fff;
  border-radius:16px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  box-shadow:0 12px 24px rgba(15,23,42,0.05);
}
.exec-kpi--risk{background:linear-gradient(180deg,rgba(249,115,22,0.10),#fff)}
.exec-kpi span {
  font-size:12px;
  text-transform:uppercase;
  color:#6b7280;
  letter-spacing:.08em;
}
.exec-kpi strong {
  font-size:28px;
  color:#111827;
}
.btn[disabled], .btn-primary[disabled], .btn-secondary[disabled], .btn-ghost[disabled] {
  opacity:.65;
  cursor:not-allowed;
}
@media (max-width: 1100px){
  .exec-hero{grid-template-columns:1fr}
  .exec-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .exec-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* ===== Feature 7 — WCAG 2.1 Accessibility Compliance ===== */
:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
}

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

/* Better contrast */
.field-hint, .hint, .muted, .panel-subtitle, .panel-sub {
  color: #4b5563 !important;
}

.badge-language {
  background: #dbeafe !important;
  color: #123a7a !important;
  border-color: #93c5fd !important;
}

.btn, .btn-primary, .btn-secondary, .btn-ghost, .tab-btn, .platform-tab, .subtab-btn, .subtab {
  min-height: 44px;
}

input, textarea, select, button {
  font-size: 16px;
}

.tab-btn.active, .platform-tab.active, .subtab-btn.active, .subtab.active {
  box-shadow: 0 0 0 2px rgba(29,78,216,.25);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ===== Feature 8 — Guided Onboarding Wizard ===== */
.modal-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
  z-index: 10020;
  overflow: auto;
}
.modal-shell[aria-hidden="true"] {
  display: none;
}
.modal-card {
  width: min(92vw, 860px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .32);
  padding: 22px;
}
.modal-card .modal-header {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 16px;
}
.modal-card .modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.modal-card .modal-subtitle {
  margin-top: 4px;
  color: #4b5563;
}
.modal-card .modal-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 18px;
  padding-top: 16px;
}
.onboarding-card { max-width: 860px; width: min(92vw, 860px); }
.onboarding-start-panel {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 16px;
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
  margin: 8px 0 18px;
}
.onboarding-step {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}
.onboarding-step.active {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
  font-weight: 600;
}
.onboarding-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.onboarding-action-row > * {
  flex: 1 1 220px;
}
.onboarding-body h3 { margin: 0 0 10px; }
.onboarding-body textarea,
.onboarding-body select {
  width: 100%;
}
.onboarding-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.onboarding-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.onboarding-check-grid label,
.onboarding-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
}
.onboarding-inline-check {
  margin-top: 10px;
}
.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-actions { display: flex; gap: 10px; }
#rsCampaignSelect option:disabled {
  color: #9ca3af;
}
@media (max-width: 900px){
  .modal-shell { align-items: flex-start; padding: 14px; }
  .modal-card { width: 100%; max-height: calc(100vh - 28px); padding: 18px; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-form-grid,
  .onboarding-check-grid { grid-template-columns: 1fr; }
  .onboarding-action-row { display: grid; grid-template-columns: 1fr; }
  .onboarding-footer { flex-direction: column; gap: 12px; align-items: stretch; }
  .footer-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}


/* ===== Daily Email Alerts UI ===== */
.scheduler-help {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.5;
}
.scheduler-help code {
  display: inline-block;
  margin-top: 6px;
  background: #111827;
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
}
.email-preview-box {
  min-height: 180px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  overflow: auto;
}
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }


/* ===== Quick start actions ===== */
.quickstart-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
.quickstart-card{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:18px;
  padding:18px;
  text-align:left;
  cursor:pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.quickstart-card:hover{
  border-color:#fdba74;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.quickstart-icon{
  font-size:28px;
  margin-bottom:10px;
}
.quickstart-title{
  font-size:18px;
  font-weight:700;
  color:#111827;
  margin-bottom:6px;
}
.quickstart-text{
  color:#4b5563;
  line-height:1.5;
}
select{
  appearance:auto;
  -webkit-appearance:menulist;
  -moz-appearance:menulist;
}
@media (max-width: 900px){
  .quickstart-grid{ grid-template-columns: 1fr; }
}

/* ===== Workspace shell + ad detection (b111) ===== */
.workspace-shell{
  display:grid;
  gap:14px;
  margin-bottom:18px;
}
.workspace-collapse{
  border:1px solid rgba(209,213,219,.78);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fffaf5 100%);
  overflow:hidden;
}
.workspace-collapse summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  font-weight:700;
  color:var(--text-main);
}
.workspace-collapse summary::-webkit-details-marker{
  display:none;
}
.workspace-collapse summary::after{
  content:"+";
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid rgba(209,213,219,.85);
  color:var(--text-soft);
  background:rgba(255,255,255,.86);
  font-size:1rem;
}
.workspace-collapse[open] summary::after{
  content:"−";
}
.workspace-collapse-meta{
  margin-left:auto;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(249,115,22,.1);
  border:1px solid rgba(249,115,22,.16);
  color:var(--accent-strong);
  font-size:.82rem;
  font-weight:700;
}
.workspace-collapse-body{
  padding:0 16px 16px;
}
.workspace-collapse--nested{
  margin-top:14px;
  background:#fff;
}
.workspace-collapse--nested summary{
  padding:12px 14px;
  font-size:.94rem;
}
.workspace-shell-top,
.workspace-widget-shell,
.ad-service-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(209,213,219,.9);
  border-radius:20px;
  padding:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.workspace-shell-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
}
.workspace-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  min-height:40px;
}
.workspace-breadcrumbs .crumb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(209,213,219,.9);
  color:var(--text-soft);
  font-size:.85rem;
  white-space:nowrap;
}
.workspace-breadcrumbs .crumb.current{
  background:rgba(249,115,22,.12);
  border-color:rgba(249,115,22,.28);
  color:var(--text-main);
  font-weight:700;
}
.workspace-shell-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-end;
  align-items:end;
}
.workspace-date-filter,
.workspace-search{
  display:grid;
  gap:6px;
}
.workspace-date-filter{
  grid-template-columns:repeat(3,minmax(120px,1fr));
  align-items:end;
}
.workspace-date-filter .field-label,
.workspace-search .field-label,
.ad-match-filter .field-label{
  grid-column:1 / -1;
  margin:0;
}
.workspace-search-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.workspace-search-row .input{
  min-width:280px;
}
.news-country-actions .btn,
.ad-service-actions .btn-primary,
.ad-service-actions .btn-secondary{
  min-height:42px;
}
.notification-btn{
  position:relative;
  min-height:42px;
}
.command-center-open-btn{
  min-height:42px;
  white-space:nowrap;
}

.ad-status-pill{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(209,213,219,.72);
  background:rgba(255,255,255,.88);
  color:var(--text-main);
  font-size:.82rem;
  font-weight:700;
}

.ad-status-pill--success{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.24);
  color:#166534;
}

.ad-status-pill--warn{
  background:rgba(249,115,22,.12);
  border-color:rgba(249,115,22,.24);
  color:#c2410c;
}

.ad-status-pill--danger{
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.24);
  color:#b91c1c;
}

.ad-status-pill--info{
  background:rgba(59,130,246,.12);
  border-color:rgba(59,130,246,.22);
  color:#1d4ed8;
}

body[data-dashboard-theme="modern"] .ad-status-pill{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.12);
  color:#f8fafc;
}

body[data-dashboard-theme="modern"] .ad-status-pill--success{
  background:rgba(34,197,94,.16);
  border-color:rgba(34,197,94,.26);
  color:#bbf7d0;
}

body[data-dashboard-theme="modern"] .ad-status-pill--warn{
  background:rgba(249,115,22,.18);
  border-color:rgba(249,115,22,.28);
  color:#fdba74;
}

body[data-dashboard-theme="modern"] .ad-status-pill--danger{
  background:rgba(239,68,68,.18);
  border-color:rgba(239,68,68,.28);
  color:#fecaca;
}

body[data-dashboard-theme="modern"] .ad-status-pill--info{
  background:rgba(59,130,246,.16);
  border-color:rgba(59,130,246,.24);
  color:#bfdbfe;
}
.notification-count{
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.75rem;
  font-weight:800;
}
.workspace-widget-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}
.widget-toggle-panel{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding:12px 0 2px;
}
.widget-toggle-panel label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.92rem;
  color:var(--text-soft);
}
.home-widget-board{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.home-widget{
  border:1px solid rgba(209,213,219,.9);
  border-radius:16px;
  background:#fff;
  padding:14px;
  display:grid;
  gap:8px;
  min-height:118px;
}
.home-widget strong{
  font-size:1.4rem;
}
.home-widget .muted{
  margin:0;
}
.home-widget .btn-secondary,
.home-widget .btn-primary{
  width:max-content;
}
body.command-center-open{
  overflow:hidden;
}
.command-center-modal{
  z-index:1120;
  padding:24px;
  align-items:center;
  justify-content:center;
}
.workspace-modal.command-center-modal.show{
  display:flex;
}
.command-center-modal .workspace-modal-backdrop{
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.command-center-card{
  position:relative;
  width:min(1180px, calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  margin:0;
  padding:18px;
  border-radius:22px;
}
.command-center-head-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}
.command-center-modal .home-widget-board{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
body[data-dashboard-theme="modern"] .command-center-card{
  background:linear-gradient(135deg, rgba(18,24,33,.96), rgba(20,33,45,.92));
  border-color:rgba(255,255,255,.16);
  box-shadow:0 32px 90px rgba(0,0,0,.42);
}
body[data-dashboard-theme="modern"] .command-center-open-btn{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.14);
  color:#f8fafc;
}
.session-timeout-banner{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(249,115,22,.3);
  background:rgba(249,115,22,.1);
  color:var(--text-main);
  font-weight:600;
}
.workspace-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:1100;
}
.workspace-modal.show{
  display:block;
}
.workspace-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
}
.workspace-modal-card{
  position:relative;
  max-width:920px;
  margin:48px auto;
  background:#fff;
  border-radius:20px;
  border:1px solid rgba(209,213,219,.9);
  box-shadow:0 28px 70px rgba(15,23,42,.24);
  padding:18px;
  width:min(calc(100% - 24px), 920px);
  max-height:calc(100vh - 96px);
  overflow:auto;
}
.workspace-modal-head,
.card-head-row,
.ad-service-card{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.workspace-search-row--modal{
  margin:12px 0 14px;
}
.workspace-modal-results{
  display:grid;
  gap:10px;
}
.workspace-search-result{
  border:1px solid rgba(209,213,219,.85);
  border-radius:14px;
  background:#fff;
  padding:12px 14px;
  display:grid;
  gap:6px;
}
.workspace-search-result-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.workspace-search-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:4px 8px;
  background:rgba(15,23,42,.06);
  color:var(--text-soft);
  font-size:.75rem;
  font-weight:700;
}
.notification-drawer{
  position:fixed;
  top:0;
  right:-420px;
  width:min(420px,100vw);
  height:100vh;
  z-index:1090;
  background:#fff;
  border-left:1px solid rgba(209,213,219,.9);
  box-shadow:-12px 0 32px rgba(15,23,42,.18);
  transition:right .2s ease;
  display:flex;
  flex-direction:column;
}
.notification-drawer.show{
  right:0;
}
.notification-drawer-head{
  padding:18px 18px 10px;
  border-bottom:1px solid rgba(209,213,219,.85);
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.notification-list{
  overflow:auto;
  padding:16px;
  display:grid;
  gap:10px;
}
.notification-item{
  border:1px solid rgba(209,213,219,.85);
  border-radius:14px;
  padding:12px;
  display:grid;
  gap:6px;
}
.notification-item[data-severity="high"]{
  border-color:rgba(220,38,38,.28);
  background:rgba(254,242,242,.95);
}
.notification-item[data-severity="medium"]{
  border-color:rgba(245,158,11,.28);
  background:rgba(255,251,235,.95);
}
.notification-item-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.ad-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin-bottom:14px;
}
#ad-panel .panel-header{
  display:grid;
  gap:8px;
  padding:18px 20px;
  margin-bottom:14px;
  border:1px solid rgba(249,115,22,.16);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,247,237,.96) 100%);
  box-shadow:0 14px 30px rgba(15,23,42,.06);
}
.ad-country-row{
  margin-bottom:8px;
}
.ad-country-copy{
  margin:6px 0 12px;
  line-height:1.55;
}
.ad-defaults-grid{
  margin-top:4px;
}
.ad-url-editor textarea,
#ad-url-list{
  min-height:190px;
}
.ad-summary-card{
  border:1px solid rgba(209,213,219,.85);
  border-radius:16px;
  background:linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  padding:14px;
  display:grid;
  gap:8px;
}
.ad-summary-card span{
  color:var(--text-soft);
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.ad-summary-card strong{
  font-size:1.7rem;
}
.ad-service-card{
  margin-bottom:14px;
}
.ad-proof-card{
  margin-bottom:14px;
}
.ad-proof-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.ad-proof-item{
  border:1px solid rgba(209,213,219,.85);
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#fffaf5 100%);
  padding:12px;
  display:grid;
  grid-template-columns:minmax(220px,340px) minmax(0,1fr);
  gap:14px;
}
.ad-proof-media{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(180px,.9fr);
  gap:8px;
}
.ad-proof-billboard,
.ad-proof-support{
  display:grid;
  gap:8px;
}
.ad-proof-support{
  grid-template-rows:repeat(2, minmax(0, 1fr));
}
.ad-proof-billboard-frame,
.ad-proof-support-card,
.ad-proof-media > div{
  min-height:132px;
  border-radius:12px;
  border:1px solid rgba(209,213,219,.85);
  background:#f8fafc;
  overflow:hidden;
}
.ad-proof-billboard-frame,
.ad-proof-media > div{
  display:grid;
  place-items:center;
}
.ad-proof-billboard-frame{
  min-height:238px;
}
.ad-proof-support-card{
  padding:8px;
  display:grid;
  gap:8px;
  align-content:start;
}
.ad-proof-support-card > div{
  min-height:104px;
  border-radius:10px;
  background:rgba(15,23,42,.04);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.ad-proof-support-card strong,
.ad-proof-media-label{
  font-size:.76rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-soft);
}
.ad-proof-support-card strong{
  display:block;
}
.ad-proof-body{
  display:grid;
  gap:10px;
  min-width:0;
}
.ad-proof-kpis{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ad-proof-kpis span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(249,115,22,.16);
  background:rgba(249,115,22,.08);
  color:var(--accent-strong);
  font-size:.84rem;
}
.ad-proof-note{
  color:var(--text-soft);
  font-size:.9rem;
  line-height:1.45;
}
.ad-proof-pages{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.ad-proof-pages li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(15,23,42,.04);
}
.ad-proof-pages a{
  min-width:0;
  overflow-wrap:anywhere;
  font-weight:700;
}
.ad-service-card .field-hint{
  max-width:72ch;
}
.ad-service-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.ad-scan-progress{
  display:grid;
  gap:8px;
  flex:1 1 100%;
  min-width:min(100%, 560px);
}
.ad-scan-progress[hidden]{
  display:none;
}
.ad-scan-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#4b5563;
  font-size:.9rem;
}
.ad-scan-progress-top strong{
  color:#111827;
  white-space:nowrap;
}
.ad-scan-progress .progress-outer{
  margin:0;
  height:10px;
  background:rgba(15,23,42,.08);
}
.ad-scan-progress .progress-inner{
  width:0;
  transition:width .35s ease;
}
.ad-current-scans-card{
  margin-bottom:14px;
}
.ad-current-scans-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.ad-current-scan-item{
  border:1px solid rgba(209,213,219,.16);
  border-radius:16px;
  background:rgba(15,23,42,.22);
  padding:14px;
  display:grid;
  gap:10px;
}
.ad-current-scan-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.ad-current-scan-title{
  font-weight:800;
  color:#f8fafc;
}
.ad-current-scan-url{
  color:var(--text-soft);
  overflow-wrap:anywhere;
}
.ad-current-scan-stats{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  color:var(--text-soft);
  font-size:.92rem;
}
.ad-current-scan-stats strong{
  color:#fff;
}
.ad-current-scan-note{
  color:var(--text-soft);
  font-size:.94rem;
  line-height:1.5;
}
.ad-current-scan-item .progress-outer{
  margin:0;
}
.ad-current-scan-summary{
  padding:14px 16px;
  border:1px dashed rgba(209,213,219,.16);
  border-radius:16px;
  background:rgba(15,23,42,.14);
  color:var(--text-soft);
  line-height:1.6;
}
.ad-current-scan-summary strong{
  color:#fff;
}
.ad-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  margin-bottom:14px;
}
.table-shell{
  overflow:auto;
  margin-top:12px;
}
.ad-table th,
.ad-table td{
  vertical-align:top;
}
.ad-table thead th{
  background:rgba(249,115,22,.08);
}
.ad-row-active-country{
  background:rgba(249,115,22,.05);
}
.ad-url-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.ad-country-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(249,115,22,.2);
  background:rgba(249,115,22,.1);
  color:var(--accent-strong);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.02em;
}
.ad-reference-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-top:12px;
}
.ad-reference-card,
.ad-match-card{
  border:1px solid rgba(209,213,219,.85);
  border-radius:16px;
  background:#fff;
  padding:12px;
  display:grid;
  gap:8px;
}
.ad-reference-preview,
.ad-match-compare{
  background:#f8fafc;
  border:1px solid rgba(209,213,219,.8);
  border-radius:12px;
  min-height:132px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.ad-reference-preview img,
.ad-reference-preview video,
.ad-match-compare img,
.ad-match-compare video,
.ad-proof-billboard-frame img,
.ad-proof-billboard-frame video,
.ad-proof-support-card img,
.ad-proof-support-card video,
.ad-proof-media img,
.ad-proof-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ad-reference-meta,
.ad-match-meta{
  display:grid;
  gap:4px;
  color:var(--text-soft);
  font-size:.88rem;
}
.ad-match-summary{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(249,115,22,.08);
  border:1px solid rgba(249,115,22,.14);
  color:var(--accent-strong);
  font-size:.88rem;
  font-weight:700;
}
.ad-match-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.ad-match-compare{
  grid-template-columns:1fr 1fr;
}
.ad-match-compare > div{
  min-height:140px;
  border-right:1px solid rgba(209,213,219,.85);
  display:grid;
  place-items:center;
}
.ad-match-compare > div:last-child{
  border-right:none;
}
.ad-confidence{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:4px 10px;
  background:rgba(249,115,22,.12);
  color:var(--accent-strong);
  font-weight:800;
}
.ad-match-filter{
  min-width:140px;
}

@media (max-width: 980px){
  .dashboard-shell{
    gap:12px;
  }
  .workspace-shell-top{
    grid-template-columns:1fr;
  }
  .workspace-shell-actions{
    width:100%;
    justify-content:stretch;
  }
  .workspace-date-filter{
    grid-template-columns:1fr;
    justify-content:stretch;
  }
  .workspace-search-row{
    flex-wrap:wrap;
  }
  .workspace-search-row .input{
    min-width:0;
    width:100%;
  }
  .workspace-theme-block{
    width:100%;
  }
  body[data-dashboard-theme="modern"] .dashboard-shell{
    grid-template-columns:1fr;
  }
  body[data-dashboard-theme="modern"] .dashboard-rail{
    grid-column:1;
    grid-row:auto;
    position:relative;
    top:auto;
  }
  body[data-dashboard-theme="modern"] .hero,
  body[data-dashboard-theme="modern"] .dashboard-panels{
    grid-column:1;
    grid-row:auto;
  }
  body[data-dashboard-theme="modern"] .hero-row{
    grid-template-columns:1fr;
  }
  body[data-dashboard-theme="modern"] .hero-pills{
    justify-content:flex-start;
  }
  body[data-dashboard-theme="modern"] .tab-bar{
    flex-direction:row;
    flex-wrap:wrap;
    border-radius:24px;
  }
  body[data-dashboard-theme="modern"] .tab-btn{
    width:auto;
  }
	  .ad-grid{
	    grid-template-columns:1fr;
	  }
	  .ad-proof-item{
	    grid-template-columns:1fr;
	  }
	  .ad-proof-media{
	    grid-template-columns:1fr;
	  }
	  .ad-proof-support{
	    grid-template-columns:repeat(2, minmax(0,1fr));
	    grid-template-rows:none;
	  }
	  #ad-panel .panel-header{
	    padding:16px;
	  }
}
@media (max-width: 680px){
  header{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .ad-proof-support{
    grid-template-columns:1fr;
  }
  .header-main,
  .header-actions,
  .campaign-header{
    width:100%;
    justify-content:flex-start;
  }
  .workspace-widget-head,
  .command-center-head-actions,
  .workspace-modal-head,
  .card-head-row,
  .ad-service-card{
    flex-direction:column;
  }
  .command-center-modal{
    align-items:flex-start;
    padding:12px;
  }
  .command-center-card{
    width:100%;
    max-height:calc(100vh - 24px);
    padding:14px;
    border-radius:18px;
  }
  .command-center-head-actions{
    width:100%;
  }
  .command-center-head-actions .btn{
    width:100%;
  }
  .notification-drawer{
    width:100vw;
    right:-100vw;
  }
  .workspace-modal-card{
    margin:18px auto;
    max-height:calc(100vh - 36px);
  }
  .workspace-theme-toggle{
    width:100%;
    justify-content:space-between;
  }
  .theme-toggle-btn{
    flex:1 1 0;
    justify-content:center;
  }
  body[data-dashboard-theme="modern"] .page{
    padding:16px 14px 36px;
  }
  body[data-dashboard-theme="modern"] header,
  body[data-dashboard-theme="modern"] .workspace-shell-top,
  body[data-dashboard-theme="modern"] .workspace-widget-shell,
  body[data-dashboard-theme="modern"] .hero,
  body[data-dashboard-theme="modern"] .panel,
  body[data-dashboard-theme="modern"] .dashboard-rail-card,
  body[data-dashboard-theme="modern"] .tab-bar{
    border-radius:22px;
  }
  body[data-dashboard-theme="modern"] .tab-bar{
    overflow:auto;
    flex-wrap:nowrap;
    padding:12px;
  }
}

@media (max-width: 1380px){
  body[data-dashboard-theme="modern"] .workspace-shell-actions{
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 980px){
  body[data-dashboard-theme="modern"] .workspace-shell-actions{
    grid-template-columns: 1fr;
  }
  .rs-builder-head,
  .rs-builder-grid,
  .rs-v1-cover,
  .rs-v1-kpis{
    grid-template-columns:1fr;
  }
  .eim-report-v1{
    padding:22px;
  }
  .rs-v1-evidence-head{
    flex-direction:column;
  }
}
