:root{font-family:"DM Sans","Noto Sans KR",sans-serif;color:#252834;background:#f5f6f8;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#252834;--muted:#858a98;--line:#eceef2;--purple:#6558d3;--purple-dark:#5145bb;--purple-soft:#f0efff;--green:#23896d;--green-soft:#eaf7f1;--orange:#c88032;--orange-soft:#fff4e8;--red:#d45e67;--red-soft:#fff0f0;--sidebar:248px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid #ebedf1;padding:27px 16px 14px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);padding:0 9px;margin-bottom:32px}.brand-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#6d61dc;color:white;font-weight:700;font-size:21px;line-height:1}.brand-name{font-size:24px;font-weight:700;letter-spacing:-1.2px}.brand-dot{color:var(--purple)}.workspace-label,.nav-caption{font-size:10px;font-weight:700;letter-spacing:1.1px;color:#a3a6b0;padding:0 10px}.workspace-switch{display:flex;align-items:center;gap:10px;padding:11px 10px;margin:9px 0 28px;border:1px solid #eceef2;border-radius:11px}.workspace-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#f2eee9;color:#8c654d;font-weight:700}.workspace-switch strong,.workspace-switch small,.profile-copy strong,.profile-copy small{display:block}.workspace-switch strong{font-size:12px}.workspace-switch small,.profile-copy small{font-size:10px;color:var(--muted);margin-top:3px}.chevron{margin-left:auto;color:#9da1ac}.nav-caption{margin:0 0 9px}.main-nav{display:flex;flex-direction:column;gap:3px}.nav-link{height:40px;padding:0 11px;display:flex;align-items:center;gap:12px;color:#747987;font-size:12px;text-decoration:none;border-radius:8px;transition:.16s}.nav-link:hover{background:#f8f8fb;color:var(--ink)}.nav-link.active{color:var(--purple-dark);background:var(--purple-soft);font-weight:600}.nav-icon{font-size:17px;width:18px;text-align:center;line-height:1}.nav-count{margin-left:auto;min-width:20px;text-align:center;border-radius:99px;background:#eceaff;color:var(--purple-dark);font-size:10px;padding:3px 5px}.nav-caption-spaced{margin-top:27px}.sidebar-bottom{margin-top:auto}.help-card{padding:14px 13px;background:#f8f7ff;border:1px solid #efedff;border-radius:11px;margin:0 0 13px}.help-spark{display:block;color:var(--purple);font-size:16px;margin-bottom:9px}.help-card strong{font-size:11px}.help-card p{font-size:10px;color:#878b99;line-height:1.6;margin:5px 0 8px}.text-button{padding:0;border:0;background:none;color:var(--purple-dark);font-size:10px;font-weight:600}.text-button span{margin-left:5px}.profile-button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 8px 3px;border:0;border-top:1px solid var(--line);background:white;text-align:left}.profile-avatar,.top-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f5e4df;color:#9e6354;font-size:12px;font-weight:700}.profile-copy strong{font-size:11px}.more{margin-left:auto;color:#9296a2;letter-spacing:2px}.main-area{margin-left:var(--sidebar);min-height:100vh}.topbar{height:66px;background:rgba(255,255,255,.9);border-bottom:1px solid #eceef2;display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}.breadcrumbs{display:flex;align-items:center;gap:11px;font-size:11px;color:#9599a5}.breadcrumbs strong{font-weight:600;color:#353946}.crumb-divider{color:#d4d6dc}.top-actions{display:flex;align-items:center;gap:17px}.connection-pill{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #e9ebef;border-radius:99px;background:#fff;color:#858a96;font-size:10px}.connection-dot{width:6px;height:6px;background:#f0a94c;border-radius:50%}.icon-button{position:relative;border:0;background:transparent;color:#737987;font-size:17px;padding:5px}.notification-button i{position:absolute;width:5px;height:5px;right:3px;top:4px;border-radius:50%;background:#ee856d;border:1px solid white}.top-avatar{width:29px;height:29px;font-size:11px}.menu-toggle{display:none}.page-content{max-width:1480px;margin:0 auto;padding:32px 38px 52px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:.8px;color:#989ca8;font-weight:600;margin:0 0 9px}.page-heading h1{font-size:24px;letter-spacing:-.8px;margin:0;color:#252834}.page-heading .subtitle{font-size:11px;color:#9296a2;margin:8px 0 0}.heading-actions{display:flex;align-items:center;gap:8px}.date-select,.secondary-button,.primary-button{height:36px;border:1px solid #e5e7ec;background:white;border-radius:8px;padding:0 12px;color:#626775;font-size:11px}.date-select{min-width:117px}.primary-button{border-color:var(--purple);background:var(--purple);color:#fff;font-weight:600;padding:0 14px;box-shadow:0 3px 8px #6558d322}.primary-button:hover{background:var(--purple-dark)}.primary-button span{font-size:15px;margin-right:5px;vertical-align:-1px}.secondary-button:hover,.date-select:hover{border-color:#c9c5f0;color:var(--purple-dark)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.stat-card,.panel{background:#fff;border:1px solid #eaecf0;border-radius:11px;box-shadow:0 2px 7px #282d3b04}.stat-card{padding:17px 18px 15px;min-height:128px}.stat-top{display:flex;justify-content:space-between;align-items:center}.stat-label{font-size:11px;color:#858a97;font-weight:500}.stat-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;font-size:14px}.tone-purple{background:#f1efff;color:#6558d3}.tone-green{background:#eaf7f1;color:#27886c}.tone-orange{background:#fff4e8;color:#c78030}.tone-blue{background:#eaf4fb;color:#4a86ae}.stat-value{font-family:"DM Sans","Noto Sans KR",sans-serif;font-size:25px;font-weight:700;letter-spacing:-.8px;margin:10px 0 6px}.stat-foot{font-size:10px;color:#9296a2}.stat-change{color:#25836a;font-weight:600;margin-right:4px}.stat-alert{color:#c88132;font-weight:600;margin-right:4px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:16px;margin-bottom:16px}.panel{padding:19px 20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-title{font-size:13px;font-weight:600;margin:0}.panel-description{font-size:10px;color:#9599a4;margin:5px 0 0}.panel-link{border:0;background:none;color:var(--purple-dark);font-size:10px;font-weight:600}.task-list{display:flex;flex-direction:column}.task-item{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #f0f1f4}.task-item:first-child{border-top:0;padding-top:3px}.task-check{width:17px;height:17px;border:1px solid #d7d9e0;border-radius:5px;background:#fff;flex:none;color:#fff}.task-check.checked{background:var(--purple);border-color:var(--purple)}.task-copy{flex:1;min-width:0}.task-copy strong{display:block;font-size:11px;font-weight:500}.task-copy small{display:block;color:#a0a3ad;font-size:9px;margin-top:4px}.task-tag,.status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:99px;padding:5px 8px;font-size:9px;font-weight:600}.task-tag{background:#f3f2ff;color:#7166cf}.tag-orange{background:#fff4e8;color:#c78030}.tag-green{background:#ebf7f1;color:#23866a}.tag-gray{background:#f1f2f5;color:#858a97}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-action{display:flex;align-items:center;gap:10px;min-height:68px;text-align:left;padding:11px;border:1px solid #eceef2;border-radius:9px;background:white;color:var(--ink)}.quick-action:hover{border-color:#d5d0ff;background:#fcfbff}.quick-icon{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:8px;background:#f3f1ff;color:var(--purple);font-size:15px}.quick-action strong{display:block;font-size:10px}.quick-action small{display:block;font-size:9px;color:#979ba6;margin-top:4px}.activity-panel{padding-bottom:7px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;min-width:550px}th{text-align:left;font-size:9px;color:#9a9eaa;font-weight:500;padding:0 11px 10px;border-bottom:1px solid #eff0f3;white-space:nowrap}td{font-size:10px;color:#5d6270;padding:12px 11px;border-bottom:1px solid #f1f2f5;white-space:nowrap}tbody tr:last-child td{border-bottom:0}.product-cell{display:flex;align-items:center;gap:9px;color:#383c49;font-weight:500}.product-swatch{width:27px;height:30px;border-radius:6px;background:#e7e1dc;display:grid;place-items:center;font-size:13px}.swatch-blue{background:#dfe8ed}.swatch-cream{background:#eee9d8}.swatch-black{background:#e2e3e6}.status{padding:5px 8px}.status-done{color:#22846a;background:#eaf7f1}.status-wait{color:#bd7a2d;background:#fff4e8}.status-process{color:#6558d3;background:#f0efff}.status-cancel{color:#bc6069;background:#fff0f0}.below-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr);gap:16px}.inventory-alert{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #f0f1f4}.inventory-alert:first-of-type{border-top:0;padding-top:2px}.alert-thumb{width:28px;height:30px;border-radius:6px;background:#f0eae5;display:grid;place-items:center}.alert-copy{flex:1;min-width:0}.alert-copy strong{font-size:10px;display:block}.alert-copy small{font-size:9px;color:#9a9ea9;display:block;margin-top:4px}.alert-qty{font-size:10px;color:#cc665f;font-weight:600}.week-summary{display:flex;align-items:flex-end;gap:8px;height:98px;padding:5px 0 0;border-bottom:1px solid #eceef2}.bar-group{height:100%;display:flex;flex:1;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.bar{width:min(25px,70%);background:#e4e1ff;border-radius:5px 5px 2px 2px;min-height:8px;position:relative}.bar.current{background:#7569df}.bar-label{font-size:8px;color:#9da1aa;padding-bottom:7px}.summary-legend{font-size:9px;color:#9296a2;margin-top:9px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7569df;margin-right:5px}.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.search-box{display:flex;align-items:center;gap:8px;width:min(320px,100%);height:36px;padding:0 11px;border:1px solid #e6e8ed;border-radius:8px;background:white;color:#9ca0aa}.search-box input{border:0;outline:0;min-width:0;width:100%;font-size:11px;color:#3e4250;background:transparent}.search-box input::placeholder{color:#a5a8b1}.toolbar-right{display:flex;gap:8px}.data-panel{padding:18px 19px 10px}.table-meta{font-size:10px;color:#979ba6;margin-bottom:13px}.table-meta strong{color:#4a4e5a}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#36a27d;margin-right:5px}.blank-state{text-align:center;padding:55px 20px;color:#9095a1}.blank-icon{width:48px;height:48px;border-radius:14px;background:#f2f0ff;display:grid;place-items:center;margin:0 auto 13px;color:#6d61d7;font-size:21px}.blank-state strong{display:block;color:#454957;font-size:12px}.blank-state p{font-size:10px;margin:7px 0 15px}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;border:1px dashed #cbc8ea;border-radius:10px;background:#fbfaff;text-align:center;padding:20px}.upload-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#f0efff;color:#6659d4;font-size:20px;margin-bottom:11px}.upload-zone strong{font-size:12px}.upload-zone p{font-size:10px;color:#969aa5;line-height:1.7;margin:7px 0 13px}.upload-zone input{display:none}.upload-files{margin-top:15px}.file-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f1f4;font-size:10px}.file-symbol{width:30px;height:32px;border-radius:7px;background:#ecf7f2;color:#348c6e;display:grid;place-items:center;font-weight:700}.file-row small{display:block;color:#999da7;font-size:9px;margin-top:3px}.file-status{margin-left:auto;color:#31876c}.note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.note-card{min-height:130px}.note-date{font-size:9px;color:#9398a4}.note-card h3{font-size:12px;margin:10px 0 6px}.note-card p{font-size:10px;color:#8f94a0;line-height:1.6;margin:0}.overlay{position:fixed;inset:0;background:#22253666;z-index:15;opacity:0;pointer-events:none;transition:.2s}.overlay.show{opacity:1;pointer-events:auto}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#292c38;color:#fff;padding:11px 16px;border-radius:9px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:40;box-shadow:0 8px 24px #17192333}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-only{display:none}
@media(max-width:1100px){:root{--sidebar:220px}.topbar{padding:0 25px}.page-content{padding:28px 25px 44px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(260px,.9fr)}}
@media(max-width:760px){:root{--sidebar:248px}.sidebar{transform:translateX(-102%);transition:transform .22s ease;box-shadow:none}.sidebar.open{transform:translateX(0);box-shadow:14px 0 40px #21243422}.main-area{margin-left:0}.topbar{height:58px;padding:0 16px}.menu-toggle{display:block;margin-right:8px}.breadcrumbs{margin-right:auto;gap:8px;font-size:10px}.top-actions{gap:11px}.connection-pill{font-size:9px;padding:5px 7px}.page-content{padding:23px 16px 36px}.page-heading{align-items:flex-start;margin-bottom:19px}.page-heading h1{font-size:21px}.page-heading .subtitle{font-size:10px;line-height:1.55;max-width:330px}.heading-actions .date-select{display:none}.heading-actions .primary-button{height:34px;padding:0 10px;font-size:10px}.stats-grid{gap:9px;margin-bottom:10px}.stat-card{padding:13px;min-height:114px}.stat-value{font-size:22px}.stat-label{font-size:10px}.stat-foot{font-size:9px}.dashboard-grid,.below-grid{grid-template-columns:1fr;gap:10px;margin-bottom:10px}.panel{padding:16px}.panel-title{font-size:12px}.quick-action{min-height:62px;padding:9px}.note-grid{grid-template-columns:1fr 1fr}.page-toolbar{align-items:stretch}.toolbar-right .secondary-button{padding:0 9px;font-size:10px}.data-panel{padding:15px 12px 8px}.table-wrap{margin:0 -2px}.panel-heading{align-items:flex-start}.mobile-hide{display:none}}
@media(max-width:420px){.page-content{padding-left:12px;padding-right:12px}.stats-grid{gap:8px}.stat-card{padding:11px;min-height:108px}.stat-icon{width:25px;height:25px;font-size:12px}.stat-value{font-size:20px}.stat-foot{font-size:8px}.heading-actions .primary-button{font-size:9px}.connection-pill{display:none}.quick-actions{gap:7px}.quick-action{gap:7px}.quick-icon{width:28px;height:28px}.quick-action strong{font-size:9px}.note-grid{grid-template-columns:1fr}}
.workflow-steps{display:flex;align-items:center;gap:10px;padding:14px 18px;margin:-4px 0 14px;background:#fff;border:1px solid #eaecf0;border-radius:11px}.workflow-steps>i{height:1px;flex:1;background:#e8e9ee}.workflow-step{display:flex;align-items:center;gap:9px;min-width:0;color:#a0a4ae}.workflow-step>span{display:grid;place-items:center;flex:none;width:25px;height:25px;border:1px solid #e4e6ec;border-radius:50%;font-size:10px;font-weight:600}.workflow-step strong,.workflow-step small{display:block;white-space:nowrap}.workflow-step strong{font-size:10px;font-weight:500}.workflow-step small{font-size:9px;color:#a2a6af;margin-top:3px}.workflow-step.step-current{color:#5e53c2}.workflow-step.step-current>span,.workflow-step.step-done>span{border-color:#6e63d4;background:#6e63d4;color:#fff}.workflow-step.step-current strong,.workflow-step.step-done strong{color:#3c4050;font-weight:600}.upload-workspace{padding:20px;margin-bottom:14px}.upload-workspace>.panel-heading{align-items:center;margin-bottom:17px}.upload-title{font-size:15px}.upload-workspace .eyebrow{margin-bottom:6px}.upload-layout{display:grid;grid-template-columns:minmax(250px,.86fr) minmax(330px,1.14fr);gap:15px}.core-upload-zone{min-height:166px;border:1px dashed #c9c4ee;background:#fbfaff;border-radius:10px;padding:15px}.core-upload-zone strong{font-size:11px}.core-upload-zone p{font-size:9px;line-height:1.7;margin:6px 0 10px}.core-upload-zone .upload-icon{width:34px;height:34px;margin-bottom:8px}.core-upload-zone .secondary-button{height:29px;display:flex;align-items:center}.core-upload-zone.drop-active{border-color:#675bd0;background:#f2f0ff;box-shadow:0 0 0 3px #6d61dc18}.upload-file-list{padding:12px 14px;border:1px solid #eceef2;border-radius:9px;min-width:0}.upload-file-list .panel-heading{margin-bottom:7px}.upload-file-list .panel-description{margin-top:4px}.file-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;background:#f0efff;border-radius:99px;color:#6558d3;font-size:9px}.file-row{gap:9px;padding:8px 0}.file-row .file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.file-row .file-name small{overflow:hidden;text-overflow:ellipsis}.file-remove,.row-remove{display:grid;place-items:center;flex:none;width:23px;height:23px;padding:0;border:0;border-radius:6px;background:transparent;color:#9a9eaa;font-size:16px}.file-remove:hover,.row-remove:hover{background:#fff0f0;color:#c45d65}.upload-empty{padding:16px 3px;color:#989ca7;font-size:10px;line-height:1.6}.upload-run-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid #f0f1f4}.privacy-note{display:flex;align-items:center;gap:9px}.privacy-note>span:first-child{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#f3f1ff;color:#6659d1}.privacy-note strong,.privacy-note small{display:block}.privacy-note strong{font-size:10px}.privacy-note small{font-size:9px;color:#969aa6;margin-top:3px}.analyze-button{height:35px}.review-panel{padding:19px 20px 13px;scroll-margin-top:78px}.review-heading{align-items:center}.review-heading .eyebrow{margin-bottom:6px}.review-heading .panel-description{max-width:650px;line-height:1.6}.review-summary{display:flex;align-items:center;gap:0;margin:2px 0 15px;padding:11px 13px;background:#f8f8fb;border-radius:8px}.review-summary>div:not(.merge-note){display:flex;align-items:baseline;gap:5px;padding:0 16px;border-right:1px solid #e8e9ee;color:#858a96;font-size:9px;white-space:nowrap}.review-summary>div:first-child{padding-left:0}.summary-number{font-size:15px;font-weight:700;color:#343846}.summary-purple{color:#6459cf}.summary-orange{color:#c88032}.merge-note{display:flex;align-items:center;gap:9px;padding-left:16px}.merge-note-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#efedff;color:#6558d3}.merge-note strong,.merge-note small{display:block}.merge-note strong{font-size:9px;font-weight:600}.merge-note small{font-size:8px;color:#969aa5;margin-top:3px}.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.review-toolbar .search-box{height:32px;width:min(290px,46%)}.review-toolbar .search-box input{font-size:10px}.review-toolbar .secondary-button{height:32px;padding:0 10px;font-size:9px}.review-table-wrap{border:1px solid #eceef2;border-radius:8px}.review-table{min-width:1000px}.review-table th{padding:9px 8px;background:#fafafd;font-size:8px}.review-table td{padding:7px 6px;font-size:9px;vertical-align:middle}.review-input{display:block;width:100%;min-width:76px;padding:5px 6px;border:1px solid transparent;border-radius:5px;outline:0;background:transparent;color:#3e4250;font-size:9px}.review-input:hover,.review-input:focus{border-color:#dcd8fb;background:#fff}.review-input.product-input{font-weight:600}.review-code{display:block;padding:0 6px;color:#9b9faa;font-size:8px}.review-select{min-width:54px;padding:5px 7px;border:1px solid transparent;border-radius:99px;outline:0;font-size:8px;font-weight:600;appearance:none;text-align:center}.review-select:focus{border-color:#cfcaf4}.type-입고{background:#eaf7f1;color:#25856a}.type-출고{background:#edf2ff;color:#5573bd}.type-반품{background:#fff4e8;color:#bc7a30}.type-불량{background:#fff0f0;color:#c05e67}.quantity-input{min-width:48px;text-align:right;font-weight:700}.source-cell{display:block;max-width:135px;overflow:hidden;text-overflow:ellipsis;color:#7f8491;font-size:8px}.review-confidence{border:0;border-radius:99px;padding:5px 7px;white-space:nowrap;font-size:8px;font-weight:600}.confidence-merged{background:#f0efff;color:#6358c8}.confidence-checked{background:#eaf7f1;color:#218268}.confidence-pending{background:#fff4e8;color:#bb772c}.review-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.review-footer>span{font-size:9px;color:#999da7;line-height:1.5}.review-footer .primary-button{height:32px;font-size:9px;white-space:nowrap}.review-panel .blank-state{padding:35px 15px}
@media(max-width:760px){.workflow-steps{gap:5px;padding:12px 9px;overflow:auto}.workflow-steps>i{min-width:10px}.workflow-step{gap:5px}.workflow-step>span{width:21px;height:21px;font-size:9px}.workflow-step strong{font-size:8px}.workflow-step small{font-size:7px}.upload-workspace,.review-panel{padding:14px}.upload-workspace>.panel-heading{align-items:flex-start}.upload-workspace>.panel-heading>.task-tag{font-size:8px}.upload-title{font-size:13px;line-height:1.5}.upload-workspace .panel-description{font-size:9px;line-height:1.6}.upload-layout{grid-template-columns:1fr;gap:10px}.core-upload-zone{min-height:144px}.upload-file-list{padding:11px}.review-heading{align-items:flex-start}.review-heading .panel-title{line-height:1.5}.review-summary{flex-wrap:wrap;row-gap:10px;padding:10px}.review-summary>div:not(.merge-note){padding:0 10px}.review-summary>div:first-child{padding-left:0}.merge-note{width:100%;padding:8px 0 0;border-top:1px solid #e8e9ee}.review-toolbar{align-items:stretch;flex-direction:column}.review-toolbar .search-box{width:100%}.review-toolbar .toolbar-right{justify-content:flex-end}.review-footer{align-items:flex-start;flex-direction:column}.review-footer .primary-button{align-self:flex-end}}
@media(max-width:420px){.workflow-steps{padding:10px 7px}.workflow-step{align-items:flex-start;flex-direction:column;gap:4px;min-width:57px}.workflow-step small{white-space:normal;line-height:1.25}.workflow-steps>i{align-self:flex-start;margin-top:10px}.upload-run-row{align-items:flex-start;flex-direction:column}.analyze-button{width:100%;justify-content:center}.review-summary>div:not(.merge-note){padding:0 7px;font-size:8px}.review-toolbar .toolbar-right{gap:6px}.review-toolbar .secondary-button{padding:0 7px}}
@media print{body{background:#fff}.sidebar,.topbar,.overlay,.toast,.page-heading,.workflow-steps,.upload-workspace,.review-toolbar,.review-footer button{display:none!important}.main-area{margin:0}.page-content{max-width:none;padding:0}.review-panel{display:block!important;position:absolute;inset:0;width:100%;padding:0;border:0;box-shadow:none}.review-panel .panel-heading{display:block}.review-panel .panel-heading .task-tag{display:none}.review-summary{background:#fff;border:1px solid #ddd}.review-table-wrap{overflow:visible;border:0}.review-table{min-width:0;width:100%;table-layout:fixed;border-collapse:collapse}.review-table th,.review-table td{border:1px solid #bbb;padding:7px 4px;color:#111;font-size:8pt;white-space:normal}.review-table th{background:#f1f1f1!important}.review-input{min-width:0;padding:0;border:0!important;color:#111;font-size:8pt}.review-select{min-width:0;padding:0;background:#fff!important;color:#111;font-size:8pt}.review-code{color:#555;font-size:7pt}.review-confidence{padding:0;color:#111;background:#fff!important;font-size:7pt}.row-remove{display:none}.source-cell{max-width:none;color:#111;white-space:normal;font-size:7pt}.review-footer{margin-top:8px}.review-footer>span{color:#333;font-size:8pt}}
.auth-view[hidden], [hidden] { display: none !important; }
.auth-view { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 0%, #eeecff 0, #f6f6fb 45%, #f5f6f8 100%); }
.auth-card { width: min(100%, 440px); padding: 34px; border: 1px solid #eceef2; border-radius: 18px; background: #fff; box-shadow: 0 18px 60px #2a25400e; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--ink); font-size: 25px; font-weight: 700; letter-spacing: -1px; }
.auth-brand .brand-mark { flex: 0 0 31px; }
.auth-card h1 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.5px; }
.auth-lead { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-form { display: grid; gap: 13px; }
.auth-field { display: grid; gap: 6px; color: #585d6a; font-size: 12px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #e5e7ed; border-radius: 8px; outline: none; color: var(--ink); font-size: 13px; }
.auth-field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #6558d31b; }
.auth-field-hint { color: #777d8c; font-size: 12px; font-weight: 400; line-height: 1.6; }
.auth-field input[aria-invalid="true"] { border-color: var(--red); }
.auth-submit { min-height: 44px; margin-top: 5px; border: 0; border-radius: 8px; background: var(--purple); color: #fff; font-weight: 600; }
.auth-submit:hover { background: var(--purple-dark); }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 21px; }
.auth-links button { padding: 0; border: 0; background: none; color: var(--purple-dark); font-size: 12px; }
.auth-message { margin: 0 0 14px; padding: 11px 12px; border-radius: 8px; background: var(--purple-soft); color: var(--purple-dark); font-size: 12px; line-height: 1.6; }
.team-status { white-space: nowrap; }
.team-actions { display: flex; gap: 7px; }
.team-actions .secondary-button, .team-actions .primary-button { min-height: 31px; padding: 0 10px; font-size: 11px; }
@media (max-width: 520px) { .auth-card { padding: 26px 21px; } }
.permission-modal[hidden]{display:none}.permission-modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:18px}.permission-backdrop{position:absolute;inset:0;border:0;background:#17182780}.permission-card{position:relative;width:min(100%,520px);padding:24px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 22px 70px #17182730}.permission-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.permission-card-heading h2{margin:0;font-size:18px}.permission-card-heading p:last-child{margin:6px 0 0;color:var(--muted);font-size:12px}.permission-card-heading .eyebrow{margin:0 0 6px;color:var(--purple);font-size:9px;font-weight:700}.permission-hint{margin:15px 0;padding:10px 12px;border-radius:8px;background:#f8f7ff;color:#6d668f;font-size:11px;line-height:1.6}.permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.permission-option{display:flex;align-items:center;gap:9px;min-height:43px;padding:9px 11px;border:1px solid #eceef2;border-radius:8px;color:#454958;font-size:11px}.permission-option:has(input:checked){border-color:#c9c4ee;background:#fbfaff}.permission-option input{accent-color:var(--purple)}.permission-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.permission-actions button{min-height:36px;padding:0 14px}@media(max-width:520px){.permission-card{padding:18px}.permission-options{grid-template-columns:1fr}.permission-option{min-height:39px}}
.partner-context{display:grid;grid-template-columns:minmax(140px,.35fr) minmax(220px,1fr);gap:6px 12px;align-items:center;margin-top:13px;padding:12px 14px;border:1px solid #eceef2;border-radius:9px;background:#fcfcfe}.partner-context>label{color:#565b69;font-size:10px;font-weight:600}.partner-context input,.bulk-tool input{min-width:0;height:32px;padding:0 9px;border:1px solid #e5e7ed;border-radius:7px;background:#fff;color:#3e4250;font-size:10px;outline:0}.partner-context input:focus,.bulk-tool input:focus{border-color:#c9c4ee;box-shadow:0 0 0 2px #6d61dc12}.partner-context small{grid-column:2;color:#969aa6;font-size:9px;line-height:1.5}.review-bulk-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 0 10px;padding:10px;border:1px solid #eceef2;border-radius:8px;background:#fcfcfe}.bulk-tool{display:flex;align-items:flex-end;gap:7px;min-width:0}.bulk-tool label{display:grid;gap:4px;color:#777c89;font-size:8px}.bulk-tool input{width:125px;height:30px}.bulk-tool button{height:30px;white-space:nowrap;font-size:8px}.review-select-cell{width:34px;text-align:center}.review-select-cell input{width:14px;height:14px;accent-color:#6558d3;cursor:pointer}.review-table{min-width:1180px}.review-confidence{cursor:pointer;transition:background .15s ease}.type-발주{background:#f1edff;color:#6558c8}
.partner-context{display:grid;grid-template-columns:minmax(140px,.35fr) minmax(220px,1fr);gap:6px 12px;align-items:center;margin-top:13px;padding:12px 14px;border:1px solid #eceef2;border-radius:9px;background:#fcfcfe}.partner-context>label{color:#565b69;font-size:10px;font-weight:600}.partner-context input,.bulk-tool input{min-width:0;height:32px;padding:0 9px;border:1px solid #e5e7ed;border-radius:7px;background:#fff;color:#3e4250;font-size:10px;outline:0}.partner-context input:focus,.bulk-tool input:focus{border-color:#c9c4ee;box-shadow:0 0 0 2px #6d61dc12}.partner-context small{grid-column:2;color:#969aa6;font-size:9px;line-height:1.5}.review-bulk-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 0 10px;padding:10px;border:1px solid #eceef2;border-radius:8px;background:#fcfcfe}.bulk-tool{display:flex;align-items:flex-end;gap:7px;min-width:0}.bulk-tool label{display:grid;gap:4px;color:#777c89;font-size:8px}.bulk-tool input{width:125px;height:30px}.bulk-tool button{height:30px;white-space:nowrap;font-size:8px}.review-select-cell{width:34px;text-align:center}.review-select-cell input{width:14px;height:14px;accent-color:#6558d3;cursor:pointer}.review-table{min-width:1180px}.review-confidence{cursor:pointer;transition:background .15s ease}.type-발주{background:#f1edff;color:#6558c8}
@media(max-width:760px){.partner-context{grid-template-columns:1fr;gap:7px}.partner-context small{grid-column:1}.review-bulk-toolbar{align-items:stretch}.bulk-tool{flex:1 1 100%;flex-wrap:wrap}.bulk-tool label{flex:1}.bulk-tool input{width:100%}.bulk-tool button{flex:none}}
.review-table{table-layout:fixed;min-width:1150px}.review-table .col-select{width:34px}.review-table .col-product{width:170px}.review-table .col-sku{width:88px}.review-table .col-color{width:86px}.review-table .col-size{width:64px}.review-table .col-type{width:74px}.review-table .col-quantity{width:62px}.review-table .col-location{width:135px}.review-table .col-partner{width:132px}.review-table .col-review{width:102px}.review-table .col-remove{width:32px}.review-table .col-source{width:155px}.review-table td{overflow:hidden}.review-input{min-width:0;padding:5px 4px}.quantity-input{width:100%;min-width:0;text-align:center;padding-right:2px;padding-left:2px}.location-suggest-input{min-width:0}
.review-table{table-layout:auto;min-width:1080px}.review-table .col-sku{width:1%}.review-table .col-product{width:180px}.review-table .col-color{width:78px}.review-table .col-size{width:62px}.review-table .col-quantity{width:58px}.review-table .col-partner{width:100px}.review-table .col-location{width:120px}.review-table .col-type{width:74px}.review-table .col-review{width:88px}.review-table .col-source{width:110px}.review-table .col-remove{width:30px}.review-table tbody tr{cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:pan-y}.review-table tbody tr input,.review-table tbody tr select{user-select:text;-webkit-user-select:text}.review-table tbody tr.review-row-selected td{background:#f1efff}.review-table tbody tr.review-row-selected td:first-child{box-shadow:inset 3px 0 #6558d3}.review-confidence{padding:4px 5px;font-size:7px}.source-cell{max-width:100px;white-space:nowrap;text-overflow:ellipsis}.select-all-button{height:32px;padding:0 11px;border:1px solid #dcd8fb;border-radius:8px;background:#f5f3ff;color:#5d52c2;font-size:9px;font-weight:600;white-space:nowrap}.select-all-button:hover{border-color:#bdb6f3;background:#efedff}
@media print{.review-table{min-width:0;width:100%;table-layout:fixed}.review-table .col-sku,.review-table .col-product,.review-table .col-color,.review-table .col-size,.review-table .col-quantity,.review-table .col-partner,.review-table .col-location,.review-table .col-type,.review-table .col-review,.review-table .col-source,.review-table .col-remove{width:auto}.select-all-button{display:none}}
.file-row{display:grid;grid-template-columns:30px minmax(120px,1fr) minmax(190px,.8fr) 24px;align-items:center}.file-partner-label{display:flex;align-items:center;gap:7px;color:#777c89;font-size:9px;white-space:nowrap}.file-partner-input{width:100%;min-width:0;height:30px;padding:0 8px;border:1px solid #e5e7ed;border-radius:7px;background:#fff;color:#3e4250;font-size:10px;outline:0}.file-partner-input:focus{border-color:#c9c4ee;box-shadow:0 0 0 2px #6d61dc12}.review-table .col-type{width:74px}.review-table .col-location{width:120px}.review-table .col-source{width:110px}.review-table .col-remove{width:30px}.review-table .col-review{display:none}
@media(max-width:760px){.file-row{grid-template-columns:30px minmax(0,1fr) 24px}.file-row .file-name{grid-column:2;grid-row:1}.file-row .file-remove{grid-column:3;grid-row:1}.file-partner-label{grid-column:2/4;grid-row:2;padding-top:6px}.review-toolbar{align-items:flex-start}.review-toolbar .toolbar-right{flex-wrap:wrap;justify-content:flex-end}}
@page{size:A4 landscape;margin:10mm}
@media print{.review-panel>:not(#reviewTableArea){display:none!important}#reviewTableArea{display:block!important}.review-panel{display:block!important;position:absolute;inset:0;width:100%;padding:0;border:0;box-shadow:none}.review-table-wrap{overflow:visible;border:0}.review-table{min-width:0!important;width:100%!important;table-layout:fixed!important;border-collapse:collapse}.review-table th,.review-table td{border:1px solid #bbb;padding:7px 4px;color:#111;font-size:12pt;white-space:normal}.review-table th{background:#f1f1f1!important}.review-table input,.review-table select{min-width:0;width:100%;padding:0;border:0!important;outline:0;background:transparent;color:#111;font-size:12pt;appearance:none}.review-table th:last-child,.review-table td:last-child{display:none}.review-table tr{break-inside:avoid}.source-cell{max-width:none;white-space:normal;color:#111;font-size:12pt}}
.review-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:10px 12px;border:1px solid #eceef2;border-radius:8px;background:#fcfcfe}.review-filter{display:grid;gap:4px;color:#777c89;font-size:9px}.review-filter select{min-width:140px;height:31px;padding:0 8px;border:1px solid #e5e7ed;border-radius:7px;background:white;color:#3e4250;font-size:10px}.review-filters>span{margin:0 0 8px;color:#969aa6;font-size:9px}.review-table{width:max-content;min-width:0;table-layout:fixed}.review-table .col-sku,.review-table .col-product,.review-table .col-color,.review-table .col-size,.review-table .col-quantity,.review-table .col-unit-price,.review-table .col-amount,.review-table .col-partner,.review-table .col-type,.review-table .col-location,.review-table .col-source,.review-table .col-remove{width:auto}.review-table .col-review{display:none}.review-table tfoot th,.review-table tfoot td{padding:9px 7px;border-top:2px solid #d9d7e7;background:#f7f6fc;font-weight:700;white-space:nowrap}.review-table .money-input{min-width:0;text-align:right}.save-menu{position:relative}.save-menu-options{position:absolute;right:0;top:calc(100% + 5px);z-index:12;display:grid;min-width:165px;padding:5px;border:1px solid #e8e8ef;border-radius:9px;background:#fff;box-shadow:0 8px 24px #2528341a}.save-menu-options[hidden]{display:none}.save-menu-options button{min-height:34px;padding:0 9px;border:0;border-radius:6px;background:#fff;color:#454958;text-align:left;font-size:10px;white-space:nowrap}.save-menu-options button:hover{background:#f5f3ff;color:#5145bb}
.review-table .review-total-row th,.review-table .review-total-row td{padding:9px 7px;border-top:2px solid #d9d7e7;background:#f7f6fc;font-weight:700;white-space:nowrap}.review-table .money-input{font-variant-numeric:tabular-nums}
@media print{.review-filters{display:none!important}.review-table col{width:auto!important}.review-table tfoot th,.review-table tfoot td{background:#f1f1f1!important}}
@media(max-width:760px){.review-filters{align-items:stretch}.review-filter{flex:1 1 28%;min-width:85px}.review-filter select{min-width:0;width:100%}.review-filters>span{width:100%;margin:0}}
.review-table .col-source{max-width:145px}.review-table .col-remove{width:30px!important}.review-table .source-cell{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis}.review-toolbar .toolbar-right{display:flex;flex-wrap:wrap;gap:6px}.merge-confirm-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px}.merge-confirm-modal[hidden]{display:none}.merge-confirm-backdrop{position:absolute;inset:0;background:#1f223099}.merge-confirm-card{position:relative;width:min(540px,100%);max-height:min(80vh,700px);overflow:auto;padding:24px;border:1px solid #eaecf0;border-radius:14px;background:#fff;box-shadow:0 20px 70px #1113}.merge-confirm-card h2{margin:0 0 9px;font-size:18px}.merge-confirm-card>p:not(.eyebrow){color:#6e7380;font-size:12px;line-height:1.65}.merge-confirm-card>ul{display:grid;gap:9px;padding:0;list-style:none}.merge-price-group{padding:10px;border:1px solid #eceef2;border-radius:8px;background:#fcfcfe;font-size:11px}.merge-price-group>ul{display:flex;flex-wrap:wrap;gap:5px 14px;margin:7px 0 0;padding-left:15px;color:#747987}.merge-price-group li{min-width:120px}.merge-price-group li strong{color:#383b47}.merge-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.review-table th:nth-child(5),.review-table td:nth-child(5){text-align:center}.review-table th:nth-child(6),.review-table th:nth-child(7),.review-table td:nth-child(6),.review-table td:nth-child(7){text-align:right}.review-table tbody td:nth-child(5) .review-input{ text-align:center}.review-table tbody td:nth-child(6) .review-input,.review-table tbody td:nth-child(7) .review-input{text-align:right}.review-table th:nth-child(9),.review-table td:nth-child(9),.review-table th:last-child,.review-table td:last-child{text-align:center}.review-table #reviewQuantityTotal{text-align:center}.review-table #reviewAmountTotal{text-align:right}

.profile-menu-container{position:relative}.profile-button .more{font-size:16px;letter-spacing:0}.profile-menu{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:30;padding:7px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px #1719231a}.profile-menu[hidden]{display:none}.profile-menu-identity{padding:9px 9px 10px;border-bottom:1px solid var(--line);min-width:0}.profile-menu-identity strong,.profile-menu-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu-identity strong{font-size:11px}.profile-menu-identity small{margin-top:4px;font-size:10px;color:var(--muted)}.profile-menu>button{width:100%;margin-top:5px;padding:9px;border:0;border-radius:7px;background:white;text-align:left;color:#a7444b;font-size:11px}.profile-menu>button:hover{background:#fff3f3}

.review-table tbody tr{touch-action:manipulation}.review-editable-cell{touch-action:manipulation;-webkit-touch-callout:none;outline:none}.review-editable-cell:not(.review-cell-editing)>.review-input,.review-editable-cell:not(.review-cell-editing)>.review-select{pointer-events:none;user-select:none;-webkit-user-select:none}.review-table .review-cell-active,.review-table .review-editable-cell:focus-visible{box-shadow:inset 0 0 0 2px #6558d3!important}.review-table .review-cell-editing{background:#fff!important;box-shadow:inset 0 0 0 2px #6558d3!important}.review-cell-editing>.review-input,.review-cell-editing>.review-select{pointer-events:auto;user-select:text;-webkit-user-select:text;touch-action:auto}.review-cell-editing>.review-input{background:#fff;border-color:#dcd8fb}
.page-content[data-view="uploads"] button:disabled{opacity:.55;cursor:not-allowed}.page-content[data-view="uploads"] .review-panel[inert]{opacity:.6}.page-content[data-view="uploads"] .privacy-note{flex:1;min-width:0;align-items:flex-start}.page-content[data-view="uploads"] .privacy-note>span:first-child{flex-shrink:0}.page-content[data-view="uploads"] .privacy-note small{line-height:1.7;overflow-wrap:anywhere}.page-content[data-view="uploads"] .analyze-button{flex-shrink:0}.page-content[data-view="uploads"] .file-partner-input[readonly]{background:#f5f5f8;color:#858a96}
@media(max-width:760px){.page-content[data-view="uploads"] .upload-run-row{align-items:stretch;flex-direction:column}.page-content[data-view="uploads"] .analyze-button{width:100%}}
@media screen and (pointer:coarse){.page-content[data-view="uploads"] input:not([type="file"]),.page-content[data-view="uploads"] select[data-review-filter]{font-size:16px}.review-table .review-input{height:32px;min-height:32px;line-height:20px}}
@media print{.review-interaction-hint{display:none!important}.review-table .review-cell-active,.review-table .review-cell-editing,.review-table .review-editable-cell:focus-visible{box-shadow:none!important}}

.review-interaction-hint {
  margin: 10px 0;
  color: #777c89;
  font-size: 12px;
  line-height: 1.6;
}

.page-content[data-view="uploads"] .core-upload-zone .upload-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  height: auto;
  padding: 12px 24px;
  border: 1px solid var(--purple);
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 12px #6558d326;
}
.page-content[data-view="uploads"] .core-upload-zone:hover .upload-select-button {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
}
.page-content[data-view="uploads"] .review-toolbar .toolbar-right {
  align-items: center;
}
#saveMenuToggle.save-button {
  min-width: 60px;
  padding-inline: 18px;
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}
#saveMenuToggle.save-button:hover,
#saveMenuToggle.save-button[aria-expanded="true"] {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
}
#saveMenuToggle.save-button:focus-visible {
  outline: 2px solid #6558d366;
  outline-offset: 2px;
}

.review-type-button {
  padding: 5px 7px;
  border: 0;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.review-type-button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.review-type-dialog {
  width: min(280px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 40px #25283426;
}
.review-type-dialog::backdrop { background: #25283466; }
.review-type-dialog h2 { margin: 0 0 14px; font-size: 16px; }
.review-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.review-type-options button { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
.review-type-options button[aria-pressed="true"],.review-type-options button:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-dark); }
.review-type-dialog > .secondary-button { width: 100%; }
@media print { .review-type-dialog { display: none!important; }.review-type-button { padding: 0; background: transparent; color: #111; font-size: 12pt; } }

/* Find, replace, and filter controls share a compact workspace above the table. */
.review-controls { margin-bottom: 10px; min-width: 0; }
.review-controls [hidden] { display: none!important; }
.review-toolbar.review-result-toolbar { flex-direction: row; align-items: center; margin-bottom: 12px; }
.review-result-label { color: #454958; font-size: 12px; font-weight: 600; }
.review-result-toolbar .toolbar-right { margin-left: auto; }
.review-result-toolbar .secondary-button { font-size: 11px; }
.review-find-row { display: flex; align-items: flex-start; gap: 8px; }
.review-find-box { flex: 1; min-width: 0; border: 1px solid #e1e3eb; border-radius: 9px; background: #fff; overflow: hidden; }
.review-find-box:focus-within { border-color: #b8b0ee; }
.review-find-main { display: flex; align-items: center; min-width: 0; }
.review-find-main .search-box { flex: 1; min-width: 0; width: auto; height: 36px; margin: 0; padding: 0 10px; border: 0; border-radius: 0; background: transparent; }
.review-find-main .search-box input { width: 100%; min-width: 0; font-size: 12px; }
.review-disclosure { align-self: stretch; flex-shrink: 0; padding: 0 12px; border: 0; border-left: 1px solid #eceef2; background: #fafafd; color: #6558b7; font-size: 11px; white-space: nowrap; }
.review-disclosure[aria-expanded="true"] { background: #f3f1ff; }
.review-controls .secondary-button { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
.review-controls .review-filter-toggle { height: 38px; min-width: 64px; }
.review-filter-toggle.has-filters { border-color: #cfc8f3; background: #f3f1ff; color: var(--purple-dark); }
.review-replace-panel { padding: 12px; border-top: 1px solid #eceef2; background: #fcfcfe; }
.review-field { display: grid; gap: 6px; min-width: 0; color: #656b79; font-size: 11px; }
.review-field input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #e1e3eb; border-radius: 7px; outline: 0; background: #fff; color: #3e4250; font-size: 12px; }
.review-field input:focus { border-color: #b8b0ee; }
.review-edit-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: #777c89; font-size: 11px; line-height: 1.6; }
.review-edit-footer > div { display: flex; gap: 6px; }
.review-edit-footer > button,.review-edit-footer > div { flex-shrink: 0; }
.review-replace-panel > small { display: block; margin-top: 8px; color: #9397a1; font-size: 10px; line-height: 1.6; }
.review-filter-panel,.review-partner-panel { margin-top: 8px; padding: 12px; border: 1px solid #e8e8ef; border-radius: 9px; background: #fcfcfe; }
.review-filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.review-filter-fields .review-filter { min-width: 0; gap: 6px; font-size: 11px; }
.review-filter-fields .review-filter select { width: 100%; min-width: 0; height: 36px; font-size: 12px; }
.review-view-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 0; color: #858a96; font-size: 11px; line-height: 1.6; }
.review-active-filters { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
#reviewFilterSummary { color: #7466b9; overflow-wrap: anywhere; }
.review-controls .panel-link { flex-shrink: 0; padding: 0; font-size: 11px; }
.review-row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; min-height: 44px; padding: 6px 0; border-top: 1px solid #eceef2; }
.review-selection-actions,.review-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-selection-actions .select-all-button { height: 32px; padding: 0 10px; font-size: 11px; }
.review-selection-count { min-width: 52px; color: #797e8c; font-size: 11px; white-space: nowrap; }
.review-partner-panel { max-width: 520px; margin-left: auto; }
.review-organize-menu { position: relative; }
.review-organize-menu summary { list-style: none; cursor: pointer; }
.review-organize-menu summary::-webkit-details-marker { display: none; }
.review-organize-options { position: absolute; right: 0; top: calc(100% + 5px); z-index: 12; display: grid; width: max-content; max-width: calc(100vw - 64px); padding: 6px; border: 1px solid #e8e8ef; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px #2528341a; }
.review-organize-options > span,.save-menu-options > span { padding: 6px 9px; color: #9297a3; font-size: 10px; }
.review-organize-options > button { min-height: 34px; padding: 6px 9px; border: 0; border-radius: 6px; background: #fff; color: #454958; text-align: left; font-size: 11px; }
.review-organize-options > button:hover { background: #f5f3ff; color: #5145bb; }
.review-controls button:focus-visible,.review-organize-menu summary:focus-visible { outline: 2px solid #6558d366; outline-offset: 2px; }
@media (max-width: 760px) {
  .review-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-view-status { flex-direction: column; gap: 4px; }
  .review-row-actions { align-items: stretch; }
  .review-selection-actions { flex: 1 1 100%; }
  .review-edit-actions { margin-left: auto; }
  .review-partner-panel { max-width: none; }
  .review-edit-footer { flex-wrap: wrap; }
  .review-edit-footer > button,.review-edit-footer > div { margin-left: auto; }
  .review-find-main .search-box { padding-inline: 8px; }
  .review-disclosure { padding-inline: 8px; }
}

/* Keep the document scrollable and the fixed navigation reachable on short screens. */
@media screen {
  html { overflow-y: auto; }
  .app-shell,.main-area { min-height: 100vh; min-height: 100dvh; }
  .main-area { height: auto; max-height: none; overflow: visible; }
  .sidebar {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
  .sidebar > * { flex-shrink: 0; }
  .sidebar-bottom { padding-top: 16px; }
  .sidebar .profile-menu {
    top: auto;
    bottom: calc(100% + 8px);
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .overlay { touch-action: none; }
  .page-content[data-view="dashboard"] {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
}
@media screen and (max-width: 1100px) and (max-height: 600px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 14px 0 40px #21243422; }
  .main-area { margin-left: 0; }
  .menu-toggle { display: block; margin-right: 8px; }
  .topbar { height: 58px; padding-inline: 16px; }
  .breadcrumbs { margin-right: auto; gap: 8px; font-size: 10px; }
  .page-content { padding: 20px 16px 36px; }
  .sidebar { padding-top: 16px; }
  .sidebar .brand { margin-bottom: 18px; }
  .sidebar .workspace-switch { margin-bottom: 18px; }
}

/* Let dashboard cards shrink independently of the tables inside them. */
.page-content[data-view="dashboard"] > section,
.page-content[data-view="dashboard"] .panel,
.page-content[data-view="dashboard"] .stat-card,
.page-content[data-view="dashboard"] .quick-action,
.page-content[data-view="dashboard"] .panel-heading > div {
  min-width: 0;
}
.page-content[data-view="dashboard"] .table-wrap {
  max-width: 100%;
  margin-inline: 0;
}
.page-content[data-view="dashboard"] .quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-content[data-view="dashboard"] .quick-action > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media screen and (max-width: 760px), screen and (max-width: 1100px) and (max-height: 600px) {
  .page-content[data-view="dashboard"] {
    width: 100%;
    min-width: 0;
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .page-content[data-view="dashboard"] .dashboard-grid,
  .page-content[data-view="dashboard"] .below-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-content[data-view="dashboard"] .page-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .page-content[data-view="dashboard"] .page-heading > div:first-child {
    flex: 1 1 220px;
    min-width: 0;
  }
  .page-content[data-view="dashboard"] .panel-heading {
    flex-wrap: wrap;
  }
  .page-content[data-view="dashboard"] .stat-top {
    align-items: flex-start;
    gap: 6px;
  }
  .page-content[data-view="dashboard"] .stat-icon {
    flex-shrink: 0;
  }
  .page-content[data-view="dashboard"] .stat-label,
  .page-content[data-view="dashboard"] .stat-foot,
  .page-content[data-view="dashboard"] .task-copy,
  .page-content[data-view="dashboard"] .alert-copy {
    overflow-wrap: anywhere;
  }
}
