.preference-dialog{width:680px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:30px;border:1px solid var(--border);border-radius:12px;color:var(--foreground);background:var(--card);overflow-y:auto;overscroll-behavior:contain}.preference-confirmation::backdrop,.preference-dialog::backdrop{background:#10243b66}.preference-close{position:absolute;right:14px;top:12px;display:grid;place-items:center;width:44px;height:44px;border-radius:8px}.preference-close:hover{background:var(--muted)}.preference-onboarding-fields{border:0;padding:0;margin:0;min-width:0}.preference-editor{max-width:100%;color:var(--foreground)}.preference-editor-heading{display:flex;align-items:center;gap:12px;margin-bottom:32px}.preference-editor-heading h2{margin:0;font-size:22px;font-weight:650}.preference-editor-heading output{color:var(--muted-foreground);font-size:13px}.preference-editor--onboarding .preference-editor-heading{padding-right:32px}.preference-fields{border:0;padding:0;margin:0;min-width:0}.preference-field{min-width:0}.preference-field>:is(label,span){display:flex;align-items:center;gap:4px;margin-bottom:8px;font-weight:550;font-size:14px}.preference-field small{color:var(--muted-foreground);font-size:13px;font-weight:400}.preference-required{color:#b23842}.preference-field>.choice-trigger{width:100%;min-width:0}.preference-editor .filter-layout--form{gap:22px}.preference-editor .preference-field{display:grid;grid-template-columns:172px minmax(0,1fr);align-items:center}.preference-editor .preference-field>:is(label,span){margin-bottom:0}.preference-editor .preference-fields{max-width:940px;padding:8px 36px 4px}.preference-editor--onboarding .preference-fields{padding:0}.preference-editor--onboarding .preference-field{display:block}.preference-editor--onboarding .preference-field>:is(label,span){margin-bottom:8px}.preference-chip-input{min-width:0;min-height:44px;border:1px solid var(--border);border-radius:9px;background:var(--card);display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 10px}.preference-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere;border-radius:5px;background:#edf4f6;color:#29445a;font-size:13px;padding:2px 7px}.preference-chip button{display:grid;place-items:center;min-width:28px;min-height:28px}.preference-chip-input input{flex:1;min-width:100px;width:100px;min-height:30px;outline:0;background:transparent;border:0;font-size:14px;padding:0}.preference-recommendation{display:flex;align-items:center;gap:20px;margin:30px 36px 0;font-size:14px}.preference-recommendation label{min-width:152px;font-weight:550}.preference-recommendation [role=switch][data-state=checked]{background:#087f8c}.preference-editor--onboarding .preference-recommendation{margin:24px 0 0;justify-content:space-between}.preference-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:36px;padding:20px 0 0;border-top:1px solid var(--border)}.preference-actions>div{display:flex;align-items:center;gap:10px;margin-left:auto}.preference-actions button,.preference-confirmation button{min-height:44px;padding:10px 24px;border:1px solid var(--border);border-radius:8px;font-size:14px;white-space:nowrap}.preference-actions .preference-clear{display:flex;align-items:center;gap:8px;color:#087f8c;border:0;padding-left:10px;padding-right:10px}.preference-submit{color:#fff;background:#0b2d42}.preference-actions button:disabled,.preference-close:disabled,.preference-editor button:disabled{opacity:.5;cursor:not-allowed}.preference-actions button:not(:disabled):hover{filter:brightness(.96)}.preference-close:focus-visible,.preference-confirmation button:focus-visible,.preference-editor button:focus-visible{outline:2px solid #087f8c;outline-offset:3px}.preference-confirmation{width:400px;max-width:calc(100vw - 32px);border:1px solid var(--border);border-radius:12px;padding:24px;background:var(--card);color:var(--foreground)}.preference-confirmation h3{font-size:19px;font-weight:600;margin:0 0 12px}.preference-confirmation p{color:var(--muted-foreground);font-size:14px;line-height:1.7;margin-bottom:24px}.preference-confirmation>div{display:flex;justify-content:flex-end;gap:10px}.preference-confirmation button{padding:10px 16px}.preference-danger{color:#ae303b}.preference-load-error,.preference-save-notice{position:fixed;bottom:12px;right:16px;z-index:70;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);background:var(--card);color:var(--foreground);padding:12px 16px;border:1px solid var(--border);border-radius:8px;font-size:14px}.preference-load-error{color:#ad303b}.preference-load-error button,.preference-save-notice a{color:#087f8c;text-decoration:underline}.preference-save-notice button{display:grid;place-items:center;min-width:32px;min-height:32px}.dark .preference-chip{color:#d7e5f0;background:#253449}.dark .preference-submit{background:#147783}.dark .preference-clear,.dark .preference-save-notice a{color:#63c9cf}.dark .preference-danger,.dark .preference-load-error{color:#f7a8ad}@media (max-width:767px){.preference-dialog{padding:24px 20px 20px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.preference-editor-heading{margin-bottom:24px;gap:8px}.preference-editor-heading h2{font-size:20px}.preference-editor .preference-fields{padding:0}.preference-editor .preference-field{display:block}.preference-editor .preference-field>:is(label,span){margin-bottom:8px}.preference-recommendation{margin:24px 0 0;justify-content:space-between}.preference-recommendation label{min-width:0}.preference-actions{flex-wrap:wrap;gap:8px;margin-top:28px;padding-top:16px}.preference-actions button{padding:10px 16px}.preference-actions .preference-clear{padding-left:0}.preference-chip button{min-width:32px;min-height:32px}}