/* Stateful supporting flows use the same Claude handoff tokens as the main screens. */
.cd-settings-content { display:flex;flex-direction:column;gap:20px;padding:16px 16px 32px;min-width:0; }
.cd-settings-content .stack-form,.cd-settings-content .password-form { display:flex;flex-direction:column;gap:16px;margin:0; }
.cd-settings-content .card { padding:16px;border:1px solid var(--cd-line);border-radius:12px;background:#fff; }
.cd-settings-content label { display:flex;flex-direction:column;gap:6px;min-width:0; }
.cd-settings-content label>span:first-child { font-size:14px;line-height:18px;color:var(--cd-color-ink-text2);font-weight:500; }
.cd-settings-content input:not([type=radio]):not([type=checkbox]),.cd-settings-content textarea { min-height:52px;padding:12px 14px;border-radius:10px;font-size:16px;line-height:22px; }
.cd-settings-content .form-error:empty { display:none; }
.cd-settings-content form>.button { margin-top:8px; }
.cd-email-value { display:flex!important;flex-direction:row!important;align-items:center;flex-wrap:wrap;gap:8px;min-height:52px;padding:12px 14px;border-radius:10px;background:#F4F5F7; }
.cd-email-value>span:first-child { flex:1;min-width:120px;overflow-wrap:anywhere; }
.cd-email-value .verification-state { display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:3px 7px;border-radius:6px;background:#FFF4E0;color:#7A4100; }
.cd-email-value .verification-state.is-verified { background:#E8F5EE;color:#18794E; }
.cd-email-value .ui-icon { width:13px;height:13px; }
.cd-preference-section { border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:8px; }
.cd-preference-section legend { padding:0 4px;margin-bottom:8px; }
.cd-preference-radios label { display:flex;flex-direction:row;align-items:center;gap:12px;min-height:52px;padding:8px 16px;background:#fff; }
.cd-preference-radios label>span { flex:1;font-size:16px!important;line-height:21px!important; }
.cd-preference-radios input { flex:0 0 22px;inline-size:22px;block-size:22px;margin:0;accent-color:#15171C; }
.cd-toggle-row { flex-direction:row!important;align-items:center;gap:12px!important;min-height:56px;padding:8px 16px;background:#fff; }
.cd-toggle-row>span { flex:1;min-width:0;display:flex;flex-direction:column;gap:2px; }
.cd-toggle-row strong { font-size:16px;line-height:21px;font-weight:500; }
.cd-toggle-row small { font-size:13px;line-height:17px;color:var(--cd-muted); }
.cd-toggle-row input { appearance:none;flex:0 0 52px;width:52px;height:32px;border:0;border-radius:16px;background:#CDD1D8;padding:3px;margin:0;cursor:pointer; }
.cd-toggle-row input:before { content:'';display:block;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004; }
.cd-toggle-row input:checked { background:var(--cd-ink); }
.cd-toggle-row input:checked:before { margin-left:20px; }
.cd-toggle-row input:focus-visible { outline:2px solid var(--cd-blue);outline-offset:3px; }
.cd-danger-section { border-color:#F3B8BB!important;display:flex;flex-direction:column;gap:10px; }
.cd-danger-section h2 { color:#9B1C1C;font-size:16px;line-height:21px; }
.cd-danger-section p { margin:0;font-size:14px;line-height:20px; }
.cd-feedback-types { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#F0F1F4;padding:4px;border:0;border-radius:12px; }
.cd-feedback-types label { position:relative; }
.cd-feedback-types input { position:absolute;inset:0;opacity:0;cursor:pointer; }
.cd-feedback-types span { display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:9px;color:var(--cd-ink)!important;font-size:14px!important;font-weight:600!important; }
.cd-feedback-types input:checked+span { background:#fff;box-shadow:0 1px 3px #0001; }
.cd-feedback-types input:focus-visible+span { outline:2px solid var(--cd-blue); }
.cd-feedback-attachment { display:flex;gap:12px;align-items:center;min-width:0; }
.cd-feedback-attachment img { width:64px;height:64px;object-fit:cover;border-radius:10px; }
.cd-feedback-attachment span { flex:1;min-width:0;overflow-wrap:anywhere; }
.cd-result { padding:32px 16px;gap:10px;display:flex;flex-direction:column;align-items:center;text-align:center; }
.cd-result>.ui-icon { width:40px;height:40px;color:var(--cd-muted); }
.cd-result p { margin:0;font-size:14px;line-height:20px;color:var(--cd-color-ink-text2); }
.cd-install-tabs { display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:#F0F1F4; }
.cd-install-tabs button { min-height:40px;background:transparent;border:0;border-radius:9px;font-size:15px;font-weight:600; }
.cd-install-tabs [aria-selected=true] { background:#fff;box-shadow:0 1px 3px #0001; }
.cd-install-steps { padding:0;margin:0;list-style:none;overflow:hidden;border:1px solid var(--cd-line);border-radius:12px;background:var(--cd-line);display:flex;flex-direction:column;gap:1px; }
.cd-install-steps li { display:flex;gap:12px;align-items:center;padding:12px 16px;background:#fff;min-height:60px; }
.cd-install-steps b { flex:0 0 28px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--cd-ink);color:#fff;font-size:13px; }
.cd-install-steps span { min-width:0;font-size:15px;line-height:21px; }
.cd-push-card { display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--cd-line);border-radius:12px;background:#F4F5F7; }
.cd-push-card.is-on { background:#E8F5EE;border-color:#BDE0CC; }
.cd-push-card.is-denied,.cd-push-card.is-unavailable { background:#FFF4E0;border-color:#EFDDBD; }
.cd-push-card>div:first-child { display:flex;gap:12px;align-items:flex-start; }
.cd-push-card>div:first-child>.ui-icon { flex:0 0 40px;width:40px;height:40px;padding:9px;border-radius:10px;background:#fff; }
.cd-push-card>div:first-child>span { flex:1;min-width:0; }
.cd-push-card strong { font-size:15px;line-height:20px;font-weight:600; }
.cd-push-card p { margin:4px 0 0;font-size:14px;line-height:20px;color:var(--cd-color-ink-text2); }
.cd-push-card .form-actions { padding-left:52px; }
.cd-push-card .button { min-height:44px;font-size:14px;white-space:normal;text-align:center; }
.cd-notification-group { display:flex;flex-direction:column;gap:8px;min-width:0; }
.notifications-view .notification-row { display:flex;align-items:flex-start;width:100%;gap:12px;min-height:72px;padding:12px 16px 12px 12px;background:#fff;border:0;text-align:left;color:var(--cd-ink); }
.notifications-view .notification-row.is-unread { background:#FFFBFB; }
.notification-row__body { display:flex;flex-direction:column;gap:3px;flex:1;min-width:0; }
.notification-row__body strong { font-size:15px;line-height:20px; }
.notification-row__body>span { font-size:13px;line-height:17px;color:var(--cd-muted); }
.notification-row__body small { font-size:12px;line-height:16px;color:var(--cd-muted); }
.notification-row>.ui-icon { flex:0 0 20px;width:20px;height:20px;margin-top:6px; }
.cd-unread-dot { flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--cd-red);margin-top:6px; }
.cd-flow-sheet { width:min(100%,480px);max-width:480px;max-height:90dvh;margin:auto auto 0;padding:8px 16px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:20px 20px 0 0;background:#fff; }
.cd-flow-sheet::backdrop { background:rgba(14,15,18,.5); }
.cd-flow-sheet>div { display:flex;flex-direction:column;gap:14px; }
.cd-flow-sheet h2 { font-size:20px;line-height:26px;margin:0; }
.cd-flow-sheet p { margin:0;font-size:15px;line-height:21px;color:var(--cd-color-ink-text2); }
.cd-flow-sheet .dialog-head { margin:0; }
.cd-sheet-handle { align-self:center;display:block;width:36px;height:4px;border-radius:2px;background:#CDD1D8;margin-bottom:2px; }
.cd-photo-options { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.cd-photo-options button { display:flex;flex-direction:column;gap:16px;align-items:flex-start;justify-content:space-between;padding:14px;min-height:88px;border:1px solid #DCDFE4;border-radius:12px;background:#fff;font-size:15px;font-weight:600;text-align:left; }
.cd-stale-mileage { font-size:12px;line-height:16px;color:#7A4100;background:#FFF4E0;border-radius:6px;padding:2px 6px; }
.cd-assistant-view .assistant-identity { padding:10px 16px;gap:12px;background:#fff;border-bottom:1px solid var(--cd-line); }
.cd-assistant-view .assistant-identity>img { width:40px;height:40px; }
.cd-assistant-view .assistant-identity h1 { font-size:15px;line-height:20px; }
.cd-assistant-view .assistant-identity p { font-size:12px;line-height:16px; }
.cd-assistant-context { display:none; }
.cd-assistant-view .chat-card { background:#F4F5F7;border:0;border-radius:0;padding:0;margin:0; }
.cd-assistant-view .chat-log { display:flex;flex-direction:column;gap:12px;padding:16px;min-height:280px;max-height:none;overflow:visible; }
.cd-assistant-view .assistant-welcome { padding:12px 8px 8px; }
.cd-assistant-view .assistant-welcome img { width:96px;height:96px;border:3px solid #fff;box-shadow:0 2px 8px #0001; }
.cd-assistant-view .assistant-welcome h2 { font-size:20px;line-height:26px; }
.cd-assistant-view .assistant-welcome p { font-size:14px;line-height:20px;max-width:320px; }
.cd-assistant-view .assistant-prompts { display:flex;flex-direction:column;gap:8px; }
.cd-assistant-view .assistant-prompts button { display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;border:1px solid #DCDFE4;border-radius:12px;background:#fff;font-size:15px;line-height:20px;text-align:left; }
.cd-assistant-view .assistant-prompts .ui-icon { flex:0 0 20px;width:20px;height:20px;color:var(--cd-muted); }
.cd-assistant-view .message { max-width:86%;padding:10px 14px;border-radius:4px 16px 16px;background:#fff;border:1px solid var(--cd-line);font-size:15px;line-height:21px; }
.cd-assistant-view .message.user { align-self:flex-end;border-radius:16px 4px 16px 16px;background:var(--cd-ink);color:#fff;border-color:var(--cd-ink); }
.cd-assistant-view .message.assistant { align-self:flex-start; }
.cd-assistant-view .message.error { background:#FDECEC;color:#9B1C1C;border-color:#F3B8BB; }
.cd-assistant-view .sources { display:flex;flex-direction:column;gap:6px;margin-top:10px; }
.cd-assistant-view .sources>span { font-size:12px;line-height:16px;color:var(--cd-muted); }
.cd-assistant-view .sources button { text-align:left;white-space:normal;min-height:44px;font-size:13px;line-height:17px; }
.cd-assistant-view .chat-form { position:sticky;bottom:calc(62px + max(20px,env(safe-area-inset-bottom)));background:#fff;border-top:1px solid var(--cd-line);padding:8px 8px 12px;display:flex;flex-direction:column;gap:8px; }
.cd-assistant-view .assistant-composer { display:flex;align-items:flex-end;gap:6px; }
.cd-assistant-view .assistant-composer textarea { flex:1;min-width:0;min-height:44px;max-height:120px;padding:11px 14px;border:1px solid #CDD1D8;border-radius:22px;background:#F7F8FA;font-size:16px;line-height:20px;resize:none; }
.cd-assistant-view .assistant-composer button { width:44px;height:44px;min-height:44px;flex:0 0 44px;border-radius:22px;padding:0;display:grid;place-items:center; }
.cd-assistant-view .cd-chat-attach { border:0;background:transparent;color:var(--cd-color-ink-text2); }
.cd-assistant-view .assistant-attachment { margin:0 8px;min-width:0; }
@media(max-width:359px){.cd-push-card .form-actions{padding-left:0}.notification-row__body strong{overflow-wrap:anywhere}.cd-email-value .verification-state{font-size:11px}.cd-settings-content{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){.waiting,.skeleton{animation:none!important}}
.cd-offline-banner { max-width:480px;margin:auto;padding:12px 16px;background:#FFF4E0;color:#7A4100;font-size:14px;line-height:20px; }
.cd-offline-banner[hidden] { display:none; }
.cd-city-option { display:flex;gap:12px;align-items:center;width:100%;min-height:52px;padding:10px 4px;text-align:left;border:0;border-bottom:1px solid #EEF0F3;background:#fff; }
.cd-city-option span { flex:1;min-width:0; }
.cd-city-option .ui-icon { color:var(--cd-red); }
#cityPickerDialog [data-city-list] { max-height:45dvh;overflow:auto; }
.keyboard-open .tabbar { display:none; }
.keyboard-open .cd-assistant-view .chat-form { bottom:0; }
.home-dashboard .home-document-link { width:auto;margin-top:0;padding:12px;grid-template-columns:40px minmax(0,1fr) 20px; }
.cd-city-option[hidden] { display:none; }
.cd-photo-options .ui-icon { width:26px;height:26px; }
.cd-chat-back { background:#fff;padding:4px 12px;border-bottom:1px solid var(--cd-line); }
.cd-chat-back .local-back { margin:0;min-height:44px; }

/* Keep conditional controls absent from layout and accessibility. */
[hidden]{display:none!important}
