/* Mobile-only layout polish. Desktop dimensions remain with their page styles. */
@media(max-width:780px){
 body{min-width:0}
 main,section,article,aside,form,fieldset,.shell,.home-shell,.main,.card,.panel{min-width:0}
 .shell,.home-shell,.dashboard-header{width:calc(100% - 32px)}
 h1,h2,h3,p,li,label,.signed-in-email,.tiny{overflow-wrap:anywhere}
 input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px;max-width:100%;box-sizing:border-box}
 button,.btn,.button{white-space:normal;overflow-wrap:anywhere}
 .actions{gap:12px;row-gap:14px}
 .actions .button{min-width:0;flex:1 1 150px;padding:12px 16px;line-height:1.4}
 .cards article,.purchase-card,.example-card,.conversation,.capability-grid article{padding:18px}
 .cards,.capability-grid,.workflow-row,.demo-grid{gap:22px}
 .cards article p,.capability-grid article p,.purchase-card p{line-height:1.65}
 .hero h1{font-size:clamp(30px,8vw,42px);line-height:1.18}
 .hero .lede{font-size:16px;line-height:1.7}
 .hero,.section{padding-block:30px}
 .hero:not(.split):not(.narrow){gap:26px}
 .conversation-heading{flex-wrap:wrap;row-gap:8px;line-height:1.5}
 .conversation-heading span{max-width:none;margin-left:0}
 .conversation .bubble{padding:13px;line-height:1.7}
 .conversation .bubble.user{margin-left:12px}
 .beta-founders-promo{padding:18px}
 .beta-founders-promo .beta-stock{position:static;display:table;margin:0 0 14px auto}
 .beta-founders-promo h2{padding-right:0;line-height:1.3}
 .preorder-offers{gap:18px}
 .plan-option{padding:13px;gap:12px;align-items:flex-start}
 .plan-option>span{min-width:0;line-height:1.6}
 .purchase-consent{gap:12px;line-height:1.7}
 .price{font-size:46px}
 .nav-session .nav-dashboard{flex:1 1 170px;max-width:100%;line-height:1.5}
 .nav-session .nav-signout{flex:0 0 auto}
 .dashboard-header{gap:14px;padding-block:16px}
 .dashboard-header nav{flex-wrap:wrap;min-width:0;gap:10px;justify-content:flex-end}
 .dashboard-header .signed-in-email{max-width:100%;font-size:12px}
 .home-shell{padding-top:22px;padding-bottom:88px}
 .home-welcome h1{font-size:28px;line-height:1.25}
 .home-welcome p{line-height:1.7}
 .home-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:22px;margin:20px 0 24px;padding:2px 2px 5px;scroll-padding-inline:8px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--ui-527084,#527084) transparent}
 .home-tabs button{flex:0 0 auto;min-height:48px;white-space:nowrap;padding:12px 0;line-height:1.45}
 .home-card,.home-settings .account-card{padding:18px}
 .home-settings .account-card{gap:14px;margin-block:18px}
 .home-settings .account-card input,.home-settings .account-card textarea{font-size:16px;padding:12px;line-height:1.5}
 .home-settings .account-card .btn{width:100%;justify-self:stretch;min-height:46px}
 .home-settings .account-card p{font-size:14px;line-height:1.7}
 .home-settings .subscription-panel{padding:18px}
 .home-settings .subscription-facts>div{grid-template-columns:1fr;gap:7px;padding-block:14px}
 .home-settings .subscription-facts dd{margin-left:0;overflow-wrap:anywhere}
 .home-settings .subscription-panel .actions{gap:12px}
 .home-settings .subscription-panel .btn{flex:1 1 180px;min-height:46px}
 .home-quicklinks{gap:14px}.home-quicklinks a,.home-quicklinks button{padding:17px;line-height:1.6}
 .home-policy-links,.account-policy-links{gap:14px 20px;line-height:1.65}
 .home-shell .partner-share{grid-template-columns:1fr;padding:18px;gap:16px}
 .partner-link-row{min-width:0;flex-wrap:wrap;gap:12px}
 .partner-link-row input{min-width:0;flex:1 1 100%;font-size:16px}
 .partner-link-row button{min-height:44px}
 .partner-results{display:flex;flex-direction:column;gap:14px}
 #affiliates-panel .partner-results>.partner-controls{position:static;align-self:flex-end;margin:0}
 #affiliates-panel .partner-results .partner-heading:first-child{padding-right:0;min-height:0}
 .home-shell .partner-metric{padding:17px;gap:10px}
 .partner-table-wrap,.tablewrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .partner-rules{padding:17px}.partner-rules p{line-height:1.75;margin-block:15px}
 #share-fullience-kit>details{padding:16px}
 .share-toolbar,.share-copy-row,.share-links{gap:14px;flex-wrap:wrap}
 .share-message textarea{font-size:16px;line-height:1.6;padding:12px}
 .dashboard-content-dialog,.policy-dialog,.workspace-ideas,.workspace-upload,.material-file-dialog{max-width:calc(100vw - 24px);max-height:88dvh}
 .dashboard-popup-header,.dashboard-popup-body,.dashboard-popup-footer{padding:16px}
 .dashboard-popup-header{align-items:flex-start;gap:14px}.dashboard-popup-header h2{font-size:19px;line-height:1.4}
 .dashboard-popup-header button{flex-shrink:0;min-height:44px}
 .dashboard-popup-body{max-height:65dvh}
 .dashboard-popup-body h1{font-size:26px;line-height:1.3}
 .dashboard-popup-body ul,.dashboard-popup-body ol{padding-left:20px}
 #app.layout{grid-template-columns:minmax(0,1fr);gap:20px}
 #app .sidebar{position:static;max-width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;padding:10px;overscroll-behavior-x:contain}
 #app .sidebar button{flex:0 0 auto;width:auto;min-height:44px;white-space:nowrap;padding:10px 13px}
 #app .main{padding:0}
 #app .metrics,#app .cards{gap:16px}
 #app .card,#app .metric,#app #affiliates .owner-partner-section{padding:18px}
 #app .row,.header>.row,.courtesy-footer{flex-wrap:wrap;gap:12px}
 #app label{line-height:1.6}.header #account{overflow-wrap:anywhere}
 .focused-workspace .global-head{gap:10px;padding:12px 16px}
 .focused-workspace .workspace-welcome,.focused-workspace .workspace-chat-tools,.focused-workspace .workspace-history{padding-left:16px;padding-right:16px}
 .focused-workspace .conversation-scroll{padding:12px 16px}
 .focused-workspace .workspace-compose{padding:12px 16px}
 .focused-workspace #message{font-size:16px;line-height:1.55;min-height:70px;height:70px;padding:12px}
 .focused-workspace #chatForm .actions{gap:10px;flex-wrap:wrap;align-items:center}
 .focused-workspace #send,.focused-workspace #workspace-upload-open{min-height:44px}
 .focused-workspace .left-panel,.focused-workspace .right-panel{padding:20px 16px;max-width:calc(100vw - 24px)}
 .focused-workspace .workspace-editor-body{padding:16px}
 .focused-workspace .workspace-editor .workspace-editor-tabs{padding:8px;gap:8px}
 .focused-workspace .workspace-editor-tabs button{padding:10px;line-height:1.45;min-height:48px}
 .focused-workspace .profile textarea,.focused-workspace .opps textarea,.focused-workspace input,.focused-workspace select,.focused-workspace .material-slot textarea{font-size:16px;line-height:1.6}
 .material-file-dialog,.workspace-upload{padding:16px}
 .material-file-head{align-items:flex-start;gap:14px}.material-file-head h2{font-size:21px;line-height:1.4}
 .support-popup{right:12px;width:calc(100vw - 24px)}
 .support-launcher{min-height:44px;padding:11px 16px}
 .support-chat input,.support-chat textarea,.support-chat select{font-size:16px}
 .support-popup .support-compose,.support-popup .support-history{padding:14px}
}
@media(max-width:420px){
 .dashboard-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px}
 .dashboard-header .owner-brand-group{flex:1 1 100%}
 .dashboard-header nav{flex:1 1 100%;justify-content:space-between}
 .dashboard-header>.dashboard-workspace-link{order:3;margin-inline:auto}
 .home-card-heading{gap:12px;align-items:flex-start;flex-wrap:wrap}
 .home-card-heading a{white-space:normal;line-height:1.5}
 .home-shell .partner-metrics,#app .metrics{grid-template-columns:1fr}
 .demo-stage-toolbar .demo-steps{gap:10px}
}
/* Flattened customer settings use the full dashboard body on every device. */
.home-settings-panel{max-width:100%;min-width:0}.home-settings-panel>.account-card,.home-settings-panel>.subscription-panel{max-width:100%}.dashboard-account-status:empty{display:none}.dashboard-account-status:not(:empty){padding:14px;border:1px solid var(--ui-527084,#527084);border-radius:8px;line-height:1.6}
