/* Phone forms and cabinets only. Public catalog, event detail and map styles stay intact. */
.header .account-menu-close{display:none}
@media(max-width:800px){
 .header .account-menu-close{display:block;margin:0 0 6px auto;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:var(--light);font-size:14px}
 .header .account-menu-close:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
 #modal.form-panel[open]{display:flex;flex-direction:column;position:fixed;inset:var(--form-screen-top,0px) 0 auto;margin:0;width:100%;max-width:none;height:var(--form-screen-height,100dvh);max-height:var(--form-screen-height,100dvh);padding:0;border-radius:0;overflow:hidden}
 #modal.form-panel>.close{position:relative;top:auto;right:auto;align-self:flex-end;flex:0 0 44px;width:44px;height:44px;margin:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;font-size:26px}
 #modal.form-panel>#modalBody{flex:1;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 max(16px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));scroll-padding-block:16px 32px}
 #modal.form-panel .site2-auth{width:100%;max-width:none;margin:0;padding:0}
 #modal.form-panel .cabinet-picker{grid-template-columns:minmax(0,1fr)}
 #modal.form-panel .cabinet-picker-actions{flex-direction:column;align-items:stretch}
 #modal.form-panel .cabinet-picker-actions>button{width:100%}
 #modal.form-panel h2{font-size:26px;line-height:1.2;margin-top:0;overflow-wrap:anywhere}
 .workspace{display:block;min-width:0;width:100%;max-width:100%}
 .workspace .work-content{width:100%;min-width:0;padding:20px 16px}
 .workspace .sidebar{display:none}
 .workspace .work-heading{flex-wrap:wrap;gap:12px}
 .workspace .work-heading h1{font-size:27px;line-height:1.2;overflow-wrap:anywhere}
 .workspace .work-heading>.button,.workspace .work-heading>div>.button{width:100%}
 .workspace .panel{padding:16px;min-width:0}
 .workspace .dashboard-grid,.workspace .visitor-dashboard,.workspace .performer-rankings{grid-template-columns:minmax(0,1fr)}
 .workspace .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace .stat,.workspace .visitor-summary>div,.workspace .visitor-messages>div{min-width:0}
 .workspace .visitor-profile-heading,.workspace .visitor-summary,.workspace .visitor-messages{flex-wrap:wrap}
 .workspace .chat-layout{grid-template-columns:minmax(0,1fr)}
 .workspace .chat-thread-list{border-right:0;border-bottom:1px solid var(--line);max-height:210px}
 .workspace .chat-conversation{min-height:0;max-height:none}
 .workspace .chat-compose-actions{flex-wrap:wrap}
 .workspace .chat-message-list{max-height:55dvh}
 :is(.workspace,#modal.form-panel) :is(form,fieldset,.form-grid,.full,label,.panel,.actions){min-width:0;max-width:100%}
 :is(.workspace,#modal.form-panel) :is(.form-grid,.admin-event-filters){grid-template-columns:minmax(0,1fr)}
 :is(.workspace,#modal.form-panel) form label{font-size:14px;line-height:1.5}
 .workspace .budget-row{display:grid;grid-template-columns:minmax(0,1fr)}
 :is(.workspace,#modal.form-panel) .full{grid-column:1/-1}
 :is(.workspace,#modal.form-panel) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,[contenteditable="true"]){font-size:16px!important;line-height:1.45;min-height:48px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;scroll-margin-block:16px}
 :is(.workspace,#modal.form-panel) :is(input[type="checkbox"],input[type="radio"]){flex-shrink:0}
 :is(.workspace,#modal.form-panel) :is(label,legend,p,h2,h3,small,b,.status){overflow-wrap:anywhere}
 :is(.workspace,#modal.form-panel) :is(button,.button,summary){min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 :is(.workspace,#modal.form-panel) :is(.form-actions,.organizer-guide-actions){display:flex;flex-direction:column;align-items:stretch}
 :is(.workspace,#modal.form-panel) :is(.form-actions,.organizer-guide-actions)>button,:is(.workspace,#modal.form-panel) form>button{width:100%}
 :is(.workspace,#modal.form-panel) :is(.category-options,.geo-work-options){grid-template-columns:minmax(0,1fr)}
 :is(.workspace,#modal.form-panel) :is(.category-option,.geo-work-option,.event-discount-options label){min-height:44px}
 :is(.workspace,#modal.form-panel) .category-picker-heading{flex-wrap:wrap}
 :is(.workspace,#modal.form-panel) .participant-input-row{flex-wrap:wrap}
 :is(.workspace,#modal.form-panel) .participant-input{flex:1 1 180px}
 :is(.workspace,#modal.form-panel) .event-rich-tools button{min-width:44px}
 :is(.workspace,#modal.form-panel) .event-rich-input{max-height:none}
 :is(.workspace,#modal.form-panel) .performer-avatar-editor{grid-template-columns:minmax(0,1fr)}
 :is(.workspace,#modal.form-panel) .table-wrap{width:100%;overflow:visible}
 :is(.workspace,#modal.form-panel) .table{display:block;width:100%;min-width:0;table-layout:fixed}
 :is(.workspace,#modal.form-panel) .table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 :is(.workspace,#modal.form-panel) .table tbody{display:block;width:100%}
 :is(.workspace,#modal.form-panel) .table tbody tr{display:block;margin-bottom:12px;padding:12px;border:1px solid var(--line);border-radius:10px}
 :is(.workspace,#modal.form-panel) .table td{display:block;width:100%;padding:8px 0;border:0;overflow-wrap:anywhere;font-size:14px}
 :is(.workspace,#modal.form-panel) .table td[data-mobile-label]::before{content:attr(data-mobile-label);display:block;font-size:12px;color:var(--muted);font-weight:650;margin-bottom:5px}
 :is(.workspace,#modal.form-panel) .table .actions{gap:8px}
 :is(.workspace,#modal.form-panel) .table .actions>.button{flex:1 1 120px}
 .workspace .visitor-summary{flex-direction:column;align-items:flex-start;gap:14px}
 .workspace .visitor-summary>div:nth-child(2){flex:none;width:100%;min-width:0}
 :is(.workspace,#modal.form-panel) .visitor-summary h2{word-break:normal;overflow-wrap:normal;hyphens:none}
 .workspace .visitor-summary>.button{width:100%;margin:0}
}
@media(max-width:360px){.workspace .stats{grid-template-columns:minmax(0,1fr)}}
