/*
 * Desktop implementation for approved seller screens 37–42.
 * The selectors are intentionally scoped to .workspace-seller and
 * .s37-approved-* so the onboarding/login surfaces remain unchanged.
 */

:root {
  --s37-approved-sidebar: 208px;
  --s37-approved-header: 56px;
  --s37-approved-canvas: #06141d;
  --s37-approved-canvas-deep: #041119;
  --s37-approved-surface: rgba(8, 28, 38, 0.84);
  --s37-approved-surface-soft: rgba(11, 34, 45, 0.62);
  --s37-approved-surface-raised: rgba(13, 39, 50, 0.96);
  --s37-approved-border: rgba(54, 91, 102, 0.64);
  --s37-approved-border-soft: rgba(46, 78, 90, 0.48);
  --s37-approved-border-strong: rgba(79, 119, 129, 0.78);
  --s37-approved-primary: #50e2b4;
  --s37-approved-primary-soft: rgba(61, 218, 171, 0.12);
  --s37-approved-blue: #49a7ef;
  --s37-approved-yellow: #f2b81c;
  --s37-approved-orange: #f58a24;
  --s37-approved-red: #fb6156;
  --s37-approved-text: #f2f7f6;
  --s37-approved-muted: #a4b4b8;
  --s37-approved-subtle: #70858b;
  --s37-approved-radius: 5px;
}

/* -------------------------------------------------------------------------- */
/* Seller workspace shell                                                      */
/* -------------------------------------------------------------------------- */

.workspace-seller {
  grid-template-columns: var(--s37-approved-sidebar) minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 100%, rgba(11, 73, 92, 0.18), transparent 36%),
    linear-gradient(145deg, #06141d 0%, #04121a 68%, #061a24 100%);
  color: var(--s37-approved-text);
  transition: grid-template-columns 180ms ease;
}

.workspace-seller .workspace-sidebar {
  z-index: 32;
  height: 100vh;
  grid-template-rows: var(--s37-approved-header) minmax(0, 1fr) auto;
  border-right-color: var(--s37-approved-border);
  background:
    linear-gradient(180deg, rgba(7, 27, 37, 0.98), rgba(4, 20, 29, 0.98)),
    #061720;
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.08);
}

.workspace-seller .workspace-brand {
  min-height: var(--s37-approved-header);
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  align-content: center;
  gap: 10px;
  padding: 0 14px 0 18px;
  border-bottom-color: var(--s37-approved-border);
}

.workspace-seller .workspace-brand-name {
  overflow: hidden;
  color: var(--s37-approved-primary);
  font-size: 25px;
  font-weight: 880;
  letter-spacing: -1.15px;
  /* 위와 같은 이유 — 1 이면 글자가 잘립니다. */
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-seller .workspace-brand-role,
.workspace-seller .workspace-drawer-close {
  display: none;
}

.workspace-seller .workspace-sidebar-menu.button {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #dce7e7;
}

.workspace-seller .workspace-sidebar-menu.button > span {
  display: none;
}

.workspace-seller .workspace-sidebar-menu.button:hover,
.workspace-seller .workspace-sidebar-menu.button:focus-visible {
  border-color: var(--s37-approved-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--s37-approved-primary);
}

.workspace-seller .workspace-navigation {
  position: relative;
  gap: 0;
  padding: 49px 8px 18px;
}

.workspace-seller .workspace-navigation::before {
  position: absolute;
  top: 17px;
  left: 18px;
  content: "판매자 센터";
  color: #d5e1e2;
  font-size: 13px;
  font-weight: 760;
}

.workspace-seller .workspace-nav-group {
  gap: 1px;
}

.workspace-seller .workspace-nav-group + .workspace-nav-group {
  margin-top: 7px;
  padding-top: 7px;
  border-top-color: rgba(62, 96, 106, 0.52);
}

.workspace-seller .workspace-nav-group-label {
  display: none;
}

.workspace-seller .workspace-nav-link {
  min-height: 39px;
  gap: 12px;
  padding: 0 11px;
  border-radius: 4px;
  color: #d2dcdc;
  font-size: 14px;
  font-weight: 570;
  transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.workspace-seller .workspace-nav-link .workspace-icon {
  width: 18px;
  height: 18px;
  color: #dde6e7;
  stroke-width: 1.7;
}

.workspace-seller .workspace-nav-link:hover {
  background: rgba(69, 215, 174, 0.07);
  color: #fff;
}

.workspace-seller .workspace-nav-link[aria-current="page"] {
  background:
    linear-gradient(90deg, rgba(45, 206, 162, 0.18), rgba(45, 206, 162, 0.08)),
    rgba(14, 49, 56, 0.8);
  box-shadow: none;
  color: var(--s37-approved-primary);
}

.workspace-seller .workspace-nav-link[aria-current="page"] .workspace-icon {
  color: var(--s37-approved-primary);
}

.workspace-seller .workspace-sidebar-footer {
  min-height: 72px;
  margin: 10px 9px 14px;
  padding: 12px 11px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  border-color: var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(4, 18, 25, 0.24);
}

.workspace-seller .workspace-sidebar-footer > .workspace-icon {
  width: 19px;
  height: 19px;
  color: #d7e4e4;
}

.workspace-seller .workspace-sidebar-footer strong {
  color: #e7efef;
  font-size: 12px;
  font-weight: 650;
}

.workspace-seller .workspace-sidebar-footer span {
  color: #a0b1b5;
  font-size: 10px;
}

.workspace-seller .workspace-body {
  min-width: 0;
  background:
    radial-gradient(circle at 73% 100%, rgba(12, 79, 98, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(5, 20, 29, 0.97), rgba(4, 17, 25, 0.99));
}

.workspace-seller .workspace-topbar {
  min-height: var(--s37-approved-header);
  gap: 18px;
  padding: 0 22px 0 25px;
  border-bottom-color: var(--s37-approved-border);
  background: rgba(3, 16, 24, 0.96);
  backdrop-filter: blur(16px);
}

.workspace-seller .workspace-topbar-search {
  width: min(50vw, 575px);
  min-width: 330px;
}

.workspace-seller .workspace-topbar-search > .workspace-icon {
  left: auto;
  right: 13px;
  width: 18px;
  height: 18px;
  color: #e3eaea;
}

.workspace-seller .workspace-topbar-search .input {
  min-height: 36px;
  padding: 0 42px 0 13px;
  border-color: var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(4, 18, 26, 0.78);
  color: #d8e3e4;
  font-size: 12px;
}

.workspace-seller .workspace-topbar-actions {
  flex-wrap: nowrap;
  gap: 12px;
}

.workspace-seller .workspace-topbar-alert.button {
  min-height: 34px;
  gap: 7px;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: #dce6e7;
  font-size: 12px;
}

.workspace-seller .workspace-topbar-alert.button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--s37-approved-primary);
}

/* The legacy seller stylesheet drew a placeholder Gateway badge with ::before.
   The approved shell renders the real status badge as a DOM element. */
.workspace-seller .workspace-topbar-actions::before {
  display: none;
  content: none;
}

.workspace-seller .workspace-topbar-alert.button::after {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: var(--s37-approved-primary);
  color: #032117;
  content: "3";
  font-size: 9px;
  font-weight: 850;
}

.seller-topbar-gateway {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  color: #dde6e6;
  font-size: 11px;
  white-space: nowrap;
}

.seller-topbar-gateway > i,
.seller-topbar-gateway > svg {
  width: 7px;
  height: 7px;
  fill: var(--s37-approved-primary);
  color: var(--s37-approved-primary);
  stroke-width: 0;
}

.seller-topbar-gateway::after {
  padding-left: 3px;
  color: var(--s37-approved-primary);
  content: "정상";
}

.workspace-seller .workspace-profile {
  position: relative;
  padding-left: 12px;
  border-left: 1px solid var(--s37-approved-border);
}

.workspace-seller .workspace-profile-trigger {
  display: grid;
  min-width: 192px;
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--s37-approved-text);
  cursor: pointer;
  text-align: left;
}

.workspace-seller .workspace-profile-trigger:hover,
.workspace-seller .workspace-profile-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.035);
}

.workspace-seller .workspace-profile-trigger > .workspace-icon:first-child {
  width: 28px;
  height: 28px;
  color: #d9e5e5;
  stroke-width: 1.35;
}

.workspace-seller .workspace-profile-trigger > .workspace-icon:last-child {
  width: 15px;
  height: 15px;
  color: #d0dddd;
}

.workspace-seller .workspace-profile-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.workspace-seller .workspace-profile-name {
  overflow: hidden;
  color: #eef4f4;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-seller .workspace-profile-meta {
  color: #92a6aa;
  font-size: 10px;
}

.workspace-seller .workspace-profile-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 60;
  width: 170px;
  padding: 6px;
  border: 1px solid var(--s37-approved-border-strong);
  border-radius: 5px;
  background: #0a202a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.workspace-seller .workspace-profile-menu-item {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 4px;
  background: transparent;
  color: #dce5e5;
  cursor: pointer;
  font-size: 12px;
}

.workspace-seller .workspace-profile-menu-item:hover {
  background: rgba(75, 217, 176, 0.09);
  color: var(--s37-approved-primary);
}

.workspace-seller .workspace-main {
  width: 100%;
  max-width: none;
  gap: 15px;
  margin: 0;
  padding: 21px 24px 34px;
}

.workspace-seller.workspace-sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
}

.workspace-seller.workspace-sidebar-collapsed .workspace-brand {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.workspace-seller.workspace-sidebar-collapsed .workspace-brand-name,
.workspace-seller.workspace-sidebar-collapsed .workspace-navigation::before,
.workspace-seller.workspace-sidebar-collapsed .workspace-nav-link span,
.workspace-seller.workspace-sidebar-collapsed .workspace-sidebar-footer div {
  display: none;
}

.workspace-seller.workspace-sidebar-collapsed .workspace-sidebar-menu.button {
  display: inline-grid;
}

.workspace-seller.workspace-sidebar-collapsed .workspace-navigation {
  padding: 13px 7px;
}

.workspace-seller.workspace-sidebar-collapsed .workspace-nav-link {
  justify-content: center;
  padding: 0;
}

.workspace-seller.workspace-sidebar-collapsed .workspace-sidebar-footer {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 12px 0;
}

/* -------------------------------------------------------------------------- */
/* Shared approved page primitives                                             */
/* -------------------------------------------------------------------------- */

.s37-approved-page {
  display: grid;
  min-width: 0;
  gap: 15px;
  color: var(--s37-approved-text);
}

.s37-approved-page,
.s37-approved-page button,
.s37-approved-page input,
.s37-approved-page select,
.s37-approved-page textarea {
  font-family: var(--font-sans);
}

.s37-approved-page-heading {
  display: flex;
  min-width: 0;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.s37-approved-page-heading-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 16px;
}

.s37-approved-page-title {
  margin: 0;
  color: #f5f8f7;
  font-size: 25px;
  font-weight: 790;
  letter-spacing: -0.85px;
  line-height: 1.4;
}

.s37-approved-page-description,
.s37-approved-profile-intro {
  margin: 0;
  color: var(--s37-approved-muted);
  font-size: 12px;
  line-height: 1.6;
}

.s37-approved-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s37-approved-page .button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 730;
}

.s37-approved-page .button:not(.button-secondary) {
  border-color: rgba(72, 224, 179, 0.65);
  background: linear-gradient(180deg, #50dba9, #37be91);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.s37-approved-page .button:not(.button-secondary):hover {
  background: linear-gradient(180deg, #66e6ba, #42cca0);
}

.s37-approved-page .button-secondary {
  border-color: var(--s37-approved-border-strong);
  background: rgba(5, 20, 28, 0.8);
  color: #e7eded;
}

.s37-approved-page .button-secondary:hover {
  border-color: var(--s37-approved-primary);
  color: var(--s37-approved-primary);
}

.s37-approved-page .input {
  min-height: 36px;
  border-color: var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(4, 18, 26, 0.65);
  color: #e3eaea;
  font-size: 12px;
}

.s37-approved-page .input:focus {
  border-color: var(--s37-approved-primary);
  box-shadow: 0 0 0 2px rgba(74, 218, 177, 0.1);
}

.s37-approved-muted,
.s37-approved-field-help,
.s37-approved-note {
  color: var(--s37-approved-muted);
}

.s37-approved-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.s37-approved-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-tab {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #a5b4b7;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.s37-approved-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.s37-approved-tab[aria-selected="true"] {
  color: var(--s37-approved-primary);
}

.s37-approved-tab[aria-selected="true"]::after {
  background: var(--s37-approved-primary);
}

.s37-approved-tab-count {
  display: inline-grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgba(75, 217, 176, 0.45);
  border-radius: 999px;
  color: var(--s37-approved-primary);
  font-size: 10px;
  line-height: 1;
}

.s37-approved-icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(5, 20, 28, 0.72);
  color: #dce6e6;
  cursor: pointer;
}

.s37-approved-icon-button:hover:not(:disabled) {
  border-color: var(--s37-approved-primary);
  color: var(--s37-approved-primary);
}

.s37-approved-icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.s37-approved-icon-button > svg,
.s37-approved-icon-button > i {
  width: 17px;
  height: 17px;
}

.s37-approved-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.s37-approved-metric.workspace-kpi {
  position: relative;
  display: grid;
  min-height: 84px;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  align-content: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--s37-approved-border);
  border-radius: var(--s37-approved-radius);
  background: linear-gradient(145deg, rgba(10, 31, 41, 0.92), rgba(7, 25, 34, 0.72));
  color: var(--s37-approved-text);
}

.s37-approved-metric-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--s37-approved-border);
  border-radius: 5px;
  color: #e7eeee;
}

.s37-approved-metric-icon > i,
.s37-approved-metric-icon > svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.55;
}

.s37-approved-metric-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.s37-approved-metric-label {
  color: #a8b7ba;
  font-size: 11px;
  line-height: 1.3;
}

.s37-approved-metric-value {
  overflow: hidden;
  color: #f4f7f7;
  font-size: 25px;
  font-weight: 520;
  letter-spacing: -0.55px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-metric-note {
  color: var(--s37-approved-subtle);
  font-size: 9px;
}

.s37-approved-metric-arrow {
  width: 15px;
  height: 15px;
  color: #dce7e7;
}

.s37-approved-metric-warning .s37-approved-metric-icon,
.s37-approved-metric-warning .s37-approved-metric-label {
  color: var(--s37-approved-yellow);
}

.s37-approved-metric-healthy .s37-approved-metric-icon,
.s37-approved-metric-healthy .s37-approved-metric-value {
  color: var(--s37-approved-primary);
}

.s37-approved-metric-danger .s37-approved-metric-icon,
.s37-approved-metric-danger .s37-approved-metric-value {
  color: var(--s37-approved-red);
}

.s37-approved-table-wrap,
.s37-approved-table-panel,
.s37-approved-support-table-panel,
.s37-approved-settlement-table-wrap,
.s37-approved-review-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--s37-approved-border);
  border-radius: var(--s37-approved-radius);
  background: rgba(5, 22, 31, 0.42);
}

.s37-approved-page .workspace-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  table-layout: auto;
}

.s37-approved-page .workspace-table th,
.s37-approved-page .workspace-table td {
  height: 51px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
  color: #dbe5e5;
  font-size: 11px;
  vertical-align: middle;
}

.s37-approved-page .workspace-table th {
  height: 42px;
  background: rgba(7, 28, 38, 0.68);
  color: #9eafb3;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.s37-approved-page .workspace-table tbody tr {
  transition: background 120ms ease, box-shadow 120ms ease;
}

.s37-approved-page .workspace-table tbody tr:hover {
  background: rgba(48, 137, 139, 0.075);
}

.s37-approved-table-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  color: #9aadb0;
  font-size: 10px;
}

.s37-approved-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s37-approved-page-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: transparent;
  color: #aebec0;
  font-size: 10px;
}

.s37-approved-page-number.is-active {
  border-color: var(--s37-approved-primary);
  color: var(--s37-approved-primary);
}

.s37-approved-negative {
  color: var(--s37-approved-red) !important;
}

.s37-approved-net-amount {
  color: var(--s37-approved-primary) !important;
  font-weight: 650;
}

.s37-approved-compatibility-rail {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Screen 37 – customer messages                                               */
/* -------------------------------------------------------------------------- */

.s37-approved-messages-page {
  gap: 11px;
}

.s37-approved-messages-page .s37-approved-line-tabs {
  gap: 29px;
}

.s37-approved-messages-layout {
  display: grid;
  min-width: 0;
  min-height: calc(100vh - 177px);
  grid-template-columns: minmax(290px, 350px) minmax(430px, 1fr) minmax(295px, 340px);
  gap: 11px;
}

.s37-approved-messages-layout:not(.has-selection) {
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
}

.s37-approved-conversation-list,
.s37-approved-chat-panel,
.s37-approved-conversation-context {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(5, 22, 31, 0.35);
}

.s37-approved-conversation-list {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.s37-approved-conversation-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  padding: 9px 9px 7px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-search-control {
  position: relative;
}

.s37-approved-search-control > i,
.s37-approved-search-control > svg {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 15px;
  height: 15px;
  color: #9faeb1;
  transform: translateY(-50%);
  pointer-events: none;
}

.s37-approved-search-control .input {
  min-height: 31px;
  padding-right: 34px;
  font-size: 11px;
}

.s37-approved-conversation-search > .s37-approved-icon-button {
  width: 40px;
  min-width: 40px;
  height: 31px;
}

.s37-approved-conversation-filter-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-compact-select,
.s37-approved-header-select {
  min-height: 29px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: #071b25;
  color: #dce4e5;
  font-size: 10px;
}

.s37-approved-conversation-filter-row > span {
  color: #82969b;
  font-size: 10px;
}

.s37-approved-conversation-items {
  min-height: 0;
  margin: 0;
  padding: 0 8px;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--s37-approved-border-strong) transparent;
  scrollbar-width: thin;
}

.s37-approved-conversation-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 77px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 12px 9px;
  border: 0;
  border-bottom: 1px solid var(--s37-approved-border-soft);
  background: transparent;
  color: #dfe7e7;
  cursor: pointer;
  text-align: left;
}

.s37-approved-conversation-item:hover {
  background: rgba(47, 128, 132, 0.07);
}

.s37-approved-conversation-item.is-active {
  margin: 5px 0;
  border: 1px solid var(--s37-approved-primary);
  border-radius: 4px;
  background: linear-gradient(110deg, rgba(29, 119, 105, 0.22), rgba(9, 44, 49, 0.62));
}

.s37-approved-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(83, 132, 151, 0.82);
  border-radius: 999px;
  background: linear-gradient(145deg, #2f5c88, #18364e);
  color: #e8f0f1;
  font-size: 17px;
  font-weight: 450;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.22);
}

.s37-approved-avatar.is-small {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.s37-approved-conversation-item-copy,
.s37-approved-conversation-name-row {
  display: grid;
  min-width: 0;
}

.s37-approved-conversation-name-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 7px;
}

.s37-approved-conversation-name-row strong {
  overflow: hidden;
  color: #eaf0f0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-conversation-name-row time {
  color: #95a7aa;
  font-size: 9px;
}

.s37-approved-conversation-order,
.s37-approved-conversation-preview {
  overflow: hidden;
  color: #9caeb1;
  font-size: 10px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-conversation-preview {
  color: #c8d3d4;
}

.s37-approved-unread-badge {
  align-self: end;
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  background: var(--s37-approved-primary);
  color: #042219;
  font-size: 9px;
  font-weight: 850;
}

.s37-approved-conversation-list-footer {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid var(--s37-approved-border-soft);
  color: #9fb0b3;
  font-size: 10px;
}

.s37-approved-chat-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.s37-approved-chat-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-chat-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.s37-approved-chat-identity-copy {
  display: grid;
  min-width: 0;
}

.s37-approved-chat-identity-copy strong {
  color: #edf3f3;
  font-size: 13px;
}

.s37-approved-chat-identity-copy span {
  overflow: hidden;
  color: #a3b1b4;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-chat-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.s37-approved-message-list {
  min-height: 0;
  margin: 0;
  padding: 17px 18px 24px;
  overflow-y: auto;
  list-style: none;
  background:
    radial-gradient(circle at 60% 90%, rgba(8, 65, 78, 0.12), transparent 38%),
    rgba(4, 18, 27, 0.23);
}

.s37-approved-message-date {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 0 17px;
  color: #8fa1a5;
  font-size: 9px;
  text-align: center;
}

.s37-approved-message-date::before,
.s37-approved-message-date::after {
  height: 1px;
  flex: 1;
  background: var(--s37-approved-border-soft);
  content: "";
}

.s37-approved-message-date {
  border: 0;
}

.s37-approved-message {
  display: grid;
  justify-items: start;
  margin: 0 0 24px;
}

.s37-approved-message.is-own {
  justify-items: end;
}

.s37-approved-message-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #9baeb1;
  font-size: 9px;
}

.s37-approved-message-head strong {
  color: #dbe5e5;
  font-size: 10px;
}

.s37-approved-message-bubble {
  max-width: min(78%, 470px);
  padding: 12px 14px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 5px;
  background: rgba(25, 41, 47, 0.9);
  color: #e2e9e9;
  font-size: 11px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.s37-approved-message-bubble p {
  margin: 0;
}

.s37-approved-message.is-own .s37-approved-message-bubble {
  border-color: rgba(39, 136, 119, 0.72);
  background: linear-gradient(145deg, rgba(6, 77, 69, 0.78), rgba(4, 55, 55, 0.9));
}

.s37-approved-message-composer {
  display: grid;
  min-height: 126px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(65px, 1fr) auto;
  gap: 5px 8px;
  margin: 9px 12px 12px;
  padding: 10px 10px 7px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(7, 25, 34, 0.5);
}

.s37-approved-message-input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 62px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e2e9e9;
  font-size: 11px;
  line-height: 1.6;
}

.s37-approved-message-input::placeholder {
  color: #819397;
}

.s37-approved-composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.s37-approved-composer-tools .s37-approved-icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-color: transparent;
  background: transparent;
}

.s37-approved-composer-hint {
  align-self: center;
  justify-self: end;
  color: #7f9297;
  font-size: 8px;
}

.s37-approved-send-button {
  min-height: 29px !important;
  padding-inline: 14px !important;
}

.s37-approved-conversation-context {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  overflow-y: auto;
  border: 0;
  background: transparent;
}

.s37-approved-side-card,
.s37-approved-order-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(6, 24, 33, 0.45);
}

.s37-approved-side-card h3,
.s37-approved-order-card h3,
.s37-approved-side-card-title {
  margin: 0;
  color: #dce6e6;
  font-size: 11px;
  font-weight: 700;
}

.s37-approved-order-number {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--s37-approved-border-soft);
  border-radius: 3px;
}

.s37-approved-order-number > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9aabb0;
  font-size: 9px;
}

.s37-approved-order-number strong {
  color: #edf2f2;
  font-size: 11px;
}

.s37-approved-side-definition {
  color: #91a4a8;
  font-size: 9px;
}

.s37-approved-side-value {
  margin: -5px 0 0;
  color: #d7e0e0;
  font-size: 10px;
}

.s37-approved-product-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.s37-approved-product-media {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--s37-approved-border-soft);
  border-radius: 3px;
  background: #d8d8d2;
  color: #2f4147;
}

.s37-approved-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s37-approved-product-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.s37-approved-product-copy strong {
  overflow: hidden;
  color: #e8eeee;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-product-copy span {
  color: #9caeb1;
  font-size: 9px;
}

.s37-approved-product-row .button {
  min-height: 29px;
  padding-inline: 8px;
  border-color: var(--s37-approved-border-strong) !important;
  background: transparent !important;
  color: #d9e3e3 !important;
  font-size: 9px;
}

.s37-approved-device-row {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--s37-approved-border-soft);
  border-radius: 3px;
  color: #cfd9da;
  font-size: 10px;
}

.s37-approved-safety-card {
  margin-top: 1px;
  padding: 16px;
}

.s37-approved-safety-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s37-approved-safety-title > i,
.s37-approved-safety-title > svg {
  width: 24px;
  height: 24px;
  color: var(--s37-approved-primary);
}

.s37-approved-safety-card p {
  margin: 0;
  color: #a7b6b9;
  font-size: 9px;
  line-height: 1.7;
}

.s37-approved-outline-primary.button-secondary {
  border-color: var(--s37-approved-primary) !important;
  color: var(--s37-approved-primary) !important;
}

.s37-approved-conversation-placeholder {
  min-height: 520px;
  grid-column: 2 / -1;
  border-color: var(--s37-approved-border);
  background:
    radial-gradient(circle at 50% 48%, rgba(40, 172, 145, 0.08), transparent 28%),
    rgba(5, 22, 31, 0.26);
}

/* -------------------------------------------------------------------------- */
/* Screen 38 – reviews                                                         */
/* -------------------------------------------------------------------------- */

.s37-approved-reviews-page {
  gap: 18px;
}

.s37-approved-review-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--s37-approved-border);
  border-radius: var(--s37-approved-radius);
  background: rgba(5, 22, 31, 0.38);
}

.s37-approved-table-panel-tools {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 13px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-review-panel .s37-approved-tabs {
  align-self: stretch;
  gap: 23px;
  border-bottom: 0;
}

.s37-approved-review-panel .s37-approved-tab {
  min-height: 42px;
  font-size: 10px;
}

.s37-approved-review-panel .s37-approved-tabs {
  flex: 0 0 auto;
}

.s37-approved-review-panel .s37-approved-compact-select {
  width: 145px;
  min-width: 145px;
  flex: 0 0 145px;
}

.s37-approved-review-table-wrap {
  border: 0;
  border-radius: 0;
}

.s37-approved-review-table {
  min-width: 1010px;
}

.s37-approved-review-table th:nth-child(1),
.s37-approved-review-table td:nth-child(1) { width: 115px; }
.s37-approved-review-table th:nth-child(2),
.s37-approved-review-table td:nth-child(2) { width: 115px; }
.s37-approved-review-table th:nth-child(3),
.s37-approved-review-table td:nth-child(3) { width: 210px; }
.s37-approved-review-table th:nth-child(4),
.s37-approved-review-table td:nth-child(4) { width: 160px; }
.s37-approved-review-table th:nth-child(5),
.s37-approved-review-table td:nth-child(5) { width: 135px; }
.s37-approved-review-table th:nth-child(7),
.s37-approved-review-table td:nth-child(7) { width: 130px; }

.s37-approved-review-buyer,
.s37-approved-review-product,
.s37-approved-review-status {
  display: grid;
  gap: 1px;
}

.s37-approved-review-buyer strong,
.s37-approved-review-product strong {
  overflow: hidden;
  color: #e1e9e9;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-review-buyer span,
.s37-approved-review-product span,
.s37-approved-review-status span {
  color: #8fa2a6;
  font-size: 9px;
}

.s37-approved-stars {
  color: var(--s37-approved-yellow);
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.s37-approved-review-content {
  max-width: 320px;
  color: #cbd6d7;
  font-size: 10px;
  line-height: 1.65;
}

.s37-approved-review-status strong {
  color: var(--s37-approved-primary);
  font-size: 10px;
}

.s37-approved-review-row {
  cursor: pointer;
}

.s37-approved-review-row.is-selected > td {
  border-top: 1px solid var(--s37-approved-primary);
  border-bottom: 0;
  background: rgba(23, 88, 78, 0.12);
}

.s37-approved-review-row.is-selected > td:first-child {
  border-left: 1px solid var(--s37-approved-primary);
}

.s37-approved-review-row.is-selected > td:last-child {
  border-right: 1px solid var(--s37-approved-primary);
}

.s37-approved-report-button {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 3px;
  background: transparent;
  color: #b8c5c7;
  cursor: pointer;
  font-size: 9px;
}

.s37-approved-review-editor-row > td {
  padding: 0 !important;
  border-right: 1px solid var(--s37-approved-primary);
  border-bottom: 1px solid var(--s37-approved-primary) !important;
  border-left: 1px solid var(--s37-approved-primary);
  background: rgba(18, 66, 62, 0.12);
}

.s37-approved-review-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 14px 20px 13px;
}

.s37-approved-review-editor-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: #dce5e5;
  font-size: 10px;
}

.s37-approved-review-editor-heading span {
  color: #95a7aa;
  font-size: 9px;
}

.s37-approved-review-textarea {
  grid-column: 1 / -1;
  min-height: 82px !important;
  padding: 10px 12px !important;
  resize: vertical;
  line-height: 1.6;
}

.s37-approved-review-counter {
  align-self: center;
  justify-self: end;
  color: #95a6aa;
  font-size: 9px;
}

.s37-approved-review-editor-actions {
  display: flex;
  justify-content: end;
  gap: 9px;
}

/* -------------------------------------------------------------------------- */
/* Screen 39 – settlements                                                     */
/* -------------------------------------------------------------------------- */

.s37-approved-settlements-page {
  gap: 18px;
}

.s37-approved-settlements-page > .s37-approved-page-heading {
  padding-right: 305px;
}

.s37-approved-header-select {
  min-width: 80px;
}

.s37-approved-settlements-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 18px;
}

.s37-approved-settlements-main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
}

.s37-approved-settlement-account-bar {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 16px;
  border: 1px solid var(--s37-approved-border);
  border-radius: var(--s37-approved-radius);
  background: rgba(6, 25, 34, 0.42);
}

.s37-approved-settlement-period-control,
.s37-approved-settlement-payout-account {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #a1b2b5;
  font-size: 10px;
}

.s37-approved-settlement-period-control > strong,
.s37-approved-settlement-payout-account > strong {
  color: #e0e7e7;
  font-size: 11px;
  white-space: nowrap;
}

.s37-approved-settlement-period-control > span,
.s37-approved-settlement-payout-account > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-settlement-period-control .s37-approved-icon-button,
.s37-approved-settlement-payout-account .s37-approved-icon-button {
  width: 29px;
  min-width: 29px;
  height: 29px;
}

.s37-approved-settlement-table {
  min-width: 870px;
}

.s37-approved-settlement-row {
  cursor: pointer;
}

.s37-approved-settlement-row:hover {
  background: rgba(39, 126, 120, 0.09) !important;
}

.s37-approved-settlement-manage {
  width: 35px;
  text-align: center !important;
}

.s37-approved-settlement-manage > i,
.s37-approved-settlement-manage > svg {
  width: 15px;
  height: 15px;
}

.s37-approved-fee-cell {
  position: relative;
  white-space: nowrap;
}

.s37-approved-fee-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: help;
  font-size: inherit;
}

.s37-approved-fee-button > i,
.s37-approved-fee-button > svg {
  width: 12px;
  height: 12px;
}

.s37-approved-fee-popover {
  position: absolute;
  top: calc(50% + 16px);
  left: -20px;
  z-index: 10;
  display: none;
  width: 190px;
  padding: 12px;
  border: 1px solid var(--s37-approved-border-strong);
  border-radius: 4px;
  background: #071e28;
  color: #aebfc1;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
  font-size: 9px;
  line-height: 1.65;
  white-space: normal;
}

.s37-approved-fee-button:hover + .s37-approved-fee-popover,
.s37-approved-fee-button:focus-visible + .s37-approved-fee-popover {
  display: block;
}

.s37-approved-settlement-note {
  margin: 0;
  padding-left: 4px;
  color: #9dafb2;
  font-size: 9px;
}

.s37-approved-settlement-note::before {
  margin-right: 7px;
  content: "•";
}

.s37-approved-settlement-guide {
  align-self: start;
  position: sticky;
  top: calc(var(--s37-approved-header) + 18px);
  display: grid;
  gap: 0;
  padding: 16px;
  border: 1px solid var(--s37-approved-border);
  border-radius: var(--s37-approved-radius);
  background: rgba(6, 25, 34, 0.55);
}

.s37-approved-settlement-guide > h2 {
  margin: 0 0 8px;
  color: #e5ecec;
  font-size: 13px;
}

.s37-approved-guide-section {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-guide-section:first-of-type {
  border-top: 0;
}

.s37-approved-guide-section h3 {
  margin: 0;
  color: #dbe5e5;
  font-size: 11px;
}

.s37-approved-guide-section p,
.s37-approved-guide-section li {
  margin: 0;
  color: #a5b5b8;
  font-size: 9px;
  line-height: 1.8;
}

.s37-approved-guide-section ul {
  margin: 0;
  padding-left: 16px;
}

.s37-approved-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s37-approved-guide-title > i,
.s37-approved-guide-title > svg {
  width: 18px;
  height: 18px;
  color: #dce7e7;
}

.s37-approved-guide-title h2,
.s37-approved-guide-title h3 {
  margin: 0;
  color: #e5ecec;
  font-size: 12px;
}

.s37-approved-guide-status {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.s37-approved-guide-status > .workspace-status {
  justify-self: start;
}

.s37-approved-guide-status > span:last-child {
  color: #9fb0b3;
  font-size: 9px;
  line-height: 1.55;
}

.s37-approved-status-marker {
  display: grid;
  grid-template-columns: 9px 58px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #9fb0b3;
  font-size: 9px;
}

.s37-approved-status-marker::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--s37-approved-primary);
  content: "";
}

.s37-approved-guide-help {
  display: grid;
  gap: 5px;
  padding-top: 13px;
  border-top: 1px solid var(--s37-approved-border-soft);
  color: #a8b7ba;
  font-size: 9px;
}

.s37-approved-guide-link {
  border: 0;
  background: transparent;
  color: #65b9ef;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

/* -------------------------------------------------------------------------- */
/* Screen 40 – settlement detail                                               */
/* -------------------------------------------------------------------------- */

.s37-approved-settlement-detail-page {
  gap: 12px;
}

.s37-approved-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #97aaad;
  font-size: 9px;
}

/* 빵부스러기 안의 <button> 에 배경 초기화가 없어서 브라우저 기본값
   (다크 color-scheme 의 ButtonFace = rgb(107,107,107))이 그대로 나왔습니다.
   어두운 화면에 회색 상자가 박히고, 그 위 9px 글자의 대비가 2.2:1 이었습니다.
   글자 버튼으로 되돌립니다. */
.s37-approved-breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.s37-approved-breadcrumb button:hover {
  color: var(--s37-approved-primary, #55dcb5);
  text-decoration: underline;
}

.s37-approved-detail-heading {
  display: grid;
  gap: 8px;
}

.s37-approved-detail-heading h1 {
  margin: 0;
  color: #f3f7f6;
  font-size: 25px;
  letter-spacing: -0.8px;
}

.s37-approved-detail-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s37-approved-detail-id-row strong {
  color: #e6eded;
  font-size: 19px;
  font-weight: 430;
}

.s37-approved-detail-heading > p {
  margin: 0;
  color: #9bacae;
  font-size: 10px;
}

.s37-approved-detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.s37-approved-detail-metrics .s37-approved-metric.workspace-kpi {
  min-height: 79px;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 13px 14px;
}

.s37-approved-detail-metrics .s37-approved-metric-icon,
.s37-approved-detail-metrics .s37-approved-metric-arrow {
  display: none;
}

.s37-approved-detail-metrics .s37-approved-metric-value {
  font-size: 23px;
}

.s37-approved-settlement-detail-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
}

.s37-approved-settlement-detail-main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.s37-approved-detail-section,
.s37-approved-activity-section,
.s37-approved-detail-rail-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--s37-approved-border);
  border-radius: var(--s37-approved-radius);
  background: rgba(6, 25, 34, 0.44);
}

/* 활동 섹션만 안쪽 표가 min-width: 760px 입니다.
   위 규칙의 overflow: hidden 은 라운드 클리핑용인데, 그 탓에 모바일(창 335px)에서
   표의 425px 이 보이지도 스크롤되지도 않았습니다.
   overflow-x: auto 도 클리핑을 만들므로 라운드는 그대로 유지됩니다. */
.s37-approved-activity-section {
  overflow-x: auto;
  overflow-y: hidden;
}

.s37-approved-section-heading {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
}

.s37-approved-section-heading h2 {
  margin: 0;
  color: #e3eaea;
  font-size: 11px;
}

.s37-approved-section-heading span {
  color: #9badaf;
  font-size: 9px;
}

.s37-approved-detail-orders-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-detail-orders-table {
  min-width: 850px;
}

.s37-approved-detail-order-product {
  display: grid;
  gap: 1px;
}

.s37-approved-detail-order-product strong {
  color: #e4ebeb;
  font-size: 10px;
}

.s37-approved-detail-order-product span {
  color: #91a4a7;
  font-size: 8px;
}

.s37-approved-detail-table-footer {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-top: 1px solid var(--s37-approved-border-soft);
  color: #9eafb2;
  font-size: 9px;
}

.s37-approved-activity-table {
  min-width: 760px;
}

.s37-approved-settlement-detail-rail {
  display: grid;
  align-content: start;
  gap: 9px;
}

.s37-approved-detail-rail-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.s37-approved-detail-rail-card h2,
.s37-approved-detail-rail-card h3 {
  margin: 0;
  color: #e4ebeb;
  font-size: 11px;
}

.s37-approved-detail-rail-card p,
.s37-approved-detail-rail-card li {
  margin: 0;
  color: #a1b2b4;
  font-size: 9px;
  line-height: 1.7;
}

.s37-approved-bank-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e3eaea;
  font-size: 11px;
  font-weight: 700;
}

.s37-approved-bank-name > i,
.s37-approved-bank-name > svg {
  width: 20px;
  height: 20px;
  color: #8ca0a4;
}

.s37-approved-status-timeline {
  display: grid;
  gap: 0;
}

.s37-approved-status-step {
  position: relative;
  display: grid;
  min-height: 49px;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 7px;
}

.s37-approved-status-step:not(:last-child)::after {
  position: absolute;
  top: 21px;
  bottom: -2px;
  left: 10px;
  width: 1px;
  background: var(--s37-approved-border-strong);
  content: "";
}

.s37-approved-status-step > i,
.s37-approved-status-step > svg {
  z-index: 1;
  width: 21px;
  height: 21px;
  padding: 4px;
  border-radius: 999px;
  background: #0a2a34;
  color: var(--s37-approved-yellow);
}

.s37-approved-status-step.is-complete > i,
.s37-approved-status-step.is-complete > svg {
  background: var(--s37-approved-primary);
  color: #042119;
}

.s37-approved-status-step > div {
  display: grid;
  gap: 1px;
}

.s37-approved-status-step strong {
  color: #dfe7e7;
  font-size: 10px;
}

.s37-approved-status-step.is-complete strong {
  color: var(--s37-approved-primary);
}

.s37-approved-status-step span {
  color: #91a4a7;
  font-size: 8px;
}

.s37-approved-detail-rail-actions {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.s37-approved-detail-rail-actions .button {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Screen 41 – platform support                                                */
/* -------------------------------------------------------------------------- */

.s37-approved-support-page {
  gap: 14px;
}

.s37-approved-support-page .s37-approved-page-heading {
  align-items: center;
}

.s37-approved-segmented-tabs {
  width: max-content;
  gap: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(15, 48, 60, 0.62);
}

.s37-approved-segmented-tabs .s37-approved-tab {
  min-width: 88px;
  min-height: 39px;
  justify-content: center;
  padding: 0 14px;
  border-right: 1px solid var(--s37-approved-border-soft);
  color: #c3d0d1;
}

.s37-approved-segmented-tabs .s37-approved-tab:last-child {
  border-right: 0;
}

.s37-approved-segmented-tabs .s37-approved-tab::after {
  display: none;
}

.s37-approved-segmented-tabs .s37-approved-tab[aria-selected="true"] {
  border: 1px solid var(--s37-approved-primary);
  border-radius: 4px;
  background: rgba(32, 115, 101, 0.17);
  color: var(--s37-approved-primary);
}

.s37-approved-segmented-tabs .s37-approved-tab-count {
  display: none;
}

.s37-approved-support-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.s37-approved-support-page.has-detail .s37-approved-support-layout {
  grid-template-columns: minmax(720px, 1fr) 415px;
}

/* 안쪽 표가 min-width: 890px 인데 이 상자는 overflow: hidden 이었습니다.
   모바일(창 350px)에서 540px 이 보이지도, 스크롤되지도 않았습니다.
   가로만 스크롤을 열고 스크롤 섀도로 더 있다는 걸 알립니다. */
.s37-approved-support-table-panel {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background:
    linear-gradient(90deg, var(--color-surface) 40%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(90deg, transparent, var(--color-surface) 60%) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.42), transparent) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.42), transparent) right center / 16px 100% no-repeat scroll,
    var(--color-surface);
}

.s37-approved-support-table {
  min-width: 890px;
}

.s37-approved-support-table th:first-child,
.s37-approved-support-table td:first-child {
  width: 39px;
  padding-inline: 11px;
}

.s37-approved-support-table th:last-child,
.s37-approved-support-table td:last-child {
  width: 38px;
  padding-inline: 8px;
}

.s37-approved-support-row {
  cursor: pointer;
}

.s37-approved-support-row.is-selected > td {
  border-top: 1px solid var(--s37-approved-primary);
  border-bottom: 1px solid var(--s37-approved-primary) !important;
  background: rgba(28, 113, 99, 0.15);
}

.s37-approved-support-row.is-selected > td:first-child {
  border-left: 1px solid var(--s37-approved-primary);
}

.s37-approved-support-row.is-selected > td:last-child {
  border-right: 1px solid var(--s37-approved-primary);
}

.s37-approved-checkbox {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--s37-approved-border-strong);
  border-radius: 3px;
  background: rgba(5, 19, 27, 0.55);
}

.s37-approved-checkbox.is-checked {
  border-color: var(--s37-approved-primary);
  background: var(--s37-approved-primary);
}

.s37-approved-checkbox.is-checked::after {
  color: #032017;
  content: "✓";
  font-size: 11px;
  font-weight: 850;
}

.s37-approved-support-subject {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-support-recent,
.s37-approved-support-created {
  display: table-cell;
}

.s37-approved-support-recent > strong,
.s37-approved-support-recent > span,
.s37-approved-support-created > span {
  display: block;
}

.s37-approved-support-recent > span,
.s37-approved-support-created > span:last-child {
  color: #8ea2a6;
  font-size: 9px;
}

.s37-approved-support-manage {
  text-align: center !important;
}

.s37-approved-support-manage > i,
.s37-approved-support-manage > svg {
  width: 15px;
  height: 15px;
}

.s37-approved-support-detail {
  align-self: start;
  display: grid;
  gap: 0;
  min-width: 0;
  max-height: calc(100vh - var(--s37-approved-header) - 42px);
  overflow-y: auto;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(6, 25, 34, 0.7);
  scrollbar-color: var(--s37-approved-border-strong) transparent;
  scrollbar-width: thin;
}

.s37-approved-support-detail-header {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-support-detail-header > strong {
  overflow: hidden;
  color: #e6eded;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-support-meta {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-support-meta dt,
.s37-approved-support-meta dd {
  margin: 0;
  font-size: 9px;
}

.s37-approved-support-meta dt {
  color: #8fa3a7;
}

.s37-approved-support-meta dd {
  color: #cdd8d9;
}

.s37-approved-support-detail-section {
  display: grid;
  gap: 9px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-support-detail-section h3,
.s37-approved-support-section-heading h3 {
  margin: 0;
  color: #e0e8e8;
  font-size: 11px;
}

.s37-approved-support-question {
  padding: 12px;
  border: 1px solid var(--s37-approved-border-soft);
  border-radius: 4px;
  background: rgba(9, 31, 40, 0.55);
  color: #c5d1d2;
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.s37-approved-support-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.s37-approved-support-section-heading span {
  color: #90a4a8;
  font-size: 9px;
}

.s37-approved-support-response-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--s37-approved-border-soft);
  border-radius: 4px;
  background: rgba(7, 27, 36, 0.5);
}

.s37-approved-support-response-head {
  display: grid;
  grid-template-columns: 18px auto auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: #cfd9da;
  font-size: 9px;
}

.s37-approved-support-response-head > i,
.s37-approved-support-response-head > svg {
  width: 17px;
  height: 17px;
}

.s37-approved-support-response-head time {
  justify-self: end;
  color: #84999d;
  font-size: 8px;
}

.s37-approved-support-response-card p {
  margin: 0;
  color: #c3d0d1;
  font-size: 9px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.s37-approved-support-files {
  display: grid;
  gap: 7px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--s37-approved-border-soft);
  color: var(--s37-approved-primary);
  font-size: 9px;
}

.s37-approved-support-file {
  min-height: 38px;
  padding: 10px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 3px;
  color: #cbd7d8;
  font-size: 9px;
}

.s37-approved-support-detail > .s37-approved-message-composer.is-compact {
  min-height: 126px;
  margin: 13px 15px 15px;
}

.s37-approved-message-composer.is-compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.s37-approved-message-composer.is-compact .s37-approved-message-input {
  grid-column: 1 / -1;
}

.s37-approved-message-composer.is-compact .s37-approved-composer-tools,
.s37-approved-message-composer.is-compact .s37-approved-composer-hint {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Screen 42 – seller profile                                                  */
/* -------------------------------------------------------------------------- */

.s37-approved-profile-page {
  gap: 14px;
}

.s37-approved-profile-tabs {
  display: flex;
  gap: 33px;
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-profile-tab {
  position: relative;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #acbabc;
  cursor: pointer;
  font-size: 12px;
}

.s37-approved-profile-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.s37-approved-profile-tab[aria-selected="true"] {
  color: var(--s37-approved-primary);
}

.s37-approved-profile-tab[aria-selected="true"]::after {
  background: var(--s37-approved-primary);
}

.s37-approved-profile-tab:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.s37-approved-profile-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(480px, 1.43fr) minmax(285px, 0.82fr) minmax(285px, 0.82fr);
  gap: 12px;
  align-items: start;
}

.s37-approved-profile-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(6, 24, 33, 0.48);
}

.s37-approved-profile-card-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
}

.s37-approved-profile-card-heading h2,
.s37-approved-store-preview > h2 {
  margin: 0;
  color: #e6eded;
  font-size: 14px;
}

.s37-approved-profile-card-heading p {
  margin: 0 0 0 auto;
  color: #a0b1b4;
  font-size: 10px;
}

.s37-approved-profile-card-heading > i,
.s37-approved-profile-card-heading > svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #a7b7ba;
}

.s37-approved-profile-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 0 17px 15px;
}

.s37-approved-profile-summary > div {
  display: grid;
  gap: 8px;
}

.s37-approved-profile-summary span {
  color: #9dadaf;
  font-size: 10px;
}

.s37-approved-profile-summary strong {
  color: #e0e7e7;
  font-size: 11px;
  font-weight: 520;
}

.s37-approved-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px 24px;
  padding: 0 17px 16px;
}

.s37-approved-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.s37-approved-field-label {
  color: #bdc9ca;
  font-size: 10px;
  font-weight: 640;
}

.s37-approved-field .s37-approved-textarea {
  min-height: 83px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.65;
}

.s37-approved-profile-form > :nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.s37-approved-profile-image-field {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.s37-approved-profile-form > :nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.s37-approved-profile-form > :nth-child(4) {
  grid-column: 1;
}

.s37-approved-profile-form > :nth-child(5) {
  grid-column: 2;
}

.s37-approved-profile-form > :nth-child(6) {
  grid-column: 1;
}

.s37-approved-profile-image-control {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.s37-approved-profile-image-preview {
  display: grid;
  width: 100%;
  height: 130px;
  place-items: center;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(25, 45, 53, 0.9), rgba(11, 29, 38, 0.9));
  color: #b3c0c2;
}

.s37-approved-profile-image-preview > i,
.s37-approved-profile-image-preview > svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.4;
}

.s37-approved-profile-image-control .button {
  width: 100%;
  border-color: var(--s37-approved-border-strong) !important;
  background: transparent !important;
  color: #dce5e5 !important;
}

.s37-approved-profile-image-control small {
  color: #8fa2a6;
  font-size: 8px;
  text-align: center;
}

.s37-approved-field-help {
  font-size: 8px;
  line-height: 1.4;
}

.s37-approved-field-help.is-success {
  color: var(--s37-approved-primary);
}

.s37-approved-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: end;
  gap: 9px;
  padding-top: 4px;
}

.s37-approved-profile-actions .button {
  min-width: 120px;
}

.s37-approved-profile-card-description {
  margin: -4px 17px 13px;
  color: #98aaad;
  font-size: 10px;
}

.s37-approved-profile-identity-list {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 17px;
}

.s37-approved-profile-identity-list dt,
.s37-approved-profile-identity-list dd {
  min-height: 51px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--s37-approved-border-soft);
  font-size: 10px;
}

.s37-approved-profile-identity-list dt {
  color: #93a6aa;
}

.s37-approved-profile-identity-list dd {
  color: #d4dede;
}

.s37-approved-profile-identity > .button {
  display: flex;
  width: calc(100% - 98px);
  margin: 18px auto 10px;
}

.s37-approved-outline-blue.button-secondary {
  border-color: rgba(65, 151, 218, 0.75) !important;
  color: #55aee9 !important;
}

.s37-approved-profile-note {
  margin: 0 17px 19px;
  color: #8fa1a5;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

.s37-approved-store-preview {
  padding: 17px;
}

.s37-approved-store-preview > h2 {
  margin-bottom: 5px;
}

.s37-approved-store-preview > .s37-approved-profile-card-description {
  margin: 0 0 16px;
}

.s37-approved-store-preview-card {
  display: grid;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--s37-approved-border);
  border-radius: 4px;
  background: rgba(6, 22, 31, 0.55);
}

.s37-approved-store-preview-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.s37-approved-store-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--s37-approved-border-strong);
  border-radius: 999px;
  background: linear-gradient(145deg, #293b42, #15262e);
  color: #b8c5c7;
}

.s37-approved-store-icon > i,
.s37-approved-store-icon > svg {
  width: 29px;
  height: 29px;
}

.s37-approved-store-preview-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.s37-approved-store-preview-head strong {
  overflow: hidden;
  color: #eef3f3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-store-preview-head > div > span:last-child {
  color: #9aabad;
  font-size: 9px;
}

.s37-approved-store-description {
  margin: 0;
  color: #c5d0d1;
  font-size: 10px;
  line-height: 1.65;
}

.s37-approved-store-contact {
  display: grid;
  grid-template-columns: 18px 86px minmax(0, 1fr);
  gap: 8px 6px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--s37-approved-border-soft);
  border-bottom: 1px solid var(--s37-approved-border-soft);
}

.s37-approved-store-contact > i,
.s37-approved-store-contact > svg {
  width: 15px;
  height: 15px;
  color: #9dafb2;
}

.s37-approved-store-contact dt,
.s37-approved-store-contact dd {
  margin: 0;
  font-size: 9px;
}

.s37-approved-store-contact dt {
  color: #9aabad;
}

.s37-approved-store-contact dd {
  overflow: hidden;
  color: #cdd7d8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s37-approved-store-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--s37-approved-border-soft);
}

.s37-approved-store-stats > div {
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  background: #071923;
}

.s37-approved-store-stats span,
.s37-approved-store-stats small {
  color: #8fa1a5;
  font-size: 8px;
}

.s37-approved-store-stats strong {
  color: #dde6e6;
  font-size: 10px;
}

.s37-approved-profile-info-note {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(54, 124, 181, 0.62);
  border-radius: 4px;
  background: rgba(22, 73, 113, 0.18);
  color: #5bb0eb;
  font-size: 9px;
  line-height: 1.65;
}

/* -------------------------------------------------------------------------- */
/* Status chips and drawers within approved pages                              */
/* -------------------------------------------------------------------------- */

.s37-approved-page .workspace-status {
  min-height: 23px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(4, 17, 24, 0.45);
  font-size: 9px;
  font-weight: 620;
}

.s37-approved-page .workspace-status-healthy {
  border-color: rgba(73, 219, 176, 0.45);
  color: var(--s37-approved-primary);
}

.s37-approved-page .workspace-status-warning {
  border-color: rgba(242, 184, 28, 0.62);
  color: var(--s37-approved-yellow);
}

.s37-approved-page .workspace-status-danger {
  border-color: rgba(251, 97, 86, 0.55);
  color: var(--s37-approved-red);
}

.s37-approved-drawer-form {
  display: grid;
  gap: 14px;
}

.s37-approved-drawer-form .s37-approved-textarea {
  min-height: 130px;
  resize: vertical;
}

.s37-approved-form-error {
  margin: 0;
  color: var(--s37-approved-red);
  font-size: 12px;
}

/* -------------------------------------------------------------------------- */
/* Approved route composition resets                                           */
/* -------------------------------------------------------------------------- */

/* The legacy seller stylesheet assigns reviews and settlement pages to its
   former two-column compositions. These approved routes own their layout and
   must start from one full-width page track before creating their nested grids. */
.workspace-seller[data-active-route="reviews"] .s37-approved-reviews-page,
.workspace-seller[data-active-route="settlements"] .s37-approved-settlements-page,
.workspace-seller[data-active-route="settlement-detail"] .s37-approved-settlement-detail-page {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.workspace-seller[data-active-route="reviews"] .s37-approved-reviews-page > *,
.workspace-seller[data-active-route="settlements"] .s37-approved-settlements-page > *,
.workspace-seller[data-active-route="settlement-detail"] .s37-approved-settlement-detail-page > * {
  grid-column: 1 / -1;
  grid-row: auto;
}

.workspace-seller[data-active-route="customer-messages"]
  .s37-approved-conversation-context.seller-summary-rail {
  position: static;
  top: auto;
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  padding: 10px;
  border: 0;
  background: transparent;
}

.workspace-seller[data-active-route="platform-support"]
  .s37-approved-support-detail.seller-summary-rail {
  position: sticky;
  top: calc(var(--s37-approved-header) + 18px);
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: 1px solid var(--s37-approved-border);
  background: rgba(6, 25, 34, 0.7);
}

.workspace-seller[data-active-route="settlements"]
  .s37-approved-settlement-guide.seller-summary-rail {
  position: sticky;
  top: calc(var(--s37-approved-header) + 18px);
  grid-column: 2;
  grid-row: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--s37-approved-border);
  background: rgba(6, 25, 34, 0.55);
}

.workspace-seller[data-active-route="settlement-detail"]
  .s37-approved-settlement-detail-rail.seller-summary-rail {
  position: sticky;
  top: calc(var(--s37-approved-header) + 18px);
  grid-column: 2;
  grid-row: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* -------------------------------------------------------------------------- */
/* Desktop compression points                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1460px) {
  .workspace-seller[data-active-route="platform-support"]
    .s37-approved-support-page.has-detail .s37-approved-support-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 14px;
  }

  .workspace-seller[data-active-route="platform-support"]
    .s37-approved-support-page.has-detail .s37-approved-support-table {
    min-width: 770px;
  }

  .workspace-seller .workspace-main {
    padding-inline: 19px;
  }

  .workspace-seller .workspace-topbar-search {
    width: min(42vw, 510px);
  }

  .s37-approved-messages-layout {
    grid-template-columns: minmax(270px, 310px) minmax(390px, 1fr) minmax(275px, 310px);
  }

  .s37-approved-profile-layout {
    grid-template-columns: minmax(450px, 1.35fr) minmax(255px, 0.78fr) minmax(255px, 0.78fr);
  }

  .s37-approved-profile-form {
    grid-template-columns: minmax(0, 1fr) 158px;
    gap-inline: 16px;
  }

  .s37-approved-detail-metrics .s37-approved-metric-value {
    font-size: 19px;
  }
}

@media (max-width: 1260px) {
  .workspace-seller[data-active-route="customer-messages"]
    .s37-approved-conversation-context.seller-summary-rail {
    position: static;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .workspace-seller[data-active-route="platform-support"]
    .s37-approved-support-detail.seller-summary-rail {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-seller[data-active-route="settlements"]
    .s37-approved-settlement-guide.seller-summary-rail,
  .workspace-seller[data-active-route="settlement-detail"]
    .s37-approved-settlement-detail-rail.seller-summary-rail {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-seller {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .workspace-seller .workspace-topbar-search {
    min-width: 260px;
  }

  .workspace-seller .workspace-profile-trigger {
    min-width: 155px;
  }

  .s37-approved-messages-layout.has-selection {
    grid-template-columns: 280px minmax(410px, 1fr);
  }

  .s37-approved-messages-layout.has-selection .s37-approved-conversation-context {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .s37-approved-settlements-layout,
  .s37-approved-settlement-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .s37-approved-settlements-page > .s37-approved-page-heading {
    padding-right: 0;
  }

  .s37-approved-settlement-guide,
  .s37-approved-settlement-detail-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s37-approved-detail-rail-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s37-approved-profile-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  }

  .s37-approved-store-preview {
    grid-column: 1 / -1;
  }

  .s37-approved-support-page.has-detail .s37-approved-support-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .s37-approved-support-detail {
    max-height: none;
  }
}

@media (max-width: 1040px) {
  .workspace-seller .workspace-topbar-search {
    width: min(43vw, 390px);
  }

  .seller-topbar-gateway,
  .workspace-seller .workspace-profile-meta {
    display: none;
  }

  .workspace-seller .workspace-profile-trigger {
    min-width: 118px;
  }

  .s37-approved-metrics,
  .s37-approved-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s37-approved-messages-layout,
  .s37-approved-messages-layout:not(.has-selection),
  .s37-approved-messages-layout.has-selection {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  }

  .s37-approved-messages-layout.has-selection .s37-approved-conversation-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s37-approved-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .s37-approved-store-preview {
    grid-column: auto;
  }
}

/* The package is desktop-only. This final rule keeps an emergency usable state
   when a desktop browser is narrowed, without introducing a separate mobile UI. */
@media (max-width: 820px) {
  .workspace-seller {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-seller .workspace-sidebar {
    display: none;
  }

  .workspace-seller .workspace-menu-toggle {
    display: inline-grid;
  }

  .workspace-seller .workspace-topbar {
    padding-inline: 12px;
  }

  .workspace-seller .workspace-topbar-search {
    min-width: 0;
    flex: 1;
  }

  .workspace-seller .workspace-topbar-alert.button,
  .workspace-seller .workspace-profile-copy {
    display: none;
  }

  .workspace-seller .workspace-profile-trigger {
    min-width: 36px;
    grid-template-columns: 28px;
  }

  .workspace-seller .workspace-profile-trigger > .workspace-icon:last-child {
    display: none;
  }

  .s37-approved-page-heading,
  .s37-approved-page-heading-copy,
  .s37-approved-settlement-account-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .s37-approved-messages-layout,
  .s37-approved-messages-layout:not(.has-selection),
  .s37-approved-messages-layout.has-selection {
    grid-template-columns: minmax(0, 1fr);
  }

  .s37-approved-conversation-placeholder,
  .s37-approved-messages-layout.has-selection .s37-approved-conversation-context {
    grid-column: auto;
  }

  .s37-approved-messages-layout.has-selection .s37-approved-conversation-context,
  .s37-approved-settlement-guide,
  .s37-approved-settlement-detail-rail,
  .s37-approved-detail-rail-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .s37-approved-profile-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .s37-approved-profile-form > *,
  .s37-approved-profile-image-field,
  .s37-approved-profile-form > :nth-child(1),
  .s37-approved-profile-form > :nth-child(3),
  .s37-approved-profile-form > :nth-child(4),
  .s37-approved-profile-form > :nth-child(5),
  .s37-approved-profile-form > :nth-child(6) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* 리뷰 관리 표 도구줄이 flex nowrap 이라, 안쪽 검색 입력(min-width: 145px)과 함께
   350px 칸에서 428px 로 벌어졌습니다. 좁으면 줄바꿈하고 입력이 줄어들게 합니다. */
@media (max-width: 760px) {
  .s37-approved-table-panel-tools {
    flex-wrap: wrap;
  }

  .s37-approved-table-panel-tools .input {
    min-width: 0;
  }
}
