.bh-picker-field,.bh-picker-overlay{--bh-picker-accent:var(--c-primary,#ff8595)}
#section-calendar .bh-picker-field,.bh-picker-overlay.bh-picker-calendar{--bh-picker-accent:var(--bh-event-color,#73c8ff)}
.bh-picker-field{position:relative;min-width:0;width:100%}
.bh-picker-field .bh-picker-source{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;padding:0!important;inset:0;min-height:0!important}
:root .bh-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:12px 14px;border:0;border-radius:8px;background:var(--c-input-bg,#242838);color:var(--c-text,#f3f4fa);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.bh-picker-trigger.is-empty{color:var(--c-text-muted,#9caac0)}
.bh-picker-trigger i{color:var(--bh-picker-accent)}
.bh-picker-trigger:disabled{opacity:.5;cursor:default}
.bh-picker-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(5,8,16,.72);backdrop-filter:blur(4px)}
.bh-picker{box-sizing:border-box;width:380px;max-width:100%;max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border-radius:16px;background:var(--c-bg-surface,#202331);color:var(--c-text,#f3f4fa);box-shadow:0 20px 70px #0005;font-size:13px}
.bh-picker header,.bh-picker header>div{display:flex;align-items:center;gap:12px}
.bh-picker header{justify-content:space-between;margin-bottom:24px}
.bh-picker h3{margin:0;font-size:18px;font-weight:800}
.bh-picker header i{font-size:22px;color:var(--bh-picker-accent)}
.bh-picker button,.bh-picker select,.bh-picker input{font:inherit;color:inherit;border:0;box-sizing:border-box}
.bh-picker button{cursor:pointer}
:root .bh-picker .bh-picker-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px!important;min-width:32px!important;max-width:32px;height:32px!important;min-height:32px!important;padding:0!important;aspect-ratio:1;border-radius:50%;background:var(--c-input-bg,#242838);color:var(--c-text-muted)!important;font-size:22px!important;line-height:1}
.bh-picker-month{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.bh-picker-month>div{display:flex;gap:6px;min-width:0}
.bh-picker-month select,.bh-picker-month input{background:var(--c-input-bg,#242838);padding:8px;border-radius:8px;min-width:0;height:40px;font-weight:700}
.bh-picker-month input{width:78px}
.bh-picker-month>button{width:36px;height:40px;border-radius:8px;background:transparent;font-size:26px;color:var(--bh-picker-accent)}
.bh-picker-weekdays,.bh-picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.bh-picker-weekdays{margin-bottom:8px;color:var(--c-text-muted);font-size:11px;font-weight:700}
.bh-picker-days button{height:40px;padding:0;border-radius:8px;background:transparent;font-weight:700}
.bh-picker-days button.is-other{color:var(--c-text-muted);opacity:.5}
.bh-picker-days button.is-today{box-shadow:inset 0 0 0 1px var(--bh-picker-accent)}
.bh-picker-days button.is-selected{background:var(--bh-picker-accent);color:var(--c-bg-surface);opacity:1}
.bh-picker button:hover:not(:disabled):not(.is-selected):not(.is-primary){background:var(--c-input-bg,#242838)}
.bh-picker button:disabled{opacity:.25;cursor:default}
.bh-picker footer{display:flex;gap:10px;justify-content:space-between;margin-top:22px}
.bh-picker footer button{min-height:44px;flex:1;border-radius:8px;padding:10px 14px;font-weight:700;background:var(--c-input-bg,#242838);color:var(--c-text-secondary)}
.bh-picker footer button.is-primary{background:var(--bh-picker-accent);color:var(--c-bg-surface,#202331)}
.bh-picker-time{display:flex;align-items:center;justify-content:center;gap:14px}
.bh-time-column{display:grid;gap:10px;flex:1;min-width:0;text-align:center;color:var(--c-text-muted);font-weight:700}
.bh-time-wheel-shell{position:relative;border-radius:12px;background:var(--c-input-bg,#242838);overflow:hidden}
.bh-time-wheel-shell::before{content:"";position:absolute;top:88px;left:8px;right:8px;height:44px;border-radius:8px;background:color-mix(in srgb,var(--bh-picker-accent) 14%,transparent);pointer-events:none}
.bh-time-wheel{position:relative;height:220px;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none;mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent)}
.bh-time-wheel::-webkit-scrollbar{display:none}
.bh-time-wheel-values{padding:88px 0}
.bh-time-wheel-item{height:44px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;color:var(--c-text-muted);font-size:24px;font-weight:600;cursor:pointer;user-select:none}
.bh-time-wheel-item.is-current{color:var(--bh-picker-accent);font-size:30px;font-weight:800}
.bh-time-wheel:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--bh-picker-accent);border-radius:12px}
.bh-picker-time b{font-size:28px;padding-top:22px;color:var(--bh-picker-accent)}
.bh-picker-hint{text-align:center;color:var(--c-text-muted);margin:16px 0 0;font-size:12px}
.bh-picker :is(button,select,input):focus-visible,.bh-picker-trigger:focus-visible{outline:2px solid var(--bh-picker-accent);outline-offset:3px}
@media(max-width:480px){.bh-picker-overlay{padding:12px;align-items:flex-end}.bh-picker{width:100%;padding:20px;max-height:calc(100dvh - 24px)}.bh-picker-days button{height:44px}}

/* Date and time popups follow the approved modal shell and spacing. */
:root .bh-picker-overlay .bh-picker{width:420px;padding:24px;border-radius:16px;background:var(--c-bg-card);scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--c-text-muted) 30%,var(--c-bg-card)) transparent}
:root .bh-picker-overlay .bh-picker header{margin-bottom:20px;gap:12px}
:root .bh-picker-overlay .bh-picker h3{font-size:20px;line-height:1.35}
:root .bh-picker-overlay .bh-picker header i{font-size:24px}
:root .bh-picker-overlay .bh-picker .bh-picker-close{flex:0 0 36px;width:36px!important;min-width:36px!important;max-width:36px;height:36px!important;min-height:36px!important;background:var(--survey-card-surface,var(--c-bg-surface));color:var(--c-text-muted)!important}
:root .bh-picker-overlay .bh-picker-close svg{display:block;width:16px;height:16px;margin:0}
:root .bh-picker-overlay .bh-picker-body{padding:16px;border-radius:10px;background:var(--survey-card-surface,var(--c-bg-surface))}
:root .bh-picker-overlay .bh-picker-month{margin-bottom:16px;gap:8px}
:root .bh-picker-overlay .bh-picker-month>button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;padding:0;border-radius:8px;background:var(--c-bg-surface-dark);color:var(--c-text-secondary);font-size:24px;line-height:1}
:root .bh-picker-overlay .bh-picker-month select,:root .bh-picker-overlay .bh-picker-month input{height:36px;background:var(--c-bg-surface-dark);font-size:13px}
:root .bh-picker-overlay .bh-picker-weekdays{margin-bottom:8px}
:root .bh-picker-overlay .bh-picker-days{grid-template-rows:repeat(6,44px);gap:5px}
:root .bh-picker-overlay .bh-picker-days button{height:44px;background:transparent;font-size:13px;border-radius:8px}
:root .bh-picker-overlay .bh-picker-days button.is-today{box-shadow:inset 0 0 0 2px var(--c-success)}
:root .bh-picker-overlay .bh-picker-days button.is-selected{background:var(--c-success);color:#fff;opacity:1}
:root .bh-picker-overlay .bh-picker footer{margin-top:16px;gap:10px}
:root .bh-picker-overlay .bh-picker footer button{min-height:44px;border-radius:8px;background:var(--c-danger);color:#fff}
:root .bh-picker-overlay .bh-picker footer button.is-primary{background:var(--c-success);color:#fff}
:root .bh-picker-overlay .bh-picker footer button:hover:not(:disabled){filter:brightness(1.06);background:var(--c-danger)}
:root .bh-picker-overlay .bh-picker footer button.is-primary:hover:not(:disabled){background:var(--c-success)}
:root .bh-picker-time-mode .bh-time-column{gap:8px;font-size:12px}
:root .bh-picker-time-mode .bh-picker-time{gap:12px}
:root .bh-picker-time-mode .bh-time-wheel-shell{background:var(--c-bg-surface-dark);border-radius:8px}
:root .bh-picker-time-mode .bh-time-wheel-shell::before{background:color-mix(in srgb,var(--c-success) 14%,transparent)}
:root .bh-picker-time-mode .bh-time-wheel-item.is-current{color:var(--c-success)}
:root .bh-picker-time-mode .bh-picker-hint{margin:16px 0 0;font-size:11px}
@media(max-width:480px){:root .bh-picker-overlay .bh-picker{width:100%;padding:20px}:root .bh-picker-overlay .bh-picker-body{padding:16px}:root .bh-picker-overlay .bh-picker h3{font-size:18px}}
@media(max-width:360px){:root .bh-picker-overlay .bh-picker-body{padding:12px}:root .bh-picker-overlay .bh-picker-month input{width:62px}:root .bh-picker-overlay .bh-picker-month select{max-width:96px}}
:root .bh-picker-overlay .bh-picker-month-label{flex:1;min-width:0;text-align:center;font-size:13px;font-weight:800}
/* Time wheels use blue selection; confirmation remains green. */
:root .bh-picker-time-mode{--bh-picker-accent:var(--bh-event-color,#73c8ff)}
:root .bh-picker-time-mode .bh-time-wheel-shell::before{background:color-mix(in srgb,var(--bh-picker-accent) 14%,transparent)}
:root .bh-picker-time-mode .bh-time-wheel-item.is-current{color:var(--bh-picker-accent)}
:root .bh-picker-time-mode .bh-time-wheel{height:220px;max-height:220px;overflow-y:scroll;touch-action:pan-y}
/* Native momentum scrolls freely; the idle handler aligns the final value. */
:root .bh-picker-time-mode .bh-time-wheel{scroll-snap-type:none}
