/* Apariencia común: una tarea por pantalla y herramientas contextuales.
   Last shared layer: all colours come from Apariencia común. */
body[data-ikatu-app]{--touch-nav:64px;--ikatu-control-height:44px}
body[data-ikatu-app] :is(button,summary,select){min-height:44px}
body[data-ikatu-app] :is(input,textarea,select){font-size:16px}
body[data-ikatu-app] :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
body[data-ikatu-app] :is(.ikatu-charm-dock,.ikatu-cat-restore,.ikatu-natural-trigger,.ikatu-cat-habitat){display:none!important}
.ikatu-history-nav{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.ikatu-history-nav button{width:40px;min-width:40px;min-height:40px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);font-size:26px;line-height:1;cursor:pointer}
.ikatu-resize-handle{display:none;position:relative;z-index:7;width:12px;min-width:12px;height:100%;min-height:0;margin:0 -6px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}
.ikatu-resize-handle::after{content:"";position:absolute;inset:0 5px;background:var(--line);transition:inset .18s cubic-bezier(.2,.8,.2,1),background .18s}
.ikatu-resize-handle:is(:hover,:focus-visible,.is-dragging)::after{inset:0 4px;background:var(--brand)}
/* A single application shell for feed and both Inbox roles. */
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) #ikatuApp,
body.is-feed-app:has(#feedView:not([hidden])) #ikatuApp{height:100%;min-height:0;display:grid;grid-template-rows:52px minmax(0,1fr) auto}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .topbar,
body.is-feed-app:has(#feedView:not([hidden])) .topbar{height:52px;min-height:52px;padding:4px 12px;gap:10px}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .desktop-shell,
body.is-feed-app:has(#feedView:not([hidden])) .desktop-shell{display:block;width:100%;max-width:none;height:100%;min-height:0;margin:0;padding:0;overflow:hidden}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .left-rail,
body.is-feed-app:has(#feedView:not([hidden])) .left-rail{display:none}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .bottom-nav,
body.is-feed-app:has(#feedView:not([hidden])) .bottom-nav{display:flex;justify-content:space-around;position:relative;inset:auto;width:100%;min-height:var(--touch-nav);height:auto;padding:4px max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--surface);border-top:1px solid var(--line);z-index:4}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .bottom-nav :is(a,button){flex:1;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px;font-size:12px;background:transparent;color:var(--muted);border:0;border-radius:10px}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .bottom-nav .is-active{color:var(--brand);background:var(--surface-2)}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .bottom-nav span{font-size:22px}
body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .workspace{height:100%;min-height:0;padding:0;overflow:hidden}
/* Inicio: the timeline is the content; no automatic auxiliary column. */
body.is-feed-app:has(#feedView:not([hidden])) :is(#feedContextRail,#feedContextBackdrop,#feedContextButton){display:none!important}
body.is-feed-app #feedView{max-width:820px;width:100%;height:100%;margin:0 auto;border-inline:1px solid var(--line)}
body.is-feed-app #feedView .feed-topbar{min-height:48px;height:48px;max-height:48px;padding:0 8px;gap:4px;grid-template-columns:minmax(0,1fr) auto;display:flex}
body.is-feed-app #feedView .feed-title-group:has(#feedBackButton[hidden]){display:none}
body.is-feed-app #feedView .feed-tabs{flex:1;min-width:0;height:48px;gap:0;padding:0}
body.is-feed-app #feedView .feed-tabs button{flex:1;min-width:0;min-height:48px;padding:4px 6px;font-size:13px}
body.is-feed-app #feedView .feed-topbar-actions{gap:4px;margin-left:auto}
body.is-feed-app #feedView .feed-icon-button{width:44px;min-height:44px}
body.is-feed-app #feedView .feed-title-group h1{font-size:18px}
body.is-feed-app #feedView .feed-topbar p{display:none}
body.is-feed-app #feedView .feed-quickbar{display:grid;grid-template-columns:1fr auto;gap:0;padding:0 12px;border-bottom:1px solid var(--line);min-height:44px}
.feed-ask-ikatu{display:none;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font:inherit;font-size:15px;text-align:left}
body.is-feed-app #feedView .feed-context-bar{display:none}
body.is-feed-app #feedView .feed-quickbar>details{margin:0;padding:0;min-width:0;border:0;background:transparent}
body.is-feed-app #feedView .feed-quickbar>details>summary{min-height:44px;font-size:13px;padding:4px 8px}
body.is-feed-app #feedView .feed-quickbar:has(details[open]){grid-template-columns:1fr}
body.is-feed-app #feedView .feed-quickbar>details[open]{grid-column:1/-1}
body.is-feed-app #feedView .feed-card{padding:14px 12px;gap:10px;font-size:15px;width:100%;max-width:none}
body.is-feed-app #feedView .feed-card :is(.feed-card-title,.feed-card-summary){font-size:16px;line-height:1.5}
body.is-feed-app #feedView .feed-post-media{width:100%;max-width:100%;margin:10px 0}
body.is-feed-app #feedView .feed-post-media img{width:100%;max-height:420px;object-fit:cover}
body.is-feed-app #feedView .feed-social-actions{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap}
body.is-feed-app #feedView .feed-social-actions button{min-height:44px;font-size:12px;padding:6px}
body.is-feed-app #feedView .feed-composer textarea,#feedView .feed-reply-composer textarea{font-size:16px}
/* Mercadito: search -> purchase -> comparison. The dock is part of the grid. */
body[data-ikatu-app=mercadito]{height:var(--app-height,100dvh);min-height:0;overflow:hidden;display:grid;grid-template-rows:52px minmax(0,1fr) auto auto}
body[data-ikatu-app=mercadito] .market-header{height:52px;min-height:52px;padding:4px 12px;display:flex;gap:8px}
body[data-ikatu-app=mercadito] .market-header .brand{flex-shrink:0}
body[data-ikatu-app=mercadito] .brand-mark{width:34px;height:34px}
body[data-ikatu-app=mercadito] .location-trigger{grid-area:auto;min-width:0;flex:1;background:transparent;padding:4px;min-height:44px}
body[data-ikatu-app=mercadito] .location-trigger small{display:none}
body[data-ikatu-app=mercadito] .location-trigger strong{max-width:30vw;font-size:12px}
body[data-ikatu-app=mercadito][data-view=catalog] .location-trigger{display:none}
body[data-ikatu-app=mercadito] .header-actions{margin-left:auto;gap:8px;flex-wrap:nowrap}
body[data-ikatu-app=mercadito] #cartTrigger{display:none}
body[data-ikatu-app=mercadito] .app-layout{display:block;min-height:0;overflow:hidden}
body[data-ikatu-app=mercadito] .app-rail{display:none}
body[data-ikatu-app=mercadito] #workspace{display:block;height:100%;min-height:0;overflow:hidden;padding:0}
body[data-ikatu-app=mercadito] #shoppingWorkspace{display:block;height:100%;min-height:0;overflow:hidden}
body[data-ikatu-app=mercadito][data-view=catalog] #shoppingWorkspace,
body[data-ikatu-app=mercadito][data-view=list] #comparisonPane,
body[data-ikatu-app=mercadito][data-view=compare] #listPane{display:none}
body[data-ikatu-app=mercadito] :is(#listPane,#comparisonPane){height:100%;width:100%;min-height:0;border:0;display:flex;flex-direction:column;overflow:hidden}
body[data-ikatu-app=mercadito] .touch-back{align-self:start;margin:0 12px;flex-shrink:0;font-size:14px}
body[data-ikatu-app=mercadito] #catalogPanel{height:100%;min-height:0;overflow:hidden}
body[data-ikatu-app=mercadito] .catalog-heading{padding:0 12px;min-height:0}
body[data-ikatu-app=mercadito] .catalog-heading h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-ikatu-app=mercadito] .catalog-heading p{display:none}
body[data-ikatu-app=mercadito] #catalogGps{font-size:12px;margin-left:auto;min-height:44px}
body[data-ikatu-app=mercadito] .catalog-controls{padding:0 12px 4px}
body[data-ikatu-app=mercadito] .catalog-search{display:flex;gap:6px;margin:0}
body[data-ikatu-app=mercadito] #visualSearch{flex:1;min-width:0;font-size:16px;min-height:48px}
body[data-ikatu-app=mercadito] #submitVisualSearch{min-width:44px;font-size:22px;padding:4px}
body[data-ikatu-app=mercadito] #pinSearch{font-size:12px;padding:4px 8px;min-width:44px}
body[data-ikatu-app=mercadito] .catalog-location-row{margin-top:4px}
body[data-ikatu-app=mercadito] .catalog-location-row>label{font-size:0}
body[data-ikatu-app=mercadito] .catalog-status{font-size:12px;padding:4px 12px}
body[data-ikatu-app=mercadito] .catalog-scroll{padding:8px 12px;overscroll-behavior:contain}
body[data-ikatu-app=mercadito] .visual-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-ikatu-app=mercadito] .catalog-product{padding:10px;gap:8px}
body[data-ikatu-app=mercadito] .catalog-product :is(h2,p){line-height:1.4}
body[data-ikatu-app=mercadito] .catalog-product h2{font-size:15px}
body[data-ikatu-app=mercadito] .catalog-product img{max-height:150px}
body[data-ikatu-app=mercadito] .catalog-product button{min-height:44px;font-size:14px}
body[data-ikatu-app=mercadito] .catalog-product small{font-size:12px}
body[data-ikatu-app=mercadito] :is(.pane-intro,.pane-heading .eyebrow){display:none}
body[data-ikatu-app=mercadito] :is(.pane-heading,.notebook-toolbar,.quick-add,.list-footer){padding:6px 12px;flex-shrink:0}
body[data-ikatu-app=mercadito] .pane-heading :is(h1,h2){font-size:20px}
body[data-ikatu-app=mercadito] .notebook-toolbar{flex-wrap:nowrap;overflow:auto;gap:6px}
body[data-ikatu-app=mercadito] .notebook-toolbar button{flex-shrink:0;font-size:13px;white-space:nowrap}
body[data-ikatu-app=mercadito] .list-scroll{flex:1;min-height:0;overflow:auto;padding:0 12px;overscroll-behavior:contain}
body[data-ikatu-app=mercadito] .list-footer{position:static;background:var(--surface);border-top:1px solid var(--line)}
body[data-ikatu-app=mercadito] .line-details summary{min-height:44px;font-size:13px}
body[data-ikatu-app=mercadito] #comparisonResults{padding:8px 12px;overflow:auto}
body[data-ikatu-app=mercadito] .purchase-dock{padding:8px 12px;background:var(--surface);border-top:1px solid var(--line)}
body[data-ikatu-app=mercadito] .purchase-dock button{width:100%;min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px}
body[data-ikatu-app=mercadito]:not([data-view=catalog]) #purchaseDock{display:none}
body[data-ikatu-app=mercadito] .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative;inset:auto;min-height:64px;width:100%;padding:4px 8px max(4px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
body[data-ikatu-app=mercadito] .mobile-nav :is(button,a){min-height:52px;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0}
body[data-ikatu-app=mercadito] :is(#ordersPanel,#businessPanel){height:100%;overflow:auto;padding:8px 12px}
/* Inbox keeps conversation space; the order opens explicitly. */
body.is-concierge-app:not(.staff-crm-mode) #conciergeLayout{display:block;grid-template-columns:1fr;height:100%}
body.is-concierge-app:not(.staff-crm-mode) :is(.concierge-chat,.concierge-inbox){height:100%;min-height:0;width:100%}
body.is-concierge-app:not(.staff-crm-mode) #conciergeLayout[data-mobile-pane=inbox] .concierge-chat,
body.is-concierge-app:not(.staff-crm-mode) #conciergeLayout:not([data-mobile-pane=inbox]) .concierge-inbox{display:none}
body.is-concierge-app #conciergeBackButton{display:grid;min-width:44px;min-height:44px}
body.is-concierge-app:not(.staff-crm-mode) #conciergeDetailsPanel{position:absolute;inset:0;width:100%;height:100%;max-width:none;z-index:10;overflow:auto;background:var(--surface)}
body.is-concierge-app:not(.staff-crm-mode) .concierge-chat-head{min-height:56px;padding:6px 12px;gap:8px}
body.is-concierge-app .concierge-chat-head .concierge-owner-avatar{width:36px;height:36px;flex-basis:36px}
body.is-concierge-app .concierge-chat-head .concierge-detail-label{display:none}
body.is-concierge-app #conciergeMessages{flex:1;min-height:0;padding:16px 12px;overflow:auto}
body.is-concierge-app .concierge-message{max-width:92%;font-size:16px}
body.is-concierge-app #conciergeForm{grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;padding:8px 12px;flex-shrink:0}
body.is-concierge-app #conciergeVoiceButton,body.is-concierge-app #conciergeForm>small{display:none}
body.is-concierge-app #conciergeInput{font-size:16px;min-height:44px;max-height:112px;line-height:1.4}
body.is-concierge-app .touch-order-summary{flex-shrink:0;margin:0;padding:0;background:var(--surface-2);border-block:1px solid var(--line);border-radius:0}
body.is-concierge-app .touch-order-summary>summary{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 12px;min-height:48px;font-size:14px;cursor:pointer}
body.is-concierge-app .touch-order-summary>summary span{color:var(--brand);font-size:12px}
body.is-concierge-app #conciergeInlineActions{display:block;max-height:35dvh;max-height:min(35dvh,280px);overflow:auto;padding:8px 12px;scroll-snap-type:none}
body.is-concierge-app #conciergeInlineActions>article{margin-bottom:8px}
body.staff-crm-mode .staff-inbox{display:block}
body.staff-crm-mode :is(.staff-list-pane,.staff-chat-pane){height:100%}
body.staff-crm-mode .staff-inbox[data-pane=list] .staff-chat-pane,
body.staff-crm-mode .staff-inbox[data-pane=chat] .staff-list-pane{display:none}
body.staff-crm-mode #staffBack{display:block}
body.staff-crm-mode :is(.staff-chat-heading,.staff-pane-heading){min-height:56px;padding:6px 12px}
body.staff-crm-mode #staffMessageInput{font-size:16px}
/* Tablet landscape: two related panels, never three. */
@media(min-width:700px){
 body[data-ikatu-app=mercadito] .visual-products{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}
 body.is-concierge-app:not(.staff-crm-mode) #conciergeLayout{display:grid;grid-template-columns:var(--inbox-list-width,300px) 0 minmax(0,1fr)}
 body.is-concierge-app:not(.staff-crm-mode) #conciergeLayout[data-mobile-pane] > .concierge-inbox,
 body.is-concierge-app:not(.staff-crm-mode) #conciergeLayout[data-mobile-pane] > .concierge-chat{display:flex!important;width:auto;min-width:0}
 body.is-concierge-app:not(.staff-crm-mode) #conciergeDetailsPanel{left:auto;width:min(420px,70%)}
 body.is-concierge-app #conciergeBackButton{display:none}
 body.staff-crm-mode .staff-inbox{display:grid;grid-template-columns:var(--staff-list-width,300px) 0 minmax(0,1fr)}
 body.staff-crm-mode .staff-inbox[data-pane] > :is(.staff-chat-pane,.staff-list-pane){display:flex!important}
 body.staff-crm-mode #staffBack{display:none}
 .ikatu-resize-handle{display:block}
}
@media(max-width:899px),(orientation:portrait){
 body:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) .global-search{display:none}
 body[data-ikatu-app=mercadito] dialog:not(#confirmDialog),body[data-ikatu-app=mercadito] dialog.wide-dialog{width:100%;max-width:100%;height:auto;max-height:calc(var(--app-height,100dvh) - 16px);margin:auto 0 0;border-radius:18px 18px 0 0;overflow:auto}
 body[data-ikatu-app=mercadito] :is(#catalogDialog,#checkoutDialog,#listDialog){height:calc(var(--app-height,100dvh) - 16px)}
 body[data-ikatu-app=mercadito] .two-cols{grid-template-columns:1fr}
 body.staff-crm-mode .staff-dialog{width:100%;height:auto;max-height:calc(var(--inbox-viewport,100dvh) - 16px);margin:auto 0 0;border-radius:18px 18px 0 0}
}
@media(min-width:600px) and (orientation:portrait){body[data-ikatu-app=mercadito] .visual-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Visual viewport shrinks with keyboard; preserve the editor and its draft. */
body[data-touch-keyboard=open]:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) #ikatuApp,
body[data-touch-keyboard=open].is-feed-app:has(#feedView:not([hidden])) #ikatuApp{grid-template-rows:minmax(0,1fr)}
body[data-touch-keyboard=open]:is(.is-feed-app,.is-concierge-app,.staff-crm-mode) :is(.topbar,.bottom-nav){display:none!important}
body[data-touch-keyboard=open][data-ikatu-app=mercadito]{grid-template-rows:minmax(0,1fr) auto}
body[data-touch-keyboard=open][data-ikatu-app=mercadito] :is(.market-header,.mobile-nav,.catalog-heading){display:none!important}
body[data-touch-keyboard=open] #conciergeOrderSummary:not([open]){display:none}
body[data-touch-keyboard=open] .staff-composer>label{display:none}
[hidden]{display:none!important}
body[data-ikatu-app=mercadito] #catalogGps{width:44px;min-width:44px;padding:4px;font-size:22px}
body[data-ikatu-app=mercadito] .catalog-filter-details[open] .catalog-filters{max-height:min(45dvh,360px);overflow:auto;overscroll-behavior:contain}
body[data-ikatu-app=mercadito] #workspace:has(#workspaceError:not([hidden])){position:relative}
body[data-ikatu-app=mercadito] #workspaceError:not([hidden]){position:absolute;inset:0 0 auto;z-index:8;max-height:25%;overflow:auto}
/* Supersede the old phone-only full-screen chat rules with the shared shell. */
body.is-concierge-app:not(.staff-crm-mode) #ikatuApp,
body.is-concierge-app:not(.staff-crm-mode)[data-concierge-pane] #ikatuApp{grid-template-rows:52px minmax(0,1fr) auto}
body.is-concierge-app:not(.staff-crm-mode) .topbar,
body.is-concierge-app:not(.staff-crm-mode)[data-concierge-pane] .topbar{display:flex!important;height:52px;min-height:52px;padding:4px 12px}
body.is-concierge-app:not(.staff-crm-mode) .bottom-nav,
body.is-concierge-app:not(.staff-crm-mode)[data-concierge-pane] .bottom-nav{display:flex!important;min-height:64px;height:auto;padding:4px 8px max(4px,env(safe-area-inset-bottom))}
body.is-concierge-app:not(.staff-crm-mode)[data-touch-keyboard=open][data-concierge-pane] #ikatuApp{grid-template-rows:minmax(0,1fr)}
body.is-concierge-app:not(.staff-crm-mode)[data-touch-keyboard=open][data-concierge-pane] :is(.topbar,.bottom-nav){display:none!important}
body.is-feed-app #feedView .feed-card:not(.is-detail) .feed-post-media img{height:clamp(170px,48vw,360px);max-height:45dvh;object-fit:cover}
body.is-feed-app #feedView .feed-card.is-detail .feed-post-media img{height:auto;max-height:65dvh;object-fit:contain}
@media(max-width:599px){body.is-feed-app #feedView .feed-post-media{width:calc(100% + 46px);max-width:none;margin-left:-46px}}
body.is-feed-app #feedView .feed-social-actions :is(a,button){min-height:44px;min-width:44px;font-size:12px;padding:6px}

/* Movimiento corto, con respuesta elástica y sin bloquear a quien reduce animaciones. */
@keyframes ikatu-sheet-in{0%{opacity:0;transform:translateY(18px) scale(.985)}70%{transform:translateY(-2px) scale(1.002)}100%{opacity:1;transform:none}}
body[data-ikatu-app] :is(dialog[open],.dialog-backdrop:not([hidden])>.dialog,.ikatu-appearance-panel:not([hidden])){animation:ikatu-sheet-in .28s cubic-bezier(.2,.9,.25,1.18)}
body[data-ikatu-app] :is(button,a){transition:transform .16s cubic-bezier(.2,.9,.25,1.25),background-color .16s,color .16s,border-color .16s}
body[data-ikatu-app] :is(button,a):active{transform:scale(.965)}
@media(max-width:699px){.ikatu-history-nav{display:flex}.topbar .brand-name,.market-header .brand>span:last-child{display:none}.ikatu-history-nav button{width:38px;min-width:38px;min-height:38px}}
@media(max-width:899px){body.is-feed-app #feedView .feed-quickbar{grid-template-columns:1fr auto}body.is-feed-app #feedView .feed-ask-ikatu{display:flex;grid-column:1/-1;margin:8px 0}body.is-feed-app #feedView .feed-quickbar>details[open]{grid-column:1/-1}}
@media(min-width:700px){.ikatu-history-nav{display:none}}
@media(prefers-reduced-motion:reduce){body[data-ikatu-app] :is(dialog[open],.dialog-backdrop:not([hidden])>.dialog,.ikatu-appearance-panel:not([hidden])){animation:none}body[data-ikatu-app] :is(button,a){transition:none}}
.home-omnibox-dialog{width:min(620px,calc(100vw - 24px));max-height:min(680px,calc(100dvh - 24px));padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 28px 90px #0007}
.home-omnibox-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
.home-omnibox-dialog form{display:grid;gap:14px;padding:20px}.home-omnibox-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-omnibox-dialog header small{color:var(--brand);font-weight:900;letter-spacing:.12em}.home-omnibox-dialog h2{margin:3px 0 0;font-size:clamp(24px,5vw,34px)}.home-omnibox-dialog p{margin:0;color:var(--muted);line-height:1.5}.home-omnibox-dialog textarea{width:100%;min-height:140px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);color:var(--text);font:inherit;font-size:17px}.home-omnibox-dialog header button{width:44px;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface-2);color:var(--text)}.home-omnibox-dialog footer{display:flex;justify-content:flex-end}.home-omnibox-dialog #homeOmniboxStatus{padding:10px;border-radius:10px;background:var(--surface-2);color:var(--text)}
@media(max-width:699px){.home-omnibox-dialog{width:100%;max-width:none;max-height:calc(100dvh - 8px);margin:auto 0 0;border-radius:22px 22px 0 0}.home-omnibox-dialog form{padding:18px 14px max(18px,env(safe-area-inset-bottom))}.home-omnibox-dialog footer button{width:100%;min-height:50px}}

/* R69 · Inicio compacto en teléfonos.
   El omnibox y las acciones dejan de competir por la misma fila. */
@media(max-width:599px){
  body.is-feed-app{--touch-nav:58px}
  body.is-feed-app .topbar .auth-links{display:none}
  body.is-feed-app .topbar{padding-inline:10px;gap:6px}
  body.is-feed-app .topbar .brand{margin-right:2px}
  body.is-feed-app .topbar .brand-mark{width:38px;height:38px}
  body.is-feed-app .topbar .ikatu-history-nav{gap:4px}
  body.is-feed-app .topbar .ikatu-history-nav button{width:36px;min-width:36px;min-height:36px;border-radius:11px}
  body.is-feed-app .topbar .top-actions{gap:4px}
  body.is-feed-app .topbar .round-button{width:38px;height:38px}

  body.is-feed-app #feedView .feed-topbar{min-height:46px;height:46px;max-height:46px;padding:0 6px}
  body.is-feed-app #feedView .feed-tabs{height:46px}
  body.is-feed-app #feedView .feed-tabs button{min-height:46px;padding-inline:2px;font-size:12px}
  body.is-feed-app #feedView .feed-topbar-actions{flex:0 0 42px}
  body.is-feed-app #feedView .feed-icon-button{width:42px;min-width:42px;min-height:42px;padding:0}

  body.is-feed-app #feedView .feed-quickbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;padding:8px 12px 10px;min-height:0;background:var(--surface)
  }
  body.is-feed-app #feedView .feed-ask-ikatu{
    display:flex;grid-column:1/-1;width:100%;min-height:48px;margin:0;
    padding:8px 13px;border-radius:14px;font-size:16px;line-height:1.25
  }
  body.is-feed-app #feedView .feed-publish-disclosure{grid-column:1}
  body.is-feed-app #feedView #feedAttentionSection{grid-column:2;justify-self:stretch}
  body.is-feed-app #feedView .feed-quickbar>details>summary{
    width:100%;min-height:42px;justify-content:center;padding:5px 8px;
    border:1px solid var(--line);border-radius:12px;background:var(--surface-2);
    font-size:12px;white-space:nowrap
  }
  body.is-feed-app #feedView .feed-quickbar:has(#feedAttentionSection[hidden]) #feedPublishSection{grid-column:1/-1}
  body.is-feed-app #feedView .feed-quickbar:has(details[open]){grid-template-columns:1fr}
  body.is-feed-app #feedView .feed-quickbar>details[open]{grid-column:1/-1}
  body.is-feed-app #feedView .feed-quickbar>details[open]>summary{border-radius:12px 12px 0 0}

  body.is-feed-app #feedView .feed-card{padding-block:12px}
  body.is-feed-app #feedView .feed-post-content h2{font-size:17px;line-height:1.32}
  body.is-feed-app #feedView .feed-card-summary{font-size:15px;line-height:1.48}
  body.is-feed-app #feedView .feed-attribution{font-size:10px;line-height:1.35}
  body.is-feed-app .bottom-nav{min-height:58px;padding-top:3px;padding-bottom:max(3px,env(safe-area-inset-bottom))}
  body.is-feed-app .bottom-nav :is(a,button){min-height:50px;gap:2px;font-size:10px}
  body.is-feed-app .bottom-nav span{font-size:20px}
}
body[data-ikatu-app=mercadito]{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)}
body[data-ikatu-app=mercadito] :is(.market-header,.app-layout,.mobile-nav,#purchaseDock){min-width:0;max-width:100%}
body[data-ikatu-app=mercadito] .location-trigger>span:nth-child(2){min-width:0;overflow:hidden}
body[data-ikatu-app=mercadito] #comparisonPane>.pane-heading{padding:8px 12px;gap:8px}
body[data-ikatu-app=mercadito] #comparisonPane>.pane-heading>div{min-width:0;flex:1}
body[data-ikatu-app=mercadito] #comparisonPane .touch-back{margin:0 12px}
body[data-ikatu-app=mercadito] #refreshComparison{min-width:44px;width:44px;font-size:22px;padding:4px}
body[data-ikatu-app=mercadito] .comparison-explanation{margin:0;border-radius:0;flex-shrink:0;padding:0 12px;border:0;border-top:1px solid var(--line)}
body[data-ikatu-app=mercadito] .comparison-explanation summary{font-size:13px;font-weight:500;min-height:44px}
body[data-ikatu-app=mercadito] .comparison-explanation[open]{max-height:30%;overflow:auto}
body[data-ikatu-app=mercadito] #comparisonNote{padding:0 0 12px;font-size:13px}
body[data-ikatu-app] .toast{pointer-events:none;max-width:calc(100vw - 24px);white-space:normal}

/* The home question is aligned with the center of the window. */
@media(min-width:900px){body.is-feed-app .topbar{position:relative}body.is-feed-app .topbar .global-search{position:absolute;left:50%;transform:translateX(-50%);width:min(540px,45vw);margin:0}}
.home-omnibox-dialog{margin:auto;inset:0}.feed-settings-modal{margin:auto;inset:0;max-height:calc(100dvh - 24px);overflow:auto}
/* Header controls always share one row; account access remains visible on phones. */
body.is-feed-app #ikatuApp>.topbar{display:flex;flex-flow:row nowrap;align-items:center;justify-content:space-between;position:relative;overflow:visible}
body.is-feed-app #ikatuApp>.topbar>.brand{flex:0 0 auto}
body.is-feed-app #ikatuApp>.topbar>.top-actions{display:flex;flex-flow:row nowrap;align-items:center;margin-left:auto;flex:0 0 auto}
body.is-feed-app #ikatuApp>.topbar .auth-links{display:flex;align-items:center;gap:8px}
body.is-feed-app #ikatuApp>.topbar .auth-links a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;white-space:nowrap}
@media(max-width:899px){body.is-feed-app #ikatuApp>.topbar>.global-search{display:none}body.is-feed-app #ikatuApp>.topbar>.ikatu-history-nav{display:none}body.is-feed-app #ikatuApp>.topbar .auth-create{display:none}body.is-feed-app #feedView .feed-ask-ikatu{display:flex;justify-content:center;width:100%;grid-column:1/-1}}

/* El layout de escritorio fija todos los controles en la fila 1.
   En móvil, reservar una fila completa para el omnibox evita superposiciones. */
@media(max-width:899px){
  body.is-feed-app #feedView .feed-quickbar>.feed-ask-ikatu{grid-row:1}
  body.is-feed-app #feedView .feed-quickbar>details:not([open]){grid-row:2}
  body.is-feed-app #feedView .feed-quickbar>details[open]{grid-row:3}
}
