* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 13px;
  color: #333;
  letter-spacing: -0.2px;
}
body {
  background: #f9fafc;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  border: 1px solid #d9dde2;
  border-radius: 3px;
  background: #fff;
  color: #333;
  padding: 11px 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #b4b7bc;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #4d9bbb;
  cursor: pointer;
  margin: 0;
}
input[type="number"] {
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 20px;
  font-weight: 500;
}
h2 {
  font-size: 18px;
  font-weight: 500;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
.hidden {
  display: none !important;
}
.muted {
  color: #959da5;
}
.nowrap {
  white-space: nowrap;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.topbar {
  height: 68px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: #26394a;
  color: #f2f5f7;
  display: flex;
  align-items: center;
}
.brand {
  width: 185px;
  flex-shrink: 0;
  height: 68px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1e3040;
}
.brand svg {
  width: 35px;
  height: 40px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.6px;
  line-height: 11px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}
.menu-toggle {
  width: 55px;
  height: 68px;
  background: #1e3040 !important;
  color: #98a8b6;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 4px;
}
.recent-job {
  margin-left: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}
.recent-jobs-disclosure {
  position: relative;
  flex: none;
}
.recent-jobs-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 3px;
  color: #e4edf3;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}
.recent-jobs-trigger::-webkit-details-marker {
  display: none;
}
.recent-jobs-trigger:hover, .recent-jobs-trigger:focus-visible {
  color: #fff;
}
.recent-jobs-latest, .recent-jobs-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.recent-jobs-latest[hidden] {
  display: none;
}
.recent-jobs-latest .recent-jobs-name, .recent-jobs-row .recent-jobs-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-jobs-state, .recent-jobs-count, .recent-job time {
  flex: none;
}
.recent-jobs-state::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 4px 1px 0;
  border-radius: 50%;
  background: #899aa8;
}
.recent-jobs-state.error::before { background: #ec796f; }
.recent-jobs-state.active::before { background: #58aef0; }
.recent-jobs-state.complete::before { background: #52c4a9; }
.recent-jobs-message, .recent-job time {
  color: #afc4d3;
  font-size: 11px;
  white-space: nowrap;
}
.recent-jobs-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: min(440px, calc(100vw - 20px));
  max-height: calc(100vh - 78px);
  overflow: auto;
  padding: 7px;
  border: 1px solid #dce2e7;
  border-radius: 6px;
  background: #fff;
  color: #26394a;
  box-shadow: 0 5px 18px #18293635;
}
.recent-jobs-panel .recent-jobs-note {
  margin: 6px 8px;
  font-size: 12px;
}
.recent-jobs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recent-jobs-list .recent-jobs-row {
  width: 100%;
  justify-content: flex-start;
  padding: 7px 8px;
  border-radius: 4px;
  color: #26394a;
  font-size: 12px;
}
.recent-jobs-row:hover { background: #edf4f8; }
.recent-jobs-panel time { color: #526676; }
.recent-jobs-panel nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 5px;
  padding: 9px 8px 4px;
  border-top: 1px solid #e4e8eb;
  font-size: 12px;
}
.recent-jobs-panel nav a { color: #2f637e; }
.header-end {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
  padding: 0 24px;
  white-space: nowrap;
}
.header-source {
  font-size: 11px;
  color: #ccd9e1;
}
.collector-auth-alert {
  background: #ffe3b0;
  color: #6e380c;
  border-radius: 14px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
}
.account-button {
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 68px;
  bottom: 0;
  width: 240px;
  background: #eef1f6;
  z-index: 30;
  padding-top: 12px;
  overflow-y: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 67px;
  padding: 19px 23px;
  gap: 16px;
  text-align: left;
  color: #4e555b;
}
.nav-link svg {
  flex-shrink: 0;
}
.nav-link.active,
.nav-link:hover {
  color: #43bda9;
}
.nav-link .nav-chevron {
  margin-left: auto;
  transition: transform 0.15s;
  width: 14px;
}
.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(90deg);
}
.nav-children {
  padding: 0 10px 12px 58px;
}
.nav-children a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
}
.nav-children a.active {
  color: #33b9a7;
}
.support-card {
  margin: 25px 16px;
  background: #f0f8f6;
  border: 1px solid #e3efec;
  border-radius: 9px;
  padding: 15px;
  color: #5a9f92;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
}
.support-card b {
  font-size: 13px;
}
.main-content {
  margin: 68px 0 0 240px;
  padding: 30px 24px 36px;
  min-height: calc(100vh - 68px);
}
.collapsed .sidebar {
  width: 68px;
}
.collapsed .nav-link {
  padding: 20px;
  gap: 0;
}
.collapsed .nav-label,
.collapsed .nav-chevron,
.collapsed .support-card,
.collapsed .nav-children {
  display: none;
}
.collapsed .main-content {
  margin-left: 68px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 22px;
}
.page-heading h1 {
  margin: 0;
  white-space: nowrap;
}
.page-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 39px;
  padding: 9px 16px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #fff;
  color: #555;
}
.button.primary {
  background: #1bbdae;
  color: #fff;
  border-radius: 24px;
  padding: 11px 22px;
}
.button.blue {
  background: #549abb;
  color: #fff;
  border-radius: 24px;
  padding: 11px 20px;
}
.button.dark {
  background: #343a3e;
  color: #fff;
  border-radius: 25px;
  padding: 8px 23px;
  min-height: 34px;
  font-size: 12px;
}
.button.search {
  background: #456378;
  color: #fff;
  border: 1px solid #456378;
}
.button.outline {
  border: 1px solid #d6dce2;
  background: #fff;
}
.button.small {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 12px;
}
.button.text {
  background: none;
  color: #638fa3;
  padding: 7px 0;
  min-height: 30px;
}
.button.danger {
  background: #fff2f2;
  border-color: #f0c2c2;
  color: #bc4d4d;
}
.button svg {
  width: 16px;
  height: 16px;
}
.filter-card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px #142b3d03;
}
.filter-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.filter-date {
  min-width: 163px;
  border: 1px solid #d8dce1;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
}
.channel-select {
  width: 146px;
}
.search-input {
  flex: 1;
  min-width: 130px;
}
.advanced-open {
  border: 1px solid #d8dce1;
  background: #fff;
  padding: 10px 13px;
  min-width: 118px;
  margin-left: -11px;
}
.filter-advanced {
  border-top: 1px solid #edf0f3;
  margin-top: 20px;
  padding-top: 18px;
}
.filter-condition {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 120px minmax(160px, 1fr) 34px;
  gap: 10px;
  margin-bottom: 10px;
}
.filter-note {
  font-size: 11px;
  color: #94a0a9;
  margin-top: 10px;
}
.list-card {
  background: #fff;
  border: 1px solid #e0e5e9;
  border-radius: 4px;
}
.table-scroll {
  overflow-x: auto;
  min-width: 0;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.data-table th {
  font-weight: 400;
  background: #f8f8f8;
  min-height: 49px;
  height: 49px;
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  border-bottom: 1px solid #e0e3e6;
  white-space: nowrap;
}
.data-table td {
  height: 70px;
  padding: 16px 10px;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .cell-left {
  text-align: left;
}
.data-table .cell-center {
  text-align: center;
}
.data-table .cell-right {
  text-align: right;
}
.data-table .cell-select {
  width: 36px;
  text-align: center;
  padding: 10px 8px;
}
.data-table .name-cell {
  line-height: 1.65;
}
.data-table .row-selected {
  background: #f3fbfa;
}
.table-link {
  text-decoration: underline;
  cursor: pointer;
  background: none;
  padding: 0;
  color: #374f5c;
  line-height: 1.6;
}
.table-link.blue-link {
  color: #5894ae;
  text-decoration: none;
}
.sort-button {
  font-size: 11px;
  color: #b7bec5;
  margin-left: 5px;
  padding: 0;
}
.sort-button.active {
  color: #419aaf;
}
.number-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.unit {
  font-size: 10px;
  color: #8d959d;
}
.edit-button {
  padding: 2px;
  display: inline-flex;
}
.edit-button svg {
  width: 14px;
  height: 14px;
}
.inline-editor {
  display: flex;
  gap: 5px;
  align-items: center;
}
.inline-editor input {
  width: 70px;
  padding: 5px;
  text-align: center;
}
.inline-editor .save-inline {
  font-size: 10px;
  border: 1px solid #e0e4e8;
  padding: 5px;
  background: #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 4px 5px;
  border-radius: 3px;
  background: #e9e9ed;
  color: #8e949b;
  font-size: 11px;
}
.pill.green {
  background: #e5f7f3;
  color: #44a98e;
  border: 1px solid #d0f1e9;
}
.pill.red {
  background: #fff0ef;
  color: #bd645d;
}
.pill.blue {
  background: #edf5fb;
  color: #588ea8;
}
.pill.amber {
  background: #fff7e8;
  color: #aa8547;
}
.row-more {
  border: 1px solid #d9dce0;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  color: #959da3;
  line-height: 14px;
  padding: 0;
  font-size: 16px;
}
.toggle {
  width: 55px;
  height: 24px;
  border-radius: 20px;
  background: #d9dde3;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  position: relative;
  text-align: left;
  padding: 0 6px;
  line-height: 24px;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  box-shadow: 0 1px 2px #0001;
}
.toggle.on {
  background: #559aba;
  text-align: right;
  padding-right: 7px;
}
.toggle.on::after {
  left: 3px;
  right: auto;
}
.toggle.pending {
  opacity: 0.5;
  cursor: wait;
}
.bulk-toolbar {
  height: 49px;
  background: #edf8f6;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
  border-bottom: 1px solid #d9ebe5;
}
.bulk-toolbar .bulk-count {
  font-weight: bold;
  color: #3b9f8d;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 15px;
  color: #8e969c;
  min-height: 69px;
}
.page-size {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-size select {
  border-radius: 20px;
  padding: 7px 14px;
  min-width: 84px;
  color: #7e878f;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-numbers button {
  min-width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #8d969f;
}
.page-numbers button.current {
  background: #28b8a6;
  color: #fff;
}
.page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-jump input {
  width: 55px;
  padding: 5px 7px;
}
.source-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
  font-size: 11px;
  color: #84929c;
  flex-wrap: wrap;
}
.source-strip .warning {
  color: #b27e3b;
}
.state-box {
  padding: 55px 24px;
  text-align: center;
  color: #96a0a9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.state-box.error {
  color: #aa625d;
}
.state-box h3 {
  margin: 0;
  color: inherit;
}
.state-box p {
  max-width: 650px;
  margin: 0;
  line-height: 1.7;
}
.page-loading {
  padding: 70px;
  text-align: center;
  color: #8395a3;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e6e9;
  border-top-color: #39b6a5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: #0006;
  z-index: 100;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70vw;
  background: #fff;
  box-shadow: -3px 0 8px #0001;
  display: flex;
  flex-direction: column;
  z-index: 101;
}
.drawer.width-collector {
  width: min(1440px, 100vw);
}
.width-collector > .drawer-head {
  height: auto;
  min-height: 62px;
  padding-right: 65px;
}
.width-collector > .drawer-close {
  top: 11px;
  right: 13px;
  left: auto;
  width: 40px;
  height: 40px;
}
.width-collector > .drawer-body {
  padding-top: 0;
  overflow-x: hidden;
}
.collector-actions {
  position: sticky;
  top: 0;
  z-index: 1;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid #dce2e7;
  background: #fff;
}
.collector-viewer {
  height: min(66vh, 900px);
  height: min(66dvh, 900px);
  overflow: hidden;
  margin-bottom: 16px;
  background: #262626;
}
.drawer.width-map {
  width: 80vw;
}
.drawer.width-policy {
  width: 55vw;
}
.drawer.width-form {
  width: 50vw;
}
.drawer-close {
  position: absolute;
  top: 15px;
  left: -66px;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #343a3f;
  box-shadow: 0 1px 3px #0002;
}
.drawer-close svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.3;
}
.drawer-head {
  height: 79px;
  flex-shrink: 0;
  border-bottom: 1px solid #bfc3c7;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.drawer-head h2 {
  font-size: 18px;
  margin: 0;
}
.accent {
  color: #36b4a2;
}
.drawer-body {
  padding: 26px 20px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e4e8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.drawer .data-table td {
  height: 52px;
  padding: 13px 10px;
}
.drawer .data-table {
  border: 1px solid #e3e5e8;
}
.drawer .data-table th {
  height: 50px;
}
.popover {
  position: fixed;
  z-index: 180;
  background: #fff;
  border: 1px solid #dce2e7;
  border-radius: 4px;
  box-shadow: 0 6px 24px #21394b25;
  min-width: 180px;
  padding: 6px 0;
  max-width: min(500px, 95vw);
  max-height: 75vh;
  overflow: auto;
}
.menu-item {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
.menu-item:hover {
  background: #f3f8f8;
  color: #36a591;
}
.menu-separator {
  height: 1px;
  background: #edf0f3;
  margin: 5px 0;
}
.calendar-popup {
  padding: 20px;
  min-width: 390px;
}
.date-inputs {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.date-inputs input {
  width: 170px;
}
.date-presets {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.date-presets button {
  padding: 6px 9px;
  border: 1px solid #dce2e7;
  border-radius: 3px;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  color: #7d8790;
}
.field small,
.help-text {
  font-size: 11px;
  color: #9aa2aa;
  line-height: 1.7;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field-error {
  color: #b85555;
  font-size: 11px;
  margin-top: 4px;
}
.form-section {
  padding: 25px 18px;
  background: #fff;
  border: 1px solid #f0f2f4;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px #25374403;
}
.form-section h3:before {
  content: "•";
  color: #27bd9e;
  margin-right: 8px;
}
.form-error {
  color: #bd5c5c;
  line-height: 1.6;
  margin: 12px 0;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.notice-box {
  padding: 13px 16px;
  border: 1px solid #e4e9ef;
  background: #f6f9fc;
  border-radius: 4px;
  color: #718696;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice-box.warning {
  background: #fffaf0;
  border-color: #efe3c6;
  color: #a1874e;
}
.notice-box.success {
  background: #f0faf7;
  border-color: #cfeee1;
  color: #4b9e83;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h3 {
  margin: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin: 34px 0 27px;
}
.metric-card {
  background: #fff;
  border: 1px solid #f1f2f3;
  border-radius: 17px;
  min-height: 144px;
  padding: 18px 20px;
  position: relative;
}
.metric-value {
  font-size: 26px;
  font-weight: bold;
  color: #0c171c;
  letter-spacing: 0.2px;
}
.metric-label {
  font-size: 11px;
  color: #a5a9ae;
  margin-top: 5px;
}
.metric-mark {
  position: absolute;
  top: 26px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: #e3f1ee;
  border-radius: 10px;
}
.metric-card:nth-child(2) .metric-mark {
  background: #f0e5e5;
}
.metric-card:nth-child(3) .metric-mark {
  background: #fff3db;
}
.metric-card:nth-child(4) .metric-mark {
  background: #e9e7fa;
}
.metric-percent {
  margin-top: 28px;
  color: #9a9c9f;
}
.metric-bar {
  height: 5px;
  border-radius: 3px;
  background: #eee;
  margin-top: 8px;
  overflow: hidden;
}
.metric-bar span {
  display: block;
  height: 100%;
  background: #8c87ad;
}
.metric-card:nth-child(2) .metric-bar span {
  background: #b8696b;
}
.metric-card:nth-child(3) .metric-bar span {
  background: #d9b96c;
}
a.metric-value {
  display: block;
  text-decoration: none;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.dashboard-lower > * {
  min-width: 0;
}
.job-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.job-result-reason {
  color: #6b7280;
}
.simulation-log-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.simulation-log-search input {
  flex: 0 1 320px;
}
.chart-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  min-height: 355px;
}
.chart-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.chart-svg {
  width: 100%;
  height: 270px;
  overflow: visible;
}
.activity-card { margin-bottom: 28px; min-height: 310px; }
.activity-scroll { overflow-x: auto; }
.activity-plot { display: flex; gap: 8px; min-width: 680px; padding: 5px 8px 0; border-bottom: 1px solid #e5e9ee; }
.activity-day { flex: 1; min-width: 36px; color: #6f7c88; text-align: center; text-decoration: none; border-radius: 5px; }
.activity-day:hover, .activity-day:focus-visible { background: #f0f6f8; outline: 2px solid #a8cfce; }
.activity-bars { display: flex; height: 195px; flex-direction: column; align-items: center; justify-content: flex-end; }
.activity-total { font-size: 10px; line-height: 18px; }
.activity-stack { display: flex; flex-direction: column-reverse; width: 68%; max-width: 34px; min-height: 1px; background: #edf0f3; }
.activity-segment { display: block; flex-basis: 0; min-height: 0; }
.activity-date { display: block; padding: 8px 0; font-size: 10px; white-space: nowrap; }
.activity-color { display: inline-block; height: 8px; width: 8px; border-radius: 2px; margin-right: 5px; }
.activity-collect { background: #5eb1b1; }
.activity-send { background: #8d83b0; }
.activity-sync { background: #d0b261; }
.activity-other { background: #abb7c4; }
.chart-svg text {
  font-size: 10px;
  fill: #939a9f;
}
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}
.notice-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.notice-table th {
  background: #fff;
  border-radius: 8px;
  color: #b4b8bd;
  font-weight: 400;
  padding: 8px;
  text-align: left;
}
.notice-table td {
  padding: 14px 8px;
  border-bottom: 1px solid #e8ebef;
}
.channel-mark {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 7px;
  color: #20272a;
  letter-spacing: -0.4px;
}
.channel-meta {
  font-size: 12px;
  line-height: 1.6;
  color: #697079;
}
.component-group td {
  vertical-align: top;
}
.component-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 460px;
}
.component-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) 65px 65px 20px;
  gap: 10px;
  align-items: center;
  min-height: 23px;
}
.component-row input {
  padding: 3px 5px;
  text-align: center;
  width: 55px;
  border-color: #aaa;
}
.remove-component {
  color: #e67770;
  font-size: 14px;
  padding: 0;
}
.component-add {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.component-add button {
  border: 1px solid #c6e5cf;
  border-radius: 50%;
  background: #c4e9ce;
  color: #fff;
  width: 17px;
  height: 17px;
  line-height: 14px;
  padding: 0;
}
.sku-picker-results {
  border: 1px solid #e4e8ec;
  margin-top: 16px;
  max-height: 45vh;
  overflow: auto;
}
.sku-picker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #edf0f3;
  width: 100%;
  text-align: left;
}
.sku-picker-item:hover {
  background: #eff8f6;
}
.sku-picker-item span:first-child {
  color: #6d9aad;
  min-width: 110px;
}
.channel-policy-table td {
  height: 92px !important;
}
.channel-policy-table .channel-mark {
  font-size: 19px;
  text-align: center;
  letter-spacing: -0.5px;
}
.channel-policy-table .channel-meta {
  text-align: center;
}
.channel-policy-table input {
  width: 100%;
  max-width: 160px;
}
.job-stages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 28px;
}
.job-stage {
  flex: 1;
  border-top: 4px solid #e6e9ec;
  padding: 12px 3px;
  font-size: 11px;
  color: #a0a8ae;
}
.job-stage.done {
  border-color: #56bba8;
  color: #499e8e;
}
.job-stage.current {
  border-color: #4b9abd;
  color: #418bad;
  font-weight: bold;
}
.stat-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.stat-strip span {
  color: #81919e;
}
.stat-strip b {
  color: #3e5567;
  margin-left: 8px;
}
.event-log {
  margin-top: 20px;
  border-top: 1px solid #e8edf0;
}
.event-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f4;
}
.event-time {
  color: #96a2ac;
  min-width: 150px;
}
.key-values {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.key-values dt {
  color: #89959f;
}
.key-values dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tab-bar {
  display: flex;
  border-bottom: 1px solid #e1e6e9;
  margin-bottom: 20px;
  gap: 18px;
}
.tab-bar button {
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
}
.tab-bar button.active {
  border-color: #36b6a4;
  color: #36b6a4;
}
.sheet-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.sheet-row-number {
  color: #6b8fa3;
  font-variant-numeric: tabular-nums;
}
.barcode-input {
  width: 100%;
  min-width: 110px;
  font-variant-numeric: tabular-nums;
}
.sheet-raw {
  background: #f7f9fb;
  padding: 16px;
  border: 1px solid #e6ebef;
  line-height: 1.8;
  margin-bottom: 20px;
}
.candidate {
  border: 1px solid #e0e8e9;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.candidate.selected {
  border-color: #6bc5b4;
  background: #f5fcfa;
}
.candidate-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.candidate h3 {
  margin-bottom: 7px;
}
.candidate-reasons {
  font-size: 12px;
  color: #87959f;
  margin-top: 10px;
  line-height: 1.7;
}
.barcode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.empty-count {
  color: #9da8af;
}
.upload-zone {
  border: 1px dashed #cbd5df;
  border-radius: 5px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.upload-zone input {
  border: 0;
  max-width: 100%;
}
.toast {
  min-width: 250px;
  max-width: 460px;
  padding: 14px 20px;
  border-radius: 4px;
  background: #344d5d;
  color: #fff;
  box-shadow: 0 3px 20px #0002;
  line-height: 1.6;
  margin-top: 10px;
}
.toast.error {
  background: #a45858;
}
.toast.success {
  background: #438e7d;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  pointer-events: none;
}
.login-page {
  background: #eef1f6;
  display: grid;
  min-height: 100vh;
  place-items: center;
}
.login-card {
  background: #fff;
  width: min(420px, calc(100vw - 32px));
  padding: 42px;
  border: 1px solid #e3e7ec;
  box-shadow: 0 12px 40px #26394a0b;
  border-radius: 8px;
}
.login-brand {
  color: #26394a;
  margin-bottom: 28px;
}
.login-brand small {
  letter-spacing: 3px;
  font-size: 11px;
}
.login-brand h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 3px 0;
}
.login-card .field {
  margin: 20px 0;
}
.login-submit {
  width: 100%;
  margin-top: 8px;
}
.login-caption {
  margin: 30px 0 0;
  color: #a0a9b0;
  font-size: 11px;
  line-height: 1.7;
}
.table-caption {
  margin-bottom: 8px;
  color: #6a747d;
  font-size: 12px;
}
.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.inline-message {
  font-size: 12px;
  color: #8d9aa4;
  padding: 12px 0;
}
.action-menu-trigger {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.action-menu-trigger svg {
  width: 12px;
}
.checkbox-cell {
  display: flex;
  justify-content: center;
}
.selectable-row:hover {
  background: #fafdfd;
}
.divider {
  border: 0;
  border-top: 1px solid #e7ebef;
  margin: 24px 0;
}
.file-download {
  color: #548eac;
  text-decoration: underline;
}
.data-table tr.edited td {
  background: #fffdf1;
}
.policy-helpers {
  font-size: 11px;
  line-height: 1.8;
  color: #9a9fa5;
  margin: 16px 0;
}
.policy-helpers b {
  color: #cf7b86;
  font-weight: 400;
}
.disabled-explanation {
  color: #9ba6ad;
  font-size: 11px;
}
.action-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.small-input {
  padding: 5px 8px !important;
}
.page-description {
  line-height: 1.7;
  color: #84929b;
  font-size: 12px;
  margin: -10px 0 20px;
}
@media (max-width: 1200px) {
  .header-source {
    display: none;
  }
  .recent-job {
    max-width: 45vw;
  }
  .metric-grid {
    gap: 15px;
  }
  .dashboard-lower {
    gap: 20px;
  }
  .drawer.width-form {
    width: 65vw;
  }
  .form-grid {
    gap: 16px;
  }
  .header-end {
    gap: 10px;
  }
  .page-actions {
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 68px;
  }
  .sidebar .nav-label,
  .sidebar .nav-chevron,
  .sidebar .nav-children,
  .support-card {
    display: none;
  }
  .sidebar .nav-link {
    padding: 20px;
  }
  .main-content {
    margin-left: 68px;
    padding: 22px 16px;
  }
  .brand {
    width: 135px;
    padding-left: 10px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand svg {
    width: 28px;
  }
  .menu-toggle {
    width: 35px;
  }
  .recent-job {
    margin-left: 10px;
  }
  .recent-jobs-trigger span, .recent-job .recent-jobs-latest, .recent-jobs-message {
    display: none;
  }
  .recent-jobs-trigger {
    padding: 9px;
  }
  .recent-jobs-panel {
    position: fixed;
    top: 64px;
    left: 8px;
    width: min(440px, calc(100vw - 16px));
  }
  .header-end {
    padding: 0 14px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .search-input {
    min-width: 160px;
  }
  .drawer,
  .drawer.width-map,
  .drawer.width-policy,
  .drawer.width-form {
    width: calc(100vw - 58px);
  }
  .drawer-close {
    left: -52px;
    width: 45px;
    height: 45px;
  }
  .drawer-head {
    padding: 15px;
  }
  .drawer-body {
    padding: 20px 14px;
  }
  .form-grid,
  .split-two {
    grid-template-columns: 1fr;
  }
  .barcode-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-actions {
    max-width: 65%;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .calendar-popup {
    min-width: 310px;
  }
  .date-inputs input {
    width: 135px;
  }
}

.channel-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.channel-catalog-card {
  border: 1px solid #e0e5e9;
  border-radius: 6px;
  padding: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.channel-catalog-card strong {
  font-size: 16px;
}
.weekday-grid {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
.recent-job .recent-jobs-latest {
  padding: 5px 0 5px 10px;
  border-left: 1px solid #ffffff2b;
  color: #d9e4ec;
  font-size: 12px;
}
@media (max-width: 900px) {
  .recent-jobs-latest .recent-jobs-count {
    display: none;
  }
}
@media (max-width: 540px) {
  .topbar .brand { width: 48px; padding: 10px; }
  .topbar .brand span { display: none; }
  .topbar .header-end { gap: 6px; padding: 0 8px; }
  .topbar .account-button { max-width: 70px; }
  .recent-jobs-row .recent-jobs-count { display: none; }
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.channel-catalog-card .button {
  margin-top: auto;
}
.workflow-status { margin: 20px 0; }
.workflow-safety p { margin: 8px 0 0; }
.workflow-step { padding: 16px 0; border-bottom: 1px solid var(--border, #dfe5eb); }
.workflow-step > h3 { margin: 0 0 12px; }
.workflow-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.workflow-account { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #dfe5eb; border-radius: 6px; }
.workflow-account small, .workflow-ids { display: block; margin-top: 5px; color: #667788; }
.workflow-reasons { margin: 5px 0; padding-left: 18px; line-height: 1.6; }
.workflow-result { margin-top: 22px; }
.workflow-result td { overflow-wrap: anywhere; }
@media (max-width: 800px) { .workflow-accounts { grid-template-columns: 1fr; } }
@media (max-width: 1200px) {
  .channel-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .channel-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.matching-intro { color: #637481; line-height: 1.8; margin: -8px 0 24px; max-width: 940px; }
.drawer-body > .matching-intro { margin: 0 0 20px; }
.matching-form { border: 1px solid #e1e8ed; border-radius: 12px; background: #fff; padding: 24px; margin-bottom: 28px; }
.matching-form .form-grid { margin: 0; }
.matching-form .field.wide { grid-column: 1 / -1; }
.matching-form-actions, .matching-context, .matching-result-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.matching-form-actions { margin-top: 20px; border-top: 1px solid #edf1f4; padding-top: 18px; }
.matching-form-actions p, .matching-context p { margin: 0; line-height: 1.8; }
.matching-context p { margin-top: 10px; color: #637481; }
.matching-form-actions .button, .matching-context .button { white-space: nowrap; }
.matching-result-summary { margin: 22px 0 18px; align-items: flex-start; }
.matching-result-summary h2 { font-size: 19px; margin: 0 0 10px; color: #2f4657; }
.matching-result-summary p { margin: 0; line-height: 1.7; }
.matching-input-summary { border: 1px solid #dce6ec; background: #f1f6f9; border-radius: 10px; padding: 8px 22px; overflow-wrap: anywhere; }
.matching-candidates { display: grid; gap: 16px; }
.matching-candidate { border: 1px solid #dce5eb; border-radius: 12px; background: #fff; padding: 22px 24px; overflow: hidden; }
.matching-candidate.has-conflicts { border-color: #e4c9c8; }
.matching-candidate > header { display: flex; gap: 16px; align-items: flex-start; }
.matching-rank { background: #edf4f7; color: #547b8e; padding: 9px; min-width: 37px; text-align: center; border-radius: 8px; font-size: 13px; font-weight: 700; }
.matching-candidate-heading { flex: 1; min-width: 0; }
.matching-candidate h3 { font-size: 16px; line-height: 1.65; margin: 0; color: #2d414e; overflow-wrap: anywhere; }
.matching-option { color: #677986; line-height: 1.7; margin: 5px 0 0; overflow-wrap: anywhere; }
.matching-score { min-width: 100px; text-align: right; display: flex; flex-direction: column; gap: 4px; }
.matching-score strong { color: #397f85; font-size: 26px; line-height: 1.1; }
.matching-score span { color: #788791; font-size: 11px; }
.matching-candidate-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 17px 0; font-size: 12px; color: #677986; }
.matching-barcode { color: #33738c; font-variant-numeric: tabular-nums; font-weight: 700; overflow-wrap: anywhere; }
.barcode-lines { display: inline-grid; vertical-align: top; text-align: start; row-gap: 2px; font-variant-numeric: tabular-nums; }
.barcode-line { display: grid; grid-template-columns: 1ch minmax(0, 1fr); column-gap: .45em; align-items: baseline; }
.barcode-line:only-child { grid-template-columns: minmax(0, 1fr); }
.barcode-sign { text-align: center; }
.barcode-token { white-space: nowrap; }
.matching-evidence { margin: 16px 0; color: #4b606c; }
.matching-evidence h4 { font-size: 12px; margin: 0 0 6px; font-weight: 700; }
.matching-evidence ul { padding-left: 18px; margin: 0; line-height: 1.8; font-size: 12px; }
.matching-conflict { color: #a04d47; line-height: 1.8; }
.matching-missing { color: #886b35; }
.matching-comparisons { margin-top: 16px; }
.matching-comparisons .table-scroll { border: 1px solid #e6edf0; border-radius: 7px; }
.matching-comparisons .data-table { min-width: 470px; font-size: 12px; }
.matching-comparisons .data-table th { padding: 10px 12px; background: #f4f7f9; height: auto; font-weight: 500; }
.matching-comparisons .data-table td { padding: 11px 12px; height: auto; overflow-wrap: anywhere; line-height: 1.6; }
.matching-candidate footer { display: flex; justify-content: flex-end; margin-top: 18px; }
.matching-excluded { margin-top: 24px; border-top: 1px solid #e1e7eb; padding-top: 18px; }
.matching-excluded > summary { cursor: pointer; padding: 7px 0; color: #986b52; }
.matching-excluded .matching-candidates { margin-top: 16px; }
.matching-footnote { font-size: 12px; color: #7c8a94; line-height: 1.9; margin: 20px 0 0; }
.matching-feedback-notices { background: #fff8e9; border: 1px solid #ebdbb9; border-radius: 8px; padding: 10px 16px; margin: 16px 0; color: #836a3a; line-height: 1.8; }
.matching-feedback-notices p { margin: 4px 0; }
.matching-review-check { margin: 22px 0; align-items: flex-start; line-height: 1.8; }
.matching-review-check input { flex-shrink: 0; margin-top: 2px; }
.matching-history-option { margin: 6px 0; font-size: 12px; color: #6c7b86; line-height: 1.7; }
.matching-workspace-intro { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: -8px 0 24px; }
.matching-workspace-intro p { color: #617583; line-height: 1.8; margin: 0; }
.matching-workspace-intro .pill { white-space: nowrap; }
.matching-ai-connection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -8px 0 20px; color: #6f818e; font-size: 12px; }
.matching-ai-connection .button { margin-left: auto; }
.matching-intake { border: 1px solid #dfe7ec; border-radius: 10px; background: #fff; margin-bottom: 24px; }
.matching-intake > summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: #36546a; }
.matching-intake > summary span { color: #7c8b95; margin-left: 16px; font-weight: 400; font-size: 12px; }
.matching-intake-form { padding: 0 22px 20px; }
.matching-intake-form .form-grid { margin: 0; grid-template-columns: 1.5fr 1.3fr 1fr; }
.matching-intake-form .field.wide { grid-column: auto; }
.matching-intake-form .matching-form-actions { margin-top: 12px; padding-top: 12px; }
.matching-paste { border-top: 1px solid #e9eef1; padding: 16px 22px 20px; }
.matching-paste > summary { cursor: pointer; color: #507a90; }
.matching-paste > p { margin: 16px 0; }
.matching-paste .field { display: flex; flex-direction: column; }
.matching-paste textarea { min-height: 140px; }
.matching-workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.matching-queue { border: 1px solid #dce6ec; border-radius: 11px; background: #fff; padding: 18px 16px; min-width: 0; }
.matching-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.matching-queue-heading h2 { font-size: 15px; font-weight: 700; margin: 0; color: #385669; }
.matching-queue-heading .button { padding: 6px; font-size: 11px; }
.matching-queue > .help-text { margin: 13px 0; }
.matching-queue-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-bottom: 1px solid #e7edf1; padding-bottom: 16px; }
.matching-queue-filters .field { display: flex; flex-direction: column; gap: 5px; }
.matching-queue-filters .field:nth-child(3) { grid-column: 1 / -1; }
.matching-queue-filters input, .matching-queue-filters select { width: 100%; padding: 9px 8px; font-size: 12px; }
.matching-queue-filters .button { grid-column: 1 / -1; }
.matching-queue-items { display: grid; gap: 8px; margin-top: 14px; max-height: 720px; overflow-y: auto; }
.matching-queue-item { border: 1px solid #e5ebef; padding: 14px 12px; text-align: left; border-radius: 7px; display: flex; flex-direction: column; gap: 8px; background: #fff; overflow-wrap: anywhere; }
.matching-queue-item:hover { background: #f7fafb; border-color: #b5ccd7; }
.matching-queue-item.selected { background: #edf5f9; border-color: #79adc3; box-shadow: inset 3px 0 #5898b5; }
.matching-queue-item strong { font-size: 13px; line-height: 1.6; color: #324e60; }
.matching-queue-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; color: #7c8c98; }
.matching-queue-option { color: #6b7c87; font-size: 12px; line-height: 1.6; }
.matching-queue-pages { display: flex; gap: 5px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 10px; color: #7e8e99; flex-wrap: wrap; }
.matching-queue-pages > span { margin-right: auto; }
.matching-queue .state-box { min-height: 180px; padding: 20px 10px; }
.matching-queue .state-box h3 { font-size: 13px; }
.matching-queue .state-box p { font-size: 12px; }
.matching-workspace-content { min-width: 0; }
.matching-selected-source { border: 1px solid #dce6ec; background: #f2f7fa; border-radius: 10px; padding: 10px 20px 18px; }
.matching-selected-source .kv-grid { margin: 0; }
.matching-selected-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.matching-ai-status { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 13px 16px; background: #fff; border: 1px solid #e5ebef; border-radius: 8px; }
.matching-ai-status .pill { white-space: nowrap; }
.matching-ai-status p { color: #6b7d89; line-height: 1.8; font-size: 12px; margin: 0; }
.matching-comparison-workspace { display: grid; grid-template-columns: minmax(230px, .82fr) minmax(350px, 1.18fr); gap: 18px; align-items: start; }
.matching-compact-candidates { display: grid; gap: 12px; }
.matching-compact-candidate { border: 1px solid #dfe7ec; border-radius: 10px; background: #fff; padding: 18px; overflow-wrap: anywhere; }
.matching-compact-candidate.selected { border-color: #78aabf; box-shadow: 0 0 0 1px #d5e6ee; }
.matching-compact-candidate h3 { font-size: 14px; font-weight: 700; line-height: 1.7; margin: 12px 0 4px; color: #3b5261; }
.matching-compact-candidate .matching-option { font-size: 12px; }
.matching-compact-candidate .matching-barcode { margin: 11px 0 5px; }
.matching-compact-candidate > .help-text { font-size: 11px; margin: 6px 0; }
.matching-compact-top { display: flex; justify-content: space-between; align-items: center; }
.matching-compact-top .matching-rank { min-width: 29px; padding: 6px; font-size: 11px; }
.matching-compact-score { color: #45818a; font-weight: 700; font-size: 15px; }
.matching-candidate-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.matching-compact-reason, .matching-compact-warning { font-size: 11px; line-height: 1.8; color: #65808f; margin: 10px 0; }
.matching-compact-warning { color: #937642; }
.matching-detail { background: #fff; border: 1px solid #dce5eb; border-radius: 10px; padding: 22px; min-width: 0; }
.matching-detail-heading { border-bottom: 1px solid #e8edf0; padding-bottom: 8px; margin-bottom: 18px; }
.matching-step { display: inline-block; color: #7d909d; font-size: 11px; margin-bottom: 16px; }
.matching-detail h2 { font-size: 16px; line-height: 1.7; font-weight: 700; color: #344f61; margin-bottom: 7px; overflow-wrap: anywhere; }
.matching-detail .matching-barcode { margin: 12px 0; }
.matching-detail .field { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.matching-detail .matching-comparisons .data-table { min-width: 0; }
.matching-detail .matching-comparisons .data-table td, .matching-detail .matching-comparisons .data-table th { padding: 10px 8px; font-size: 11px; }
.matching-detail .matching-review-check { font-size: 12px; gap: 10px; }
.matching-detail > .button.primary { width: 100%; }
.matching-confirmed { border: 1px solid #bfdbcb; background: #f3faf6; padding: 24px; border-radius: 9px; line-height: 1.8; }
.matching-confirmed h3 { margin-top: 20px; }
.matching-confirmed-notice { display: flex; align-items: center; gap: 12px; color: #547b65; background: #f0f8f3; padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.matching-excluded-row { padding: 18px; border-bottom: 1px solid #e6edf0; background: #fff; }
.matching-excluded-row > p { margin: 7px 0; color: #6a7d89; }
@media (max-width: 1350px) {
  .matching-workspace { grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
  .matching-comparison-workspace { grid-template-columns: minmax(0, 1fr); }
  .matching-compact-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 480px; overflow-y: auto; padding: 2px; }
}
@media (max-width: 850px) {
  .matching-workspace { grid-template-columns: minmax(0, 1fr); }
  .matching-queue-items { max-height: 300px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matching-queue-filters { grid-template-columns: 1fr 1fr 2fr auto; align-items: end; }
  .matching-queue-filters .field:nth-child(3), .matching-queue-filters .button { grid-column: auto; }
  .matching-intake-form .form-grid { grid-template-columns: 1fr; }
  .matching-workspace-intro { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .matching-queue-items, .matching-compact-candidates { grid-template-columns: minmax(0, 1fr); }
  .matching-queue-filters { grid-template-columns: 1fr 1fr; }
  .matching-queue-filters .field:nth-child(3), .matching-queue-filters .button { grid-column: 1 / -1; }
  .matching-intake > summary span { display: block; margin: 8px 0 0; }
  .matching-ai-status { flex-direction: column; }
  .matching-detail { padding: 16px; }
}
@media (max-width: 800px) {
  .matching-form, .matching-candidate { padding: 18px 16px; }
  .matching-form-actions, .matching-context, .matching-result-summary { flex-direction: column; align-items: stretch; gap: 14px; }
  .matching-result-summary > .pill { align-self: flex-start; }
  .matching-candidate > header { gap: 10px; }
  .matching-score { min-width: 80px; }
  .matching-score strong { font-size: 23px; }
  .matching-rank { display: none; }
}

.matching-catalog-panel { margin: 18px 0; padding: 20px; background: #fff; border: 1px solid #dce6ec; border-radius: 10px; }
.matching-catalog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.matching-catalog-top h2 { margin: 0 0 7px; font-size: 15px; color: #344f61; }
.matching-catalog-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; }
.matching-catalog-controls .field { display: flex; flex: 1 1 240px; max-width: 420px; flex-direction: column; gap: 7px; }
.matching-catalog-status { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; font-size: 12px; color: #657b8a; }
.matching-catalog-progress:not(:empty) { margin-top: 14px; padding: 14px; background: #f2f7fa; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.matching-catalog-progress > .pill { margin-right: 9px; }
.matching-catalog-progress > small { display: block; overflow-wrap: anywhere; }
.matching-catalog-ids { display: block; font-size: 10px; line-height: 1.6; color: #7d909d; overflow-wrap: anywhere; }
.matching-catalog-stock { padding: 16px; margin: 14px 0; border: 1px solid #c8dfd2; border-radius: 8px; background: #f3faf6; }
.matching-catalog-stock > strong { color: #547b65; }
.matching-workflow-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.matching-workflow-card { background: #fff; border: 1px solid #dce6ec; border-radius: 10px; padding: 20px; text-align: left; color: #527083; display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.matching-workflow-card strong { font-size: 28px; font-weight: 700; color: #36566a; }
.matching-workflow-card.blue strong { color: #438eb1; }
.matching-workflow-card.green strong { color: #458868; }
.matching-workflow-card.amber strong { color: #af823c; }
.matching-workflow-card.selected, .matching-workflow-card:hover { border-color: #80adc1; background: #f4f9fc; }
.matching-workflow-card.selected { box-shadow: inset 0 3px #5898b5; }
.matching-channel-list { min-width: 0; background: #fff; border: 1px solid #dce6ec; border-radius: 10px; padding: 20px; }
.matching-channel-list .matching-queue-filters { display: grid; grid-template-columns: 170px 170px 170px 140px minmax(180px, 1fr) auto; align-items: end; gap: 12px; }
.matching-channel-list .matching-queue-filters .field, .matching-channel-list .matching-queue-filters .button { grid-column: auto; }
.matching-option-table { margin-top: 14px; }
.matching-option-table .data-table td { white-space: normal; }
.matching-product-cell { min-width: 245px; max-width: 440px; text-align: left; overflow-wrap: anywhere; }
.matching-product-cell .matching-product-open { text-align: left; padding: 0; font-size: 13px; line-height: 1.7; font-weight: 600; white-space: normal; }
.matching-product-cell a.matching-product-open { color: #087f83; text-decoration: underline; text-underline-offset: 3px; }
.matching-product-cell > p { margin: 7px 0; font-size: 12px; line-height: 1.6; color: #657e8d; }
.matching-account-cell, .matching-link-cell, .matching-proposal-cell { display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; min-width: 100px; }
.matching-account-cell small, .matching-link-cell small, .matching-proposal-cell small { font-size: 10px; line-height: 1.6; color: #7d909d; }
.matching-proposal-cell .matching-barcode { color: #5988a4; }
.matching-optional-settings { border: 1px solid #dfe7ec; border-radius: 10px; background: #fff; margin-top: 20px; }
.matching-optional-settings > summary { padding: 18px 22px; cursor: pointer; color: #607989; font-size: 13px; }
.inventory-source-details { margin: 0 0 16px; }
.inventory-source-details > summary { padding: 12px 18px; }
.inventory-source-details > .inventory-source-status { margin: 0; border: 0; border-top: 1px solid #e9eef1; border-radius: 0 0 10px 10px; }
.matching-settings-content { border-top: 1px solid #e9eef1; padding: 6px 22px 20px; }
.matching-settings-content > h3 { font-size: 13px; color: #48677a; margin: 20px 0 14px; }
.matching-settings-content .matching-ai-connection { margin: 14px 0 24px; }
.matching-settings-content .matching-intake { margin-bottom: 0; }
.drawer.matching-review-drawer { width: min(1180px, 94vw); }
.matching-proposal-notice { margin: 16px 0; padding: 16px; background: #eef6fc; border: 1px solid #cfe2ed; border-radius: 8px; font-size: 12px; line-height: 1.8; color: #52748a; }
.matching-proposal-notice p { margin: 8px 0; }
.matching-batch { margin: 18px 0; padding: 18px 20px; border: 1px solid #cbdfe9; border-radius: 10px; background: #f4f9fc; }
.matching-batch-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.matching-batch-toolbar p { margin: 0; line-height: 1.7; color: #587688; font-size: 12px; }
.matching-batch-progress { margin-top: 14px; }
.matching-batch-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.matching-batch-counts > div { background: #fff; border: 1px solid #dde8ee; border-radius: 7px; padding: 12px; color: #688191; font-size: 11px; }
.matching-batch-counts strong { display: block; margin-top: 6px; font-size: 21px; color: #3a637b; }
.matching-batch-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.matching-batch-progress > .help-text { margin: 8px 0; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .matching-batch-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .matching-review-drawer .matching-comparison-workspace { grid-template-columns: minmax(230px, .82fr) minmax(350px, 1.18fr); }
  .matching-review-drawer .matching-compact-candidates { grid-template-columns: 1fr; max-height: none; }
}
@media (max-width: 1400px) {
  .matching-channel-list .matching-queue-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .matching-channel-list .matching-queue-filters .field:nth-child(5) { grid-column: 1 / 4; }
}
@media (max-width: 900px) {
  .matching-workflow-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matching-channel-list .matching-queue-filters { grid-template-columns: 1fr 1fr; }
  .matching-channel-list .matching-queue-filters .field:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .matching-catalog-panel { padding: 16px; }
  .matching-catalog-top { flex-direction: column; }
  .matching-catalog-controls .field { max-width: none; flex-basis: 100%; }
}

/* Product-level catalog, with independent option pages inside an expanded row. */
.matching-products-table { min-width: 1080px; }
.matching-products-table > tbody > tr > td { vertical-align: top; }
.matching-products-table td small { display: block; margin-top: 5px; color: var(--muted, #64748b); }
.matching-products-table .matching-group-name { min-width: 280px; max-width: 430px; text-align: left; }
.matching-group-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.matching-product-code { text-decoration: underline; font-variant-numeric: tabular-nums; padding: 0; }
.matching-group-review { min-width: 150px; }
.matching-product-options-row[hidden] { display: none; }
.matching-product-options-row > td { padding: 18px !important; background: #f3f7fa; border-bottom: 2px solid #dbe5ec; }
.matching-product-options-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; text-align: left; }
.matching-product-options-row .table-wrap, .matching-product-options-row .table-scroll { background: #fff; }
.matching-product-options-row .matching-product-cell { min-width: 200px; max-width: 300px; }
.matching-group-reason { max-width: 250px; white-space: normal; }

/* List-first matching workspace; explanatory controls stay in details. */
#login-form [hidden] { display: none !important; }
.matching-list-first { padding: 20px; border-color: #e1e7ec; border-radius: 12px; }
.matching-list-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.matching-list-toolbar > .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; max-width: 360px; }
.matching-list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.matching-list-actions .button { white-space: normal; }
.matching-list-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; }
.matching-list-status .matching-catalog-status { margin: 8px 0; }
.matching-list-status .matching-collection-notices p { margin: 6px 0; }
.matching-collection-notices > :empty { display: none; }
.matching-list-status .matching-catalog-progress:not(:empty) { flex-basis: 100%; margin: 0 0 8px; }
.matching-list-first .matching-queue-heading { flex-wrap: wrap; margin-top: 12px; }
.matching-list-first .matching-queue-heading > p { margin: 0; }
.matching-list-tabs { margin-top: 10px; }
.matching-list-tabs > .help-text { display: inline-block; margin-bottom: 2px; }
.matching-settings-content details { margin-top: 14px; }
.matching-settings-content summary, .matching-advanced-filters summary, .matching-ai-history > summary { cursor: pointer; color: #436575; font-size: 12px; padding: 6px 0; }
.matching-collection-summary { margin-top: 12px; }
.matching-collection-summary .key-values { gap: 7px 10px; font-size: 12px; }
.matching-collection-summary dt { min-width: 0; }
.matching-collection-attention:empty { display: none; }
.matching-collection-details[open], .matching-new-options[open] { padding-top: 8px; border-top: 1px solid #e5edf1; }
.matching-batch-compact { margin: 0; padding: 0; border: 0; background: transparent; }
.matching-batch-compact > p { margin: 5px 0; font-size: 12px; color: #657b8a; }
.matching-batch-compact .matching-batch-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.matching-batch-compact .matching-batch-counts > div { padding: 8px; }
.matching-batch-compact .matching-batch-counts strong { font-size: 17px; }
.matching-channel-list .matching-queue-filters.matching-simple-filters { grid-template-columns: minmax(200px, 1fr) auto; gap: 12px; }
.matching-channel-list .matching-simple-filters > .field { grid-column: 1; }
.matching-channel-list .matching-simple-filters > .button { grid-column: 2; }
.matching-advanced-filters { grid-column: 1 / -1; }
.matching-advanced-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 10px 0 4px; }
.matching-channel-list .matching-advanced-fields .field { grid-column: auto; }
.matching-list-first .matching-workflow-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 8px 0 10px; padding: 5px; background: #f5f7f9; border: 1px solid #e5eaee; border-radius: 10px; }
.matching-list-first .matching-workflow-card { min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 18px; background: transparent; border: 1px solid transparent; border-radius: 7px; box-shadow: none; color: #5e6e7c; }
.matching-list-first .matching-workflow-card > span:first-child { font-size: 13px; font-weight: 600; line-height: 1.4; }
.matching-list-first .matching-workflow-card strong { color: #253746; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.matching-list-first .matching-workflow-card .matching-count-unit { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.matching-list-first .matching-workflow-card:hover { background: #eaf0f2; }
.matching-list-first .matching-workflow-card.selected { color: #087e71; background: #fff; border-color: #acd9d2; box-shadow: inset 0 -3px #129989; }
.matching-list-first .matching-workflow-card.selected strong { color: #087e71; }
.matching-list-first .matching-workflow-card:focus-visible { outline: 2px solid #087e71; outline-offset: 2px; }
.matching-list-first .matching-workflow-numbers { display: flex; flex-direction: column; gap: 4px; }
.matching-list-first .matching-workflow-numbers small { font-size: 12px; font-weight: 400; color: #697b89; font-variant-numeric: tabular-nums; }
.matching-channel-list .matching-product-count-help { margin: 0 0 8px; font-size: 12px; }
.matching-channel-list .matching-product-count-help[hidden] { display: none; }
/* Matching-only visual hierarchy; collection and review behavior is unchanged. */
.matching-list-first .matching-list-toolbar { gap: 16px; }
.matching-list-first .matching-list-toolbar > .field { flex-basis: 290px; max-width: 340px; }
.matching-list-first .field > span { color: #526574; font-size: 12px; font-weight: 600; }
.matching-list-first .matching-list-toolbar select,
.matching-list-first .matching-simple-filters input,
.matching-list-first .matching-simple-filters select { min-height: 40px; border: 1px solid #dbe3e8; border-radius: 7px; background: #fff; padding: 9px 12px; color: #344b5b; font-size: 13px; }
.matching-list-first .matching-list-actions { flex: 1; gap: 8px; }
.matching-list-first .matching-list-actions > .button:last-child { margin-left: auto; }
.matching-list-first .matching-list-actions .button,
.matching-list-first .matching-simple-filters > .button { min-height: 40px; padding: 9px 15px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.matching-list-first .matching-list-actions .button.primary { background: #0b897c; color: #fff; }
.matching-list-first .matching-list-actions .button.primary:hover:not(:disabled) { background: #08766b; }
.matching-list-first .matching-collection-actions .button.primary { background: #fff; color: #365467; border-color: #cfdae1; }
.matching-list-first .matching-collection-actions .button.primary:hover:not(:disabled) { background: #f0f6f5; }
.matching-list-first .matching-list-actions .button.outline { border-color: #cfdae1; color: #365467; }
.matching-list-first .matching-list-status { margin: 2px 0 8px; color: #526574; }
.matching-list-first .matching-catalog-status .pill { border-radius: 4px; }
.matching-list-first .matching-queue-filters.matching-simple-filters { grid-template-columns: minmax(200px, 600px) auto; justify-content: start; align-items: end; gap: 8px; margin: 0; padding: 12px; border: 1px solid #e9eef1; border-radius: 9px; background: #fafbfc; }
.matching-list-first .matching-simple-filters > .button { border-color: #dbe3e8; color: #365467; background: #fff; }
.matching-list-first .matching-advanced-filters summary { padding: 2px 0; }
.matching-list-first .matching-advanced-fields { padding: 12px 0 0; }
.matching-list-first .matching-list-tabs { margin-top: 16px; }
.matching-list-first .matching-list-tabs > .help-text { color: #536574; font-size: 12px; font-weight: 600; }
.matching-list-first .matching-list-tabs > .matching-product-count-help { color: #657784; font-size: 11px; font-weight: 400; }
.matching-list-first .matching-batch-compact { margin: 10px 0; padding: 6px 12px; border-left: 3px solid #dce9e6; background: #f8fafb; border-radius: 0 6px 6px 0; }
.matching-list-first .matching-batch-compact > p { margin: 0 0 3px; font-size: 12px; }
.matching-list-first .matching-ai-history > summary { padding: 3px 0; }
.matching-list-first .matching-queue-heading { gap: 8px 20px; margin-top: 16px; }
.matching-list-first .matching-queue-heading h2 { font-size: 16px; color: #263e50; }
.matching-list-first .matching-queue-heading > .help-text { font-size: 12px; color: #697c8a; }
.matching-list-first .matching-queue-heading + .help-text { margin: 6px 0 12px; color: #657784; font-size: 12px; }
.matching-list-first .matching-products { border: 1px solid #e4e9ed; border-radius: 8px; }
.matching-list-first .data-table thead th { padding: 14px 12px; background: #f5f7f9; color: #526574; font-size: 12px; font-weight: 600; border-bottom: 1px solid #dfe6eb; }
.matching-list-first .data-table td { padding: 17px 12px; font-size: 13px; color: #425766; line-height: 1.55; }
.matching-list-first .matching-product-group:hover > td { background: #f9fbfb; }
.matching-list-first .matching-group-name { width: 32%; min-width: 300px; max-width: 540px; }
.matching-list-first .matching-products-table > thead > tr > th:first-child { width: 32%; }
.matching-list-first .matching-group-name .matching-product-open { font-weight: 600; font-size: 14px; line-height: 1.6; color: #294c60; }
.matching-list-first .matching-group-name .matching-product-open:hover { color: #087e71; text-decoration: underline; }
.matching-list-first .matching-group-actions { margin-top: 10px; gap: 10px; }
.matching-list-first .matching-group-actions .button { border-radius: 5px; border-color: #d6e0e6; color: #4c697a; background: #fff; }
.matching-list-first .matching-group-actions .pill { padding: 0; border: 0; background: none; color: #6c7e8b; }
.matching-list-first .matching-product-code { font-size: 12px; color: #678392; text-decoration-color: #c4d3da; text-underline-offset: 3px; }
.matching-list-first .matching-product-code:hover { color: #087e71; }
.matching-list-first .matching-products-table td small { font-size: 11px; color: #657784; }
.matching-list-first .matching-products-table > tbody > .matching-product-group > td:last-child { min-width: 100px; max-width: 120px; font-size: 11px; color: #657784; font-variant-numeric: tabular-nums; }
.matching-list-first .pill { padding: 4px 7px; border-radius: 5px; font-size: 11px; }
.matching-list-first .pill.green { background: #edf8f4; border-color: #d9eee5; color: #3d826c; }
.matching-list-first .matching-product-options-row > td { padding: 20px !important; background: #f2f7f6; border-bottom: 1px solid #d6e6e1; }
.matching-list-first .matching-product-options-row .data-table { border: 1px solid #e0e9e5; }
.matching-list-first .matching-product-options-heading { color: #365c50; }
.matching-list-first .matching-product-options-heading > strong { font-size: 13px; }
.matching-list-first .matching-queue-pages { padding-top: 14px; margin-top: 0; font-size: 12px; }
.matching-list-first .matching-queue-pages .button { border: 1px solid #dce4e9; border-radius: 6px; min-height: 32px; padding: 6px 12px; color: #4b6575; }
.matching-list-first .button:focus-visible { outline: 2px solid #087e71; outline-offset: 2px; }

.quantity-review .tab-bar { flex-wrap: wrap; margin: 12px 0 18px; }
.quantity-review .matching-product-cell { display: grid; justify-items: start; gap: 3px; }
.quantity-detail, .quantity-decision { display: grid; gap: 14px; }
.quantity-detail > .pill { justify-self: start; }
.quantity-detail h3 { margin: 0; }
.quantity-decision { border-top: 1px solid #e4e9ed; padding-top: 18px; }
.quantity-decision fieldset { border: 0; margin: 0; padding: 0; }
.quantity-decision legend { margin-bottom: 10px; font-weight: 600; }
.quantity-choice, .quantity-acknowledgment { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.quantity-choice { margin-right: 22px; }
@media (max-width: 1180px) {
  .matching-advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matching-list-first .matching-workflow-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matching-list-first .matching-list-actions { flex-basis: 100%; }
  .matching-list-first .matching-list-toolbar > .field { max-width: none; }
}
@media (max-width: 560px) {
  .matching-list-first { padding: 14px; }
  .matching-list-first .matching-workflow-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matching-list-first .matching-workflow-card { padding: 12px; }
  .matching-list-first .matching-list-actions { align-items: stretch; }
  .matching-list-first .matching-list-actions > .button:last-child { margin-left: 0; }
  .matching-list-first .matching-queue-filters.matching-simple-filters { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .matching-list-toolbar > .field { max-width: none; }
  .matching-advanced-fields { grid-template-columns: 1fr; }
}
.matching-workflow-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid #dae3e8; border-radius: 10px; background: #f8fafb; margin: 0 0 16px; }
.matching-workflow-step { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.matching-workflow-step > small { color: #526472; font-size: 12px; }
.matching-workflow-step .button { white-space: normal; }
.matching-product-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.matching-product-tools .button { padding: 2px 0; color: #376777; font-size: 12px; }
.legacy-option-info .legacy-option-product { display: grid; gap: 4px; margin-bottom: 12px; }
.legacy-option-info small { display: block; color: var(--muted); }
.legacy-group-tabs, .legacy-option-actions, .legacy-option-search { display: flex; align-items: center; gap: 6px; }
.legacy-group-tabs { margin-bottom: 14px; }
.legacy-option-search { align-items: end; margin-bottom: 12px; }
.legacy-option-search .field { flex: 1; max-width: 400px; margin: 0; }
.legacy-options-table { min-width: 830px; }
.legacy-options-table .legacy-option-start > td { border-top: 1px solid var(--line, #dce3e7); }
.legacy-options-table td { vertical-align: middle; }
.legacy-options-table td > .badge { margin-right: 4px; }
.legacy-option-actions { margin-top: 4px; }
.legacy-add-part { font-size: 16px; min-width: 28px; }
.legacy-product-tools { margin-top: 16px; }
.legacy-product-tools > summary { cursor: pointer; color: var(--muted); }
.drawer.legacy-option-info { width: 80vw; max-width: none; }
.legacy-option-info .drawer-head { display: flex; align-items: center; justify-content: space-between; }
.legacy-option-info > .drawer-body { padding: 16px 22px; }
.legacy-options-table { min-width: 880px; }
.legacy-options-table th, .legacy-options-table td { text-align: center; }
.legacy-options-table td:nth-child(2), .legacy-options-table td:nth-child(3) { text-align: left; }
.legacy-part-qty { width: 56px; padding: 3px; text-align: center; border: 1px solid #aeb6be; border-radius: 3px; }
.legacy-remove-part { color: #ad302f; }
.legacy-options-table .legacy-add-part { display: block; margin: 6px 0 0 auto; min-width: 20px; padding: 0 5px; border-radius: 10px; color: #3c886a; }
.legacy-edit-flags small, .legacy-edit-flags label { display: block; color: #78530e; }
.legacy-sale-icon { font-size: 11px; color: #748792; }
.matching-list-first .legacy-product-table { min-width: 1340px; }
.matching-list-first .legacy-product-table > thead > tr > th:first-child { width: 28px; }
.matching-list-first .legacy-product-table > tbody > .matching-product-group > td:last-child { min-width: 45px; max-width: 45px; }
.matching-list-first .legacy-product-table .matching-group-name { min-width: 235px; max-width: 310px; }
.matching-list-first .legacy-product-table td, .matching-list-first .legacy-product-table th { text-align: center; vertical-align: middle; }
.matching-list-first .legacy-product-table .matching-group-name { text-align: left; }
.legacy-name-head, .legacy-safety, .legacy-per-page, .legacy-page-jump { display: flex; align-items: center; gap: 5px; }
.legacy-selected-count { white-space: nowrap; }
.legacy-selection-menu, .legacy-per-page select, .legacy-page-jump input { border: 1px solid #cad4da; border-radius: 4px; padding: 4px; background: white; }
.legacy-selection-menu { max-width: 125px; }
.legacy-per-page { margin-right: auto; color: var(--muted); }
.legacy-page-jump input { width: 85px; }
.legacy-page-index { background: #435a6c; color: white; padding: 4px 8px; }
.legacy-safety { justify-content: center; flex-wrap: wrap; }
.legacy-safety input { width: 65px; }
.legacy-product-log article { border-bottom: 1px solid var(--line,#dce3e7); padding: 8px 0; }

/* Channel mapping follows the search strip and table used by the sales team. */
@font-face {
  font-family:"ITSUS Channel Pretendard";
  src:url("./fonts/pretendard/Pretendard-Regular.subset.woff2") format("woff2");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
.cm-legacy-list,.page-heading:has(+.cm-legacy-list),.legacy-option-info,.channel-excel-upload {
  font-family:"ITSUS Channel Pretendard",Pretendard,"Malgun Gothic",sans-serif;
  letter-spacing:normal;
}
.page-heading:has(+.cm-legacy-list) h1 {font-size:20px;font-weight:500;line-height:24px;color:#32373c}
.page-heading:has(+.cm-legacy-list) .page-actions>.button.outline {width:115px;height:45px;background:transparent;color:#4d94c2;border:0;border-radius:0;font-size:13.33px;font-weight:600}
.cm-legacy-list {overflow:visible;background:transparent;border:0;padding:0;box-shadow:none}
.cm-search-row {display:grid;grid-template-columns:166px 146px minmax(120px,1fr) 120px 71px;
 align-items:center;gap:8px;padding:20px;background:#fff;border:1px solid #e1e5ea;border-radius:5px;position:relative;z-index:3}
.cm-search-row>.field {margin:0;min-width:0}
.cm-search-row>[hidden]{display:none!important}.cm-accounts .cm-floating label{display:block;padding:3px 0}
.cm-search-row>.field>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cm-search-row>.field input,.cm-search-row>.field select {width:100%;height:40px;border-color:#dadada;border-radius:4px 0 0 4px;font:inherit;font-size:13px;padding-left:12px}
.cm-pop,.cm-extra-tools,.cm-search-row .matching-advanced-filters {position:relative;grid-column:auto;min-width:0}
.cm-pop>summary,.cm-extra-tools>summary,.cm-search-row .matching-advanced-filters>summary {display:block;cursor:pointer;white-space:nowrap;
 padding:8px 12px;border:1px solid #d9dee4;border-radius:3px;background:white;color:#354557;font-size:13px;font-weight:500}
.cm-pop>summary:after,.cm-extra-tools>summary:after,.cm-search-row .matching-advanced-filters>summary:after {content:" ▾"}
.cm-search-row .matching-advanced-filters>summary,.cm-search-row .cm-pop>summary {height:40px;display:flex;align-items:center;justify-content:center;font-size:13.33px;font-weight:400;color:#32373c;border-color:#dadada}
.cm-search-row .cm-pop>summary:after,.cm-search-row .matching-advanced-filters>summary:after {margin-left:5px}
.cm-search-row .matching-advanced-filters {margin-left:-9px}
.cm-search-row .matching-advanced-filters>summary {border-radius:0 4px 4px 0}
.cm-floating {position:absolute;top:calc(100% + 5px);z-index:12;left:0;background:#fff;border:1px solid #d8dfe4;
 box-shadow:0 6px 22px #15273a20;border-radius:4px;padding:14px;min-width:280px;max-width:min(90vw,480px)}
.cm-search-row .matching-advanced-filters .cm-floating,.cm-extra-tools .cm-floating {left:auto;right:0}
.cm-floating .field {margin:3px 0}.cm-dates,.cm-chips,.cm-extra-tools .cm-floating {display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.cm-rule-box {display:grid;grid-template-columns:1fr 1fr auto;gap:6px;width:430px}
.cm-rule-box>.cm-chips,.cm-rule-box>small,.cm-rule-box>.action-cluster,.cm-rule-box>.cm-extra-filters {grid-column:1/-1}
.cm-extra-filters>details>summary {font-size:12px;color:#546676;cursor:pointer}
.cm-result-line {display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#5e6e7c;margin:5px 1px}
.cm-legacy-list .matching-workflow-counts {display:flex;align-items:stretch;overflow-x:auto;background:transparent;border:none;border-radius:0;padding:0;gap:0;margin:8px 0 0}
.cm-legacy-list .matching-workflow-card {display:inline-flex;align-items:center;flex-shrink:0;flex-direction:row;gap:5px;padding:4px 9px;box-shadow:none;border-radius:3px;border:0;background:transparent}
.cm-legacy-list .matching-workflow-card.selected {box-shadow:none;border:0;background:#edf5f5}
.cm-legacy-list .matching-workflow-card>span:first-child {font-size:12px}
.cm-legacy-list .matching-workflow-numbers {gap:0;line-height:1.2}
.cm-legacy-list .matching-workflow-card strong,.cm-legacy-list .matching-count-unit {font-size:12px}
.cm-legacy-list .matching-workflow-card small {font-size:10px}
.cm-legacy-list .legacy-product-table>thead>tr>th {height:42px;padding:0 8px;color:#000;background:#f8f8f8;font-weight:400;font-size:13px;line-height:16px;white-space:nowrap}
.cm-legacy-list .legacy-product-table>thead .button.text {margin:0;padding:0;min-height:24px;border:0;color:inherit;font:inherit}
.cm-legacy-list .legacy-product-table td {font-size:13px;padding:7px 8px;color:#32373c;line-height:16px}
.cm-legacy-list .matching-products,.cm-legacy-list .legacy-product-table {background:white;border-radius:3px}
.cm-status-tools .matching-settings-content {background:white}
.cm-legacy-list .matching-products {margin-top:28px}
.cm-legacy-list .legacy-product-table {table-layout:fixed;width:100%}
.cm-legacy-list .legacy-product-table thead th:nth-child(1) {width:2%}
.cm-legacy-list .legacy-product-table thead th:nth-child(2) {width:24%; text-align:left}
.cm-legacy-list .legacy-product-table thead th:nth-child(3),.cm-legacy-list .legacy-product-table thead th:nth-child(9) {width:10%}
.cm-legacy-list .legacy-product-table thead th:nth-child(4),.cm-legacy-list .legacy-product-table thead th:nth-child(7),
.cm-legacy-list .legacy-product-table thead th:nth-child(13) {width:5%}
.cm-legacy-list .legacy-product-table thead th:nth-child(5),.cm-legacy-list .legacy-product-table thead th:nth-child(8) {width:4%}
.cm-legacy-list .legacy-product-table thead th:nth-child(6) {width:6%}
.cm-legacy-list .legacy-product-table thead th:nth-child(10),.cm-legacy-list .legacy-product-table thead th:nth-child(11) {width:9%}
.cm-legacy-list .legacy-product-table thead th:nth-child(12) {width:7%}
.cm-legacy-list .legacy-product-table thead th:is(:nth-child(4),:nth-child(5),:nth-child(8),:nth-child(12)) {padding-inline:2px}
.cm-legacy-list .legacy-product-table thead .cm-header-trigger {
  display:inline-flex;align-items:center;gap:3px;max-width:100%;min-width:0;
  padding:0;border:0;background:transparent;color:#39424c;font-size:12px;white-space:nowrap;
}
.cm-legacy-list .legacy-product-table thead .cm-header-trigger:hover,
.cm-legacy-list .legacy-product-table thead .cm-header-trigger.is-active {color:#1d6486}
.cm-header-chevron {flex:none;color:#7f8b98;font-size:10px}
.cm-header-trigger.is-active .cm-header-chevron {color:currentColor}
.cm-header-filter-dot {flex:none;width:4px;height:4px;border-radius:50%;background:currentColor}
.cm-header-usage {flex:none;font-size:10px;font-weight:600}
.cm-legacy-list .legacy-name-head>.cm-header-trigger>.legacy-selected-count {overflow:hidden;text-overflow:ellipsis}
.cm-header-popover {box-sizing:border-box;min-width:0;width:min(216px,calc(100vw - 24px));padding:6px}
.cm-header-choices {display:grid}
.cm-header-choice {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:0;
  border-radius:4px;background:transparent;color:#39424c;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.cm-header-choice:hover,.cm-header-choice[aria-pressed=true] {background:#eef5f8;color:#1d6486}
.cm-header-choice[aria-pressed=true]::after {content:"✓"}
.cm-header-popover form {display:grid;gap:8px;padding:6px}
.cm-header-popover .cm-header-choices+form {border-top:1px solid #e4e8ec;margin-top:4px;padding-top:10px}
.cm-header-popover .action-cluster {justify-content:flex-end}
.cm-legacy-list .legacy-product-table .matching-group-name {max-width:none;min-width:0}
.cm-legacy-list .legacy-product-table>tbody>.matching-product-group>td.matching-group-name {padding-left:16px}
.cm-legacy-list .legacy-product-table>thead>tr>th:first-child,.cm-legacy-list .legacy-product-table>tbody>.matching-product-group>td:first-child {text-align:left}
.cm-legacy-list .legacy-product-table tbody tr.matching-product-group {height:80px}
.cm-product-name {display:flex;align-items:center;gap:10px}
.cm-product-name>div {min-width:0}
.cm-legacy-list .cm-product-name .matching-product-open {font-size:13px;font-weight:400;line-height:1.55}
.cm-legacy-list .cm-product-name .matching-product-toggle {font-size:0;flex:0 0 auto;min-width:34px;padding:3px 5px;background:#edfbf9;border:1px solid #c6e8e2;color:#138b7d;border-radius:3px}
.cm-product-name .matching-product-toggle:after {content:"옵션";font-size:12px}
.cm-product-name .matching-product-toggle[aria-expanded=true]:after {content:"접기"}
.cm-legacy-list .legacy-selected-count {white-space:nowrap}
.cm-legacy-list .legacy-name-head>[hidden] {display:none!important}
.cm-legacy-list .legacy-product-table .matching-product-group td:nth-child(8) small {display:none}
.cm-legacy-list .legacy-product-table .matching-product-group td:nth-child(8):hover small,
.cm-legacy-list .legacy-product-table .matching-product-group td:nth-child(8):focus-within small {display:block}
.cm-search-row>.button.primary {height:40px;border:0;border-radius:4px;background:#455d74;font-size:13px;font-weight:600;padding:0}
.page-heading:has(+.cm-legacy-list) .page-actions>.button.primary {height:42px;min-width:104px;border:0;border-radius:20px;background:#4d94c2;color:#fff;padding:0 15px;font-size:13.33px;font-weight:600}
.cm-review-content {padding:12px;background:white}
.cm-review-content>.matching-workflow-counts {margin-top:0}
.cm-option-head {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.cm-option-head .legacy-option-product {margin:0}
.cm-option-head .legacy-option-search {margin:0;flex-shrink:0}
.cm-option-head .legacy-option-search .field>span {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.cm-option-head .legacy-option-search input {width:185px}
.legacy-option-info .legacy-options-table {table-layout:fixed;width:100%}
.legacy-option-info .legacy-options-table thead th {height:67px;font-size:13px;font-weight:400;padding:10px 0;color:#32373c}
.legacy-option-info .legacy-option-start {height:82px}
.legacy-option-info .legacy-options-table td.legacy-part-code,
.legacy-option-info .legacy-options-table td.legacy-part-name,
.legacy-option-info .legacy-options-table td.legacy-channel-option-name {text-align:left;overflow-wrap:anywhere}
.legacy-option-info .legacy-channel-option-name strong {font-weight:500}
.legacy-option-info .legacy-channel-total {color:#5087ac;white-space:normal}
.legacy-option-info .legacy-part-qty {max-width:100%}
.legacy-options-table .legacy-option-start > td:first-child {white-space:nowrap;padding-inline:2px}
.legacy-options-table td:has(>.legacy-visibility-actions) {padding-inline:1px}
.legacy-visibility-actions {display:flex;flex-direction:column;gap:2px;align-items:center}
.legacy-visibility-actions .button {max-width:100%;min-width:0;padding:2px 1px;white-space:nowrap}
.legacy-visibility-actions .legacy-discontinue {white-space:normal;word-break:keep-all;line-height:1.2}
.cm-legacy-list input[type=checkbox],.legacy-options-table input[type=checkbox] {
  appearance:none;position:relative;box-sizing:border-box;width:20px;height:20px;margin:0;padding:0;border-radius:4px;
  border:1px solid #dadde4;background:white;vertical-align:middle;cursor:pointer;
}
.cm-legacy-list input[type=checkbox]:is(:checked,:indeterminate),.legacy-options-table input[type=checkbox]:is(:checked,:indeterminate) {background:#4d94c2;border-color:#4d94c2}
.cm-legacy-list input[type=checkbox]:checked:after,.legacy-options-table input[type=checkbox]:checked:after {content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
.cm-legacy-list input[type=checkbox]:indeterminate:after,.legacy-options-table input[type=checkbox]:indeterminate:after {content:"";position:absolute;left:4px;right:4px;top:8px;border-top:2px solid white}
.cm-legacy-list .legacy-product-table thead th:nth-child(3),
.cm-legacy-list .legacy-product-table tbody tr.matching-product-group td:nth-child(3) {text-align:left}
.cm-legacy-list .legacy-product-table .matching-product-code {color:#32373c;font:inherit;text-decoration:underline;padding:0}
.cm-legacy-list .cm-product-name>.cm-row-option {width:34px;height:24px;min-height:24px;flex:none;background:#effaf8;color:#3baf9d;border:1px solid #ccece8;border-radius:3px;padding:0;font:inherit}
.cm-list-product-title {font-size:13px;font-weight:400;line-height:17px}
.cm-list-product-title .legacy-sale-icon {color:#879095;text-decoration:none}
.cm-legacy-list .matching-queue-pages:has(.cm-page-numbers) {
  display:flex;align-items:center;gap:16px;height:76px;margin:0;padding:0 12px;background:#fff;border:1px solid #e4e9ed;border-top:0;
}
.cm-legacy-list .legacy-per-page {margin-right:auto;color:#969da2}
.cm-legacy-list .legacy-per-page select {width:85px;height:28px;padding:4px 10px;background:#fff;border:1px solid #dadde4;border-radius:14px;font:inherit}
.cm-page-numbers {display:flex;gap:3px}
.cm-page-numbers button,.legacy-page-jump button {min-width:32px;height:32px;font:inherit;border:0;background:white;color:#32373c}
.cm-page-numbers .legacy-page-index {background:#455d74;color:white}
.cm-legacy-list .legacy-page-jump {height:34px;gap:0;border:1px solid #dadde4;border-radius:4px;overflow:hidden}
.cm-legacy-list .legacy-page-jump input {width:78px;height:32px;padding:0 0 0 12px;border:0;border-radius:0;font:inherit}
.drawer.legacy-option-info>.drawer-body {padding:26px 20px}
.legacy-option-info .drawer-head h2,.channel-excel-upload .drawer-head h2 {color:#32373c;font-size:20px;font-weight:500;line-height:24px}
.legacy-option-info .drawer-head .button.primary {width:auto;min-width:122px;height:34px;padding:0 26px;background:#32373c;color:#fff;font-size:13px;font-weight:600;border:0;border-radius:30px}
.legacy-option-info .drawer-head .button.primary:disabled {opacity:1;cursor:default}
.legacy-option-info .cm-option-head {margin:0 0 20px}
.legacy-option-info .legacy-option-product strong {color:#000;font-size:16px;font-weight:400;line-height:19px}
.legacy-option-info .table-scroll:has(>.legacy-options-table) {margin:0 20px;overflow:visible}
.legacy-option-info .legacy-options-table td {height:auto;padding:7px 8px;font-size:13px;line-height:16px;color:#32373c}
.legacy-options-table th input[type=checkbox] {margin-right:9px}
.legacy-options-table .legacy-part-code,.legacy-options-table .legacy-part-name {vertical-align:top}
.legacy-options-table .legacy-part-identity {display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:9px;align-items:start}
.legacy-options-table .legacy-part-selection {display:block;width:20px;min-height:20px}
.legacy-options-table .legacy-part-code-content {min-width:0;padding-top:2px;white-space:normal;overflow-wrap:anywhere}
.legacy-options-table .legacy-part-code-content :is(.matching-product-code,.barcode-lines,.barcode-token) {max-width:100%;white-space:normal;overflow-wrap:anywhere}
.legacy-options-table .legacy-part-code-content .matching-product-code {min-height:0;border:0;line-height:inherit;text-align:left}
.legacy-options-table .legacy-part-code .matching-product-code {font:inherit;padding:0;color:inherit;text-decoration:underline}
.legacy-options-table .legacy-add-part {width:35px;height:35px;margin:2px auto 0;border:0;border-radius:0;background:transparent;font-size:0}
.legacy-options-table .legacy-add-part:after {content:"+";display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;color:white;background:#69ad81;font-size:15px}
.legacy-options-table .legacy-remove-part {padding:0;border:0;background:#ce5b51;color:white;font:bold 13px Arial;width:14px;height:14px;line-height:14px}
.legacy-options-table .legacy-part-qty {width:54px;height:20px;padding:0;max-width:100%;font:inherit;border:2px inset #bbb;border-radius:0}
.legacy-option-info .legacy-channel-option-name,.legacy-option-info .legacy-channel-option-name~td {background:#f9fafc;padding:18px 10px}
.legacy-option-info .legacy-options-table .legacy-needs-connection > td {background:#fff4f4}
.legacy-option-info .legacy-connection-label {margin-bottom:6px}
.legacy-option-info .legacy-set-component .legacy-part-code,.legacy-option-info .legacy-set-component .legacy-part-name {color:#4d88aa}
.legacy-option-info .legacy-set-component .legacy-part-name {padding-left:16px}
.legacy-option-info .legacy-set-parent,.legacy-option-info .legacy-set-component {height:auto}
.legacy-option-info .legacy-set-parent td,.legacy-option-info .legacy-set-component td {border-bottom:0}
.legacy-picker-anchor {display:block;width:0;height:0}
.legacy-part-picker {position:fixed;z-index:108;display:flex;flex-direction:column;width:min(900px,calc(100vw - 24px));max-height:420px;min-height:280px;padding:12px;box-sizing:border-box;border:1px solid #aeb9c4;border-radius:4px;background:#fff;box-shadow:0 5px 20px #0003;font-size:13px;font-weight:400;color:#32373c;text-align:left}
.legacy-picker-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
.legacy-picker-heading strong {font-size:15px;font-weight:500}
.legacy-picker-option {margin:4px 0 10px;color:#56616d;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.legacy-part-picker form {display:flex;align-items:center;gap:6px;flex-shrink:0;margin-bottom:8px}
.legacy-part-picker form input {min-width:0;flex:1;height:34px;border:1px solid #adb9c2;border-radius:3px;padding:0 8px;background:white;font:inherit}
.legacy-picker-results {flex:1;min-height:0;overflow:auto;border-top:1px solid #e3e6eb}
.legacy-picker-caption {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0}
.legacy-picker-caption small {color:#687685;font-size:11px}
.legacy-picker-results .legacy-part-results {width:100%;min-width:600px;table-layout:fixed;font:inherit}
.legacy-picker-results .legacy-part-results th,.legacy-picker-results .legacy-part-results td {height:auto;padding:7px 5px;text-align:left;vertical-align:middle;overflow-wrap:anywhere;background:#fff;line-height:1.45}
.legacy-picker-results .legacy-part-results th {position:sticky;top:0;background:#f7f8fa;font-weight:400}
.legacy-picker-results .legacy-part-results td small {display:block;color:#687685;font-size:11px;line-height:1.45;margin-top:3px}
.legacy-picker-results .legacy-part-results .button {padding:3px 5px;white-space:nowrap}
.legacy-picker-results .legacy-part-results .button:disabled {opacity:.4}
@media(max-height:480px){.legacy-part-picker{min-height:0}}
@media(max-width:640px){.legacy-picker-caption{display:block}.legacy-picker-caption small{display:block;margin-top:3px}.legacy-part-picker{padding:10px}.legacy-picker-option{max-height:40px;overflow:auto}}
.drawer.channel-excel-upload {width:35vw;max-width:none}
.channel-excel-upload>.drawer-body>p {font-size:14px;line-height:1.5;color:#32373c}
.channel-excel-upload>.drawer-body>label {display:flex;align-items:center;gap:16px;padding:14px;background:#f9fafc}
@media(min-width:801px){.main-content:has(.cm-legacy-list){padding-left:28px;padding-right:28px}}
/* The channel screen reserves a separate right gutter for the collection controls. */
@media(min-width:1181px){
 .main-content:has(.cm-legacy-list):not(:has(.cm-review-tools)){padding-top:28px;padding-right:36px}
 .page-heading:has(+.cm-legacy-list):not(:has(~.cm-review-tools)){margin-bottom:15px}
 .page-heading:has(+.cm-legacy-list):not(:has(~.cm-review-tools)) .page-actions{margin-right:10px;gap:22px}
}
@media(max-width:800px){.legacy-option-info .table-scroll:has(>.legacy-options-table){overflow:auto;margin:0}.drawer.channel-excel-upload{width:min(100vw,640px)}}
@media(max-width:720px){.cm-option-head{display:block}.cm-option-head .legacy-option-search{margin-top:6px}}
@media(max-width:800px){.cm-search-row{grid-template-columns:1fr 1fr;padding:10px}
 .cm-search-row>.field:nth-child(3){grid-column:1/-1}.cm-search-row .matching-advanced-filters .cm-floating{left:0;right:auto}
 .cm-floating{min-width:min(280px,80vw)}.cm-rule-box{display:flex;flex-direction:column;gap:6px}}
@media(max-width:768px) { .drawer.legacy-option-info { width:100vw; } .legacy-option-info > .drawer-body { padding: 10px; } }
.sales-draft-product { display: grid; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid #dae3e6; }
.sales-draft-product strong { font-size: 17px; }
.sales-draft-product small { color: #536b78; }
.sales-draft-product a { width: fit-content; color: #217368; }
.sales-draft-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.sales-draft-toolbar .field { flex: 1; }
.sales-option-drawer .drawer-footer { flex: none; flex-wrap: wrap; align-items: center; }
.sales-option-drawer .drawer-footer .form-error { flex: 1 0 100%; margin: 0; }
.sales-option-drawer .drawer-footer .form-error:empty { display: none; }
.sales-option-drawer .drawer-footer .form-error .button { margin-left: 5px; }
@media (max-width: 640px) {
  .sales-option-drawer .drawer-footer { gap: 5px; padding: 8px; }
  .sales-option-drawer .drawer-footer > .button { padding: 6px; font-size: 12px; }
}
.sales-draft-table td small { display: block; color: #627783; }
.sales-draft-table td:last-child { min-width: 80px; }
.sales-draft-form { padding: 14px; background: #f3f8f7; border: 1px solid #cbddd6; border-radius: 6px; margin-bottom: 12px; }
.sales-draft-form h3 { margin-top: 0; }
.sales-draft-fields { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sales-draft-diff { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid #ebeff1; flex-wrap: wrap; }
.sales-draft-diff > span:nth-child(2) { flex: 1; }
.sales-draft-diff small { display: block; color: #627783; }
@media (max-width: 1000px) { .matching-workflow-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .matching-workflow-actions { grid-template-columns: 1fr; } }
