/* ── Pick dropdown: a pick-one list that drops a menu (pick.js) ──────────── */
/* A labelled button showing the pick; tap it and the menu pops open under it
   (or over it when the room below is short), the pick marked in accent. */
.pick { position: relative; display: inline-flex; flex-direction: column; gap: 0.2rem; min-width: 7rem; max-width: 12rem; }
.pick--wide { display: flex; width: 100%; max-width: none; }
.pick-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.pick-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    width: 100%; min-height: 44px; padding: 0.5rem 0.65rem; box-sizing: border-box;
    background: var(--bg-input, var(--bg-card)); color: var(--text-strong, var(--text));
    border: 1px solid var(--border); border-radius: var(--radius, 8px);
    font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; cursor: pointer;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.pick-btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.pick-btn:active { transform: scale(0.985); }
.pick-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick.is-open .pick-btn {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft, rgba(79, 140, 255, 0.18));
}
.pick-face { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.pick-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-face .status-dot, .pick-opt .status-dot { width: 10px; height: 10px; flex: none; }
/* The chevron: a stroked V that turns over while the menu is open. */
.pick-chev {
    flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.15rem;
    border-right: 2px solid var(--text-muted, currentColor); border-bottom: 2px solid var(--text-muted, currentColor);
    transform: translateY(-2px) rotate(45deg); transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pick.is-open .pick-chev { transform: translateY(2px) rotate(225deg); border-color: var(--accent); }

/* The menu: fixed by pick.js from the button, so no panel clips it. Pops in
   from the button's edge with a little lift. */
.pick-menu {
    z-index: 1200; overflow-y: auto; overscroll-behavior: contain; padding: 0.3rem; box-sizing: border-box;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.18)), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform-origin: top center;
    animation: pick-pop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pick--up .pick-menu { transform-origin: bottom center; }
.pick-menu[hidden] { display: none; }
@keyframes pick-pop {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.pick--up .pick-menu { animation-name: pick-pop-up; }
@keyframes pick-pop-up {
    from { opacity: 0; transform: translateY(6px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.pick-opt {
    display: flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0.45rem 0.7rem;
    border-radius: var(--radius, 8px); font-size: 0.9rem; color: var(--text); cursor: pointer; white-space: nowrap;
    transition: background 0.1s;
}
.pick-opt:hover, .pick-opt.is-hilite { background: var(--bg-hover); }
.pick-opt.is-picked { font-weight: 700; color: var(--text-strong, var(--text)); background: var(--accent-soft, rgba(79, 140, 255, 0.10)); }
.pick-opt.is-picked.is-hilite, .pick-opt.is-picked:hover { background: color-mix(in srgb, var(--accent) 22%, var(--bg-card)); }
/* The pick wears a tick at the end of its row. */
.pick-opt.is-picked::after {
    content: ''; margin-left: auto; width: 0.4rem; height: 0.7rem; flex: none;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px);
}
@media (prefers-reduced-motion: reduce) {
    .pick-menu, .pick--up .pick-menu { animation: none; }
    .pick-chev, .pick-btn { transition: none; }
}
/* The page reads the pick from this select; it is never seen. */
.pick-select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
