html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,[role=button]{-webkit-tap-highlight-color:transparent}
.drawer-head .btn-link{color:var(--text-ui)}
.session-title,.session-time,.session-del,.search-hint,.s-frag,html[data-theme=dawn] .session-title,html[data-theme=dawn] .s-frag{color:var(--muted-ui)}
@media(max-width:700px),(pointer:coarse){
 body{min-height:var(--visible-height,100dvh)}
 .wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .topbar-inner{padding-top:max(10px,env(safe-area-inset-top));gap:4px}.topbar .btn{font-size:14px;min-width:44px;min-height:44px}.brand-sub{font-size:11px!important}
 main.wrap{min-height:0}.thread{padding-top:20px;padding-bottom:18px}.thread-empty{padding:18px 0 14px}.thread-empty .glyph,html[data-theme=dawn] .thread-empty .glyph{font-size:30px;letter-spacing:2px}.salon-eyebrow{margin-bottom:14px;font-size:11px;letter-spacing:1px}
 .thread-empty .line,html[data-theme=dawn] .thread-empty .line{font-size:14px}.chips{margin-top:20px;gap:8px}.chip,html[data-theme=dawn] .chip{font-size:14px;min-height:48px;padding:10px 12px}
 .composer,html[data-theme=dawn] .composer{bottom:calc(var(--keyboard-bottom,0px) + 8px);padding:12px 12px calc(10px + env(safe-area-inset-bottom));margin:0;scroll-margin-top:130px}
 #input,html[data-theme=dawn] #input{font-size:16px;min-height:54px;max-height:min(180px,28dvh);line-height:1.75}
 #searchInput,#gateInput{font-size:16px!important}.composer-bottom{gap:8px;padding-top:8px}.composer-left{gap:8px}.hint{font-size:12px}.btn-attach{min-width:54px}.btn-primary{min-height:44px;font-size:15px}
 .composer-help{font-size:11px;margin:10px 0}.footer{padding:16px 16px calc(18px + env(safe-area-inset-bottom))}.site-lineage a{min-height:44px;font-size:13px}
 .drawer,html[data-theme=dawn] .drawer{top:var(--viewport-top,0px);bottom:auto;height:var(--visible-height,100dvh);max-height:100dvh;width:min(360px,100vw);padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .drawer-list{min-height:0;overscroll-behavior:contain}.drawer-head button,.drawer-new,.session-del{min-width:44px;min-height:44px}.session-del{padding:8px;font-size:20px}.session-item{padding:6px 10px}.session-title{font:15px/1.6 var(--font-ui)}
 .search-panel{top:calc(var(--viewport-top,0px) + 12px);width:calc(100% - 24px);max-height:calc(var(--visible-height,100dvh) - 24px);overflow:auto}.search-results{max-height:calc(var(--visible-height,100dvh) - 110px);overscroll-behavior:contain}.search-hit{min-height:44px}
 .gate{top:var(--viewport-top,0px);bottom:auto;height:var(--visible-height,100dvh);padding:16px;overflow:auto;align-items:flex-start}.gate-card{margin:auto;max-height:100%;overflow:auto}
 .pending-strip{padding-top:6px}.pending-del{min-width:44px;min-height:44px;top:0;right:0}.pending-item{width:88px;height:88px}
 .msg-actions .btn-link,.code-copy{min-height:44px;min-width:44px}.bubble pre{overscroll-behavior-x:contain}.bubble table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .lightbox{max-height:var(--visible-height,100dvh);overflow:auto}.lightbox-btn{min-width:44px;min-height:44px}.jump-btn{bottom:calc(var(--keyboard-bottom,0px) + 190px + env(safe-area-inset-bottom));min-height:44px}
 html.keyboard-open .topbar{position:relative}html.keyboard-open .composer{box-shadow:0 0 0 1px var(--line)}
}
@media(max-height:500px) and (orientation:landscape){.topbar{position:relative}.topbar-inner{min-height:0}.brand-sub{display:none!important}.thread-empty{padding:12px 0}.chips{grid-template-columns:repeat(3,minmax(0,1fr))}.composer,html[data-theme=dawn] .composer{position:relative;bottom:auto}.search-panel{top:10px;max-height:calc(100dvh - 20px)}#input{min-height:44px}}
