/* Jonas / Ask workspace mobile recovery. Scoped only to the adult Ask page.
   Existing search, quota, source cards and navigation remain functional. */
.ai-chat-page .ma-ask-again{display:none!important}
.ai-chat-page .chat-log:empty{min-height:0!important;margin:0!important}
.ai-chat-page .chat-answer-row{gap:9px;align-items:flex-start}
.ai-chat-page .chat-answer-text{min-width:0;overflow-wrap:anywhere}
.ai-chat-page .chat-assistant{background:linear-gradient(130deg,rgba(64,40,78,.36),rgba(31,23,52,.44));border:1px solid rgba(232,196,135,.27);border-radius:18px;padding:14px}
.ai-chat-page .chat-user{border-radius:16px 16px 4px 16px;max-width:83%;padding:11px 14px;font-size:14px}
.ai-chat-page .chat-results-grid{margin-top:12px!important}
.ai-chat-page .newsearch-row{margin-top:10px!important;gap:7px;align-items:center!important}
.ai-chat-page .newsearch-row .composer{box-sizing:border-box;min-width:0!important;width:100%;flex:1 1 auto!important;display:flex!important;align-items:center!important;gap:8px!important;border-radius:20px;padding:7px 9px!important;min-height:58px!important}
.ai-chat-page .composer textarea{box-sizing:border-box!important;min-width:0!important;min-height:42px!important;max-height:95px!important;font-size:14px!important;line-height:1.42!important;padding:8px 4px!important;margin:0!important;resize:none}
.ai-chat-page .composer .mic-btn{flex:0 0 43px!important;width:43px!important;height:43px!important;min-height:43px!important;border-radius:50%!important;padding:7px!important}
.ai-chat-page .composer .mic-btn svg{width:23px!important;height:23px!important}
.ai-chat-page .composer-send{flex:0 0 46px!important;width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;font-size:0!important;line-height:0!important}
.ai-chat-page .composer-send::before{content:'➤';font:700 21px/1 system-ui!important;display:inline-block;transform:rotate(-32deg)}
.ai-chat-page .composer-input-label,.ai-chat-page .composer-hint{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ai-chat-page #discover-compose-help{pointer-events:none}
.ai-chat-page .chat-assistant:has(.chat-results-grid:empty) .chat-results-grid{display:none!important}
.ai-chat-page .discover-head{overflow:visible!important}
@media(max-width:980px){
 .ai-chat-page .app-header{position:relative!important;top:auto!important;z-index:30!important;margin:0 10px!important;padding:12px!important;box-sizing:border-box!important;min-height:0!important;gap:9px!important}
 .ai-chat-page .header-brand-area{min-width:0!important;max-width:100%!important}
 .ai-chat-page .header-brand-area img.matchapp-wordmark{width:min(265px,69vw)!important;height:auto!important}
 .ai-chat-page .app-header nav{box-sizing:border-box;max-width:100%;width:100%;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:wrap!important}
 .ai-chat-page .app-header nav :is(.home-btn,.gold-btn,.install-btn){min-height:40px!important;min-width:0!important;padding:8px 12px!important}
 .ai-chat-page .ai-sidebar-toggle{position:relative!important;top:auto!important;left:auto!important;margin:8px 0 0 13px!important;width:40px!important;height:40px!important;z-index:15!important;display:grid!important}
 .ai-chat-page .ai-sidebar{top:0!important;z-index:2000!important;padding-top:24px!important}
 .ai-chat-page .ai-sidebar-scrim{inset:0!important;z-index:1990!important}
 .ai-chat-page .wrap,.ai-chat-page.ai-sidebar-collapsed .wrap{box-sizing:border-box!important;width:100%!important;max-width:760px!important;margin:0 auto!important;padding:8px 10px 72px!important}
 .ai-chat-page .premium-card.discover-head{padding:16px 14px!important;margin:0 0 12px!important;border-radius:23px!important}
 .ai-chat-page .discover-title-row{gap:9px!important;align-items:center!important}
 .ai-chat-page .discover-title-copy h1{font-size:clamp(23px,6vw,30px)!important;line-height:1.15!important}
 .ai-chat-page .discover-ai-mark{width:39px!important;height:39px!important}
 .ai-chat-page .concierge-tagline{font-size:12px!important;line-height:1.4!important;margin:5px 0!important}
 .ai-chat-page .ai-session-strip{margin:10px 0 5px!important;gap:5px!important}
 .ai-chat-page .ai-session-chip{font-size:10px!important;padding:4px 8px!important}
 .ai-chat-page #chat-log{gap:12px!important;margin:13px 0 3px!important}
 .ai-chat-page .chat-assistant{padding:12px 10px!important}
 .ai-chat-page .chat-results-grid{grid-template-columns:1fr!important;gap:12px!important}
 .ai-chat-page .discover-card{max-width:100%!important;min-width:0!important}
 .ai-chat-page .discover-speak{width:39px!important;height:39px!important;flex:none!important}
 .ai-chat-page .discover-speak svg{width:23px!important;height:23px!important}
 .ai-chat-page .premium-card.ai-thinking{margin:12px 10px!important;padding:15px!important}
 .ai-chat-page .ai-thinking-copy h3{font-size:14px!important}
 .ai-chat-page .ma-trust{display:none!important}
}
@media(max-width:420px){
 .ai-chat-page .app-header{margin:0 7px!important;padding:10px!important}
 .ai-chat-page .brand-logo{width:39px!important;height:39px!important}
 .ai-chat-page .app-header nav{gap:5px!important}
 .ai-chat-page .app-header nav .gold-btn{font-size:12px!important;padding:7px 10px!important}
 .ai-chat-page .premium-card.discover-head{padding:13px 11px!important}
 .ai-chat-page .chat-user{font-size:13px!important}
 .ai-chat-page .chat-answer-text{font-size:14px!important;line-height:1.5!important}
}

/* Override older page-shell and ui-harmony !important rules explicitly. */
html body.ai-chat-page button.ma-ask-again{display:none!important;visibility:hidden!important;min-height:0!important;margin:0!important;padding:0!important}
html body.ai-chat-page .newsearch-row{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;gap:8px!important;align-items:center!important;margin-top:13px!important}
html body.ai-chat-page .newsearch-row .composer{grid-column:1!important;grid-row:1!important;min-width:0!important;min-height:57px!important;width:100%!important;padding:7px!important}
html body.ai-chat-page .newsearch-row button.composer-send{grid-column:2!important;grid-row:1!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;font-size:0!important;line-height:0!important}
html body.ai-chat-page .composer #discover-new-input{width:100%!important;min-width:0!important;flex:1!important;height:auto!important;min-height:42px!important;max-height:94px!important;padding:8px 5px!important;font-size:14px!important;line-height:1.38!important;border:none!important;background:transparent!important;box-shadow:none!important}
html body.ai-chat-page .newsearch-row #mic-btn-discover{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:8px!important;border-radius:50%!important}
html body.ai-chat-page .newsearch-row .composer-hint{display:none!important}
html body.ai-chat-page .composer-input-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
@media(max-width:980px){
 html body.ai-chat-page header.app-header.mh-topbox{position:relative!important;top:auto!important;z-index:25!important;width:calc(100% - 20px)!important;margin:8px auto 0!important;padding:10px!important;min-height:0!important}
 html body.ai-chat-page .wrap{margin:0 auto!important;padding-top:4px!important}
 html body.ai-chat-page button#ai-sidebar-toggle{position:relative!important;display:grid!important;top:0!important;left:0!important;right:auto!important;transform:none!important;margin:8px 0 6px 13px!important;z-index:25!important}
 html body.ai-chat-page .premium-card.discover-head{padding:13px!important;margin:0 auto 10px!important;width:calc(100% - 20px)!important;box-sizing:border-box!important}
 html body.ai-chat-page .discover-title-row{min-height:0!important;align-items:center!important;margin:0!important;padding:0!important}
 html body.ai-chat-page .discover-title-copy h1{font-size:26px!important;margin:0!important}
 html body.ai-chat-page .newsearch-row{grid-template-columns:minmax(0,1fr) 46px!important}
 html body.ai-chat-page .newsearch-row .composer{padding:6px!important}
 html body.ai-chat-page .premium-card.ai-thinking{width:calc(100% - 20px)!important;margin:10px auto!important}
 html body.ai-chat-page .chat-bubble.chat-assistant{padding:11px!important}
}
@media(max-width:420px){
 html body.ai-chat-page .premium-card.discover-head{padding:11px!important}
 html body.ai-chat-page header.app-header.mh-topbox{width:calc(100% - 14px)!important;margin:7px auto 0!important}
 html body.ai-chat-page #discover-new-input{font-size:14px!important}
}

/* Prevent legacy grid/container display:contents from splitting composer fields. */
html body.ai-chat-page.page-shell .discover-head .newsearch-row{
 display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:space-between!important;
 gap:7px!important;grid-template-columns:none!important;grid-template-areas:none!important;
}
html body.ai-chat-page.page-shell .discover-head .newsearch-row > div.composer{
 display:flex!important;flex:1 1 calc(100% - 58px)!important;min-width:0!important;max-width:calc(100% - 58px)!important;
 box-sizing:border-box!important;align-items:center!important;justify-content:space-between!important;
 gap:8px!important;min-height:53px!important;height:auto!important;padding:6px 9px!important;
 border-radius:16px!important;position:relative!important;order:0!important;
}
html body.ai-chat-page.page-shell .discover-head .newsearch-row > button.composer-send{
 display:grid!important;position:relative!important;flex:0 0 46px!important;max-width:46px!important;
 width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
 grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;order:1!important;
}
html body.ai-chat-page.page-shell .discover-head .newsearch-row > :not(.composer):not(.composer-send):not(.composer-hint){
 display:block!important;flex:1 1 100%!important;min-width:0!important;width:100%!important;
 max-width:100%!important;order:3!important;text-align:center!important;
 overflow-wrap:anywhere!important;white-space:normal!important;font-size:11px!important;line-height:1.4!important;
}
html body.ai-chat-page.page-shell .discover-head .newsearch-row::after{
 flex:1 1 100%!important;order:4!important;min-width:0!important;max-width:100%!important;
 text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html body.ai-chat-page.page-shell .discover-head .newsearch-row .composer > #discover-new-input{
 display:block!important;position:relative!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;
 height:auto!important;min-height:40px!important;max-height:96px!important;grid-column:auto!important;grid-area:auto!important;
 padding:8px 4px!important;margin:0!important;font-size:14px!important;line-height:1.4!important;
}
html body.ai-chat-page.page-shell .discover-head .newsearch-row .composer > #mic-btn-discover{
 display:grid!important;position:relative!important;flex:0 0 41px!important;width:41px!important;
 height:41px!important;min-width:41px!important;min-height:41px!important;grid-area:auto!important;
 grid-column:auto!important;padding:8px!important;
}
