/* triage-deck.css — the one-at-a-time deck (js/triage-deck.js, 2026-10-02).
   Theme tokens only; thumb-sized controls; the bar sits under the thumb. */
.deck-overlay { position: fixed; inset: 0; z-index: var(--z-overlay-top, 10001); display: none; background: rgba(0, 0, 0, .6); }
.deck-overlay.open { display: flex; align-items: stretch; justify-content: center; }
html.deck-locked, html.deck-locked body { overflow: hidden; }
.deck-shell { display: flex; flex-direction: column; width: 100%; max-width: 520px; height: 100%; background: var(--bg, #0d1117); color: var(--t, #e8eaf0);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.deck-title { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.deck-progress { font-size: 13px; color: var(--m, #8b8e96); margin-top: 2px; }
.deck-btn { min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--br, #2a2f35); background: var(--s2, #181c22);
  color: var(--t, #e8eaf0); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.deck-btn:disabled { opacity: .5; cursor: default; }
.deck-btn:focus-visible { outline: 2px solid var(--orange, #BD5728); outline-offset: 2px; }
.deck-close { min-width: 48px; padding: 0; }
.deck-stage { flex: 1; min-height: 0; display: flex; align-items: stretch; position: relative; overflow: hidden; }
.deck-card { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px; border-radius: 16px;
  background: var(--s, #111418); border: 1px solid var(--br, #2a2f35); box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  touch-action: pan-y; user-select: none; transition: transform .18s ease, opacity .18s ease; }
.deck-card.deck-out-right { transform: translateX(120%) rotate(8deg); opacity: 0; }
.deck-card.deck-out-left { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
.deck-hint { position: absolute; top: 14px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; opacity: 0; transition: opacity .1s; pointer-events: none; }
.deck-hint-right { left: 14px; color: var(--green, #2ECC8A); border: 2px solid var(--green, #2ECC8A); }
.deck-hint-left { right: 14px; color: var(--m, #8b8e96); border: 2px solid var(--m, #8b8e96); }
.deck-lean-right .deck-hint-right, .deck-lean-left .deck-hint-left { opacity: 1; }
.deck-empty { align-items: center; justify-content: center; text-align: center; font-size: 17px; font-weight: 700; }
.deck-empty-icon { font-size: 48px; color: var(--green, #2ECC8A); }
.deck-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.deck-more[hidden] { display: none; }
.deck-opt-primary { border-color: var(--orange, #BD5728); }
.deck-bar { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 10px; margin-top: 12px; }
.deck-bar .deck-btn { min-height: 56px; }
.deck-bar .deck-btn[hidden] { display: none; }
.deck-dots { min-width: 56px; font-size: 22px; }
.deck-right { background: var(--green, #2ECC8A); border-color: var(--green, #2ECC8A); color: #0b1a12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-foot { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 6px; }
.deck-undo { min-height: 44px; }
.deck-undo[hidden] { display: none; }
.deck-status { font-size: 13px; color: var(--m, #8b8e96); }

/* Card contents shared by decks. */
.deck-name { font-size: 22px; font-weight: 800; line-height: 1.2; }
.deck-sub { font-size: 14px; color: var(--m, #8b8e96); line-height: 1.4; }
.deck-big { font-size: 17px; font-weight: 700; line-height: 1.4; }
.deck-why { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: var(--s2, #181c22); }
.deck-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--orange, #BD5728); color: var(--accent-fg, #fff); }
.deck-link { color: var(--orange, #BD5728); font-weight: 700; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

/* The follow-up list's entry button (crm-pipeline.js _renderFollowUpRows). */
.fa-deck { display: block; width: 100%; min-height: 44px; margin: 0 0 8px; border-radius: 8px; border: 1px solid var(--orange, #BD5728); background: transparent; color: var(--orange, #BD5728); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
