:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --border: #e6e4dd;
  --border-subtle: #efede7;
  --text: #111315;
  --muted: #6b6a65;
  --accent: #1d4ed8;
  --accent-soft: #eff4ff;
  --focus: #2563eb;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
  --blue: #2563eb;
  --purple: #6d28d9;
  --teal: #0f766e;
  --orange: #c2410c;
  --green: #15803d;
  --green-soft: #e7f6ec;
  --red: #b91c1c;
  --red-soft: #fdecec;
  --amber: #a16207;
  --amber-soft: #fef5df;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 13px; }
.num-font { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid #dcd9cf;
  background: linear-gradient(180deg, #ffffff 0%, #f5f4ef 100%);
  color: var(--text);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1.5px 0 rgba(17, 19, 21, 0.07), 0 1px 1.5px rgba(17, 19, 21, 0.04);
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.06s;
}
.btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eeece5 100%);
  border-color: #cbc7bb;
  text-decoration: none;
}
.btn:active {
  transform: translateY(0.5px);
  box-shadow: inset 0 1px 2px rgba(17, 19, 21, 0.1);
}
.btn-primary {
  background: linear-gradient(180deg, #2a2e35 0%, #111315 100%);
  border-color: #0d0f11;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.42), 0 1px 2px rgba(17, 19, 21, 0.14);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #343942 0%, #191c20 100%);
  border-color: #0d0f11;
  color: #fff;
}
.btn-sm { height: 28px; padding: 0 9px; font-size: 12px; }
.btn-danger {
  color: var(--red);
  border-color: #efc4c4;
  background: linear-gradient(180deg, #fffbfb 0%, #fceeee 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1.5px 0 rgba(185, 28, 28, 0.09);
}
.btn-danger:hover {
  background: linear-gradient(180deg, #fff5f5 0%, #f9e2e2 100%);
  border-color: #e4a9a9;
}

.input, .select {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #dcd9cf;
  background-color: var(--surface);
  color: var(--text);
  line-height: 1.2;
  outline: none;
  box-shadow: inset 0 1px 1.5px rgba(17, 19, 21, 0.03);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256' fill='%236b6a65'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 11px 11px;
  cursor: pointer;
}
.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.btn:focus-visible,
.portfolio-pill:focus-visible,
.seg-btn:focus-visible,
.top-link:focus-visible,
.subnav-tab:focus-visible,
.icon-btn:focus-visible,
.card-prt-dots:focus-visible,
.popover-item:focus-visible,
.report-card:focus-visible,
.report-nav-item:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
input[type="checkbox"] {
  accent-color: var(--focus);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: rgba(37, 99, 235, 0.1); color: var(--focus); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(17, 19, 21, 0.06);
  border: 1px solid rgba(17, 19, 21, 0.1);
  color: var(--muted);
}
.cnt-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dcd9cf;
  box-shadow: inset 0 -1px 0 rgba(17, 19, 21, 0.06);
  color: var(--muted);
}
.seg-btn.active .cnt-keycap,
.subnav-tab.active .cnt-keycap {
  background: #f5f4ef;
  border-color: #cfccc2;
  color: var(--text);
}
.portfolio-pill.active .cnt-keycap {
  background: var(--surface-2);
  border-color: #dcd9cf;
  box-shadow: none;
  color: var(--text);
}

/* Landing / Auth */
.landing { max-width: 740px; margin: 64px auto; padding: 0 20px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--text);
  cursor: pointer;
}
.brand-logo {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--text);
  display: inline-block;
}

.lp-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.lp-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(17, 19, 21, 0.095) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 28%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 28%, #000 20%, transparent 100%);
}
.lp-glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lp-glow {
  position: absolute;
  border-radius: 999px;
}
.lp-glow-a {
  top: -180px;
  left: -140px;
  width: 540px;
  height: 540px;
  background: radial-gradient(closest-side, rgba(243, 128, 32, 0.14), transparent);
}
.lp-glow-b {
  top: -140px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.13), transparent);
}
.lp-glow-c {
  top: 260px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(15, 118, 110, 0.08), transparent);
}
.lp-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
}
.lp-nav-links a {
  color: var(--muted);
  transition: color 0.12s;
}
.lp-nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.lp-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lp-title {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lp-title-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.lp-source-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 8px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(37, 99, 235, 0.22);
  color: var(--text);
  line-height: 1.05;
  white-space: nowrap;
  transition: transform 220ms cubic-bezier(0.2, 0.85, 0.3, 1.15), opacity 180ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.lp-source-pill.is-exiting {
  opacity: 0;
  transform: scale(0.93) translateY(3px);
}
.lp-source-pill.is-entering {
  opacity: 1;
  transform: scale(1.045) translateY(-1px);
}
.lp-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.lp-source-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lp-source-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.12);
  color: #635bff;
  margin-left: -2px;
  align-self: center;
}
.lp-glance-wrap {
  position: relative;
  display: inline-block;
}
.lp-glance-stroke {
  position: absolute;
  left: -2%;
  bottom: -6px;
  width: 104%;
  height: 12px;
  opacity: 0.45;
  pointer-events: none;
  transition: color 280ms ease;
}

.lp-src-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 22px;
}
.lp-src-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 140ms ease;
}
.lp-src-chip:hover {
  background: #fff;
  color: var(--text);
  border-color: #d2cfc4;
}
.lp-src-chip.active {
  background: #fff;
  color: var(--text);
  border-color: var(--chip-color, var(--text));
  box-shadow: 0 2px 8px -3px rgba(17, 19, 21, 0.14);
}
.lp-src-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-src-soon {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #635bff;
  opacity: 0.85;
}
.lp-sub {
  margin: 0 0 30px;
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.lp-auth-box {
  width: 100%;
  max-width: 440px;
}
.lp-google-btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid #d5d2c8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 10px 26px -12px rgba(17, 19, 21, 0.14),
    0 2px 6px rgba(17, 19, 21, 0.05);
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.1s;
}
.lp-google-btn:hover {
  background: #ffffff;
  border-color: #c2bfb4;
  text-decoration: none;
  box-shadow:
    0 12px 30px -10px rgba(17, 19, 21, 0.18),
    0 2px 8px rgba(17, 19, 21, 0.06);
}
.lp-google-btn:active {
  transform: translateY(1px);
}
.lp-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
  color: #8a8880;
}
.lp-auth-divider::before,
.lp-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e1d7;
}
.lp-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid #dbd8ce;
  box-shadow:
    0 10px 30px -10px rgba(17, 19, 21, 0.12),
    0 2px 6px rgba(17, 19, 21, 0.04);
  transition: border-color 0.14s, box-shadow 0.14s;
}
.lp-form:focus-within {
  border-color: var(--focus);
  box-shadow:
    var(--focus-ring),
    0 12px 32px -10px rgba(37, 99, 235, 0.16);
}
.lp-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.lp-input::placeholder { color: #9c9a92; }
.lp-submit {
  height: 38px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.lp-notice {
  margin: 12px 0 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(29, 78, 216, 0.16);
}

.lp-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #8a8880;
}
.lp-sep { opacity: 0.5; }

.lp-pillars {
  width: 100%;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
.lp-pillar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px 15px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.03);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.lp-pillar:hover {
  transform: translateY(-1.5px);
  border-color: #d5d2c7;
  box-shadow: 0 8px 20px -12px rgba(17, 19, 21, 0.14);
}
.lp-pillar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.lp-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.lp-pillar strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
}
.lp-pillar p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.lp-pillar code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}

html { scroll-behavior: smooth; }
html.app-booting #app { visibility: hidden; }

.lp-main {
  position: relative;
  z-index: 2;
  width: 100%;
}
.lp-beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.04);
}
.lp-beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.lp-auth-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.lp-notice.is-error {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(185, 28, 28, 0.2);
}

.lp-section {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid rgba(230, 228, 221, 0.75);
}
.lp-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}
.lp-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.lp-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
.lp-section-head p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.lp-section-head code,
.lp-mcp-panel code,
.lp-faq-item code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}

.lp-integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lp-int-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.03);
}
.lp-int-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.lp-int-card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
}
.lp-int-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.lp-int-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.lp-reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.lp-report-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lp-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lp-report-item strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.lp-report-cat {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.lp-report-item > span {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--muted);
}

.lp-mcp-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(17, 19, 21, 0.03);
}
.lp-mcp-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 18px;
}
.lp-mcp-cols h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
}
.lp-mcp-cols p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--muted);
}
.lp-mcp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.lp-mcp-tools code {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 11.5px;
}

.lp-arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lp-arch-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.lp-arch-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.lp-arch-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lp-pricing-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-pricing-card.is-featured {
  background: #ffffff;
  border-color: #cbc7bb;
  box-shadow: 0 12px 28px -18px rgba(17, 19, 21, 0.22), 0 2px 6px rgba(17, 19, 21, 0.04);
}
.lp-pricing-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-pricing-card.is-featured .lp-pricing-kicker { color: var(--accent); }
.lp-pricing-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-pricing-price span {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.lp-price-strike {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.72;
}
.lp-meta-strike {
  text-decoration: line-through;
  opacity: 0.7;
  margin-left: 2px;
}
.lp-pricing-card > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.lp-pricing-list {
  margin: 6px 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}
.lp-pricing-list code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
}

.lp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-faq-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.lp-faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  flex-shrink: 0;
}
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-item p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.lp-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8a8880;
  border-top: 1px solid rgba(230, 228, 221, 0.7);
}

@media (max-width: 960px) {
  .lp-integrations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .lp-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-mcp-cols,
  .lp-arch-grid,
  .lp-pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .lp-nav-links a:not(.btn) { display: none; }
  .lp-hero { padding: 24px 16px 40px; }
  .lp-section { padding: 40px 16px; }
  .lp-source-pill { padding: 5px 14px 6px 11px; gap: 8px; border-radius: 11px; }
  .lp-source-icon { width: 24px; height: 24px; }
  .lp-bullets li { font-size: 13.5px; align-items: flex-start; }
  .lp-form { flex-direction: column; align-items: stretch; padding: 8px; }
  .lp-submit { width: 100%; }
  .lp-pillars,
  .lp-integrations-grid,
  .lp-reports-grid { grid-template-columns: 1fr; }
  .lp-pillars { margin-top: 38px; }
  .lp-footer { flex-direction: column; gap: 10px; text-align: center; }
}

/* Minimal Nordic Top Bar */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 48px;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.header-left { gap: 14px; }

.top-links { display: flex; align-items: center; gap: 4px; }
.top-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.top-link:hover { color: var(--text); background: var(--surface-2); }
.top-link.active {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #f6f5f1 100%);
  border-color: #dcd9cf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(17, 19, 21, 0.04);
}

/* Recessed Command Palette Trigger (search-bar affordance, not a raised button) */
.cmd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 176px;
  height: 29px;
  padding: 0 6px 0 9px;
  border-radius: 7px;
  border: 1px solid #e2dfd7;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1;
  cursor: text;
  box-shadow: inset 0 1px 1.5px rgba(17, 19, 21, 0.035);
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.cmd-trigger:hover {
  background: var(--surface);
  border-color: #d2cec3;
  color: #4f4e49;
}
.cmd-trigger:focus-visible {
  outline: none;
  background: var(--surface);
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.cmd-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.cmd-trigger-ico {
  flex-shrink: 0;
  opacity: 0.65;
}
.cmd-trigger:hover .cmd-trigger-ico {
  opacity: 0.9;
}
.cmd-trigger-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-trigger-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cmd-trigger {
    min-width: 0;
    gap: 6px;
    padding: 0 8px;
  }
  .cmd-trigger-kbd {
    display: none;
  }
}

.subnav {
  position: sticky;
  top: 48px;
  z-index: 29;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.subnav-sites .subnav-inner {
  padding: 10px 32px;
}
.subnav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  flex-wrap: wrap;
}
.subnav-sep {
  color: #cfccc2;
  font-size: 13px;
  user-select: none;
}
.subnav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 9px 10px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.subnav-tab:first-child { padding-left: 2px; }
.subnav-tab:hover { color: var(--text); }
.subnav-tab.active { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 32px 84px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.055);
  border-radius: 11px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.025), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }

.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0; }

/* Single Command Strip + 1-Line Portfolio Pulse */
.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.command-bar .input,
.command-bar .select,
.command-bar .btn,
.command-bar .seg-group {
  height: 30px;
}
.command-bar .seg-btn {
  height: 24px;
  padding: 0 8px;
}
/* Unboxed Portfolio Aggregate Overview */
.agg-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 2px 0 26px;
  margin-bottom: 28px;
}
.agg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.agg-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.agg-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.agg-kpis {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.agg-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.agg-pillar {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 15px 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.agg-pillar .metric-dot {
  opacity: 0.5;
  transition: opacity 0.14s;
}
.agg-pillar:hover {
  background: rgba(255, 255, 255, 0.58);
}
.agg-pillar.active {
  background: var(--surface);
  border-color: rgba(17, 19, 21, 0.06);
  box-shadow: 0 1px 3px rgba(17, 19, 21, 0.05), 0 8px 20px -12px rgba(17, 19, 21, 0.14);
}
.agg-pillar.active .metric-dot {
  opacity: 1;
}
.card .agg-pillar {
  background: var(--bg);
}
.card .agg-pillar:hover {
  background: #f2f1ec;
}
.card .agg-pillar.active {
  background: var(--surface);
  border-color: rgba(17, 19, 21, 0.1);
  box-shadow: 0 1px 3px rgba(17, 19, 21, 0.06), 0 6px 14px -10px rgba(17, 19, 21, 0.14);
}
.agg-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.agg-pillar-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.agg-pillar-sub {
  font-size: 11.5px;
  color: #8a8881;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agg-pillar-spark {
  margin-top: 8px;
  height: 30px;
  width: 100%;
}
.pillar-spark {
  display: block;
  width: 100%;
  height: 30px;
}
.agg-chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.agg-chip-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.agg-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(17, 19, 21, 0.035);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.agg-metric-chip:hover {
  background: rgba(17, 19, 21, 0.06);
  color: var(--text);
}
.agg-metric-chip.active {
  background: var(--surface);
  border-color: rgba(17, 19, 21, 0.08);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.05);
  color: var(--text);
  font-weight: 600;
}
.agg-chip-val {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}
.agg-chart-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.agg-cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.12s;
}
.agg-cmp-btn:hover { color: var(--text); border-color: #cbc7bb; }
.agg-cmp-btn.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: #cbc7bb;
}
.agg-chart-empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.agg-movers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.agg-mover-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.agg-mover-lbl {
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.agg-mover-lbl.is-up { color: var(--green); }
.agg-mover-lbl.is-down { color: var(--red); }
.agg-mover-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.agg-mover-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(17, 19, 21, 0.06);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.03);
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.agg-mover-pill:hover {
  background: #ffffff;
  border-color: rgba(17, 19, 21, 0.14);
  box-shadow: 0 2px 6px -2px rgba(17, 19, 21, 0.09);
}
.agg-mover-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
@media (max-width: 900px) {
  .agg-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .agg-pillars { grid-template-columns: 1fr; }
}
.agg-kpi-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 6px;
  transition: background 0.1s, opacity 0.12s;
}
.agg-kpi-hero:hover { background: var(--surface-2); }
.agg-kpi-hero.dimmed,
.agg-kpi-sub.dimmed { opacity: 0.45; }
.agg-kpi-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.agg-kpi-hero-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.agg-kpi-hero-val {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.agg-kpi-prev {
  font-size: 12px;
  color: var(--muted);
}
.agg-kpis-right {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}
.agg-kpi-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  padding: 2px 5px;
  margin: -2px -5px;
  border-radius: 6px;
  transition: background 0.1s, opacity 0.12s;
}
.agg-kpi-sub:hover { background: var(--surface-2); }
.agg-kpi-sub.static { cursor: default; }
.agg-kpi-sub.static:hover { background: transparent; }
.agg-kpi-sub-row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.agg-kpi-sub-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.agg-card.collapsed {
  padding: 10px 14px;
}
.agg-card.collapsed .agg-head {
  margin-bottom: 0;
}

.pulse-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.pulse-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pulse-item { display: inline-flex; align-items: baseline; gap: 6px; }
.pulse-item .lbl { color: var(--muted); font-size: 11.5px; }
.pulse-item strong { font-family: var(--mono); font-size: 13.5px; font-weight: 700; }

/* Segmented Controls */
.seg-group {
  display: inline-flex;
  background: var(--surface-2);
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--border);
  gap: 2px;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(17, 19, 21, 0.06);
}
.seg-sep {
  width: 1px;
  height: 15px;
  background: var(--border);
  margin: 0 2px;
  align-self: center;
}
.metric-icon-btn {
  width: 28px;
  padding: 0 !important;
  justify-content: center;
  position: relative;
}
.metric-icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  background: rgba(17, 19, 21, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease, transform 0.1s ease;
  z-index: 40;
}
.metric-icon-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Blik 3-Column Site Instrument Grid */
.blik-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pinned-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
@media (max-width: 1080px) { .blik-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .header-inner, .subnav-inner { padding: 0 16px; }
  .container { padding: 18px 16px 64px; }
  .blik-grid { grid-template-columns: 1fr; gap: 14px; }
}

.site-tile {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.03), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
  transition: transform 0.12s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-tile.menu-open {
  z-index: 35;
  transition: none;
  transform: translateY(-1.5px);
  border-color: rgba(17, 19, 21, 0.09);
  box-shadow: 0 2px 6px rgba(17, 19, 21, 0.05), 0 12px 26px -14px rgba(17, 19, 21, 0.14);
}
.drag-handle {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #d2cfc4;
  margin: 0 auto -2px;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.1s ease-out, width 0.1s ease-out;
}
.site-tile:hover .drag-handle {
  opacity: 1;
  width: 34px;
}
.site-tile:hover {
  transform: translateY(-1.5px);
  border-color: rgba(17, 19, 21, 0.08);
  box-shadow: 0 2px 6px rgba(17, 19, 21, 0.04), 0 12px 26px -14px rgba(17, 19, 21, 0.14);
}
.site-tile.dragging {
  opacity: 0.32;
  border-style: dashed;
  border-color: #a8a29e;
  box-shadow: none;
  transform: none;
  cursor: grabbing;
}
.site-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}
.site-tile-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
}
.site-metrics {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px 10px;
  justify-content: end;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.site-metric-item { display: inline-flex; align-items: center; gap: 4px; }
.site-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  font-size: 11.5px;
  color: #8a8881;
}
.tile-foot-stats {
  gap: 4px 10px;
  min-width: 0;
}
.tile-foot-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -2px -4px;
  padding: 2px 4px;
  border-radius: 5px;
  color: #5b5a55;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, opacity 120ms ease;
}
.tile-foot-stat .tile-foot-icon {
  display: inline-flex;
  align-items: center;
  color: var(--stat-tint, var(--muted));
  flex-shrink: 0;
}
.tile-foot-stat:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.site-tile-foot .icon-btn,
.site-tile-foot .card-prt-dots {
  opacity: 0.42;
}
.site-tile:hover .site-tile-foot .icon-btn,
.site-tile:hover .site-tile-foot .card-prt-dots,
.site-tile.menu-open .site-tile-foot .card-prt-dots {
  opacity: 1;
}
.tile-foot-stat.is-zero {
  color: var(--muted);
  font-weight: 400;
  opacity: 0.5;
}
.tile-foot-stat.is-zero .tile-foot-icon {
  color: var(--muted);
}
.tile-foot-stat.is-zero:hover {
  opacity: 1;
}
.card-prt-dots {
  position: relative;
}
.folder-badges {
  position: absolute;
  bottom: 2px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
.folder-badge-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
  margin-left: -2px;
}
.card-prt-dots:hover .folder-badge-dot {
  box-shadow: 0 0 0 2px var(--surface-2);
}
.folder-badge-dot:first-child { margin-left: 0; }

.metric-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.sync-ok { background: #16a34a; }
.sync-busy { background: #2563eb; }
.sync-err { background: #dc2626; }
.sync-idle { background: #a8a29e; }

.delta-up { color: var(--green); font-size: 11px; font-weight: 600; }
.delta-down { color: var(--red); font-size: 11px; font-weight: 600; }
.delta-flat { color: var(--muted); font-size: 11px; }

.icon-btn,
.card-prt-dots {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.1s, color 0.1s, opacity 0.1s;
}
.icon-btn:hover,
.card-prt-dots:hover { background: var(--surface-2); color: var(--text); }
.pin-btn,
.hide-btn {
  opacity: 0;
  flex-shrink: 0;
}
.site-tile:hover .pin-btn,
.site-tile:hover .hide-btn,
.pin-btn.pinned,
.site-tile.is-hidden-card .hide-btn {
  opacity: 1;
}
.pin-btn.pinned {
  color: var(--text);
}
.site-tile.is-hidden-card {
  opacity: 0.48;
  border-style: dashed;
}

/* Tables + Proportional Magnitude Bars */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(17, 19, 21, 0.06);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.025), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
}
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 8px 11px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
th {
  background: #faf9f6;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover,
th.sortable.is-sorted { color: var(--text); }
.th-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
th.num .th-inner {
  justify-content: flex-end;
}
.sort-arrow {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
}
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }

.bar-cell { position: relative; overflow: hidden; }
.bar-fill {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.11);
  pointer-events: none;
}
.bar-text { position: relative; z-index: 1; }

/* Site Metric Toggle Strip */
.metric-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.metric-check {
  background: var(--surface);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  user-select: none;
}
.metric-check:hover { background: #faf9f6; }
.metric-check-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.metric-check-val { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

/* Indexing Coverage Bar */
.coverage-bar { height: 8px; border-radius: 999px; background: var(--red-soft); overflow: hidden; display: flex; margin: 10px 0 4px; }
.coverage-pass { background: #16a34a; height: 100%; }
.coverage-warn { background: #d97706; height: 100%; }
.coverage-fail { background: #dc2626; height: 100%; }

/* Opportunity Reports Workspace */
.reports-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.reports-rail {
  position: sticky;
  top: 142px;
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.055);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.025), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reports-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reports-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.report-nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: #3f3e3a;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.report-nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.report-nav-item.active {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--accent);
  font-weight: 600;
}
.reports-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-head {
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.055);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.025), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.report-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-title-row h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.report-desc {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.report-toolbar .input,
.report-toolbar .btn {
  height: 30px;
}
.report-table tbody tr:hover td {
  background: #faf9f6;
}
.report-query {
  font-weight: 500;
  color: var(--text);
}
.report-path {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.report-path:hover {
  color: var(--accent);
  text-decoration: underline;
}
.report-path-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pos-pill {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pos-top { background: var(--green-soft); color: var(--green); }
.pos-near { background: var(--accent-soft); color: var(--accent); }
.pos-mid { background: var(--amber-soft); color: var(--amber); }
.pos-far { background: var(--surface-2); color: var(--muted); }
.bar-fill-green {
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  border-radius: 3px;
  background: rgba(21, 128, 61, 0.11);
  pointer-events: none;
}

@media (max-width: 960px) {
  .reports-layout {
    grid-template-columns: 1fr;
  }
  .reports-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

pre.code {
  background: #141619;
  color: #e5e7eb;
  padding: 12px 14px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}

/* Chat Drawer */
.chat-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 400px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 70px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(17, 19, 21, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.chat-head { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 8px 11px; border-radius: 8px; font-size: 13px; white-space: pre-wrap; max-width: 92%; }
.msg-user { align-self: flex-end; background: var(--text); color: #fff; }
.msg-assistant { align-self: flex-start; background: var(--surface-2); color: var(--text); }
.chat-foot { padding: 9px; border-top: 1px solid var(--border); display: flex; gap: 6px; }

.popover-wrap { position: relative; display: inline-flex; }
.popover-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 215px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(17, 19, 21, 0.12);
  padding: 5px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.popover-item {
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popover-item:hover { background: var(--surface-2); }
.popover-item.active { background: var(--surface-2); font-weight: 600; }
.popover-sep { height: 1px; background: var(--border-subtle); margin: 4px 2px; }

/* Portfolio Pill Strip & Color Dots */
.portfolio-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.portfolio-add-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px dashed #d5d2c8;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.portfolio-add-btn:hover {
  background: var(--surface);
  border-style: solid;
  border-color: rgba(17, 19, 21, 0.08);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.04);
}
.portfolio-add-btn:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.portfolio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.portfolio-pill:hover {
  background: rgba(17, 19, 21, 0.045);
  color: var(--text);
}
.portfolio-pill.active {
  background: var(--surface);
  border-color: rgba(17, 19, 21, 0.06);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.06), 0 4px 10px -6px rgba(17, 19, 21, 0.1);
}
.portfolio-pill.active .num-font { color: var(--muted) !important; }
.prt-more {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.4;
  cursor: pointer;
  padding: 0 2px;
  margin-left: 1px;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
}
.portfolio-pill:hover .prt-more,
.portfolio-pill.active .prt-more { opacity: 0.85; }
.prt-more:hover { opacity: 1 !important; background: rgba(128, 128, 128, 0.2); }
.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.color-swatch.selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--text);
}
.site-checklist {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.site-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12.5px;
}
.site-check-row:hover { background: var(--surface-2); }

.spark-wrap,
.chart-wrap {
  position: relative;
}
.spark-empty {
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #b4b1a8;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.chart-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17, 19, 21, 0.28);
  pointer-events: none;
  display: none;
}
.chart-brushable {
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.chart-brushable.is-brushing {
  cursor: col-resize;
}
.chart-brush {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.13);
  border-left: 1.5px solid #2563eb;
  border-right: 1.5px solid #2563eb;
  border-radius: 2px;
  pointer-events: none;
  display: none;
  z-index: 15;
}
.chart-empty-state {
  position: relative;
  min-height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-ghost {
  width: 100%;
  opacity: 0.16;
  filter: grayscale(0.55);
  pointer-events: none;
  user-select: none;
}
.perf-pillars {
  margin-bottom: 14px;
}
.perf-pillars .agg-pillar {
  padding: 11px 13px;
}
.perf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.perf-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.perf-preset-pill {
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.perf-preset-pill:hover {
  color: var(--text);
  border-color: #cfccc3;
}
.perf-preset-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.pos-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
}
.pos-pill.pos-top {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}
.pos-pill.pos-mid {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.pos-pill.pos-low {
  color: var(--muted);
  padding: 1px 2px;
  font-weight: 500;
}
.page-path-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.page-path-btn:hover {
  color: var(--text);
  text-decoration: underline;
}
.ext-link {
  display: inline-block;
  margin-left: 5px;
  color: var(--muted);
  opacity: 0.45;
  text-decoration: none;
  font-size: 11px;
}
.ext-link:hover {
  opacity: 1;
  color: var(--text);
}
.update-band-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  padding: 2px 9px;
}
.update-band-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(245, 158, 11, 0.45);
  border: 1px solid #d97706;
}
.update-page-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 6px 2px 9px;
}
.update-page-pill button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.update-page-pill button:hover {
  color: var(--text);
}
.update-page-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.update-page-row:hover {
  background: rgba(37, 99, 235, 0.04);
}
.update-page-row.active {
  background: rgba(37, 99, 235, 0.09);
}
.update-phase-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
}
.update-phase-badge.phase-before {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}
.update-phase-badge.phase-during {
  background: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}
.update-phase-badge.phase-after {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}
.chart-preset-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.2) 100%);
}
.chart-preset-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.chart-preset-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
}
.chart-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #dbd8ce;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.04);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.chart-preset-btn:hover {
  transform: translateY(-1px);
  border-color: #c2bfb3;
  box-shadow: 0 6px 16px -8px rgba(17, 19, 21, 0.16);
}
.chart-preset-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
}
.chart-preset-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.chart-preset-sub {
  font-size: 11px;
  color: var(--muted);
}
.chart-tooltip {
  position: absolute;
  top: 4px;
  background: rgba(17, 19, 21, 0.92);
  color: #fff;
  padding: 5px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
  pointer-events: none;
  z-index: 25;
  display: none;
  box-shadow: 0 4px 12px rgba(17, 19, 21, 0.2);
}
.chart-tip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2px;
}
.chart-tip-prev-date {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}
.chart-tip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.chart-tip-prev {
  color: rgba(255, 255, 255, 0.58);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 21, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 65;
  padding: 16px;
}
.modal-backdrop.animate-in {
  animation: modalFadeIn 130ms ease-out;
}
.modal-dialog {
  width: 100%;
  box-shadow: 0 20px 50px rgba(17, 19, 21, 0.18);
}
.modal-backdrop.animate-in .modal-dialog {
  animation: modalPopIn 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notice { padding: 10px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; margin-bottom: 12px; }

@keyframes blikSpin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: blikSpin 0.65s linear infinite;
  vertical-align: -1.5px;
  flex-shrink: 0;
}
.btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 720px) {
  .header { padding: 0 12px; }
  .container { padding: 12px 12px 64px; }
}

/* Redesigned Settings / Integrations Workspace (Standard & Wide Layout Modes) */
.settings-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.settings-rail {
  position: sticky;
  top: 68px;
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.06);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.025), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-progress-box {
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.settings-progress-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.settings-progress-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}
.settings-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.settings-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #15803d 100%);
  transition: width 0.25s ease;
}
.settings-progress-next {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}
.settings-next-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.settings-progress-done {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 500;
  line-height: 1.35;
}
.settings-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-rail-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 6px 9px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: #3f3e3a;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.settings-nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.settings-nav-item.active {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--accent);
  font-weight: 600;
}
.settings-nav-item:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.settings-nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
}
.settings-nav-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.settings-nav-pill.is-on {
  background: var(--green-soft);
  color: var(--green);
}
.settings-rail-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.settings-rail-footer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 2px;
}
.settings-layout-seg.is-compact {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.settings-layout-seg.is-compact .seg-btn {
  justify-content: center;
  padding: 5px 6px;
  gap: 5px;
}
.settings-layout-seg .seg-btn {
  gap: 5px;
}

.settings-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  scroll-margin-top: 72px;
}
.settings-page-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text);
}
.settings-page-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.45;
}
.settings-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Top Overview Band: Setup Guide + Account / Preferences */
.settings-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.settings-guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-guide-card.is-collapsed {
  padding: 14px 18px;
  gap: 0;
}
.settings-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.settings-guide-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.settings-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.settings-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.12s;
}
.settings-step.is-active {
  border-color: rgba(37, 99, 235, 0.32);
  background: #f7f9ff;
}
.settings-step.is-done {
  border-color: rgba(21, 128, 61, 0.22);
}
.settings-step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 1px;
}
.settings-step.is-active .settings-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.settings-step.is-done .settings-step-num {
  background: var(--green-soft);
  border-color: rgba(21, 128, 61, 0.25);
  color: var(--green);
}
.settings-step-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.settings-step-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.settings-step-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.settings-step-body code {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
.settings-step-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.settings-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.settings-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.settings-source-chip:hover {
  border-color: #c7c4b8;
  background: var(--surface-2);
}
.settings-source-chip .settings-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7c4b8;
}
.settings-source-chip.is-connected {
  border-color: rgba(21, 128, 61, 0.25);
  background: var(--green-soft);
  color: var(--green);
}
.settings-source-chip.is-connected .settings-chip-dot {
  background: var(--green);
}

.settings-account-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}
.settings-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.settings-stat-cell {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.settings-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.settings-account-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-account-meta {
  min-width: 0;
  flex: 1;
}
.settings-account-email {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.settings-account-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.settings-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
}
.settings-pref-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.settings-pref-info strong {
  font-size: 12.5px;
}
.settings-pref-info span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.settings-trust-row {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Settings Sections */
.settings-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 72px;
}
.settings-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 2px;
}
.settings-section-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.settings-section-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.settings-section-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Sync Card */
.sync-card {
  padding: 0;
  overflow: hidden;
}
.sync-table-wrap {
  overflow-x: auto;
}
.sync-empty-bar {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.sync-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sync-backup-note {
  font-size: 11.5px;
  color: var(--muted);
}
.sync-subpanels {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-subtle);
}
.sync-subpanel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sync-subpanel + .sync-subpanel {
  border-top: 1px solid var(--border-subtle);
}
.sync-subpanel-title {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.sync-subpanel-scroll {
  max-height: 290px;
  overflow-y: auto;
  overflow-x: auto;
}

/* Integration Cards Grid */
.int-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.int-card {
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.065);
  border-radius: 11px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.025), 0 4px 12px -8px rgba(17, 19, 21, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.int-card.is-open {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 2px 6px rgba(17, 19, 21, 0.04), 0 8px 20px -12px rgba(37, 99, 235, 0.14);
}
.int-card-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.int-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.int-info {
  flex: 1;
  min-width: 0;
}
.int-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13.5px;
}
.int-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.48;
}
.int-desc code {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
.int-meta-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.int-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
}
.int-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.int-status {
  margin-top: 10px;
  padding-left: 49px;
  font-size: 12px;
  color: var(--muted);
}
.int-status:empty {
  display: none;
}

/* Connected Sub-items (Stripe accounts, YouTube channels, MCP tokens, Ignored sites) */
.int-sublist {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.int-card > .int-sublist {
  padding-left: 49px;
}
.int-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12.5px;
}
.int-subitem-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.int-subitem-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Guided Setup Drawer */
.int-drawer {
  margin-top: 14px;
  padding: 16px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.int-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.int-guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
.play-wizard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.play-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.14s, opacity 0.14s;
}
.play-step-card.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 2px 10px -4px rgba(37, 99, 235, 0.14);
}
.play-step-card.is-done {
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.03);
}
.play-step-card.is-muted {
  opacity: 0.78;
}
.play-step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  margin-top: 1px;
}
.play-step-card.is-active .play-step-num {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}
.play-step-card.is-done .play-step-num {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}
.play-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.play-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.play-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.play-step-desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.play-path-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px dashed #dad7cc;
  font-size: 11.5px;
}
.play-path-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.play-path-chip em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}
.play-path-chip.is-accent {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--focus);
  font-weight: 600;
}
.play-path-arrow {
  color: var(--muted);
  font-size: 11px;
}
.play-bucket-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.play-bucket-actions {
  padding-top: 21px;
  flex-shrink: 0;
}
.play-bucket-hint {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.int-guide-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.int-guide-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.int-guide-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.int-steps {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #3f3e3a;
  line-height: 1.5;
}
.int-steps li::marker {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--mono);
}
.int-steps code {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text);
}
.int-guide-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.int-form-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.settings-field-full {
  grid-column: 1 / -1;
}
.settings-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.settings-field-opt {
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
}
.settings-field .input,
.settings-field .select {
  width: 100%;
  font-weight: 400;
}
.int-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.int-form-note {
  font-size: 11.5px;
  color: var(--muted);
}
.mcp-token-notice {
  margin-bottom: 14px;
}
.mcp-code-block {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  background: #14171c;
  color: #e5e7eb;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid rgba(17, 19, 21, 0.14);
}
.mcp-empty-tokens {
  padding: 14px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Wide Layout Mode Adaptations (body.layout-wide = 1680px container) */
@media (min-width: 1220px) {
  body.layout-wide .settings-layout {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 28px;
  }
  body.layout-wide .settings-top-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
    align-items: stretch;
  }
  body.layout-wide .settings-roadmap {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  body.layout-wide .int-grid:not(.is-single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.layout-wide .int-grid:not(.is-single) .int-card:not(.is-open) .int-card-top {
    flex-wrap: wrap;
    height: 100%;
    align-content: space-between;
  }
  body.layout-wide .int-grid:not(.is-single) .int-card:not(.is-open) .int-info {
    flex: 1 1 calc(100% - 54px);
  }
  body.layout-wide .int-grid:not(.is-single) .int-card:not(.is-open) .int-actions {
    width: 100%;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
    justify-content: flex-end;
  }
  body.layout-wide .int-grid:not(.is-single) .int-card.is-open {
    grid-column: 1 / -1;
  }
  body.layout-wide .settings-section-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }
  body.layout-wide .settings-section-pair .settings-section:not(.is-span-full) .int-grid.is-single {
    flex: 1;
  }
  body.layout-wide .settings-section-pair .settings-section:not(.is-span-full) .int-card {
    height: 100%;
  }
  body.layout-wide .settings-section-pair .settings-section:not(.is-span-full) .int-card-top {
    flex-wrap: wrap;
    height: 100%;
    align-content: space-between;
  }
  body.layout-wide .settings-section-pair .settings-section:not(.is-span-full) .int-info {
    flex: 1 1 calc(100% - 54px);
  }
  body.layout-wide .settings-section-pair .settings-section:not(.is-span-full) .int-actions {
    width: 100%;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
    justify-content: flex-end;
  }
  body.layout-wide .settings-section-pair .settings-section:not(.is-span-full) .int-card > .int-sublist {
    padding-left: 0;
  }
  body.layout-wide .settings-section-pair .settings-section.is-span-full {
    grid-column: 1 / -1;
  }
  body.layout-wide .sync-subpanels.is-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.layout-wide .sync-subpanels.is-dual .sync-subpanel + .sync-subpanel {
    border-top: none;
    border-left: 1px solid var(--border-subtle);
  }
}

@media (max-width: 1060px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-rail {
    position: static;
    padding: 12px;
    gap: 10px;
  }
  .settings-rail-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .settings-rail-nav::-webkit-scrollbar {
    display: none;
  }
  .settings-rail-group {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .settings-rail-group .reports-group-label {
    display: none;
  }
  .settings-nav-item {
    width: auto;
    white-space: nowrap;
  }
  .settings-rail-footer {
    display: none;
  }
  .settings-roadmap {
    grid-template-columns: 1fr;
  }
  .int-guide-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Date Range Picker Popover & Two-Month Calendar */
.date-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #dcd9cf;
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f2 100%);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1.5px rgba(17, 19, 21, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.date-picker-btn:hover {
  border-color: #c7c4b8;
  background: linear-gradient(180deg, #ffffff 0%, #f0efe9 100%);
}
.date-picker-btn-compact {
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  gap: 6px;
  white-space: nowrap;
}
.date-picker-btn.open,
.date-picker-btn:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.dp-btn-span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding-left: 4px;
  border-left: 1px solid var(--border);
}
@media (max-width: 720px) {
  .dp-btn-span {
    display: none;
  }
}

.date-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 336px 364px;
  background: var(--surface);
  border: 1px solid #dbd8ce;
  border-radius: 12px;
  box-shadow: 0 18px 44px -10px rgba(17, 19, 21, 0.18), 0 4px 12px rgba(17, 19, 21, 0.06);
  overflow: hidden;
  animation: modalPopIn 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dp-col {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dp-col-right {
  border-left: 1px solid var(--border-subtle);
  background: #fbfaf7;
}
.dp-col-head {
  padding: 4px 9px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8880;
}
.dp-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.dp-item:hover {
  background: var(--surface-2);
}
.dp-item.active {
  background: #eceae2;
  font-weight: 600;
}
.dp-item-span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.dp-item.active .dp-item-span {
  color: var(--text);
}
.dp-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 5px 4px;
}
.dp-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 9px;
  border-radius: 7px;
  cursor: pointer;
}
.dp-opt-row:hover {
  background: var(--surface-2);
}
.dp-opt-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.dp-opt-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.dp-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #d6d3c8;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s;
}
.dp-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.14s;
}
.dp-switch:checked {
  background: var(--text);
}
.dp-switch:checked::after {
  transform: translateX(15px);
}
.dp-switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Custom 2-Month Calendar inside Popover */
.date-popover-cal {
  display: flex;
  flex-direction: column;
  width: 560px;
  padding: 14px 16px;
  gap: 12px;
}
.dp-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dp-back-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.dp-back-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dp-cal-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-cal-pill {
  min-width: 122px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
}
.dp-cal-pill.active {
  background: var(--surface);
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.dp-cal-pill-lbl {
  font-size: 10px;
  color: var(--muted);
}
.dp-cal-nav-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.dp-cal-nav {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.dp-cal-nav:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dp-cal-months {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dp-cal-month-title {
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--text);
}
.dp-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #8a8880;
  margin-bottom: 4px;
}
.dp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}
.dp-cal-day {
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-family: var(--mono);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.dp-cal-day:hover:not(.disabled) {
  background: var(--surface-2);
}
.dp-cal-day.in-range {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 0;
}
.dp-cal-day.edge {
  background: var(--text);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}
.dp-cal-day.disabled {
  color: #c8c5bc;
  cursor: not-allowed;
}
.dp-cal-day.latest::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.dp-cal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.dp-cal-hint {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 740px) {
  .date-popover { grid-template-columns: 1fr; width: min(360px, calc(100vw - 24px)); }
  .dp-col-right { border-left: none; border-top: 1px solid var(--border-subtle); }
  .date-popover-cal { width: min(340px, calc(100vw - 24px)); }
  .dp-cal-months { grid-template-columns: 1fr; }
  .dp-btn-span { display: none; }
}

/* Cmd+K Command Palette */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 19, 21, 0.36);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 16px 24px;
}
.cmd-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid #dbd8ce;
  border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgba(17, 19, 21, 0.28), 0 4px 16px rgba(17, 19, 21, 0.08);
  overflow: hidden;
}
.cmd-backdrop.animate-in {
  animation: modalFadeIn 100ms ease-out;
}
.cmd-backdrop.animate-in .cmd-dialog {
  animation: modalPopIn 110ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cmd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.cmd-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.cmd-input::placeholder { color: #9c9a92; }
.cmd-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}
.cmd-group {
  padding: 8px 10px 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8880;
}
.cmd-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.cmd-item:hover,
.cmd-item.active {
  background: #efede6;
}
.cmd-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cmd-item-left strong {
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.cmd-bullet {
  width: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}
.cmd-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.cmd-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: #fbfaf7;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--muted);
}

/* App Reviews & Ratings */
.reviews-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
.rating-summary {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.rating-big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-family: var(--mono);
  margin-bottom: 4px;
}
.star-row {
  color: #d97706;
  font-size: 13px;
  letter-spacing: 1px;
}
.rating-bars {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.rating-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #d97706;
}
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.review-card {
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #fdfcfa;
}
.review-body {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}
.review-author {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}
.review-reply {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .reviews-layout { grid-template-columns: 1fr; }
}

/* Searchable Site Switcher Dropdown */
.user-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--border);
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  user-select: none;
}
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 8px 0 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.user-menu-btn:hover,
.user-menu-btn.open {
  background: var(--surface);
  border-color: rgba(17, 19, 21, 0.08);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.05);
}
.user-menu-btn:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.user-menu-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-popover {
  width: 248px;
  padding: 6px;
}
.user-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 8px;
}
.user-menu-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.user-menu-meta strong {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-email {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}
.user-menu-item:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.user-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.user-menu-left svg {
  color: var(--muted);
  flex-shrink: 0;
}
.user-menu-val {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.user-menu-signout:hover,
.user-menu-signout:hover .user-menu-left,
.user-menu-signout:hover svg {
  color: var(--red);
  background: var(--red-soft);
}

/* Wide layout mode */
body.layout-wide .header-inner,
body.layout-wide .subnav-inner,
body.layout-wide .container {
  max-width: 1680px;
}

.prt-sw-menu {
  width: 244px;
  padding: 5px;
}
.prt-sw-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 5px;
  border-radius: 6px;
  transition: background 0.1s;
}
.prt-sw-row:hover {
  background: var(--surface-2);
}
.prt-sw-row.active {
  background: var(--surface-2);
}
.prt-sw-row.active .prt-sw-name {
  font-weight: 600;
}
.prt-sw-row .prt-sw-item {
  flex: 1;
  min-width: 0;
  padding: 7px 6px 7px 9px;
}
.prt-sw-row .prt-sw-item:hover,
.prt-sw-row .prt-sw-item.active {
  background: transparent;
}
.prt-sw-trail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.prt-sw-check {
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.1s;
}
.prt-sw-edit {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.1s, background 0.1s, color 0.1s;
}
.prt-sw-row:hover .prt-sw-edit,
.prt-sw-edit:focus-visible {
  opacity: 1;
}
.prt-sw-row:has(.prt-sw-edit):hover .prt-sw-check {
  opacity: 0;
}
.prt-sw-edit:hover {
  background: rgba(17, 19, 21, 0.08);
  color: var(--text);
}
.prt-sw-add {
  color: var(--muted);
}
.prt-sw-add:hover {
  color: var(--text);
}
.prt-sw-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.prt-sw-item:hover { background: var(--surface-2); }
.prt-sw-item.active { background: var(--surface-2); font-weight: 600; }
.prt-sw-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.prt-sw-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prt-sw-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.site-sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.site-sw-btn:hover,
.site-sw-btn.open {
  background: var(--surface);
  border-color: var(--border);
}
.site-sw-menu {
  position: fixed;
  z-index: 75;
  width: 344px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid #dbd8ce;
  border-radius: 11px;
  box-shadow: 0 18px 44px -10px rgba(17, 19, 21, 0.22), 0 4px 12px rgba(17, 19, 21, 0.08);
  overflow: hidden;
  animation: modalPopIn 110ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-sw-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fbfaf7;
}
.site-sw-search {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.site-sw-search::placeholder { color: #9c9a92; }
.site-sw-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 5px;
}
.site-sw-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 7px 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.08s;
}
.site-sw-item:hover {
  background: var(--surface-2);
}
.site-sw-item.active {
  background: #eceae2;
}
.site-sw-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.site-sw-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-sw-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.site-sw-name {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-sw-item.active .site-sw-name {
  font-weight: 650;
}
.site-sw-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-sw-prt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-sw-prt-sep {
  opacity: 0.45;
}
.site-sw-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.site-sw-stat {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.site-sw-stat strong {
  color: var(--text);
  font-weight: 600;
}
.site-sw-btn.is-overview {
  color: var(--muted);
  font-weight: 500;
}
.site-sw-btn.is-overview:hover,
.site-sw-btn.is-overview.open {
  color: var(--text);
}
.site-sw-overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  flex-shrink: 0;
}
.site-sw-section-lbl {
  padding: 8px 9px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-sw-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Portfolio Colored Icon Badges & Picker */
.prt-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card-prt-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.card-prt-badges:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
.prt-modal-dialog {
  overflow: visible;
}
.prt-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prt-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.prt-name-wrap {
  position: relative;
}
.prt-name-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 6px;
  border-radius: 7px;
  border: 1px solid #dcd9cf;
  background: var(--surface);
  box-shadow: inset 0 1px 1.5px rgba(17, 19, 21, 0.03);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.prt-name-field:focus-within {
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.prt-icon-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.prt-icon-trigger:hover,
.prt-icon-trigger.open {
  background: var(--surface-2);
  border-color: var(--border);
}
.prt-icon-trigger:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.prt-name-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}
.prt-name-input::placeholder {
  color: #9e9c95;
}
.prt-picker-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 288px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 19, 21, 0.14), 0 2px 6px rgba(17, 19, 21, 0.06);
  padding: 10px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prt-picker-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.prt-picker-search-icon {
  position: absolute;
  left: 9px;
  color: var(--muted);
  pointer-events: none;
}
.prt-picker-search {
  width: 100%;
  height: 30px;
  padding-left: 28px;
  font-size: 12.5px;
}
.prt-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 168px;
  overflow-y: auto;
  padding: 2px 1px;
}
.prt-picker-empty {
  grid-column: 1 / -1;
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.prt-picker-colors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.prt-picker-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  border-radius: 6px;
  border: none;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-top: -2px;
  padding-top: 4px;
  transition: color 0.12s, background 0.12s;
}
.prt-picker-reset:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
}
.prt-picker-reset:disabled {
  opacity: 0.45;
  cursor: default;
}
.prt-icon-opt {
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.prt-icon-opt:hover {
  background: var(--surface-2);
  color: var(--text);
}
.prt-icon-opt.selected {
  box-shadow: 0 2px 6px rgba(17, 19, 21, 0.15);
}
.prt-site-count {
  font-size: 12px;
  color: var(--muted);
}
.prt-clear-sites {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}
.prt-clear-sites:hover {
  text-decoration: underline;
}
.prt-sites-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.prt-sites-filter {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.prt-sites-filter:focus {
  background: var(--surface);
}
.prt-sites-list {
  border: none;
  border-radius: 0;
  max-height: 220px;
}
.site-check-row.is-checked {
  background: var(--accent-soft);
}
.site-check-row.is-checked:hover {
  background: #e5eeff;
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 680px) {
  .int-card-top { flex-wrap: wrap; }
  .int-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
  .int-status, .int-card > .int-sublist { padding-left: 0; }
  .int-drawer { padding: 12px; }
  .settings-field-grid { grid-template-columns: 1fr; }
  .settings-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* Tabbed Site Configuration Modal */
.site-cfg-dialog {
  max-width: 760px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(86vh, 640px);
  max-height: min(86vh, 640px);
}
.site-cfg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-cfg-body {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.site-cfg-nav {
  border-right: 1px solid var(--border);
  background: var(--bg);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}
.site-cfg-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.site-cfg-tab:hover {
  background: var(--surface);
  color: var(--text);
}
.site-cfg-tab.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.05);
}
.site-cfg-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  flex-shrink: 0;
}
.site-cfg-dot.on {
  background: var(--green);
}
.site-cfg-pane {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-cfg-pane-title {
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 2px;
}
.site-cfg-pane-sub {
  font-size: 12px;
  color: var(--muted);
}
.site-cfg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 550;
}
.site-cfg-list {
  max-height: 170px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-cfg-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
}
.site-cfg-check:hover {
  background: var(--surface);
}
.site-cfg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.yt-prev-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px;
  border-radius: 6px;
}
.yt-prev-row:hover {
  background: var(--surface);
}
.yt-prev-thumb {
  position: relative;
  width: 72px;
  height: 41px;
  border-radius: 5px;
  overflow: hidden;
  background: #111315;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.yt-prev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-prev-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 19, 21, 0.28);
  color: #fff;
  font-size: 13px;
  transition: background 0.12s;
}
.yt-prev-thumb:hover .yt-prev-play {
  background: rgba(220, 38, 38, 0.78);
}
.yt-prev-embed {
  margin: 6px 0 8px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
}
.yt-prev-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 680px) {
  .site-cfg-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .site-cfg-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px;
    overflow-x: auto;
  }
  .site-cfg-tab {
    width: auto;
    white-space: nowrap;
  }
}

/* Portfolio Audit / Readiness Matrix */
.audit-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.audit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.audit-chip:hover {
  border-color: var(--border-strong, #c5ccd6);
  background: var(--surface-2, #f8fafc);
}
.audit-chip.active {
  border-color: var(--accent, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent, #2563eb);
}
.audit-chip-ratio {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-2, #f1f5f9);
  color: var(--muted);
}
.audit-chip-ratio.is-full {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.audit-chip-ratio.is-low {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.audit-table-wrap {
  overflow: clip;
}
.audit-table {
  --audit-col-w: 56px;
  --audit-project-min: 215px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: calc(var(--audit-project-min) + var(--audit-cols, 16) * var(--audit-col-w));
}
.audit-table col.audit-col-project {
  width: auto;
}
.audit-table col.audit-col-check {
  width: var(--audit-col-w);
}
.audit-table th,
.audit-table td {
  white-space: nowrap;
}
.audit-table thead th {
  position: sticky;
  top: var(--audit-sticky-top, 99px);
  z-index: 10;
  background: #faf9f6;
  border-bottom: 1px solid var(--border);
}
.audit-table tbody tr:last-child td {
  border-bottom: 0;
}
.audit-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.audit-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}
.audit-table th.audit-col-head {
  width: var(--audit-col-w);
  text-align: center;
  text-transform: none;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  padding: 7px 2px 6px;
  vertical-align: bottom;
}
.audit-col-head-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
}
.audit-col-icon {
  display: block;
  flex-shrink: 0;
  opacity: 0.72;
}
.audit-table th.audit-col-head:hover .audit-col-icon {
  opacity: 1;
}
.audit-col-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audit-table td.audit-col-cell {
  width: var(--audit-col-w);
  text-align: center;
  padding: 6px 2px;
}
.audit-table th.audit-group-start,
.audit-table td.audit-group-start {
  border-left: 1px solid var(--border);
}
.audit-table th.audit-sticky-col,
.audit-table td.audit-sticky-col {
  border-right: 1px solid var(--border);
  min-width: var(--audit-project-min);
}
.audit-table td.audit-sticky-col {
  background: var(--surface, #fff);
}
@media (max-width: 1180px) {
  .audit-table-wrap {
    overflow-x: auto;
  }
  .audit-table th.audit-sticky-col,
  .audit-table td.audit-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
  }
  .audit-table th.audit-sticky-col {
    z-index: 12;
  }
}
.audit-cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.audit-cell-btn:hover {
  border-color: var(--border);
  background: var(--surface-2, #f3f4f6);
}
.audit-st-pass {
  color: #15803d;
  background: rgba(22, 163, 74, 0.1);
}
.audit-st-warn {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}
.audit-st-fail {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}
.audit-st-muted {
  color: var(--muted);
  opacity: 0.6;
}
.audit-st-na {
  color: var(--muted);
  opacity: 0.35;
}
.audit-st-unchecked {
  color: var(--muted);
  opacity: 0.55;
  border: 1px dashed var(--border);
}
.audit-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.audit-map-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.audit-map-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border);
}
.audit-map-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.audit-detail-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.audit-detail-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.audit-og-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f8fafc);
}
.audit-og-preview img {
  width: 120px;
  height: 63px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}
.audit-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.audit-kv {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f8fafc);
  font-size: 12px;
}
.audit-engine-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audit-kv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.audit-kv-label {
  font-size: 11px;
  color: var(--muted);
}
.audit-ext-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.12s, background 0.12s;
}
.audit-ext-btn:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}
.audit-copy-btn.is-copied {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  font-size: 12px;
  font-weight: 700;
}
.audit-bot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.audit-bot-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  background: rgba(217, 119, 6, 0.09);
  border: 1px solid rgba(217, 119, 6, 0.22);
  color: #92400e;
}

/* Portfolio Audit Empty / Blank Slate */
.audit-empty {
  padding: 40px 28px 32px;
}
.audit-empty-compact {
  padding: 44px 24px;
}
.audit-empty-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.audit-empty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.audit-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f4f3ee 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(17, 19, 21, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.audit-empty-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}
.audit-empty-sub {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.audit-empty-sub code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
.audit-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.audit-empty-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9f6;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.audit-empty-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}
.audit-empty-preview-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.audit-empty-preview-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.audit-preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
  margin-left: 6px;
}
.audit-preview-dot:first-child {
  margin-left: 0;
}
.audit-preview-dot.is-pass { background: #16a34a; }
.audit-preview-dot.is-warn { background: #d97706; }
.audit-preview-dot.is-fail { background: #dc2626; }

.audit-empty-preview-scroll {
  overflow-x: auto;
  background: var(--surface);
}
.audit-preview-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  opacity: 0.86;
}
.audit-preview-table th,
.audit-preview-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.audit-preview-table thead th {
  background: #faf9f6;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.audit-preview-table tbody tr:last-child td {
  border-bottom: 0;
}
.audit-preview-proj {
  text-align: left;
  padding-left: 14px !important;
  padding-right: 14px !important;
  border-right: 1px solid var(--border);
  width: 30%;
}
.audit-preview-col {
  text-align: center;
  width: 58px;
}
.audit-preview-table thead th.audit-preview-col {
  text-transform: none;
  font-size: 9.5px;
  letter-spacing: 0.01em;
}
.audit-preview-table th.audit-group-start,
.audit-preview-table td.audit-group-start {
  border-left: 1px solid var(--border);
}
.audit-preview-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
}
.audit-preview-fav {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.audit-preview-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.audit-empty-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.audit-empty-pillar {
  padding: 14px 15px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #faf9f6;
}
.audit-empty-pillar-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--text);
}
.audit-empty-pillar p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.audit-empty-pillar code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.audit-filter-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px !important;
}
.audit-filter-empty > div {
  margin-bottom: 10px;
}
/* Projects Empty / Blank Slate */
.projects-empty-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9f6;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.projects-empty-kpis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.projects-empty-kpis strong {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 650;
}
.projects-empty-sep {
  opacity: 0.45;
}
.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #faf9f6;
  opacity: 0.9;
}
.projects-preview-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.projects-preview-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.projects-preview-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}
.projects-preview-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.projects-preview-delta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.projects-preview-metric {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.projects-preview-metric strong {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.projects-preview-metric span {
  font-size: 11px;
  color: var(--muted);
}
.projects-preview-spark {
  width: 100%;
  height: 36px;
  display: block;
}
.projects-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--muted);
}
.projects-preview-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.projects-preview-src-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.projects-empty-sources {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}
.projects-empty-sources-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.projects-empty-settings-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.12s;
}
.projects-empty-settings-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.projects-empty-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.projects-empty-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #faf9f6;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.08s;
}
.projects-empty-source-chip:hover {
  background: var(--surface);
  border-color: #cbc7bb;
  text-decoration: none;
  transform: translateY(-0.5px);
}
.projects-empty-source-ico {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Alerts & Tab Blank Slates */
.alerts-empty-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9f6;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.alerts-preview-list {
  background: var(--surface);
  opacity: 0.9;
}
.alerts-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}
.alerts-preview-row:last-child {
  border-bottom: 0;
}
.alerts-preview-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.alerts-preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.alerts-preview-dot.is-amber { background: #d97706; }
.alerts-preview-dot.is-red { background: #dc2626; }
.alerts-preview-dot.is-blue { background: #2563eb; }
.alerts-preview-site {
  font-weight: 600;
  color: var(--text);
}
.alerts-preview-rule {
  color: var(--muted);
}
.alerts-preview-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.alerts-preview-dest {
  font-size: 11.5px;
  color: var(--muted);
}

.tab-empty {
  padding: 36px 24px 30px;
}
.tab-empty-inner {
  max-width: 720px;
  gap: 24px;
}
.tab-empty-brands {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.tab-empty-brand {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tab-empty-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tab-empty-highlight {
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #faf9f6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tab-empty-highlight strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.tab-empty-highlight span {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.preset-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.preset-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #faf9f6;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.preset-chip:hover {
  background: var(--surface);
  border-color: #cbc7bb;
}

@media (max-width: 720px) {
  .audit-empty {
    padding: 28px 16px 24px;
  }
  .audit-empty-pillars,
  .projects-preview-grid,
  .tab-empty-highlights {
    grid-template-columns: 1fr;
  }
}
.name-suggest-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}
.name-suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft, rgba(15, 23, 42, 0.04));
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.name-suggest-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.name-suggest-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}


