.account-profile-fields{min-width:0}
.account-profile-fields select{width:100%;font:inherit;min-height:44px}
/* Suppress accidental double-tap zoom; pinch zoom remains available. */
html[data-ninsar-app=ai]{touch-action:manipulation}
.chat-plan-landings{grid-column:1/-1;padding:12px;border:1px solid var(--n-line);border-radius:12px;background:var(--n-surface)}
.chat-plan-landings summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.chat-plan-landings summary small{font-weight:400;color:var(--n-muted)}
.chat-plan-landings .chat-plan-fields{margin-top:12px}
.chat-plan-landings input{min-width:0;width:100%}
@media(max-width:720px){
 .app.chat-mode.mobile-shell{position:fixed;inset-inline:0;top:var(--chat-viewport-top,0px);width:100%;max-width:100%;overscroll-behavior:contain}
 .chat-mode.mobile-shell .chat-scroll{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 .chat-plan-dialog input,.chat-plan-dialog select{font-size:16px}
 .mobile-app-header{gap:8px;padding-inline:12px;min-height:60px}
 .mobile-brand{margin-inline-end:auto;flex-shrink:0;font-size:19px;gap:5px}
 .mobile-brand img{width:58px}
 .mobile-app-header .chat-heading-actions{display:flex;gap:6px;flex-wrap:nowrap;margin:0}
 .mobile-app-header .chat-heading-actions .btn,.mobile-app-header .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:9px;border:1px solid var(--n-line);border-radius:12px;background:var(--n-raised);color:var(--n-text);font-size:22px}
 .mobile-app-header .mobile-menu-toggle{width:auto;gap:6px;font-size:14px;padding-inline:10px}
 .mobile-app-header .chat-action-label{display:none}
 .mobile-chat-controls .chat-heading{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0}
 .chat-mode.mobile-shell .chat-history-panel{top:8px;max-height:calc(100% - 20px)}
 .chat-mode.mobile-shell .composer{flex-shrink:0;max-height:none;padding:10px;margin-bottom:max(8px,env(safe-area-inset-bottom));overflow:visible}
 :root[data-ninsar-app=ai] .chat-mode.mobile-shell .composer textarea[name=question]{min-height:64px;max-height:120px;padding:8px;font-size:16px;line-height:1.5;resize:none}
 .chat-mode.mobile-shell .composer-actions{align-items:center;min-height:48px;gap:8px}
 .chat-mode.mobile-shell .composer-footer{flex:1;flex-wrap:nowrap;min-width:0}
 .chat-mode.mobile-shell .composer-footer .primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:100px;min-height:44px;height:44px;max-width:100%;border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.2}
 .chat-mode.mobile-shell .send-label{display:inline;overflow:hidden;text-overflow:ellipsis}
 .chat-mode.mobile-shell .composer-footer .primary>span[aria-hidden]{font-size:20px}
}
@media(max-width:720px) and (max-height:500px){
 .chat-mode.mobile-shell .composer textarea[name=question]{min-height:44px;max-height:72px}
 .chat-mode.mobile-shell .composer{max-height:70%;overflow-y:auto}
 .chat-mode.mobile-shell .chat-hero{padding:12px 6px}
}

/* Compact attachment picker shared by the website and native apps. */
.chat-mode .composer{overflow:visible}
.chat-attachment-actions{position:relative;display:flex;flex:0 0 auto;align-items:center}
.chat-attachment-actions .chat-attachment-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px;border-radius:12px;border:1px solid var(--n-line);background:var(--n-raised);color:var(--n-text)}
.chat-attachment-toggle svg{width:22px;height:22px;display:block}
.chat-attachment-toggle[aria-expanded=true]{background:var(--n-surface);border-color:var(--n-muted)}
.chat-attachment-menu{position:absolute;inset-inline-start:0;bottom:calc(100% + 8px);z-index:30;display:grid;gap:4px;width:224px;max-width:calc(100vw - 48px);padding:6px;border:1px solid var(--n-line);border-radius:16px;background:var(--n-surface);color:var(--n-text);box-shadow:0 10px 32px #0004}
.chat-attachment-menu[hidden]{display:none}
.chat-attachment-menu .btn{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:15px;text-align:start}
.chat-attachment-menu .btn:hover,.chat-attachment-menu .btn:focus-visible{background:var(--n-raised)}
.chat-attachment-menu svg{display:block;width:20px;height:20px}
.chat-pdf-dialog{max-width:440px;width:calc(100% - 32px);border:1px solid var(--n-line);border-radius:18px;background:var(--n-surface);color:var(--n-text);padding:20px}
.chat-pdf-dialog::backdrop{background:#0008}
.chat-pdf-dialog input{font-size:16px;width:100%;min-height:44px}
.chat-pdf-dialog form>div{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
@media(max-width:720px){
 .chat-mode.mobile-shell .composer-actions{flex-wrap:nowrap}
 .chat-mode.mobile-shell .composer .chat-images:not(:empty){max-height:110px;overflow-y:auto}
}
