:root{
  color-scheme:light;--ark-bg:#f5f5f7;--ark-paper:#fff;--ark-ink:#1d1d1f;--ark-muted:#6e6e73;
  --ark-faint:#86868b;--ark-line:#d2d2d7;--ark-line-soft:#e8e8ed;--ark-blue:#0071e3;
  --ark-blue-hover:#0077ed;--ark-red:#d70015;--ark-radius:18px;--ark-radius-sm:12px;
  --ark-shadow:0 4px 18px rgba(0,0,0,.06);--ark-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}html{min-height:100%;background:var(--ark-bg);scroll-behavior:smooth}
body{min-height:100vh;margin:0;color:var(--ark-ink);background:var(--ark-bg);font-family:var(--ark-font);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:var(--ark-blue)}a:hover{color:var(--ark-blue-hover)}
.ark-header{position:sticky;z-index:9000;top:0;border-bottom:1px solid rgba(0,0,0,.08);background:rgba(250,250,252,.82);backdrop-filter:saturate(180%) blur(20px)}
.ark-header-inner{display:flex;width:min(1120px,calc(100% - 40px));height:48px;margin:auto;align-items:center;gap:34px}
.ark-brand{display:inline-flex;align-items:center;gap:8px;color:var(--ark-ink);text-decoration:none}.ark-brand-mark{display:grid;width:23px;height:23px;place-items:center;border-radius:7px;background:var(--ark-ink);color:#fff;font-size:12px;font-weight:700}.ark-brand-copy b{font-size:12px;letter-spacing:.02em;white-space:nowrap}
.ark-global-nav{display:flex;align-items:center;justify-content:center;gap:34px;flex:1}.ark-global-nav a{color:#313136;font-size:12px;text-decoration:none;white-space:nowrap}.ark-global-nav a:hover{color:#000}
.ark-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.ark-titlebar{background:rgba(255,255,255,.94)}.ark-titlebar>div{display:flex;width:min(1120px,calc(100% - 40px));min-height:66px;margin:auto;align-items:center;gap:14px}.ark-titlebar span{display:none}.ark-titlebar strong{font-size:20px;font-weight:650;letter-spacing:-.02em}.ark-titlebar small{color:var(--ark-muted);font-size:12px}
.ark-header .admin-session,.ark-header .admin-login-entry{position:static;padding:0;border:0;background:transparent;box-shadow:none}.ark-header .admin-session span{color:var(--ark-muted);font-size:11px}.ark-header .admin-session button,.ark-header .admin-login-link{display:inline-flex;min-height:28px;align-items:center;padding:0 12px;border:0;border-radius:980px;background:var(--ark-blue);color:#fff;font-size:11px;text-decoration:none}.ark-header .admin-session button:hover,.ark-header .admin-login-link:hover{background:var(--ark-blue-hover)}
button,.button,.file-button,.ops-button{font:inherit}button,.button,.file-button,.ops-button{display:inline-flex;min-height:36px;align-items:center;justify-content:center;padding:0 15px;border:1px solid var(--ark-line);border-radius:980px;background:#fff;color:var(--ark-ink);font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}button:hover,.button:hover,.file-button:hover,.ops-button:hover{border-color:#a7a7ac;background:#f8f8fa;color:var(--ark-ink)}button:active,.button:active{transform:scale(.98)}
button.primary,.primary,.button.primary,#download-button{border-color:var(--ark-blue)!important;background:var(--ark-blue)!important;color:#fff!important}button.primary:hover,.primary:hover,.button.primary:hover,#download-button:hover{border-color:var(--ark-blue-hover)!important;background:var(--ark-blue-hover)!important}
button.danger,.danger{border-color:#ffc6cc!important;background:#fff!important;color:var(--ark-red)!important}
input,select,textarea{min-height:40px;padding:9px 12px;border:1px solid #b8b8bd;border-radius:10px;background:#fff;color:var(--ark-ink);font:inherit}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--ark-blue)!important;outline:0;box-shadow:0 0 0 4px rgba(0,113,227,.14)!important}
.card,.panel,.download-card,.recent-card,.project-bar,.entry-hero{border:1px solid var(--ark-line-soft)!important;border-radius:var(--ark-radius)!important;background:var(--ark-paper)!important;box-shadow:none!important}
.card h2,.panel h2,.download-card h2,.recent-card h2{font-family:var(--ark-font);font-weight:650;letter-spacing:-.02em}
.section-kicker,.eyebrow{color:var(--ark-faint)!important;font-size:11px!important;font-weight:650!important;letter-spacing:.04em!important;text-transform:none!important}
.ark-back-link,.back-link,.topbar-home,.header-link{display:inline-flex;align-items:center;color:var(--ark-blue);font-size:12px;text-decoration:none}.header-link{min-height:28px;padding:0 11px;border:1px solid var(--ark-line);border-radius:980px;background:#fff}
.site-footer{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:26px 20px;color:var(--ark-faint);font-size:11px}.site-footer a{color:var(--ark-muted);text-decoration:none}.site-footer a:hover{text-decoration:underline}.public-security-record{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.public-security-record img{display:block;object-fit:contain}
.toast{position:fixed!important;z-index:9900!important;right:24px!important;bottom:24px!important;max-width:min(420px,calc(100% - 48px));padding:12px 16px!important;border:0!important;border-radius:12px!important;background:rgba(29,29,31,.92)!important;color:#fff!important;box-shadow:0 8px 30px rgba(0,0,0,.2)!important;backdrop-filter:blur(20px)}.toast.error{background:rgba(180,0,18,.94)!important}.toast.hidden{display:none!important}
:focus-visible{outline:3px solid rgba(0,113,227,.28);outline-offset:2px}:disabled{cursor:not-allowed;opacity:.45}dialog:not([open]){display:none!important}
/* Shared application workspaces */
body:not(.ops-app) main{width:min(1480px,calc(100% - 36px));margin-left:auto;margin-right:auto;padding-top:30px;padding-bottom:70px}
body:not(.ops-app) main.hub-shell{width:min(1080px,calc(100% - 64px))}
.toolbar.card{padding:13px 16px}.mode-switch{display:flex;padding:3px;border-radius:980px;background:#e8e8ed}.mode-button{min-height:30px;border:0;background:transparent;color:var(--ark-muted)}.mode-button.active{background:#fff!important;color:var(--ark-ink)!important;box-shadow:0 1px 4px rgba(0,0,0,.1)}
.workspace-grid{gap:18px}.side-stack .card,.card{padding:18px}.section-heading h2{font-size:18px;letter-spacing:-.02em}.inline-panel{background:#eef6ff!important}.stats{gap:10px}.stat{border-radius:12px!important;background:#f5f5f7!important}.tabulator{border-color:var(--ark-line-soft)!important;border-radius:12px!important}.tabulator .tabulator-header{background:#f5f5f7!important}
.project-bar{padding:15px 18px!important}.project-bar select{min-width:170px}.entry-hero{padding:26px 28px!important}.entry-hero h2{font-size:26px!important;font-weight:650!important;letter-spacing:-.03em}.entry-hero textarea{border-color:var(--ark-line)!important;border-radius:12px!important;background:#fbfbfd!important;font-family:var(--ark-font)!important}.summary-strip{overflow:hidden;border:1px solid var(--ark-line-soft)!important;border-radius:16px!important;background:#f5f5f7!important}.summary-strip div{border-color:#dddde2!important}.summary-strip strong{font-family:var(--ark-font)!important;font-weight:650!important}.panel{padding:20px!important}.panel-heading h2{font-family:var(--ark-font)!important;font-weight:650!important}.history-item{border-color:var(--ark-line-soft)!important;border-radius:12px!important;background:#fafafa!important}.history-lines span{border-radius:980px!important;background:#e8e8ed!important}
.balance-shell{width:min(960px,calc(100% - 32px))!important;padding-top:42px!important}.balance-shell>header{text-align:center}.balance-shell header h1{font-family:var(--ark-font)!important;font-size:clamp(30px,4vw,40px)!important;font-weight:650!important;letter-spacing:-.035em!important}.balance-shell header>p:last-child{margin-left:auto!important;margin-right:auto!important}.download-card,.recognition-card,.template-card,.settings-card,.recent-card,.export-card{margin-top:22px!important;padding:26px!important;border:1px solid var(--ark-line-soft)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}.balance-shell .section-heading h2,.balance-shell .preview-heading h3{font-family:var(--ark-font)!important;font-weight:650!important;letter-spacing:-.025em}.balance-shell button{height:40px!important}.balance-back-nav a,.balance-config-actions a{border-color:var(--ark-line)!important;border-radius:980px!important;color:var(--ark-blue)!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:760px){body:not(.ops-app) main.hub-shell{width:calc(100% - 28px)}.ark-header-inner{width:calc(100% - 24px);height:48px;gap:12px}.ark-brand-copy{display:none}.ark-global-nav{justify-content:flex-start;gap:20px;overflow-x:auto;scrollbar-width:none}.ark-global-nav::-webkit-scrollbar{display:none}.ark-global-nav a{font-size:11px}.ark-titlebar>div{width:calc(100% - 28px);min-height:58px}.ark-titlebar strong{font-size:17px}.ark-titlebar small{display:none}.ark-header .admin-session span{display:none}}
@media(max-width:480px){.ark-global-nav a:nth-child(1),.ark-global-nav a:nth-child(3){display:none}.ark-header-actions{flex:0 0 auto}}

/* Automatic scheduling and bundling share the same quiet operations canvas. */
.auto-table-page,.bundling-page{background:#fff;color:var(--ark-ink);font-family:var(--ark-font)}
.auto-table-page main{width:min(1240px,calc(100% - 48px));max-width:none;margin:0 auto;padding:32px 0 76px}body.bundling-page main{width:min(1120px,calc(100% - 40px));max-width:none;margin:0 auto;padding:32px 0 76px}
.auto-table-page .project-bar,.auto-table-page .entry-hero,.auto-table-page .panel,.bundling-page .card{border:1px solid var(--ark-line-soft)!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important}
.auto-table-page .project-bar{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;margin-bottom:18px;padding:18px!important}.auto-table-page .project-bar>div{display:grid;grid-template-columns:auto 1fr;gap:4px 9px}.auto-table-page .project-bar .section-kicker{grid-column:1/-1}.auto-table-page .project-bar select{width:100%;min-width:0}.auto-table-page .project-bar p{grid-column:1/3;margin:0}.auto-table-page .project-bar .button-link{grid-column:3;justify-self:end}
.auto-table-page .entry-hero{margin:0;padding:24px!important}.auto-table-page .entry-hero h2,.auto-table-page .panel-heading h2{font-family:var(--ark-font)!important;font-weight:650!important;letter-spacing:-.025em}.auto-table-page .entry-hero textarea{border-color:var(--ark-line)!important;background:#fbfbfd!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important}.auto-table-page .summary-strip{margin:18px 0;border-color:var(--ark-line-soft)!important;background:#f5f5f7!important}.auto-table-page .summary-strip div{border-color:#dddde2!important}.auto-table-page .summary-strip strong{font-family:var(--ark-font)!important;font-weight:650!important}.auto-table-page .workspace-grid{grid-template-columns:minmax(0,1.65fr) minmax(280px,.65fr);gap:18px}.auto-table-page .history-panel{top:66px}.auto-table-page .empty-table{background:#fafafa;border-color:var(--ark-line)}
.bundling-page .toolbar{gap:8px;margin-bottom:18px;padding:14px 16px!important}.bundling-page .workspace-grid{gap:18px}.bundling-page .card{margin-bottom:18px;padding:20px!important}.bundling-page .side-stack .card{margin-bottom:14px}.bundling-page .inline-panel{border-radius:12px;background:#eef6ff!important}.bundling-page .message{border:0;border-radius:12px;background:#eef6ff;color:#145ea8}.bundling-page .tabulator{border-color:var(--ark-line-soft)!important;border-radius:12px!important}.bundling-page .tabulator .tabulator-header{background:#f5f5f7!important}
@media(max-width:900px){.auto-table-page main,body.bundling-page main{width:calc(100% - 28px);padding-top:22px}.auto-table-page .project-bar{grid-template-columns:1fr}.auto-table-page .project-bar p,.auto-table-page .project-bar .button-link{grid-column:1;justify-self:start}.auto-table-page .workspace-grid{grid-template-columns:1fr}.auto-table-page .history-panel{position:static}}
@media(max-width:620px){.auto-table-page .project-bar{grid-template-columns:1fr}.auto-table-page .project-bar .button-link{grid-column:1}.auto-table-page .summary-strip{grid-template-columns:1fr 1fr}.auto-table-page .entry-controls>*{width:100%}.bundling-page .toolbar>*{width:100%}}
.table-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 2px 0;color:#6e6e73;font-size:12px}.pager-pages{display:flex;gap:5px;max-width:100%;overflow:auto}.pager-pages button{min-width:34px;min-height:32px;padding:0 9px}.pager-pages button[aria-current=page]{border-color:#0071e3;background:#eef6ff;color:#0071e3}

/* Column filters use the same quiet, data-first language as the ledgers. */
.filterable-data-table thead th{position:relative}.table-filter-heading{display:inline-flex;min-width:0;align-items:center}.table-filter-button{display:inline-grid;width:24px;min-width:24px;height:24px;min-height:24px;margin-left:5px;padding:0;place-items:center;border-color:transparent;background:transparent;color:var(--ark-faint);vertical-align:middle}.table-filter-button:hover{border-color:var(--ark-line);background:#f5f5f7}.table-filter-button i{position:absolute;right:3px;top:3px;width:6px;height:6px;border:2px solid #fff;border-radius:50%;background:var(--ark-blue);opacity:0}.table-filter-button.active{color:var(--ark-blue);background:#eef6ff}.table-filter-button.active i{opacity:1}.table-filter-clear-all{float:right;margin:0 0 8px 10px;padding:5px 10px;border:0;background:transparent;color:var(--ark-blue);font-size:12px}.table-filter-clear-all[hidden]{display:none}
.table-filter-popover{position:fixed;z-index:9800;max-height:min(430px,calc(100vh - 28px));overflow:auto;padding:12px;border:1px solid var(--ark-line);border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 16px 44px rgba(0,0,0,.16);backdrop-filter:blur(18px)}.table-filter-popover[hidden]{display:none}.table-filter-popover header,.table-filter-popover footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.table-filter-popover header{padding:1px 2px 10px}.table-filter-popover header strong{font-size:13px}.table-filter-popover header button{width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent}.table-filter-popover footer{padding-top:12px}.table-filter-options{display:grid;max-height:240px;gap:4px;overflow:auto}.table-filter-options label{display:flex;min-height:34px;align-items:center;gap:9px;padding:4px 7px;border-radius:8px}.table-filter-options label:hover{background:#f5f5f7}.table-filter-options input{width:16px;min-height:16px;margin:0}.table-filter-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}.table-filter-range label,.table-filter-search{display:grid;gap:5px;color:var(--ark-muted);font-size:11px}.table-filter-range input,.table-filter-search input{width:100%;min-width:0;color:var(--ark-ink);font-size:13px}
.allocation-correction-drawer{position:fixed;z-index:9700;top:0;right:0;width:min(520px,100%);height:100dvh;overflow:auto;padding:22px;border-left:1px solid var(--ark-line);background:#fff;box-shadow:-18px 0 50px rgba(0,0,0,.14)}.allocation-correction-drawer[hidden]{display:none}.allocation-correction-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.allocation-correction-drawer h2{margin:0;font-size:22px;letter-spacing:-.03em}.allocation-correction-drawer form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.allocation-correction-drawer label{display:grid;min-width:0;gap:6px;color:var(--ark-muted);font-size:12px}.allocation-correction-drawer label>input,.allocation-correction-drawer label>select,.allocation-correction-drawer label>textarea{width:100%;min-width:0;color:var(--ark-ink)}.allocation-correction-drawer .wide{grid-column:1/-1}.allocation-correction-diff{grid-column:1/-1;margin:4px 0;padding:12px;border-radius:12px;background:#f5f5f7}.allocation-correction-diff p{display:grid;grid-template-columns:minmax(90px,.7fr) 1fr auto 1fr;gap:8px;margin:5px 0;font-size:12px}.allocation-correction-actions{display:flex;grid-column:1/-1;justify-content:flex-end;gap:8px;padding-top:8px}
.bulk-preview-panel{display:grid;gap:10px;padding:14px;border:1px solid var(--ark-line-soft);border-radius:12px;background:#fafafa}.bulk-preview-panel[hidden]{display:none}.bulk-preview-panel ul{margin:0;padding-left:18px;color:var(--ark-muted)}
.schedule-locator{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}.schedule-locator input{min-width:180px;flex:1}.schedule-locator select{min-width:180px}.tabulator-cell.is-locator-match,.schedule-locator-match{background:#fff2a8!important;box-shadow:inset 0 0 0 2px #e8a400}.tabulator-col.is-locator-column{background:#eef6ff!important}
@media(max-width:600px){.table-filter-popover{left:12px!important;right:12px;width:auto!important;top:auto!important;bottom:12px}.table-filter-range{grid-template-columns:1fr}.allocation-correction-drawer{padding:18px}.allocation-correction-drawer form{grid-template-columns:1fr}.allocation-correction-drawer .wide{grid-column:1}.allocation-correction-diff{grid-column:1}.allocation-correction-actions{grid-column:1}.allocation-correction-diff p{grid-template-columns:1fr 1fr}.allocation-correction-diff p b{grid-column:1/-1}}
/* Shared, keyboard-operable review dialog for consequential workflow writes. */
.ark-dialog-layer{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:24px;background:rgba(8,18,32,.66);backdrop-filter:blur(4px)}
.ark-dialog{width:min(520px,100%);max-height:min(760px,calc(100vh - 32px));overflow:auto;border:1px solid #bed0df;border-radius:16px;background:#f8fbfd;color:#12263a;box-shadow:0 30px 90px rgba(5,15,28,.34)}
.ark-dialog form{display:grid;gap:18px;padding:24px}.ark-dialog header>span{font:700 11px/1.2 ui-monospace,SFMono-Regular,monospace;letter-spacing:.14em;color:#087e8b}.ark-dialog h2{margin:5px 0 0;font-size:24px}.ark-dialog header p{margin:8px 0 0;color:#53687b;line-height:1.55}.ark-dialog-impact{border-left:4px solid #ef5b5b;padding:10px 12px;background:#fff1f1;color:#7c2525;white-space:pre-line}.ark-dialog-fields{display:grid;gap:14px}.ark-dialog-fields label{display:grid;gap:6px;font-weight:700}.ark-dialog-fields small{font-weight:400;color:#607487}.ark-dialog-fields input{min-height:44px;border:1px solid #adbfce;border-radius:9px;padding:9px 11px;background:#fff;font:inherit}.ark-dialog-fields input:focus{outline:3px solid rgba(0,170,190,.18);border-color:#078c9c}.ark-dialog-error{margin:0;color:#a72828}.ark-dialog footer{display:flex;justify-content:flex-end;gap:10px}.ark-dialog footer button{min-width:96px}.ark-dialog footer .danger{background:#b4232f;color:#fff;border-color:#b4232f}
.ark-dialog-field{display:grid;gap:6px;font-weight:700}.ark-dialog-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;margin:0;padding:10px;overflow:auto;border:1px solid #adbfce;border-radius:9px;background:#fff}.ark-dialog-checks label{display:flex;align-items:center;gap:8px;padding:6px;font-weight:500}.ark-dialog-checks input{min-height:18px;width:18px;height:18px}
