/* Phone-only presentation. Tablet floor coordinates and service rules stay in their existing modules. */
.phone-menu-toggle,.phone-menu-close,.phone-menu-backdrop,.phone-map-controls,.phone-table-list{display:none}
@media(max-width:600px){
 html{scroll-padding-top:85px}
 body.phone-management,body.phone-host{min-width:0;overflow-x:hidden}
 .phone-management button,.phone-management a.primary{min-height:44px}
 .phone-management input,.phone-management select,.phone-management textarea,.phone-host input,.phone-host select,.phone-host textarea{font-size:16px!important;max-width:100%}
 .phone-management .workspace{margin-left:0;min-width:0}
 .phone-management .workspace>header{position:sticky;top:0;z-index:30;padding:12px 14px;min-height:70px;gap:10px;flex-wrap:wrap;background:var(--paper);border-bottom:1px solid var(--line)}
 .phone-management .phone-menu-toggle{display:block;padding:10px 12px;font-size:14px;flex:none}
 .phone-management header>.header-actions{margin-left:auto;gap:8px;flex-wrap:wrap;max-width:100%;font-size:12px}
 .phone-management header>.header-actions #today,.phone-management header>.header-actions>a,.phone-management header>.header-actions #theme-toggle{display:none}
 .phone-management .workspace>header>div:first-of-type{flex:1;min-width:0}
 .phone-management header .workspace-label{font-size:12px}.phone-management header .eyebrow{font-size:9px;letter-spacing:1px}
 .phone-management header .cloud-status-button{font-size:11px!important;min-height:36px;padding:8px!important;margin-left:0!important}
 .phone-management .workspace>header>span{display:none}
 .phone-management .sidebar{position:fixed;inset:0 auto 0 0;z-index:60;width:min(330px,87vw);height:100dvh;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease,visibility .18s;padding:16px 16px calc(24px + env(safe-area-inset-bottom));box-shadow:12px 0 45px #0006}
 .phone-management.phone-menu-open{overflow:hidden}
 .phone-management.phone-menu-open .sidebar{transform:translateX(0);visibility:visible}
 .phone-management .phone-menu-close{display:block;margin:0 0 18px auto;font-size:13px}
 .phone-management .sidebar .official-brand{flex-direction:row;gap:14px;padding:0 4px 18px}
 .phone-management .sidebar .official-logo{width:78px;flex:none}
 .phone-management .sidebar .brand-caption{font-size:9px;line-height:1.7}
 .phone-management .sidebar .nav-caption{display:block;margin:18px 12px 10px;font-size:9px}
 .phone-management .sidebar nav{display:grid;overflow:visible;margin:0;gap:3px;padding:0}
 .phone-management .sidebar nav button{width:100%;font-size:14px;white-space:normal;min-height:46px;padding:12px 14px}
 .phone-management .sidebar-bottom{display:grid;gap:14px;margin-top:22px;padding:18px 12px;font-size:13px}
 .phone-management .phone-menu-backdrop{display:block;position:fixed;inset:0;z-index:50;width:100%;height:100dvh;border:0;border-radius:0;background:#05060ba8;backdrop-filter:blur(3px)}
 .phone-management main{padding:14px 14px 30px;max-width:100%;min-width:0}
 .phone-management .notice{font-size:12px;line-height:1.55;padding:12px 13px}
 .phone-management .page-heading{padding:23px 20px;min-height:0;border-radius:18px;margin:16px 0 20px;gap:18px;align-items:stretch}
 .phone-management h1{font-size:30px;line-height:1.12;letter-spacing:-1px;overflow-wrap:anywhere}
 .phone-management h2{font-size:18px;line-height:1.35}
 .phone-management .page-heading p:not(.eyebrow){font-size:13px;line-height:1.65}
 .phone-management #page-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .phone-management #page-actions button{font-size:12px;line-height:1.4;padding:10px;white-space:normal}
 .phone-management #page-actions button:only-child{grid-column:1/-1}
 .phone-management .period{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px}
 .phone-management .period label{display:block;font-size:12px;min-width:0}
 .phone-management .period input{display:block;width:100%;min-width:0;margin-top:6px;min-height:44px;padding:8px}
 .phone-management .period button{grid-column:1/-1;font-size:13px}
 .phone-management .cards{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:14px}
 .phone-management .cards>.card{padding:17px 13px;min-height:125px}
 .phone-management .cards .metric-value{font-size:27px;margin:12px 0 8px;overflow-wrap:anywhere;letter-spacing:-.8px}
 .phone-management .cards .metric-label{font-size:10px;line-height:1.45;letter-spacing:.4px}
 .phone-management .metric-note,.phone-management .muted{font-size:12px;line-height:1.6}
 .phone-management .grid-two,.phone-management .category-grid,.phone-management .cost-ratio-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .phone-management .panel{min-width:0;max-width:100%;border-radius:14px;margin-bottom:16px}
 .phone-management .panel-head,.phone-management .panel-body{padding:16px}
 .phone-management .panel-head{flex-wrap:wrap}
 .phone-management .subnav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:7px;margin-bottom:16px;scrollbar-width:thin;overscroll-behavior-x:contain;border-radius:12px}
 .phone-management .subnav button{flex:none;white-space:nowrap;font-size:13px;min-height:42px;padding:10px 13px}
 .phone-management .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 .phone-management table{font-size:13px}.phone-management th{font-size:10px;padding:12px 14px}.phone-management td{padding:13px 14px;min-width:100px;max-width:240px;overflow-wrap:anywhere}
 .phone-management td .actions{flex-wrap:nowrap}.phone-management td .actions button{min-height:40px;font-size:12px;padding:9px 11px}
 .phone-management .step-grid{grid-template-columns:minmax(0,1fr);gap:10px}.phone-management .step-grid button{font-size:13px;line-height:1.5}
 .phone-management .split{flex-wrap:wrap;gap:12px}
 .phone-management .recipe-cost-grid{grid-template-columns:minmax(0,1fr);padding:12px;gap:12px}
 .phone-management .recipe-cost-card{padding:15px}.phone-management .recipe-cost-heading h3{font-size:17px}
 .phone-management .cost-ratio-card{padding:19px}.phone-management .cost-ratio-card .metric-value{font-size:36px}
 .phone-management dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);border-radius:16px}
 .phone-management .dialog-top{position:sticky;top:0;z-index:3;background:var(--paper);padding:14px 16px}
 .phone-management .dialog-top h2{font-size:18px;line-height:1.35}
 .phone-management #editor-fields{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}
 .phone-management #editor-fields>label{font-size:13px;min-width:0}
 .phone-management #editor-fields input,.phone-management #editor-fields select{min-width:0;min-height:46px}
 .phone-management .dialog-bottom{padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:10px}
 .phone-management .dialog-bottom button{flex:1;font-size:14px}
 .phone-management .line-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
 .phone-management .line-item>select:first-child,.phone-management .line-item>input:first-child{grid-column:1/-1}.phone-management .line-labels{display:none}
 .phone-management .scan-line-card{grid-template-columns:minmax(0,1fr)}
 .phone-management #toast{left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));max-width:none;font-size:13px}
 .phone-management footer{padding:18px 14px calc(18px + env(safe-area-inset-bottom));font-size:11px}
 /* Host: page scrolling replaces the fixed three-column tablet workspace. */
 html:has(body.phone-host){height:auto;overflow-y:auto}
 body.phone-host{height:auto;overflow-y:auto;padding-bottom:calc(104px + env(safe-area-inset-bottom))}
 .phone-host>header{position:sticky;top:0;z-index:20;height:auto;min-height:64px;padding:10px 12px;gap:10px;flex-wrap:wrap}
 .phone-host .brandline{gap:9px;flex:1}.phone-host header h1{font-size:28px;margin:0}.phone-host .brandcaption{font-size:12px;padding-left:9px}.phone-host .brandcaption small{display:none}
 .phone-host header nav,.phone-host .dashboard-clock,.phone-host .fullscreenbutton{display:none}
 .phone-host header>.cloud-status-button{font-size:10px!important;max-width:125px;padding:8px!important}
 .phone-host header .theme-switch{width:54px;min-height:28px}
 .phone-host>main{display:flex;height:auto;min-height:0;overflow:visible!important;flex-direction:column;padding:0;gap:0;grid-template-rows:none}
 .phone-host .dashboard-map{order:0;height:540px!important;min-height:540px!important;border-bottom:1px solid var(--line);overflow:hidden!important}
 .phone-host .dashboard-right{order:1;display:block;overflow:visible;max-height:none;padding:14px;border:0;min-height:0!important}
 .phone-host .dashboard-left{order:2;max-height:none;overflow:visible;padding:0 14px 14px;border:0;min-height:0!important}
 .phone-host .dashboard-card{padding:15px;border-radius:14px;margin:0 0 12px}
 .phone-host .dashboard-card h2{font-size:13px;letter-spacing:.8px}
 .phone-host #nextpartybuttons button{min-height:46px;font-size:18px}
 .phone-host #largeparty{min-height:44px;width:100%;font-size:15px}
 .phone-host #partynote{display:block;margin:10px 0;font-size:12px;line-height:1.5}
 .phone-host .suggested-card .primary,.phone-host .suggested-card button.secondary,.phone-host #walkin-toggle{min-height:46px;font-size:14px}
 .phone-host .suggestion-meta{font-size:13px}
 .phone-host .phone-map-controls{display:grid;gap:7px;padding:10px 12px;background:#172232;flex:none}
 .phone-host.light .phone-map-controls{background:#e7e9df}
 .phone-host .phone-room-switch,.phone-host .phone-view-switch{display:flex;gap:6px}
 .phone-host .phone-map-controls button{flex:1;min-height:40px;font-size:12px;font-weight:650;padding:8px}
 .phone-host .phone-map-controls button[aria-pressed=true]{background:#1479fa;color:#fff;border-color:#75aeff}
 .phone-host #servicetop{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px}.phone-host #servicetop .metric{font-size:12px}
 .phone-host .mapbar{gap:10px;padding:8px 12px;font-size:10px;flex-wrap:wrap}
 .phone-host #map-service-toolbar{grid-template-columns:1fr!important;gap:6px;padding:8px 12px}
 .phone-host #map-service-toolbar button{min-height:40px!important;font-size:12px!important}
 .phone-host #scroll{min-height:260px;overflow:hidden!important}
 .phone-host .phone-table-list{display:none;overflow:auto;overscroll-behavior:contain;padding:12px;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));background:#101923}
 .phone-host.phone-table-view #scroll,.phone-host.phone-table-view .mapbar{display:none!important}
 .phone-host.phone-table-view .phone-table-list{display:grid}
 .phone-host .phone-table-card{min-height:78px;padding:12px;text-align:left;white-space:normal;border-left:4px solid #39d477;border-radius:10px}
 .phone-host .phone-table-card strong,.phone-host .phone-table-card span{display:block}.phone-host .phone-table-card strong{font-size:14px;line-height:1.4}.phone-host .phone-table-card span{font-size:11px;line-height:1.5;margin-top:6px}
 .phone-host .phone-table-card[data-status=occupied]{border-left-color:#3792ff}.phone-host .phone-table-card[data-status=dirty]{border-left-color:#ff626c}.phone-host .phone-table-card[data-status=reserved]{border-left-color:#b58be5}
 .phone-host.light .phone-table-list{background:#edf1f5}
 .phone-host .serverdock{height:auto;min-height:110px;padding:12px 14px;display:block}
 .phone-host .dockheading{width:auto;margin-bottom:10px;font-size:12px}
 .phone-host .serverdock #servers{display:flex!important;overflow-x:auto!important;gap:10px;padding-bottom:6px}
 .phone-host .serverdock .server{flex:0 0 220px;max-height:none;min-width:220px;padding:12px;font-size:14px}
 .phone-host .serverdock .server .controls button{min-height:36px;padding:7px;font-size:11px}
 .phone-host .dashboard-footer{position:fixed;inset:auto 0 0;z-index:25;height:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:5px 6px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #536780}
 .phone-host .dashboard-footer button{min-height:42px;padding:6px 3px;font-size:10px;white-space:normal;line-height:1.4;border-radius:8px}
 .phone-host .station-dialog,.phone-host #gregs-interaction-dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px)!important;padding:16px!important;border-radius:16px}
 .phone-host .station-dialog{overflow-x:hidden!important}.phone-host .station-dialog button{min-height:44px;white-space:normal}.phone-host .station-dialog label{font-size:14px}
 .phone-host #tabledetailsmodal #detailcard{zoom:1!important}
 .phone-host #tabledetailsmodal #detail,.phone-host #tabledetailsmodal #detail .controls{grid-template-columns:minmax(0,1fr);gap:10px}
 .phone-host #tabledetailsmodal #detail>.departure-actions{grid-template-columns:minmax(0,1fr);gap:10px}
 .phone-host #tabledetailsmodal #detail button{font-size:15px!important;min-height:48px!important;padding:12px!important}
 .phone-host #tabledetailsmodal .modalbar{top:-16px;margin:-16px -16px 16px;padding:12px 16px}
 .phone-host #tabledetailsmodal .modalbar h2{font-size:19px}.phone-host #tabledetailsmodal .modalbar button{min-width:44px;min-height:44px}
 .phone-host #tabledetailsmodal #detail summary{font-size:17px!important;line-height:1.4}
 .phone-host .settings-tabs{max-width:100%;gap:5px}.phone-host .settings-tabs button{flex:none;font-size:12px}
}
@media(max-width:360px){.phone-management #page-actions{grid-template-columns:minmax(0,1fr)}.phone-management .cards .metric-value{font-size:23px}.phone-host header>.cloud-status-button{max-width:100px}}
@media(prefers-reduced-motion:reduce){.phone-management .sidebar{transition:none}}
