/* source: experience.css */
/* Shared web, Android WebView and iPhone PWA refinements; message bubbles untouched. */
:root{--novo-control-size:44px;--novo-page-gap:16px}
:where(button,a,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--blue,#0785ff);outline-offset:3px}
.main,.main .page-scroll,.main .page,.modal-body,.chathead .info,.panehead h3{min-inline-size:0}
.panehead{min-block-size:60px;gap:12px}.panehead h3{overflow-wrap:anywhere;line-height:1.3}
.chathead .info>b,.chathead .info>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.main .page .card{overflow-wrap:anywhere}.main .page .card :where(.grow,.row){min-inline-size:0}
.main .page :where(.setting-row,.menu-item){gap:12px;min-block-size:48px;text-align:start}
.main .page :where(.setting-row,.menu-item) :where(b,small,span){overflow-wrap:anywhere}
.modal-head h3{min-width:0;overflow-wrap:anywhere;line-height:1.3}.modal-close{flex:none}
.modal:not(.admin-dialog):not(.round-record-dialog){max-inline-size:calc(100vw - 24px);max-block-size:calc(var(--app-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)}
.global-search-error,.empty-list,[data-topics-status]{overflow-wrap:anywhere;line-height:1.5}
.global-search-error button,[data-message-search-retry],[data-search-retry],[data-topics-status] button{min-block-size:44px;margin-block-start:12px}
.net-state{max-inline-size:calc(100vw - 24px);white-space:normal;overflow-wrap:anywhere;line-height:1.4;padding:10px 14px;text-align:center;pointer-events:none}
.draft-attachment-restore{gap:8px;flex-wrap:wrap}.draft-attachment-restore>span{min-width:0;flex:1 1 140px}.draft-attachment-restore b{overflow-wrap:anywhere}
.suggestion-author .grow,.topic-copy,.at-copy{min-width:0}.suggestion-author b,.topic-copy b,.at-copy b{overflow-wrap:anywhere}
.messages{overscroll-behavior-y:contain;min-block-size:0}.composer-area{flex-shrink:0}.composer textarea{scroll-margin-block-end:16px}
[aria-busy="true"]{cursor:progress}
@media(pointer:coarse){:where(.chathead,.panehead,.modal-head) button,.menu-item,.setting-row,.topic-more,.at-actions button{min-block-size:var(--novo-control-size);min-inline-size:var(--novo-control-size)}}
@media(max-width:760px){.main .page{padding-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px))}.modal:not(.round-record-dialog) :where(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:max(16px,1em)}.panehead{padding-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px))}.suggestion-toolbar,.suggestion-actions,.at-tools{flex-wrap:wrap}.suggestion-pagination{gap:8px}.suggestion-pagination span{min-width:0;text-align:center;overflow-wrap:anywhere}.net-state{bottom:calc(env(safe-area-inset-bottom,0px) + 82px);top:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* source: performance-ui.css */
/* Compact desktop context menus; touch menus retain their target sizes. */
@media(min-width:761px){
 .action-popover .modal{width:280px;max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain}
 .action-popover .modal-body{padding:6px!important}
 .action-popover .menu-item{min-height:40px!important;min-block-size:40px!important;padding:8px 10px!important;gap:10px!important;font-size:13px!important;line-height:1.3!important;font-weight:500!important}
 .action-popover .menu-item>.i{width:18px!important;height:18px!important;flex-shrink:0}
 .action-popover .menu-item>span{min-width:0;overflow-wrap:anywhere}
}
@media(min-width:761px) and (pointer:coarse){.action-popover .menu-item{min-height:44px!important;min-block-size:44px!important}}
@media(max-width:760px){.action-popover .modal{overflow-y:auto;overscroll-behavior:contain}.action-popover .menu-item{min-height:48px!important;min-block-size:48px!important}}
.net-state{max-width:min(420px,calc(100vw - 24px));font-size:12px;padding:7px 12px}

/* source: dialog-erasure.css */
.dialog-erase-description,.dialog-erase-note{line-height:1.5;overflow-wrap:anywhere}
.dialog-erase-options{display:grid;gap:10px;margin:16px 0}
.dialog-erase-options label{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:12px;background:var(--card);cursor:pointer;min-height:52px}
.dialog-erase-options input{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:var(--blue)}
.dialog-erase-options span{min-width:0}.dialog-erase-options b,.dialog-erase-options small{display:block;overflow-wrap:anywhere}
.dialog-erase-options b{font-size:14px;line-height:1.4}.dialog-erase-options small{font-size:12px;color:var(--muted);line-height:1.45;margin-top:4px}
.dialog-erase-error{color:#ee7373;font-size:13px;line-height:1.5;margin-top:12px;overflow-wrap:anywhere}
.dialog-erase-options~.modal-footer button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.dialog-erase-options~.modal-footer .danger{background:#c73752;color:#fff}
@media(max-width:760px){.dialog-erase-options label{min-height:60px;padding:14px}.dialog-erase-options b{font-size:16px}.dialog-erase-options small{font-size:13px}.dialog-erase-options~.modal-footer{flex-wrap:wrap;gap:10px}.dialog-erase-options~.modal-footer button{flex:1 1 130px;min-height:48px}}

/* source: focused-update.css */
/* Composer layout; native focus remains under the browser keyboard. */
.composer #compose{border:0!important;box-shadow:none!important;outline:none!important;background:transparent!important;min-height:40px;line-height:22px;padding:9px 4px;resize:none;border-radius:0;color:inherit}
.composer #compose:focus-visible{outline:0!important}
.composer:focus-within{box-shadow:0 0 0 1px var(--accent,#6988ff)}
.composer{align-items:flex-end}.composer>button{flex:none;min-width:40px;min-height:40px}.composer-area{min-width:0}
@media(max-width:760px){.composer{padding:4px 6px!important;gap:2px!important;border-radius:22px!important}.composer #compose{font-size:16px!important;min-width:0;flex:1 1 0}.composer:has(#compose:not(:placeholder-shown))>[data-action=round],.composer:has(#compose:not(:placeholder-shown))>[data-action=voice]{display:none}.keyboard-open .composer-area{padding-bottom:0!important}}

.viewer-image-status{position:absolute;inset:auto 12px max(20px,env(safe-area-inset-bottom));margin:auto;width:fit-content;max-width:calc(100% - 24px);padding:10px 14px;background:#171821e8;color:#fff;border-radius:12px;text-align:center;font-size:14px;z-index:2}.viewer-image-status[hidden]{display:none}.viewer-image-status button{min-height:44px;margin-left:6px}.chat-image-frame [data-view]:focus-visible{outline:2px solid #a989ff;outline-offset:-3px}


/* 3.3.53 composer hardening: preserve a stable tap/focus surface while visualViewport changes. */
.composer{min-height:56px;align-items:flex-end;isolation:isolate}
.composer textarea#compose{min-height:24px;max-height:min(152px,36dvh);line-height:1.42;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:manipulation}
.composer textarea#compose:focus{outline:0}
.composer:focus-within{scroll-margin-bottom:max(12px,env(safe-area-inset-bottom))}
@media(max-width:760px){.composer{min-height:54px}.composer textarea#compose{max-height:min(132px,32dvh)}.keyboard-open .composer-area{overscroll-behavior:contain}}

/* 3.3.65 media viewer gestures: pinch on touch, double-click/Ctrl+wheel on desktop. */
.image-viewer .viewer-stage{touch-action:none;overscroll-behavior:contain}
.image-viewer .viewer-image{transform-origin:center center;will-change:transform;cursor:zoom-in}
.image-viewer .viewer-image.viewer-image-zoomed{cursor:grab}
.image-viewer .viewer-stage-zoomed:active .viewer-image{cursor:grabbing}
@media(prefers-reduced-motion:reduce){.image-viewer .viewer-image{transition:none!important}}
