/* Operational choices share the active theme's colors and form data contract. */
body[data-theme] .choice-source{display:none}
.choice-control{min-width:0;width:100%}
body[data-theme] :is(.choice-trigger,.choice-segments button,.choice-option){font:inherit;color:var(--ui-ink,var(--ink));background:var(--ui-panel,var(--card));border:1px solid var(--ui-line,var(--line));border-radius:10px;cursor:pointer;min-height:56px;white-space:normal;overflow-wrap:anywhere}
body[data-theme] .choice-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;text-align:left}
.choice-trigger span:first-child{min-width:0}.choice-trigger small{display:block;font-size:12px;margin-bottom:4px}.choice-trigger strong{font-size:16px;line-height:1.4}
.choice-segments{display:flex;flex-wrap:wrap;gap:8px}
body[data-theme] .choice-segments button{flex:1 1 90px;padding:12px;font-size:16px}
body[data-theme] :is(.choice-segments button,.choice-option)[aria-checked=true]{border:2px solid var(--ui-accent,#237b79);box-shadow:inset 0 0 0 1px var(--ui-accent,#237b79);font-weight:700}
body[data-theme] :is(.choice-trigger,.choice-segments button,.choice-option):disabled{opacity:.55;cursor:not-allowed}
.choice-backdrop{position:fixed;inset:0;z-index:70;background:#071c2499;display:flex;flex-direction:column;align-items:flex-end}
.choice-backdrop>#operationStatus{width:100%;flex:none;max-height:32dvh;position:relative;top:0}
.choice-panel{display:flex;flex-direction:column;flex:1;min-height:0;width:min(540px,100%);background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink));padding:20px;box-shadow:-8px 0 40px #0002}
.choice-panel header{display:flex;justify-content:space-between;align-items:center;gap:16px}.choice-panel h2{font-size:24px;margin:4px 0}.choice-panel .btn{min-height:48px}
.choice-current{margin:16px 0;line-height:1.5;overflow-wrap:anywhere;max-height:12dvh;overflow:auto;font-size:15px}
.choice-search-label{font-size:14px;margin-bottom:8px;font-weight:600}
body[data-theme] .choice-panel input{width:100%;min-height:52px;flex:none;font-size:16px;padding:12px;border:1px solid var(--ui-line,var(--line));border-radius:8px;background:var(--ui-panel,var(--card));color:var(--ui-ink,var(--ink))}
.choice-count{font-size:13px;margin:10px 0;flex:none}
.choice-options{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding:4px;flex:1}
body[data-theme] .choice-options .choice-option{width:100%;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;padding:16px;min-height:76px;font-size:17px;line-height:1.4}
.choice-mark{width:24px;flex:none;font-size:24px}.choice-empty{padding:16px;font-size:16px;line-height:1.5}
.choice-panel footer{padding-top:12px;flex:none;line-height:1.4}.choice-feedback{margin:0 0 8px;font-size:14px}.choice-panel footer .btn{width:100%}.choice-panel footer small{font-size:13px}
@media(max-width:700px){.choice-panel{width:100%;padding:16px}.choice-panel h2{font-size:22px}.choice-panel header .btn{min-width:80px}.choice-current{margin:12px 0}.choice-backdrop>#operationStatus{max-height:28dvh}}
.choice-panel footer [data-choice-clear]{margin-bottom:8px}
