/* Site chrome CSS — header, nav, footer, shared components */

/* htmx loading indicator — visible only during in-flight requests */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: block; }
.htmx-request.htmx-indicator { display: block; }

header.site-header { background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%); padding: 0.6em 1.2em; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  header.site-header a.brand { font-size: 1.4em; font-weight: 600; letter-spacing: 0.05em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
  header.site-header .logo-mark { height: 26px; width: 26px; max-height: 26px; max-width: 26px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
  .beta-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: rgba(255,255,255,0.25); border-radius: 4px; padding: 1px 6px; margin-left: 4px; position: relative; top: 3px; }
  .admin-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: rgba(255,255,255,0.25); border-radius: 4px; padding: 1px 6px; margin-left: 4px; position: relative; top: 3px; }
  .fun-box-tagline { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-left: 8px; white-space: nowrap; }

  /* Hamburger button — hidden on desktop, shown on mobile */
  .nav-hamburger { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 4px 6px; color: #fff; line-height: 1; }
  .nav-hamburger svg { display: block; }

  nav.site-nav { background: var(--teal-light); display: flex; align-items: stretch; flex-shrink: 0; }
  nav.site-nav a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.8rem; font-weight: 500; padding: 10px 16px; letter-spacing: 0.03em; text-transform: uppercase; transition: background 0.15s; white-space: nowrap; }
  nav.site-nav a:hover { background: rgba(255,255,255,0.1); }
  nav.site-nav a.active { background: rgba(255,255,255,0.14); color: #fff; }
  nav.site-nav .nav-spacer { flex: 1; }
  nav.site-nav .user-menu { display: flex; align-items: center; }
  .user-menu-toggle { background: var(--purple); border: none; color: #fff; cursor: pointer; font-size: 0.8rem; font-weight: 500; padding: 10px 16px; font-family: inherit; letter-spacing: 0.03em; text-transform: uppercase; }
  .user-menu-toggle:hover { background: rgba(160,74,252,0.85); }
  .user-menu { position: relative; }
  /* Dropdown: JS-toggled via .open class; :hover kept as desktop fallback */
  .user-menu-dropdown { display: none; position: absolute; right: 0; top: 100%; background: white; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 140px; z-index: 1000; overflow: hidden; }
  .user-menu:hover .user-menu-dropdown, .user-menu.open .user-menu-dropdown { display: block; }
  nav.site-nav .user-menu-dropdown a { display: block; padding: 10px 16px; color: #333; text-decoration: none; font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
  nav.site-nav .user-menu-dropdown a:hover { background: #f0f0f0; }

  /* Admin nav: two-level hover dropdown with fly-out submenus */
  .nav-dd { position: relative; display: flex; align-items: stretch; }
  .nav-dd-toggle { background: none; border: none; color: rgba(255,255,255,0.9); cursor: pointer;
    font-size: 0.8rem; font-weight: 500; padding: 10px 16px; font-family: inherit;
    letter-spacing: 0.03em; text-transform: uppercase; display: flex; align-items: center; gap: 4px;
    transition: background 0.15s; white-space: nowrap; }
  .nav-dd:hover .nav-dd-toggle, .nav-dd-toggle:focus { background: rgba(255,255,255,0.1); }
  /* L1 panel — drops below the toggle */
  .nav-dd-panel { display: none; position: absolute; left: 0; top: 100%; z-index: 1002;
    background: #fff; border-radius: 0 0 6px 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 140px; overflow: visible; }
  .nav-dd:hover .nav-dd-panel { display: block; }
  /* L1 items — each is a hover trigger for the sub-panel */
  .nav-dd-item { position: relative; }
  nav.site-nav .nav-dd-item > a { display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px 9px 16px; color: #333; text-decoration: none; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
    background: #fff; transition: background 0.1s; white-space: nowrap; gap: 8px; }
  nav.site-nav .nav-dd-item:hover > a { background: #f0f0f0; color: var(--teal); }
  /* L2 sub-panel — flies out to the right */
  .nav-dd-sub { display: none; position: absolute; left: 100%; top: 0; z-index: 1003;
    background: #fff; border-radius: 0 6px 6px 0; box-shadow: 4px 4px 16px rgba(0,0,0,0.12);
    min-width: 140px; overflow: hidden; }
  .nav-dd-item:hover .nav-dd-sub { display: block; }
  nav.site-nav .nav-dd-sub a { display: block; padding: 8px 16px; color: #333;
    text-decoration: none; font-size: 0.85rem; text-transform: none; letter-spacing: 0;
    background: #fff; transition: background 0.1s; white-space: nowrap; }
  nav.site-nav .nav-dd-sub a:hover { background: #f0f0f0; color: var(--teal); }

  /* Mobile nav — links stack below the header when hamburger is toggled */
  @media (max-width: 768px) {
    .nav-hamburger { display: flex; align-items: center; justify-content: center; }
    nav.site-nav { flex-direction: column; overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
    nav.site-nav.nav-open { max-height: 800px; }
    nav.site-nav a { white-space: normal; border-bottom: 1px solid rgba(255,255,255,0.08); }
    nav.site-nav .nav-spacer { display: none; }
    nav.site-nav .user-menu { display: block; }
    /* On mobile the user-menu dropdown flips to in-flow */
    .user-menu-dropdown { position: static; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.15); min-width: 0; }
    .user-menu:hover .user-menu-dropdown { display: none; }
    .user-menu.open .user-menu-dropdown { display: block; }
    nav.site-nav .user-menu-dropdown a { color: rgba(255,255,255,0.85); background: transparent; padding-left: 28px; }
    nav.site-nav .user-menu-dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }
    .user-menu-toggle { width: 100%; text-align: left; background: transparent; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .user-menu-toggle:hover { background: rgba(255,255,255,0.1); }
    /* Admin dropdown: inline stacked on mobile, JS-toggled */
    .nav-dd { display: block; }
    .nav-dd-toggle { width: 100%; text-align: left; padding: 10px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-dd:hover .nav-dd-toggle { background: transparent; }
    .nav-dd.open .nav-dd-toggle { background: rgba(255,255,255,0.1); }
    .nav-dd-panel { position: static; box-shadow: none; border-radius: 0;
      background: rgba(0,0,0,0.15); min-width: 0; display: none; }
    .nav-dd.open .nav-dd-panel { display: block; }
    .nav-dd-item { position: static; }
    nav.site-nav .nav-dd-item > a { color: rgba(255,255,255,0.85); background: transparent;
      padding: 9px 16px 9px 24px; text-transform: uppercase; font-size: 0.8rem; }
    nav.site-nav .nav-dd-item:hover > a { background: rgba(255,255,255,0.06); color: #fff; }
    .nav-dd-sub { position: static; box-shadow: none; border-radius: 0;
      background: rgba(0,0,0,0.1); min-width: 0; display: none; }
    .nav-dd-item.open .nav-dd-sub { display: block; }
    .nav-dd-item:hover .nav-dd-sub { display: none; }
    nav.site-nav .nav-dd-sub a { color: rgba(255,255,255,0.8); background: transparent;
      padding: 7px 16px 7px 36px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    nav.site-nav .nav-dd-sub a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  }

  footer.site-footer { background: var(--teal); flex-shrink: 0; }
  nav.footer-nav { display: flex; flex-wrap: wrap; gap: 0; padding: 0 1em; }
  nav.footer-nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.8rem; font-weight: 500; padding: 10px 12px; letter-spacing: 0.03em; text-transform: uppercase; }
  nav.footer-nav a:hover { color: #fff; }
  nav.footer-nav a.footer-version { margin-left: auto; }

  /* Reusable component styles (tables, cards, badges, forms) */
  *, *::before, *::after { box-sizing: border-box; }
  main { flex: 1; width: 100%; max-width: 1200px; margin: 1.5em auto; padding: 2em 1.2em; background: transparent; border-radius: 0; box-shadow: none; margin-bottom: 1.5em; }
  main h1 { font-size: 2em; font-weight: 800; letter-spacing: -0.01em; color: var(--charcoal); margin-bottom: 0.6em; line-height: 1.15; }
  main h2 { font-size: 1.2em; font-weight: 600; color: #333; margin-bottom: 0.4em; }
  main h3 { font-size: 1.1em; font-weight: 600; color: #333; margin-bottom: 0.4em; }
  @media (max-width: 900px) { main { padding: 1.5em 0.8em; } }
  @media (max-width: 600px) { main { padding: 1em 0.6em; margin: 0.5em auto; border-radius: 8px; } main h1 { font-size: 1.3em; } }
  .cat-hint-desktop { display: none; }
  @media (min-width: 769px) { .cat-hint-desktop { display: block; } }
  table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
  th { background: #f8f9fa; text-align: left; padding: 10px 12px; font-size: 13px; color: #666; font-weight: 600; border-bottom: 1px solid #eee; }
  th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
  th.sortable:hover { color: #333; background: #f0f0f0; }
  th.sortable a { color: inherit; text-decoration: none; display: block; }
  th.sort-asc a::after { content: ' ↑'; font-size: 11px; }
  th.sort-desc a::after { content: ' ↓'; font-size: 11px; }
  td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
  tr:hover td { background: #f8f9fa; }
  /* Scrollable table wrapper — prevents table from blowing out the layout on mobile */
  .table-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  .card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 16px; }
  @media (max-width: 600px) { .card { padding: 12px; } }
  .stat { display: inline-block; text-align: center; padding: 12px 24px; }
  .stat .value { font-size: 28px; font-weight: 700; color: var(--teal); }
  .stat .label { font-size: 12px; color: #888; margin-top: 4px; }
  .btn { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 13px; text-decoration: none; cursor: pointer; border: 1px solid #ddd; background: #fff; color: #333; }
  .btn:hover { background: #f0f0f0; }
  .btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
  .btn-primary:hover { background: #005580; }
  .btn-danger { color: #c0392b; border-color: #c0392b; }
  .btn-success { color: #27ae60; border-color: #27ae60; }
  input[type=text], input[type=number], select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
  .form-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
  .empty { text-align: center; color: #999; padding: 40px; }
  .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
  .badge-green { background: #e8f5e9; color: #2e7d32; }
  .badge-red { background: #fbe9e7; color: #c62828; }
  .badge-gray { background: #f5f5f5; color: #666; }
  .msg { padding: 10px 16px; border-radius: 4px; margin-bottom: 12px; }
  .msg-ok { background: #e8f5e9; color: #2e7d32; }
  .msg-err { background: #fbe9e7; color: #c62828; }

  /* Link colors */
  a { color: var(--teal); }
  a:hover { color: #005580; }

  /* CTA button — purple, used for primary page actions (clear filters, send message, etc.) */
  .btn-cta { display: inline-block; background: var(--purple); color: #fff; font-family: "Barlow", sans-serif; font-size: 1.1rem; font-weight: 700; padding: 0.75em 2.2em; border: none; border-radius: 6px; text-decoration: none; cursor: pointer; letter-spacing: 0.02em; box-shadow: 0 2px 0 rgba(0,0,0,0.2); transition: background 0.15s, transform 0.08s; }
  .btn-cta:hover { background: var(--purple-deep); color: #fff; }
  .btn-cta:active { transform: translateY(2px); box-shadow: none; }
  .btn-cta:disabled { background: #c9a0f8; cursor: not-allowed; box-shadow: none; }

  /* Compare table */
  .cmp-row.cmp-selected td { background: #e8f4fd !important; }
  .cmp-row:not(.cmp-selected) { transition: background 0.1s; }
  .cmp-cb { cursor: pointer; width: 16px; height: 16px; accent-color: var(--teal); }
  .btn-primary:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; }

  /* Color swatch strip — Coolors-style product palette display */
  .color-swatch-strip { display: flex; gap: 3px; margin-top: 4px; }
  .color-swatch { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

  /* Gallery image frame */
  .gallery-frame { border-radius: 16px; overflow: hidden; border: 1.5px solid var(--accent-dynamic-1, var(--sky)); transition: transform 0.15s, box-shadow 0.15s; }
  .gallery-frame:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
  .gallery-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Site defaults */
  body { margin: 0; padding: 0; font-family: 'Barlow', -apple-system, system-ui, sans-serif; background: var(--bg); color: var(--charcoal); min-height: 100vh; display: flex; flex-direction: column; }

  /* Admin components (class-scoped, no effect when unused) */
  .admin-logout { margin-left: auto; background: none; border: none; cursor: pointer; font-family: inherit; color: rgba(255,255,255,0.75) !important; font-size: 0.75rem !important; padding: 10px 16px; text-decoration: none; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
  .admin-logout:hover { color: #fff !important; background: rgba(255,255,255,0.1); }
  .bubble { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; max-width: 80%; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
  .bubble-user { background: var(--teal); color: #fff; margin-left: auto; }
  .bubble-assistant { background: #fff; border: 1px solid #ddd; }
  .bubble-tool { background: #f5f5f5; border: 1px solid #eee; font-size: 12px; font-family: monospace; }
  .turn-meta { font-size: 11px; color: #999; margin-bottom: 4px; }

  /* BMC widget: keep it on-screen on narrow viewports */
  @media (max-width: 480px) {
    #bmc-wbtn { right: 12px !important; bottom: 12px !important; width: 48px !important; height: 48px !important; }
  }


/* Wing card — shared by Quiver Gap (.quiver-grid) and Head-to-Head (.shelf .slot-wing-card) */
.wing-card { background: var(--paper-warm); border-radius: var(--r-md); padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--sky)); }
.wing-card .wc-brand { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent, var(--ink-soft)); margin-bottom: 4px; }
.wing-card .wc-model { font-size: 16px; font-weight: 700; color: var(--charcoal); line-height: 1.2; }
.wing-card .wc-size { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.wing-card .wc-meta { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* Pick card — primary results card (HOME_FLOWS.md §2). Shared by NR, QG, H2H. */
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
@media (max-width: 800px) { .picks-grid { grid-template-columns: 1fr; } }
.pick-card { background: var(--paper-warm); border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line); position: relative; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; cursor: pointer; text-decoration: none; display: block; color: inherit; }
.pick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--accent, var(--purple)); }
.pick-card.top-pick { border: 1.5px solid var(--purple); background: linear-gradient(180deg, #fff, var(--purple-soft)); }
.pick-card .badge { position: absolute; top: -10px; right: 14px; background: var(--purple); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; }
.pick-card .pick-brand { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent, var(--ink-soft)); margin-bottom: 2px; }
.pick-card .pick-model { font-size: 17px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; line-height: 1.2; }
.pick-card .pick-spec { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.pick-card .pick-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.pick-card .pick-price { font-weight: 700; color: var(--charcoal); }
.pick-card .pick-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--r-md); margin-bottom: 12px; border: 1px solid var(--line-soft); overflow: hidden; background: linear-gradient(135deg, var(--sky-soft), #fff); display: flex; align-items: center; justify-content: center; }
.pick-card .pick-img img { width: 100%; height: 100%; object-fit: contain; }
.pick-card .pick-verdict-inline { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* LLM thinking indicator — reusable across home flows.
   Throbbing purple-tinted box with floating gold sparkles. */
.llm-thinking {
  position: relative;
  margin: 16px 0 20px;
  padding: 32px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(160, 74, 252, 0.10), rgba(123, 47, 216, 0.06));
  border: 1px solid rgba(160, 74, 252, 0.25);
  text-align: center;
  overflow: hidden;
  animation: llm-throb 2.4s ease-in-out infinite;
}
.llm-thinking-text {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-deep, #7b2fd8);
  letter-spacing: 0.02em;
}
.llm-thinking-spark {
  position: absolute;
  font-size: 18px;
  color: var(--gold, #EEB61B);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(238, 182, 27, 0.55));
}
.llm-thinking-spark--1 { top: 18%; left: 12%;  animation: llm-twinkle 2.2s ease-in-out infinite 0s;   }
.llm-thinking-spark--2 { top: 60%; right: 14%; animation: llm-twinkle 2.6s ease-in-out infinite 0.7s; }
.llm-thinking-spark--3 { top: 25%; right: 28%; animation: llm-twinkle 2.0s ease-in-out infinite 1.3s; }

@keyframes llm-throb {
  0%, 100% { box-shadow: 0 0 0 0 rgba(160, 74, 252, 0.0), 0 0 24px -8px rgba(160, 74, 252, 0.3);  }
  50%      { box-shadow: 0 0 0 4px rgba(160, 74, 252, 0.10), 0 0 36px -4px rgba(160, 74, 252, 0.55); }
}
@keyframes llm-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.7) rotate(0deg);    }
  35%      { opacity: 1;    transform: scale(1.2) rotate(20deg);   }
  65%      { opacity: 0.7;  transform: scale(0.95) rotate(-15deg); }
}

/* Gear advisor rationale block — shared across QG, H2H, and NR flows */
.rationale { display: flex; gap: 14px; align-items: flex-start; background: var(--paper-warm, #fdfbf6); border-radius: var(--r-md, 12px); padding: 18px 22px; border: 1px solid var(--line, #ece6dc); margin-bottom: 20px; }
.rationale .sparkle { font-size: 20px; flex-shrink: 0; }
.rationale .rat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft, #5c5c54); margin-bottom: 6px; }
.rationale .rat-body { font-size: 15px; line-height: 1.6; color: var(--charcoal, #32322c); }

/* Profile strip — shared across flows */
.profile-strip { background: var(--paper); border-radius: var(--r-pill); padding: 10px 18px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 0; flex-wrap: wrap; font-size: 13px; margin-bottom: 28px; box-shadow: var(--shadow-soft); }
.chip-info { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; color: var(--charcoal); }
.chip-info + .chip-info { border-left: 1px solid var(--line-soft); }
.chip-info .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }
.chip-info .val { font-weight: 600; }
.chip-info .val.mono { font-family: "JetBrains Mono", monospace; color: var(--purple-deep); }

/* Picker grid + card — shared across H2H, Sizing per HOME_FLOWS.md §3.
   Layout mirrors the shelf wing-card: horizontal flex, text left, thumbnail right,
   left accent border. Same visual language selected vs unselected. */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.picker-card { border: 1px solid var(--line, #ece6dc); border-left: 4px solid var(--accent, var(--teal, #0077AA)); border-radius: 10px; background: var(--paper-warm, #fdfbf6); display: flex; flex-direction: column; }
.picker-card-body { padding: 12px 14px 8px; flex: 1; }
.picker-card-inner { display: flex; align-items: center; gap: 10px; }
.picker-card-text { flex: 1 1 0; min-width: 0; }
.picker-card-img { width: 64px; height: 50px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.picker-card-brand { font-size: 10px; font-weight: 700; color: var(--ink-soft, #5c5c54); text-transform: uppercase; letter-spacing: 0.1em; }
.picker-card-model { font-size: 14px; font-weight: 700; color: var(--charcoal, #32322c); margin-top: 2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-card-wind { font-size: 12px; color: var(--ink-soft, #5c5c54); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-card-add { margin: 8px 10px 10px; padding: 6px 12px; border: none; border-radius: 8px; background: var(--teal, #0077AA); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,0.08); width: calc(100% - 20px); }
.picker-card-add:active { transform: translateY(2px); box-shadow: none; }
.picker-card-add:disabled { background: var(--ink-soft, #5c5c54); cursor: default; opacity: 0.6; }
/* Source tabs — shared */
.source-tabs { display: flex; gap: 8px; margin: 20px 0 12px; }
.source-tabs .tab { padding: 8px 16px; border: 1.5px solid var(--line, #ece6dc); border-radius: 999px; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.source-tabs .tab.active { background: var(--teal, #0077AA); color: #fff; border-color: var(--teal, #0077AA); }
/* Search input — shared */
.h2h-search-wrap { margin: 16px 0 8px; }
.h2h-search-input { width: 100%; max-width: 400px; padding: 9px 14px; font-family: inherit; font-size: 14px; border: 1.5px solid var(--line, #ece6dc); border-radius: 10px; outline: none; background: var(--paper-warm, #fdfbf6); box-sizing: border-box; }
.h2h-search-input:focus { border-color: var(--teal, #0077AA); box-shadow: 0 0 0 3px rgba(0,119,170,0.15); }
.empty-state { color: #888; font-size: 14px; }
/* Slot — for shelf chips */
.slot { min-width: 0; min-height: 80px; border: 2px dashed var(--line, #ece6dc); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #888; position: relative; }
.slot.filled { min-width: 0; padding: 0; border: none; }
.slot.filled > .wing-card { flex: 1; min-width: 0; overflow: hidden; }
.slot.filled > .wing-card > div:first-child { flex: 1 1 auto; min-width: 0; }
.slot.filled > .wing-card .wc-model { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.filled > .wing-card .wc-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-remove { position: absolute; top: 4px; right: 6px; background: transparent; border: none; cursor: pointer; color: #888; font-size: 18px; line-height: 1; padding: 4px 6px; z-index: 2; }
.slot-remove:hover { color: #d63b30; }

/* Per-pick verdict text — shared across NR, QG, H2H per HOME_FLOWS.md §3 */
.pick-verdicts { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; }
.pick-verdict { padding: 12px 16px; border-radius: 10px; background: var(--paper, #fff); border: 1px solid var(--line, #ece6dc); border-left: 3px solid var(--accent, var(--line, #ece6dc)); }
.pick-verdict--best { background: var(--sky-soft, #d8ecf3); }
.pick-verdict-name { font-size: 15px; font-weight: 700; color: var(--charcoal, #32322c); margin-bottom: 6px; }
.pick-best-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--teal, #0077AA); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.pick-verdict-body { font-size: 14px; color: var(--charcoal, #32322c); line-height: 1.45; }
