:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111;background:#fafafa;font-size:16px;--muted:#595959;--line:#d6d6d6}*{box-sizing:border-box}[hidden]{display:none!important}
body[data-mode=staff]{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f3f3f1;color:#111;line-height:1.4;overflow-wrap:break-word;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
body[data-mode=staff] button,body[data-mode=staff] .tool,body[data-mode=staff] .btn{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
body[data-mode=staff] button:disabled{cursor:not-allowed;opacity:.55}
body[data-mode=staff] :focus-visible{outline:3px solid #111;outline-offset:2px}
body[data-mode=staff] [tabindex="-1"]:focus{outline:none}
body[data-mode=staff] .i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-mode=staff] .i.fill{fill:currentColor;stroke:none}
body[data-mode=staff] .sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body[data-mode=staff] .bar{flex:none;position:relative;z-index:2;min-height:64px;display:flex;align-items:center;gap:14px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.08)}
body[data-mode=staff] .bar-title{display:contents}
body[data-mode=staff] .bar h1{order:0;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;font-size:18px;font-weight:700;letter-spacing:-.2px;line-height:1.2;white-space:nowrap}
body[data-mode=staff] .pill{order:1;flex:none;display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;background:#e3f2e8;color:#14532d;font-size:13px;font-weight:650;white-space:nowrap}
body[data-mode=staff] .pill .dot{width:8px;height:8px;background:#1f8a4c}
body[data-mode=staff] .pill.closed{background:#fbe6c8;color:#7a3d06}
body[data-mode=staff] .pill.closed .dot{background:#c46a0a}
body[data-mode=staff] .pill.locked{order:2;gap:6px;background:#e8e8e4;color:#2f2f2f}
body[data-mode=staff] .pill .i{width:14px;height:14px;stroke-width:2.2}
body[data-mode=staff] .updated{order:3;font-size:13px;color:#5c5c5c;font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-mode=staff] .updated.offline{color:#8f1d13;font-weight:650}
body[data-mode=staff] .bar-end{order:4;margin-left:auto;display:flex;align-items:center;gap:12px}
body[data-mode=staff] .who{min-width:0;display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
body[data-mode=staff] .who strong{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:650}
body[data-mode=staff] .who small{font-size:12px;color:#5c5c5c}
body[data-mode=staff] .tool{flex:none;min-height:44px;padding:0 14px;border-radius:8px;border:1px solid #c4c4bf;background:#fff;color:#111;font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none}
body[data-mode=staff] .icon-btn{width:44px;height:44px;flex:none;padding:0;border:0;border-radius:8px;background:transparent;color:#3d3d3d;display:inline-grid;place-items:center}
body[data-mode=staff] .icon-btn .i{width:22px;height:22px}
body[data-mode=staff] .unlock-btn{flex:none;min-height:48px;padding:0 22px;border:0;border-radius:8px;background:#111;color:#fff;font-size:16px;font-weight:650;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
body[data-mode=staff] .btn{min-height:52px;padding:0 18px;border-radius:10px;border:1px solid #c4c4bf;background:#fff;color:#111;font-size:16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;line-height:1.2}
body[data-mode=staff] .btn.dark{border-color:#111;background:#111;color:#fff;font-weight:650}
body[data-mode=staff] .danger{min-height:52px;padding:0 16px;border-radius:10px;border:1px solid #b42318;background:#fff;color:#8f1d13;font-size:15px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.2}
body[data-mode=staff] #notice{position:fixed;z-index:3;top:calc(72px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;border-radius:10px;background:#111;color:#fff;font-size:15px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.2)}
body[data-mode=staff] #notice:empty{display:none}
body[data-mode=staff] .tabbar{display:none}
body[data-mode=staff] .lanes{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
body[data-mode=staff] .lane{min-width:0;min-height:0;display:flex;flex-direction:column;border-radius:16px;padding:4px;background:#e9e9e5}
body[data-mode=staff] .lane-approval{background:#f6ecdc}
body[data-mode=staff] .lane-collect{background:#e5f0e8}
body[data-mode=staff] .lane-head{display:flex;align-items:center;gap:8px;padding:10px 10px 0}
body[data-mode=staff] .lane-head h2{margin:0;font-size:15px;font-weight:700;line-height:1.3}
body[data-mode=staff] .dot{width:10px;height:10px;flex:none;border-radius:50%;background:#8a8a85}
body[data-mode=staff] .lane-approval .dot,body[data-mode=staff] .tab-approval .dot{background:#c46a0a}
body[data-mode=staff] .lane-collect .dot,body[data-mode=staff] .tab-collect .dot{background:#1f8a4c}
body[data-mode=staff] .count{margin-left:auto;min-width:28px;height:24px;padding:0 8px;border-radius:999px;background:#d9d9d4;color:#2f2f2f;font-size:13px;font-weight:700;display:inline-grid;place-items:center;font-variant-numeric:tabular-nums}
body[data-mode=staff] .lane-approval .count,body[data-mode=staff] .tab-approval .count{background:#f1d9b5;color:#6b3505}
body[data-mode=staff] .lane-collect .count,body[data-mode=staff] .tab-collect .count{background:#cbe6d3;color:#14532d}
body[data-mode=staff] .lane-hint{margin:2px 10px 0 28px;font-size:13px;color:#5c5c5c}
body[data-mode=staff] .lane-body{flex:1;min-height:0;margin-top:10px;padding:2px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:6px;border-radius:12px}
body[data-mode=staff] .lane-empty{margin:6px;padding:20px 12px;border:1px dashed rgba(0,0,0,.18);border-radius:10px;text-align:center;font-size:14px;color:#5c5c5c}
body[data-mode=staff] .card{flex:none;position:relative;min-width:0;background:#fff;border-radius:10px;padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.06);touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body[data-mode=staff] .card.overdue{box-shadow:0 0 0 2px #b42318}
body[data-mode=staff] .card-head{display:flex;align-items:flex-start;gap:8px}
body[data-mode=staff] .card h3{margin:0;flex:1;min-width:0;font-size:17px;line-height:1.25;font-weight:650;text-wrap:balance}
body[data-mode=staff] .age{flex:none;padding-top:2px;font-size:13px;font-weight:600;color:#5c5c5c;font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-mode=staff] .more{margin:-11px -12px -11px -4px}
body[data-mode=staff] .more .i{width:20px;height:20px}
body[data-mode=staff] .card-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin-top:-4px;min-width:0;font-size:13px;color:#5c5c5c}
body[data-mode=staff] .sum{font-size:15px;font-weight:650;color:#111;font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-mode=staff] .chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:3px 10px;border-radius:999px;background:#ededea;color:#2f2f2f;font-size:13px;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums}
body[data-mode=staff] .chip .i{width:14px;height:14px;stroke-width:2.2}
body[data-mode=staff] .chip .dot{width:7px;height:7px;background:currentColor}
body[data-mode=staff] .chip.amber{background:#fbe6c8;color:#7a3d06}
body[data-mode=staff] .chip.red{background:#fde8e6;color:#8f1d13}
body[data-mode=staff] .chip.green{background:#e3f2e8;color:#14532d}
body[data-mode=staff] .note{margin:0;font-size:14px;line-height:1.4;color:#3d3d3d;text-wrap:pretty}
body[data-mode=staff] .items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
body[data-mode=staff] .items li{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:6px;font-size:17px;line-height:1.3}
body[data-mode=staff] .q{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
body[data-mode=staff] .expand{align-self:flex-start;min-height:44px;margin:-8px 0 -8px 42px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#111;font-size:14px;font-weight:650;display:inline-flex;align-items:center;gap:6px;text-decoration:underline;text-underline-offset:3px}
body[data-mode=staff] .expand .i{width:16px;height:16px;stroke-width:2.2}
body[data-mode=staff] .expand[aria-expanded=true] .i{transform:rotate(180deg)}
body[data-mode=staff] .primary{width:100%;min-height:52px;margin-top:2px;padding:0 14px;border:0;border-radius:8px;font-size:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;line-height:1.2}
body[data-mode=staff] .primary .i{width:20px;height:20px;stroke-width:2.4}
body[data-mode=staff] .approve{background:#ffc940;color:#1a1400}
body[data-mode=staff] .collect{background:#5fd9a5;color:#062016}
body[data-mode=staff] .needs-manager{margin:2px 0 0;min-height:44px;padding:8px 12px;border-radius:8px;background:#f6ecdc;color:#6b3505;font-size:14px;font-weight:650;display:flex;align-items:center}
body[data-mode=staff] .pair{margin:auto;width:min(480px,calc(100vw - 32px));padding:24px;border-radius:20px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 8px 24px rgba(0,0,0,.08)}
body[data-mode=staff] .pair h2{margin:0;font-size:22px;letter-spacing:-.3px}
body[data-mode=staff] .pair p{margin:6px 0 0;color:#5c5c5c}
body[data-mode=staff] .pair label{display:block;margin:18px 0 6px;font-size:14px;font-weight:650}
body[data-mode=staff] .pair .btn{width:100%;margin-top:14px}
body[data-mode=staff] input,body[data-mode=staff] select,body[data-mode=staff] textarea{width:100%;min-height:46px;margin:0;padding:0 12px;border:1px solid #999;border-radius:8px;background:#fff;color:#111;font:inherit;font-size:16px}
body[data-mode=staff] textarea{min-height:88px;padding:10px 12px;resize:vertical}
body[data-mode=staff] [aria-invalid=true]{border-color:#b42318;box-shadow:0 0 0 1px #b42318}
body[data-mode=staff] dialog{width:min(480px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:#111;box-shadow:0 24px 64px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.06);overflow:auto;overscroll-behavior:contain}
body[data-mode=staff] dialog::backdrop{background:rgba(17,17,17,.48)}
body[data-mode=staff] dialog.sheet-unlock{width:min(400px,calc(100vw - 24px))}
body[data-mode=staff] dialog.sheet-review{width:calc(100vw - 32px);height:calc(100dvh - 32px);overflow:hidden}
body[data-mode=staff] .sheet{padding:22px 24px 24px;display:flex;flex-direction:column;gap:16px}
body[data-mode=staff] .grab{display:none;align-self:center;width:36px;height:5px;border-radius:3px;background:#d0d0cc}
body[data-mode=staff] .sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body[data-mode=staff] .sheet-head>div{min-width:0}
body[data-mode=staff] .sheet-head .close{margin:-8px -10px 0 0}
body[data-mode=staff] .sheet h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.3px;line-height:1.2;text-wrap:balance}
body[data-mode=staff] .sheet .chip+h2{margin-top:10px}
body[data-mode=staff] .sheet-sub{margin:4px 0 0;font-size:14px;color:#5c5c5c}
body[data-mode=staff] .sheet-text{margin:0;font-size:15px;line-height:1.45;color:#3d3d3d}
body[data-mode=staff] .sheet-error{margin:0;padding:10px 12px;border-radius:10px;background:#fde8e6;color:#8f1d13;font-size:14px;font-weight:650;line-height:1.4}
body[data-mode=staff] .sheet-error:empty{display:none}
body[data-mode=staff] .sheet-actions{display:grid;grid-template-columns:1fr 2fr;gap:10px}
body[data-mode=staff] .sheet-actions.even{grid-template-columns:1fr 1fr}
body[data-mode=staff] .sheet label{display:block;margin:0 0 4px;font-size:13px;font-weight:650}
body[data-mode=staff] .sheet-form{display:flex;flex-direction:column;gap:12px}
body[data-mode=staff] .quote{margin:0;padding:10px 12px;border-left:3px solid #c46a0a;background:#fdf3e2;border-radius:0 10px 10px 0;font-size:15px;color:#3d3d3d}
body[data-mode=staff] .handover{list-style:none;margin:0;padding:12px 14px;border-radius:10px;background:#f3f3f1;display:flex;flex-direction:column;gap:6px}
body[data-mode=staff] .handover li{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:6px;font-size:17px;line-height:1.3}
body[data-mode=staff] .menu-list{display:flex;flex-direction:column;gap:8px}
body[data-mode=staff] .menu-list .btn,body[data-mode=staff] .menu-list .danger{width:100%}
body[data-mode=staff] .facts{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;font-size:14px}
body[data-mode=staff] .facts dt{color:#5c5c5c}
body[data-mode=staff] .facts dd{margin:0;font-weight:600;min-width:0}
body[data-mode=staff] .help-list{display:flex;flex-direction:column;gap:14px}
body[data-mode=staff] .help-list h3{margin:0 0 2px;display:flex;align-items:center;gap:8px;font-size:15px}
body[data-mode=staff] .help-list p{margin:0;font-size:14px;line-height:1.45;color:#3d3d3d}
body[data-mode=staff] .help-list .lane-approval,body[data-mode=staff] .help-list .lane-collect{background:none}
body[data-mode=staff] .pin{display:flex;flex-direction:column;align-items:center;gap:12px}
body[data-mode=staff] .pin-row{position:relative;padding:8px 12px;border-radius:12px}
body[data-mode=staff] .dots{display:flex;gap:16px}
body[data-mode=staff] .dots span{width:18px;height:18px;border-radius:50%;border:2px solid #9a9a95}
body[data-mode=staff] .dots span.on{border-color:#111;background:#111}
body[data-mode=staff] .pin-entry{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:12px;background:transparent;color:transparent;caret-color:transparent;font-size:16px;cursor:default}
body[data-mode=staff] .pin-entry:focus{outline:none}
body[data-mode=staff] .pin-entry:focus-visible{outline:3px solid #111;outline-offset:2px}
body[data-mode=staff] .pin-entry::-webkit-credentials-auto-fill-button{visibility:hidden;pointer-events:none}
body[data-mode=staff] .pin-status{margin:0;min-height:40px;font-size:14px;line-height:1.4;color:#5c5c5c;text-align:center;text-wrap:balance}
body[data-mode=staff] .pin .sheet-error{min-height:40px;padding:0;background:none;text-align:center;text-wrap:balance}
body[data-mode=staff] .pin .sheet-error:not(:empty)+.pin-status{display:none}
body[data-mode=staff] .keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body[data-mode=staff] .keypad button{height:66px;border:0;border-radius:12px;background:#f1f1ee;color:#111;font-size:27px;font-weight:600;font-variant-numeric:tabular-nums}
body[data-mode=staff] .keypad .quiet{background:transparent;color:#3d3d3d;font-size:15px;display:inline-grid;place-items:center}
body[data-mode=staff] .keypad .i{width:28px;height:28px}
body[data-mode=staff] .keypad button:active{background:#e2e2de}
body[data-mode=staff] dialog.sheet-review #dialog-body{height:100%}
body[data-mode=staff] .review{height:100%;display:flex;flex-direction:column}
body[data-mode=staff] .review-head{flex:none;display:flex;align-items:center;gap:14px;padding:14px 16px 14px 24px;box-shadow:0 1px 0 #ececea}
body[data-mode=staff] .review-head .title{flex:1;min-width:0}
body[data-mode=staff] .review-head h2{margin:0;font-size:21px;font-weight:700;letter-spacing:-.3px;line-height:1.25}
body[data-mode=staff] .review-head .sheet-sub{margin-top:2px}
body[data-mode=staff] .review-head .chip{align-self:center}
body[data-mode=staff] .review-who{font-size:14px;color:#5c5c5c;white-space:nowrap}
body[data-mode=staff] .review-who strong{color:#111;font-weight:650}
body[data-mode=staff] .review-main{flex:1;min-height:0;display:grid;grid-template-columns:470px minmax(0,1fr)}
body[data-mode=staff] .slip{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:#f1f1ee;box-shadow:1px 0 0 #e3e3df}
body[data-mode=staff] .slip-bar{flex:none;display:flex;align-items:center;gap:8px;padding:10px 12px 10px 20px}
body[data-mode=staff] .slip-bar p{margin:0;flex:1;min-width:0;font-size:13px;color:#5c5c5c}
body[data-mode=staff] .slip-bar .tool{font-size:14px}
body[data-mode=staff] .slip-frame{position:relative;flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;padding:8px 20px 20px}
body[data-mode=staff] .slip-img{flex:none;display:block;max-width:min(100%,460px);margin:0 auto;padding:0;border:0;border-radius:14px;background:transparent;cursor:zoom-in}
body[data-mode=staff] .slip-img img{display:block;max-width:100%;height:auto;border-radius:14px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 6px 18px rgba(0,0,0,.12)}
body[data-mode=staff] .slip.zoomed .slip-img{width:180%;max-width:none;cursor:zoom-out}
body[data-mode=staff] .slip.zoomed .slip-img img{width:100%;max-width:none}
body[data-mode=staff] .slip-missing{margin:24px auto;max-width:320px;padding:16px;border-radius:12px;background:#fff;color:#3d3d3d;font-size:14px;line-height:1.45;text-align:center}
body[data-mode=staff] .slip-hint{display:none}
body[data-mode=staff] .slip.full{position:fixed;inset:0;z-index:10;box-shadow:none}
body[data-mode=staff] .slip.full .slip-img img{max-height:calc(100dvh - 96px);width:auto}
body[data-mode=staff] .slip.full.zoomed .slip-img{width:auto}
body[data-mode=staff] .slip.full.zoomed .slip-img img{max-height:none;width:auto;max-width:none}
body[data-mode=staff] .review-side{min-width:0;min-height:0;display:flex;flex-direction:column}
body[data-mode=staff] .review-body{flex:1;min-height:0;overflow-y:auto;padding:18px 24px;display:flex;flex-direction:column;gap:16px}
body[data-mode=staff] .verdict{border-radius:12px;background:#fdf3e2;padding:12px 14px}
body[data-mode=staff] .verdict.ok{background:#e9f5ed}
body[data-mode=staff] .verdict h3{margin:0;font-size:15px;font-weight:650;color:#6b3505}
body[data-mode=staff] .verdict.ok h3{color:#14532d}
body[data-mode=staff] .verdict p,body[data-mode=staff] .verdict ul{margin:2px 0 0;font-size:14px;line-height:1.45;color:#3d3d3d}
body[data-mode=staff] .verdict ul{padding-left:20px}
body[data-mode=staff] .sec{margin:0 0 8px;font-size:15px;font-weight:700}
body[data-mode=staff] .hint{margin:-6px 0 10px;font-size:13px;color:#5c5c5c}
body[data-mode=staff] .ctable{border-radius:12px;box-shadow:0 0 0 1px #e3e3df;overflow:hidden}
body[data-mode=staff] .crow{display:grid;grid-template-columns:128px minmax(0,1fr) minmax(0,1fr) 92px;column-gap:12px;align-items:center;padding:10px 14px;box-shadow:inset 0 1px 0 #ececea;font-size:14px}
body[data-mode=staff] .crow.chead{padding:8px 14px;background:#fafaf8;box-shadow:none;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#5c5c5c}
body[data-mode=staff] .crow>.c-label{color:#5c5c5c}
body[data-mode=staff] .crow>.c-req,body[data-mode=staff] .crow>.c-slip{min-width:0;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body[data-mode=staff] .req-inline{display:none}
body[data-mode=staff] .check{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;background:#ededea;color:#2f2f2f;font-size:12px;font-weight:700;white-space:nowrap}
body[data-mode=staff] .check.ok{background:#e3f2e8;color:#14532d}
body[data-mode=staff] .check.warn{background:#fbe6c8;color:#7a3d06}
body[data-mode=staff] .check.bad{background:#fde8e6;color:#8f1d13}
body[data-mode=staff] .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
body[data-mode=staff] .fields .span2{grid-column:1/-1}
body[data-mode=staff] .review-foot{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 24px max(16px,env(safe-area-inset-bottom));box-shadow:0 -1px 0 #ececea}
body[data-mode=staff] .review-foot .sheet-error{flex-basis:100%}
body[data-mode=staff] .fine{margin:0;flex:1;min-width:200px;font-size:12px;line-height:1.4;color:#5c5c5c}
body[data-mode=staff] .foot-note{font-size:13px;color:#5c5c5c}
body[data-mode=staff] .review-foot .approve{width:auto;margin:0;padding:0 26px;border-radius:10px}
body[data-mode=staff] .narrow,body[data-mode=staff] .phone-only{display:none}
@media(hover:hover){body[data-mode=staff] .tool:hover,body[data-mode=staff] .btn:not(.dark):hover{background:#f3f3f1}body[data-mode=staff] .btn.dark:hover,body[data-mode=staff] .unlock-btn:hover{background:#333}body[data-mode=staff] .icon-btn:hover,body[data-mode=staff] .expand:hover{background:rgba(0,0,0,.05)}body[data-mode=staff] .approve:not(:disabled):hover{background:#f6bd25}body[data-mode=staff] .collect:not(:disabled):hover{background:#4dcf97}body[data-mode=staff] .danger:not(:disabled):hover{background:#fdf1f0}body[data-mode=staff] .keypad button:not(.quiet):hover{background:#e7e7e3}}
@media(prefers-reduced-motion:no-preference){body[data-mode=staff] dialog[open]{animation:staff-sheet-in .18s ease-out}body[data-mode=staff] dialog[open]::backdrop{animation:staff-fade-in .18s ease-out}body[data-mode=staff] .expand .i{transition:transform .15s ease}}
@keyframes staff-sheet-in{from{opacity:0;transform:translateY(12px)}}
@keyframes staff-fade-in{from{opacity:0}}
@media(max-width:999px){
body[data-mode=staff] .bar{gap:12px;padding-right:max(12px,env(safe-area-inset-right))}
body[data-mode=staff] .bar-title{min-width:0;display:flex;flex-direction:column;line-height:1.2}
body[data-mode=staff] .updated{font-size:12px}
body[data-mode=staff] .wide{display:none}
body[data-mode=staff] .narrow{display:inline}
body[data-mode=staff] .bar-end{gap:10px}
body[data-mode=staff] .tool{padding:0 12px}
body[data-mode=staff] .lanes{gap:8px;padding:10px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
body[data-mode=staff] .lane{border-radius:14px;padding:3px}
body[data-mode=staff] .lane-head{gap:7px;padding:9px 9px 0}
body[data-mode=staff] .lane-head h2{font-size:14px}
body[data-mode=staff] .lane-head .dot{width:9px;height:9px}
body[data-mode=staff] .count{min-width:26px;height:22px;padding:0 7px;font-size:12px}
body[data-mode=staff] .lane-hint{display:none}
body[data-mode=staff] .lane-body{margin-top:8px;gap:5px}
body[data-mode=staff] .card{border-radius:9px;padding:11px 12px 12px;gap:7px}
body[data-mode=staff] .card-head{gap:6px}
body[data-mode=staff] .card h3{font-size:16px}
body[data-mode=staff] .age{font-size:12px}
body[data-mode=staff] .more{margin:-11px -12px -11px -6px}
body[data-mode=staff] .more .i{width:18px;height:18px}
body[data-mode=staff] .card-meta{justify-content:flex-start;gap:0 10px;font-size:12px}
body[data-mode=staff] .card-meta .person{display:none}
body[data-mode=staff] .sum{font-size:14px}
body[data-mode=staff] .chip{min-height:24px;padding:3px 9px;font-size:12px}
body[data-mode=staff] .note{font-size:13px}
body[data-mode=staff] .items{gap:5px}
body[data-mode=staff] .items li{grid-template-columns:34px minmax(0,1fr);column-gap:5px;font-size:16px}
body[data-mode=staff] .expand{margin-left:32px;padding:0 6px;font-size:13px}
body[data-mode=staff] .primary{min-height:48px;margin-top:0;font-size:15px}
body[data-mode=staff] .review-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,44fr) minmax(0,56fr)}
body[data-mode=staff] .slip{box-shadow:0 1px 0 #e3e3df}
}
@media(max-width:699px){
body[data-mode=staff] .bar{min-height:58px;gap:10px;padding:3px max(6px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));box-shadow:none}
body[data-mode=staff] .bar h1{font-size:17px}
body[data-mode=staff] .bar-title{display:contents}
body[data-mode=staff] .updated,body[data-mode=staff] .pill.locked,body[data-mode=staff] .hide-phone,body[data-mode=staff] .who small{display:none}
body[data-mode=staff] .pill{height:26px;padding:0 10px;gap:6px;font-size:12px}
body[data-mode=staff] .pill .dot{width:7px;height:7px}
body[data-mode=staff] .bar-end{gap:4px}
body[data-mode=staff] .who{margin-right:4px}
body[data-mode=staff] .who strong{max-width:110px;font-size:14px}
body[data-mode=staff] .icon-btn.phone-only{display:inline-grid}
body[data-mode=staff] .btn.phone-only{display:inline-flex}
body[data-mode=staff] span.phone-only{display:inline}
body[data-mode=staff] .lock-btn{width:44px;padding:0;border:0;background:transparent}
body[data-mode=staff] .lock-btn .label{display:none}
body[data-mode=staff] .lock-btn .i{width:22px;height:22px}
body[data-mode=staff] .unlock-btn{min-height:44px;padding:0 16px;font-size:15px}
body[data-mode=staff] .tabbar{display:block;flex:none;position:relative;z-index:1;padding:4px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.08)}
body[data-mode=staff] .tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:13px;background:#ebebe7}
body[data-mode=staff] .tab{min-width:0;min-height:44px;padding:0 4px;border:0;border-radius:9px;background:transparent;color:#3d3d3d;font-size:14px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
body[data-mode=staff] .tab[aria-selected=true]{background:#fff;color:#111;box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px rgba(0,0,0,.06)}
body[data-mode=staff] .tab .dot{width:8px;height:8px}
body[data-mode=staff] .tab .count{margin-left:0;min-width:20px;height:20px;padding:0 6px;font-size:12px}
body[data-mode=staff] .lanes{display:flex;flex-direction:column;gap:0;padding:0}
body[data-mode=staff] .lane{flex:1;border-radius:0;padding:0;background:transparent}
body[data-mode=staff] .lane-head{display:none}
body[data-mode=staff] .lane-hint{display:block;margin:12px max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
body[data-mode=staff] .lane-body{margin-top:8px;padding:2px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:8px;border-radius:0}
body[data-mode=staff] .card{border-radius:12px;padding:12px 14px 14px;gap:8px}
body[data-mode=staff] .card-head{gap:8px}
body[data-mode=staff] .card h3{font-size:17px}
body[data-mode=staff] .age{font-size:13px}
body[data-mode=staff] .more{margin:-11px -12px -11px -4px}
body[data-mode=staff] .more .i{width:20px;height:20px}
body[data-mode=staff] .card-meta{justify-content:space-between;gap:2px 12px;font-size:13px}
body[data-mode=staff] .sum{font-size:15px}
body[data-mode=staff] .chip{min-height:26px;padding:3px 10px;font-size:13px}
body[data-mode=staff] .note{font-size:14px}
body[data-mode=staff] .items{gap:6px}
body[data-mode=staff] .items li{grid-template-columns:40px minmax(0,1fr);column-gap:6px;font-size:17px}
body[data-mode=staff] .expand{margin-left:38px;padding:0 8px;font-size:14px}
body[data-mode=staff] .primary{min-height:52px;border-radius:10px;font-size:16px}
body[data-mode=staff] dialog,body[data-mode=staff] dialog.sheet-unlock{width:100%;max-height:calc(100dvh - 24px);margin:auto 0 0;border-radius:20px 20px 0 0}
body[data-mode=staff] dialog.sheet-review{width:100%;height:100%;max-height:none;margin:0;border-radius:0}
body[data-mode=staff] .sheet{padding:10px 16px max(24px,env(safe-area-inset-bottom))}
body[data-mode=staff] .grab{display:block}
body[data-mode=staff] .sheet h2{font-size:21px}
body[data-mode=staff] .review-head{gap:4px;padding:8px 12px 8px 4px}
body[data-mode=staff] .review-head h2{font-size:18px}
body[data-mode=staff] .review-head .sheet-sub{margin:0;font-size:13px}
body[data-mode=staff] .review-main{display:block;overflow-y:auto;overscroll-behavior:contain}
body[data-mode=staff] .slip{margin:14px 16px 0;border-radius:14px;box-shadow:none;overflow:hidden}
body[data-mode=staff] .slip-bar{display:none}
body[data-mode=staff] .slip-frame{height:210px;overflow:hidden;padding:14px}
body[data-mode=staff] .slip-img img{max-height:182px;width:auto}
body[data-mode=staff] .slip-hint{display:inline-flex;position:absolute;right:10px;bottom:10px;align-items:center;height:34px;padding:0 12px;border-radius:999px;background:rgba(17,17,17,.82);color:#fff;font-size:13px;font-weight:650;pointer-events:none}
body[data-mode=staff] .slip.full{margin:0;border-radius:0}
body[data-mode=staff] .slip.full .slip-bar{display:flex}
body[data-mode=staff] .slip.full .slip-frame{height:auto;overflow:auto}
body[data-mode=staff] .slip.full .slip-img img{max-height:none;max-width:100%}
body[data-mode=staff] .slip.full .slip-hint{display:none}
body[data-mode=staff] .review-body{overflow:visible;padding:14px 16px;gap:14px}
body[data-mode=staff] .crow{grid-template-columns:minmax(0,1fr) auto;column-gap:10px;padding:10px 12px}
body[data-mode=staff] .crow.chead,body[data-mode=staff] .crow>.c-req{display:none}
body[data-mode=staff] .crow>.c-label{grid-column:1;font-size:12px}
body[data-mode=staff] .crow>.c-slip{grid-column:1;font-size:15px;font-weight:650}
body[data-mode=staff] .crow>.c-check{grid-column:2;grid-row:1/span 2}
body[data-mode=staff] .req-inline{display:inline}
body[data-mode=staff] .fields{grid-template-columns:minmax(0,1fr)}
body[data-mode=staff] .review-foot{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px 16px max(20px,env(safe-area-inset-bottom))}
body[data-mode=staff] .review-foot .sheet-error{grid-column:1/-1}
body[data-mode=staff] .fine,body[data-mode=staff] .foot-note{display:none}
body[data-mode=staff] .review-foot .approve{width:100%;padding:0 12px}
}
@media(max-width:699px) and (prefers-reduced-motion:no-preference){body[data-mode=staff] dialog[open]{animation-name:staff-sheet-up}}
@keyframes staff-sheet-up{from{transform:translateY(40px);opacity:.6}}
