@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* Shared staff capture surface. Admin finance/reconciliation stays untouched. */
body.kiosk,body.ma-app,body.provider-app,body.staff-capture{background:#f7f9fc;color:#18234d;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.staff-capture main{max-width:760px;margin:auto;padding:24px 24px 60px}
:is(body.staff-capture,body.kiosk,body.ma-app) h1{font-family:Georgia,serif;font-weight:600;color:#18234d}
body.staff-capture .card,body.kiosk .card,body.ma-app .card{border:1px solid #dbe3ef;border-radius:16px;background:#fff;box-shadow:none}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(button,input,select,textarea){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(.hint,.sub,.field-help,.app-intro,.capture-help,.read-state){font-size:14px;line-height:1.5;color:#56657c}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(label,.lab){font-size:13px;line-height:1.4;color:#263b66;letter-spacing:.025em}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(.btn,.save,.edit,.app-back,.ma-inventory-back,.ma-inventory-nav button){min-height:44px;font-size:16px;border-radius:11px}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(input:not([type=checkbox]):not([type=file]),select,textarea){font-size:17px;min-height:48px;border-radius:11px;border:1px solid #cbd7e7;color:#18234d;background:#fff}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(.phbox,.receive-photo-button.primary,.photo-group,.photo-group-actions label:first-child,.ma-photo-step,.capture-group){border-style:solid!important;border-color:#cbd7e7!important;background:#f3f7fd}
:is(body.staff-capture,body.kiosk,body.ma-app) :is([style*="dashed"],.empty,.task-empty){border-style:solid!important}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(.photo-group-actions label,.receive-photo-button){min-height:44px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:15px;line-height:1.4}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(.receive-photo-thumb button,.photo button){min-width:44px;min-height:44px;font-size:22px}
:is(body.staff-capture,body.kiosk,body.ma-app) :is(.b-green,.b-teal){background:#eaf2fc;color:#20307f}
:is(body.kiosk,body.ma-app) :is(.station-icon,.station-bar){background:#20307f!important}
:is(body.kiosk,body.ma-app) .station-app{border:1px solid #dbe3ef;border-radius:16px;box-shadow:none}
:is(body.kiosk,body.ma-app) .station-app:hover{background:#f3f7fd;border-color:#a8bee1}
body.staff-capture :is(.app-top,.app-nav){margin-bottom:22px}
body.staff-capture :is(.count-grid,.count-size-grid) input[type=number]{font:700 24px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-variant-numeric:tabular-nums}
.count-context{padding:14px 16px;margin:16px 0;border:1px solid #dbe3ef;border-radius:11px;background:#eef4fd;color:#20307f;font-size:15px;line-height:1.5}
.count-match{display:block;width:100%;text-align:left;border:1px solid #dbe3ef;border-radius:10px;margin-top:6px;padding:14px;background:#fff;color:#20307f;font-size:16px;cursor:pointer}
.count-match:hover{background:#eef4fd}
.count-feedback{margin-top:12px;font-size:16px;line-height:1.5}
.master-stock-location{display:grid;gap:6px;margin:22px 0 24px;font-size:14px;line-height:1.5}
.master-stock-location span{color:#727a8b}
.master-stock-location b{font-weight:550;color:#20307f}
.master-stock-context{margin:12px 0;color:#727a8b;font-size:14px;line-height:1.5}
.master-stock-context:empty,.master-value-form .count-feedback:empty{display:none}
body .mwrap:has(.master-value-form){align-items:center;padding:16px;overflow-y:auto}
body .mwrap:has(.master-value-form) #modalBox{width:min(580px,100%);min-width:0}
body .mcard:has(.master-value-form){width:100%;max-width:100%;min-height:0;max-height:calc(100dvh - 32px);padding:30px}
body .mcard:has(.master-value-form) h2{font-size:32px}
.master-value-form label{font-size:12px;letter-spacing:.04em}
.master-value-form #masterValueQuantity{font-size:22px;font-weight:550}
@media(max-width:600px){body .mcard:has(.master-value-form){padding:24px 20px}body .mcard:has(.master-value-form) h2{font-size:28px}}
.count-audit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:16px 0;border-bottom:1px solid #e2e8f2;color:#20307f}
.count-audit p{margin:5px 0;font-size:14px;color:#56657c}
.count-audit small{font-size:13px;color:#56657c;overflow-wrap:anywhere}
.count-audit-value{text-align:right}.count-audit-value b{display:block;font-size:26px}.count-audit-value span{display:block;font-size:13px}
.count-audit .count-audit-error{grid-column:1/-1;color:#991b26}
.count-audit .count-record-details{grid-column:1/-1;margin:0;font-size:13px}
.count-audit>div:first-child :is(b,small){display:block;line-height:1.5}
.count-website-status{margin-top:6px;max-width:190px;line-height:1.45;color:#56657c}
.count-website-status:is(.synced,.resolved){color:#237047}
.count-website-status.pending{color:#785318}
.count-website-status.review{color:#991b26}
.master-package-count-sync:is(.synced,.resolved){color:#237047}
.master-number-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:3px 6px;border:1px solid transparent;border-radius:7px;background:transparent;color:#20307f;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:#b9c8df;text-underline-offset:3px}
.master-number-button:hover{background:#edf3fc;border-color:#cbd7e7}
.master-number-button:focus-visible{outline:3px solid #8cb5db;outline-offset:2px;background:#edf3fc}
.master-package-count-summary{margin-top:5px;overflow-wrap:anywhere}
.master-package-count-summary :is(.master-package-count-date,.master-package-count-sync){display:block;font-size:11px;line-height:1.4}
.master-package-count-sync.pending{color:#785318}.master-package-count-sync.review{color:#991b26}.master-package-count-sync.unknown{color:#56657c}
@media(max-width:600px){body.staff-capture main{padding:18px 16px 50px}.live-count-form .row2{grid-template-columns:1fr}.count-audit{gap:8px}.count-audit-value{max-width:110px}}
body.staff-task-intake{display:block;padding:0}
.staff-form-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.staff-form-nav span{font:600 18px Georgia,serif;color:#20307f;white-space:nowrap}
.staff-form-nav .back{margin:0;min-height:44px;padding:10px 14px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;font-size:16px}
body.staff-task-intake :is(.send,.actions button,.actions a){min-height:48px;font-size:16px}
body.staff-task-intake .check{background:#edf4fd;color:#20307f}
@media(max-width:480px){.staff-form-nav span{font-size:15px}.staff-form-nav .back{font-size:14px;padding:10px}}

/* Optional instructions stay available while the working form stays compact. */
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help{margin:8px 0 12px;color:#56657c;font-size:13px;line-height:1.45}
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help>summary{display:list-item;width:fit-content;min-height:44px;padding:12px 0;color:#20307f;font-size:13px;font-weight:650;cursor:pointer}
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help>summary:focus-visible{outline:3px solid #abc9e5;outline-offset:3px;border-radius:5px}
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help p{margin:5px 0 10px}
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help dl{margin:2px 0 10px}
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help dt{font-weight:700;color:#263b66;margin-top:8px}
:is(body.staff-capture,body.kiosk,body.ma-app,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .staff-help dd{margin:2px 0 0}
body.staff-capture .photo-group-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
body.staff-capture .photo-group-actions label{min-height:44px;padding:8px 10px;flex-direction:row;line-height:1.25;border:1px solid #cbd7e7;border-radius:9px;text-decoration:none;background:#fff;font-size:14px}
body.staff-capture .photo-group{padding:11px 12px}
body.food-intake #captureCard>.photo-capture-guide{order:0}
body.staff-task-intake .card{padding:20px}
body.staff-task-intake textarea{min-height:88px}
body.staff-clock-app .back{min-width:44px;min-height:44px}
body.staff-setup-app :is(input,select,button){min-height:44px;font-size:16px}
body.staff-setup-app .card{padding:17px 18px}
body.staff-setup-app .row{grid-template-columns:repeat(2,minmax(0,1fr))}
body.staff-station-app .staff-help{max-width:800px;margin-left:auto;margin-right:auto}
@media(max-width:620px){body.staff-setup-app .row{grid-template-columns:1fr}}
@media(max-width:420px){body.staff-capture .photo-group-actions{gap:6px}body.staff-capture .photo-group-actions label{padding:8px 6px;font-size:13px}body.staff-capture .photo-group-head{gap:8px}body.staff-capture .photo-group-count{font-size:10px}}

/* The Front Desk task list is the existing shared queue, not an admin workspace. */
body.front-desk-app{display:block;background:#fff;color:#20307f}
body.front-desk-app .side,body.front-desk-app .kioskbar{display:none!important}
body.front-desk-app .main{width:100%;max-width:850px;margin:0 auto;padding:24px 24px 50px}
.front-desk-task-nav{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px;color:#20307f}
.front-desk-task-nav a{display:flex;align-items:center;min-height:44px;border:1px solid #dbe3ef;border-radius:11px;padding:10px 14px;color:inherit;text-decoration:none;font-size:15px;font-weight:600}
.front-desk-task-nav span{font:600 18px Georgia,serif}
.ops-task-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ops-task-refresh{min-height:44px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;color:#20307f;padding:10px 14px;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
.ops-task-empty{border-style:solid}
/* Task queues get a full-width title and a compact toolbar, including admin previews. */
body .ops-task-head{display:block;margin-bottom:18px}
body .ops-task-head h1{font:600 30px/1.2 Georgia,serif;color:#20307f;white-space:normal}
body .ops-task-head .sub{margin-top:7px;font-size:15px;line-height:1.5}
body .ops-task-head .ops-app-actions{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;width:auto}
body .ops-task-head .ops-app-actions .btn{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;padding:10px 14px;margin:0;font-size:15px;line-height:1.4;text-decoration:none;white-space:normal}
body .ops-task-initials{padding:10px 14px;margin:0 0 10px}
body .ops-task-initials label{font-size:12px}
body .ops-task-initials input{width:108px;min-height:44px;font-size:16px}
body .ops-task-controls{margin:10px 0 14px}
body .ops-task-empty{padding:22px 16px;border:1px solid #dbe3ef;background:#fff;font-size:15px}
body .ops-task-card{padding:18px;border:1px solid #dbe3ef;border-radius:14px;box-shadow:none}
body .ops-task-title{font-size:20px;line-height:1.35}
body :is(.ops-task-owner,.ops-task-assigned,.ops-task-details){font-size:14px;line-height:1.5}
body .ops-task-actions button{min-height:44px;padding:10px 14px;font-size:14px}
body :is(.ops-task-check,.ops-task-edit){min-width:44px;min-height:44px}
@media(max-width:620px){body .ops-task-head h1{font-size:28px}body .ops-task-head .ops-app-actions{gap:7px}body .ops-task-head .ops-app-actions .btn{font-size:14px;padding:10px 12px}}
body.front-desk-app :is(.ops-task-empty,.ops-task-assigned,.ops-task-owner,.ops-task-actions button,.ops-task-details,.hint){font-size:14px;line-height:1.5}
body.front-desk-app .ops-task-card{border:1px solid #dbe3ef;padding:18px;border-radius:14px}
body.front-desk-app .ops-task-title{font-size:21px}
body.front-desk-app .ops-task-head{align-items:flex-start}
body.front-desk-app .ops-task-head h1{font:600 32px Georgia,serif;color:#20307f}
body.front-desk-app .ops-task-head .btn{min-height:44px;font-size:15px}
body.front-desk-app .ops-task-initials{margin:18px 0 8px}
body.front-desk-app .ops-task-actions button{min-height:44px}
@media(max-width:600px){body.front-desk-app .main{padding:18px 16px 40px}body.front-desk-app .ops-task-head{display:block}body.front-desk-app .ops-app-actions{margin-top:14px}body.front-desk-app .ops-task-title{font-size:19px}.front-desk-task-nav span{font-size:16px}}

/* Master Inventory opens a structured product sidebar from Details. */
body .master-title,body .master-product-name{display:flex;align-items:center;gap:4px}
body .master-title h1{margin:0}
body .master-product-name .product-link{flex:1;min-width:0;text-align:left}
body .master-details-button{min-width:70px;min-height:44px!important}
body .master-details-button.needs-review{border-color:#e3c98e;color:#875015;background:#fffaf0}
body .master-table tr[data-stock-issue=true] .master-number-button[data-field=stock]{color:#a6252f}
body .master-estimate-marker{font-size:11px;color:#56657c;margin-left:3px}
body .master-review-button{min-height:44px;padding:5px 8px;border:0;border-radius:7px;background:transparent;color:#20307f;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
body .master-review-button:focus-visible{outline:3px solid #abc9e5}
body .master-actions{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0 16px}
body .master-actions button{min-height:60px}
body .master-actions .master-exception-button{border-color:#e3c98e;background:#fffaf0}
body .master-toolbar #masterFilter{margin:0;min-height:44px;white-space:nowrap}
body .master-filter-options{display:grid;gap:8px}
body .master-filter-options button{margin:0;min-height:44px;text-align:left}
body .master-filter-options button[aria-pressed=true]{background:#edf3fc;border-color:#abc9e5}
body .master-view-controls{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 12px;min-width:0}
body .master-view-controls #masterViewToggle{display:flex;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%;margin:0;border:0;border-radius:0;overflow:visible;background:transparent}
body .master-view-controls #masterViewToggle button{min-height:44px;margin:0;padding:9px 14px;border:1px solid #cbd7e7;border-radius:8px;background:#fff;color:#20307f;font:inherit;line-height:1.35;cursor:pointer}
body .master-view-controls #masterViewToggle button:is(.on,[aria-pressed=true]){background:#20307f;border-color:#20307f;color:#fff}
body .master-view-controls #masterFilter{flex:0 0 auto;min-height:44px;margin:0;white-space:nowrap}
body #masterCategoryChips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;min-width:0}
body #masterCategoryChips button{display:inline-flex;align-items:center;gap:7px;min-height:44px;max-width:100%;margin:0;padding:8px 12px;border:1px solid #cbd7e7;border-radius:22px;background:#fff;color:#20307f;font:inherit;line-height:1.35;overflow-wrap:anywhere;cursor:pointer}
body #masterCategoryChips button[aria-pressed=true]{background:#edf3fc;border-color:#abc9e5}
body .master-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;margin:0 0 12px;padding:8px 12px;border:1px solid #dbe3ef;border-radius:9px;background:#f7f9fc;color:#20307f;font-size:14px;line-height:1.4}
body .master-selection-bar .btn{min-height:44px;margin:0}
body :is(#masterCategoryChips,.master-selection-bar)[hidden]{display:none!important}
body .master-product-select{display:flex;align-items:center;gap:8px;min-width:0}
body .master-product-select .master-product-name{flex:1;min-width:0}
body .master-select-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;cursor:pointer}
body input.master-row-select{flex:0 0 auto;width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:0;accent-color:#20307f;cursor:pointer}
body .master-table tr[aria-selected=true] td{background:#f0f5fc}
body .master-sort-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;min-width:44px;min-height:44px;max-width:100%;margin:0;padding:6px 3px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;line-height:1.3;text-align:left;cursor:pointer}
body .master-sort-button:hover{background:#edf3fc}
body .master-sort-button[aria-expanded=true]{background:#edf3fc;color:#20307f}
body .master-sort-menu{position:fixed;z-index:55;box-sizing:border-box;width:min(240px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:6px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #cbd7e7;border-radius:10px;background:#fff;color:#20307f;box-shadow:0 8px 24px rgba(16,18,30,.14);font:400 14px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .master-sort-menu button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;max-width:100%;margin:0;padding:10px 12px;border:0;border-radius:6px;background:#fff;color:#20307f;font:inherit;line-height:1.4;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
body .master-sort-menu button:hover,body .master-sort-menu button:is([aria-checked=true],[aria-pressed=true]){background:#edf3fc}
body :is(.master-sort-button,.master-sort-menu button,.master-view-controls button,#masterCategoryChips button,input.master-row-select,.master-selection-bar button):focus-visible{outline:3px solid #8cb5db;outline-offset:2px}
@media(max-width:600px){body .master-view-controls{align-items:flex-start;gap:8px}body .master-view-controls #masterViewToggle{flex:1 1 220px}body .master-view-controls #masterViewToggle button{flex:1 1 auto;padding:9px 10px}body .master-selection-bar{gap:8px;padding:8px}body .master-select-control{flex-basis:44px}body .master-sort-menu{max-height:calc(100dvh - 24px)}}
body .master-info-fields{display:grid;grid-template-columns:minmax(110px,150px) minmax(0,1fr);gap:12px 18px;font-size:14px;line-height:1.45;margin:18px 0 24px}
body .master-info-fields dt{font-weight:650;color:#20307f}
body .master-info-fields dd{margin:0;overflow-wrap:anywhere}
body .master-info-history{margin:20px 0}
body .master-info-history :is(.master-package-count-date,.master-package-count-sync){font-size:14px}
body .master-workspace-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 0}
body .master-workspace-actions .btn{margin:0;min-height:44px}
@media(max-width:600px){body .master-actions{grid-template-columns:repeat(2,minmax(0,1fr))}body .master-info-fields{grid-template-columns:1fr;gap:5px}body .master-info-fields dd{margin-bottom:9px}body .master-toolbar input{flex:1 1 220px}body .master-toolbar #masterFilter{flex:0 0 auto}}

body:has(.master-details-drawer.on){overflow:hidden}
body .mwrap.master-details-drawer{padding:0;justify-content:flex-end;align-items:stretch;overflow:hidden;background:rgba(16,18,30,.22)}
body .master-details-drawer #modalBox{width:min(580px,100vw);height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:#fff;box-shadow:-12px 0 40px rgba(16,18,30,.14);animation:master-details-enter .18s ease-out}
body .master-details-drawer .mcard.master-details{width:100%;max-width:100%;min-height:100%;border-radius:0;padding:28px 28px 36px;box-shadow:none}
body .master-details-drawer .meyebrow{display:none}
body .master-details-drawer .mcard h2{font:400 28px/1.25 var(--diata-display,Georgia,serif);text-align:left;padding-right:42px;margin:0;color:#17191d}
body .master-details-drawer .msub{text-align:left;font:600 16px/1.45 Inter,system-ui;color:#20307f;margin:12px 40px 0 0;overflow-wrap:anywhere}
body .master-details-drawer .mrule{width:100%;height:1px;background:#e5e7ef;margin:22px 0}
body .master-details-section{padding:0 0 20px;margin:0 0 22px;border-bottom:1px solid #e5e7ef}
body .master-details-section h3{font:650 16px/1.4 Inter,system-ui;color:#20307f;margin:0 0 14px}
body .master-details-section h4{font:600 14px/1.4 Inter,system-ui;margin:20px 0 10px}
body .master-details-drawer .master-info-fields{margin:0;grid-template-columns:172px minmax(0,1fr);gap:8px 16px;align-items:stretch}
body .master-details-drawer .master-info-fields :is(dt,dd){display:flex;align-items:center;min-height:36px;margin:0;line-height:1.5}
body .master-details-drawer .master-info-fields dd{display:block;align-content:center;min-width:0}
body .master-details-drawer .master-info-fields .master-number-button{justify-content:flex-start;text-align:left;padding:0;border:0;min-width:44px;min-height:44px}
body .master-details-drawer .master-info-history h3{font-size:14px}
body .master-details-drawer .evidence-row{grid-template-columns:1fr;gap:10px}
body .master-details-drawer .evidence-row small{font-size:13px;line-height:1.5}
body .master-details-drawer .master-workspace-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body .master-details-drawer .master-workspace-actions .btn{font-size:13px;padding:10px;white-space:normal}
body .master-margin-view .master-table{min-width:930px}
body .master-margin-view .master-table :is(th,td):first-child{width:27%}
body .master-margin-view .master-table :is(th,td):not(:first-child){width:12%}
body .master-margin-view .master-table :is(th,td):last-child{width:13%}
@keyframes master-details-enter{from{transform:translateX(24px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){body .master-details-drawer #modalBox{animation:none}}
@media(max-width:600px){body .master-details-drawer .mcard.master-details{padding:24px 18px 32px}body .master-details-drawer .master-info-fields{grid-template-columns:128px minmax(0,1fr);gap:8px 12px}body .master-details-drawer .master-info-fields dd{margin:0}body .master-margin-view .master-table{min-width:0}}

/* Shared staff workflows use the same quiet white/navy surface as the homes.
   Identity, state, evidence and specialised camera/PIN controls keep their own rules. */
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app){--navy:#20307f;--bg:#fff;--line:#dbe3ef;--line2:#cbd7e7;background:#fff;color:#18234d;font:400 14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) h1,:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .page-head .h1,:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .ma-page-title{font:600 32px/1.2 Georgia,serif;color:#20307f;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.card,.mcard,.receive-step,.map-floor-card,.ma-card){border:1px solid #dbe3ef;border-radius:14px;box-shadow:none}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.card h2,.card h3,.mcard h3,.ma-card h2,.receive-step-title,.receive-override-card h3,.map-location-name,.ma-inventory-choice strong,.photo-group-title b,.person){font:600 18px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.sub,.lede,.hint,.field-help,.app-intro,.capture-help,.read-state):not(.error):not(.warning):not(.success){font-size:14px;line-height:1.5;color:#56657c}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.btn,.button,.primary,.secondary,.save,.send,.edit,.app-back,.ma-inventory-back,.back,.kb-back,.ops-task-refresh,.ops-segment,.ops-team-filter,.ma-inventory-nav button,.capture-actions button,.capture-actions a,.test-links a,.install-row a){min-height:44px;border-radius:10px;font:600 14px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:none}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #abc9e5;outline-offset:3px}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not(.pin),select,textarea){min-height:48px;max-width:100%;border:1px solid #cbd7e7;border-radius:10px;background:#fff;color:#18234d;font:400 16px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.row2,.row3,.row4)>*{min-width:0}
:is(body.kiosk,body.ma-app,body.front-desk-app) .main:has(.ops-task-head){max-width:850px;padding:24px 24px 50px}
body.kiosk .kioskbar{max-width:850px;margin:0 auto;align-items:flex-start;padding:24px 24px 4px;min-height:68px}
body.kiosk .kb-brand{margin:0 0 0 58px;font:700 11px/44px Inter,system-ui,sans-serif;letter-spacing:.2em;color:#20307f}
body.kiosk .kb-back{left:24px;top:24px;width:44px;height:44px;min-width:44px;font-size:22px}
body.kiosk .kb-tabs{background:#f3f6fb;align-self:center;max-width:100%}
body.kiosk .kb-tabs button{min-height:44px;font-size:14px}
body.kiosk .kb-tabs button.on{box-shadow:none}
:is(body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) main{padding-top:24px}
:is(body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .card{padding:20px}
:is(body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.brand,.wordmark){font:700 11px/1.5 Inter,system-ui,sans-serif;letter-spacing:.2em;color:#20307f}
body.staff-station-app .app-card{border:1px solid #dbe3ef;border-radius:14px;background:#fff;color:#20307f;box-shadow:none}
body.staff-station-app .app-icon{background:#edf4fc;color:#20307f;border-radius:14px}
body.staff-station-app .accent{height:1px;background:#dbe3ef;border-radius:0}
body.staff-station-app .app-card h2{font:600 18px/1.4 Inter,system-ui,sans-serif}
body.staff-opsview .top,body.staff-onboarding-app>header{background:#fff;color:#20307f;border-bottom:1px solid #dbe3ef;box-shadow:none}
body.staff-opsview .top .back{color:#20307f;display:inline-flex;align-items:center;padding:10px 14px;border:1px solid #dbe3ef}
body.staff-opsview .brand,body.staff-onboarding-app>header span{font:700 11px/1.5 Inter,system-ui,sans-serif;letter-spacing:.2em;color:#20307f}
body.staff-opsview .tag,body.staff-onboarding-app>header p{color:#56657c;font-size:14px;opacity:1}
body.staff-opsview .stat b{font:600 26px/1.3 Inter,system-ui,sans-serif}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) :is(.mcard h2,.dhead h2){font:600 28px/1.2 Georgia,serif;color:#20307f;letter-spacing:0;text-align:left;overflow-wrap:anywhere}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .dhead{background:#fff;color:#20307f;border-bottom:1px solid #dbe3ef;box-shadow:none}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .mcard h2{padding-right:52px}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .mcard .meyebrow{text-align:left;font:600 11px/1.5 Inter,system-ui,sans-serif;letter-spacing:.08em;color:#20307f;padding-right:52px}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .mcard .msub{text-align:left;font:400 14px/1.5 Inter,system-ui,sans-serif;font-style:normal;color:#56657c}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .mcard .mrule{width:100%;height:1px;background:#dbe3ef;margin:16px 0;border-radius:0}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .mcard .mx{display:flex;align-items:center;justify-content:center;top:14px;right:14px;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#20307f;font:400 22px/1 Inter,system-ui,sans-serif}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .dhead .eyebrow{color:#56657c;font:600 11px/1.5 Inter,system-ui,sans-serif;letter-spacing:.04em}
:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .dhead :is(.x,.team-dashboard-close){display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:44px;height:44px;flex:0 0 44px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#20307f;font:400 22px/1 Inter,system-ui,sans-serif;opacity:1}
/* Canonical Fill/Pack/Pickup/Return HTML keeps its source workflow and uses
   local presentation, including descendants with upstream serif declarations. */
body.staff-front-desk-capture{background:#fff!important}
body.staff-front-desk-capture :is(.wordmark,.wm,.app-brand){font:700 11px/1.5 Inter,system-ui,sans-serif;letter-spacing:.2em;color:#20307f}
body.staff-front-desk-capture :is(.cam-btn .t,.result .order,.q-item .order,.cf-title,.ord,.cat-btn .ct,.photo-btn .ctext,.initials-panel label,.lab,.bagnum,.next,.submit,.back,.bin-scan-btn){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.staff-front-desk-capture :is(.result .order,.q-item .order,.cf-title,.ord,.cat-btn .ct){font-size:18px;line-height:1.4;font-weight:600;letter-spacing:0}
body.staff-front-desk-capture :is(.next,.submit,.back,.bin-scan-btn,.photo-btn,.cam-btn,.cat-btn){min-height:44px;border-radius:10px}
body.staff-front-desk-capture :is(.next,.submit,.back,.bin-scan-btn){font-size:14px;line-height:1.35;font-weight:600}
body.staff-front-desk-capture :is(.cam-btn,.photo-btn){border-style:solid;box-shadow:none}
body.staff-front-desk-capture label{font:600 13px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0}
body.staff-front-desk-capture :is(label.opt,label .opt){font:400 12px/1.4 Inter,system-ui,sans-serif}
body.staff-front-desk-capture .bin-scan-btn small{font:400 13px/1.5 Inter,system-ui,sans-serif}
body.staff-front-desk-capture #initials{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:16px!important}
body.staff-front-desk-capture .top{background:#fff;color:#20307f;border-bottom:1px solid #dbe3ef;box-shadow:none}
body.staff-front-desk-capture .top .back{color:#20307f}
body.staff-front-desk-capture .top :is(.sub,.subtitle){color:#56657c}
body.kiosk .main:not(:has(>.staff-home)) h1,body.ma-app .main:not(:has(>.staff-home)) h1,body.front-desk-app .main:not(:has(>.staff-home)) h1{font:600 32px/1.2 Georgia,serif;color:#20307f;letter-spacing:0;white-space:normal;text-align:left}
body .main:has(#opsTaskList) .ops-task-head h1{font:600 32px/1.2 Georgia,serif;color:#20307f;letter-spacing:0;white-space:normal}
body .main:has(#opsTaskList) .ops-task-head h2{font:600 21px/1.3 Georgia,serif;color:#20307f;letter-spacing:0}
/* A task is a working item, so its title uses the same Inter hierarchy as a home card.
   ID scoping beats the old kiosk and late admin serif defaults without global !important. */
body #opsTaskList .ops-task-title{font:600 18px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20307f;letter-spacing:0;overflow-wrap:anywhere}
body #opsTaskList .ops-task-card{padding:18px;border:1px solid #dbe3ef;border-radius:14px;box-shadow:none;margin:0 0 12px}
body #opsTaskList :is(.ops-task-check,.ops-task-edit){width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;border-radius:10px}
body #opsTaskList .ops-task-heading{gap:12px}
body #opsTaskList :is(.ops-task-owner,.ops-task-assigned,.ops-task-details,.ops-task-latest,.ops-task-update){font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body #opsTaskList .ops-task-owner{font-weight:500}
body #opsTaskList .ops-task-footer{gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid #dbe3ef}
body #opsTaskList .ops-task-actions button{min-height:44px;padding:10px 14px;border-radius:10px;font:600 14px/1.35 Inter,system-ui,sans-serif}
body #opsTaskList .ops-task-more summary{min-height:44px;display:flex;align-items:center;font:500 13px/1.4 Inter,system-ui,sans-serif}
body .main:has(#opsTaskList) .ops-task-head .ops-app-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:16px;width:auto}
body .main:has(#opsTaskList) .ops-task-head .sub{text-align:left;max-width:none;margin-left:0;margin-right:0}
body .main:has(#opsTaskList) .ops-task-head .ops-app-actions .btn{flex:0 1 auto;width:auto;padding:10px 14px;min-height:44px;font:600 14px/1.35 Inter,system-ui,sans-serif}
body .ops-task-initials{background:#f8faff;border-color:#dbe3ef;padding:12px 14px;margin:0 0 12px;gap:12px}
body .ops-task-initials input{width:96px;flex:0 0 96px;min-height:48px;min-width:0}
body .ops-task-initials .hint{font-size:13px}
body .ops-task-controls{gap:10px;margin:12px 0 16px}
body .ops-task-controls .ops-segments{margin:0;padding:0;max-width:100%}
body .ops-task-controls .ops-segment,body .ops-team-filters .ops-team-filter{min-height:44px;padding:10px 14px;font-size:13px}
@media(max-width:620px){
  :is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) h1,:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .page-head .h1,:is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app,body.staff-capture,body.staff-clock-app,body.staff-setup-app,body.staff-station-app) .ma-page-title{font-size:28px}
  :is(body.kiosk,body.ma-app,body.front-desk-app) .main:has(.ops-task-head){padding:20px 16px 40px}
  body.kiosk .kioskbar{padding:18px 16px 4px}
  body.kiosk .kb-back{left:16px;top:18px}
  body .main:has(#opsTaskList) .ops-task-head h1{font-size:28px}
  body.kiosk .main:not(:has(>.staff-home)) h1,body.ma-app .main:not(:has(>.staff-home)) h1,body.front-desk-app .main:not(:has(>.staff-home)) h1{font-size:28px}
  body #opsTaskList .ops-task-card{padding:16px}
  body #opsTaskList .ops-task-title{font-size:17px}
  body #opsTaskList .ops-task-footer{align-items:flex-start;flex-wrap:wrap}
  body #opsTaskList .ops-task-more{flex:1 1 100%}
  body #opsTaskList .ops-task-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}
  body .ops-task-initials input{width:84px;flex-basis:84px}
  :is(body.staff-workflow,body.kiosk,body.ma-app,body.front-desk-app) :is(.row2,.row3,.row4){grid-template-columns:minmax(0,1fr)}
}

/* Role homes share the Front Desk's white surface and navy action cards.
   DOM order is priority order; Tasks is the first grid item on every role home. */
body:has(.staff-home:not([hidden])),body:has(.staff-workspaces){background:#fff}
body .main:has(>.staff-home),body .main:has(>.staff-workspaces){background:#fff}
body.kiosk.kiosk-home .main:has(>.staff-home),body.ma-app .main:has(>.staff-home){max-width:850px;padding:28px 24px 50px}
body .staff-home,body .staff-workspaces{max-width:850px;color:#20307f;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .staff-home.ma-launcher{margin:0 auto}
body .staff-home .station-wordmark{font:700 11px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.2em;text-align:left;color:#20307f}
body .staff-home h1,body .staff-workspaces .workspace-hero h1{font:600 36px/1.15 Georgia,serif;margin:18px 0 0;text-align:left;color:#20307f}
body .staff-home .staff-home-intro{margin:8px 0 26px;color:#56657c;font-size:15px;font-style:normal;line-height:1.5;text-align:left}
body .staff-home .ops-home-heading{display:block;margin:0}
body .staff-home .staff-home-grid,body .staff-workspaces .workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 28px}
body .staff-home .staff-home-tile,body .staff-workspaces .workspace-card{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-width:0;min-height:94px;margin:0;padding:17px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;color:#20307f;box-shadow:none;text-align:left;text-decoration:none;font:inherit;cursor:pointer;transition:background .13s,border-color .13s}
body .staff-home .staff-home-tile:hover,body .staff-workspaces .workspace-card:hover{background:#f3f7fd;border-color:#a8bee1;box-shadow:none;transform:none}
body .staff-home .staff-home-tile:active{transform:none}
body .staff-home .staff-home-tile:focus-visible,body .staff-workspaces .workspace-card:focus-visible,body .staff-home .app-help>summary:focus-visible{outline:3px solid #abc9e5;outline-offset:3px}
body .staff-home .staff-home-tile[hidden]{display:none!important}
body .staff-home .staff-home-icon,body .staff-workspaces .staff-home-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:11px;background:#edf4fc;color:#20307f}
body .staff-home .staff-home-icon svg,body .staff-workspaces .staff-home-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body .staff-home .staff-home-copy,body .staff-workspaces .staff-home-copy{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
body .staff-home .staff-home-copy b,body .staff-workspaces .workspace-card h3{display:block;margin:0;color:#20307f;font:600 18px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .staff-home .staff-home-copy small,body .staff-workspaces .workspace-card p{display:block;margin:4px 0 0;color:#56657c;font:400 14px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .staff-home .staff-home-arrow,body .staff-workspaces .staff-home-arrow{flex:0 0 auto;margin-left:auto;font-size:20px;color:#20307f}
body .staff-home .staff-home-tile.needs-attention{background:#20307f;border-color:#20307f;color:#fff}
body .staff-home .staff-home-tile.needs-attention:hover{background:#182563;border-color:#182563}
body .staff-home .staff-home-tile.needs-attention :is(.staff-home-copy b,.staff-home-copy small,.staff-home-arrow){color:#fff}
body .staff-home .staff-home-tile.needs-attention .staff-home-icon{background:#fff;color:#20307f}
body .staff-home .ops-tile-status{display:block;margin:8px 0 0;font:600 13px/1.4 Inter,system-ui,sans-serif;color:#20307f}
body .staff-home .ops-tile-status[hidden]{display:none}
body .staff-home .needs-attention .ops-tile-status{color:#fff}
body .staff-home .status-unavailable .ops-tile-status{color:#56657c}
body .staff-home .ops-attention-legend{margin:-12px 0 26px;color:#56657c;font:400 13px/1.5 Inter,system-ui,sans-serif}
body .staff-home .ops-team-workspaces{padding-top:18px;border-top:1px solid #dbe3ef}
body .staff-home .ma-tile-count{margin-top:5px;color:#56657c;font:600 13px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .staff-home .ma-visit-tile-warning{margin-top:5px;font-size:13px;text-align:left}
body .staff-home .app-help{margin-top:12px}
body .staff-home .app-help>summary{min-height:44px;width:fit-content;padding:12px 0;color:#20307f;font:600 14px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
body .staff-home .app-help>.staff-home-grid{margin-top:10px}
body .staff-home .staff-home-tasks{margin-top:26px;scroll-margin-top:24px}
body .staff-workspaces .workspace-hero{padding:0;border:0;background:#fff;box-shadow:none;border-radius:0;margin-bottom:26px}
body .staff-workspaces .workspace-hero .sub{margin-top:8px;color:#56657c;font-size:15px;line-height:1.5}
body .staff-workspaces .workspace-section-head h2{color:#20307f;font:600 21px Georgia,serif}
body .staff-workspaces .workspace-card-owner{display:block;margin-top:7px;padding:0;color:#56657c;font-size:12px;font-weight:600}
body .staff-workspaces .workspace-card.planned{border-style:dashed}
@media(max-width:600px){
  body.kiosk.kiosk-home .main:has(>.staff-home),body.ma-app .main:has(>.staff-home){padding:22px 16px 40px}
  body .staff-home h1,body .staff-workspaces .workspace-hero h1{font-size:32px}
  body .staff-home .staff-home-intro{font-size:14px;margin-bottom:22px}
  body .staff-home .staff-home-grid,body .staff-workspaces .workspace-grid{grid-template-columns:1fr;gap:10px;margin-bottom:22px}
  body .staff-home .staff-home-tile,body .staff-workspaces .workspace-card{min-height:88px;padding:15px;gap:12px}
  body .staff-home .staff-home-copy b,body .staff-workspaces .workspace-card h3{font-size:17px}
  body .staff-home .staff-home-copy small,body .staff-workspaces .workspace-card p{font-size:14px}
}

body .master-view-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
body #masterMobileSort{display:none;margin:0;min-height:44px}
body .master-category-option{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:8px 12px;text-transform:none;letter-spacing:normal;font:inherit;cursor:pointer}
body .master-category-option input{flex:0 0 20px;width:20px;height:20px;min-width:20px;margin:0;padding:0;accent-color:#20307f}
@media(max-width:1100px){body #masterMobileSort{display:inline-flex}}
