/* Shared paper-and-ink controls. Native values remain available to forms. */
.choice-control {position:relative;display:inline-flex;min-width:0;max-width:100%;vertical-align:middle;}
.field>.choice-control,.grid-2>.choice-control,.filter-field>.choice-control {display:flex;width:100%;}
.choice-native {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap;border:0!important;}
.choice-trigger {display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:42px;width:100%;padding:10px 14px;border:1px solid transparent;border-radius:12px;background:var(--raised);color:var(--ink);font:inherit;font-size:13px;text-align:left;line-height:1.4;transition:background .16s,border-color .16s;}
.choice-trigger:hover {background:color-mix(in srgb,var(--raised) 80%,var(--line));}
.choice-trigger[aria-expanded="true"] {background:var(--accent-soft);color:var(--on-accent-soft);border-color:transparent;}
.choice-trigger[aria-invalid="true"] {border-color:var(--danger);}
.choice-value {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.choice-trigger>svg {width:16px;height:16px;color:var(--muted);transition:transform .15s;}
.choice-trigger[aria-expanded="true"]>svg {transform:rotate(180deg);color:inherit;}
.control-menu {position:fixed;z-index:1400;padding:6px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);box-shadow:0 16px 44px #0002;font-size:13px;animation:control-appear .14s ease-out;scrollbar-width:thin;scrollbar-color:var(--line) transparent;}
.choice-option {position:relative;display:flex;align-items:center;min-height:40px;padding:10px 34px 10px 12px;line-height:1.4;border-radius:9px;cursor:pointer;overflow-wrap:anywhere;}
.choice-option[aria-selected="true"] {color:var(--accent);font-weight:550;}
.choice-option[aria-selected="true"]::after {content:"";position:absolute;right:14px;width:5px;height:9px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);}
.choice-option.is-highlighted {background:var(--accent-soft);color:var(--on-accent-soft);}
.choice-option[aria-disabled="true"] {opacity:.42;cursor:not-allowed;}
.choice-group {padding:8px 12px 4px;font-size:11px;color:var(--muted);}
.date-control {display:inline-flex;align-items:center;min-width:0;min-height:42px;max-width:100%;background:var(--raised);border:1px solid transparent;border-radius:12px;transition:border-color .16s;}
.date-control:focus-within {border-color:var(--accent);}
.date-control>input.input {min-width:0;min-height:40px;width:140px;margin:0;padding:10px 4px 10px 13px;background:transparent;border:0;border-radius:12px;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;outline-offset:2px;color:var(--ink);}
.date-control>input::-webkit-calendar-picker-indicator {display:none;}
.date-trigger {display:grid;place-items:center;width:35px;height:36px;flex:none;margin-right:3px;border:0;border-radius:9px;background:transparent;color:var(--muted);}
.date-trigger:hover,.date-trigger[aria-expanded="true"] {background:var(--accent-soft);color:var(--on-accent-soft);}
.date-trigger>svg {width:17px;height:17px;}
.calendar-menu {padding:12px;}
.calendar-heading {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;}
.calendar-heading strong {font-size:13px;font-weight:550;}
.calendar-month-step {width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-size:22px;line-height:1;}
.calendar-month-step:hover {background:var(--raised);}
.calendar-week,.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;}
.calendar-week {margin:0 0 5px;color:var(--muted);font-size:10px;}
.calendar-week span {padding:6px 0;}
.calendar-day {position:relative;min-height:33px;padding:5px 1px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums;}
.calendar-day.outside {color:var(--muted);opacity:.5;}
.calendar-day:hover:not(:disabled) {background:var(--raised);}
.calendar-day[aria-pressed="true"] {background:var(--accent)!important;color:var(--on-accent)!important;opacity:1;}
.calendar-day.today::after {content:"";position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor;left:calc(50% - 1.5px);bottom:3px;}
.calendar-footer {display:flex;justify-content:space-between;padding-top:9px;margin-top:9px;border-top:1px solid var(--line);}
.calendar-text {min-height:32px;padding:5px 9px;background:transparent;border:0;border-radius:8px;color:var(--accent);font-size:12px;}
.calendar-text:hover {background:var(--raised);}
input[type="checkbox"],input[type="radio"] {accent-color:var(--accent);}
@keyframes control-appear {from {opacity:0;transform:translateY(-4px);}to {opacity:1;transform:translateY(0);}}
@media(max-width:600px) {.choice-trigger{min-height:44px;gap:12px;}.choice-option{min-height:44px;}.date-control{min-height:44px;}.date-control>input.input{width:130px;}.calendar-day{min-height:35px;}}
@media(prefers-reduced-motion:reduce) {.control-menu{animation:none;}.choice-trigger,.choice-trigger>svg,.date-control{transition:none;}}
