:root {
  font-family: 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', sans-serif;
  color: #192624;
  background: #f5f7f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #192624;
  --muted: #798582;
  --line: #e7ecea;
  --green: #117561;
  --green-dark: #0d5f50;
  --mint: #e3f5ef;
  --paper: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.boot-screen, .fatal-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #137b65; color: white; font-weight: 700; font-size: 22px; box-shadow: 0 8px 22px #137b6526; }
.brand-mark.small { width: 37px; height: 37px; border-radius: 12px; font-size: 17px; }

.gate-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) 1fr; background: #f6f8f7; }
.gate-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 48px)); padding: 45px 0; }
.gate-card .brand-mark { margin-bottom: 35px; }
.eyebrow { margin: 0 0 10px; color: #8a9691; letter-spacing: .13em; font-size: 10px; font-weight: 700; }
.gate-card h1 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.muted, .gate-description { color: var(--muted); }
.gate-description { margin: 12px 0 30px; font-size: 13px; line-height: 1.75; }
.form-stack { display: grid; gap: 18px; }
.form-stack label, .form-grid label { display: grid; gap: 8px; color: #45514d; font-size: 12px; font-weight: 600; }
input, select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dfe6e2; border-radius: 8px; outline: 0; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #aab3af; }
input:focus, select:focus { border-color: #78b5a7; box-shadow: 0 0 0 3px #137b6514; }
.gate-error { margin: 14px 0 0; padding: 11px 13px; border: 1px solid #f0ccc5; border-radius: 8px; background: #fff4f2; color: #a94438; font-size: 12px; font-weight: 600; line-height: 1.6; }
.gate-error[hidden] { display: none; }
input[aria-invalid="true"] { border-color: #cf6a5d; box-shadow: 0 0 0 3px #cf6a5d14; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .15s, border-color .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-secondary { border-color: #dfe6e2; background: white; color: #41504b; }
.button-secondary:hover:not(:disabled) { background: #f6f9f7; border-color: #c9d7d1; }
.button-quiet { min-height: 32px; border-color: #e6ebe8; background: white; color: #67726e; font-weight: 600; }
.button-wide { width: 100%; min-height: 45px; margin-top: 4px; }
.button-icon { font-size: 16px; }
.gate-footnote { margin: 28px 0 0; color: #96a09c; font-size: 11px; }
.gate-aside { display: flex; flex-direction: column; justify-content: center; padding: 70px 12%; background: #e7f2ed; color: #1e483e; }
.aside-kicker { color: #719287; letter-spacing: .18em; font-size: 10px; font-weight: 700; }
.gate-aside h2 { margin: 20px 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.28; letter-spacing: -.06em; }
.gate-aside p { max-width: 390px; margin: 0; color: #66827a; font-size: 14px; line-height: 1.8; }
.aside-stats { display: grid; gap: 14px; margin-top: 55px; padding-top: 25px; border-top: 1px solid #d0e3db; color: #8da49b; font-size: 10px; letter-spacing: .07em; }
.aside-stats b { margin-left: 15px; color: #3d665a; font-size: 12px; letter-spacing: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 238px; padding: 24px 15px 14px; border-right: 1px solid #e8edeb; background: #fff; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 31px; }
.home-brand { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.home-brand:hover { border-radius: 9px; background: #f7f9f8; }
.sidebar-brand strong { display: block; font-size: 13px; letter-spacing: -.02em; }
.sidebar-brand span { display: block; margin-top: 4px; color: #a0aaa6; font-size: 8px; letter-spacing: .15em; font-weight: 700; }
.side-label { padding: 0 11px 10px; color: #a0aaa6; font-size: 9px; letter-spacing: .15em; font-weight: 700; text-transform: uppercase; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; height: 41px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #697571; text-align: left; font-size: 12px; font-weight: 600; }
.nav-item:hover { background: #f6f8f7; color: #2e5146; }
.nav-item.is-active { background: #e8f5ef; color: #12745e; }
.nav-icon { width: 18px; color: #85918d; text-align: center; font-size: 16px; }
.nav-item.is-active .nav-icon { color: #12745e; }
.nav-badge { margin-left: auto; min-width: 21px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; background: #f1e8dd; color: #a16c36; font-size: 9px; }
.sidebar-spacer { flex: 1; min-height: 20px; }
.connection-card { margin: 0 3px 14px; padding: 13px 12px; border: 1px solid #efe6dc; border-radius: 10px; background: #fcfaf7; }
.connection-card.connected { border-color: #dcece5; background: #f5faf7; }
.connection-top { display: flex; align-items: center; gap: 7px; color: #917a5d; font-size: 10px; }
.connected .connection-top { color: #528977; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #c79259; }
.connected .connection-dot { background: #4ca286; box-shadow: 0 0 0 3px #4ca2861a; }
.connection-card strong { display: block; margin-top: 10px; font-size: 12px; }
.connection-card > span { display: block; margin-top: 4px; color: #9b9d94; font-size: 9px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 12px 5px 3px; border-top: 1px solid #edf0ee; }
.avatar, .supplier-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #edf2ef; color: #60756c; font-size: 11px; font-weight: 700; }
.user-copy { display: grid; min-width: 0; gap: 3px; flex: 1; }
.user-copy strong { overflow: hidden; color: #35413c; font-size: 11px; text-overflow: ellipsis; }
.user-copy span { color: #9ca6a1; font-size: 9px; }
.user-display-name-editor { margin-top: 2px; }
.user-display-name-editor summary { width: fit-content; color: #268069; cursor: pointer; font-size: 9px; }
.user-display-name-editor form { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.user-display-name-editor input { width: 125px; min-height: 30px; padding: 0 7px; border: 1px solid #dce5e0; border-radius: 6px; font-size: 10px; }
.user-display-name-editor .button { min-height: 30px; padding: 0 8px; font-size: 9px; }
.icon-button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 7px; background: transparent; color: #87938e; font-size: 16px; }
.icon-button:hover { background: #f1f5f3; color: #375e51; }
.main-area { min-height: 100vh; margin-left: 238px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 102px; padding: 19px 36px; border-bottom: 1px solid #e9eeeb; background: #fff; }
.breadcrumb { color: #9aa49f; font-size: 10px; }
.breadcrumb span { padding: 0 6px; color: #c0c8c4; }
.topbar h1 { margin: 9px 0 0; color: #1d2c28; font-size: 22px; letter-spacing: -.045em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.role-pill { padding: 6px 9px; border: 1px solid #e8eeea; border-radius: 99px; color: #72807a; font-size: 10px; }
.content-area { max-width: 1500px; margin: 0 auto; padding: 27px 36px 60px; }
.notice { display: flex; gap: 11px; margin: 20px 36px 0; padding: 12px 14px; border-radius: 9px; }
.notice-warning { border: 1px solid #f0ddbd; background: #fff9ef; color: #856536; }
.notice > span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #efd9b5; font-weight: 700; font-size: 11px; }
.notice strong { font-size: 11px; }
.notice p { margin: 4px 0 0; font-size: 11px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.stat-card { min-height: 116px; padding: 15px 16px 13px; border: 1px solid #e8edeb; border-radius: 11px; background: #fff; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #7d8883; font-size: 10px; font-weight: 600; }
.stat-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-size: 13px; }
.stat-icon.mint { background: #e7f5ee; color: #248269; }
.stat-icon.blue { background: #ebf2fa; color: #4f77a0; }
.stat-icon.amber { background: #fbf2df; color: #b48636; }
.stat-icon.violet { background: #f1effb; color: #7568a6; }
.stat-card > strong { display: block; margin-top: 6px; color: #22302b; font-size: 25px; letter-spacing: -.04em; }
.stat-card > strong.stat-date { overflow: hidden; margin-top: 11px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.stat-card > small { display: block; margin-top: 2px; color: #a0aaa5; font-size: 9px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 31px 1px 14px; }
.section-heading h2, .page-intro h2 { margin: 0; font-size: 18px; letter-spacing: -.045em; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading p, .page-intro p:not(.eyebrow) { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.comparison-list { display: grid; gap: 12px; }
.compare-card, .panel { overflow: hidden; border: 1px solid #e7ece9; border-radius: 11px; background: #fff; }
.compare-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px 13px; }
.item-category { display: inline-block; margin-bottom: 5px; color: #269277; font-size: 9px; font-weight: 700; }
.compare-head h3 { margin: 0; font-size: 14px; letter-spacing: -.03em; }
.compare-head h3 span { color: #75817b; font-weight: 500; }
.compare-head p { margin: 5px 0 0; color: #98a39e; font-size: 10px; }
.compare-count { display: grid; justify-items: end; gap: 2px; color: #96a09b; font-size: 9px; }
.compare-count strong { color: #3b5349; font-size: 17px; }
.spec-hold { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid #f0e3c9; background: #fffaf0; color: #8c7044; font-size: 9px; }
.spec-hold strong { color: #785b2d; font-size: 10px; }
.spec-hold span { flex: 1; }
.table-wrap { overflow-x: auto; border-top: 1px solid #edf1ef; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 33px; padding: 0 14px; background: #fafcfb; color: #9aa49f; font-size: 9px; font-weight: 600; white-space: nowrap; }
td { height: 49px; padding: 8px 14px; border-top: 1px solid #f0f3f1; color: #5e6b65; font-size: 10px; white-space: nowrap; }
tbody tr:first-child td { border-top: 0; }
.supplier-chip { display: inline-flex; align-items: center; gap: 7px; color: #36453e; font-weight: 600; }
.supplier-avatar { width: 23px; height: 23px; border-radius: 7px; background: #ebf4ef; color: #3c826c; font-size: 9px; }
.product-cell { display: grid; gap: 3px; color: #42504a; font-weight: 600; }
.product-cell small, .sub-cell { color: #9aa49f; font-size: 9px; font-weight: 400; }
.price-cell { color: #34423c; font-size: 12px; }
.price-cell.best-price { color: #14785f; }
.sub-cell { display: block; margin-top: 3px; }
.raw-inline { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.unknown-pill, .source-pill { display: inline-block; padding: 4px 7px; border-radius: 99px; background: #f3f5f4; color: #8d9893; font-size: 9px; }
.date-cell { color: #9aa49f; font-size: 9px; }
.card-footnote { padding: 9px 16px; border-top: 1px solid #f0f3f1; background: #fcfdfc; color: #9b8d73; font-size: 9px; }
.unmatched-hint, .panel-empty { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 18px; color: #919d97; font-size: 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: #197d66; font-size: 10px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.danger-text { color: #b16b62; }
.button-danger { border-color: #b85549; background: #b85549; color: #fff; }
.button-danger:hover:not(:disabled) { border-color: #9f443a; background: #9f443a; }
.mapping-delete-dialog, .supplier-delete-dialog { width: min(480px, calc(100% - 28px)); max-width: 100%; padding: 0; border: 1px solid #e5ebe7; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px #14231e35; }
.mapping-delete-dialog::backdrop, .supplier-delete-dialog::backdrop { background: #12221dcc; backdrop-filter: blur(2px); }
.user-password-dialog { width: min(460px, calc(100% - 28px)); max-width: 100%; padding: 0; border: 1px solid #e5ebe7; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px #14231e35; }
.user-password-dialog::backdrop { background: #12221dcc; backdrop-filter: blur(2px); }
.self-password-top-button { white-space: nowrap; }
.user-delete-dialog { width: min(520px, calc(100% - 28px)); max-width: 100%; padding: 0; border: 1px solid #e5ebe7; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px #14231e35; }
.user-delete-dialog::backdrop { background: #12221dcc; backdrop-filter: blur(2px); }
.user-delete-content { padding: 22px; }
.user-delete-content h3 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.user-delete-content > p { margin: 9px 0 16px; color: #7f8c86; font-size: 11px; line-height: 1.7; }
.user-delete-content > p strong { color: #41524a; }
.user-delete-details { display: grid; gap: 0; margin: 0; border: 1px solid #edf1ef; border-radius: 9px; background: #fafcfb; }
.user-delete-details > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 12px; border-top: 1px solid #edf1ef; font-size: 10px; }
.user-delete-details > div:first-child { border-top: 0; }
.user-delete-details dt { color: #929d97; }
.user-delete-details dd { margin: 0; color: #41524a; font-weight: 600; }
.user-delete-content form { margin-top: 14px; }
.user-password-content { padding: 22px; }
.user-password-content h3 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.user-password-content > p { margin: 9px 0 16px; color: #7f8c86; font-size: 11px; line-height: 1.7; }
.user-password-content > p strong { color: #41524a; }
.user-password-content form { margin-top: 14px; }
.mapping-delete-content, .supplier-delete-content { padding: 22px; }
.mapping-delete-content h3, .supplier-delete-content h3 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.mapping-delete-content > p, .supplier-delete-content > p { margin: 9px 0 16px; color: #7f8c86; font-size: 11px; line-height: 1.7; }
.mapping-delete-details, .supplier-delete-details { display: grid; gap: 0; margin: 0; border: 1px solid #edf1ef; border-radius: 9px; background: #fafcfb; }
.mapping-delete-details > div, .supplier-delete-details > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 12px; border-top: 1px solid #edf1ef; font-size: 10px; }
.mapping-delete-details > div:first-child, .supplier-delete-details > div:first-child { border-top: 0; }
.mapping-delete-details dt, .supplier-delete-details dt { color: #929d97; }
.mapping-delete-details dd, .supplier-delete-details dd { margin: 0; color: #41524a; font-weight: 600; overflow-wrap: anywhere; }
.supplier-delete-error { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #f0d1cc; border-radius: 8px; background: #fff7f5; color: #a84337; font-size: 11px; line-height: 1.6; }
.mapping-delete-actions, .supplier-delete-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.empty-state { display: grid; justify-items: center; padding: 62px 24px; border: 1px dashed #dce6e1; border-radius: 12px; background: #fbfdfc; text-align: center; }
.empty-state.compact { margin: 15px 0 22px; padding: 37px; }
.empty-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; border-radius: 14px; background: #e8f5ef; color: #21816a; font-size: 19px; }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { max-width: 450px; margin: 8px 0 18px; color: #899690; font-size: 11px; line-height: 1.7; }

.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 2px 1px 20px; }
.allowance-page-intro { align-items: start; flex-wrap: wrap; }
.page-intro .eyebrow { margin-bottom: 6px; }
.page-intro-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.summary-tag { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #e5ece8; border-radius: 8px; background: #fff; color: #63716a; font-size: 10px; }
.panel { padding: 17px 18px; margin-bottom: 14px; }
.mapping-panel { padding-bottom: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.panel-title > div { display: flex; align-items: center; gap: 10px; }
.panel-title h3 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.panel-title p { margin: 4px 0 0; color: #97a19c; font-size: 10px; }
.panel-title .eyebrow { margin-bottom: 0; }
.panel-title-row { margin-bottom: 12px; }
.step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e8f5ef; color: #21816a; font-size: 11px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.form-grid.single-column { grid-template-columns: 1fr; gap: 12px; }
.form-grid label { gap: 6px; font-size: 10px; }
.form-grid input, .form-grid select { height: 38px; font-size: 11px; }
.field-span-2 { grid-column: span 2; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 3px; color: #96a19b; font-size: 9px; }
.form-footer .button { flex: 0 0 auto; }
.panel .table-wrap { margin: 0 -18px -17px; }
.panel .table-wrap table { min-width: 720px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.catalog-card { min-width: 0; padding: 15px; border: 1px solid #e7ece9; border-radius: 10px; background: #fff; }
.catalog-card-top { display: flex; align-items: center; justify-content: space-between; }
.source-pill { background: #eaf5ef; color: #44806c; }
.status-text { color: #ac9992; font-size: 9px; }
.status-text.status-live { color: #36836c; }
.status-text.status-inactive { padding: 4px 7px; border-radius: 99px; background: #fbf2e6; color: #9c753c; }
.catalog-card h3 { margin: 13px 0 3px; overflow: hidden; color: #2e3d37; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-option { min-height: 14px; margin: 0; color: #95a19b; font-size: 10px; }
.catalog-meta { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 9px 5px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #eff2f0; font-size: 9px; }
.catalog-meta > span { color: #9aa49f; }
.catalog-meta > strong, .catalog-meta code { min-width: 0; overflow: hidden; color: #55635d; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
code { font-family: 'DM Sans', Consolas, monospace; color: #708179; font-size: 9px; }
.unmapped-label { color: #b7834c; font-style: normal; }
.catalog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 9px; border-top: 1px solid #eff2f0; color: #a2aaa6; font-size: 9px; }
.manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.manage-grid > .panel { min-width: 0; }
.inline-empty { padding: 19px 5px; color: #9aa49e; font-size: 10px; }
.standards-panel { margin-top: 2px; }
.standards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.standard-card { padding: 12px; border: 1px solid #edf1ef; border-radius: 9px; background: #fcfdfc; }
.standard-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.standard-option-count { padding: 4px 6px; border-radius: 6px; background: #f1f5f2; color: #82918a; font-size: 8px; white-space: nowrap; }
.standard-card h4 { margin: 0; font-size: 12px; }
.standard-card-heading p { margin: 5px 0 10px; color: #95a09a; font-size: 9px; }
.standard-editor, .option-editor { margin-top: 8px; padding-top: 7px; border-top: 1px solid #edf1ef; }
.standard-editor summary, .option-editor summary { color: #568071; cursor: pointer; font-size: 9px; font-weight: 600; }
.standard-editor .form-grid, .option-editor .form-grid { margin-top: 9px; }
.standard-editor input, .option-editor input { height: 32px; font-size: 10px; }
.standard-editor .form-footer, .option-editor .form-footer { align-items: start; font-size: 8px; }
.standard-option { display: grid; grid-template-columns: 38px 1fr; gap: 3px 7px; padding: 8px 0 0; border-top: 1px solid #edf1ef; font-size: 9px; }
.standard-option span { color: #9da8a2; }
.standard-option strong { color: #50615a; }
.standard-option small { grid-column: 2; color: #98a39d; }
.standard-option .option-editor { grid-column: 1 / -1; }
.supplier-management { display: grid; }
.supplier-manage-row { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid #eff2f0; }
.supplier-manage-row:first-child { border-top: 0; }
.supplier-manage-row > div:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.supplier-manage-row strong { color: #4b5953; font-size: 10px; }
.supplier-manage-row small, .supplier-manage-row > span:last-child { color: #98a29d; font-size: 9px; }
.inline-form { display: flex; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf1ef; }
.inline-form input { max-width: 330px; height: 36px; }
.inline-form .button { min-height: 36px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.users-layout { grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr); }
.user-list { display: grid; }
.user-row { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 8px 0; border-top: 1px solid #eff2f0; }
.user-row:first-child { border-top: 0; }
.user-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-left: auto; }
.user-commission-control { display: flex; align-items: end; gap: 6px; flex: 0 0 auto; }
.user-commission-control label { display: flex; align-items: center; gap: 5px; color: #75827b; font-size: 10px; }
.user-commission-control input { width: 55px; min-height: 32px; padding: 0 6px; border: 1px solid #dce5e0; border-radius: 6px; text-align: right; }
.user-commission-control .button { min-height: 31px; padding: 0 8px; font-size: 10px; }
.user-security-note { margin: 0 0 10px; color: #89958f; font-size: 10px; line-height: 1.6; }
.avatar-admin { background: #eaf4ef; color: #268069; }
.inline-role { padding: 3px 5px; border-radius: 4px; background: #e9f4ef; color: #3c846d; font-size: 8px; font-weight: 600; }
.account-status { margin-left: auto; color: #b77969; font-size: 9px; }
.account-status.enabled { color: #3b9677; }
.sync-status-panel { display: flex; align-items: center; gap: 14px; padding: 17px; }
.api-settings-panel { max-width: 850px; padding: 20px; }
.api-credential-status { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #efe6dc; border-radius: 9px; background: #fcfaf7; color: #8a704b; }
.api-credential-status .connection-dot { flex: 0 0 auto; margin-top: 5px; }
.api-credential-status strong, .api-credential-status small { display: block; }
.api-credential-status strong { font-size: 11px; }
.api-credential-status small { margin-top: 5px; color: #8e9792; font-size: 10px; line-height: 1.6; }
.api-credential-status.is-ready { border-color: #dcece5; background: #f5faf7; color: #4e8a75; }
.api-credential-status.is-ready .connection-dot { background: #4ca286; box-shadow: 0 0 0 3px #4ca2861a; }
.api-credentials-form { margin-top: 18px; }
.api-credentials-form label small { display: block; margin-top: 5px; color: #97a19c; font-size: 9px; font-weight: 400; line-height: 1.5; }
.api-security-note { max-width: 850px; }
.supplier-connect-panel { margin-top: 17px; }
.supplier-connect-panel .panel-title { margin-bottom: 14px; }
.supplier-connect-panel .panel-title p { margin: 5px 0 0; color: #97a19c; font-size: 10px; }
.supplier-registry-panel { margin-top: 17px; }
.supplier-connection-form { gap: 12px 14px; }
.supplier-api-fields { padding: 13px; border: 1px solid #e9eeeb; border-radius: 9px; background: #fbfcfb; }
.supplier-api-fields.is-hidden { display: none; }
.credential-help { margin: 8px 0 0; color: #97a19c; font-size: 9px; line-height: 1.6; }
.supplier-connection-list { display: grid; margin: 14px -18px 0; border-top: 1px solid #edf1ef; }
.supplier-connection-row { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 7px 18px; border-bottom: 1px solid #edf1ef; }
.supplier-connection-row > div:nth-child(2) { display: grid; flex: 1; gap: 4px; min-width: 0; }
.supplier-connection-row strong { color: #4b5953; font-size: 10px; }
.supplier-connection-row small { overflow: hidden; color: #98a29d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-connection-copy { min-width: 0; }
.supplier-connection-row .connection-state, .supplier-status-tag { flex: 0 0 auto; }
.supplier-status-tag { padding: 7px 9px; border-radius: 99px; background: #f3f5f4; color: #7e8983; font-size: 9px; }
.supplier-status-tag.status-ready { background: #eaf5ef; color: #37846d; }
.supplier-status-tag.status-saved { background: #eef3fb; color: #5c759d; }
.supplier-status-tag.status-missing { background: #fbf2e6; color: #a27a3f; }
.supplier-status-tag.status-error { background: #fbefec; color: #b26758; }
.supplier-status-tag.status-manual { background: #f3f5f4; color: #75817b; }
.supplier-status-tag.status-stale { background: #fbf2e6; color: #a27a3f; }
.supplier-error-detail { color: #b26758 !important; }
.supplier-health-detail { white-space: normal; line-height: 1.5; }
.supplier-reconcile-warning { white-space: normal !important; color: #9a6d2e !important; line-height: 1.55; }
.supplier-sync-button { min-height: 31px; padding: 0 10px; font-size: 9px; }
.supplier-sync-progress { display: grid; flex: 1 0 calc(100% - 50px); grid-template-columns: minmax(120px, 1fr) minmax(190px, 0.8fr); align-items: center; gap: 12px; margin: 0 0 5px 42px; }
.supplier-sync-progress[hidden] { display: none; }
.supplier-sync-progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e9f0ed; }
.supplier-sync-progress progress { display: block; width: 100%; height: 100%; border: 0; appearance: none; background: transparent; }
.supplier-sync-progress progress::-webkit-progress-bar { border-radius: 99px; background: #e9f0ed; }
.supplier-sync-progress progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, #48a98b, #0d8067); transition: width .3s ease; }
.supplier-sync-progress progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, #48a98b, #0d8067); }
.supplier-sync-progress > span { display: flex; justify-content: space-between; gap: 9px; min-width: 0; }
.supplier-sync-progress > span strong { flex: 0 0 auto; color: #297f69; font-size: 10px; font-weight: 700; }
.supplier-sync-progress > span small { overflow: hidden; color: #899790; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.supplier-reconcile-button { min-height: 31px; padding: 0 10px; border-color: #ead8b8; color: #94682d; font-size: 9px; white-space: nowrap; }
.supplier-delete-button { flex: 0 0 auto; margin-left: 2px; white-space: nowrap; }
.connection-scope-note { margin-bottom: 0; }
.compare-search-panel { margin-top: 18px; }
.compare-search-panel .panel-title > div { align-items: start; flex-direction: column; gap: 4px; }
.compare-search-panel .panel-title p { margin: 3px 0 0; }
.compare-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.compare-controls label { display: grid; gap: 6px; color: #45514d; font-size: 10px; font-weight: 600; }
.compare-controls input, .compare-controls select { height: 39px; font-size: 11px; }
.compare-guidance { margin: 10px 0 13px; color: #8d9993; font-size: 9px; line-height: 1.6; }
.global-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 10px; color: #8c9892; font-size: 10px; }
.global-results-heading strong { color: #43544b; font-size: 11px; }
.global-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; gap: 12px; }
.global-result-card { min-width: 0; padding: 13px; border: 1px solid #e8eeea; border-radius: 10px; background: #fff; }
.global-result-source { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.global-result-card h4 { margin: 0; color: #34453d; font-size: 12px; line-height: 1.5; }
.weight-highlight { color: #c62828; font-weight: 800; }
.global-result-detail { margin: 4px 0 0; color: #96a19b; font-size: 9px; }
.global-search-empty { display: grid; place-items: center; gap: 7px; min-height: 150px; padding: 24px; border: 1px dashed #dce5e0; border-radius: 10px; background: #fbfcfb; text-align: center; }
.global-search-empty strong { color: #506059; font-size: 12px; }
.global-search-empty span { color: #98a39d; font-size: 10px; line-height: 1.6; }
.global-search-note { margin: 0 0 11px; color: #997343; font-size: 10px; line-height: 1.6; }
.price-package-warning { margin: 10px 0 0; padding: 9px 10px; border: 1px solid #f0e2bd; border-radius: 7px; background: #fffaf0; }
.search-price-summary, .supplier-search-section { margin-top: 19px; }
.search-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.search-section-heading > div { display: grid; gap: 3px; }
.search-section-heading .eyebrow { margin: 0; }
.search-section-heading h3 { margin: 0; color: #40534a; font-size: 13px; }
.search-section-heading > span { color: #98a39d; font-size: 9px; }
.price-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.price-summary-card { min-width: 0; padding: 13px; border: 1px solid #e6ece8; border-radius: 10px; background: #fff; }
.price-summary-card > header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding-bottom: 9px; border-bottom: 1px solid #edf1ef; }
.price-summary-card > header strong { color: #36554a; font-size: 12px; }
.price-summary-card > header span { color: #98a39d; font-size: 9px; text-align: right; }
.price-summary-column { padding-top: 9px; }
.price-summary-column h4 { margin: 0 0 7px; color: #4c6458; font-size: 10px; }
.price-summary-column.reference { margin-top: 10px; padding: 9px 9px 0; border-top: 1px dashed #eadfc9; }
.price-summary-column.reference h4 { color: #94774c; }
.price-range-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.price-range-value { display: grid; gap: 4px; min-width: 0; }
.price-range-value > span { color: #9aa49f; font-size: 9px; }
.price-range-value > strong { color: #19785f; font-size: 16px; }
.price-summary-column.reference .price-range-value > strong { color: #9c753c; }
.price-range-value > strong small { margin-left: 3px; color: #89968f; font-size: 9px; font-weight: 500; }
.price-range-value > small { overflow: hidden; color: #8f9b94; font-size: 8px; line-height: 1.5; text-overflow: ellipsis; }
.price-range-empty, .price-summary-empty { padding: 10px; border-radius: 7px; background: #f7f9f8; color: #8d9993; font-size: 9px; }
.price-summary-note { margin: 8px 0 0; color: #98a39d; font-size: 9px; line-height: 1.6; }
.supplier-data-health { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 13px; }
.supplier-data-health-row { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 8px; padding: 8px 10px; border: 1px solid #e8eeea; border-radius: 8px; background: #fbfcfb; }
.supplier-data-health-row strong { color: #52635b; font-size: 9px; }
.supplier-data-health-row small { grid-column: 1 / -1; color: #99a39e; font-size: 8px; }
.health-state { color: #438a70; font-size: 8px; }
.health-error, .health-stale, .health-not_configured { color: #a87839; }
.supplier-search-list, .catalog-supplier-list { display: grid; gap: 8px; }
.supplier-search-accordion, .catalog-supplier-accordion { overflow: hidden; border: 1px solid #e5ece8; border-radius: 10px; background: #fff; }
.supplier-search-accordion > summary, .catalog-supplier-accordion > summary { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(150px, 1fr) minmax(120px, .8fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 10px 13px; cursor: pointer; list-style: none; }
.supplier-search-accordion > summary::-webkit-details-marker, .catalog-supplier-accordion > summary::-webkit-details-marker { display: none; }
.supplier-search-name, .catalog-supplier-name { color: #3d554a; font-size: 11px; font-weight: 700; }
.supplier-search-count, .supplier-search-range, .catalog-supplier-stats { color: #8e9a94; font-size: 9px; }
.supplier-search-range { text-align: right; }
.accordion-chevron { color: #8c9992; font-size: 14px; transition: transform .15s ease; }
.supplier-search-accordion[open] > summary, .catalog-supplier-accordion[open] > summary { background: #f8fbf9; }
.supplier-search-accordion[open] .accordion-chevron, .catalog-supplier-accordion[open] .accordion-chevron { transform: rotate(180deg); }
.supplier-search-content, .catalog-supplier-content { padding: 12px; border-top: 1px solid #edf1ef; }
.supplier-no-matches { display: flex; align-items: center; min-height: 58px; padding: 10px 12px; border-radius: 7px; background: #f8faf9; color: #8e9a94; font-size: 10px; line-height: 1.6; }
.catalog-supplier-stats { text-align: right; }
.compare-search-panel .panel-title h3 { font-size: 15px; }
.compare-search-panel .panel-title p { font-size: 12px; line-height: 1.6; }
.compare-search-panel .eyebrow { font-size: 11px; }
.compare-search-panel .compare-controls label { font-size: 12px; }
.compare-search-panel .compare-controls input { height: 43px; font-size: 14px; }
.compare-search-panel .compare-guidance { font-size: 11px; }
.compare-search-panel .global-results-heading { font-size: 12px; }
.compare-search-panel .global-results-heading strong { font-size: 13px; }
.compare-search-panel .global-search-note { font-size: 11px; }
.compare-search-panel .search-section-heading h3 { font-size: 15px; }
.compare-search-panel .search-section-heading > span { font-size: 11px; }
.compare-search-panel .price-summary-card > header strong { font-size: 14px; }
.compare-search-panel .price-summary-card > header span { font-size: 11px; }
.compare-search-panel .price-summary-column h4 { font-size: 12px; }
.compare-search-panel .price-range-value > span { font-size: 11px; }
.compare-search-panel .price-range-value > strong { font-size: 18px; }
.compare-search-panel .price-range-value > strong small { font-size: 11px; }
.compare-search-panel .price-range-value > small { color: #718078; font-size: 11px; }
.price-source-supplier { color: #c43f3b; font-weight: 700; }
.compare-search-panel .price-range-empty,
.compare-search-panel .price-summary-empty,
.compare-search-panel .price-summary-note { font-size: 11px; }
.compare-search-panel .supplier-data-health-row strong { font-size: 11px; }
.compare-search-panel .supplier-data-health-row small { font-size: 10px; }
.compare-search-panel .health-state { font-size: 10px; }
.compare-search-panel .supplier-search-accordion > summary { min-height: 62px; padding: 11px 15px; }
.compare-search-panel .supplier-search-name { font-size: 13px; }
.compare-search-panel .supplier-search-count,
.compare-search-panel .supplier-search-range { font-size: 11px; }
.compare-search-panel .supplier-no-matches { font-size: 11px; }
.compare-search-panel .keyword-refine-panel h3 { font-size: 15px; }
.compare-search-panel .keyword-refine-panel > p { font-size: 11px; }
.compare-search-panel .keyword-suggestion strong { font-size: 13px; }
.compare-search-panel .keyword-suggestion span { font-size: 10px; }
.compare-search-panel .global-search-empty strong { font-size: 14px; }
.compare-search-panel .global-search-empty span { font-size: 11px; }
.compare-search-panel .source-pill,
.compare-search-panel .status-text { font-size: 10px; }
.compare-search-panel .global-result-card h4 { font-size: 14px; }
.compare-search-panel .global-result-detail { font-size: 11px; }
.compare-search-panel .vendor-product-head small,
.compare-search-panel .vendor-price-row small { font-size: 11px; }
.compare-search-panel .vendor-price-row > div:first-child strong { font-size: 12px; }
.compare-search-panel .vendor-price-value > strong { font-size: 13px; }
.keyword-refine-panel { margin-top: 13px; padding: 17px; border: 1px solid #e4ebe7; border-radius: 10px; background: #fbfcfb; }
.keyword-refine-panel > .eyebrow { margin: 0; }
.keyword-refine-panel h3 { margin: 5px 0; color: #40534a; font-size: 13px; }
.keyword-refine-panel > p { margin: 0 0 12px; color: #8f9b94; font-size: 10px; }
.keyword-suggestion-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.keyword-suggestion { display: grid; gap: 5px; min-width: 0; padding: 11px 12px; border: 1px solid #e3ebe6; border-radius: 8px; background: #fff; color: #40534a; text-align: left; cursor: pointer; }
.keyword-suggestion:hover, .keyword-suggestion:focus-visible { border-color: #93b9a9; background: #f5faf7; outline: none; }
.keyword-suggestion strong { font-size: 12px; }
.keyword-suggestion span { color: #8c9892; font-size: 9px; }
.change-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.change-overview-changes-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.change-overview-card { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #e6ece8; border-radius: 9px; background: #fff; }
.change-overview-card > span { color: #8e9a94; font-size: 9px; }
.change-overview-card > strong { color: #28785f; font-size: 22px; }
.change-overview-card > small { color: #9aa49f; font-size: 8px; }
.change-card-changed > strong { color: #b45d4d; }
.change-card-changed-suppliers > strong { color: #28785f; }
.change-card-unchanged > strong { color: #28785f; }
.change-card-baseline > strong { color: #9c753c; }
.change-card-unknown > strong { color: #7c6b9c; }
.price-change-panel { padding: 17px; }
.price-change-panel .panel-title p { margin: 4px 0 0; color: #97a19c; font-size: 10px; }
.price-change-supplier { overflow: hidden; margin-top: 8px; border: 1px solid #e5ece8; border-radius: 9px; background: #fff; }
.price-change-supplier:first-of-type { margin-top: 14px; }
.price-change-supplier-summary { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(190px, 1.8fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; }
.price-change-supplier > summary { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(180px, 1fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; cursor: pointer; list-style: none; }
.price-change-supplier > summary::-webkit-details-marker { display: none; }
.price-change-supplier[open] > summary { background: #f8fbf9; }
.change-supplier-name { color: #3d554a; font-size: 11px; font-weight: 700; }
.change-supplier-count { color: #8e9a94; font-size: 9px; }
.change-supplier-status { padding: 5px 8px; border-radius: 99px; background: #f2f5f3; color: #8c9892; font-size: 9px; white-space: nowrap; }
.change-supplier-status.has-changes { background: #eaf5ef; color: #37846d; }
.change-supplier-status.has-error { background: #fbefec; color: #b26758; }
.change-supplier-status.status-unchanged { background: #eaf5ef; color: #37846d; }
.price-change-warning { border-color: #f0d9d2; background: #fff8f5; color: #a95749; }
.price-change-supplier[open] .accordion-chevron { transform: rotate(180deg); }
.price-change-supplier-content { padding: 11px; border-top: 1px solid #edf1ef; }
.price-change-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 9px; }
.price-change-card { min-width: 0; padding: 12px; border: 1px solid #e8eeea; border-radius: 8px; background: #fff; }
.price-change-card-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.price-change-card-head > div { min-width: 0; }
.price-change-card h4 { margin: 0; color: #3e5048; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.price-change-card-head small { display: block; margin-top: 3px; color: #97a19c; font-size: 8px; }
.price-change-badge { flex: 0 0 auto; padding: 5px 7px; border-radius: 99px; background: #f1f4f2; color: #7b8982; font-size: 8px; }
.price-change-badge.change-up, .price-change-difference.change-up { background: #fff1ed; color: #b35d4c; }
.price-change-badge.change-down, .price-change-difference.change-down { background: #eaf5ef; color: #328269; }
.price-change-badge.change-new { background: #eef2fb; color: #6278a5; }
.price-change-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 12px; padding: 10px 0; border-top: 1px solid #eff2f0; border-bottom: 1px solid #eff2f0; }
.price-change-values > div { display: grid; gap: 4px; min-width: 0; }
.price-change-values span, .price-change-raw span { color: #97a19c; font-size: 8px; line-height: 1.5; }
.price-change-values strong { color: #41554b; font-size: 13px; overflow-wrap: anywhere; }
.price-change-arrow { color: #9ca7a1 !important; font-size: 14px !important; }
.price-change-difference { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 7px 9px; border-radius: 6px; background: #f4f6f5; color: #7e8a84; font-size: 9px; }
.price-change-difference strong { font-size: 10px; }
.price-change-difference small { font-size: 8px; font-weight: 500; }
.price-change-raw { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eff2f0; }
.price-change-raw > div { display: grid; gap: 5px; min-width: 0; }
.price-change-raw code { overflow-wrap: anywhere; color: #59675f; font-size: 8px; }
.price-change-raw > small { grid-column: 1 / -1; color: #9b835b; font-size: 8px; line-height: 1.5; }
.price-change-filters { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(150px, .9fr) minmax(170px, 1fr) minmax(200px, 1.5fr); align-items: end; gap: 10px; margin: 0 0 13px; }
.price-change-filters label { display: grid; gap: 5px; color: #849089; font-size: 9px; }
.price-change-filters input, .price-change-filters select { width: 100%; min-width: 0; height: 37px; padding: 0 10px; border: 1px solid #e1e9e4; border-radius: 7px; outline: none; background: #fff; color: #44544c; font: inherit; font-size: 10px; }
.price-change-filters input:focus, .price-change-filters select:focus { border-color: #85b9a5; box-shadow: 0 0 0 3px #2f98731a; }
.price-change-result-count { margin: 0 0 7px; color: #89958f; font-size: 9px; }
.price-change-table-wrap { max-height: 610px; overflow: auto; }
.price-change-table-wrap table { min-width: 950px; }
.price-change-table-wrap th { position: sticky; top: 0; z-index: 1; }
.price-change-table-wrap td { white-space: normal; }
.price-change-table-wrap td:first-child { min-width: 100px; white-space: nowrap; }
.price-change-table-wrap .product-cell { min-width: 180px; line-height: 1.5; }
.comparison-price { min-width: 125px; max-width: 190px; overflow-wrap: anywhere; color: #43534b; font-size: 10px; }
.comparison-judgment-cell { min-width: 150px; }
.comparison-judgment-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comparison-direction { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 18px; font-weight: 800; line-height: 1; }
.comparison-direction.direction-up { background: #fff0ed; color: #b45d4d; }
.comparison-direction.direction-down { background: #eaf5ef; color: #328269; }
.comparison-status, .scope-pill { display: inline-block; padding: 5px 8px; border-radius: 99px; background: #f1f4f2; color: #68766f; font-size: 9px; white-space: nowrap; }
.scope-pill { padding: 4px 7px; background: #f5f7f6; color: #89958f; }
.comparison-status.status-changed { background: #fff0ed; color: #b45d4d; }
.comparison-status.status-unchanged { background: #eaf5ef; color: #328269; }
.comparison-status.status-no-baseline { background: #fbf3e8; color: #98743e; }
.comparison-status.status-unknown { background: #f1eef7; color: #74658e; }
.price-change-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0 0; color: #89958f; font-size: 9px; }
.price-change-pagination .button { min-height: 31px; padding: 0 11px; font-size: 9px; }
.vendor-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vendor-column { min-width: 0; overflow: hidden; border: 1px solid #e8eeea; border-radius: 10px; background: #fbfcfb; }
.vendor-column > header { display: grid; gap: 4px; min-height: 57px; padding: 11px 13px; border-bottom: 1px solid #edf1ef; background: #f7faf8; }
.vendor-column > header > span { color: #8d9993; font-size: 9px; }
.vendor-column > header > strong { color: #31463d; font-size: 12px; }
.vendor-result-list { display: grid; gap: 8px; max-height: 680px; overflow: auto; padding: 9px; }
.vendor-product-card { min-width: 0; padding: 11px; border: 1px solid #e9eeeb; border-radius: 8px; background: #fff; }
.vendor-product-head { display: flex; justify-content: space-between; gap: 9px; align-items: start; }
.vendor-product-head > div { display: grid; gap: 4px; min-width: 0; }
.vendor-product-head strong { overflow: hidden; color: #34453d; font-size: 11px; text-overflow: ellipsis; }
.vendor-product-head small, .vendor-price-row small { color: #96a19b; font-size: 9px; line-height: 1.45; }
.vendor-product-head .status-text { flex: 0 0 auto; }
.vendor-price-list { display: grid; margin-top: 8px; border-top: 1px solid #eff2f0; }
.vendor-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 45px; padding: 6px 0; border-top: 1px solid #f1f3f2; }
.vendor-price-row:first-child { border-top: 0; }
.vendor-price-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.vendor-price-row > div:first-child strong { overflow: hidden; color: #58655e; font-size: 10px; text-overflow: ellipsis; }
.vendor-price-value { display: grid; justify-items: end; gap: 3px; flex: 0 0 auto; }
.vendor-price-value > strong { color: #19785f; font-size: 11px; }
.vendor-price-value .unknown-pill { font-weight: 500; }
.vendor-empty { display: grid; place-items: center; min-height: 170px; padding: 20px; color: #929e98; font-size: 10px; text-align: center; line-height: 1.7; }
.vendor-more { padding: 8px; color: #8e9994; font-size: 9px; text-align: center; }
.sync-status-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8f5ef; color: #217d65; font-size: 19px; }
.sync-status-panel .eyebrow { margin-bottom: 4px; }
.sync-status-panel h3 { margin: 0; font-size: 13px; }
.sync-status-panel p { margin: 5px 0 0; color: #97a19c; font-size: 10px; }
.connection-state { margin-left: auto; padding: 7px 9px; border-radius: 99px; background: #f5f1e9; color: #9e804d; font-size: 9px; }
.connection-state.state-ready { background: #eaf5ef; color: #37846d; }
.run-pill { display: inline-block; padding: 4px 7px; border-radius: 99px; font-size: 9px; }
.run-success { background: #eaf5ef; color: #38846e; }
.run-error { background: #fbefec; color: #b26758; }
.run-running { background: #f6f2e7; color: #a08041; }
.error-detail { max-width: 270px; overflow: hidden; color: #9a8a80; text-overflow: ellipsis; }
.note-card { padding: 13px 15px; border: 1px solid #e7ece9; border-radius: 9px; background: #fbfcfb; }
.note-card strong { color: #65726c; font-size: 10px; }
.note-card p { margin: 5px 0 0; color: #98a19c; font-size: 10px; line-height: 1.7; }
.backup-panel { margin-bottom: 12px; }
.backup-feedback { margin: -8px 0 12px; padding: 11px 13px; border: 1px solid #d8e9e0; border-radius: 9px; background: #f7fbf8; color: #347763; font-size: 11px; line-height: 1.6; }
.backup-feedback-progress { border-color: #dce8e3; background: #f7faf9; color: #60746b; }
.backup-feedback-warning { border-color: #f0e2bd; background: #fffaf0; color: #8b6a25; }
.backup-feedback-error { border-color: #f0d9d2; background: #fff8f6; color: #a95749; }
.backup-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #edf1ef; }
.backup-copy { display: grid; gap: 5px; min-width: 0; }
.backup-copy strong { color: #42564c; font-size: 11px; }
.backup-copy small { color: #98a19c; font-size: 9px; }
.backup-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 6px; }
.backup-actions .button { min-height: 31px; padding: 0 9px; font-size: 9px; text-decoration: none; }
.backup-actions .button-danger { color: #a95749; border: 1px solid #f0d9d2; background: #fffafa; }
.audit-table-wrap table { min-width: 780px; }
.audit-detail { max-width: 460px; color: #7f8c85; font-size: 9px; overflow-wrap: anywhere; }
.mapping-suggest-search { display: grid; gap: 6px; max-width: 520px; margin-top: 12px; color: #68766f; font-size: 10px; }
.mapping-suggestion-list { display: grid; gap: 8px; margin-top: 12px; }
.mapping-suggestion-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr); align-items: center; gap: 12px; padding: 11px; border: 1px solid #edf1ef; border-radius: 8px; background: #fcfdfc; }
.mapping-suggestion-source { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.mapping-suggestion-source strong { color: #41554b; font-size: 10px; overflow-wrap: anywhere; }
.mapping-suggestion-source small { color: #98a19c; font-size: 8px; overflow-wrap: anywhere; }
.mapping-suggestion-target { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; min-width: 0; }
.mapping-suggestion-target label { display: grid; gap: 5px; min-width: 0; color: #7d8983; font-size: 8px; }
.mapping-suggestion-target select { min-width: 0; max-width: 100%; padding: 8px; font-size: 9px; }
.mapping-suggestion-target .button { min-height: 34px; padding: 0 9px; white-space: nowrap; font-size: 9px; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 22px; max-width: min(460px, calc(100vw - 30px)); padding: 12px 15px; border: 1px solid #d8e9e0; border-radius: 9px; background: #fff; box-shadow: 0 7px 28px #20342e14; color: #347763; font-size: 11px; }
.toast-error { border-color: #f0d9d2; color: #a95749; }
.fatal-screen { color: #33423b; text-align: center; }
.fatal-screen h1 { margin: 8px 0 0; font-size: 22px; }
.fatal-screen p { max-width: 450px; margin: 5px 0; color: #89958e; font-size: 12px; }

@media (max-width: 1120px) {
  .sidebar { width: 205px; }
  .main-area { margin-left: 205px; }
  .content-area { padding-right: 22px; padding-left: 22px; }
  .topbar { padding: 19px 22px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .standards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .compare-controls { grid-template-columns: minmax(0,1fr); }
  .change-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .price-change-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .user-row { flex-wrap: wrap; }
  .user-actions { margin-left: 0; }
  .account-status { margin-left: 0; }
}
@media (max-width: 760px) {
  .gate-layout { grid-template-columns: 1fr; }
  .gate-card { padding: 38px 0; }
  .gate-aside { display: none; }
  .sidebar { position: relative; inset: auto; width: auto; height: auto; min-height: 0; padding: 11px 12px 8px; border-right: 0; border-bottom: 1px solid #e8edeb; }
  .sidebar-brand { padding: 0 3px 10px; }
  .sidebar-brand span, .side-label, .sidebar-spacer, .connection-card, .sidebar-user { display: none; }
  .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .nav-item { min-width: 0; width: 100%; height: 36px; gap: 6px; padding: 0 8px; font-size: 10px; }
  .nav-icon { width: auto; font-size: 13px; }
  .nav-badge { min-width: 17px; height: 16px; font-size: 8px; }
  .main-area { margin-left: 0; }
  .topbar { min-height: 76px; padding: 13px 16px; }
  .topbar h1 { margin-top: 5px; font-size: 18px; }
  .role-pill { display: none; }
  .top-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .content-area { padding: 17px 14px 40px; }
  .notice { margin: 12px 14px 0; }
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 99px; padding: 12px; }
  .stat-card > strong { font-size: 22px; }
  .stat-card > strong.stat-date { font-size: 12px; }
  .section-heading { align-items: start; margin-top: 23px; }
  .section-heading .button { min-height: 33px; }
  .compare-head { padding: 13px; }
  .compare-head h3 { font-size: 12px; }
  .compare-head p { max-width: 260px; line-height: 1.6; }
  .page-intro { align-items: start; }
  .page-intro-actions { flex-wrap: wrap; justify-content: flex-end; }
  .page-intro h2 { font-size: 16px; }
  .manage-grid, .users-layout { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .compare-controls, .global-results-grid, .vendor-comparison-grid { grid-template-columns: 1fr; }
  .change-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .supplier-search-accordion > summary, .catalog-supplier-accordion > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .supplier-search-count, .catalog-supplier-stats { grid-column: 1; text-align: left; }
  .supplier-search-range { grid-column: 1; grid-row: 3; text-align: left; }
  .accordion-chevron { grid-column: 2; grid-row: 1 / span 3; }
  .price-change-supplier > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .price-change-supplier-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
  .price-change-supplier-summary .change-supplier-count { grid-column: 1; grid-row: 2; line-height: 1.5; }
  .price-change-supplier-summary .change-supplier-status { grid-column: 2; grid-row: 1; }
  .price-change-supplier-summary [data-price-change-supplier] { grid-column: 2; grid-row: 2; justify-self: end; }
  .change-supplier-count, .change-supplier-status { grid-column: 1; }
  .price-change-supplier .accordion-chevron { grid-column: 2; grid-row: 1 / span 3; }
  .price-change-filters { grid-template-columns: 1fr; }
  .price-change-table-wrap { max-height: none; margin-right: 0; margin-left: 0; overflow: visible; border-top: 0; }
  .price-change-table-wrap table,
  .price-change-table-wrap tbody { display: block; width: 100%; min-width: 0; }
  .price-change-table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  .price-change-table-wrap tbody { display: grid; gap: 10px; }
  .price-change-table-wrap tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px; border: 1px solid #e6ece8; border-radius: 9px; background: #fff; }
  .price-change-table-wrap td { display: grid; align-content: start; gap: 5px; min-width: 0; max-width: none; padding: 7px; border: 0; border-radius: 6px; background: #f8faf9; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .price-change-table-wrap td::before { content: attr(data-label); color: #87938d; font-size: 9px; font-weight: 600; }
  .price-change-table-wrap td[data-label="상품 · 규격"],
  .price-change-table-wrap td[data-label="판정"] { grid-column: 1 / -1; }
  .price-change-table-wrap td:first-child { min-width: 0; white-space: normal; }
  .price-change-table-wrap .product-cell,
  .price-change-table-wrap .comparison-judgment-cell { min-width: 0; }
  .price-change-table-wrap .comparison-status { white-space: normal; }
  .price-change-pagination { flex-wrap: wrap; }
  .mobile-card-table-wrap { overflow: visible; border-top: 0; }
  .mobile-card-table-wrap .mobile-card-table,
  .mobile-card-table-wrap .mobile-card-table tbody { display: block; width: 100%; min-width: 0; }
  .mobile-card-table-wrap .mobile-card-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  .mobile-card-table-wrap .mobile-card-table tbody { display: grid; gap: 10px; }
  .mobile-card-table-wrap .mobile-card-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px; border: 1px solid #e6ece8; border-radius: 9px; background: #fff; }
  .mobile-card-table-wrap .mobile-card-table td { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 7px; border: 0; border-radius: 6px; background: #f8faf9; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .mobile-card-table-wrap .mobile-card-table td::before { content: attr(data-label); color: #87938d; font-size: 9px; font-weight: 600; }
  .mobile-card-table-wrap .mobile-card-table td[data-label="원본 상품"],
  .mobile-card-table-wrap .mobile-card-table td[data-label="기록 내용"],
  .mobile-card-table-wrap .mobile-card-table td[data-label="상세"],
  .mobile-card-table-wrap .mobile-card-table td[data-label="원본 값"],
  .mobile-card-table-wrap .mobile-card-table td[data-label="원본 상품 / 옵션"] { grid-column: 1 / -1; }
  .mobile-card-table-wrap .mobile-card-table code,
  .mobile-card-table-wrap .mobile-card-table .audit-detail { overflow-wrap: anywhere; }
  .price-change-values, .price-change-raw { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .supplier-connection-list { margin-right: -14px; margin-left: -14px; }
  .supplier-connection-row { flex-wrap: wrap; padding-right: 14px; padding-left: 14px; }
  .supplier-sync-progress { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-left: 42px; }
  .panel { padding: 14px; }
  .form-grid { gap: 11px; }
  .backup-row { align-items: stretch; flex-direction: column; }
  .backup-actions { justify-content: start; }
  .mapping-suggestion-row { grid-template-columns: 1fr; }
  .mapping-suggestion-target { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Match the comfortable physical size of 125% display scaling on wide desktop viewports. */
@media (min-width: 2300px) {
  #app {
    width: 80%;
    zoom: 1.25;
  }

  .boot-screen,
  .fatal-screen,
  .gate-layout,
  .app-shell,
  .main-area {
    min-height: 80vh;
  }

  .sidebar {
    inset: 0 auto auto 0;
    height: 80vh;
  }
}

.marketplace-picker-panel, .marketplace-list-panel { margin-top: 18px; }
.marketplace-picker-panel .panel-title { margin-bottom: 13px; }
.marketplace-picker-panel .panel-title > div { align-items: start; flex-direction: column; gap: 4px; }
.marketplace-picker-panel .panel-title p, .marketplace-list-panel .panel-title p { margin: 4px 0 0; color: #89968f; font-size: 11px; line-height: 1.6; }
.marketplace-picker-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 280px); gap: 12px; align-items: end; }
.marketplace-picker-controls label { display: grid; gap: 6px; color: #45514d; font-size: 12px; font-weight: 600; }
.marketplace-picker-controls input, .marketplace-picker-controls select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #dbe4df; border-radius: 8px; background: #fff; color: #34443d; font-size: 13px; }
.marketplace-direct-add { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf1ef; }
.marketplace-manual-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 15px; border: 1px solid #e5ece8; border-radius: 9px; background: #fbfcfb; }
.marketplace-manual-form label { display: grid; gap: 6px; color: #45514d; font-size: 11px; font-weight: 600; }
.marketplace-manual-form input { min-height: 40px; padding: 0 11px; border: 1px solid #dbe4df; border-radius: 8px; background: #fff; color: #34443d; font-size: 12px; }
.marketplace-manual-help, .marketplace-manual-actions { grid-column: 1 / -1; }
.marketplace-manual-help { color: #89968f; font-size: 10px; line-height: 1.6; }
.marketplace-manual-actions { display: flex; justify-content: flex-end; }
.marketplace-candidate-list { display: grid; gap: 7px; max-height: 370px; margin-top: 12px; overflow: auto; }
.marketplace-candidate { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 10px 12px; border: 1px solid #e4ebe7; border-radius: 8px; background: #fff; color: #3e5148; text-align: left; cursor: pointer; }
.marketplace-candidate:hover, .marketplace-candidate:focus-visible { border-color: #87b5a3; background: #f6fbf8; outline: none; }
.marketplace-candidate-copy { display: grid; gap: 4px; min-width: 0; }
.marketplace-candidate-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-candidate-copy small, .marketplace-candidate-price small { color: #89968f; font-size: 10px; }
.marketplace-candidate-price { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; color: #13785f; font-size: 12px; font-weight: 700; }
.marketplace-picker-empty, .marketplace-list-empty { display: grid; place-items: center; min-height: 68px; margin-top: 10px; padding: 13px; border: 1px dashed #dfe7e3; border-radius: 8px; background: #fafcfb; color: #85928b; font-size: 12px; text-align: center; }
.marketplace-load-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #f0d9d2; border-radius: 8px; background: #fff8f5; color: #a95749; font-size: 12px; }
.marketplace-table-wrap { width: 100%; overflow: auto; }
.marketplace-table { width: 100%; min-width: 1450px; border-collapse: collapse; font-size: 12px; }
.marketplace-table th, .marketplace-table td { padding: 11px 9px; border-bottom: 1px solid #edf1ef; text-align: left; vertical-align: middle; }
.marketplace-table th { background: #f8faf9; color: #697770; font-size: 11px; font-weight: 700; white-space: nowrap; }
.marketplace-table td { color: #41534a; }
.marketplace-product-cell { min-width: 220px; }
.marketplace-product-cell > strong { display: block; color: #34483e; font-size: 12px; line-height: 1.5; }
.marketplace-product-cell > small, .marketplace-owner-name { display: block; margin-top: 4px; color: #849189; font-size: 10px; line-height: 1.45; }
.marketplace-listing-owner-form { display: flex; align-items: end; gap: 5px; margin-top: 7px; }
.marketplace-listing-owner-form label { display: grid; gap: 3px; color: #849189; font-size: 9px; }
.marketplace-listing-owner-form select { max-width: 160px; min-height: 30px; padding: 0 6px; border: 1px solid #dce5e0; border-radius: 6px; background: #fff; color: #46584f; font-size: 10px; }
.marketplace-listing-owner-form .button { min-height: 30px; padding: 0 7px; font-size: 9px; white-space: nowrap; }
.marketplace-money-input { width: 112px; min-height: 36px; padding: 0 8px; border: 1px solid #dce5e0; border-radius: 6px; color: #34443d; font-size: 12px; text-align: right; }
.marketplace-money-input:focus { border-color: #17866a; outline: 2px solid #d9eee6; }
.marketplace-save { min-height: 31px; padding: 0 10px; font-size: 10px; }
.marketplace-margin { display: grid; gap: 4px; min-width: 125px; }
.marketplace-margin strong { color: #13785f; font-size: 11px; white-space: nowrap; }
.marketplace-margin small { color: #78877f; font-size: 10px; white-space: nowrap; }
.marketplace-margin.is-negative strong, .marketplace-margin.is-negative small { color: #b44e46; }
.marketplace-calculation-empty { color: #8a9690; font-size: 10px; white-space: nowrap; }
.marketplace-history { min-width: 125px; }
.marketplace-history summary { color: #357b65; font-size: 10px; cursor: pointer; white-space: nowrap; }
.marketplace-history-scroll { max-width: 410px; max-height: 230px; margin-top: 7px; overflow: auto; }
.marketplace-history table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 10px; }
.marketplace-history th, .marketplace-history td { padding: 6px 7px; border: 1px solid #e8eeea; white-space: nowrap; }
.marketplace-history th { background: #f7faf8; color: #6c7972; }
.marketplace-history strong { color: #13785f; }
.marketplace-no-history { color: #89968f; font-size: 10px; }
.marketplace-table .danger-text { font-size: 10px; }
.marketplace-sale-entry { min-width: 190px; }
.marketplace-sale-entry summary { color: #13785f; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.marketplace-sale-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 7px; min-width: 480px; margin-top: 9px; padding: 10px; border: 1px solid #e4ebe7; border-radius: 8px; background: #fbfdfb; }
.marketplace-sale-form label { display: grid; gap: 4px; color: #75827b; font-size: 9px; }
.marketplace-sale-form input { width: 100%; min-width: 0; min-height: 32px; padding: 0 6px; border: 1px solid #dce5e0; border-radius: 6px; font-size: 10px; }
.marketplace-sale-preview { grid-column: 1 / 3; align-self: center; color: #23755f; font-size: 10px; line-height: 1.5; }
.marketplace-sale-form > button { min-height: 32px; padding: 0 9px; font-size: 10px; }
.allowance-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.allowance-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.allowance-page-intro .allowance-filters { margin-left: auto; }
.allowance-filters label { display: grid; gap: 5px; min-width: 130px; color: #68766f; font-size: 10px; }
.allowance-filters input, .allowance-filters select { min-height: 36px; padding: 0 9px; border: 1px solid #dce5e0; border-radius: 7px; background: #fff; color: #34443d; font-size: 11px; }
.allowance-report-panel { overflow: hidden; }
.allowance-employee-folder { border: 1px solid #e7ede9; border-radius: 9px; margin-top: 10px; overflow: hidden; }
.allowance-employee-folder > summary { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: #f8faf9; color: #75827b; font-size: 11px; cursor: pointer; list-style: none; }
.allowance-employee-folder > summary::-webkit-details-marker { display: none; }
.allowance-employee-folder > summary::before { content: '▸'; color: #258069; }
.allowance-employee-folder[open] > summary::before { content: '▾'; }
.allowance-folder-name { color: #31473d; font-size: 13px; font-weight: 700; }
.allowance-employee-folder > summary strong { margin-left: auto; color: #13785f; font-size: 12px; }
.allowance-folder-body { padding: 0 12px 12px; }
.allowance-folder-summary { margin: 9px 0; color: #89968f; font-size: 10px; }
.allowance-table-wrap { width: 100%; overflow: auto; }
.allowance-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 11px; }
.allowance-table th, .allowance-table td { padding: 9px 8px; border-bottom: 1px solid #edf1ef; text-align: left; white-space: nowrap; }
.allowance-table th { color: #718078; background: #f8faf9; font-size: 10px; }
.allowance-table td strong, .allowance-table td small { display: block; }
.allowance-table td small { margin-top: 3px; color: #8a9690; font-size: 9px; }
.allowance-amount { color: #13785f; font-weight: 700; }
.allowance-negative { color: #b44e46 !important; }

@media (max-width: 760px) {
  .marketplace-picker-controls { grid-template-columns: 1fr; }
  .marketplace-manual-form { grid-template-columns: 1fr; }
  .marketplace-manual-help, .marketplace-manual-actions { grid-column: 1; }
  .marketplace-candidate-copy strong { white-space: normal; }
  .marketplace-load-error { align-items: start; flex-direction: column; }
  .marketplace-table-wrap,
  .allowance-table-wrap { overflow: visible; }
  .marketplace-table,
  .marketplace-table tbody,
  .allowance-table,
  .allowance-table tbody { display: block; width: 100%; min-width: 0; }
  .marketplace-table thead,
  .allowance-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  .marketplace-table tbody,
  .allowance-table tbody { display: grid; gap: 10px; }
  .marketplace-table tr,
  .allowance-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px; border: 1px solid #e6ece8; border-radius: 9px; background: #fff; }
  .marketplace-table td,
  .allowance-table td { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 7px; border: 0; border-radius: 6px; background: #f8faf9; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .marketplace-table td::before,
  .allowance-table td::before { content: attr(data-label); color: #87938d; font-size: 9px; font-weight: 600; }
  .marketplace-table td[data-label="상품 · 도매처"],
  .marketplace-table td[data-label="도매가 이력"],
  .marketplace-table td[data-label="수당 기록 추가"],
  .allowance-table td[data-label="상품 · 도매처"] { grid-column: 1 / -1; }
  .marketplace-product-cell { min-width: 0; }
  .marketplace-money-input { width: 100%; min-height: 42px; font-size: 16px; text-align: left; }
  .marketplace-margin { min-width: 0; }
  .marketplace-margin strong,
  .marketplace-margin small,
  .marketplace-calculation-empty { white-space: normal; }
  .marketplace-listing-owner-form { align-items: stretch; flex-direction: column; }
  .marketplace-listing-owner-form select { max-width: none; min-height: 40px; font-size: 14px; }
  .marketplace-listing-owner-form .button,
  .marketplace-save,
  .marketplace-table .danger-text { min-height: 40px; font-size: 11px; }
  .marketplace-history { min-width: 0; }
  .marketplace-history-scroll { max-width: none; max-height: none; overflow: visible; }
  .marketplace-history table,
  .marketplace-history tbody { display: block; width: 100%; min-width: 0; }
  .marketplace-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
  .marketplace-history tbody { display: grid; gap: 6px; }
  .marketplace-history tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 6px; border: 1px solid #e8eeea; border-radius: 6px; }
  .marketplace-history td { display: grid; gap: 3px; min-width: 0; padding: 4px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .marketplace-history td:first-child { grid-column: 1 / -1; }
  .marketplace-history td::before { content: attr(data-label); color: #89968f; font-size: 8px; }
  .marketplace-sale-entry { min-width: 0; }
  .marketplace-sale-entry summary { white-space: normal; line-height: 1.5; }
  .marketplace-sale-form { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .marketplace-sale-form label { font-size: 10px; }
  .marketplace-sale-form input { min-height: 42px; font-size: 16px; }
  .marketplace-sale-preview { grid-column: 1; }
  .marketplace-sale-form > button { min-height: 40px; }
  .allowance-table td[data-label="상품 · 도매처"] strong { line-height: 1.5; }
  .allowance-table td[data-label="판매일"],
  .allowance-table td[data-label="채널"] { grid-column: span 1; }
  .allowance-employee-folder > summary { flex-wrap: wrap; gap: 7px; padding: 11px; }
  .allowance-employee-folder > summary strong { margin-left: 0; }
  .allowance-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allowance-filters { width: 100%; }
  .allowance-filters label { flex: 1 1 125px; }
  .user-row { flex-wrap: wrap; }
  .user-actions { margin-left: 0; }
}
