/* public/css/builder-picker.css — Phase 2 of the refactor (REFACTOR_PLAN.md §7).
   Copied verbatim from public/dashboard-v2.css lines 5873..6749. */

/* 2026-05-16 P3: docked picker (template / palette) pinned above the
   composer. Replaces the inline choice card so the picker doesn't push
   the chat thread on scroll and reads more like Lovable's UI. Hidden by
   default; shellPickerDockShow mounts it with a label + chip row. */
/* 2026-05-16 v3: Lovable-style Q&A card. Warm cream surface, soft
   shadow, 2x2 tile grid with distinct layout mockups (or palette
   swatches), "Describe your own" radio row, and a footer pairing
   nav arrows on the left with Skip-all + Next/Review on the right.
   Spec from agent-produced design analysis 2026-05-16. */
.builder-picker-dock {
  display: block;
  padding: 24px 24px 16px;
  margin: 0 0 14px;
  background: #FBFBFB;
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 22, 17, 0.04), 0 8px 24px rgba(31, 22, 17, 0.06);
  /* 2026-05-24 cleaner entrance (founder: "needed a cleaner
     animation when it popped up on the screen"). Was the generic
     builderRowEnter (6px translateY, 320ms) shared with chat
     bubbles. Custom keyframe lifts from 18px below + 0.97 scale +
     opacity over 460ms with a soft overshoot curve, so the dock
     rises gracefully from the composer surface rather than just
     blinking in. GPU-accelerated via will-change. */
  animation: builderPickerDockRise 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
  transform-origin: 50% 100%;
}
@keyframes builderPickerDockRise {
  0%   { opacity: 0; transform: translateY(18px) scale(0.97); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.builder-picker-dock[hidden] { display: none; }
.builder-picker-dock.is-collapsing {
  animation: builderPickerDockCollapse 0.28s cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes builderPickerDockCollapse {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
.builder-picker-dock__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.builder-picker-dock__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1F1611;
  letter-spacing: -0.005em;
}
.builder-picker-dock__hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6B5A4C;
  flex: 0 0 auto;
}
.builder-picker-dock__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.builder-picker-dock__chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  padding: 18px 16px;
  background: #F1F1F1;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #1F1611;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  min-height: 110px;
}
.builder-picker-dock__chip:hover {
  background: #ECECEC;
}
.builder-picker-dock__chip:disabled { opacity: 0.55; cursor: default; }
/* 2026-05-24 selected affordance — clean white bg flip + ink border
   + a single soft outer halo. Earlier inset-ring approach (founder:
   "looks a bit unfinished with the black") was reading as a double
   border; one ring around the tile is enough now that the white-on-
   cream contrast carries the selection state. */
.builder-picker-dock__chip.is-selected {
  background: #FFFFFF;
  border-color: #1F1611;
  box-shadow: 0 0 0 4px rgba(31, 22, 17, 0.06);
}
.builder-picker-dock__chip.is-selected:hover {
  background: #FFFFFF;
}

/* Palette swatch — 4-stripe horizontal bar, centred in the tile. */
.builder-picker-dock__swatch {
  display: flex;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(31, 22, 17, 0.06);
}
.builder-picker-dock__swatch > span { flex: 1 1 0; display: block; height: 100%; }

/* Layout mockup wrapper — 4 distinct patterns picked by index.
   Shape classes match the JS in shellPickerDockShow's renderTemplateLayout
   (dashboard-v2-page.html ~15745): lay-hero, lay-row, lay-cell, lay-bar,
   lay-split, lay-big, lay-col, lay-small, lay-head, lay-grid2, lay-gcell. */
.builder-picker-dock__layout {
  display: flex;
  width: 100%;
  max-width: 140px;
  height: 60px;
  margin: 0 auto;
  padding: 6px;
  box-sizing: border-box;
  background: transparent;
}
/* Pattern A — hero-columns (`data-layout="hero-columns"`):
   one wide hero bar on top, 3-column row underneath. */
.builder-picker-dock__layout[data-layout="hero-columns"] {
  flex-direction: column;
  gap: 6px;
}
.builder-picker-dock__layout .lay-hero {
  display: block;
  height: 18px;
  background: #D8D5CC;
  border-radius: 3px;
}
.builder-picker-dock__layout .lay-row {
  display: flex;
  gap: 6px;
  flex: 1;
  min-height: 0;
}
.builder-picker-dock__layout .lay-cell {
  flex: 1;
  background: #D8D5CC;
  border-radius: 3px;
}
/* Pattern B — stack (`data-layout="stack"`): 4 full-width bars. */
.builder-picker-dock__layout[data-layout="stack"] {
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
}
.builder-picker-dock__layout .lay-bar {
  display: block;
  flex: 1;
  min-height: 6px;
  background: #D8D5CC;
  border-radius: 3px;
}
/* Pattern C — split (`data-layout="split"`): big left + 2 small right. */
.builder-picker-dock__layout[data-layout="split"] {
  flex-direction: row;
  gap: 0;
  padding: 6px;
}
.builder-picker-dock__layout .lay-split {
  display: flex;
  gap: 6px;
  flex: 1;
  width: 100%;
}
.builder-picker-dock__layout .lay-big {
  display: block;
  flex: 1.4;
  background: #D8D5CC;
  border-radius: 3px;
}
.builder-picker-dock__layout .lay-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.builder-picker-dock__layout .lay-small {
  display: block;
  flex: 1;
  background: #D8D5CC;
  border-radius: 3px;
}
/* Pattern D — grid (`data-layout="grid"`): head bar + 2x2 cells. */
.builder-picker-dock__layout[data-layout="grid"] {
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
}
.builder-picker-dock__layout .lay-head {
  display: block;
  height: 10px;
  background: #D8D5CC;
  border-radius: 3px;
}
.builder-picker-dock__layout .lay-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 1;
}
.builder-picker-dock__layout .lay-gcell {
  background: #D8D5CC;
  border-radius: 3px;
}

.builder-picker-dock__chip-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1F1611;
  line-height: 1.3;
  text-align: center;
  margin-top: 4px;
}
.builder-picker-dock__chip-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6B5A4C;
  margin-top: 3px;
  line-height: 1.35;
  text-align: center;
}

/* 2026-05-24 typography tile — self-demonstrating preview. Renders
   a real-feeling tradie title + body sample in the actual fonts,
   then a tiny font-name label at the bottom so the picker is also
   informative ("which fonts am I picking?"). Sizing tuned so the
   personality of each font is legible at the tile width (~140px).
   Title is set in the title font's family, body in the body font,
   both inline-stylesheet via JS in shellPickerDockShow. */
.builder-picker-dock__typography {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 4px 4px;
  width: 100%;
  text-align: left;
}
.builder-picker-dock__typography-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #1F1611;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.builder-picker-dock__typography-body {
  font-size: 0.82rem;
  font-weight: 400;
  color: #4A3D32;
  line-height: 1.35;
}
.builder-picker-dock__typography-pair {
  font-size: 0.68rem;
  font-weight: 500;
  color: #8A7B6D;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

/* 2026-05-24 review card — summary list inside the same dock element
   (chips slot gets repurposed via .builder-picker-dock__chips--review
   modifier). Tile grid styling is overridden back to a vertical
   stack, no hover affordance, no clickability. */
.builder-picker-dock__chips--review {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 4px 0 6px;
}
.builder-picker-dock__review-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 10px;
}
.builder-picker-dock__review-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8A7B6D;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.builder-picker-dock__review-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1F1611;
  line-height: 1.35;
}

/* Describe-your-own row — sits below the grid, full-width radio row.
   Matches the HTML emitted at dashboard-v2-page.html:9642
   (`.builder-picker-dock__custom`). */
.builder-picker-dock__custom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(31, 22, 17, 0.08);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.builder-picker-dock__custom:hover {
  background: rgba(31, 22, 17, 0.025);
}
.builder-picker-dock__custom input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #6B5A4C;
  flex: 0 0 auto;
  position: relative;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.12s;
}
.builder-picker-dock__custom input[type="radio"]:checked {
  border-color: #1F1611;
}
.builder-picker-dock__custom input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1F1611;
}
.builder-picker-dock__custom span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1F1611;
}
.builder-picker-dock__custom.is-checked {
  border-color: rgba(31, 22, 17, 0.22);
}

/* 2026-05-24: replaced the "Describe your own" radio with an actual
   text input bar (Lovable parity). Sits between the chips grid and
   the foot; sized to match the composer's quiet inputs — calm border,
   no shadow, focus ring picks up the brand orange via :focus-visible.
   Applies to both the template picker AND the palette picker. */
.builder-picker-dock__custom-input {
  display: block;
  width: 100%;
  margin-top: 18px;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1F1611;
  background: #FFFFFF;
  border: 1px solid rgba(31, 22, 17, 0.14);
  border-radius: 12px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
          appearance: none;
}
.builder-picker-dock__custom-input::placeholder {
  color: #8A7B6D;
  opacity: 1;
}
.builder-picker-dock__custom-input:hover {
  border-color: rgba(31, 22, 17, 0.22);
}
.builder-picker-dock__custom-input:focus,
.builder-picker-dock__custom-input:focus-visible {
  border-color: var(--orange, #FF5B00);
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.14);
}

/* Footer: nav arrows (left) + Skip-all + CTA (right). */
.builder-picker-dock__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 22, 17, 0.08);
}
.builder-picker-dock__nav {
  display: flex;
  gap: 6px;
}
.builder-picker-dock__navbtn {
  appearance: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 8px;
  color: #6B5A4C;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.builder-picker-dock__navbtn:hover:not(:disabled) {
  background: #F1F1F1;
  color: #1F1611;
  border-color: rgba(31, 22, 17, 0.18);
}
.builder-picker-dock__navbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.builder-picker-dock__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.builder-picker-dock__skip {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6B5A4C;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.12s;
}
.builder-picker-dock__skip:hover {
  color: #1F1611;
}
.builder-picker-dock__next {
  appearance: none;
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(31, 22, 17, 0.08);
  background: transparent;
  color: #1F1611;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.builder-picker-dock__next:hover:not(:disabled) {
  background: #F1F1F1;
}
.builder-picker-dock__next.is-primary {
  /* Brand ink (warm near-black) instead of the generic blue that
     was here before — matches the .builder-input-send circular
     send button so the picker's primary action reads as part of
     the same family. */
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream, #FAFAFA);
}
.builder-picker-dock__next.is-primary:hover:not(:disabled) {
  background: var(--ink-2, #2A1F17);
  border-color: var(--ink-2, #2A1F17);
}
.builder-picker-dock__next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Phase 2 (2026-05-17): mobile-tuned picker dock — tighter padding,
   smaller tile minimum, smaller header text, more compact footer so
   the dock fits cleanly above the composer without crowding the
   "Generate your website." headline above it. */
@media (max-width: 720px) {
  .builder-picker-dock {
    padding: 16px 14px 12px;
    border-radius: 14px;
    margin: 0 0 10px;
    /* The dock sits inside .builder-input-wrap (position:fixed at the
       viewport bottom) along with the composer. Without a height cap
       on the chip area, a 3-card layout picker pushes the dock + foot
       past the viewport top and the Skip/Next buttons end up clipped
       under the composer's fade band. Cap the chips area + give it
       internal scroll; head + foot stay visible at all times so the
       Next button is always tappable. */
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 52px - 120px - 24px);
  }
  .builder-picker-dock__head {
    margin-bottom: 12px;
    flex: 0 0 auto;
  }
  .builder-picker-dock__label {
    font-size: 0.95rem;
  }
  .builder-picker-dock__hint {
    font-size: 0.7rem;
  }
  .builder-picker-dock__chips {
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* 2026-05-24 founder report: selected tile "top and left side
       are being cut off". Root cause: overflow-y:auto here (needed
       so a tall 4-tile picker can scroll if vertical room is tight)
       also clips overflow-x by default, which crops the selected
       tile's 4px box-shadow halo where it extends past the chips
       container. Add 6px inner padding so the halo has breathing
       room inside the clip rect, paired with a -6px margin so the
       chips area's outer bounding box stays the same width (tiles
       don't shrink relative to the dock surface). */
    padding: 6px;
    margin: -6px;
  }
  .builder-picker-dock__chip {
    padding: 12px 10px;
    min-height: 86px;
    font-size: 0.78rem;
    gap: 8px;
  }
  .builder-picker-dock__swatch {
    height: 32px;
  }
  .builder-picker-dock__layout {
    max-width: 100px;
    height: 44px;
  }
  .builder-picker-dock__other {
    padding: 8px 4px;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }
  .builder-picker-dock__custom-input {
    /* mobile-tight version below; base styles in the parent block */
    height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
  .builder-picker-dock__foot {
    margin-top: 10px;
    padding-top: 10px;
    flex: 0 0 auto;
  }
  .builder-picker-dock__nav-btn {
    width: 32px;
    height: 32px;
  }
  .builder-picker-dock__next {
    height: 36px;
    padding: 0 18px;
    font-size: 0.85rem;
  }
}

/* Phase 2 empty-state mobile layout — switch the chat pane from
   vertically-centered to top-stacked when the picker dock is
   visible. The centered layout was clipping the "Generate your
   website." headline once the dock appeared. Always-flex-start on
   mobile is fine because the hero block already has its own bottom
   margin to push it away from the composer.

   Phase 3.7 (2026-05-17): Claude-style spacing. Hero + instruction
   hug the TOP, composer hugs the BOTTOM. The composer-pinning is
   handled by margin-top: auto on .builder-input-wrap further down
   (works in all states, not just empty), so this rule only owns
   the pane padding. */
@media (max-width: 720px) {
  /* 2026-05-22: scoped to genuinely-empty chats (no chat-body content
     yet) so the hero+chip stack keeps its top breathing room. Once the
     user types and chat-body fills, the padding-top here would leave
     a 24px cream gap above the chat content — defeating the Lovable-
     parity "scroll behind the topbar fade" behavior. */
  .builder-shell--centered[data-builder-state="empty"] .builder-chat-pane:not(:has(.builder-chat-body:not(:empty))) {
    justify-content: flex-start !important;
    padding-top: 24px !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
  /* Empty-state suggestion chips: 2-column grid (was a horizontal
     row that cycled one chip at a time). Each chip is a tappable
     trade option that fills the composer with the full example. */
  .builder-shell--centered[data-builder-state="empty"] .builder-suggestion-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 14px 0 0 !important;
    max-width: none !important;
  }
  .builder-shell--centered[data-builder-state="empty"] .builder-suggestion-row .builder-suggestion-chip {
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ────────────────────────────────────────────────────────────
   2026-05-16 v4: Lovable-flavoured polish pass on the picker.
   - Outer dock drops to cream-2; tiles rise to paper → cards-on-card.
   - Tiles get hairline + inset highlight + micro-shadow + 1px hover lift.
   - Selected tile: indigo ring (no harsh ink border); preview shapes
     turn brand-indigo so the choice "lights up".
   - Header: lighter title, "Select one" becomes an uppercase eyebrow pill.
   - Footer: gradient primary CTA with colored drop + press state.
   - Single shared focus ring across all interactive controls.
   Property comments inline below explain each move. */
.builder-picker-dock {
  padding: 22px 22px 14px;
  background: #F1F1F1;
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 2px rgba(31, 22, 17, 0.03),
    0 12px 32px -12px rgba(31, 22, 17, 0.10);
}
.builder-picker-dock__head {
  align-items: center;
  margin-bottom: 16px;
}
.builder-picker-dock__label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.builder-picker-dock__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8A7868;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 22, 17, 0.04);
}
.builder-picker-dock__chips {
  gap: 10px;
}
.builder-picker-dock__chip {
  gap: 10px;
  padding: 14px 14px 12px;
  background: #FBFBFB;
  border: 1px solid rgba(31, 22, 17, 0.07);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(31, 22, 17, 0.04);
  text-align: left;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 118px;
}
.builder-picker-dock__chip:hover {
  background: #FFFFFF;
  border-color: rgba(31, 22, 17, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(31, 22, 17, 0.05),
    0 8px 18px -10px rgba(31, 22, 17, 0.12);
  transform: translateY(-1px);
}
.builder-picker-dock__chip:focus-visible {
  outline: none;
  border-color: rgba(31, 22, 17, 0.18);
  box-shadow:
    0 0 0 2px #FBFBFB,
    0 0 0 4px rgba(31, 22, 17, 0.35);
}
.builder-picker-dock__chip.is-selected {
  /* Phase 2: brand ink ring instead of the indigo-blue that was here
     from the v4 polish pass. The 1px outer ring + warm-ink border
     reads as "selected" without introducing a non-brand colour. */
  border-color: var(--ink, #1F1611);
  background: #FFFFFF;
  box-shadow:
    0 0 0 1px var(--ink, #1F1611),
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 6px rgba(31, 22, 17, 0.08);
}
.builder-picker-dock__chip.is-selected:hover {
  transform: none;
}
.builder-picker-dock__layout {
  max-width: none;
  height: 64px;
  padding: 8px;
  background: #F1F1F1;
  border: 1px solid rgba(31, 22, 17, 0.05);
  border-radius: 8px;
}
.builder-picker-dock__layout .lay-hero,
.builder-picker-dock__layout .lay-cell,
.builder-picker-dock__layout .lay-bar,
.builder-picker-dock__layout .lay-big,
.builder-picker-dock__layout .lay-small,
.builder-picker-dock__layout .lay-head,
.builder-picker-dock__layout .lay-gcell {
  background: linear-gradient(180deg, #DCD8CE 0%, #CFCBC1 100%);
  border-radius: 2px;
}
.builder-picker-dock__chip:hover .lay-hero,
.builder-picker-dock__chip:hover .lay-cell,
.builder-picker-dock__chip:hover .lay-bar,
.builder-picker-dock__chip:hover .lay-big,
.builder-picker-dock__chip:hover .lay-small,
.builder-picker-dock__chip:hover .lay-head,
.builder-picker-dock__chip:hover .lay-gcell {
  background: linear-gradient(180deg, #CFCBC1 0%, #C3BEB3 100%);
}
/* 2026-05-24 founder report: the selected tile "looks unfinished
   with the black". Was: selected state darkened the mockup shapes
   (ink gradient) AND added border + halo — combined visual was a
   heavy dark block. Drop the mockup darken; selection is now
   carried by the white bg flip + ink border alone, mockup keeps
   its calm default colour so the tile reads as a clean "picked
   card" instead of a black slab. */
.builder-picker-dock__swatch {
  height: 40px;
  border-radius: 8px;
  border-color: rgba(31, 22, 17, 0.08);
  box-shadow: 0 1px 2px rgba(31, 22, 17, 0.04);
}
.builder-picker-dock__chip-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  margin-top: 2px;
  letter-spacing: -0.005em;
}
.builder-picker-dock__chip-sub {
  font-size: 0.75rem;
  color: #8A7868;
  text-align: left;
  margin-top: 1px;
}
.builder-picker-dock__custom {
  padding: 11px 14px;
  border-radius: 12px;
  background: #FBFBFB;
  border-color: rgba(31, 22, 17, 0.07);
}
.builder-picker-dock__custom:hover {
  background: #FFFFFF;
  border-color: rgba(31, 22, 17, 0.14);
}
.builder-picker-dock__custom:focus-within {
  border-color: rgba(43, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 108, 255, 0.18);
}
.builder-picker-dock__custom.is-checked {
  border-color: #2B6CFF;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #2B6CFF;
}
.builder-picker-dock__custom input[type="radio"]:checked {
  border-color: #2B6CFF;
}
.builder-picker-dock__custom input[type="radio"]:checked::after {
  background: #2B6CFF;
}
.builder-picker-dock__foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 22, 17, 0.06);
}
.builder-picker-dock__navbtn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border-color: rgba(31, 22, 17, 0.07);
}
.builder-picker-dock__navbtn:focus-visible {
  outline: none;
  border-color: rgba(43, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 108, 255, 0.18);
}
.builder-picker-dock__skip {
  font-size: 0.8125rem;
  color: #8A7868;
  text-decoration: none;
}
.builder-picker-dock__skip:hover {
  color: #1F1611;
  background: rgba(31, 22, 17, 0.04);
}
.builder-picker-dock__skip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 108, 255, 0.18);
}
.builder-picker-dock__next {
  height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.builder-picker-dock__next.is-primary {
  /* Phase 2: brand ink replaces the indigo-blue gradient that was
     here from the v4 polish pass. The Send button in the composer
     uses var(--ink) so this primary CTA matches — same family. */
  background: linear-gradient(180deg, var(--ink-2, #2A1F17) 0%, var(--ink, #1F1611) 100%);
  border-color: var(--ink, #1F1611);
  color: var(--cream, #FAFAFA);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 1px 2px rgba(31, 22, 17, 0.18),
    0 6px 14px -6px rgba(31, 22, 17, 0.35);
}
.builder-picker-dock__next.is-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--ink, #1F1611) 0%, #0F0A07 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 2px 4px rgba(31, 22, 17, 0.22),
    0 10px 22px -8px rgba(31, 22, 17, 0.45);
  transform: translateY(-1px);
}
.builder-picker-dock__next.is-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(31, 22, 17, 0.30) inset;
}
.builder-picker-dock__next:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #FBFBFB,
    0 0 0 4px rgba(31, 22, 17, 0.35);
}

/* 2026-05-16 P3: composer prefix breadcrumbs. Compact chips inside the
   input box, above the textarea, showing the active template + palette.
   Persist across reloads via v15 templateChoice / paletteChoice fields. */
.builder-composer-prefix {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
}
.builder-composer-prefix[hidden] { display: none; }
.builder-composer-prefix__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 3px 9px;
  background: var(--cream-2, #F4F4F4);
  border: 1px solid var(--line, #E5E3DD);
  border-radius: 999px;
  color: var(--ink-soft, #5C534A);
}
.builder-composer-prefix__chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.12);
  flex: 0 0 auto;
}
