:root{--work-ink:#202b3c;--work-muted:#526175;--work-line:#e2e7ee;--work-bg:#f3f5f8;--tblr-primary:#2563eb;--tblr-body-bg:#f3f5f8;--tblr-body-color:#202b3c;--workspace-accent:#2563eb}
.cn-time-picker{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.cn-time-picker label{min-width:0}.cn-time-picker input{min-width:0;width:100%;min-height:44px}
[data-page=skus] .table-thumbnail{position:relative;display:grid;place-items:center;width:72px;height:72px;min-width:72px;overflow:hidden;background:#edf0f3;border:1px solid #dbe2ea;border-radius:5px;font-size:12px;color:#526175;text-align:center}
[data-page=skus] .table-thumbnail img{width:72px;height:72px;max-width:72px;object-fit:contain;margin:0;background:#edf0f3}
.table-thumbnail [data-thumbnail-loading]{position:absolute;inset:0;display:grid;place-items:center;background:#edf0f3;color:#526175;font-size:12px}
.table-thumbnail[data-image-state=loaded] [data-thumbnail-loading],.table-thumbnail[data-image-state=error] [data-thumbnail-loading]{display:none}.table-thumbnail[data-image-state=error] img{display:none}.table-thumbnail .thumbnail-error{position:absolute;inset:0;display:grid;place-items:center;padding:6px;font-size:12px;line-height:1.5;background:#fff6e8;color:#73502c}
body{background:var(--work-bg);color:var(--work-ink);font-size:14px;line-height:1.55}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}
.layout{display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr)}
.layout>.sidebar{grid-column:1;grid-row:1/3;position:fixed;inset:0 auto 0 0;width:224px;height:100dvh;overflow-y:auto;background:#fff;padding:28px 16px 20px;border-right:1px solid var(--work-line);display:flex;flex-direction:column;z-index:20}
.brand{font-size:22px;letter-spacing:0;padding:0 12px 26px;color:var(--work-ink)}
.sidebar nav.nav{gap:24px;display:flex;flex-direction:column}
.nav-group h2{font-size:12px;color:#526175;font-weight:500;margin:0 0 6px;padding:0 12px}
.sidebar a.nav-link{color:#475569;min-height:42px;padding:10px 12px;margin:2px 0;border:0;border-radius:6px;font-weight:500;display:flex;align-items:center}
.sidebar a.nav-link.active{background:#edf3ff;color:#1d4ed8;font-weight:650;border:0}
.sidebar a.nav-link:hover{background:#f3f5f8}.sidebar footer{position:static;margin-top:auto;padding:32px 12px 0;font-size:11px;color:#526175}
.layout>header.navbar{grid-column:2;grid-row:1;position:sticky;top:0;z-index:15;min-height:64px;height:64px;padding:0 32px;background:#fff;border-bottom:1px solid var(--work-line)}
.layout>.main.page-wrapper{grid-column:2;grid-row:2;display:block;min-width:0}
main{padding:28px 32px;max-width:1680px;margin:0 auto;min-width:0}
.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px;min-width:0}
h1{font-size:24px;line-height:1.35;margin:0;font-weight:650}h2{font-size:17px;font-weight:600;margin:0 0 16px}h3{font-size:15px}
.heading p{margin:6px 0 0;font-size:13px}.panel.card{border:1px solid var(--work-line);border-radius:8px;box-shadow:none;padding:24px;margin-bottom:20px;background:#fff}
.panel .panel{box-shadow:none}.filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:16px}
.filter>label{flex:1 1 180px;min-width:0}.filter input,.filter select{width:100%}
button.btn,button.primary{min-height:40px;border-radius:6px;padding:8px 14px;box-shadow:none;font-size:14px}
button.btn-primary,button.primary{background:#2563eb;border-color:#2563eb;color:#fff}button.btn-primary:hover,button.primary:hover{background:#1d4ed8}
.account-actions{display:flex;align-items:center;gap:16px}.account-actions button{padding:6px 10px;min-height:36px}
.form-grid{gap:16px 20px}.form-grid>label{min-width:0}label.form-label{font-size:14px;gap:7px}
input.form-control,select.form-select{min-height:42px;border-color:#aeb9c7;border-radius:5px}
.muted,small{color:var(--work-muted)}.notice{line-height:1.55;font-size:13px;border-radius:6px}
.status-tabs{display:flex;gap:4px;border-bottom:1px solid var(--work-line);margin:12px 0 16px;overflow-x:auto}
.status-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;min-height:44px;padding:10px 16px;white-space:nowrap;color:#526175}
.status-tabs button[aria-pressed=true]{color:#1d4ed8;border-bottom-color:#2563eb;font-weight:650}.status-tabs span{font-size:12px;padding-left:4px}
.gallery-toggle{display:flex;justify-content:flex-end;gap:6px;margin:0 0 12px}.gallery-toggle button{min-height:34px;font-size:12px;padding:5px 10px}
.artwork-workspace>.filter>.gallery-toggle{flex:0 0 auto;margin:0;height:42px;align-items:center}.artwork-workspace>.filter{margin:0 0 12px}.artwork-workspace>.status-tabs{margin:0 0 12px}.artwork-workspace>.bulk-workspace{margin-bottom:8px}
.sku-tile.card{position:relative}.sku-tile.card>.bulk-check{position:absolute;left:20px;top:20px;z-index:1;background:#fff;border:1px solid #d4dce8;border-radius:4px;padding:2px 6px;font-size:12px;min-height:28px}.sku-tile.card>.bulk-check input{margin:0}.sku-tile.card>.bulk-check:focus-within{outline:3px solid #2563eb}
.sidebar a.nav-link svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;stroke-width:1.7;fill:none;margin-right:12px}
.sku-tile.card>.art-link{display:block;width:100%;height:216px;padding:0!important;margin:0 0 10px!important;border:0!important;background:#f8fafc!important;min-height:0;overflow:hidden;border-radius:4px}
.art-link>img{display:block;width:100%;height:100%;object-fit:contain;background-color:#fafbfc;background-image:linear-gradient(45deg,#e9edf2 25%,transparent 25%),linear-gradient(-45deg,#e9edf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf2 75%),linear-gradient(-45deg,transparent 75%,#e9edf2 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.sku-tile.card>strong{display:block;line-height:20px;max-height:40px;overflow:hidden;font-size:13px;margin:0}.sku-tile.card>.sku-owner-line{display:flex;gap:8px;justify-content:space-between;font-size:12px;color:#526175;margin:6px 0 8px;line-height:18px}.sku-owner-line>span{white-space:nowrap}
.sku-tile-footer{display:flex;align-items:center;gap:6px;min-height:32px;flex-wrap:wrap}.sku-tile-footer .badge{font-size:11px;padding:4px 6px}.sku-tile-footer small{font-size:11px}.sku-tile-footer>.sku-open{margin-left:auto;background:transparent;color:#2563eb;border:0;padding:4px 6px;min-height:32px;font-size:12px}
[data-page=payroll] .cols>section>[data-open-dialog]{display:inline-flex;width:auto!important;margin:8px 8px 0 0;min-height:40px}
.sku-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px}
.sku-tile.card{border:1px solid var(--work-line);border-radius:7px;box-shadow:none;padding:12px;min-width:0;overflow:hidden;background:#fff}
.sku-tile>img{width:100%;height:216px;object-fit:contain;background-color:#fafbfc;background-image:linear-gradient(45deg,#e9edf2 25%,transparent 25%),linear-gradient(-45deg,#e9edf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf2 75%),linear-gradient(-45deg,transparent 75%,#e9edf2 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;border-radius:4px;margin-bottom:12px}
.sku-tile>strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.sku-tile>p{margin:6px 0;font-size:12px}.sku-tile>small{margin:0 0 8px}
.sku-tile>button{margin-top:8px;width:100%;background:#fff;color:#2563eb}.sku-tile>.bulk-check{min-height:28px;font-size:12px;margin:0 0 8px}
.bulk-workspace{padding:0;background:transparent;border:0;margin:0 0 12px;border-radius:0}.bulk-selection-line{display:flex;align-items:center;gap:16px;font-size:12px;color:#526175}.bulk-selection-line .bulk-check{min-height:28px;font-size:12px;margin:0}.bulk-workspace>.filter{background:#edf3ff;border:1px solid #d7e4ff;padding:12px;border-radius:6px;margin-top:10px}.bulk-workspace>.filter>label{flex:1 1 160px}
.bulk-preview-list{max-height:440px;overflow-y:auto}.bulk-preview-row{padding:12px}.bulk-preview-row img{background:#f3f5f8}
.rules-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:24px;padding:8px 0 24px;border-bottom:1px solid var(--work-line)}
.rules-overview div{display:flex;flex-direction:column;gap:8px}.rules-overview span{color:#526175;font-size:13px}.rules-overview strong{font-size:22px;font-weight:600}
.empty-workspace{padding:48px 24px;background:#fff;border:1px dashed #b9c5d5;border-radius:8px;text-align:center;margin-bottom:20px}.empty-workspace p{color:#526175}
.inline-help,.task-history,.payroll-evidence{margin:12px 0}.inline-help summary,.payroll-evidence summary{font-size:13px;color:#526175;min-height:36px}
.task-card{padding:20px!important;box-shadow:none;border-radius:7px!important}.task-card p{font-size:13px;margin:8px 0}.task-description{color:#526175}.task-card h3{font-size:17px}
.attendance-overview{grid-template-columns:minmax(300px,.9fr) minmax(400px,1.1fr);gap:24px}.clock{font-size:52px;font-weight:500;letter-spacing:0}.attendance-primary .notice{font-size:13px}.attendance-primary>button{font-size:13px}
.dialog-open{overflow:hidden}
dialog.workspace-dialog{position:fixed;inset:0;margin:auto;width:min(680px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 64px);padding:0;border:1px solid #d5dde8;border-radius:12px;background:#fff;color:var(--work-ink);box-shadow:0 24px 100px #17294240;overflow:hidden}
dialog.workspace-dialog.dialog-wide{width:min(1080px,calc(100vw - 64px))}
dialog.workspace-dialog::backdrop{background:rgba(20,32,49,.52);backdrop-filter:blur(2px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--work-line);background:#fff;min-height:72px}
.dialog-heading h2{font-size:19px;margin:0;overflow-wrap:anywhere;min-width:0}.dialog-close{flex:0 0 auto;background:#fff!important;color:#475569!important}
.dialog-body{padding:24px;overflow-y:auto;max-height:calc(100dvh - 144px);overscroll-behavior:contain}
.dialog-body>.panel,.dialog-body>details{border:0!important;padding:0!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
.dialog-body form>.actions{position:sticky;bottom:-24px;background:#fff;padding:16px 0;margin:20px 0 -24px;border-top:1px solid var(--work-line);z-index:2}
.dialog-body .panel form>.actions{bottom:0;margin-bottom:0}
#art-review-dialog{width:min(1320px,calc(100vw - 64px))}#art-review-dialog>.dialog-body{padding:0;overflow:hidden}
.review-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,1fr);height:min(730px,calc(100dvh - 160px))}
.review-canvas{display:flex;flex-direction:column;background:#f3f5f8;min-width:0;padding:16px;overflow:hidden}
.image-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:40px;margin-bottom:12px}.image-tools button{background:#fff;border:1px solid #c7d0dc;border-radius:5px;min-height:36px;padding:6px 10px;font-size:12px}.image-tools span{font-size:12px;color:#526175;margin-left:auto}
.art-viewport{overflow:auto;display:block;flex:1;min-height:260px;min-width:0;overscroll-behavior:contain;background-color:#fff;background-image:linear-gradient(45deg,#e7ebef 25%,transparent 25%),linear-gradient(-45deg,#e7ebef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7ebef 75%),linear-gradient(-45deg,transparent 75%,#e7ebef 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #dce3eb;border-radius:6px}
.art-viewport img.review-image{display:block;width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain;cursor:zoom-in;margin:auto}
.image-quality-note{font-size:12px;color:#526175;margin:10px 0 0}
.review-inspector{overflow-y:auto;padding:20px 24px;min-width:0;background:#fff}.review-inspector .panel{border:0;padding:0;box-shadow:none}.review-inspector h2{display:none}
.review-tabs{display:flex;gap:4px;border-bottom:1px solid var(--work-line);margin:0 0 20px;position:sticky;top:-20px;background:#fff;z-index:3;padding-top:8px}
.review-tabs button{padding:10px 12px;border:0;border-radius:0;border-bottom:2px solid transparent;background:#fff;color:#526175;min-height:44px;font-size:13px}.review-tabs button[aria-selected=true]{color:#1d4ed8;border-bottom-color:#2563eb}
.review-inspector .detail{grid-template-columns:110px minmax(0,1fr);font-size:13px}.review-inspector details{margin:14px 0}.review-inspector form>.actions{position:static;margin:20px 0 0;padding:16px 0 0}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(min-width:861px){#navigation-toggle{display:none}.layout>.sidebar nav{overflow:visible}}
@media(max-width:1100px){.attendance-overview{grid-template-columns:1fr 1fr}.review-layout{grid-template-columns:minmax(0,1fr) minmax(320px,1fr)}.image-tools span{margin-left:0}}
@media(max-width:860px){
 .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.layout>header.navbar{grid-column:1;grid-row:1;padding:10px 16px;height:auto;min-height:64px;gap:8px}.layout>.main.page-wrapper{grid-column:1;grid-row:2;display:block}
 .layout>.sidebar{display:none;position:fixed;inset:64px auto 0 0;height:calc(100dvh - 64px);width:min(280px,85vw);padding:20px 16px;box-shadow:16px 0 40px #18243320}.layout.nav-open>.sidebar{display:flex}.sidebar .brand{display:none}.sidebar footer{display:block}.sidebar nav.nav{gap:20px}
 #navigation-toggle{display:inline-flex;min-height:44px}main{padding:20px 16px}.heading{align-items:flex-start;margin-bottom:20px}.heading h1{font-size:22px}.account-actions{gap:8px}.account-role{display:none}.account-actions button{font-size:12px;min-height:40px}
 .attendance-overview{grid-template-columns:1fr}.rules-overview{grid-template-columns:1fr 1fr}.panel.card{padding:18px}.sku-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sku-tile>img{height:200px}.sku-tile.card{padding:10px}.sku-tile>strong{font-size:13px}.sku-tile>p{font-size:12px}
 .status-tabs button{padding:10px 12px}.status-tabs{margin-top:0}button.btn,button.primary{min-height:44px}.filter>label{flex:1 1 140px}.bulk-workspace>.filter>label{flex:1 1 120px}
 dialog.workspace-dialog,dialog.workspace-dialog.dialog-wide,#art-review-dialog{width:100vw;height:100dvh;max-height:100dvh;inset:0;border:0;border-radius:0;margin:0}
 .dialog-heading{padding:14px 16px;min-height:64px}.dialog-heading h2{font-size:18px}.dialog-body{padding:20px 16px;max-height:calc(100dvh - 64px)}.dialog-body form>.actions{bottom:-20px;margin-bottom:-20px}
 #art-review-dialog>.dialog-body{overflow-y:auto}.review-layout{display:flex;flex-direction:column;height:auto}.review-canvas{height:46dvh;min-height:320px;padding:12px;flex-shrink:0}.review-inspector{overflow:visible;padding:16px}.review-tabs{top:0}.image-tools button{min-height:44px}.art-viewport{min-height:180px}
}
@media(max-width:400px){.account-actions strong{display:none}.account-actions{width:auto;margin-left:auto}.page-context{gap:8px}.sku-tile>img{height:200px}.heading>button{white-space:nowrap;padding:8px 12px}.form-grid{grid-template-columns:1fr}.status-tabs button{padding:10px}.image-tools{gap:6px}.image-tools button{padding:6px 8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* R3: allocate the real header height before the scrollable business surface. */
dialog.workspace-dialog[open]{display:flex;flex-direction:column;max-height:calc(var(--workspace-viewport-height,100dvh) - 64px)}
.dialog-heading{flex:0 0 auto;min-height:72px}
.dialog-heading h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.4;max-height:2.8em}
.dialog-body{flex:1 1 auto;min-height:0;max-height:none}
#art-review-dialog[open]{height:min(840px,calc(var(--workspace-viewport-height,100dvh) - 64px))}
#art-review-dialog>.dialog-body{display:flex;flex-direction:column;overflow:auto;min-height:0}
.review-code{flex:0 0 auto;padding:8px 20px;margin:0;border-bottom:1px solid var(--work-line);font-size:12px;color:#526175}
.review-code summary{min-height:28px;padding:2px 0}.review-code p{user-select:text;white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto;color:var(--work-ink);margin:8px 0}
.review-layout{flex:1 1 auto;min-height:0;height:auto}
.review-canvas{min-height:0}.art-viewport{min-height:0;touch-action:pan-y;scrollbar-gutter:stable;cursor:default;position:relative}
.art-stage{display:grid;place-items:center;min-width:100%;min-height:100%}
.art-viewport .art-stage>img.review-image{margin:0;object-fit:contain;cursor:inherit;user-select:none;-webkit-user-drag:none}
.art-viewport[data-pannable=true]{cursor:grab;touch-action:none}.art-viewport.is-panning{cursor:grabbing}
.art-viewport[data-pannable=false]{touch-action:pan-y;overscroll-behavior:auto}
.image-tools output{font-size:12px;min-width:48px;text-align:center;font-variant-numeric:tabular-nums;color:var(--work-ink)}
@media(max-width:860px){
 dialog.workspace-dialog[open],dialog.workspace-dialog.dialog-wide[open],#art-review-dialog[open]{height:var(--workspace-viewport-height,100dvh);max-height:var(--workspace-viewport-height,100dvh);top:var(--workspace-viewport-top,0px);bottom:auto}
 .dialog-heading{min-height:64px}.dialog-body{max-height:none;min-height:0;flex:1 1 auto}
 #art-review-dialog>.dialog-body{display:block;overflow:auto}
 .review-layout{display:flex;flex-direction:column;height:auto;min-height:0}
 .review-canvas{height:clamp(180px,calc(var(--workspace-viewport-height,100dvh)*.46),420px);min-height:0;flex:0 0 auto}
 .image-tools{flex:0 0 auto;min-height:0;gap:6px;margin-bottom:8px}.image-tools button{padding:6px 8px}.image-tools span{font-size:11px}.image-quality-note{font-size:11px;margin-top:6px}
 .review-inspector{overflow:visible;flex:0 0 auto}.review-code{padding:6px 16px}
}
#image-preview,#task-image-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
[data-upload-summary]{grid-column:1/-1;order:999;margin:0}
.upload-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;padding:14px;border:1px solid var(--work-line);border-radius:7px;min-width:0;background:#fff}
.upload-thumb{height:144px;min-width:0;display:grid;place-items:center;border-radius:4px;overflow:hidden;background-color:#f8fafc;background-image:linear-gradient(45deg,#e4e9ef 25%,transparent 25%),linear-gradient(-45deg,#e4e9ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e4e9ef 75%),linear-gradient(-45deg,transparent 75%,#e4e9ef 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.upload-thumb img{width:100%;height:144px;object-fit:contain}.upload-thumb span{font-size:12px;line-height:1.6;text-align:center;padding:12px;color:#526175;background:#f8fafcd9}
.upload-fields{min-width:0}.upload-fields input{width:100%}.upload-fields .upload-filename{font-size:12px;color:#526175;overflow-wrap:anywhere;max-height:3.2em;overflow:auto;margin:8px 0;line-height:1.6}.upload-status{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:6px 0;min-height:20px}.upload-card[data-status=success]{border-color:#a8d3ba}.upload-card[data-status=error],.upload-card[data-status=unknown]{border-color:#e0ad83}
.upload-fields>[data-remove-upload]{font-size:12px;min-height:36px;padding:6px 10px;margin-top:6px;background:#fff;color:#526175;border:1px solid #cbd4df;border-radius:5px}
.dialog-body{scroll-padding-top:16px;scroll-padding-bottom:88px}
@media(max-width:640px){#image-preview,#task-image-preview{grid-template-columns:minmax(0,1fr);gap:12px}.upload-card{grid-template-columns:96px minmax(0,1fr);padding:12px;gap:12px}.upload-thumb,.upload-thumb img{height:132px}.upload-fields>[data-remove-upload]{min-height:44px}.upload-fields input{min-height:44px}}
/* Shared toolbars align label and control starts, not unequal bottom edges. */
.filter{align-items:flex-start}
.filter>label.toolbar-field{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--toolbar-label-height,20px) auto;gap:6px;align-content:start}
.toolbar-label{align-self:start;line-height:20px;min-height:20px;font-weight:500}
.filter input.form-control,.filter select.form-select,.filter textarea.form-control,.form-grid input.form-control,.form-grid select.form-select{min-height:44px;height:44px}
.filter textarea.form-control{resize:vertical;max-height:160px;overflow:auto;line-height:20px;min-height:44px;height:44px;padding-top:10px;padding-bottom:10px}
.filter>.toolbar-action{margin-top:calc(var(--toolbar-label-height,20px) + 6px);min-height:44px}
.filter>button.toolbar-action,.filter .gallery-toggle button{height:44px;min-height:44px}
.artwork-workspace>.filter>.gallery-toggle.toolbar-action{margin-top:calc(var(--toolbar-label-height,20px) + 6px);height:44px}
.calendar-toolbar input,.calendar-toolbar button{min-height:44px}
@media(max-width:640px){.filter>label,.bulk-workspace>.filter>label{flex:1 1 100%;width:100%;min-width:0}.filter input,.filter select,.filter textarea{min-width:0;width:100%;max-width:100%;box-sizing:border-box}.filter>.toolbar-action,.artwork-workspace>.filter>.gallery-toggle.toolbar-action{margin-top:0}.filter>button.toolbar-action{width:100%}.filter>.gallery-toggle.toolbar-action{justify-content:flex-start}.filter>.gallery-toggle button{min-width:64px}}
.task-example-drafts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.task-example-strip{display:flex;align-items:center;gap:8px;margin:14px 0;flex-wrap:wrap}.task-example-strip>button{padding:0;border:0;background:transparent;min-height:44px}.task-example-strip img{width:64px;height:64px;object-fit:contain;background:#f3f5f8;border:1px solid var(--work-line);border-radius:4px}.task-example-strip>.example-count{padding:8px;color:#2563eb}
#task-examples-dialog[open]{height:min(840px,calc(var(--workspace-viewport-height,100dvh) - 64px))}
#task-examples-dialog>.dialog-body{display:flex;flex-direction:column;min-height:0;overflow:auto;gap:8px}
#task-examples-dialog .art-viewport{flex:1 0 120px;min-height:120px;max-height:none}
.task-example-description{font-size:13px;flex:0 0 auto}.task-example-description p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto}
.task-example-choices{display:flex;gap:8px;overflow:auto;flex:0 0 auto;padding:3px}
.task-example-choices>button{width:64px;height:64px;min-width:64px;min-height:64px;padding:2px;border:1px solid var(--work-line);border-radius:4px;position:relative;background:#f8fafc}
.task-example-choices img{width:100%;height:100%;object-fit:contain}.task-example-choices span{position:absolute;bottom:2px;right:3px;background:#fff;padding:0 3px;font-size:11px}.task-example-choices button[aria-pressed=true]{outline:2px solid #2563eb}
#task-example-caption,#task-examples-status{margin:0;font-size:13px;overflow-wrap:anywhere;flex:0 0 auto}
@media(max-width:640px){.task-example-drafts{grid-template-columns:minmax(0,1fr)}#task-examples-dialog[open]{height:var(--workspace-viewport-height,100dvh);max-height:var(--workspace-viewport-height,100dvh)}#task-examples-dialog>.dialog-body{padding:16px}.task-example-choices>button{width:56px;height:56px;min-width:56px;min-height:56px}}
/* R5 business record entries use explicit actions and retain a quiet hierarchy. */
wb-disclosure{display:block;min-width:0;margin:10px 0}wb-disclosure .disclosure-content{min-width:0}wb-disclosure>.disclosure-trigger{display:flex;align-items:center;gap:10px;min-height:44px;max-width:100%;text-align:left;white-space:normal;padding:10px 12px;background:#f8fafc;border:1px solid var(--work-line);color:var(--work-ink)}
.disclosure-icon{display:flex;flex:0 0 18px}.disclosure-icon svg,.task-record-entry svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6}.disclosure-title{overflow-wrap:anywhere;font-weight:500}[data-disclosure-state]{color:var(--work-muted);font-size:12px;margin-left:auto;white-space:nowrap}
wb-disclosure[data-expanded=true]>.disclosure-trigger .disclosure-icon svg path{d:path('M5 12h14')}
wb-disclosure[data-disclosure-mode=inline]>.disclosure-content{padding:14px 0 4px;border-top:1px solid var(--work-line);margin-top:8px}.workspace-disclosure.panel{padding:16px}.workspace-disclosure.notice{background:#fff8e8}
.task-card{padding:24px;border:1px solid var(--work-line);background:white;border-radius:8px;margin-bottom:16px;min-width:0}.task-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.task-card-heading h3{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}.task-assignee{color:var(--work-muted);margin:6px 0 0}.task-description{margin:16px 0}.task-description p{white-space:pre-wrap;overflow-wrap:anywhere}.task-delivery{padding:16px 0;border-top:1px solid var(--work-line);border-bottom:1px solid var(--work-line)}.task-delivery>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.task-delivery strong{font-size:28px;line-height:1.2}.task-delivery small{font-size:14px;font-weight:400;color:var(--work-muted)}.task-delivery span{font-size:13px;color:var(--work-muted)}.task-delivery progress{height:6px;margin:12px 0 0;width:100%;accent-color:#2563eb}
.task-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.task-metrics dt{font-size:12px;color:var(--work-muted);font-weight:400}.task-metrics dd{margin:4px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}.task-card-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid var(--work-line)}.task-card-footer .actions{margin:0}.task-record-entry{display:flex;gap:8px;align-items:center;min-height:44px}.task-record-entry strong{padding:0 6px;background:#edf3ff;border-radius:4px;font-size:12px}.task-history-entry{min-height:44px;margin-top:4px}
.task-work-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.task-work-item{border:1px solid var(--work-line);border-radius:6px;overflow:hidden;min-width:0}.task-work-image{display:flex;align-items:center;justify-content:center;width:100%;height:210px;padding:12px;background:#f3f5f8;border:0}.task-work-image img{width:100%;height:100%;object-fit:contain}.task-work-item>div{padding:16px}.task-work-item h3{overflow-wrap:anywhere;margin:0 0 8px}.task-work-item p{margin:8px 0}.task-work-status{display:flex;align-items:flex-start;flex-direction:column;gap:8px;margin:12px 0;color:var(--work-muted);font-size:12px}.task-work-item .btn{min-height:44px}
.task-claim-timeline{list-style:none;padding:0 0 0 20px;margin:0;border-left:2px solid #d7e4ff}.task-claim-timeline li{position:relative;padding:0 0 24px 12px}.task-claim-timeline li:before{content:'';width:10px;height:10px;position:absolute;left:-26px;top:6px;border:2px solid #2563eb;border-radius:50%;background:white}.task-claim-timeline li>div{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.task-claim-timeline strong,.claim-reason{overflow-wrap:anywhere}.task-claim-timeline p{margin:8px 0;color:var(--work-muted)}.record-empty{padding:40px 20px;text-align:center;background:#f8fafc;border:1px dashed var(--work-line);border-radius:6px}.record-empty h3{margin:0 0 12px}.record-empty p{color:var(--work-muted);margin:0}
@media(max-width:800px){.task-work-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.task-card{padding:16px}.task-card-heading{gap:12px}.task-card-heading h3{font-size:17px}.task-card-footer{align-items:stretch;flex-direction:column;gap:12px}.task-card-footer>.actions{display:flex;flex-direction:column;align-items:stretch;width:100%}.task-record-entry{justify-content:center}.task-work-gallery{grid-template-columns:minmax(0,1fr)}.task-work-image{height:220px}.task-delivery>div{align-items:flex-start;flex-direction:column;gap:8px}.task-claim-timeline li>div{flex-direction:column;gap:8px}.workspace-disclosure>.disclosure-trigger{width:100%}}
.workspace-disclosure>button.btn.disclosure-trigger,.table td .workspace-disclosure>button.btn.disclosure-trigger{min-height:44px;padding:10px 12px}
.sampling-tools{margin:0 0 16px}.sampling-tools[hidden]{display:none}#sampling-result{margin-top:20px}#sampling-result td{white-space:normal;overflow-wrap:anywhere}#sampling-result [data-sampling-commit]{min-height:44px;margin-top:12px}#sampling-import-form>button{min-height:44px}
.salary-standard-info,.salary-standard-banner{border:1px solid var(--work-line);border-radius:6px;background:#f8fafc;padding:16px;margin:16px 0}.salary-standard-info h3{margin:0 0 8px}.salary-standard-info p{margin:8px 0}.salary-standard-info button{min-height:44px}.salary-standard-banner strong{font-size:18px}.salary-standard-banner p{margin:8px 0 0;color:var(--work-muted);font-size:13px}.point-rule-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.point-rule-overview>div{display:flex;flex-direction:column;gap:6px}.point-rule-overview span{font-size:13px;color:var(--work-muted)}.point-rule-overview strong{font-size:22px;overflow-wrap:anywhere}.deduction-list{margin:20px 0}#performance-preview{margin-top:20px}#performance-preview td{white-space:normal;overflow-wrap:anywhere}#performance-preview [data-performance-commit]{min-height:44px;margin-top:12px}.performance-rules>.workspace-disclosure>button{min-height:44px}
@media(max-width:640px){.point-rule-overview{gap:10px}.point-rule-overview strong{font-size:19px}.salary-standard-info,.salary-standard-banner{padding:12px}}

/* Same-page work is stable; user-requested navigation resets explicitly. */
html{scroll-behavior:auto!important;scrollbar-gutter:stable}

.bulk-selection-line{gap:12px;min-width:0;flex-wrap:nowrap}
.bulk-selection-line .bulk-check,.bulk-selection-line .sampling-import-entry{min-height:44px;height:44px;display:inline-flex;align-items:center;margin:0;flex-shrink:0}
.bulk-selection-line .sampling-import-entry{padding:8px 16px}
.bulk-selection-line [data-bulk-count]{margin-left:auto;font-size:12px;white-space:nowrap}
.sampling-tools:empty{display:none}
.bulk-confirm-operation{font-size:18px;font-weight:600}
.bulk-confirm-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}
.bulk-confirm-facts dt{font-size:12px;color:var(--work-muted);font-weight:400}
.bulk-confirm-facts dd{font-size:20px;font-weight:600;margin:6px 0 0}
.bulk-result-summary{margin:12px 0;padding:12px 16px;border:1px solid var(--work-line);border-radius:6px}
/* Review feedback stays above the existing image and inspector. */
#art-review-dialog .review-sequence{flex:0 0 auto;border:1px solid #b7d3f6;border-radius:6px;background:#eff6ff;padding:12px 16px;margin:0 0 12px;overflow-wrap:anywhere}
#art-review-dialog .review-sequence h3{font-size:18px;margin:4px 0;outline-offset:4px}
#art-review-dialog .review-sequence p{margin:4px 0}
#art-review-dialog .review-last{color:#1c5b3b;font-weight:600}
#art-review-dialog .review-sequence-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
#art-review-dialog .review-sequence-nav span{flex:1;font-size:13px;color:#526175}
#art-review-dialog .review-sequence button{min-height:44px;margin:4px 8px 0 0}
#art-review-dialog .review-sequence [role=alert]{color:#a4212c}
#art-review-dialog .review-layout[hidden],#art-review-dialog .review-code[hidden]{display:none}
@media(max-width:600px){#art-review-dialog .review-sequence{padding:10px 12px}#art-review-dialog .review-sequence-nav span{flex-basis:100%;order:3}}

/* R16 targeted mobile touch areas; keep desktop density and checkbox glyphs. */
@media(max-width:860px){
 [data-page=skus] .sku-tile-footer>.sku-open{min-width:44px;min-height:44px}
 [data-page=skus] .sku-tile.card>.bulk-check{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 [data-page=payroll] .cols>section>[data-open-dialog]{min-height:44px}
 [data-page=password] #password-form input.form-control{min-height:44px}
}
.committed-refresh{margin:12px 0 0;overflow-wrap:anywhere}
.committed-refresh p{margin:0 0 8px}
.committed-refresh button{min-height:44px}
@media(max-width:640px){
 :is(#submit-art-dialog,#publish-task-dialog,#deduction-import-dialog,#payment-dialog,#legacy-dialog) :is(input.form-control:not([type=checkbox]),select.form-select){min-height:44px}
 #payment-dialog #payment label:has(input[name=ackPending]){min-height:44px;justify-content:center}
}
.operation-confirmation{margin:16px 0;padding:16px;border:1px solid #d8a648;border-radius:6px;background:#fff8e6;overflow-wrap:anywhere}
.operation-confirmation h3{font-size:18px;margin:0 0 12px}.operation-confirmation p{margin:6px 0}.operation-confirmation .actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0;padding:0;border:0;position:static;background:transparent}
.operation-confirmation button{min-height:44px}.batch-restore.btn{color:#8d5808;border-color:#cba15e;background:#fff9eb}
/* R17 explicit route and authentication feedback. */
body.auth-view{padding:0;margin:0;min-height:100dvh}.auth-shell{min-height:100dvh;box-sizing:border-box;display:grid;place-items:center;padding:24px 16px}
.auth-shell>.login.card{width:min(440px,100%);max-width:440px;margin:0;padding:28px;min-width:0}.login-subtitle{margin:10px 0 24px}.password-field{display:flex;gap:8px;align-items:stretch;min-width:0}.password-field>input{flex:1;min-width:0;margin:0}.password-field>button{flex:0 0 auto;white-space:nowrap;margin:0;min-height:44px}
.route-loading{min-height:220px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.auth-shell>.route-loading{width:min(440px,100%);margin:0}.loading-spinner{display:inline-block;width:22px;height:22px;flex:0 0 22px;border:3px solid #d8e4f2;border-top-color:#2563eb;border-radius:50%;animation:workspace-spin 900ms linear infinite}
.loading-skeleton{flex-basis:100%;display:grid;gap:12px}.loading-skeleton i{display:block;height:12px;border-radius:6px;background:#e9eef5}.loading-skeleton i:nth-child(2){width:80%}.loading-skeleton i:nth-child(3){width:62%}@keyframes workspace-spin{to{transform:rotate(360deg)}}
.layout{min-height:100dvh}.layout:before{content:'';position:absolute;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--work-line);pointer-events:none;z-index:0}.layout>.main{position:relative}
@media(max-width:860px){.layout:before{display:none}.page-context{min-width:0;flex:1;flex-wrap:wrap}.page-context>span{min-width:0;overflow-wrap:anywhere}.layout>header.navbar{flex-wrap:wrap}.account-actions{flex-wrap:wrap;gap:8px}}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none}}
.layout{position:relative}
.file-picker{position:relative;display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;min-height:44px;border:1px dashed #aabbd0;border-radius:6px;background:#f8fafc;padding:8px 12px;cursor:pointer}
.file-picker>input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer}.file-picker-title{font-weight:600;color:#1d4ed8;white-space:nowrap}.file-picker-status{min-width:0;flex:1 1 120px;color:#526175;overflow-wrap:anywhere;font-size:13px}.file-picker:focus-within{outline:3px solid #2563eb;outline-offset:3px}.file-picker:has(input:disabled){opacity:.65;cursor:default}.file-picker:has(input:disabled)>input{cursor:default}
.date-format-hint{display:block;color:#526175;font-size:12px;font-weight:400;line-height:1.45;margin-top:4px;overflow-wrap:anywhere}
.shared-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--work-line);padding:16px 0 0;margin-top:16px;min-width:0;width:100%;font-size:13px}
.pagination-count{color:#526175;white-space:nowrap}.pagination-controls{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;min-width:0}.pagination-steps{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.pagination-number{position:static!important;display:inline-block;white-space:nowrap;line-height:1.5;margin:0!important;padding:0!important;min-width:0;height:auto!important;color:#33495f}.shared-pagination button.btn{min-height:44px;margin:0;width:auto;font-size:13px;white-space:nowrap;padding:8px 12px}.pagination-jump{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0!important;padding:0!important;max-width:100%;min-width:0}.pagination-jump label.form-label,.pagination-jump label{display:flex;align-items:center;flex-direction:row;gap:8px;white-space:nowrap;margin:0;font-weight:400;width:auto}.shared-pagination .pagination-jump input.form-control{width:72px!important;min-width:0!important;max-width:84px!important;height:44px;min-height:44px;margin:0;padding:8px}.pagination-error{flex-basis:100%;color:#a4212e;white-space:normal;max-width:280px;overflow-wrap:anywhere}.sales-count-note{font-size:13px;color:#526175;margin:16px 0 0}
.cn-date{display:flex;align-items:stretch;gap:8px;min-width:0;width:100%}.cn-date>[type=hidden]{display:none!important}.cn-date .cn-date-text.form-control{min-width:0;width:0;flex:1 1 110px;min-height:44px;margin:0;font-size:14px;font-variant-numeric:tabular-nums}.cn-date .cn-time-text.form-control{flex:0 1 82px;width:82px;min-width:70px;min-height:44px;margin:0;font-size:14px;font-variant-numeric:tabular-nums}.cn-date .cn-date-toggle.btn{flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:10px;margin:0;display:grid;place-items:center;background:#fff;color:#43546a;border:1px solid #aeb9c7}.cn-date-toggle svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6}.cn-date input[aria-invalid=true]{border-color:#b42332}.cn-date-popover{position:fixed;inset:auto;margin:0;padding:16px;border:1px solid #b9c7d8;border-radius:8px;background:#fff;color:#243b53;box-shadow:0 12px 36px #142d5029;overflow:auto;box-sizing:border-box;max-width:calc(100vw - 16px)}.cn-date-popover::backdrop{background:transparent}.cn-date-popover:not(:popover-open){display:none}.cn-date-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.cn-date-popover button{min-height:44px;min-width:36px;max-width:100%;padding:6px;border:1px solid transparent;border-radius:5px;background:#f4f7fb;color:#243b53;font-size:14px;margin:0}.cn-date-header .cn-date-period{flex:1;font-weight:600;background:#fff}.cn-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.cn-date-grid>span{display:grid;place-items:center;min-height:30px;font-size:12px;color:#526175}.cn-date-grid button{min-width:0;min-height:44px;background:#fff}.cn-date-grid button:hover{background:#edf4ff}.cn-date-grid button[aria-current=date]{border-color:#2563eb}.cn-date-grid button[aria-selected=true]{background:#2563eb;color:#fff}.cn-date-grid button:disabled{color:#8b98a7;background:#f8f9fb;opacity:1}.cn-date-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cn-date-year{display:flex;align-items:center;gap:12px;margin:0 0 12px}.cn-date-year input{min-height:44px;max-width:140px;min-width:0}.cn-date-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--work-line);margin-top:12px;padding-top:12px}.cn-date-footer button{flex:1}.cn-date-popover :focus-visible{outline:3px solid #2563eb;outline-offset:1px}
#account-dialog[data-account-loading=true] .dialog-body{min-height:min(650px,calc(100dvh - 150px))}#account-dialog .account-skeleton{min-height:min(650px,calc(100dvh - 150px));display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:12px;padding-top:24px}.account-skeleton[hidden]{display:none!important}.account-skeleton .loading-skeleton{gap:26px;margin-top:24px}.account-skeleton .loading-skeleton i{height:42px;border-radius:5px;width:100%}.account-skeleton .loading-skeleton i:nth-child(2n){width:82%}#account-dialog #user[hidden]{display:none!important}#account-dialog .dialog-body{min-height:min(650px,calc(100dvh - 150px))}
.sales-import-surface #import-preview{margin-top:20px}.sales-import-surface .sales-template{display:inline-flex;min-height:44px;align-items:center}.sales-import-surface #import-result:empty{display:none}.sales-import-surface .file-picker{min-height:100px;align-content:center}.sales-import-surface .file-picker-title:before{content:'↑';display:inline-block;margin-right:8px;font-size:20px}.sales-import-surface .form-grid>label:has(input[type=file]){grid-column:1/-1}
[data-page=skus] .sku-tile.card>.art-link,[data-page=skus] .sku-tile.card>.art-link img,[data-page=home] .list-row .thumb{background:#edf0f3!important;background-image:none!important}.art-link{position:relative}.thumbnail-error{display:block;font-size:12px;line-height:1.5;color:#73502c;padding:12px;background:#fff6e8}.art-link .thumbnail-error{position:absolute;inset:auto 0 0}.art-link[data-image-state=error] img{visibility:hidden}
@media(max-width:1100px){.shared-pagination{align-items:flex-start}.pagination-controls{justify-content:flex-start}}
@media(max-width:640px){.shared-pagination{gap:12px}.pagination-controls{width:100%;gap:12px}.pagination-steps{width:100%;justify-content:space-between;gap:6px}.shared-pagination button.btn{padding:8px 10px}.pagination-jump{width:100%}.pagination-count{white-space:normal}.cn-date-popover{padding:12px}.cn-date-grid button{min-height:44px}.cn-date .cn-date-text.form-control{font-size:13px}.cn-date .cn-time-text.form-control{font-size:13px;min-width:70px;flex-basis:76px}}
.auth-shell .login .password-field>button{width:auto;max-width:104px;min-width:80px;flex:0 0 auto;padding:8px 10px}.auth-shell .login .password-field>input{width:0;min-width:0;flex:1 1 0}
/* R17 page actions and record navigation share one hierarchy. */
.heading{gap:16px;flex-wrap:wrap}.heading>div:first-child{min-width:0}.heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}.heading-actions button{min-height:44px;margin:0}.heading-actions:empty{display:none}
.summary-stats{grid-template-columns:repeat(var(--stat-count,3),minmax(0,1fr))}.summary-stats .stat{min-width:0}.summary-stats small{overflow-wrap:anywhere}
.hero.is-clear{background:#f1f6fa;color:#243b53;border:1px solid #d9e4ef}.hero.is-clear h2{color:#243b53}.hero.is-clear p,.hero.is-clear .section-label{color:#526175}
[data-page=home] .list-row .thumb{width:64px;height:64px;flex:0 0 64px;object-fit:contain;background:#f8fafc;border:1px solid var(--work-line);border-radius:4px}[data-page=home] .list-row>div{min-width:0}[data-page=home] .list-row strong{overflow-wrap:anywhere}
.sku-pagination,.sales-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}.page-number{white-space:nowrap}.table-footer{gap:16px}.sales-page-jump{margin:0}.artwork-hint{font-size:12px;color:#526175;margin:0 0 12px}
[data-page=skus] .gallery-toggle{padding:3px;border:1px solid #c9d5e3;border-radius:6px;background:#f2f5fa;gap:3px;height:auto!important}[data-page=skus] .gallery-toggle button{border:0;border-radius:4px;box-shadow:none;margin:0;min-width:64px;background:transparent;color:#43546a}[data-page=skus] .gallery-toggle button[aria-pressed=true]{background:#fff;color:#174ea6;box-shadow:0 1px 3px #203c5a20;font-weight:600}
[data-page=skus] .sku-tile.card>.bulk-check{position:static;z-index:auto;display:flex;align-items:center;justify-content:flex-start;width:fit-content;min-height:44px;min-width:44px;font-size:12px;gap:8px;padding:0 6px;margin:0 0 6px;border:0;background:#fff}
.salary-version-history{border-top:1px solid var(--work-line);margin-top:24px;padding-top:16px}.salary-version-history h3{margin:0 0 8px}.salary-version-history ol{list-style:none;margin:12px 0 0;padding:0}.salary-version-history li{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid #e8edf3}.salary-version-history time{color:#526175}
#sku-table .sales-page-jump input{min-height:44px;height:44px}.account-actions button[aria-current=page]{color:#1d4ed8;background:#edf3ff}
.payroll-record-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.payroll-record-actions button{min-height:44px;margin:0}.task-history-entry.is-empty{color:#526175}.task-history-entry.is-empty strong{background:#f1f4f8;font-weight:400}
.calendar-toolbar{gap:12px;margin-bottom:20px;align-items:flex-start}.calendar-toolbar .calendar-step{margin-top:26px}.calendar-batch-hint{padding:12px;background:#eff6ff;color:#24496e;border:1px solid #c6dbf4;border-radius:6px;margin:20px 0 12px}.calendar-day:disabled{opacity:1;color:#34485e;background:#fff;cursor:default}.calendar-day:disabled.today{color:#124d9a;background:#eaf3ff}.calendar-badge.rest{background:#d9efdf;color:#225d39}.calendar-badge.makeup{background:#fce1e2;color:#8a2027}.calendar-week{color:#526175}.month-calendar+p.muted{font-size:13px;color:#465970;line-height:1.8}
#punch-actions button:disabled{opacity:1;background:#e6edf5;color:#526175;border-color:#c4d1df;cursor:not-allowed;box-shadow:none}#punch-query>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}#punch-query .actions{margin-top:16px}
[data-page=sales] .table th{background:#edf3fa;color:#33495f;font-weight:600}[data-page=sales] .table td,[data-page=sales] .table th{text-align:left;vertical-align:middle}
@media(max-width:860px){.summary-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.heading-actions{margin-left:0}.heading{align-items:flex-start}.calendar-toolbar{flex-wrap:wrap}.calendar-toolbar label{min-width:0}}
@media(max-width:640px){.summary-stats{grid-template-columns:minmax(0,1fr)}.heading-actions{width:100%}.heading-actions button{flex:1 1 auto}.sku-pagination,.sales-pagination{justify-content:flex-start;width:100%;gap:12px}.sku-pagination>.btn-group,.sales-pagination>.btn-group{flex-wrap:wrap;gap:8px}.table-footer{align-items:flex-start}.sales-page-jump{width:100%;justify-content:flex-start}.sales-page-jump input{width:72px!important;min-width:0!important}#punch-query>.form-grid{grid-template-columns:minmax(0,1fr)}.calendar-toolbar label{flex:1}.payroll-record-actions{flex-direction:column}.payroll-record-actions button{width:100%}.calendar-batch-hint{font-size:13px}}

#account-dialog[open]{height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px)}#account-dialog .dialog-body,#account-dialog[data-account-loading=true] .dialog-body{min-height:0;overflow:auto;flex:1 1 auto}#account-dialog .account-skeleton{min-height:100%}@media(max-width:860px){#account-dialog[open]{height:var(--workspace-viewport-height,100dvh);max-height:var(--workspace-viewport-height,100dvh)}}

[data-local-row][hidden]{display:none!important}.salary-version-row{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid #e8edf3}.salary-version-row time{color:#526175}

/* R33: bounded matching candidates; original codes remain selectable and readable. */
.match-picker{min-width:0;position:relative;display:flex;flex-direction:column;gap:8px;align-self:start}
.match-picker>label{font-weight:600;margin:0}.match-picker .form-control{width:100%;min-width:0;height:36px}
.match-picker-hint,.match-picker-state,.match-picker-selected{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.match-picker-selected:empty,.match-picker-state:empty{display:none}
.match-picker [role=listbox]{max-height:320px;overflow:auto;border:1px solid var(--tblr-border-color,#dce1e7);border-radius:8px;background:var(--tblr-bg-surface,#fff)}
.match-picker-option{display:flex;gap:10px;padding:10px;min-height:64px;cursor:pointer;border-bottom:1px solid var(--tblr-border-color,#dce1e7);align-items:center}
.match-picker-option:last-child{border-bottom:0}.match-picker-option[aria-selected=true],.match-picker-option:hover{background:var(--tblr-primary-lt,#eef4ff);outline:2px solid var(--tblr-primary,#206bc4);outline-offset:-2px}
.match-picker-option>div{min-width:0;display:flex;flex-direction:column;gap:3px;white-space:pre-wrap;overflow-wrap:anywhere}
.match-picker-option strong{font-size:14px}.match-picker-option span,.match-picker-option small{font-size:12px;line-height:1.5}
.match-picker-option img,.match-picker-no-image{width:48px;height:48px;flex:0 0 48px;object-fit:contain;border-radius:4px;background:#f4f6fa}
.match-picker-no-image{display:grid;place-items:center;color:#626c7a}.match-picker input:focus-visible{outline:2px solid var(--tblr-primary,#206bc4);outline-offset:2px}
@media(max-width:860px){.match-picker .form-control{height:44px}.match-picker-retry{min-height:44px}.match-picker [role=listbox]{max-height:280px}}

/* R34 split matching: searchable rows and explicit per-source quantities. */
.split-mode-buttons{margin-bottom:16px;gap:8px;flex-wrap:wrap}
.split-target-row{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:12px;align-items:start;border:1px solid var(--tblr-border-color,#dce1e7);border-radius:8px;padding:14px;margin:12px 0}
.split-target-row>div,.split-target-row>label{min-width:0}.split-target-row>button{align-self:start;margin-top:28px}
.split-target-row input[type=number]{min-width:0;width:100%;height:36px}.split-equation{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0}
#split-match-form [data-split-before],.split-impact{overflow-wrap:anywhere}.split-impact{padding:16px;margin-top:16px}.split-impact-table{max-height:300px;overflow:auto}.split-impact-table td{white-space:normal;overflow-wrap:anywhere}
.split-error:focus{outline:2px solid var(--tblr-primary,#206bc4);outline-offset:2px}.split-error p{margin:8px 0}
@media(max-width:860px){.split-target-row{grid-template-columns:minmax(0,1fr);padding:12px}.split-target-row>button{margin:0;min-height:44px}.split-target-row input[type=number],.split-mode-buttons button,#split-match-form button{min-height:44px}.split-impact{padding:12px}}
.department-switch,.department-label{display:flex;flex-direction:column;gap:6px;margin:0 8px;padding:10px 12px;border:1px solid #dbe3ee;border-radius:8px;background:#f8faff;color:#475569;font-size:12px;font-weight:600}
.department-switch select{width:100%;min-height:34px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#172033;font:inherit;font-size:14px;padding:4px 8px}
.department-label{font-size:14px;color:#172033}
