/* CONTRACT: selection-actions.CONTRACT.md (L742) — the bulk tag sheet (frontend/shared/bulk-tags.js), one look on every
   surface: the studio's dark sheet, a bottom sheet on a phone and a centred card on a wide screen; compact chips, the
   one gold accent on what is on all of the selection. */
.bt-root {
  --bt-sheet: var(--pp-studio-sheet, #1c1c20);
  --bt-raised: var(--pp-studio-raised, #222227);
  --bt-line: var(--pp-studio-line, rgba(255, 255, 255, 0.10));
  --bt-ink: var(--pp-studio-ink, #ece8de);
  --bt-ink-soft: rgba(236, 232, 222, 0.62);
  --bt-gold: var(--gold, #e8b64c);
  position: fixed; inset: 0; z-index: 10070; font-family: var(--sans, system-ui, -apple-system, sans-serif);
}
.bt-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); cursor: pointer; }   /* a tap outside closes — iOS sends it as a click only to a pointer target (L774) */
.bt-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto;
  background: var(--bt-sheet); color: var(--bt-ink); border-top: 1px solid var(--bt-line);
  border-radius: 18px 18px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 720px) {
  .bt-sheet { left: 50%; right: auto; bottom: auto; top: 14vh; transform: translateX(-50%); width: 480px;
              border-radius: 16px; border: 1px solid var(--bt-line); }
}
.bt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bt-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.bt-x { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--bt-line); background: var(--bt-raised);
        color: var(--bt-ink); font-size: 16px; cursor: pointer; }
.bt-field { position: relative; margin-bottom: 14px; }
.bt-input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border-radius: 12px;
            border: 1px solid var(--bt-line); background: var(--bt-raised); color: var(--bt-ink); font-size: 16px; }
.bt-input::placeholder { color: var(--bt-ink-soft); }
.bt-input:focus { outline: none; border-color: var(--bt-gold); }
.bt-row { display: flex; gap: 8px; align-items: stretch; }
.bt-row .bt-input { flex: 1 1 auto; min-width: 0; }
.bt-add { flex: 0 0 auto; min-height: 46px; min-width: 64px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 700;
          border: 1px solid var(--bt-gold); background: var(--bt-gold); color: #1a1408; cursor: pointer; }
.bt-add:disabled { border-color: var(--bt-line); background: var(--bt-raised); color: var(--bt-ink-soft); cursor: default; }
.bt-foot { margin-top: 14px; }
.bt-done { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--bt-line); background: var(--bt-raised);
           color: var(--bt-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.bt-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bt-suggest:empty { display: none; }
.bt-sug { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px dashed var(--bt-line);
          background: transparent; color: var(--bt-ink); font-size: 14px; cursor: pointer; }
.bt-sug-n { color: var(--bt-ink-soft); font-size: 12px; margin-left: 4px; }
.bt-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bt-ink-soft);
            margin: 4px 0 8px; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 20px;
           border: 1px solid var(--bt-line); background: var(--bt-raised); color: var(--bt-ink); font-size: 14px; cursor: pointer; }
.bt-chip-count { font-size: 12px; color: var(--bt-ink-soft); font-variant-numeric: tabular-nums; }
.bt-chip.is-all { border-color: var(--bt-gold); }
.bt-chip.is-all .bt-chip-count { color: var(--bt-gold); }
.bt-empty { font-size: 13px; color: var(--bt-ink-soft); }
.bt-notes { margin-top: 12px; font-size: 12px; color: var(--bt-ink-soft); }
.bt-notes:empty { display: none; }
.bt-say { margin-top: 10px; min-height: 18px; font-size: 13px; color: var(--bt-ink-soft); }
.bt-say.is-err { color: #ff9d9d; }
.bt-root.is-busy .bt-chips, .bt-root.is-busy .bt-suggest { opacity: 0.55; pointer-events: none; }
