:root {
  --bg: #eef3fb;
  --bg-grad-top: #e9eef8;
  --bg-grad-bottom: #f6f8fd;
  --panel: #f7f8fc;
  --panel-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #dde3ee;
  --accent: #0f6fff;
  --good: #15a46b;
  --warn: #c98700;
  --bad: #d92d20;

  --pill-bg: #ffffff;
  --pill-text: #344054;

  --drawer-bg: #171314;
  --drawer-surface: #070708;
  --drawer-text: #f6f1ec;
  --drawer-line: rgba(255,255,255,0.08);

  --shadow: 0 10px 25px rgba(16,24,40,.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-bottom) 100%);
  color: var(--text);
}

.shell {
  padding: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

h1 {
  margin: 4px 0 0;
  font-size: 30px;
}

.url-form,
.chat-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.url-form input,
.chat-input input {
  min-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

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

.theme-toggle {
  border: 1px solid rgba(15,23,42,0.15);
  background: #fff;
  color: #111827;
  padding: 11px 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-dark {
  background: linear-gradient(180deg, #071126 0%, #0f1d41 100%);
  color: #ecf3ff;
  border-color: #22345f;
}

.panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.panel-dark .panel-title {
  color: #b8caf7;
}

.activity-strip {
  margin-bottom: 16px;
}

.terminal-lines {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
}

#agent-log {
  min-height: 120px;
}

.agent-line {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.agent-prefix {
  color: rgba(255,255,255,0.55);
  flex: 0 0 auto;
}

.agent-text {
  color: rgba(255,255,255,0.92);
  word-break: break-word;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1fr .95fr;
  gap: 16px;
  align-items: start;
}

.company-card h2 {
  margin: 0 0 8px;
}

.company-card p {
  color: var(--muted);
  line-height: 1.5;
}

dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 10px;
  font-size: 14px;
}

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

.subpanel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.simple-list {
  margin: 0;
  padding-left: 18px;
}

.simple-list li {
  margin: 6px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags a,
.tags span,
.pill,
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--pill-bg);
  color: var(--pill-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.score {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel-strong);
}

.score strong {
  display: block;
  font-size: 28px;
}

.score span {
  color: var(--muted);
  font-size: 13px;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.audit-table th,
.audit-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.audit-value-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.badge-pass {
  background: rgba(21,164,107,.12);
  color: var(--good);
}

.badge-warn {
  background: rgba(201,135,0,.12);
  color: var(--warn);
}

.badge-fail {
  background: rgba(217,45,32,.12);
  color: var(--bad);
}

.audit-fix-btn,
.pill-fix {
  background: #dc2626 !important;
  color: #fff !important;
  border: 0 !important;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 600;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-body {
  padding: 0 12px 12px 12px;
}

.count {
  font-size: 12px;
  opacity: 0.7;
}

.rec-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 14px 4px;
}

.rec-row:first-child {
  border-top: 0;
}

.rec-row-main {
  flex: 1;
  min-width: 0;
}

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

.rec-row-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rec-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rec-row-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.rec-row-action {
  flex: 0 0 auto;
}

.rec-row.is-complete {
  opacity: 0.72;
}

.rec-row.is-complete .rec-row-title {
  text-decoration: line-through;
}

.repair-btn {
  border: 1px solid rgba(17,24,39,0.12);
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
}

.pill-credit {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.pill-complete {
  background: rgba(100,220,140,0.14);
  color: #166534;
  border-color: rgba(100,220,140,0.35);
}

.priority {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-critical,
.priority-high {
  color: var(--bad);
}

.priority-medium {
  color: var(--warn);
}

.priority-low {
  color: var(--good);
}

.pill-tone-low {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.pill-tone-medium {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.pill-tone-high {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.pill-tone-critical {
  background: #7f1d1d;
  color: #fff;
  border-color: #ef4444;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 520px;
}

.msg {
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.5;
}

.msg.assistant {
  background: #fff7e6;
  border: 1px solid #eed9a2;
}

.msg.small {
  font-size: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.chat-input input {
  min-width: 0;
  width: 100%;
}

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

.gated-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #f8fafc;
  color: #111827;
}

.gated-btn .lock {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

.upgrade-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.upgrade-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
}

.upgrade-modal-overlay.open {
  display: flex;
}

.upgrade-modal-card {
  width: 100%;
  max-width: 560px;
  background: #151517;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.upgrade-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.upgrade-modal-title {
  font-size: 20px;
  font-weight: 700;
}

.upgrade-modal-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.upgrade-modal-subtitle {
  opacity: 0.86;
  line-height: 1.6;
  margin-bottom: 16px;
}

.upgrade-plan-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.upgrade-feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.upgrade-feature-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

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

.upgrade-primary {
  background: #fff;
  color: #111;
  border: 1px solid rgba(255,255,255,0.12);
}

.upgrade-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.repair-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.repair-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.repair-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 540px;
  max-width: 92vw;
  height: 100vh;
  background: var(--drawer-bg);
  color: var(--drawer-text);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 80;
  overflow-y: auto;
  padding: 22px;
  box-shadow: -20px 0 50px rgba(0,0,0,0.4);
}

.repair-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.drawer-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.drawer-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.drawer-section {
  border-top: 1px solid var(--drawer-line);
  padding-top: 18px;
  margin-top: 18px;
}

.drawer-section h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
}

.drawer-code {
  background: var(--drawer-surface);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.drawer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 28px 0;
}

.drawer-actions button {
  border: 1px solid rgba(255,255,255,0.14);
  background: #121214;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}

.drawer-actions button.primary {
  background: #0d0d0f;
  font-weight: 700;
}

.drawer-meta .pill,
.drawer-ai-meta .pill,
.repair-drawer .pill {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

.repair-drawer .pill-tone-low {
  background: rgba(34,197,94,0.18);
  color: #bbf7d0;
  border-color: rgba(34,197,94,0.35);
}

.repair-drawer .pill-tone-medium {
  background: rgba(245,158,11,0.18);
  color: #fde68a;
  border-color: rgba(245,158,11,0.35);
}

.repair-drawer .pill-tone-high,
.repair-drawer .pill-tone-critical {
  background: rgba(239,68,68,0.18);
  color: #fecaca;
  border-color: rgba(239,68,68,0.35);
}

.drawer-ai-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.drawer-ai-output {
  background: var(--drawer-surface);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
}

.drawer-ai-output p {
  margin: 0 0 12px 0;
}

.drawer-ai-output ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.drawer-ai-output li {
  margin-bottom: 8px;
}

.drawer-ai-output code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.drawer-code-block {
  background: #0f172a;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 12px 0 16px 0;
  white-space: pre-wrap;
}

.ai-section-title {
  margin: 18px 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.ai-intro-callout {
  margin: 0 0 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
  line-height: 1.7;
}

.ai-detail-line {
  margin: 0 0 12px 0;
  line-height: 1.7;
}

.ai-mini-heading {
  margin: 16px 0 8px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ai-inline-label {
  display: inline-block;
  font-weight: 700;
}

.ai-followup-note {
  margin: 16px 0 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
  font-size: 13px;
  line-height: 1.6;
}

.ai-example-card {
    margin: 16px 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-example-card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 10px;
}

.drawer-history {
  margin: 0;
  padding-left: 18px;
}

.drawer-history li {
  margin: 0 0 8px 0;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.5;
}

.muted {
  opacity: 0.7;
  font-size: 12px;
}

@media (max-width: 1400px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .repair-drawer {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .topbar,
  .topbar-actions,
  .chat-input,
  .url-form {
    flex-direction: column;
    align-items: stretch;
  }

  .grid { grid-template-columns: 1fr; }

  .url-form input,
  .chat-input input {
    min-width: 0;
    width: 100%;
  }
}

body.theme-dark {
  background: #0f172a;
  color: #e5e7eb;
}

body.theme-dark .shell {
  color: #e5e7eb;
}

body.theme-dark .panel,
body.theme-dark .subpanel,
body.theme-dark .company-card,
body.theme-dark .chat-box,
body.theme-dark .score,
body.theme-dark .accordion {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .topbar,
body.theme-dark .url-form input,
body.theme-dark .chat-input input,
body.theme-dark .theme-toggle {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.12);
}

body.theme-dark .panel-title,
body.theme-dark .eyebrow,
body.theme-dark dt,
body.theme-dark .muted,
body.theme-dark .rec-row-desc {
  color: #cbd5e1;
}

body.theme-dark .audit-table th,
body.theme-dark .audit-table td,
body.theme-dark .rec-row,
body.theme-dark .simple-list li,
body.theme-dark .subpanel {
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .gated-btn {
  background: #1f2937;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.1);
}

body.theme-dark .gated-btn .lock {
  color: #cbd5e1;
}

body.theme-dark .pill-credit {
  background: #1e293b;
  color: #c7d2fe;
  border-color: #475569;
}

body.theme-dark .drawer-ai-output code {
  background: rgba(255,255,255,0.12);
}

body.theme-dark .ai-intro-callout {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .ai-followup-note {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.18);
}

body.theme-dark .ai-example-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.workspace-mode-row {
  margin-bottom: 10px;
}

.pill-workspace-temp {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.pill-workspace-saved {
  background: #ecfdf3;
  color: #166534;
  border-color: #86efac;
}

.workspace-cta-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.workspace-cta-box p {
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-cta-box-saved {
  background: #f0fdf4;
}

.upgrade-open-btn {
  background: #111827;
  color: #fff;
}

.temp-workspace-list {
  margin: 0 0 10px 0;
}

.temp-workspace-list li {
  color: var(--text);
}

.gated-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.gated-btn strong {
  font-size: 14px;
  line-height: 1.3;
}

.gated-btn small {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.75;
  font-weight: 400;
}

body.theme-dark .temp-workspace-list li {
  color: #e5e7eb;
}

.competitor-snapshot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 130;
  padding: 20px;
}

.competitor-snapshot-overlay.open {
  display: flex;
}

.competitor-snapshot-card {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 22px;
}

.competitor-snapshot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.competitor-snapshot-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
  margin-bottom: 6px;
}

.competitor-snapshot-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.competitor-snapshot-close {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.competitor-snapshot-body {
  display: grid;
  gap: 16px;
}

.competitor-snapshot-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.competitor-snapshot-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.competitor-snapshot-section p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.competitor-snapshot-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.competitor-snapshot-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.competitor-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.competitor-snapshot-metric {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.competitor-snapshot-metric strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.competitor-snapshot-metric span {
  color: #64748b;
  font-size: 12px;
}

.competitor-snapshot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

body.theme-dark .competitor-snapshot-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .competitor-snapshot-close {
  color: #e5e7eb;
}

body.theme-dark .competitor-snapshot-eyebrow,
body.theme-dark .competitor-snapshot-metric span {
  color: #cbd5e1;
}

body.theme-dark .competitor-snapshot-section {
  background: #0f172a;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .competitor-snapshot-section p {
  color: #cbd5e1;
}

body.theme-dark .competitor-snapshot-metric {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 700px) {
  .competitor-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

.brand-voice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 131;
  padding: 20px;
}

.brand-voice-overlay.open {
  display: flex;
}

.brand-voice-card {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 22px;
}

.brand-voice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.brand-voice-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
  margin-bottom: 6px;
}

.brand-voice-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-voice-close {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.brand-voice-body {
  display: grid;
  gap: 16px;
}

.brand-voice-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.brand-voice-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.brand-voice-section p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.brand-voice-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.brand-voice-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.brand-voice-tone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.brand-voice-tone-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.brand-voice-tone-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.brand-voice-tone-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.brand-voice-example {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  line-height: 1.7;
}

.brand-voice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

body.theme-dark .brand-voice-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .brand-voice-close {
  color: #e5e7eb;
}

body.theme-dark .brand-voice-eyebrow,
body.theme-dark .brand-voice-tone-card span {
  color: #cbd5e1;
}

body.theme-dark .brand-voice-section {
  background: #0f172a;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .brand-voice-section p {
  color: #cbd5e1;
}

body.theme-dark .brand-voice-tone-card,
body.theme-dark .brand-voice-example {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 700px) {
  .brand-voice-tone-grid {
    grid-template-columns: 1fr;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  min-width: 170px;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.user-chip-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.guest-chip {
  min-width: 110px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.premium-intelligence-panel {
  margin-top: 16px;
}

.premium-intelligence-panel h3 {
  margin: 0 0 12px 0;
}

body.theme-dark .user-chip {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .user-chip-name {
  color: #e5e7eb;
}

body.theme-dark .user-chip-meta {
  color: #cbd5e1;
}

body.theme-dark .login-btn {
  background: #fff;
  color: #111827;
}

.msg.user {
  background: #e8f0ff;
  border: 1px solid #c7d7ff;
  align-self: flex-end;
}

body.theme-dark .msg.user {
  background: #1e293b;
  border-color: rgba(255,255,255,0.10);
  color: #e5e7eb;
}

.chat-col {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  max-height: 640px;
  overflow: hidden;
}

#chat-box.chat-box,
.chat-box {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.chat-input {
  flex: 0 0 auto;
  margin-top: 12px;
}

.chat-box::-webkit-scrollbar {
  width: 8px;
}

.chat-box::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
}

.priority-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.priority-card {
  text-align: left;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.priority-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.priority-card span {
  font-size: 12px;
  color: var(--muted);
}

.priority-card.priority-high,
.rec-card-high {
  border-left: 4px solid #ef4444;
}

.priority-card.priority-medium,
.rec-card-medium {
  border-left: 4px solid #f59e0b;
}

.priority-card.priority-low,
.rec-card-low {
  border-left: 4px solid #64748b;
}

.rec-actions {
  margin-top: 12px;
}

.recommendation-action-btn {
  border: 1px solid rgba(15,23,42,0.14);
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

body.theme-dark .priority-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}

body.theme-dark .priority-card span {
  color: #cbd5e1;
}

body.theme-dark .recommendation-action-btn {
  background: #fff;
  color: #111827;
}

.priority-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.priority-accordion {
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.priority-accordion.priority-critical { border-left-color: #ef4444; }
.priority-accordion.priority-high { border-left-color: #f59e0b; }
.priority-accordion.priority-medium { border-left-color: #eab308; }
.priority-accordion.priority-low { border-left-color: #22c55e; }

.priority-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.priority-accordion summary::-webkit-details-marker {
  display: none;
}

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

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

.priority-dot-critical { background: #ef4444; }
.priority-dot-high { background: #f59e0b; }
.priority-dot-medium { background: #eab308; }
.priority-dot-low { background: #22c55e; }

.priority-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.priority-pill-critical {
  background: #fee2e2;
  color: #991b1b;
}

.priority-pill-high {
  background: #fef3c7;
  color: #92400e;
}

.priority-pill-medium {
  background: #fef9c3;
  color: #854d0e;
}

.priority-pill-low {
  background: #dcfce7;
  color: #166534;
}

.priority-body {
  padding: 0 16px 16px 16px;
}

.rec-category-list {
  display: grid;
  gap: 12px;
}

body.theme-dark .priority-accordion {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .priority-title {
  color: #e5e7eb;
}

body.theme-dark .priority-body {
  color: #e5e7eb;
}

.priority-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

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

.priority-limit-select {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 10px;
}

.core-web-vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.core-web-vital-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.core-web-vital-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.core-web-vital-card strong {
  font-size: 18px;
}

body.theme-dark .priority-limit-select,
body.theme-dark .core-web-vital-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

.intelligence-accordion {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
}

.intelligence-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.intelligence-accordion summary::-webkit-details-marker {
  display: none;
}

.intelligence-accordion-body {
  padding: 0 14px 14px 14px;
}

.intelligence-accordion-body p,
.intelligence-accordion-body ul {
  margin-top: 0;
}

.health-accordion {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.health-accordion summary {
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.accordion-body {
  padding: 0 14px 14px;
}


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

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 22px;
}

.geo-issue-card {
  border: 1px solid var(--line);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  margin-bottom: 10px;
}

.geo-issue-high { border-left-color: #ef4444; }
.geo-issue-medium { border-left-color: #f59e0b; }
.geo-issue-low { border-left-color: #22c55e; }

.geo-issue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.passed-check-list {
  display: grid;
  gap: 10px;
}

.passed-check-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.passed-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.user-chip {
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.95);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 220px;
}

.user-chip-name {
  display: block;
  font-weight: 700;
}

.user-chip-meta {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
}

body.theme-dark .stat-card,
body.theme-dark .geo-issue-card,
body.theme-dark .passed-check-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

.competitor-watchlist {
  display: grid;
  gap: 10px;
}

.competitor-watch-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.competitor-watch-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.competitor-watch-top strong {
  font-size: 14px;
}

.competitor-watch-domain {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.competitor-watch-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.competitor-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #0f172a;
}

.competitor-badge-category {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.competitor-badge-confidence {
  background: #f8fafc;
  color: #334155;
}

.competitor-badge-threat-high {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.competitor-badge-threat-medium {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.competitor-badge-threat-low {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

body.theme-dark .competitor-watch-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  color: #e5e7eb;
}

body.theme-dark .competitor-watch-domain {
  color: #cbd5e1;
}

body.theme-dark .competitor-badge {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.10);
}

.shell-empty {
  min-height: 100vh;
}

.empty-dashboard {
  padding: 24px;
}

.empty-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
}

.empty-hero-copy h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 14px;
  max-width: 760px;
}

.empty-hero-copy p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.empty-hero-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}

.empty-hero-form input[type="url"] {
  flex: 1;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 15px;
  background: #fff;
}

.empty-hero-form button {
  min-height: 52px;
  border-radius: 14px;
  border: 0;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.empty-plan-note {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.empty-hero-side {
  display: grid;
  gap: 16px;
}

.empty-preview-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.empty-preview-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.empty-feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

@media (max-width: 960px) {
  .empty-hero {
    grid-template-columns: 1fr;
  }

  .empty-hero-copy h1 {
    font-size: 32px;
  }

  .empty-hero-form {
    flex-direction: column;
  }
}

body.theme-dark .empty-hero-form input[type="url"],
body.theme-dark .empty-preview-card {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

.empty-error-banner {
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 14px;
  padding: 12px 14px;
}

.ingest-success-banner {
  margin: 16px 24px 0;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 14px;
  padding: 12px 14px;
}

.powered-by-link {
  color: inherit;
  text-decoration: none;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 16px;
  margin-bottom: 16px;
}

.weekly-checklist {
  min-height: 100%;
}

.weekly-checklist-meta {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.weekly-checklist-form {
  display: grid;
  gap: 10px;
}

.weekly-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
}

.weekly-check-item.is-free {
  opacity: 0.88;
}

.weekly-check-input {
  margin-top: 2px;
}

.weekly-check-text {
  font-size: 13px;
  line-height: 1.5;
}

.weekly-checklist-impact {
  margin-top: 12px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.weekly-checklist-gate {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}

.powered-by-link {
  color: inherit;
  text-decoration: none;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 16px;
  margin-bottom: 16px;
}

.weekly-checklist {
  min-height: 100%;
}

.weekly-checklist-meta {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.weekly-checklist-form {
  display: grid;
  gap: 10px;
}

.weekly-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
}

.weekly-check-item.is-free {
  opacity: 0.88;
}

.weekly-check-input {
  margin-top: 2px;
}

.weekly-check-text {
  font-size: 13px;
  line-height: 1.5;
}

.weekly-checklist-impact {
  margin-top: 12px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.weekly-checklist-gate {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}

.weekly-check-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
}

.badge-priority-critical {
  background: #ef4444;
  color: #fff;
}

.badge-priority-high {
  background: #f97316;
  color: #fff;
}

.badge-priority-medium {
  background: #eab308;
  color: #111;
}

.badge-priority-low {
  background: #64748b;
  color: #fff;
}

.profile-chip {
  position: relative;
}

.profile-chip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.95);
  color: #fff;
}

.profile-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #22c55e);
  color: #fff;
  flex: 0 0 auto;
}

.profile-avatar-large {
  width: 42px;
  height: 42px;
}

.profile-chip-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.profile-chip-meta {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.2;
}

.profile-chip-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.16s ease;
  z-index: 40;
}

.profile-chip:hover .profile-chip-menu,
.profile-chip:focus-within .profile-chip-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-chip-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-chip-menu-name {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

.profile-chip-menu-meta {
  font-size: 12px;
  color: #cbd5e1;
}

.profile-chip-link {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 13px;
}

.profile-chip-link:hover {
  background: rgba(255,255,255,0.06);
}

.profile-chip-link-danger {
  color: #fca5a5;
}

.profile-chip-guest .profile-chip-main {
  min-width: 160px;
}

body.theme-dark .profile-chip-main {
  background: rgba(15,23,42,0.95);
}

.ai-code-block {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e5e7eb;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.ai-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

body.theme-dark .ai-code-block {
  background: #020617;
}

.ingest-inline-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

.profile-chip {
  position: relative;
}

.profile-menu-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.profile-chip-main {
  padding-right: 38px;
}

.profile-chip-menu {
  display: none;
}

.profile-chip.open .profile-chip-menu,
.profile-chip:hover .profile-chip-menu,
.profile-chip:focus-within .profile-chip-menu {
  display: block;
}

.audit-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

.audit-status-text {
  font-size: 12px;
  color: var(--muted, #64748b);
}

.audit-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.audit-status-pill.is-cached {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.audit-status-pill.is-fresh {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.refresh-audit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line, #dbe2ea);
  background: #fff;
  color: inherit;
}

.refresh-audit-btn:hover {
  background: #f8fafc;
}

body.theme-dark .audit-status-pill.is-cached {
  background: rgba(29, 78, 216, 0.18);
  color: #bfdbfe;
  border-color: rgba(191, 219, 254, 0.25);
}

body.theme-dark .audit-status-pill.is-fresh {
  background: rgba(4, 120, 87, 0.18);
  color: #a7f3d0;
  border-color: rgba(167, 243, 208, 0.25);
}

body.theme-dark .refresh-audit-btn {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

.refresh-audit-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}
