/* 토큰: ../styles/workspace-module-tokens.css */
:root {
  --font: var(--font-sans);
  --display: var(--font-sans);
  --mono: var(--font-mono);
  --sidebar-w: 228px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  overflow: hidden;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100vh;
  width: 100vw;
}
.shell.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.shell.is-sidebar-collapsed .sidebar {
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  border: 0;
}

.sidebar {
  background: linear-gradient(180deg, var(--dark-lift) 0%, var(--sidebar) 50%, var(--dark-2) 100%);
  color: var(--sidebar-ink);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--dark-2);
  position: relative;
  min-height: 0;
}
.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 14px;
  border-bottom: 1px solid var(--sidebar-line);
}
.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}
.sidebar-brand em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--sidebar-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  overflow: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label {
  margin: 14px 10px 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: #9aabbf;
  letter-spacing: 0.1em;
}
.nav-label:first-child { margin-top: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-item.is-active {
  background: var(--sidebar-active);
  color: #bbf7d0;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-item[hidden] { display: none !important; }
.nav-item--sub {
  padding-left: 18px;
  font-size: 12.5px;
}
.nav-item--sub::before {
  content: "ㄴ";
  margin-right: 6px;
  opacity: 0.65;
  font-weight: 400;
}
.nav-admin {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-admin[hidden] { display: none !important; }
.sidebar-foot {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--sidebar-line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--sidebar-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(46, 172, 57, 0.06), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(30, 38, 64, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 42%, var(--bg-deep) 100%);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 18px 24px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
  backdrop-filter: blur(8px);
}
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}
.topbar__title-block {
  min-width: 0;
  padding-left: 10px;
}
.eyebrow {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.topbar-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  max-width: 56ch;
  line-height: 1.4;
}
.user-chip {
  display: none;
}
.topbar__end {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 1 auto;
}
.store-change-btn {
  flex-shrink: 0;
  height: 38px;
  white-space: nowrap;
}
.session-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  max-width: min(280px, 46vw);
  flex: 0 1 auto;
}
.session-chip__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.session-chip[data-role="mall_operator"] .session-chip__role,
.session-chip[data-role="review_gate"] .session-chip__role {
  color: var(--accent-ink);
}
.session-chip__store {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-chip__store:not([hidden]) {
  display: block;
}
.session-chip__email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-switch { display: none; }

.main-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px max(48px, calc(28px + env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.view[hidden] { display: none !important; }
.page-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.page-hint {
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  flex-shrink: 0;
}
.view--orders {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.view--approved,
.view--admin,
.view--board,
.view--notice-admin,
.view--consult {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.view--intake {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.view--orders .orders-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

/* 접수서: 적절히 와이드 — 글씨 뭉개짐·불필요 줄바꿈 방지 */
.content-rail {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-rail--wide { max-width: 1280px; }
.content-rail--intake {
  max-width: min(1360px, 100%);
  flex: 1;
  min-height: 0;
  width: 100%;
}
.view--intake .content-rail--intake {
  flex: 1;
  min-height: 0;
}

.intake-split {
  display: grid;
  /* 폼은 남는 폭을 쓰고, 사진은 고정폭 — 너무 좁히면 라벨·칩 줄바꿈이 생김 */
  grid-template-columns: minmax(520px, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
  flex: 1;
  min-height: 0;
}
.intake-split--single {
  grid-template-columns: 1fr;
}
.intake-form-col { min-width: 0; }
.intake-mode-box {
  margin: 0 0 14px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 27, 51, 0.04);
}
.intake-mode-box.is-locked {
  opacity: 0.72;
  pointer-events: none;
}
.intake-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef1f6;
}
.intake-mode-switch__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.intake-mode-switch__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.intake-mode-switch__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: inherit;
}
.intake-mode-switch__hint {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  opacity: 0.78;
}
.intake-mode-switch__opt:has(input:checked) {
  background: #fff;
  color: var(--accent-ink);
  box-shadow: 0 1px 4px rgba(15, 27, 51, 0.12);
}
.intake-mode-switch__opt--cancel:has(input:checked) {
  color: var(--danger);
  box-shadow: 0 0 0 1px rgba(204, 64, 109, 0.28), 0 1px 4px rgba(204, 64, 109, 0.12);
}
.view--intake.is-cancel-intake .intake-mode-box {
  border-color: #fecdd3;
  background: #fff8f9;
}
.view--intake.is-cancel-intake #intakeFormTitle {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cancel-lookup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed #fecdd3;
  border-radius: 12px;
  background: #fff7f8;
}
.cancel-lookup__field {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}
.cancel-lookup__hint {
  flex: 1 1 100%;
  margin: 0;
}
.intake-photo-col {
  min-width: 0;
  position: sticky;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.photo-focus {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6fa;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-focus img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.photo-grid--intake {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}
.photo-grid--intake .photo-card {
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.photo-grid--intake .photo-card.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.photo-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.banner {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.banner--compact {
  padding: 8px 0;
  font-size: 12px;
  border: 0;
  border-radius: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
}
.panel--slip {
  padding: 22px 24px 20px;
}
.panel--approved {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 12px;
}
.query-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7f9fc;
  flex-shrink: 0;
  min-width: 0;
}
.query-bar--list {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(168px, 1.2fr) max-content;
  align-items: end;
  column-gap: 8px;
  row-gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  max-width: 100%;
}
.query-bar--list .query-bar__cluster--grow {
  display: contents;
}
.query-bar--list .query-bar__cluster--dates {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  grid-column: 1 / -1;
  width: 100%;
}
.query-bar--list .query-bar__cluster--dates .btn,
.query-bar__cluster--dates .btn {
  flex: none;
  align-self: flex-end;
  white-space: nowrap;
}
.query-bar--list .query-bar__date {
  flex: none;
  width: auto;
  min-width: 0;
  max-width: none;
}
.query-bar--list .query-bar__store,
.query-bar--list .query-bar__customer {
  flex: none;
  width: auto;
  min-width: 0;
  max-width: none;
}
.query-bar--list .query-bar__chips {
  grid-column: auto;
  align-self: end;
}
.query-bar--list .query-bar__store[hidden] + .query-bar__customer {
  grid-column: 1 / 3;
  min-width: 220px;
}
.query-bar__cluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.query-bar__cluster--grow {
  flex: 1 1 220px;
}
.query-bar .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.query-bar .field > span {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.query-bar__cluster--dates {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
}
.query-bar:not(.query-bar--list) .query-bar__cluster--dates {
  flex: 0 1 auto;
}
.query-bar__date-sep {
  flex: 0 0 auto;
  align-self: flex-end;
  height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  padding: 0 2px;
}
.query-bar__date {
  flex: 0 0 138px;
  width: 138px;
}
.query-bar input[type="date"] {
  position: relative;
  cursor: pointer;
  color-scheme: light;
}
.query-bar input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}
.query-bar__span-btn {
  display: none;
}
.space-launcher-stack {
  display: none !important;
}
.delete-confirm-backdrop:not([hidden]) {
  z-index: 125;
}
.store-code-gate:not([hidden]) {
  z-index: 110;
}
.store-code-gate__modal {
  width: min(440px, 92vw);
}
.store-code-gate__field {
  margin: 4px 0 0;
  width: 100%;
  text-align: left;
}
.store-code-gate__error:not([hidden]) {
  color: #b42318;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.store-code-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}
.store-code-gate__actions .btn {
  min-width: 0;
  width: 100%;
  height: 42px;
  margin-top: 0;
}
.store-code-gate__actions .btn[hidden] + .btn {
  grid-column: 1 / -1;
}
.store-admin-code {
  display: flex;
  gap: 8px;
  align-items: center;
}
.store-admin-code input {
  flex: 1 1 auto;
  min-width: 0;
}
.store-admin-code__value {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.query-bar__search,
.query-bar__customer {
  flex: 1 1 180px;
  min-width: 140px;
}
.query-bar__store {
  flex: 0 1 148px;
  min-width: 120px;
}
.query-bar__store--wide {
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 360px;
}
.query-bar__ship {
  flex: 0 0 108px;
  width: 108px;
}
.query-bar .status-filter,
.query-bar .range-filter,
.query-bar__chips {
  margin: 0;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  flex-wrap: nowrap;
}
.query-bar .status-filter__btn {
  padding: 6px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.query-bar input[type="date"],
.query-bar input[type="search"],
.query-bar select {
  height: 38px;
  min-height: 38px;
  width: 100%;
}
.query-bar__side {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 38px;
  flex: 0 0 auto;
  padding-bottom: 1px;
}
.query-bar__side .note {
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
}
.table-wrap--approved {
  flex: 1;
  min-height: 240px;
  max-height: none;
  margin-top: 0;
}
.table-wrap--grow {
  flex: 1;
  min-height: 180px;
  max-height: min(420px, 48vh);
  overflow: auto;
}
.orders-table--approved {
  min-width: 1320px;
  font-size: 12px;
}
.orders-table--approved th,
.orders-table--approved td {
  white-space: nowrap;
  padding: 6px 8px;
  vertical-align: middle;
}
.orders-table--approved .col-name {
  width: 4.8rem;
  max-width: 5.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-table--approved .col-phone {
  width: 7.2rem;
  max-width: 7.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-table--approved .col-zip {
  width: 4.4rem;
  max-width: 4.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-table--approved .cell-clip {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orders-table--approved .cell-address,
.orders-table--approved .col-addr {
  min-width: 280px;
  max-width: 420px;
  white-space: normal;
  line-height: 1.4;
}
.orders-table--approved .cell-address-detail,
.orders-table--approved .col-addr-detail {
  min-width: 140px;
  max-width: 220px;
  white-space: normal;
  line-height: 1.4;
}
.orders-table--approved .cell-items,
.orders-table--approved .col-item-name {
  min-width: 260px;
  max-width: 380px;
  white-space: normal;
  line-height: 1.4;
  font-size: 11.5px;
}
.orders-table--approved .approved-tracking-input,
.orders-table--approved .approved-edit-input {
  width: 11.5rem;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  background: #fff;
}
.orders-table--approved .approved-edit-input--name {
  width: 4.6rem;
}
.orders-table--approved .approved-edit-input--phone {
  width: 7.1rem;
}
.orders-table--approved .approved-edit-input--zip {
  width: 4.4rem;
}
.orders-table--approved .approved-edit-input--addr {
  width: 100%;
  min-width: 16rem;
}
.orders-table--approved .approved-edit-input--addr-detail {
  width: 100%;
  min-width: 8rem;
}
.orders-table--approved .approved-edit-input--item {
  width: 100%;
  min-width: 15rem;
}
.cell-tip {
  position: fixed;
  z-index: 90;
  max-width: min(420px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 8px;
  background: #1f2937;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 8px 24px rgba(15, 27, 51, 0.18);
  pointer-events: none;
}
.orders-table--approved .approved-edit-input--qty,
.orders-table--approved .approved-edit-input--price {
  width: 5.5rem;
}
.orders-table--approved .approved-edit-input--date {
  width: 9.5rem;
}
.orders-table--approved .approved-edit-input--select {
  width: 7.5rem;
}
.orders-table--approved .approved-ship-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.orders-table--approved .approved-tracking-input:focus,
.orders-table--approved .approved-edit-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.orders-table--approved .col-check {
  width: 36px;
  min-width: 36px;
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  box-shadow: 1px 0 0 var(--line-soft);
  text-align: center;
}
.orders-table--approved thead .col-check {
  background: #f8fafc;
  z-index: 5;
}
.orders-table--approved .col-sticky {
  position: sticky;
  left: 36px;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--line-soft);
}
.orders-table--approved thead .col-sticky {
  position: sticky;
  left: 36px;
  z-index: 3;
  background: #f8fafc;
}
.orders-table--approved td.col-order-parent {
  vertical-align: middle;
  background: #f8fafc;
  border-right: 1px solid var(--line-soft);
}
.orders-table--approved td.col-order-parent code {
  font-weight: 700;
  font-size: 12px;
}
.orders-table--approved .col-line-no {
  white-space: nowrap;
}
.orders-table--approved .col-line-no code {
  color: #475569;
  font-size: 11.5px;
}
.orders-table--approved tr.approved-row--follow td {
  border-top-color: transparent;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.panel-head--compact {
  margin-bottom: 10px;
  padding-bottom: 10px;
  align-items: center;
}
.panel--approved .panel-head--compact {
  align-items: flex-start;
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.panel-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 56ch;
  line-height: 1.45;
}
.note--tight { margin: 0; max-width: none; }
.panel-head .note--tight {
  margin: 4px 0 0;
}

.form-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.form-section--last {
  border-bottom: 0;
  padding-bottom: 4px;
}
.form-section__title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.form-section__head .form-section__title { margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.form-grid--3 {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid--address {
  grid-template-columns: max-content minmax(220px, 1.4fr) minmax(168px, 0.7fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 12px;
}
.form-grid--address .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}
.form-grid--address .field--grow,
.form-grid--address .field--detail {
  grid-column: auto;
}
.field-hint {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}
.ship-date-preview {
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8f0;
  border: 1px solid #c6e6cf;
  color: #1f6b3a;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}
.ship-date-preview[hidden] {
  display: none !important;
}
.field[hidden],
#shipDateWrap[hidden],
#intakeAddressSection[hidden],
#cancelLookupBar[hidden] {
  display: none !important;
}
.field > span {
  white-space: nowrap;
  line-height: 1.3;
}
.field-hint {
  display: block;
  margin-top: -2px;
  font-size: 11.5px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.35;
  white-space: normal;
}
.field.span-2,
.field--ship { grid-column: 1 / -1; }
.field--ship > span {
  margin-bottom: 2px;
}
.field input,
.field select,
.field textarea {
  height: 40px;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  width: 100%;
  line-height: 1.4;
}
.field textarea {
  height: auto;
  min-height: 64px;
  padding: 10px 12px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field input:disabled,
.field input[readonly] {
  background: #f5f7fb;
  color: var(--ink);
}
.field input[type="file"] {
  height: auto;
  min-height: 40px;
  padding: 8px 10px;
  line-height: 1.3;
  font-size: 13px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 10px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.address-zip-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.address-zip-controls input {
  width: 110px;
  flex: 0 0 auto;
}

.cash-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-end;
}
.cash-row .field {
  min-width: 240px;
  flex: 1;
}

.ship-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ship-options--inline {
  height: auto;
  padding: 0;
}
/* 칩: 네이티브 라디오 숨김 — accent 글로우·오버플로 제거, 선택 상태는 테두리·글씨만 */
.ship-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  user-select: none;
}
.ship-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
}
.ship-chip:has(input:checked) {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}
.ship-chip:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink);
}
.consent-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  accent-color: unset;
}
.consent-box input[type="checkbox"]:checked {
  border-color: var(--ink);
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.consent-box input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.consent-box strong { display: block; margin-bottom: 2px; font-size: 13px; }
.consent-box em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.amount-total {
  margin: 8px 0 0;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.mono-cell {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.table-wrap .items-table,
.table-wrap .orders-table {
  border: 0;
}
.table-wrap .items-table th:first-child,
.table-wrap .items-table td:first-child,
.table-wrap .orders-table th:first-child,
.table-wrap .orders-table td:first-child {
  padding-left: 12px;
}
.items-table th.items-col-product,
.items-table td.items-col-product,
.items-table th:nth-child(1),
.items-table td:nth-child(1) {
  width: 52%;
  min-width: 240px;
}
.items-table .items-col-stock,
.items-table th:nth-child(2),
.items-table td:nth-child(2) {
  width: 56px;
  min-width: 52px;
  white-space: nowrap;
}
.items-table .items-col-price,
.items-table th:nth-child(3),
.items-table td:nth-child(3) {
  width: 88px;
  min-width: 76px;
}
.items-table .items-col-qty,
.items-table th:nth-child(4),
.items-table td:nth-child(4) {
  width: 64px;
  min-width: 56px;
}
.items-table .items-col-amt,
.items-table th:nth-child(5),
.items-table td:nth-child(5) {
  width: 96px;
  min-width: 88px;
  white-space: nowrap;
}
.items-table .items-col-act,
.items-table th:nth-child(6),
.items-table td:nth-child(6) {
  width: 52px;
  min-width: 48px;
}
.items-table .items-col-price input,
.items-table .items-col-qty input {
  width: 100%;
  min-width: 0;
  padding: 0 6px;
  font-size: 13px;
}
.btn-row--end {
  justify-content: flex-end;
  margin-top: 4px;
}
/* 접수 하단 액션 — 우측 스위치에 가리지 않도록 가운데 + 하단 여백 */
.btn-row--intake-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 12px 12px max(96px, calc(72px + env(safe-area-inset-bottom)));
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.items-table th,
.items-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 6px;
  text-align: left;
  vertical-align: middle;
}
.items-table th {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.items-table select,
.items-table input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
}
.items-table .mono-cell {
  font-size: 13px;
}
.items-table [data-role="stock"] {
  font-size: 13.5px;
  font-weight: 600;
}
.items-table [data-role="lineTotal"] {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  vertical-align: middle;
}
.btn:hover { background: #f8fafc; }
.btn[hidden],
label.btn[hidden] {
  display: none !important;
}
label.btn {
  position: relative;
  margin: 0;
}
label.btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-danger {
  border-color: var(--line);
  color: var(--danger);
  background: #fff;
}
.btn-danger:hover {
  border-color: var(--danger);
  background: #fff;
}
.btn-force-edit {
  border-radius: 999px;
  padding: 8px 16px;
  border-color: var(--accent);
  color: var(--accent-ink);
  background: #fff;
}
.btn-force-edit:hover {
  background: var(--accent-soft);
}
.btn-ghost { background: transparent; }

.stock-alert {
  margin-top: 10px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  color: var(--warn);
  font-size: 13px;
  white-space: pre-line;
}
.stock-alert[hidden] { display: none !important; }
.stock-alert strong { color: var(--warn); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.photo-card {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.orders-table th,
.orders-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
}
.orders-table.orders-table--approved th,
.orders-table.orders-table--approved td {
  vertical-align: middle;
}
.orders-table.orders-table--approved td.col-check,
.orders-table.orders-table--approved td.col-order-parent {
  vertical-align: middle;
  text-align: center;
}
.orders-table.orders-table--approved td.col-check .approved-check-wrap,
.orders-table.orders-table--approved th.col-check .approved-check-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}
.orders-table.orders-table--approved .col-check input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}
.orders-table th {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  background: #f8fafc;
  position: sticky;
  top: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  background: transparent;
}
.status-received { color: var(--ok); }
.status-approved { color: var(--accent-ink); }
.status-review_pending { color: var(--ink); }
.status-cancelled { color: var(--danger); }

.orders-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
}
.orders-list-panel {
  flex: 1;
  min-height: 0;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px;
}
.orders-list-panel .panel-head,
.orders-list-panel .panel-head--compact,
.orders-list-panel .query-bar {
  flex-shrink: 0;
}
.detail-panel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.orders-card-list {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  contain: inline-size;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 2px 8px;
}
.orders-card-list .order-card {
  flex-shrink: 0;
}
.status-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f3f5f9;
  width: fit-content;
  max-width: 100%;
}
.status-filter__btn {
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.status-filter__btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.status-filter__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 27, 51, 0.08);
}
.product-combobox,
.product-picker {
  position: relative;
  min-width: 0;
  width: 100%;
}
.product-combobox input[type="text"],
.product-picker input[type="search"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  line-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-combobox__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  max-height: 280px;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 27, 51, 0.12);
}
.product-combobox__list.is-portal {
  position: fixed;
  z-index: 220;
  right: auto;
}
.product-combobox__option {
  padding: 9px 12px;
  font-size: 13.5px;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.product-combobox__option:hover,
.product-combobox__option:focus {
  background: #f4f7fb;
}
.product-combobox__empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.product-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-picker select {
  width: 100%;
  min-width: 0;
}
.intake-product-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  flex: 1;
  min-height: 200px;
  max-height: none;
  overflow: auto;
  padding: 4px 2px 8px;
}
.intake-product-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.intake-product-check:hover {
  border-color: #c9d2e0;
}
.intake-product-check:has(input:checked) {
  border-color: rgba(46, 172, 57, 0.45);
  background: var(--accent-soft);
}
.intake-product-check input {
  margin-top: 2px;
  flex-shrink: 0;
}
.intake-product-check span {
  min-width: 0;
  word-break: break-word;
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 240px;
}
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.admin-fold {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
}
.admin-fold.is-page {
  display: flex;
}
.admin-fold[hidden] {
  display: none !important;
}
.admin-fold__head,
.admin-fold__head-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}
.admin-fold__head--split {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
}
.admin-fold__head--split .admin-fold__head-btn {
  flex: 1;
  min-width: 0;
  padding-right: 0;
}
.admin-fold__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.admin-fold__title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}
.admin-fold__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.admin-fold__chev {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.admin-fold.is-open .admin-fold__chev {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.admin-fold__body {
  display: none;
  padding: 0 16px 16px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: auto;
}
.admin-fold.is-page .admin-fold__body {
  display: block;
}
.admin-fold[data-admin-fold="products"] .admin-fold__body,
.admin-fold[data-admin-fold="notices"] .admin-fold__body,
.admin-fold[data-admin-fold="consult-form"] .admin-fold__body {
  max-height: none;
}
.admin-fold[data-admin-fold="consult-form"] .admin-fold__body {
  background: #f4f7fb;
  padding: 16px 18px 18px;
}
.admin-fold__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.consult-form-admin {
  display: flex;
  flex-direction: column;
  gap: 0;
  --consult-blue: #4a90e2;
  --consult-blue-soft: #e8f1ff;
}
.consult-form-admin__section.consult-section--last {
  margin-bottom: 0;
}
.consult-form-admin__lead {
  margin: -8px 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.consult-form-admin__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.consult-form-admin__card {
  border: 1px solid #e6edf6;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px 14px 12px;
  min-width: 0;
}
.consult-form-admin__card--wide {
  grid-column: 1 / -1;
}
.consult-form-admin__card--locked {
  background: #f4f7fb;
  border-style: dashed;
}
.consult-form-admin__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.consult-form-admin__card-head strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1b2a44;
}
.consult-form-admin__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.consult-form-admin__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.consult-form-admin__badge--drop {
  background: #e8f1ff;
  color: #1d4ed8;
}
.consult-form-admin__badge--chip {
  background: #ecfdf3;
  color: #15803d;
}
.consult-form-admin__badge--max {
  background: #fff4e5;
  color: #c2410c;
}
.consult-form-admin__locked {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}
.consult-form-admin__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.consult-form-admin__opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 6px 5px 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}
.consult-form-admin__opt button {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0 2px;
  font: inherit;
  cursor: pointer;
  line-height: 1;
}
.consult-form-admin__opt button:hover {
  color: #0f172a;
}
.consult-form-admin__add {
  display: flex;
  gap: 6px;
}
.consult-form-admin__add input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
}
@media (max-width: 860px) {
  .consult-form-admin__grid {
    grid-template-columns: 1fr;
  }
}
.admin-maint {
  min-width: 0;
  flex: 0 0 auto;
}
.admin-maint__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: end;
  margin: 0 0 10px;
}
.admin-maint__lookup {
  margin: 0;
}
.admin-maint .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-lookup-result {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7f9fc;
  font-size: 13px;
  line-height: 1.45;
}
.admin-lookup-result dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0 0 12px;
}
.admin-lookup-result dt {
  color: var(--muted);
  font-size: 12px;
}
.admin-lookup-result dd {
  margin: 0;
  min-width: 0;
  word-break: break-all;
}

.purge-float[hidden] {
  display: none;
}
.purge-float:not([hidden]) {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 118;
  width: min(880px, calc(100vw - 40px));
  max-height: min(72vh, 640px);
}
.purge-float.is-moved:not([hidden]) {
  right: auto;
  bottom: auto;
}
.purge-float.is-dragging {
  user-select: none;
}
.purge-float__panel {
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 640px);
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 24, 22, 0.16);
}
.purge-float__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  cursor: grab;
  touch-action: none;
}
.purge-float.is-dragging .purge-float__head {
  cursor: grabbing;
}
.purge-float__copy h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.35;
  word-break: keep-all;
}
.purge-float__copy .note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.purge-float__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #141816;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.purge-float__close:hover {
  background: #e5e7eb;
}
.purge-float__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.purge-float__col {
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.purge-float__col + .purge-float__col {
  border-left: 1px solid var(--line, #e2e8f0);
}
.purge-float__col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.purge-float__log {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: #f7f9fc;
}
.purge-float__log-row {
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf3;
}
.purge-float__log-row:last-child {
  border-bottom: 0;
}
.purge-float__log-row strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.purge-float__log-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted, #6b726e);
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}
@media (max-width: 720px) {
  .purge-float:not([hidden]) {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
  .purge-float__cols {
    grid-template-columns: 1fr;
  }
  .purge-float__col + .purge-float__col {
    border-left: 0;
    border-top: 1px solid var(--line, #e2e8f0);
  }
}
.admin-split__col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.admin-split__col--products {
  min-height: 0;
}
.admin-map-fields {
  margin-bottom: 12px;
}
.store-code-add-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.store-code-add-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.store-code-add-row .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
  height: 40px;
  white-space: nowrap;
}
.admin-map-save {
  margin: 0 0 14px;
}
.field--actions .btn {
  width: 100%;
  min-height: 42px;
}
.field--store-pick {
  position: relative;
}
.store-combobox {
  position: relative;
}
.store-combobox input {
  width: 100%;
}
.store-combobox__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #c8cdd6);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.store-combobox__option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.store-combobox__option:hover,
.store-combobox__option:focus {
  background: #f4f7fb;
  outline: none;
}
.store-combobox__empty {
  padding: 10px 12px;
  color: var(--muted, #64748b);
  font-size: 12px;
}
.field--search-inline {
  margin-bottom: 12px;
  max-width: 360px;
}
.intake-product-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.intake-product-toolbar .field--search-inline {
  margin-bottom: 0;
  max-width: none;
}
.intake-product-check__stock {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
  color: #334155;
}
.intake-product-check.is-low-stock,
.intake-product-check.is-hidden-mall.is-low-stock,
.intake-product-check.is-low-stock:has(input:checked),
.intake-product-check.is-hidden-mall.is-low-stock:has(input:checked) {
  border-color: #e11d48;
  background: #ffe4e6;
}
.intake-product-check.is-low-stock .intake-product-check__stock {
  color: #be123c;
}
@media (max-width: 640px) {
  .intake-product-toolbar {
    grid-template-columns: 1fr;
  }
}
.btn-row--toolbar {
  margin: 0;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 1100px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
  .admin-maint__row {
    grid-template-columns: 1fr;
  }
}
.intake-product-check.is-hidden-mall {
  border-color: #d4c4a8;
  background: #fbf7f0;
}
.intake-product-check.is-hidden-mall:has(input:checked) {
  border-color: #c4a574;
  background: #f7f0e4;
}
.orders-card-empty {
  margin: 24px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.order-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 14px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 27, 51, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}
.order-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #c5cddb;
}
.order-card.status-tone-received::before { background: var(--ok); }
.order-card.status-tone-approved::before { background: var(--accent-ink); }
.order-card.status-tone-cancelled::before { background: var(--danger); }
.order-card.order-card--cancel-kind::before { background: var(--danger); }
.order-card:hover {
  border-color: #c5d0e0;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.order-card.is-selected {
  border-color: rgba(30, 38, 64, 0.35);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(30, 38, 64, 0.12);
}
.order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.order-card__store {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.35;
  min-width: 0;
  flex: 1 1 auto;
  word-break: keep-all;
}
.order-card__no {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.order-card__no code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  white-space: normal;
  word-break: break-all;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.order-card .status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  background: #f3f5f9;
}
.order-card .status-received { color: var(--ok); background: var(--accent-soft); }
.order-card .status-approved { color: var(--accent-ink); background: #eef6ff; }
.order-card__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}
.order-card .status-cancelled { color: #be123c; background: #ffe4e6; }
.order-card .status-kind-cancel,
.slip__head .status-kind-cancel {
  color: #be123c;
  background: #ffe4e6;
}
.order-card__meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-card__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}
.order-card__customer {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.order-card__amt {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.order-card__amt.is-neg,
.detail-meta__total .is-neg,
.orders-table--approved td.is-neg,
.admin-lookup-result .is-neg {
  color: #b42318;
}
.detail-panel {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(248,250,252,0.9) 100%);
}
.detail-empty {
  margin: auto;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  max-width: 320px;
}
.slip-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 2px 8px;
}
.slip {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.slip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #1e2640 55%, #8a93a3 100%);
}
.slip__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #d7dde8;
  flex-wrap: wrap;
}
.slip__eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.slip__head-main h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.slip__head .status-pill {
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: #f3f5f9;
}
.slip__head .status-received { color: var(--ok); background: var(--accent-soft); }
.slip__head .status-approved { color: var(--accent-ink); background: #eef6ff; }
.slip__head .status-cancelled { color: #be123c; background: #ffe4e6; }
.slip__section {
  margin: 0 0 14px;
}
.slip__foot {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed #d7dde8;
}
.slip__foot .btn-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.slip__head-main .note--tight {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.detail-h {
  margin: 0 0 10px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-meta,
.slip__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 16px;
}
.detail-meta > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
  font-size: 13.5px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f9fc;
}
.detail-meta__wide { grid-column: 1 / -1; }
.detail-meta__total {
  background: var(--accent-soft) !important;
}
.detail-meta__total strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.detail-meta dt {
  margin: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding-top: 2px;
  white-space: nowrap;
}
.detail-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.detail-items {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.slip-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}
.slip-line__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slip-line__name {
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.slip-line__sku {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.slip-line__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.slip-line__qty,
.slip-line__unit {
  font-size: 12px;
  color: var(--muted);
}
.slip-line__sum {
  font-size: 13.5px;
  color: var(--ink);
}
.detail-memo {
  margin: 0 0 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: pre-wrap;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed var(--line);
}
.detail-memo[hidden] { display: none !important; }
.detail-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.detail-photo {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}
.detail-photo img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--dark);
  color: #f8fafc;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  word-break: keep-all;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 진입 로딩 모달 — 세일즈 허브 savingModal 과 동일 패턴 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 24, 0.48);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 28px;
  z-index: 100;
}
.modal-backdrop[hidden] {
  display: none;
}
.saving-backdrop:not([hidden]) {
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.is-hub-busy {
  overflow: hidden;
}
.modal-saving {
  width: min(400px, 92vw);
  text-align: center;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 28px 80px rgba(8, 14, 24, 0.22);
}
.modal-saving .auth-action-loader {
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.modal-saving .hub-busy-ring {
  margin: 0 auto 10px;
  color: #141414;
}
.modal-saving .hub-busy-ring .pl {
  width: 5em;
  height: 5em;
}
.modal-saving h3 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all;
  color: #141816;
}
.modal-saving .note {
  margin: 0;
  color: #6b726e;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.modal-result {
  width: min(440px, 92vw);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  text-align: center;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 28px 80px rgba(8, 14, 24, 0.22);
}
.modal-result__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.modal-result.is-success .modal-result__badge {
  background: #dcfce7;
  color: #15803d;
}
.modal-result.is-error .modal-result__badge {
  background: #fee2e2;
  color: #b91c1c;
}
.modal-result h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all;
  color: #141816;
}
.modal-result__message {
  margin: 0;
  width: 100%;
  max-width: none;
  color: #6b726e;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: pre-line;
  text-align: center;
}
.export-split-choice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
  width: 100%;
}
.export-split-choice[hidden] {
  display: none;
}
.export-split-choice legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6b726e;
  text-align: center;
}
.modal-result__btn {
  margin-top: 4px;
  min-width: 140px;
  height: 42px;
}
.modal-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}
.modal-confirm-actions .btn {
  min-width: 0;
  width: 100%;
  height: 42px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.modal-result .btn,
.store-code-gate__actions .btn {
  letter-spacing: -0.02em;
  word-break: keep-all;
}
@media (max-width: 520px) {
  .modal-result,
  .modal-saving {
    padding: 28px 20px 22px;
  }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    height: auto;
    z-index: 40;
    flex-direction: row;
    border-right: 0;
    border-top: 1px solid var(--sidebar-line);
  }
  .sidebar-brand,
  .sidebar-foot,
  .nav-label { display: none; }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding: 8px;
  }
  .nav-item { flex: 0 0 auto; white-space: nowrap; }
  .nav-admin { flex-direction: row; flex: 0 0 auto; }
  .intake-split { grid-template-columns: 1fr; }
  .intake-photo-col {
    position: static;
    max-height: none;
  }
  .photo-focus img { max-height: 220px; }
  .main-scroll { padding-bottom: 88px; }
  .form-grid,
  .form-grid--3,
  .form-grid--2,
  .form-grid--address {
    grid-template-columns: 1fr;
  }
  .field.span-2 { grid-column: auto; }
  .query-bar {
    flex-wrap: wrap;
  }
  .query-bar__date,
  .query-bar__ship,
  .query-bar__store,
  .query-bar__store--wide {
    flex: 1 1 140px;
    width: auto;
  }
  .query-bar__search,
  .query-bar__customer {
    flex: 1 1 100%;
  }
  .query-bar__cluster,
  .query-bar__cluster--grow {
    flex: 1 1 100%;
  }
  .query-bar:not(.query-bar--list) .query-bar__cluster--dates {
    flex: 1 1 100%;
    flex-wrap: nowrap;
  }
  .query-bar:not(.query-bar--list) .query-bar__cluster--dates .query-bar__date {
    flex: 0 0 138px;
    width: 138px;
  }
  .query-bar__side {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .query-bar--list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .query-bar--list .query-bar__cluster,
  .query-bar--list .query-bar__cluster--dates,
  .query-bar--list .query-bar__cluster--grow {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .query-bar--list .query-bar__date {
    flex: 1 1 132px;
    width: auto;
  }
  .query-bar--list .query-bar__store,
  .query-bar--list .query-bar__customer,
  .query-bar--list .query-bar__chips {
    grid-column: auto;
  }
  .query-bar--list .query-bar__store,
  .query-bar--list .query-bar__customer {
    flex: 1 1 160px;
  }
  .orders-layout { grid-template-columns: 1fr; max-width: 100%; }
  .view--orders .orders-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .orders-list-panel {
    flex: 0 1 auto;
    width: 100%;
    max-height: min(46vh, 520px);
    min-height: 220px;
  }
  .detail-panel {
    flex: 1 1 auto;
    min-height: 200px;
  }
  .detail-split { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-col--photos {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 14px;
  }
  .space-launcher-stack { display: none !important; }
}

@media (max-width: 1280px) {
  .intake-split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
  .form-grid--3 {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
  .orders-layout {
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .detail-split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--address {
    grid-template-columns: max-content minmax(0, 1fr) minmax(140px, 0.6fr);
  }
  .content-rail--intake { max-width: 100%; }
}

.notice-board {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.notice-admin {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  min-height: 280px;
}
.notice-board__list-panel,
.notice-admin__list-panel,
.notice-board__detail-panel,
.notice-admin__form-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.notice-board__list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 8px;
}
.notice-board__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.notice-board__item:hover { background: #f1f5f9; }
.notice-board__item-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.notice-board__item-row .notice-board__item {
  flex: 1;
  min-width: 0;
}
.notice-board__item-del {
  flex: 0 0 auto;
  align-self: center;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.notice-board__item-del:hover {
  color: var(--danger);
  background: #fef2f2;
}
.notice-board__item.is-active {
  background: #ecfdf3;
  box-shadow: inset 3px 0 0 var(--accent);
}
.notice-board__item-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  word-break: keep-all;
}
.notice-board__item-when {
  font-size: 11px;
  color: var(--muted);
}
.notice-board__draft {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.notice-board__empty {
  margin: 24px 8px;
  color: var(--muted);
  font-size: 13px;
}
.notice-board__detail-panel {
  overflow: auto;
}
.notice-board__when {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.notice-board__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  word-break: keep-all;
}
.notice-board__rule {
  height: 1px;
  background: var(--line);
  margin: 0 0 14px;
}
.notice-board__body {
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}
.notice-board__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.notice-board__photos a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.notice-board__photos img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.notice-admin__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 12px;
}
.notice-admin__form textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.notice-admin__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.notice-admin__thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.notice-admin__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.notice-admin__thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.notice-admin__file .btn { cursor: pointer; }
.notice-admin__publish {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.notice-admin__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .notice-board,
  .notice-admin {
    grid-template-columns: 1fr;
  }
  .notice-board__list-panel,
  .notice-admin__list-panel {
    max-height: 220px;
  }
}

#consultListPane[hidden],
#consultFormPane[hidden],
#consultFormPreviewPane[hidden] {
  display: none !important;
}
body.is-consult-writing,
body.is-consult-preview {
  overflow: hidden;
}
.consult-form-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: rgba(8, 14, 24, 0.46);
  backdrop-filter: blur(4px);
}
.consult-form-backdrop--preview {
  z-index: 85;
}
.consult-preview-tag {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: -0.02em;
  vertical-align: middle;
}
.consult-form-preview__empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 650;
}
.consult-sheet--preview .consult-chip,
.consult-sheet--preview .consult-ox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.consult-sheet {
  --consult-blue: #4a90e2;
  --consult-blue-ink: #1d4ed8;
  --consult-blue-soft: #e8f1ff;
  --consult-line: #e4ebf4;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  overflow: hidden;
}
.consult-sheet--modal {
  width: min(920px, 100%);
  height: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  border-radius: 0;
  border: 0;
  border-left: 1px solid #dbe4f0;
  border-right: 1px solid #dbe4f0;
  box-shadow: 0 0 48px rgba(8, 14, 24, 0.22);
}
.consult-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 28px 18px;
  background: linear-gradient(180deg, #eaf3ff 0%, #f4f8ff 100%);
  border-bottom: 1px solid #d7e4f6;
  flex-shrink: 0;
}
.consult-sheet__head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #16325c;
}
.consult-sheet__meta {
  margin: 8px 0 0;
  color: #5b6b86;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.consult-sheet__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 16px;
  background: #f4f7fb;
}
.consult-sheet__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 28px 16px;
  border-top: 1px solid var(--consult-line);
  background: #fff;
  flex-shrink: 0;
}
.consult-section {
  padding: 26px 26px 24px;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(22, 50, 92, 0.04);
}
.consult-section--last {
  margin-bottom: 10px;
}
.consult-section--last .consult-chip-head {
  align-items: center;
  margin-bottom: 12px;
}
.consult-section--last .consult-section__title {
  margin: 0;
}
.consult-section__title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1b2a44;
}
.consult-section__lead {
  margin: -12px 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6b82;
}
.consult-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.consult-sheet .consult-grid {
  display: grid;
  gap: 16px 18px;
}
.consult-sheet .consult-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consult-sheet .consult-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.consult-sheet .consult-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.consult-sheet .consult-grid--follow { margin-top: 18px; }
.consult-sheet .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.consult-sheet .field > span {
  font-size: 13px;
  font-weight: 700;
  color: #4b5568;
}
.consult-sheet .field > span i {
  font-style: normal;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
}
.consult-sheet .field input,
.consult-sheet .field select,
.consult-sheet .field textarea {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d9e1ee;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #1b2438;
}
.consult-sheet .field textarea {
  height: auto;
  min-height: 112px;
  padding: 12px 14px;
  line-height: 1.55;
  font-weight: 500;
}
.consult-sheet .field input:focus,
.consult-sheet .field select:focus,
.consult-sheet .field textarea:focus {
  outline: none;
  border-color: #93b4f5;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.16);
}
.consult-sheet .field input[readonly],
.consult-sheet .field input:disabled,
.consult-sheet .field select:disabled {
  background: #f5f8fc;
  color: #475569;
}
.consult-sheet .field-hint {
  margin-top: 2px;
  color: #7b8798;
}
.consult-sheet .field.is-invalid input,
.consult-sheet .field.is-invalid select,
.consult-sheet .field.is-invalid textarea {
  border-color: #cc406d;
  box-shadow: 0 0 0 3px rgba(204, 64, 109, 0.16);
}
.consult-ox-row.is-invalid,
.consult-chip-block.is-invalid {
  border: 1px solid #f3c0d0;
  background: #fff5f8;
  border-radius: 12px;
  padding: 10px 12px;
}
.consult-section.is-invalid {
  box-shadow: inset 3px 0 0 #cc406d;
  padding-left: 12px;
}
.consult-result-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.consult-chip-block {
  margin: 0;
}
#consultDemoFeatureBlock[hidden] {
  display: none !important;
}
.consult-chip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.consult-chip-head span {
  font-size: 13px;
  font-weight: 750;
  color: #334155;
}
.consult-chip-head small {
  color: #7b8798;
  font-size: 12px;
  font-weight: 650;
}
.consult-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consult-chip {
  border: 1px solid #d5deea;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.consult-chip:hover {
  border-color: #b7c8ea;
  background: #f8fbff;
}
.consult-chip.is-on {
  background: var(--consult-blue-soft);
  border-color: var(--consult-blue);
  color: #16325c;
}
.consult-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.consult-ox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.consult-ox-label {
  font-size: 13.5px;
  font-weight: 750;
  min-width: 78px;
  color: #334155;
}
.consult-ox {
  display: inline-flex;
  gap: 8px;
}
.consult-ox__btn {
  min-width: 52px;
  height: 36px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-weight: 800;
  cursor: pointer;
}
.consult-ox__btn:hover {
  border-color: #b7c8ea;
  background: #f8fbff;
}
.consult-ox__btn.is-on {
  background: var(--consult-blue);
  border-color: var(--consult-blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.22);
}
.consult-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.consult-btn--ghost {
  background: #fff;
  border: 1px solid #d5dbe6;
  color: #334155;
}
.consult-btn--ghost:hover {
  background: #f8fafc;
}
.consult-btn--primary {
  background: var(--consult-blue);
  border: 1px solid var(--consult-blue);
  color: #fff;
}
.consult-btn--primary:hover {
  background: #255fe0;
}
.consult-leave-backdrop {
  z-index: 130;
}
.consult-table td,
.consult-table th {
  white-space: nowrap;
}
.consult-table .consult-note-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.consult-draft-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .consult-sheet .consult-grid--4,
  .consult-sheet .consult-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .consult-sheet__head,
  .consult-sheet__body,
  .consult-sheet__foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .consult-section {
    padding: 18px 16px 16px;
  }
  .consult-sheet .consult-grid--4,
  .consult-sheet .consult-grid--3,
  .consult-sheet .consult-grid--2 {
    grid-template-columns: 1fr;
  }
}
