:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f3f4f8;
  --border: #e3e6ee;
  --text: #101423;
  --muted: #5b6275;
  --faint: #9aa0b2;
  --accent: #3d3bf3;
  --accent-ink: #2a28c9;
  --accent-soft: #ecebfe;
  --accent-line: #c9c8fb;
  --ink: #101423;
  --on-ink: #ffffff;
  --danger: #b42318;
  --danger-soft: #fff5f5;
  --ok: #12a150;
  --chance-likely: #12a150;
  --chance-possible: #2459d6;
  --chance-borderline: #b45309;
  --chance-reach: #b42318;
  --chance-none: #9aa0b2;
  --warn-bg: #fff4d6;
  --warn-ink: #5c4400;
  --ok-ink: #0b7a3b;
  --pen: #2449c9;
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(16, 20, 35, .05), 0 4px 16px rgba(16, 20, 35, .04);
  --shadow-pop: 0 16px 40px rgba(16, 20, 35, .22);
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --chance-likely: #3fcf8e;
    --chance-possible: #7fa2ff;
    --chance-borderline: #f0b45c;
    --chance-reach: #ff8a80;
    --chance-none: #6f7791;
    --bg: #0c0f1a;
    --surface: #151a2b;
    --surface-2: #1c2236;
    --border: #2a3149;
    --text: #eef0f7;
    --muted: #a3aac0;
    --faint: #6f7791;
    --accent: #8b8aff;
    --accent-ink: #b4b3ff;
    --accent-soft: #23264a;
    --accent-line: #3a3d78;
    --ink: #eef0f7;
    --on-ink: #0c0f1a;
    --danger: #ff8a80;
    --danger-soft: #2c1719;
    --warn-bg: #3a2f10;
    --warn-ink: #f3dc9b;
    --ok-ink: #7fe0a6;
    --pen: #7fa2ff;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-pop: 0 16px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.4 var(--font-body);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

button, .button, input, select { font: inherit; color: inherit; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

button:hover, .button:hover { border-color: var(--accent-line); }
button:disabled { opacity: .5; cursor: default; }

button.primary, .button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(61, 59, 243, .28);
}

button.block { width: 100%; min-height: 54px; border-radius: 16px; font-size: 17px; }
.button-ghost { background: transparent; }
.button-link { border: 0; background: transparent; color: var(--accent); padding: 0 6px; min-height: 36px; }
.button-link:hover { color: var(--accent-ink); }
.icon-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 14px; flex: none; }
.icon-btn.danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

input[type=search], input[type=text], input[type=email], input[type=number] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  min-height: 44px;
  min-width: 0;
  font-size: 16px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
.muted { color: var(--muted); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-spec { width: 26px; height: 26px; color: var(--accent); }

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #fff;
  background: var(--badge-bg, #667085);
}

.badge-md { --badge-bg: #2459d6; }
.badge-ms { --badge-bg: #0f8a5f; }
.badge-dnb { --badge-bg: #8a4bd6; }
.badge-dnb6 { --badge-bg: #b0357d; }
.badge-dnbdip { --badge-bg: #c26a10; }
.badge-dip { --badge-bg: #7a6a00; }
.badge-region-south { --badge-bg: #0f766e; }
.badge-region-west { --badge-bg: #b45309; }
.badge-region-north { --badge-bg: #1d4ed8; }
.badge-region-central { --badge-bg: #7c3aed; }
.badge-region-east { --badge-bg: #be123c; }
.badge-region-northeast { --badge-bg: #15803d; }

#planner { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.brand-name { font: 700 22px/1.1 var(--font-display); letter-spacing: -.02em; }
.brand-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.brand-sub #save-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--ok); flex: none; }
.busy .sync-dot { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.sync-error .sync-dot { background: var(--danger); }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .45; } }

.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--border) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk-title { height: 18px; width: 78%; }
.sk-line { height: 13px; width: 55%; }
.sk-short { width: 38%; }
.sk-round { width: 46px; height: 46px; border-radius: 23px; flex: none; }
.skeleton .r-main, .skeleton .p-main { gap: 10px; }
.pick.skeleton .p-main { padding: 16px 14px; }
.pick.skeleton .p-rank { color: var(--border); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk, .busy .sync-dot { animation: none; } }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 8px; }
.topbar-actions .share-menu { position: static; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }

.avatar,
.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.round-btn { color: var(--text); }

.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-pop form { margin: 0; }
.menu-email,
.menu-note { padding: 8px 10px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-wrap: anywhere; }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.menu-item:hover { background: var(--surface-2); }

.banner {
  margin: 0;
  padding: 10px 24px;
  background: var(--accent-soft);
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }

.flash { margin: 0; padding: 10px 24px; background: var(--accent-soft); }
.flash-alert { color: var(--danger); }

.panes {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  min-height: 0;
}

.pane { display: flex; flex-direction: column; min-height: 0; overflow: auto; scrollbar-gutter: stable; padding: 20px 28px 32px; gap: 14px; }
.pane.order { background: var(--surface); border-left: 1px solid var(--border); padding: 20px 24px 32px; }

.searchbar { display: flex; gap: 10px; flex: none; }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: var(--muted);
}

.search input { border: 0; background: transparent; outline: 0; flex: 1; min-height: 46px; padding: 0; color: var(--text); }
.search:focus-within { border-color: var(--accent); }
.search-small { flex: none; min-height: 44px; box-shadow: none; background: var(--surface-2); border-color: transparent; }
.search-small input { min-height: 42px; }

.filters-btn {
  position: relative;
  min-height: 50px;
  border-radius: 16px;
  border: 0;
  background: var(--ink);
  color: var(--on-ink);
  padding: 0 18px;
}

.filters-btn:hover { border: 0; opacity: .92; }

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px 0 10px;
  border-radius: 19px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  max-width: 100%;
}

.chip .chip-x { font-size: 18px; line-height: 1; opacity: .7; padding: 0 2px; }
.chip .icon { width: 20px; height: 20px; }
.chip-label { overflow: hidden; text-overflow: ellipsis; }

.result-bar { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; min-height: 36px; }
.result-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }

.results, .picks, .snapshots { list-style: none; margin: 0; padding: 0; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; align-content: start; }

.result {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
}

.r-main { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.r-inst { display: flex; align-items: flex-start; gap: 4px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.g-title-row { display: flex; align-items: flex-start; gap: 4px; }
.info-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 32px; margin: -5px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.info-btn .icon { width: 17px; height: 17px; }
.info-btn:hover { color: var(--accent); }
.info-btn[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.inst-details { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.inst-details[hidden] { display: none; }
.inst-official { color: var(--text); font-weight: 600; }
.r-prog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.r-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.r-add {
  flex: none;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 23px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(61, 59, 243, .32);
}

.result.added .r-add {
  width: auto;
  min-width: 54px;
  padding: 0 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.more { align-self: center; }

.contact-btn {
  align-self: flex-start;
  min-height: 32px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
}

.contact-btn .icon { width: 16px; height: 16px; }
.contact-btn.icon-only { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 20px; align-self: center; flex: none; }
.contact-btn.icon-only .icon { width: 20px; height: 20px; }
.contact-head { display: flex; flex-direction: column; gap: 4px; }
.contact-head strong { font: 700 20px/1.2 var(--font-display); }
.contact-head .muted { font-size: 13px; }
.confidence { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.confidence-high { background: #e3f6ea; color: #0b6b34; }
@media (prefers-color-scheme: dark) { .confidence-high { background: #10301f; color: #7fe0a6; } }
.confidence-medium { background: var(--accent-soft); color: var(--accent-ink); }
.confidence-low { background: var(--warn-bg); color: var(--warn-ink); }
.contact-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.contact-row:last-child { border-bottom: 0; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.contact-link { display: inline-flex; align-items: flex-start; gap: 8px; min-height: 32px; text-decoration: none; overflow-wrap: anywhere; }
.contact-link .icon { width: 18px; height: 18px; margin-top: 2px; }
.contact-sources { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
#contact-body { gap: 14px; }

.order-head { display: flex; align-items: flex-end; gap: 8px; }
.order-title { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.order-title h2 { margin: 0; font: 700 30px/1 var(--font-display); letter-spacing: -.02em; }
.order-sub { font-size: 13px; color: var(--muted); }

.picks { display: flex; flex-direction: column; gap: 10px; }
.pick { display: flex; gap: 10px; align-items: flex-start; }
.pick.dim { display: none; }
.p-rank { width: 34px; flex: none; padding-top: 14px; text-align: right; font: 700 24px/1 var(--font-display); color: var(--accent); }

.p-card {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border-radius: 16px;
  border: 1px solid transparent;
}

.pane.order .p-card { background: var(--bg); }
.pick.open .p-card { background: var(--surface); border-color: var(--accent); box-shadow: 0 8px 24px rgba(61, 59, 243, .16); }
.pick.flash .p-card { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--accent-line); } to { box-shadow: none; } }

.p-head { display: flex; align-items: center; }

.p-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 6px 12px 14px;
  min-height: 0;
  border: 0;
  background: transparent;
  text-align: left;
  white-space: normal;
  font-weight: 500;
}

.p-main:hover { border: 0; }
.p-inst { font-weight: 700; font-size: 15px; line-height: 1.3; }
.p-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.p-meta .icon { width: 20px; height: 20px; color: var(--accent); }
.p-note-preview { font-size: 13px; color: var(--muted); font-style: italic; }
.p-note-preview:empty { display: none; }

.handle {
  width: 40px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  cursor: grab;
  touch-action: none;
  user-select: none;
  flex: none;
}

.p-tools { display: none; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.pick.open .p-tools { display: flex; }
.pick.open .p-note-preview { display: none; }
.p-note-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.p-note-label input { width: 100%; }
.p-ctl { display: flex; gap: 8px; align-items: center; min-width: 0; }

.p-pos-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.p-pos-label span { white-space: nowrap; }
.p-pos { flex: 1; min-width: 0; border: 0; min-height: 40px; width: 48px; padding: 0 4px; font-weight: 700; color: var(--text); }
.sortable-ghost .p-card { opacity: .35; }

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

.tabs { display: none; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 20, 35, .5);
  animation: fade .18s ease-out;
}

@keyframes fade { from { opacity: 0; } }

.sheet {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  animation: slide-in .22s cubic-bezier(.2, .8, .2, 1);
}

@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }

.sheet-grip { display: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 10px; }
.sheet-head h2 { margin: 0; flex: 1; font: 700 26px/1 var(--font-display); letter-spacing: -.02em; }
.sheet-body { flex: 1; overflow: auto; padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 24px; overscroll-behavior: contain; }
.sheet-foot { padding: 14px 20px 20px; border-top: 1px solid var(--border); }

#facets { display: flex; flex-direction: column; gap: 24px; }
.facet { display: flex; flex-direction: column; gap: 10px; }
.facet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.facet-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facet-selected { font-size: 13px; font-weight: 600; color: var(--accent); }

.facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}

.facet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.facet-option:first-child { border-top: 0; }
.facet-option.on { background: var(--accent-soft); }
.facet-option.zero:not(.on) { opacity: .45; }
.facet-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.facet-option .opt-label { flex: 1; min-width: 0; }
.facet-option.on .opt-label { font-weight: 700; }
.opt-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

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

.toggle-chip {
  min-height: 42px;
  border-radius: 21px;
  padding: 0 14px;
  gap: 8px;
  font-size: 14px;
}

.toggle-chip[aria-pressed=true] { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.toggle-chip.zero[aria-pressed=false] { opacity: .45; }
.toggle-chip .opt-count { font-size: 12px; }

.switch { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  width: min(420px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow: auto;
  box-shadow: var(--shadow-pop);
}

.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font: 700 24px/1 var(--font-display); }
.snapshots li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }

.login { align-items: center; justify-content: safe center; padding: 16px; min-height: 100%; }

.login-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100% - 32px));
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.login-card h1 { margin: 0; font: 700 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.login-card p { margin: 0; }
.login-card input { width: 100%; }
.error { color: var(--danger); }

.admin { padding: 24px 20px 48px; max-width: 880px; margin: 0 auto; width: 100%; overflow: auto; display: flex; flex-direction: column; gap: 20px; }
.admin-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.admin-head h1 { margin: 6px 0 0; font: 700 34px/1 var(--font-display); letter-spacing: -.02em; }
.admin-head .back { padding-left: 8px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.person-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.person-email { font-size: 13px; overflow-wrap: anywhere; }
.person-meta { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; }
.person form { margin: 0; flex: none; }
.admin-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.admin-card h2 { margin: 0; font: 700 22px/1.1 var(--font-display); }
.stats { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.stats th, .stats td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.stats th:first-child { text-align: left; }
.stats thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.stats tbody td { font-size: 18px; font-weight: 700; }
.admin-card .button { align-self: flex-start; }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-form label input:not([type=checkbox]) { width: 100%; }
.admin-form .switch { flex-direction: row; grid-column: 1 / -1; color: var(--text); font-size: 15px; }
.admin-form button, .admin-form .error { grid-column: 1 / -1; }
.login-brand { font: 700 15px/1 var(--font-display); color: var(--accent); letter-spacing: .02em; text-transform: uppercase; }
.login-card label { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-card button { min-height: 52px; border-radius: 14px; font-size: 16px; }

@media (max-width: 419px) {
  .brand-exam { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}

@media (max-width: 900px) {
  body { font-size: 15px; }
  .topbar { padding: 14px 16px 10px; border-bottom: 0; background: var(--bg); }
  .brand-name { font-size: 19px; }
  .topbar-actions .button-ghost span { display: none; }
  .topbar-actions .button-ghost { width: 44px; padding: 0; border-radius: 22px; }
  .banner { display: block; padding: 10px 16px; font-size: 13px; }
  .banner.warn { display: flex; }
  .panes { grid-template-columns: 1fr; }
  .pane { display: none; padding: 4px 16px calc(120px + env(safe-area-inset-bottom)); }
  .pane.active { display: flex; }
  .pane.order { border-left: 0; background: var(--bg); padding: 8px 16px calc(120px + env(safe-area-inset-bottom)); }
  .pane.order .p-card { background: var(--surface); box-shadow: var(--shadow-card); }
  .filters-btn { width: 50px; padding: 0; }
  .filters-label { display: none; }
  .filters-btn .count-badge { position: absolute; top: -6px; right: -6px; border: 2px solid var(--bg); }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .results { grid-template-columns: 1fr; gap: 10px; }
  .order-title h2 { font-size: 30px; }

  .tabs {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 20;
    gap: 6px;
    padding: 6px;
    border-radius: 22px;
    background: var(--ink);
    box-shadow: 0 12px 32px rgba(16, 20, 35, .28);
  }

  .tabs button {
    flex: 1;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--on-ink);
    font-size: 15px;
  }

  .tabs button.active { background: var(--surface); color: var(--text); }
  .tabs .icon { width: 20px; height: 20px; }

  .sheet {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 90vh;
    border-radius: 26px 26px 0 0;
    animation: slide-up .26s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: env(safe-area-inset-bottom);
  }

  @keyframes slide-up { from { transform: translateY(40%); opacity: 0; } }
  .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 10px auto 0; }
  .sheet-head { padding: 12px 20px 8px; }
  .facet-list { max-height: 260px; }
  .drawer { width: 100%; }
  .admin { padding: 16px 16px 40px; }
  .admin-head h1 { font-size: 30px; }
  .person { flex-direction: column; align-items: stretch; }
  .person form, .person .person-action { width: 100%; }
  .admin-form { grid-template-columns: 1fr; }
  .login-card { padding: 22px; }
}

.results.grouped { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.group {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  align-self: start;
}

.g-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; }
.g-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.g-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.g-title { font: 700 17px/1.3 var(--font-body); }
.g-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.g-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }

.g-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px 8px 16px;
  border-top: 1px solid var(--border);
}

.g-row:first-child { border-top: 0; }
.g-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.g-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.g-row-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.g-row .r-add { width: 38px; height: 38px; min-height: 38px; font-size: 22px; box-shadow: none; }
.g-row.added .r-add { width: auto; min-width: 50px; padding: 0 10px; height: 36px; min-height: 36px; }
.g-row .contact-btn.icon-only { width: 36px; height: 36px; min-height: 36px; }
.g-foot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--border); }
.chip-group { background: var(--surface); }

.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); flex: none; }
.pane.order .segmented { background: var(--bg); }
.segmented button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; }
.segmented button[aria-checked=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 20, 35, .14); }
.review { grid-template-columns: 1fr; }
.best-rank { flex: none; padding: 4px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.rank-chip { flex: none; min-width: 40px; padding: 2px 6px; border-radius: 10px; background: var(--accent); color: #fff; text-align: center; font-size: 13px; font-weight: 700; }
.review .g-row { cursor: pointer; }

.pick.run-open { margin-bottom: -10px; }
.pick.run-open .p-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pick.run-cont .p-card { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 1px dashed var(--border); }
.pick.run-cont .p-inst, .pick.run-cont .info-btn, .pick.run-cont .inst-details, .pick.run-cont .contact-btn { display: none; }
.pick.run-cont .p-rank { padding-top: 12px; font-size: 20px; }

.p-also {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 12px 12px 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 13px;
}

.p-also-text { flex: 1; min-width: 0; }
.p-also .button-link { color: var(--warn-ink); font-weight: 700; min-height: 32px; text-decoration: underline; }

.review .g-row.open { background: var(--accent-soft); align-items: flex-start; }
.r-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; cursor: default; }
.r-tools .p-note-preview { margin: 0; display: block; }
.r-tools .button-link { align-self: flex-start; padding: 0; }

button.primary, .button.primary, .r-add {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.result.added { background: var(--accent-soft); border-color: var(--accent-line); }
.result.added .r-add, .g-row.added .r-add { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--surface); border-color: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.r-add .icon { width: 15px; height: 15px; }
.rank-chip, .best-rank { background: transparent; border: 0; color: var(--text); }
.count-badge { background: transparent; color: inherit; border: 1px solid currentColor; }
.filters-btn .count-badge { background: var(--ink); color: var(--on-ink); border-color: var(--on-ink); }
.review .g-row.open, .facet-option.on { background: var(--surface-2); }
.g-row.added { background: var(--accent-soft); }
.toggle-chip[aria-pressed=true] { background: transparent; border-color: var(--text); color: var(--text); }

@media (hover: hover) {
  button.primary:hover, .button.primary:hover,
  .result:hover .r-add, .g-row:hover .r-add {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .result.added:hover .r-add, .g-row.added:hover .r-add { background: var(--accent); border-color: var(--accent); color: #fff; }
  .review .g-row:hover .rank-chip { background: var(--accent); color: #fff; }
  .result:hover { border-color: var(--accent-line); }
  .g-row:hover { background: var(--surface-2); }
  .g-row.added:hover { background: var(--accent-soft); }
  .pick:hover .p-card { border-color: var(--accent-line); }
}

.g-row-title.one-line { flex-wrap: nowrap; }
.g-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row-title.one-line .badge { flex: none; margin-left: auto; }

.page-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.page-back:hover { color: var(--text); }
.page-back .icon { width: 16px; height: 16px; }
.extension-page { display: flex; flex-direction: column; gap: 12px; width: min(440px, calc(100% - 32px)); }
.extension-page .login-card { width: 100%; }
.extension-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.extension-card .button.block { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 16px; font-size: 17px; }
.touch-only { display: none; }
.computer-needed { flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.computer-needed > p:first-child { display: flex; gap: 10px; margin: 0; font-size: 14px; }
.computer-needed > p:first-child .icon { flex: none; width: 22px; height: 22px; color: var(--accent); }
.computer-needed .share-link { padding: 0; }
.computer-needed .share-status { padding: 0; }
.computer-needed .share-status:empty { display: none; }
.computer-needed .store-anyway { margin: 0; font-size: 13px; }
.install-lead { margin: 0; font-weight: 600; }
.computer-needed .extension-actions { grid-template-columns: 1fr 1fr; }
@media (hover: none) and (pointer: coarse) {
  .touch-only { display: flex; }
  .no-touch { display: none; }
}
.install-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.install-steps .icon { width: 15px; height: 15px; vertical-align: -2px; }
.install-steps code { font-size: 13px; padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }
.copy-btn { display: inline-flex; align-items: center; min-height: 0; height: auto; padding: 0 4px; line-height: 1; vertical-align: -3px; color: var(--muted); border: 0; }
.copy-btn:hover { color: var(--accent); }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn .icon:last-child, .copy-btn[data-copied] .icon:first-child { display: none; }
.copy-btn[data-copied] .icon:last-child { display: inline-block; color: var(--accent); }
.menu-pop.from-left { left: 0; right: auto; }
.share-pop { width: min(320px, calc(100vw - 32px)); }
.share-link { display: flex; gap: 8px; padding: 2px 4px 4px; }
.share-link input { flex: 1; min-width: 0; font-size: 14px; }
.share-copy { flex: none; min-width: 84px; }
.share-copy[data-copied] { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--on-ink); box-shadow: none; }
.share-status { margin: 0; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ok-ink); }
.share-status:not(:empty) { padding-bottom: 6px; }
.share-status.failed { color: var(--danger); }

body.landing { display: block; height: auto; min-height: 100%; }
.lp-nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px max(20px, calc((100% - 1080px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-brand { font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.lp-nav nav { display: flex; align-items: center; gap: 14px; }
.lp-nav nav > a:not(.button) { color: var(--muted); font-weight: 600; text-decoration: none; display: inline-flex; }
.lp-nav nav > a:not(.button):hover { color: var(--text); }
.lp-nav .button { min-height: 40px; }
.lp { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 88px; }
.lp-hero { padding-top: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lp-kicker { font: 700 13px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.lp h1 { margin: 0; font: 700 clamp(36px, 6vw, 64px)/1.02 var(--font-display); letter-spacing: -.035em; max-width: 18ch; }
.lp h2 { margin: 0; font: 700 clamp(26px, 3.6vw, 38px)/1.1 var(--font-display); letter-spacing: -.025em; }
.lp h3 { margin: 0; font: 700 18px/1.2 var(--font-display); }
.lp p { margin: 0; }
.lp-lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-big { min-height: 54px; padding: 0 22px; border-radius: 16px; font-size: 17px; gap: 10px; }
.lp-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.lp-note .icon { color: var(--ok); }
.lp-demo { margin: 12px 0 0; width: 90%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #11131c; box-shadow: 0 30px 60px rgba(16, 20, 35, .35); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) rotate(.5deg); transform-origin: left center; }
.lp-demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #11131c; }
.lp-demo-video.phone { display: none; aspect-ratio: 720 / 1330; }
@media (max-width: 600px) {
  .lp-demo:has(.phone) { width: min(100%, 320px); margin-inline: auto; }
  .lp-demo-video.wide { display: none; }
  .lp-demo-video.phone { display: block; }
}
.lp-section { display: flex; flex-direction: column; gap: 28px; }
.lp-head { display: flex; flex-direction: column; gap: 12px; }
.lp-proof { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lp-proof a { color: inherit; text-underline-offset: 3px; }
.lp-proof a:hover { color: var(--text); }
.lp-compare-pin { display: flex; flex-direction: column; gap: 28px; }
.lp-compare.pinned::after { content: ""; height: 90vh; }
.lp-compare.pinned .lp-compare-pin { position: sticky; top: 24px; }
.lp-compare-switch { align-self: flex-start; display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lp-compare-switch button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; transition: background .3s, color .3s; }
.lp-compare-switch button:hover { color: var(--text); }
.lp-compare[data-view="portal"] .lp-compare-switch .portal { background: var(--danger); color: var(--surface); }
.lp-compare[data-view="planner"] .lp-compare-switch .planner { background: var(--accent); color: var(--surface); }
.lp-card.lp-flip { display: grid; }
.lp-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; transition: opacity .35s, transform .35s, visibility .35s; }
.lp-face.portal .lp-icon { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.lp-flip[data-view="portal"] .lp-face.planner, .lp-flip:not([data-view="portal"]) .lp-face.portal { opacity: 0; visibility: hidden; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .lp-face, .lp-compare-switch button { transition: none; } }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lp-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lp-grid.four { grid-template-columns: 1fr; } }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); }
.lp-card p { color: var(--muted); line-height: 1.5; }
.lp-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lp-icon .icon { width: 22px; height: 22px; }
.lp-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.lp-split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lp-split > div > p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.lp-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.lp-panel { position: absolute; right: 18px; bottom: 18px; width: 300px; margin: 0; border: 1px solid #2a2f4a; background: #101423; color: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-pop); font-size: 14px; }
.lp-panel-sub { color: #aab0c6; }
.lp-panel-group h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.lp-panel-group p { display: flex; gap: 10px; line-height: 1.45; }
.lp-panel-group span { flex: none; min-width: 48px; color: #aab0c6; font-variant-numeric: tabular-nums; }
.lp-panel-group.missing h4 { color: #ffd27a; }
.lp-panel-group.moved h4 { color: #9ec5ff; }
.lp-panel-state { color: #ffd27a; font-size: 16px; font-weight: 700; }
.lp-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-panel-btn { border: 1px solid #3d3bf3; background: #3d3bf3; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.lp-panel-btn.ghost { background: transparent; border-color: #3a3d78; }
.lp-trust .lp-card { box-shadow: none; }
.lp-final { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 56px 20px; border-radius: 28px; background: var(--ink); color: var(--on-ink); }
.lp-final h2 { max-width: 20ch; }
.lp-final .button { color: var(--on-ink); background: transparent; border-color: color-mix(in srgb, var(--on-ink) 45%, transparent); }
.lp-final .button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.lp-foot { max-width: 1080px; margin: 72px auto 0; padding: 28px 20px 40px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .lp-grid, .lp-grid.three { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; }
  .lp { gap: 64px; }
  .lp-hero { padding-top: 40px; }
  .lp-nav nav > a:first-child { display: none; }
}
.lp.doc { max-width: 720px; gap: 18px; padding-top: 48px; }
.lp.doc h2 { font-size: 22px; margin-top: 18px; }
.lp.doc p, .lp.doc li { line-height: 1.6; }
.lp.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
a.lp-brand { color: inherit; text-decoration: none; }
.lp-greeting { font: 400 clamp(28px, 3.2vw, 38px)/1.2 "Nothing You Could Do", cursive; color: var(--pen); margin: 0 0 -6px; transform: rotate(-3deg); transform-origin: left center; }
.lp-shot { position: relative; margin: 0; height: 440px; border-radius: 14px; overflow: hidden; background: #f4f5f9; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(16, 20, 35, .35); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg) rotate(.5deg); transform-origin: left center; }
.lp-shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #e3e6ee; }
.lp-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c4c8d4; }
.lp-shot-bar em { margin-left: 10px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11px/22px var(--font-body); font-style: normal; color: #5b6275; background: #fff; border-radius: 6px; padding: 0 10px; }
.lp-shot-page { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.lp-shot-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font: 600 11px/1 var(--font-body); color: #1e3a8a; }
.lp-shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-shot-row i { height: 22px; border-radius: 4px; background: #e6e8ef; }
.lp-shot-row i:last-child { background: #dfe7fb; }
.lp-shot .lp-panel { font-size: 12px; gap: 10px; padding: 14px; }
@media (max-width: 900px) {
  .lp-shot { transform: none; height: 470px; }
  .lp-demo { transform: none; width: 100%; }
  .lp-shot .lp-panel { left: 12px; right: 12px; width: auto; }
}


.consent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.consent-list li { display: flex; gap: 10px; align-items: flex-start; }
.consent-list .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

.lp-shot-chat { height: 330px; transform: perspective(1400px) rotateY(9deg) rotateX(3deg) rotate(-.5deg); transform-origin: right center; }
.lp-chat { display: grid; grid-template-columns: 96px 1fr; height: calc(100% - 34px); }
.lp-chat-side { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; background: #eceef4; }
.lp-chat-side i { height: 12px; border-radius: 4px; background: #dcdfe8; }
.lp-chat-side i:first-child { height: 22px; margin-bottom: 6px; background: #d3d7e3; }
.lp-chat-main { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; color: #1d2233; font-size: 12px; line-height: 1.5; }
.lp-chat-main p { margin: 0; }
.lp-chat-you { align-self: flex-end; max-width: 80%; padding: 8px 12px; border-radius: 14px; background: #e3e6ee; }
.lp-chat-tool { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid #dcdfe8; color: #5b6275; font-size: 11px; }
.lp-chat-tool .icon { width: 13px; height: 13px; }
.lp-chat-ai { max-width: 90%; }
@media (max-width: 900px) {
  .lp-shot-chat { transform: none; height: auto; }
  .lp-chat { grid-template-columns: 1fr; }
  .lp-chat-side { display: none; }
}
@media (min-width: 901px) {
  .lp-split-flip { grid-template-columns: 1fr 1.1fr; }
  .lp-split-flip > figure { order: -1; }
}

.cutoff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cutoff:empty { display: none; }
.chance { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid currentColor; }
.chance-likely { color: var(--ok); }
.chance-possible { color: #2459d6; }
.chance-borderline { color: #b45309; }
.chance-reach { color: var(--danger); }
.my-rank { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.my-rank h3 { margin: 0; font: 700 15px/1.2 var(--font-display); }
.my-rank input[type=number] { width: 100%; }
.my-rank .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.my-rank-note { margin: 0; font-size: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chance-possible { color: #7fa2ff; }
  :root:not([data-theme="light"]) .chance-borderline { color: #f0b45c; }
}

.practice { display: flex; flex-direction: column; gap: 16px; width: min(1100px, calc(100% - 32px)); margin: 24px auto 64px; }
.practice-banner { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-ink); }
.practice-banner strong { font: 700 18px/1.2 var(--font-display); }
.practice-banner p { margin: 0; }
.practice-banner a { color: inherit; font-weight: 600; }
.practice-status:empty { display: none; }
.practice-status { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.practice-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
.practice-panel h2 { margin: 0; font-size: 16px; }
.practice-panel h2 span { color: var(--muted); font-weight: 500; }
.practice-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.practice-table th, .practice-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.practice-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.practice-table td:last-child { white-space: nowrap; }
.practice-table input[type=button] { min-height: 30px; padding: 0 10px; margin-right: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.practice-table input[type=button]:hover { border-color: var(--accent-line); }
.practice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.practice-panel input[type=search] { width: 100%; }
.practice-table .practice-empty { color: var(--muted); padding: 14px 8px; }
body.ext-body { display: block; height: auto; min-height: 100%; }
.ext-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ext-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.ext-top-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ext-brand { font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.ext-top .page-back { align-self: center; }
.ext-main { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.ext-main h2 { margin: 0 0 16px; font: 700 26px/1.15 var(--font-display); letter-spacing: -.02em; }
.ext-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.ext-intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ext-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ext-eyebrow img { width: 56px; height: 56px; }
.ext-intro h1 { margin: 0; font: 700 clamp(36px, 6vw, 56px)/1.02 var(--font-display); letter-spacing: -.03em; }
.ext-lede { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.ext-install { flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.ext-badge-meta { font-size: 14px; line-height: 1.4; color: var(--muted); }
.store-note { flex: 1 1 100%; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; line-height: 1.45; }
.store-note strong { display: block; font-size: 16px; }
.ext-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ext-intro .computer-needed { background: var(--surface); box-shadow: var(--shadow-card); }
.computer-needed .button, .computer-needed .share-copy { min-height: 46px; }
.ext-trust { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ext-trust li { display: flex; align-items: center; gap: 10px; }
.ext-trust .icon { flex: none; width: 20px; height: 20px; color: var(--ok); }
.ext-shot { flex: 1 1 380px; min-width: 0; height: 420px; margin: 0; position: relative; overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card), 0 16px 40px rgba(16, 20, 35, .08); }
.ext-shot-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ext-shot-bar > span:not(.ext-shot-url) { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ext-shot-url { margin-left: 10px; flex: 1; padding: 3px 12px; border-radius: 12px; background: var(--surface); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-shot-page { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ext-shot-page i { display: block; height: 32px; border-radius: 8px; background: var(--surface-2); }
.ext-shot-page i.short { width: 80%; }
.ext-shot-page i.shorter { width: 60%; }
.ext-shot-page span + i { margin-top: 2px; }
.ext-shot-panel { position: absolute; right: 18px; bottom: 18px; width: min(290px, calc(100% - 36px)); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #101423; color: #ffffff; font-size: 13px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.ext-shot-muted { font-size: 12px; color: #aab0c6; }
.ext-shot-diff { font-size: 16px; font-weight: 700; color: #ffd27a; }
.ext-shot-actions { display: flex; gap: 8px; }
.ext-shot-actions span { padding: 7px 11px; border-radius: 10px; border: 1px solid #3a3d78; font-weight: 600; }
.ext-shot-actions .primary { background: #3d3bf3; border-color: #3d3bf3; }
.ext-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.ext-groups.compact { grid-template-columns: 1fr; gap: 8px; align-self: stretch; }
.ext-groups.compact .ext-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; }
.ext-groups.compact h3 { flex: 0 0 130px; }
.ext-groups.compact ul { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ext-groups.compact li img { width: 22px; height: 22px; }
.ext-groups.compact li span { flex-direction: row; gap: 6px; align-items: baseline; }
.ext-groups.compact li strong { font-size: 14px; }
.ext-groups.compact .ext-group-no { background: var(--surface); border: 1px solid var(--border); }
.ext-group { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; }
.ext-group h3 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ext-group h3 .icon { width: 16px; height: 16px; }
.ext-group ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ext-group-now ul { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.ext-group li { display: flex; align-items: center; gap: 10px; }
.ext-group li img { flex: none; width: 28px; height: 28px; }
.ext-group li span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.ext-group li strong { font-size: 15px; color: var(--text); }
.ext-group-now { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.ext-group-now h3 { color: var(--ok-ink); }
.ext-group-no { background: var(--surface-2); }
.ext-group-no h3 { color: var(--muted); }
.ext-group-no li img { opacity: .45; filter: grayscale(1); }
.ext-steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ext-steps li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 15px; line-height: 1.5; color: var(--muted); }
.ext-steps li strong { font-size: 17px; color: var(--text); }
.ext-step-no { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.ext-steps .install-lead { margin: -6px 0 12px; }
.ext-practice { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 22px 24px; border-radius: 20px; background: var(--accent-soft); }
.ext-practice > .icon { width: 26px; height: 26px; color: var(--accent); }
.ext-practice .button.primary, .ext-install .button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.ext-practice > span { flex: 1 1 300px; font-size: 15px; color: var(--muted); }
.ext-practice strong { display: block; font-size: 17px; color: var(--text); }
.manual-install { flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 15px; }
.manual-install > div:first-child { flex: 1 1 340px; }
.manual-install h2 { margin: 0 0 4px; font: 700 17px/1.3 var(--font-body); letter-spacing: 0; }
.manual-install p { margin: 0; }
.manual-install .extension-actions { display: flex; gap: 10px; }
.manual-install .button { display: inline-flex; align-items: center; gap: 8px; }
.manual-install details { flex: 1 1 100%; }
.manual-install summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.manual-install details .install-steps { margin-top: 10px; }
@media not all and (hover: none) and (pointer: coarse) {
  .ext-install, .manual-install { display: flex; }
}
@media (max-width: 760px) {
  .ext-groups { grid-template-columns: 1fr; }
  .ext-main { gap: 36px; padding-top: 28px; }
}

.result-actions { display: flex; align-items: center; gap: 8px; }
.segmented-small { display: inline-flex; padding: 3px; border-radius: 12px; }
.segmented-small button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 9px; }
.segmented-small .icon { width: 16px; height: 16px; }

.catalog-map { flex: 1 0 auto; display: flex; flex-direction: column; gap: 8px; min-height: 480px; }
.map-frame { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 440px; }
.map-canvas { flex: 1; min-height: 440px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--surface-2); font: inherit; }
.map-hint { margin: 0; color: var(--muted); font-size: 13px; }
.pane.catalog.map-plan .searchbar, .pane.catalog.map-plan #active-chips { display: none; }
.map-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.map-toolbar[hidden] { display: none; }
.map-lens { min-height: 36px; font-size: 14px; }
.map-side { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100% - 24px)); max-height: calc(100% - 48px); overflow: auto; pointer-events: none; }
.map-side > * { pointer-events: auto; }
.map-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-pop); }
.map-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop); font-size: 14px; line-height: 1.4; }
.map-card.likely { border-color: var(--chance-likely); }
.map-card.borderline { border-color: var(--chance-borderline); }
.map-card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.map-card-eyebrow.likely { color: var(--chance-likely); }
.map-card-eyebrow.borderline { color: var(--chance-borderline); }
.map-card-title { font: 700 18px/1.25 var(--font-display); }
.map-card-muted { color: var(--muted); font-size: 13px; }
.map-card-action { margin-top: 4px; min-height: 40px; }
.map-legend { position: absolute; left: 12px; bottom: 28px; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); font-size: 12px; }
.map-legend-change { min-height: 28px; padding: 0 4px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.map-legend-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.map-legend-row { display: flex; align-items: center; gap: 8px; }
.map-legend-note { max-width: 190px; color: var(--faint); line-height: 1.35; }
.map-swatch { width: 12px; height: 12px; flex: none; box-sizing: border-box; border-radius: 50%; }
.chance-fill-likely { background: var(--chance-likely); }
.chance-fill-possible { background: var(--chance-possible); }
.chance-fill-borderline { background: var(--chance-borderline); }
.chance-fill-reach { background: var(--chance-reach); }
.chance-fill-none { border: 1.5px solid var(--chance-none); }
.map-swatch.ring { border: 2px solid var(--text); }
.map-swatch.hollow { border: 2px solid var(--faint); }
.chance-none { color: var(--chance-none); }
.map-depth { display: flex; flex-direction: column; gap: 4px; }
.map-depth-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.map-depth-head .muted { font-weight: 400; }
.map-depth input { width: 100%; accent-color: var(--accent); }
.map-depth-track { position: relative; height: 16px; margin: 0 10px; }
.map-depth-marker { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--chance-likely); }
.map-plan-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.map-plan-actions .button-link { min-height: 32px; padding: 0 4px; }
.map-plan-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.map-plan-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-panel-head { display: flex; align-items: flex-start; gap: 8px; }
.map-panel-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-results { grid-template-columns: 1fr; gap: 10px; }
.map-canvas.leaflet-container .leaflet-tooltip { font: 500 13px/1.3 var(--font-body); color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-card); }
.map-canvas.leaflet-container .leaflet-tooltip-top::before { border-top-color: var(--surface); }
.map-canvas.leaflet-container .leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--border); }
.map-canvas.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); }
.map-canvas.leaflet-container .leaflet-control-attribution a { color: var(--accent); }
.map-canvas.leaflet-container { background: var(--bg); }
.map-labels { position: absolute; inset: 0; z-index: 450; overflow: hidden; pointer-events: none; }
.map-label { position: absolute; top: 0; left: 0; white-space: nowrap; color: var(--text); text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface), 0 0 3px var(--surface); font: 600 11px/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.map-label-faint { color: var(--faint); font-weight: 500; }

@media (max-width: 900px) {
  .catalog-map, .map-frame { min-height: 0; }
  .map-frame { display: contents; }
  .map-canvas { flex: none; height: max(320px, calc(100dvh - 380px)); min-height: 0; }
  .map-panel { position: static; order: 2; width: auto; max-height: none; overflow: visible; padding: 0; background: none; box-shadow: none; scroll-margin-top: 12px; }
  .map-side { display: contents; }
  .map-card { order: -1; box-shadow: none; }
  .map-legend { position: static; order: 1; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 0; border: 0; background: none; box-shadow: none; }
  .map-legend-title, .map-legend-note { width: 100%; max-width: none; }
  .map-depth, .map-hint { order: 1; }
  #catalog-view { display: none; }
  .segmented-small button { padding: 0 9px; }
  .seg-label { display: none; }
  .info-btn { width: 40px; height: 40px; min-height: 40px; margin: -9px -4px; }
}

.ai-apps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-apps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.ai-apps .icon, .ai-heading .icon { width: 22px; height: 22px; }
.ai-app-claude .icon { color: #d97757; }
.ai-app-chatgpt .icon { color: var(--text); }
.ai-apps .ai-app-more { padding-left: 12px; color: var(--muted); font-weight: 600; background: transparent; border-style: dashed; }
.ai-heading .icon[aria-hidden] { color: var(--accent); }
.ai-heading.ai-app-claude .icon { color: #d97757; }
.ai-heading.ai-app-chatgpt .icon { color: var(--text); }
.ai-heading { display: flex; align-items: center; gap: 8px; }
.conn-eyebrow .icon { width: 18px; height: 18px; }
.conn-link { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); }
.conn-link h2 { margin: 0; font: 700 14px/1.3 var(--font-body); letter-spacing: 0; }
.conn-link p { margin: 0; font-size: 13px; }
.conn-copy-status { font-weight: 600; color: var(--ok-ink); }
.conn-copy-status:empty { display: none; }
.conn-link-row { display: flex; gap: 8px; }
.conn-link-row input { flex: 1; min-width: 0; height: 48px; font: 500 15px ui-monospace, monospace; }
.conn-copy { flex: none; min-height: 48px; padding: 0 18px; }
.ext-main .conn-copy { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.conn-copy-done { display: none; align-items: center; gap: 6px; }
.conn-copy-done .icon { width: 16px; height: 16px; }
.conn-copy[data-copied] .conn-copy-idle { display: none; }
.conn-copy[data-copied] .conn-copy-done { display: inline-flex; }
.ext-main .conn-copy[data-copied] { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--on-ink); }
.conn-chat { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card), 0 16px 40px rgba(16, 20, 35, .08); font-size: 14px; line-height: 1.55; }
.conn-chat p { margin: 0; }
.conn-chat-you { align-self: flex-end; max-width: 85%; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent-soft); }
.conn-chat-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.conn-chat-tools span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.conn-chat-tools .icon { width: 14px; height: 14px; color: var(--accent); }
.conn-chat-reply { display: flex; gap: 10px; align-items: flex-start; }
.conn-chat-reply .icon { flex: none; width: 24px; height: 24px; }
.conn-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.conn-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); }
.conn-card h3 { margin: 0; font-size: 18px; }
.conn-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.conn-card ol strong { color: var(--text); }
.conn-card > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.conn-tip { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; line-height: 1.5; }
.conn-asks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.conn-asks li { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 15px; line-height: 1.5; }
.conn-asks li > p { margin: 0; font-size: 13px; }
.conn-asks-lead { margin: -8px 0 16px; color: var(--muted); }
.conn-ask-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.conn-ask-actions .button { min-height: 40px; font-size: 14px; }
.conn-ask-actions .icon { width: 18px; height: 18px; }
.conn-ask-copy[data-copied] { border-color: var(--ok-ink); color: var(--ok-ink); }
.conn-connected { gap: 4px; padding: 20px 22px; }
.conn-connected h2 { margin: 0 0 6px; font: 700 18px/1.3 var(--font-body); letter-spacing: 0; }
.conn-connected > p { margin: 0; }
.connections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.connections li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; }
.connections li + li { border-top: 1px solid var(--border); }
.connections li > .icon { flex: none; width: 24px; height: 24px; }
.connections li.ai-app-claude > .icon { color: #d97757; }
.connections li.ai-app-other > .icon { color: var(--accent); }
.connections li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.connections li > span .muted { font-size: 13px; }
.connections li > span strong { font-size: 15px; }
.connections form { margin: 0; flex: none; }
.conn-safe { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 18px; background: var(--accent-soft); font-size: 15px; color: var(--muted); }
.conn-safe > .icon { flex: none; width: 24px; height: 24px; color: var(--accent); }
.conn-safe strong { color: var(--text); }
