.choice-control { display: inline-flex; min-width: 0; max-width: 100%; position: relative; vertical-align: middle; }
.field .choice-control { display: flex; width: 100%; }
.choice-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0; pointer-events: none; }
.choice-trigger { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 44px; border: 1px solid #bcdde8; border-radius: 12px; padding: 10px 12px; color: var(--ink); background: linear-gradient(150deg,#fff,#f3fbfd); text-align: left; font-weight: 600; font-size: 14px; box-shadow: 0 2px 5px #2786aa06; }
.choice-trigger>span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.choice-trigger .icon { width: 17px; height: 17px; color: #288cab; }
.choice-trigger[aria-expanded="true"] { border-color: #39bada; box-shadow: 0 0 0 3px #2ab4db14; }
.choice-trigger.is-empty { color: var(--muted); font-weight: 400; }
.choice-trigger:disabled { color: #71838e; background: #edf2f5; }
.group-switcher .choice-control { flex: 1; }
.language-control .choice-trigger { min-height: 34px; padding: 4px 7px; border-color: transparent; background: transparent; color: #24576f; font-size: 12px; font-weight: 750; box-shadow: none; }
.language-control .choice-trigger .icon { color: #287a95; }
.language-control .choice-trigger:hover,.language-control .choice-trigger[aria-expanded="true"] { background: #e5f5fb; color: #174f69; border-color: #9ed9e8; }
.task-page-size .choice-trigger { font-size: 12px; min-height: 40px; }
.admin-search .choice-control { flex: 0 1 190px; }
.moderation-live-search .choice-control { flex: 0 1 260px; }
.moderation-review-filter .choice-control { flex: 1; }
.choice-dialog { position: fixed; inset: 0; margin: auto; width: 400px; max-height: min(680px, calc(100vh - 32px)); max-height: min(680px, calc(100dvh - 32px)); max-width: calc(100vw - 32px); border: 1px solid #b6dfeb; border-radius: 20px; background: #fff; color:var(--ink); padding: 18px; overflow: auto; overscroll-behavior: contain; }
.choice-dialog::backdrop { background: #214c6338; backdrop-filter: blur(2px); }
.choice-dialog.is-select { max-height: min(560px,calc(100vh - 32px)); max-height: min(560px,calc(100dvh - 32px)); padding: 16px; border-radius: 20px; transform-origin: center; }
.choice-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.choice-heading h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.choice-heading .close-button { width: 38px; height: 38px; min-width: 38px; border-radius: 11px; }
.choice-search { width: 100%; min-height: 44px; border: 1px solid #c3dfe9; border-radius: 12px; padding: 10px 12px; margin-bottom: 9px; background: #f6fbfd; }
.choice-options { display: flex; flex-direction: column; gap: 5px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.choice-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; min-height: 46px; padding: 11px 12px; border-radius: 11px; background: white; color: var(--ink); font-size: 14px; }
.choice-option[aria-selected="true"] { color: #057c9a; background: linear-gradient(100deg,#e7f6ff,#e5fbf1); font-weight: 700; box-shadow: inset 0 0 0 1px #b4e3e7; }
.choice-option:not(:disabled):hover { background: #eef9fc; }
.choice-option .icon { width: 17px; height: 17px; }
.choice-option-group { color: var(--muted); font-size: 11px; font-weight: 700; padding: 8px 12px 2px; }
.choice-empty, .choice-error { margin: 8px 0; font-size: 12px; color: var(--muted); }
.choice-error { color: #aa3e32; }
.calendar-toolbar { display: flex; align-items: center; gap: 6px; margin: 8px 0 14px; }
.calendar-toolbar button { min-height: 44px; padding: 8px 10px; border-radius: 11px; background: #eff8fc; color: var(--accent); }
.calendar-toolbar .calendar-nav { width: 44px; display: grid; place-items: center; padding: 0; }
.calendar-toolbar .calendar-next .icon { transform: rotate(180deg); }
.calendar-toolbar .calendar-month { flex: 1; font-weight: 700; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.calendar-week { margin-bottom: 5px; }
.calendar-week span { text-align: center; color: var(--muted); font-size: 11px; padding: 6px 0; }
.calendar-day { min-height: 44px; border-radius: 11px; font-variant-numeric: tabular-nums; background: #fff; font-size: 14px; }
.calendar-day.other-month { color: #748997; }
.calendar-day.is-today { box-shadow: inset 0 0 0 1px #8fd4e4; color: #0088a4; font-weight: 700; }
.calendar-day[aria-selected="true"] { background: var(--gradient); color: white; font-weight: 750; box-shadow: 0 3px 8px #2fb4c333; }
.calendar-day:disabled { background: transparent; color: #b4c3cb; }
.calendar-view-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; max-height: 340px; overflow: auto; }
.calendar-view-options button { min-height: 48px; background: #edf8fc; border-radius: 12px; padding: 9px; color: var(--accent); }
.clock-preview { font-size: 34px; font-weight: 700; text-align: center; color: #078ba6; font-variant-numeric: tabular-nums; margin: 7px 0 15px; }
.clock-columns { display: flex; gap: 12px; }
.clock-column { flex: 1; min-width: 0; }
.clock-label { display: block; text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.clock-list { max-height: 240px; overflow: auto; overscroll-behavior: contain; border: 1px solid #daebf1; background: #f8fcfe; border-radius: 14px; padding: 5px; }
.clock-list button { min-height: 44px; width: 100%; border-radius: 10px; background: transparent; font-size: 17px; font-variant-numeric: tabular-nums; }
.clock-list button[aria-selected="true"] { background: linear-gradient(100deg,#dff3ff,#dff8ed); color: #087d99; font-weight: 750; }
.choice-footer { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.choice-footer button { min-height: 44px; padding: 10px 12px; border-radius: 11px; background: #edf8fc; color: var(--accent); font-size: 13px; }
.choice-footer .primary-button { flex: 1; background: var(--gradient); color: white; }
.choice-footer .primary-button:disabled { background: #edf2f5; color: #71838e; }
.choice-date-tabs { display: flex; gap: 6px; padding: 4px; background: #edf6fa; border-radius: 12px; margin-bottom: 12px; }
.choice-date-tabs button { flex: 1; min-height: 42px; border-radius: 9px; background: transparent; color: var(--muted); }
.choice-date-tabs button[aria-selected="true"] { background: white; color: var(--accent); font-weight: 700; box-shadow: 0 2px 6px #338cad12; }
@media (max-width: 600px) {
  .choice-dialog { padding: 15px; }
  .choice-dialog.is-select { width: min(400px,calc(100vw - 32px)); max-height: min(70vh,560px); max-height: min(70dvh,560px); border-radius: 22px; padding: 16px; }
  .choice-options { max-height: 45vh; max-height: 45dvh; }
  .choice-option { min-height: 48px; }
  .admin-search .choice-control { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .choice-dialog { transition: none; } }
