/* Phone-only presentation. Business rules and desktop layout are unchanged. */
.mobile-menu-trigger{display:none}
@media screen and (max-width:760px){
 html{scrollbar-gutter:auto;scroll-padding-block:16px 96px}
 body{overflow-wrap:break-word;-webkit-text-size-adjust:100%}
 .auth{min-height:100dvh;padding:24px 16px calc(24px + env(safe-area-inset-bottom));place-items:start center}
 .auth .auth-card{box-sizing:border-box;width:min(100%,430px);max-width:100%;min-width:0;padding:24px 20px;border-radius:18px;margin:auto 0}
 .auth-card .brand{width:100%;min-width:0}.auth-card h1{font-size:26px}.auth-card p{font-size:14px;line-height:1.6}
 .auth-card input{box-sizing:border-box;min-width:0;font-size:16px;min-height:48px}.auth-card #auth-submit{min-height:48px;font-size:16px}
 body.ops-shell{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 .ops-shell #operations-app,.ops-shell .m-page,.ops-shell .m-page>*{min-width:0;max-width:100%;box-sizing:border-box}
 .ops-shell .m-page{padding:16px 12px 24px}.ops-shell .m-page-title{font-size:25px;line-height:1.3}.ops-shell .m-subtitle{font-size:14px;line-height:1.6}
 .ops-shell .m-header{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:calc(10px + env(safe-area-inset-top)) 12px 12px;align-items:center}
 .ops-shell .mobile-menu-trigger{display:grid;place-items:center;grid-row:1;grid-column:1;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--op-line);background:var(--op-surface);color:var(--op-accent);border-radius:10px;font-size:24px}
 .ops-shell .ops-mobile-brand{grid-column:2;grid-row:1;display:flex;align-items:center;gap:10px;min-width:0;margin:0;flex-basis:auto}.ops-mobile-brand .ds3-logo-frame{width:76px!important;height:42px!important;flex:none}.ops-shell .ops-mobile-brand strong{font-size:10px;line-height:1.5;letter-spacing:.6px;overflow-wrap:anywhere}
 .ops-shell .ops-quick-search{grid-column:1/-1;grid-row:2;display:flex;width:100%;max-width:none;min-height:44px;padding:10px 12px;font-size:14px}.ops-shell .ops-quick-search svg{display:block;width:18px;height:18px}.ops-shell .ops-quick-search span{min-width:0}
 .ops-shell .ops-top-actions{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) repeat(4,44px);gap:6px;min-width:0;position:relative}
 .ops-shell .ops-top-actions>.smart-header-create{display:block!important;min-width:0;min-height:44px;padding:8px;font-size:13px;white-space:nowrap}
 .ops-shell .ops-top-actions>.m-header-refresh,.ops-shell .ops-top-actions>.ops-account-badge{display:grid!important;place-items:center;width:44px;height:44px;min-height:44px;min-width:0;padding:0;margin:0;flex-basis:auto;font-size:15px}
 .ops-shell .ops-account-menu{position:absolute;top:calc(100% + 8px);right:0;max-width:calc(100vw - 24px);z-index:30}.ops-shell .ops-account-menu button{min-height:46px;font-size:15px}
 .ops-shell .m-nav:not([hidden]){grid-template-columns:repeat(auto-fit,minmax(45px,1fr));padding:6px 4px calc(7px + env(safe-area-inset-bottom));gap:0}.ops-shell .m-nav-item{min-height:54px;font-size:10px;line-height:1.3;padding:5px 1px;gap:5px}.ops-shell .m-nav-item svg{width:22px;height:22px}
 .ops-shell .m-page :is(button,input,select,textarea),body.ops-shell dialog :is(button,input,select,textarea){box-sizing:border-box}
 .ops-shell .m-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea),body.ops-shell dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:44px;max-width:100%;min-width:0}
 .ops-shell .m-page button,body.ops-shell dialog button{min-height:44px;font-size:14px;line-height:1.4}
 .ops-shell :is(button,a,input,select,textarea):focus-visible{outline:3px solid #9973b9;outline-offset:2px}
 .ops-shell .ops-hero{padding:19px 16px;gap:10px;border-radius:12px}.ops-shell .ops-hero h1{font-size:23px;line-height:1.35}.ops-shell .ops-hero p{font-size:13px;line-height:1.6}.ops-shell .ops-ring{width:70px;height:70px;flex:none}
 .ops-shell .ops-stats{gap:10px}.ops-shell .ops-stats button{padding:14px;min-height:102px}.ops-shell .ops-stats span{font-size:13px;line-height:1.4}.ops-shell .ops-stats strong{font-size:27px}.ops-shell .ops-box{padding:14px;min-width:0}.ops-shell .ops-box h2{font-size:17px}.ops-shell .ops-scope{font-size:12px;line-height:1.6}
 .ops-shell :is(.m-chips,.process-tabs,.pj-tabs,.hr-tabs,.dc-tabs){display:flex;overflow-x:auto;flex-wrap:nowrap;max-width:100%;gap:7px;padding-bottom:6px;overscroll-behavior-x:contain;scrollbar-width:thin}.ops-shell :is(.m-chips,.process-tabs,.pj-tabs,.hr-tabs,.dc-tabs)>button{flex:none;white-space:nowrap}
 .ops-shell :is(.smart-shortcuts,.pj-actions,.pj-row-actions,.hr-actions,.cfg-inline-actions,.dc-actions){gap:8px;flex-wrap:wrap}
 .ops-shell .ops-process-layout,.ops-shell .pd-layout{grid-template-columns:minmax(0,1fr);min-width:0;gap:14px}.ops-shell .ops-process-picker{max-width:100%;min-width:0;overscroll-behavior-x:contain;padding:2px 0 6px}.ops-shell .ops-process-picker button{min-height:56px;font-size:14px;min-width:175px}
 .ops-shell .ops-process-detail{min-width:0}.ops-shell .ops-form-choice{align-items:start;flex-wrap:wrap;gap:10px}.ops-shell .ops-form-choice>div{min-width:0;flex:1 1 180px}.ops-shell .ops-form-choice strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.ops-shell .ops-form-choice small{font-size:12px}
 .ops-shell .pd-live-flow{min-width:0;max-width:100%;padding:10px}.ops-shell .pd-flow-track{max-width:100%;min-width:0;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:10px}.ops-shell .pd-flow-node{width:165px;min-width:165px;font-size:13px}.ops-shell .pd-flow-heading{align-items:start;gap:8px;flex-wrap:wrap}.ops-shell .pd-flow-heading small{font-size:11px}
 .ops-shell .cfg-inline-grid{grid-template-columns:minmax(0,1fr);gap:12px}.ops-shell .cfg-inline-grid>.proto-config-card{grid-column:auto;padding:14px;max-width:100%;min-width:0}.ops-shell .cfg-inline-grid>.proto-config-wide{grid-column:1/-1}.ops-shell .cfg-modules-card{grid-template-columns:minmax(0,1fr)}
 .ops-shell .pd-list{position:static;max-height:250px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px}.ops-shell .pd-list>h3,.ops-shell .pd-list>.primary,.ops-shell .pd-list>.pd-form-library,.ops-shell .pd-list>.pd-trash{grid-column:1/-1}.ops-shell .pd-list>button{min-width:0;font-size:13px;padding:10px;line-height:1.5;margin:0}.ops-shell .pd-list>button small{font-size:11px}
 .ops-shell .pd-meta,.ops-shell .cfg-grid,.ops-shell .pd-form-bar{grid-template-columns:minmax(0,1fr);min-width:0}.ops-shell .pd-panel,.ops-shell .cfg-inline-editor{min-width:0;max-width:100%}
 .ops-shell .pd-step{padding:12px;margin:12px 0}.ops-shell .pd-step-line,.ops-shell .pd-fixed-step .pd-step-line{grid-template-columns:26px minmax(0,1fr);gap:8px}
 .ops-shell .pd-step-line>.pd-dot{grid-column:1;grid-row:1;align-self:center}.ops-shell .pd-step-line>label:nth-child(n){grid-column:2;grid-row:auto;margin:0;font-size:13px}.ops-shell .pd-step-line .pd-step-controls{grid-column:2;grid-row:auto;display:flex;gap:8px;margin-top:4px}.ops-shell .pd-step-controls>button:not(.pd-delete-step){width:44px;height:44px;min-height:44px}.ops-shell .pd-step-controls>.pd-delete-step{width:auto;min-width:70px;min-height:44px}
 .ops-shell .pd-step-templates{margin:10px 0 0;padding:10px;min-width:0}.ops-shell .pd-template-selection{flex-direction:column;align-items:stretch;gap:8px}.ops-shell .pd-template-selection>label{width:100%;min-width:0}.ops-shell .pd-template-chip{max-width:100%;font-size:13px;white-space:normal;overflow-wrap:anywhere}.ops-shell .pd-template-chip>button{width:44px;flex:none;min-width:44px}
 .ops-shell .pd-savebar{position:static;padding:10px;gap:8px}.ops-shell .pd-savebar .pd-total{margin-left:0;width:100%;font-size:13px}.ops-shell .pd-savebar .cfg-inline-message{width:100%}.ops-shell .pd-savebar .cfg-inline-actions{flex:1;display:flex}.ops-shell .pd-savebar .cfg-inline-actions button{flex:1}
 .ops-shell .cfg-inline-module>.cfg-inline-editor{min-width:0}.ops-shell .cfg-inline-row{min-width:0}.ops-shell .cfg-inline-row>label{min-width:0}.ops-shell .cfg-inline-module-controls button{min-width:44px;min-height:44px}
 body.ops-shell dialog[open]{inset:0;margin:0;width:100%;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;box-sizing:border-box;overscroll-behavior:contain}
 body.ops-shell #detail{padding:12px 12px calc(18px + env(safe-area-inset-bottom));background:var(--op-surface,#fff)}
 body.ops-shell #detail .modal-head{position:sticky;top:-12px;z-index:10;padding:calc(12px + env(safe-area-inset-top)) 0 12px;background:var(--op-surface,#fff);gap:10px;align-items:start}.ops-shell #detail .modal-head h2{font-size:21px;line-height:1.4;overflow-wrap:anywhere}.ops-shell #detail .modal-head #close{min-width:44px;width:44px;height:44px;min-height:44px;font-size:25px}
 .ops-shell #detail-body{min-width:0;max-width:100%}.ops-shell #detail :is(.fields,.pj-fields,.form-designer-fields,.proto-create-fields){grid-template-columns:minmax(0,1fr);gap:14px}.ops-shell #detail .total{flex-wrap:wrap;gap:8px;font-size:18px}.ops-shell #detail :is(.actions,.dc-actions){justify-content:stretch}.ops-shell #detail .actions>button{flex:1 1 140px}
 body.ops-shell :is(.fl-head,.ff-head,.fp-head,.pj-dialog-head){padding:calc(12px + env(safe-area-inset-top)) 12px 12px;gap:10px;align-items:start}body.ops-shell :is(.fl-head,.ff-head,.fp-head,.pj-dialog-head) h2{font-size:20px;line-height:1.4}body.ops-shell :is(.fl-main,.pj-dialog-body){padding:14px 12px}
 body.ops-shell :is(.fl-toolbar,.fl-create,.pj-tools,.pj-fields,.hr-edit-grid,.dc-fields){grid-template-columns:minmax(0,1fr)}body.ops-shell .fl-table-wrap{max-width:100%;max-height:none}.ops-shell .fl-row-actions{flex-wrap:wrap!important}.ops-shell .ff-runtime{padding:9px;margin-top:12px}.ops-shell :is(.ff-tabs,.ff-runtime-bar){max-width:100%;overflow:auto}.ops-shell .ff-tablewrap{max-width:100%;max-height:62dvh;overscroll-behavior:contain}.ops-shell .ff-table td input{min-width:100px}.ops-shell .ff-word-line input{max-width:100%;min-width:0}
 .ops-shell :is(.pj-table-wrap,.hr-table-wrap,.dc-table-wrap,.process-table-wrap,.staff-table-wrap,.ops-table-wrap,.tablewrap){max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
 .ops-shell .pj-kpi{padding:12px;min-width:0}.ops-shell .pj-kpi strong{font-size:20px;line-height:1.4}.ops-shell .pj-kpi>span{font-size:13px}.ops-shell .pj-kpi small{font-size:12px}.ops-shell .pj-panel-head h2{font-size:16px!important}.ops-shell .pj-app table{font-size:14px}.ops-shell .pj-contract-title{min-width:185px;max-width:240px}.ops-shell .pj-app th,.ops-shell .pj-app td{padding:12px}.ops-shell .pj-app .pj-text-button{font-size:14px;line-height:1.6}.ops-shell .pj-two{grid-template-columns:minmax(0,1fr)}
 .ops-shell .hr-filters{grid-template-columns:minmax(0,1fr)}.ops-shell .hr-filters label{min-width:0}.ops-shell .dc-toolbar,.ops-shell .process-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-width:0}.ops-shell .dc-toolbar>*{min-width:0;max-width:100%}
 .mobile-menu-dialog[open]{padding:0;background:var(--op-surface,#fff);color:var(--op-ink,#20304d);border:0}.mobile-menu-dialog::backdrop{background:#14233f88}.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(16px + env(safe-area-inset-top)) 16px 14px;border-bottom:1px solid var(--op-line,#d7deea);position:sticky;top:0;background:var(--op-surface,#fff);z-index:1}.mobile-menu-head h2{font-size:22px;margin:0}.mobile-menu-head button{width:44px;height:44px;padding:0;font-size:24px}.mobile-menu-items{padding:12px 16px calc(20px + env(safe-area-inset-bottom));display:grid;gap:8px}.mobile-menu-items button{display:flex;align-items:center;gap:12px;text-align:left;min-height:54px;padding:12px 14px;font-size:16px;border-radius:10px;background:var(--op-bg,#f3f5fa);color:var(--op-ink,#20304d);border:1px solid var(--op-line,#d7deea)}.mobile-menu-items button.active{background:#eee4f7;border-color:#bb9fd4;color:#542575}.mobile-menu-items svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.mobile-menu-items p{font-size:11px;letter-spacing:1px;color:var(--op-muted,#66758a);margin:16px 0 3px}
}
@media screen and (max-width:359px){.ops-shell .ops-top-actions{grid-template-columns:minmax(0,1fr) repeat(4,40px);gap:4px}.ops-shell .ops-top-actions>.m-header-refresh,.ops-shell .ops-top-actions>.ops-account-badge{width:40px}.ops-shell .m-page{padding:14px 10px}.ops-shell .pj-kpi strong{font-size:18px}}
@media screen and (max-width:760px){
 .mobile-menu-head{flex-direction:row;align-items:center;text-align:left}.mobile-menu-items>.enterprise-nav-label{color:var(--op-muted,#60718a);font-size:11px;letter-spacing:.8px;font-weight:600}
 body.ops-shell :is(.fl-head,.ff-head,.fp-head,.pj-dialog-head){flex-direction:row}
 .ops-shell #detail .staff-table.m-form-table{min-width:0!important;table-layout:auto}.ops-shell #detail .staff-table.m-form-table tr{grid-template-columns:minmax(0,1fr);padding:14px;gap:12px}.ops-shell #detail .staff-table.m-form-table td{width:auto!important;max-width:100%;min-width:0!important}.ops-shell #detail .staff-table.m-form-table td:before{font-size:12px;color:var(--op-muted,#60718a)}
 /* Preserve the spreadsheet grid and merged cells; only this pane scrolls horizontally. */
 .ops-shell #detail .ff-table.m-form-table{display:table!important;min-width:max-content!important;width:max-content!important}.ops-shell #detail .ff-table.m-form-table thead{display:table-header-group!important}.ops-shell #detail .ff-table.m-form-table tbody{display:table-row-group!important}.ops-shell #detail .ff-table.m-form-table tr{display:table-row!important;padding:0;border:0}.ops-shell #detail .ff-table.m-form-table :is(td,th){display:table-cell!important}.ops-shell #detail .ff-table.m-form-table td:before{display:none!important}
}
@media screen and (min-width:380px) and (max-width:760px){
 .ops-shell .pd-step-line>label:nth-child(5){grid-row:4;grid-column:2;width:70px}.ops-shell .pd-step-line .pd-step-controls{grid-row:4;grid-column:2;justify-self:end;align-self:end;margin:0 0 5px}
}
@media screen and (max-width:760px){body.ops-shell #detail .modal-head{margin:0;width:100%;min-width:0}body.ops-shell #detail .modal-head>div{min-width:0}}
@media screen and (max-width:760px){
 .ops-shell #detail .staff-table.m-form-table{display:block!important;width:100%;margin:0;border:0}
 .ops-shell #detail .staff-table.m-form-table thead{display:none!important}
 .ops-shell #detail .staff-table.m-form-table tbody{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px;width:100%}
 .ops-shell #detail .staff-table.m-form-table tr{display:grid!important;width:100%;grid-template-columns:minmax(0,1fr);border:1px solid var(--op-line,#cbd6e5);border-radius:10px;background:var(--op-surface,#fff);box-sizing:border-box}
 .ops-shell #detail .staff-table.m-form-table td{display:block!important;border:0;padding:0;width:100%!important;box-sizing:border-box;text-align:left}
 .ops-shell #detail .staff-table.m-form-table td::before{display:block!important;content:attr(data-label);font-size:12px;line-height:1.4;margin-bottom:5px;color:var(--op-muted,#60718a)}
 .ops-shell #detail .staff-table.m-form-table :is(input,select){width:100%!important;max-width:100%;min-width:0!important;margin:0}
}
@media screen and (max-width:760px){.auth{padding-bottom:calc(96px + env(safe-area-inset-bottom))}}
