:root{--field-gap:10px;--row-gap:22px;--action-gap:14px;--section-gap:28px;--field-height:48px;--field-line:#cbd4c1;--field-muted:#58634f;--field-error:#9b352b}
.control-native[hidden]{display:none!important}
.form-control{display:block;min-width:0;width:100%}
.field-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:var(--field-height);padding:12px 14px;background:#fff;border:1px solid var(--field-line);border-radius:10px;text-align:left;font-size:16px;line-height:1.5;color:var(--ink)}
.field-trigger .field-value,.manual-form label .field-trigger .field-value{font-size:inherit;line-height:inherit;color:inherit}
.field-value{min-width:0;overflow-wrap:anywhere}
.field-symbol{display:flex;align-items:center;flex:none;color:var(--green)}
.field-symbol svg,.control-close svg,.calendar-month svg{width:20px;height:20px}
.field-trigger:hover:not(:disabled){background:#f7faf1;border-color:#9aaa87}
.field-trigger[aria-expanded=true]{border-color:var(--green);background:#f3f8e9}
.field-trigger:disabled{background:#f0f2ed;color:#68715e;opacity:.65}
.field-trigger[aria-invalid=true],.drawn-field[aria-invalid=true]{border-color:var(--field-error)}
.field-error{margin:8px 0 0;color:var(--field-error);font-size:14px;line-height:1.5}
.drawn-field:not([type=checkbox]):not([type=radio]):not([type=range]){appearance:none;-webkit-appearance:none;width:100%;min-height:var(--field-height);border:1px solid var(--field-line);border-radius:10px;background:#fff;color:var(--ink);padding:12px 14px;font-size:16px;line-height:1.5;caret-color:var(--green)}
.drawn-field::placeholder{color:#626c58;opacity:1}
.drawn-field:disabled{background:#f0f2ed;opacity:.65}
.drawn-field[type=number]{appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}
.drawn-field::-webkit-inner-spin-button,.drawn-field::-webkit-outer-spin-button{appearance:none;-webkit-appearance:none;margin:0}
textarea.drawn-field{min-height:130px;resize:vertical}
.drawn-field[type=checkbox],.drawn-field[type=radio]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;flex:0 0 22px;width:22px!important;height:22px;min-height:22px!important;padding:0!important;margin:0;border:1.5px solid #82966e;background:#fff;vertical-align:middle;cursor:pointer}
.drawn-field[type=checkbox]{border-radius:5px}
.drawn-field[type=radio]{border-radius:50%}
.drawn-field[type=checkbox]:checked,.drawn-field[type=radio]:checked{border-color:var(--green);background:var(--green)}
.drawn-field[type=checkbox]:checked:before{content:'';width:11px;height:6px;border-left:2px solid white;border-bottom:2px solid white;transform:rotate(-45deg) translateY(-1px)}
.drawn-field[type=radio]:checked:before{content:'';width:8px;height:8px;background:white;border-radius:50%}
.drawn-field[type=checkbox]:disabled,.drawn-field[type=radio]:disabled{opacity:.45;cursor:default}
.drawn-field[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:48px;min-height:48px;padding:0;border:0;background:transparent;cursor:pointer}
.drawn-field[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:8px;background:linear-gradient(to right,var(--green) var(--range-progress),#dce4d2 var(--range-progress))}
.drawn-field[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:var(--green);border:3px solid white;box-shadow:0 2px 5px #26302626;margin-top:-9px}
.drawn-field[type=range]::-moz-range-track{height:6px;border-radius:8px;background:#dce4d2}
.drawn-field[type=range]::-moz-range-progress{height:6px;border-radius:8px;background:var(--green)}
.drawn-field[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--green);border:3px solid white;box-shadow:0 2px 5px #26302626}
.profile-preferences{display:grid;gap:24px;max-width:640px;margin:28px 0 32px}
.profile-preferences>label{display:grid;gap:var(--field-gap);font-size:15px;line-height:1.5}
.profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--action-gap)}
.profile-actions>.button,.profile-actions>.text-button{min-height:48px;font-size:14px;white-space:normal;margin:0;padding:12px 16px}
.settings-grid{gap:24px;margin-top:32px;align-items:start}
.settings-section{min-width:0;padding:26px}
.settings-section>.field-label{font-size:15px;line-height:1.5;color:var(--field-muted);margin:22px 0 10px}
.settings-section>p{margin-bottom:24px;line-height:1.65;color:var(--field-muted)}
.settings-section>label:has(.form-control){display:grid;gap:var(--field-gap);margin:24px 0;font-size:15px}
.settings-section>.button,.settings-section>.text-button{min-height:48px;margin:12px 12px 0 0;font-size:14px;white-space:normal}
.time-row{display:grid;grid-template-columns:minmax(0,1fr) 132px 44px;gap:10px;padding:16px 0;align-items:center;font-size:14px}
.time-row>.form-control{display:block;min-width:0}
.time-row>span:first-child{min-width:0;color:var(--field-muted)}
.time-row .icon-button{width:44px;height:44px;color:var(--green)}
.budget-line{display:block;font-size:14px;line-height:1.5}
.budget-line>span{display:block;color:var(--field-muted);margin-bottom:12px}
.minute-picker{margin:22px 0;gap:16px;grid-template-columns:110px minmax(0,1fr)}
.minute-number-label{display:grid;gap:10px;min-width:0;font-size:14px;line-height:1.5}
.repeat-controls input.drawn-field{width:88px;min-width:72px}
.manual-form{gap:10px}
.manual-form>label{margin-top:12px;font-size:15px;line-height:1.5}
.manual-form>label:first-child{margin-top:0}
.manual-form label:has(>.form-control),.manual-form label:has(>textarea),.manual-form label:has(>input:not([type=checkbox]):not([type=radio])){display:flex;flex-direction:column;align-items:stretch;gap:10px}
.manual-form .focus-choice,.manual-form .repeat-inherit,.manual-form .setup-pack,.setup-choices label{display:flex;align-items:center;gap:12px}
.manual-form label>input,.manual-form label>textarea{margin-top:0}
.manual-columns{gap:22px}
.manual-extra>label,.manual-examples>label{margin-top:22px!important}
.manual-extra>input,.manual-examples>input{margin-top:10px!important}
.manual-extra>label+.form-control{margin-top:10px}
.manual-columns label{margin:0 0 10px!important}
.language-bar{gap:22px;margin:24px 0}
.language-bar label,.country-picker,.topic-picker{gap:10px;font-size:14px;line-height:1.5;min-width:0}
.country-picker,.topic-picker{display:grid;align-items:start;min-width:180px;max-width:320px}
.topic-picker{margin:22px 0}
.library-tools .search-field{min-width:0}
.search-field input.drawn-field{border:0;background:transparent;padding:10px 0;min-width:0}
.language-bar label{flex:1;display:flex;flex-direction:column;align-items:stretch;min-width:160px}
.manual-add-actions,.modal-actions,.deadline-options,.setup-actions{display:flex;flex-wrap:wrap;gap:var(--action-gap);margin-top:24px}
.manual-add-actions .button,.modal-actions .button,.deadline-options .button{min-height:48px;white-space:normal;line-height:1.5;font-size:14px}
.setup-panel .manual-form>label{margin-top:12px}
#setup-times{display:grid;gap:22px;margin:14px 0}
#setup-times>label{display:grid;gap:10px;margin:0;font-size:15px}
.setup-choices,.setup-packs{margin:22px 0;padding:0;min-width:0}
.setup-choices label{padding:12px 0}
.manual-form fieldset,.movie-timing{min-width:0}
.movie-timing label{display:grid;gap:10px;margin-top:22px}
.movie-timing .form-control{max-width:360px}
.movie-form details>label{margin-top:22px}
.settings-section .toggle-row{font-size:14px;min-height:48px;gap:14px}
.settings-section .toggle-row input{width:44px!important;height:28px;right:0}
.toggle-row .toggle{width:44px;height:28px;border-radius:16px}
.toggle-row .toggle:after{width:22px;height:22px;top:3px;left:3px}
.toggle-row input:checked+.toggle:after{left:19px}
.permission-note,.timezone{display:block;line-height:1.6;margin-top:14px}
.control-popup{position:fixed;inset:auto;margin:0;padding:0;border:1px solid #d0d9c5;border-radius:14px;background:#fff;color:var(--ink);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-shadow:0 14px 36px #26302624;overflow:hidden;font:inherit}
.control-popup[open]{display:flex;flex-direction:column}
.control-popup-header,.control-popup-footer{flex:none}
.control-popup-content{min-height:0;flex:1 1 auto}
.control-popup::backdrop{background:#26302626}
.control-popup-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line)}
.control-popup-title{font-size:16px;line-height:1.5;font-weight:600;margin:0;overflow-wrap:anywhere}
.control-close{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:8px;color:var(--green)}
.control-close:hover{background:#f0f5e6}
.control-popup-content{max-height:calc(100dvh - 230px);overflow:auto;overscroll-behavior:contain;padding:8px}
.control-option-list{max-height:min(360px,55dvh);overflow:auto;overscroll-behavior:contain;border-radius:8px}
.control-option-list:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.control-option{display:block;text-align:left;width:100%;min-height:48px;padding:12px 14px;border-radius:8px;line-height:1.5;font-size:16px;overflow-wrap:anywhere}
.control-option.is-active{background:#edf4df;box-shadow:inset 0 0 0 1px #a7bf84}
.control-option[aria-selected=true]{color:#2c4921;font-weight:650}
.control-option[aria-selected=true]:after{content:'';display:inline-block;width:9px;height:5px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-left:14px;vertical-align:middle}
.control-option:hover:not(:disabled){background:#f1f6e7}
.control-option:disabled{opacity:.5}
.control-popup-footer{border-top:1px solid var(--line);padding:14px 16px;background:#fbfcf8}
.control-chosen{font-size:15px;line-height:1.5;margin:0 0 12px;font-variant-numeric:tabular-nums}
.control-popup-actions{display:flex;gap:12px;justify-content:flex-end}
.control-popup-actions .button{font-size:14px;min-height:48px;white-space:normal}
.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 8px}
.calendar-heading h3{font-size:16px;line-height:1.4;text-align:center;margin:0;font-weight:600}
.calendar-month{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:8px}
.calendar-month:hover{background:#f0f5e6}
.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.calendar-weekday{font-size:12px;color:var(--field-muted);text-align:center;padding:8px 0}
.calendar-day{min-height:44px;min-width:0;padding:8px 2px;border-radius:8px;line-height:1;font-size:16px;font-variant-numeric:tabular-nums}
.calendar-day[aria-selected=true]{background:var(--lime);color:#253820;font-weight:650}
.calendar-day[aria-current=date]{text-decoration:underline;text-underline-offset:5px}
.calendar-day.outside-month{color:#626c58}
.calendar-day:hover:not(:disabled){background:#edf3e1}
.calendar-day:focus-visible{outline-offset:-2px}
.calendar-day:disabled{opacity:.35}
.time-wheels{display:flex;gap:20px;justify-content:center;padding:16px 12px}
.time-wheel-field{min-width:0;flex:1;max-width:132px}
.time-wheel-label{display:block;text-align:center;font-size:14px;margin-bottom:10px;font-weight:600}
.time-wheel{height:144px;padding-block:48px;overflow:auto;border-radius:10px;background:#f0f4e8;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y}
.time-wheel-option{display:block;width:100%;height:48px;min-height:48px;scroll-snap-align:center;font-size:22px;line-height:1;font-variant-numeric:tabular-nums;color:#526244}
.time-wheel-option[aria-selected=true]{background:#ddebc2;color:#24331f;font-weight:650}
.control-popup button:focus-visible{outline:3px solid #587b37;outline-offset:-3px}
.control-popup :is(.control-option-list,.time-wheel):focus-visible{outline:3px solid #587b37;outline-offset:-3px}
.control-popup-content,.control-option-list,.time-wheel{scrollbar-color:#9bb280 #f0f4e8;scrollbar-width:thin}
@media(max-width:650px){
 .settings-grid{gap:24px}.settings-section{padding:20px}.settings-section>.button,.settings-section>.text-button{font-size:14px}
 .profile-preferences{max-width:none;gap:22px}.profile-actions{align-items:stretch}.profile-actions>*{flex:1 1 180px}
 .language-bar{gap:22px}.language-bar label{min-width:130px}.country-picker{min-width:160px}.sets-toolbar{gap:22px}
 .manual-form label,.modal .manual-form label{font-size:15px}.manual-add-actions{gap:14px}.manual-add-actions .button{flex:1 1 170px}
 .time-row{grid-template-columns:minmax(0,1fr) 116px 40px;gap:8px}.time-row .icon-button{width:40px;min-height:44px}.time-row>span:first-child{font-size:13px}
 .field-trigger{font-size:16px}.control-popup.control-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);border-bottom:0}
 .control-sheet .control-popup-content{max-height:calc(85dvh - 210px)}.control-sheet.select-popup .control-popup-content{max-height:calc(85dvh - 85px)}
 .control-sheet .control-option-list{max-height:calc(85dvh - 100px)}.control-sheet .date-calendar{max-width:380px;margin:auto}.control-sheet .calendar-day{min-height:44px}
 .control-sheet .control-popup-actions .button{flex:1}.control-sheet .control-popup-footer{padding:16px}.control-popup-title{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.control-popup *{scroll-behavior:auto}}
@media(max-width:380px){.language-bar{flex-direction:column;align-items:stretch}.language-bar label{min-width:0}.country-picker,.topic-picker{max-width:none}}
