/* BAZA UI v1. One token source; legacy pages are intentionally not restyled. */
:root{--bz-font:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--bz-xs:13px;--bz-sm:14px;--bz-md:15px;--bz-lg:20px;--bz-xl:24px;--bz-2xl:30px;--bz-3xl:36px;--bz-4xl:40px;--bz-space-1:4px;--bz-space-2:8px;--bz-space-3:12px;--bz-space-4:16px;--bz-space-5:20px;--bz-space-6:24px;--bz-space-8:32px;--bz-space-10:40px;--bz-space-12:48px;--bz-radius-control:10px;--bz-radius-card:20px;--bz-radius-dialog:24px;--bz-bg:#f2f4f6;--bz-surface:#fff;--bz-surface-2:#f8f9fb;--bz-text:#191f28;--bz-muted:#6b7684;--bz-border:#e8ecf0;--bz-border-strong:#d9dfe6;--bz-accent:#3182f6;--bz-accent-hover:#1b64da;--bz-accent-text:#2272eb;--bz-accent-soft:#eaf3ff;--bz-on-accent:#fff;--bz-success-bg:#e8f7f0;--bz-success-fg:#147a55;--bz-warning-bg:#fff5e5;--bz-warning-fg:#8b5a00;--bz-danger-bg:#fff0f1;--bz-danger-fg:#b42335;--bz-neutral-bg:#f2f4f6;--bz-neutral-fg:#4e5968;--bz-shadow:0 24px 80px #182c4733;--bz-header-height:124px}
html[data-theme="dark"]{--bz-bg:#151a22;--bz-surface:#202732;--bz-surface-2:#28313d;--bz-text:#eef2f7;--bz-muted:#b2bdcb;--bz-border:#343e4b;--bz-border-strong:#485466;--bz-accent:#6aa9ff;--bz-accent-hover:#8fbeff;--bz-accent-text:#8fbeff;--bz-accent-soft:#263c58;--bz-on-accent:#10233d;--bz-success-bg:#1b3d34;--bz-success-fg:#6ed9b2;--bz-warning-bg:#443521;--bz-warning-fg:#f2c174;--bz-danger-bg:#412b35;--bz-danger-fg:#ff9aa2;--bz-neutral-bg:#2c3542;--bz-neutral-fg:#bdc7d5;--bz-shadow:0 24px 80px #0006}
.bz-system{color:var(--bz-text);font:400 var(--bz-md)/1.6 var(--bz-font);letter-spacing:-.02em}
.bz-system *{box-sizing:border-box}.bz-system [x-cloak]{display:none!important}.bz-system :is(button,input,textarea,select){font-family:var(--bz-font)}
.bz-system :is(h1,h2,h3,p,ol,ul,dl){margin:0}.bz-system :is(ol,ul){padding:0;list-style:none}.bz-system :is(h1,h2,h3){color:var(--bz-text);font-weight:700;line-height:1.35;letter-spacing:-.03em}.bz-system h1{font-size:var(--bz-2xl)}.bz-system h2,.bz-system h3{font-size:var(--bz-lg)}
.bz-system :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--bz-accent);outline-offset:3px}.bz-system button{cursor:pointer}.bz-system button:disabled{cursor:not-allowed;opacity:.5}.bz-system .bz-muted,.bz-system .bz-hint{color:var(--bz-muted)}.bz-system .bz-hint,.bz-system .bz-eyebrow{font-size:var(--bz-xs)}.bz-system .bz-danger,.bz-system .bz-error{color:var(--bz-danger-fg)}.bz-system .bz-error{font-size:var(--bz-sm);margin-top:var(--bz-space-2)}.bz-system .bz-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.bz-system .bz-workspace,.bz-workspace{width:100%;min-width:1120px}.bz-system .bz-actions{display:flex;gap:var(--bz-space-3);align-items:center;flex-wrap:wrap}.bz-system .bz-page-header{display:flex;justify-content:space-between;gap:var(--bz-space-8);align-items:center;margin-bottom:var(--bz-space-8)}.bz-page-header p{margin-top:var(--bz-space-2)}.bz-eyebrow{color:var(--bz-muted);margin-bottom:var(--bz-space-2)}
.bz-system .bz-button{display:inline-flex;justify-content:center;align-items:center;gap:var(--bz-space-2);border:1px solid transparent;border-radius:var(--bz-radius-control);background:var(--bz-neutral-bg);color:var(--bz-text);font-size:var(--bz-sm);font-weight:600;white-space:nowrap;transition:background .15s}
.bz-system .bz-control--md{min-height:40px;padding:8px 16px}.bz-system .bz-control--sm{min-height:32px;padding:4px 12px}.bz-system .bz-control--lg{min-height:48px;padding:12px 20px}.bz-system .bz-button:hover:not(:disabled){background:var(--bz-border)}.bz-system .bz-button--primary{background:var(--bz-accent);color:var(--bz-on-accent)}.bz-system .bz-button--primary:hover:not(:disabled){background:var(--bz-accent-hover)}.bz-system .bz-button--ghost{background:transparent;color:var(--bz-accent-text)}.bz-system .bz-button--danger{background:var(--bz-danger-bg);color:var(--bz-danger-fg)}
.bz-system .bz-input{width:100%;border:1px solid var(--bz-border-strong);border-radius:var(--bz-radius-control);background:var(--bz-surface);color:var(--bz-text);font-size:var(--bz-sm);line-height:1.5;min-width:0}.bz-system .bz-input[aria-invalid="true"]{border-color:var(--bz-danger-fg)}.bz-system .bz-textarea{padding:12px 16px;resize:vertical}.bz-system .bz-field>label{display:block;font-size:var(--bz-sm);font-weight:600;margin-bottom:var(--bz-space-2)}.bz-system .bz-field>.bz-hint{margin-top:var(--bz-space-2)}.bz-system .bz-check{display:inline-flex;align-items:center;gap:var(--bz-space-2);font-size:var(--bz-sm);cursor:pointer}.bz-system .bz-check input{width:18px;height:18px;accent-color:var(--bz-accent)}.bz-system .bz-switch input{appearance:none;width:36px;height:22px;border:0;border-radius:20px;background:var(--bz-border-strong);position:relative;transition:background .15s}.bz-system .bz-switch input:after{content:'';position:absolute;inset:3px auto auto 3px;width:16px;height:16px;background:var(--bz-surface);border-radius:100%;transition:transform .15s}.bz-system .bz-switch input:checked{background:var(--bz-accent)}.bz-system .bz-switch input:checked:after{transform:translateX(14px)}
.bz-system .bz-badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;font-size:var(--bz-xs);font-weight:600;white-space:nowrap}.bz-system .bz-tone--neutral{background:var(--bz-neutral-bg);color:var(--bz-neutral-fg)}.bz-system .bz-tone--info{background:var(--bz-accent-soft);color:var(--bz-accent-text)}.bz-system .bz-tone--success{background:var(--bz-success-bg);color:var(--bz-success-fg)}.bz-system .bz-tone--warning{background:var(--bz-warning-bg);color:var(--bz-warning-fg)}.bz-system .bz-tone--danger{background:var(--bz-danger-bg);color:var(--bz-danger-fg)}
.bz-system .bz-panel{border-radius:var(--bz-radius-card);background:var(--bz-surface);border:1px solid var(--bz-border);overflow:visible}.bz-system .bz-panel--filled{background:var(--bz-surface-2);border-color:transparent}.bz-system .bz-panel--plain{border:0;background:transparent}.bz-system .bz-panel-head{padding:24px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:24px}.bz-system .bz-panel-head p{font-size:var(--bz-sm);margin-top:8px}.bz-system .bz-panel-body{padding:24px}.bz-system .bz-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.bz-system .bz-filter-bar>.bz-actions:first-child{flex:1}.bz-system .bz-filter-bar .bz-input{width:300px}.bz-system .bz-tabs{display:flex;align-items:center;gap:8px}.bz-system .bz-tab{border:0;border-radius:10px;background:transparent;color:var(--bz-muted);padding:10px 16px;font-size:var(--bz-sm);font-weight:600}.bz-system .bz-tab.is-active{background:var(--bz-accent-soft);color:var(--bz-accent-text)}.bz-system .bz-date-range{display:flex;align-items:flex-end;gap:12px}.bz-system .bz-date-range .bz-input{width:180px}
.bz-system .bz-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:32px;padding:24px 0;border-bottom:1px solid var(--bz-border);margin-bottom:24px}.bz-system .bz-metric>span{font-size:var(--bz-sm);color:var(--bz-muted)}.bz-system .bz-metric>strong{display:block;font-size:var(--bz-3xl);font-weight:700;line-height:1.25;margin:12px 0;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.bz-system .bz-metric small{font-size:var(--bz-md);font-weight:500;letter-spacing:0}.bz-system .bz-metric p{font-size:var(--bz-xs);color:var(--bz-muted)}
.bz-system .bz-table-wrap{overflow:auto;border:1px solid var(--bz-border);border-radius:16px}.bz-system .bz-table{width:100%;border-collapse:collapse;table-layout:fixed;color:var(--bz-text);font-size:var(--bz-sm);font-variant-numeric:tabular-nums}.bz-system .bz-table :is(th,td){padding:16px 20px;text-align:left;border-bottom:1px solid var(--bz-border);vertical-align:middle;line-height:1.5;overflow-wrap:break-word}.bz-system .bz-table th{font-size:var(--bz-xs);font-weight:600;color:var(--bz-muted);background:var(--bz-surface-2)}.bz-system .bz-table thead th{height:52px;white-space:nowrap}.bz-system .bz-table tbody td{height:56px}.bz-system .bz-table tbody tr:hover{background:var(--bz-surface-2)}.bz-system .bz-table [data-align="center"]{text-align:center}.bz-system .bz-table [data-align="right"]{text-align:right}.bz-system .bz-table [data-align="left"]{text-align:left}.bz-system .bz-table [data-type="money"],.bz-system .bz-table [data-type="quantity"],.bz-system .bz-table [data-type="date"]{white-space:nowrap}.bz-system .bz-table [data-type="identity"]{min-height:72px}.bz-system .bz-table[data-density="compact"] td{height:44px;padding:10px 16px}.bz-system .bz-table tfoot{background:var(--bz-surface-2);font-weight:700}.bz-system .bz-table tbody tr:last-child td{border-bottom:0}.bz-system .bz-sort{border:0;background:none;padding:0;color:inherit;font:inherit}.bz-system .bz-unit{font-size:var(--bz-xs);color:var(--bz-muted);margin-left:4px}.bz-system .bz-identity{display:flex;align-items:center;gap:14px;text-align:left}.bz-system .bz-identity-icon{width:40px;height:40px;display:grid;place-items:center;flex:none;background:var(--bz-accent-soft);color:var(--bz-accent-text);border-radius:12px}.bz-system .bz-identity strong{display:block;font-size:var(--bz-sm);font-weight:600;line-height:1.6}.bz-system .bz-identity small{display:block;margin-top:5px;font-size:var(--bz-xs);color:var(--bz-muted)}.bz-system .bz-pagination,.bz-system .bz-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 0;font-size:var(--bz-sm);color:var(--bz-muted)}.bz-system .bz-selection-bar{padding:16px 20px;background:var(--bz-accent-soft);border-radius:12px;color:var(--bz-accent-text)}
.bz-system .bz-state{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:48px 24px;text-align:center;color:var(--bz-muted)}.bz-system .bz-state strong{font-size:var(--bz-md);color:var(--bz-text)}.bz-system .bz-state p{font-size:var(--bz-sm)}.bz-system .bz-alert{padding:16px 20px;border-radius:12px;font-size:var(--bz-sm);margin-bottom:16px}.bz-system .bz-alert>strong{display:block;margin-bottom:6px}.bz-system .bz-spinner{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:100%;animation:bz-spin .7s linear infinite}@keyframes bz-spin{to{transform:rotate(360deg)}}
.bz-system .bz-facts h3{margin-bottom:16px}.bz-system .bz-facts dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid var(--bz-border)}.bz-system .bz-facts dt{font-size:var(--bz-xs);color:var(--bz-muted)}.bz-system .bz-facts dd{margin:0;text-align:right;font-size:var(--bz-md);font-weight:600;overflow-wrap:anywhere}.bz-system .bz-facts dd small{font-size:var(--bz-xs);font-weight:400}.bz-system .bz-accordion{border:1px solid var(--bz-border);border-radius:16px;background:var(--bz-surface);margin-top:16px}.bz-system .bz-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;list-style:none;padding:20px 24px;font-size:var(--bz-sm)}.bz-system .bz-accordion summary small{display:block;color:var(--bz-muted);margin-top:5px}.bz-system .bz-accordion-body{border-top:1px solid var(--bz-border);padding:24px}.bz-system .bz-accordion[open] .bz-chevron{transform:rotate(180deg)}
.bz-system .bz-stepper{display:flex;gap:0;margin:12px 0 24px}.bz-system .bz-stepper li{flex:1;display:flex;align-items:flex-start;gap:12px;position:relative;padding:16px 24px 16px 0}.bz-system .bz-step-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:100%;flex:none;background:var(--bz-neutral-bg);color:var(--bz-muted);font-size:var(--bz-sm)}.bz-system .bz-stepper li[data-state="done"] .bz-step-mark{background:var(--bz-success-bg);color:var(--bz-success-fg)}.bz-system .bz-stepper li[data-state="current"] .bz-step-mark{background:var(--bz-accent);color:var(--bz-on-accent)}.bz-system .bz-stepper strong{font-size:var(--bz-sm)}.bz-system .bz-stepper small{display:block;color:var(--bz-muted);font-size:var(--bz-xs);margin-top:4px}.bz-system .bz-stepper li:not(:last-child):after{content:'';height:1px;background:var(--bz-border);width:24px;position:absolute;right:10px;top:30px}.bz-system .bz-timeline li{position:relative;padding:0 0 24px 28px;border-left:1px solid var(--bz-border);margin-left:5px}.bz-system .bz-timeline li:last-child{padding-bottom:0;border-color:transparent}.bz-system .bz-timeline-dot{position:absolute;left:-5px;top:5px;width:10px;height:10px;border:2px solid currentColor;border-radius:100%}.bz-system .bz-timeline-head{display:flex;justify-content:space-between;align-items:baseline;gap:24px}.bz-system .bz-timeline strong{font-size:var(--bz-md)}.bz-system .bz-timeline time{font-size:var(--bz-xs);color:var(--bz-muted)}.bz-system .bz-timeline p{font-size:var(--bz-sm);margin-top:5px}
.bz-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:#0b142b80}.bz-system .bz-dialog{width:720px;max-width:calc(100vw - 32px);max-height:94vh;display:flex;flex-direction:column;overflow:hidden;background:var(--bz-surface);border-radius:var(--bz-radius-dialog);box-shadow:var(--bz-shadow)}.bz-system .bz-dialog[data-size="confirm"]{width:520px}.bz-system .bz-dialog[data-size="upload"]{width:900px}.bz-system .bz-dialog[data-size="detail"]{width:1200px}.bz-system .bz-dialog[data-size="workspace"]{width:1880px;min-width:1360px}.bz-system .bz-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:28px 32px 24px}.bz-system .bz-dialog-head h2{font-size:var(--bz-xl)}.bz-system .bz-dialog-head p{font-size:var(--bz-sm);margin-top:8px}.bz-system .bz-dialog-body{overflow:auto;padding:0 32px 28px}.bz-system .bz-dialog-foot{display:flex;justify-content:flex-end;gap:12px;padding:20px 32px;border-top:1px solid var(--bz-border)}
.bz-system .bz-upload-zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:190px;padding:24px;border:2px dashed var(--bz-border-strong);border-radius:16px;background:var(--bz-accent-soft);color:var(--bz-accent-text);cursor:pointer}.bz-system .bz-upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.bz-system .bz-upload-zone:focus-within{outline:2px solid var(--bz-accent);outline-offset:3px}.bz-system .bz-upload-zone span{font-size:var(--bz-xs);color:var(--bz-muted)}.bz-system .bz-files li{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--bz-border)}.bz-system .bz-files small{display:block;color:var(--bz-muted);font-size:var(--bz-xs)}.bz-system progress{width:100%;height:8px;accent-color:var(--bz-accent)}
.bz-system .bz-chart{padding:24px;border:1px solid var(--bz-border);background:var(--bz-surface);border-radius:20px;min-width:0}.bz-system .bz-chart header p{font-size:var(--bz-xs);margin-top:8px}.bz-system .bz-chart svg{width:100%;height:280px;overflow:visible}.bz-system .bz-chart svg text{font-family:var(--bz-font);font-size:var(--bz-xs);fill:var(--bz-muted)}.bz-system .bz-chart-grid{stroke:var(--bz-border);stroke-dasharray:3 4;vector-effect:non-scaling-stroke}.bz-system .bz-chart-legend{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.bz-system .bz-chart-legend button{border:0;background:transparent;color:var(--bz-muted);font-size:var(--bz-xs);padding:4px}.bz-system .bz-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:100%;margin-right:6px}.bz-system .bz-chart-legend button[aria-pressed="false"]{opacity:.45;text-decoration:line-through}.bz-system .bz-chart-data{font-size:var(--bz-xs);color:var(--bz-muted);margin-top:12px}.bz-system .bz-chart-data summary{cursor:pointer}.bz-system .bz-chart-data table{margin-top:16px}.bz-system .bz-chart-data td{height:40px}.bz-system .bz-rank-row{display:grid;grid-template-columns:30px 1fr auto;gap:8px 16px;margin-top:20px;font-size:var(--bz-sm)}.bz-system .bz-rank-row>span{color:var(--bz-muted)}.bz-system .bz-rank-track{grid-column:2/-1;height:8px;background:var(--bz-neutral-bg);border-radius:8px;overflow:hidden}.bz-system .bz-rank-track i{display:block;height:100%;background:var(--bz-accent);border-radius:8px}.bz-system .bz-reconciliation{display:grid;grid-template-columns:1fr 32px 1fr 1fr;gap:24px;align-items:center}.bz-system .bz-job{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--bz-border);padding:20px 0}.bz-system .bz-job>div:first-child{flex:1}.bz-system .bz-job p{font-size:var(--bz-sm);margin-top:4px}.bz-system .bz-agenda li{display:flex;align-items:center;gap:24px;padding:20px 0;border-bottom:1px solid var(--bz-border)}.bz-system .bz-agenda time{width:130px;color:var(--bz-muted);font-size:var(--bz-sm)}.bz-system .bz-agenda li>div{flex:1}
.bz-system .bz-menu,.bz-system .bz-combobox{position:relative}.bz-system .bz-menu-items,.bz-system .bz-combo-options{position:absolute;z-index:1020;top:calc(100% + 8px);left:0;min-width:240px;background:var(--bz-surface);border:1px solid var(--bz-border);border-radius:12px;padding:8px;box-shadow:var(--bz-shadow)}.bz-system .bz-menu-items>*{display:block;width:100%;text-align:left}.bz-system .bz-combo-options{width:100%;max-height:260px;overflow:auto;font-size:var(--bz-sm)}.bz-system .bz-combo-options li{padding:10px;border-radius:8px;cursor:pointer}.bz-system .bz-combo-options li:hover,.bz-system .bz-combo-options li.is-active{background:var(--bz-accent-soft)}
.bz-system .bz-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.bz-system .bz-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.bz-system .bz-stack{display:flex;flex-direction:column;gap:24px}.bz-system .bz-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.bz-system .bz-catalog-nav{position:sticky;top:124px;z-index:20;padding:12px 16px;background:var(--bz-surface);border:1px solid var(--bz-border);border-radius:12px;display:flex;gap:8px;margin-bottom:32px}.bz-system .bz-catalog-nav a{color:var(--bz-muted);font-size:var(--bz-sm);text-decoration:none;padding:6px 12px}.bz-system .bz-catalog-section{scroll-margin-top:232px;margin:32px 0}.bz-system .bz-catalog-section>h2{margin-bottom:16px}.bz-system .bz-token-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.bz-system .bz-token-swatches>div{border:1px solid var(--bz-border);border-radius:12px;padding:16px;font-size:var(--bz-xs)}.bz-system .bz-token-swatches i{display:block;height:36px;border-radius:8px;margin-bottom:12px}.bz-system code{font-size:var(--bz-xs);color:var(--bz-muted)}
@media(prefers-reduced-motion:reduce){.bz-system *{animation:none!important;transition:none!important}}

.bz-system .bz-stepper li[data-state="error"] .bz-step-mark{background:var(--bz-danger-bg);color:var(--bz-danger-fg)}
