/* ── 토큰 ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #ffffff;
  --ui-bg:   rgba(255,255,255,0.98);
  --bd:      rgba(174,171,171,0.56);
  --bd-md:   rgba(49,50,53,0.45);
  --text:    #111111;
  --muted:   #5d5f64;
  --accent:  #313235;
  --acc-fg:  #ffffff;
  --red:     #b03030;
  --green:   #2a7a4e;
  --panel-w: 286px;
  --r:       2px;
  --r-sm:    2px;
  --fs:      8pt;
  --fs-sm:   7.5pt;
  --fs-xs:   7pt;
  --sh:      0 0 5px rgba(174,171,171,.25);
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden; font-size: var(--fs);
  -webkit-font-smoothing: antialiased;
}
body.commerce-loading {
  cursor: progress;
}
#brand-home {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 910;
  width: 164px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#brand-home img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#commerce-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.24);
  backdrop-filter: blur(2px);
  z-index: 950;
}
#commerce-overlay.is-visible {
  display: flex;
}
.commerce-overlay-card {
  width: min(360px, calc(100vw - 40px));
  padding: 20px 18px 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
  text-align: center;
}
.commerce-overlay-kicker {
  font-size: 6pt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.commerce-overlay-title {
  font-size: 10pt;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.commerce-progress {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 50, 53, 0.10);
}
.commerce-progress-bar {
  position: absolute;
  top: 0;
  left: -38%;
  width: 38%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  animation: commerce-progress-slide 1.2s ease-in-out infinite;
}
.commerce-overlay-detail {
  margin-top: 12px;
  font-size: 6.5pt;
  line-height: 1.5;
  color: var(--muted);
}

@keyframes commerce-progress-slide {
  0% { left: -38%; }
  100% { left: 100%; }
}

/* ── 캔버스 ─────────────────────────────────────────────────────────────── */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── 가격 바 ────────────────────────────────────────────────────────────── */
#price-bar {
  position: fixed; bottom: 14px; right: 14px;
  background: rgba(255,255,255,0.98);
  color: var(--text);
  border: 1px solid var(--bd);
  border-radius: var(--r); padding: 8px 12px;
  display: flex; align-items: baseline; gap: 7px;
  z-index: 200; box-shadow: var(--sh); user-select: none;
}
.price-label { font-size: 6pt; letter-spacing: .14em; opacity: .7; text-transform: uppercase; }
#price-total { font-size: var(--fs); font-weight: 600; letter-spacing: 0; }
#top-warning {
  display: none;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(460px, calc(100vw - 28px));
  padding: 8px 10px;
  border: 1px solid rgba(140, 116, 26, 0.22);
  background: rgba(252, 247, 223, 0.96);
  color: #6c5a12;
  font-size: 6pt;
  line-height: 1.45;
  letter-spacing: 0.02em;
  box-shadow: var(--sh);
  z-index: 260;
  pointer-events: none;
  text-align: center;
}
#top-warning.is-visible { display: block; }

/* ── 사이드바 ───────────────────────────────────────────────────────────── */
#ui {
  position: fixed; top: 0; left: 0;
  width: var(--panel-w); height: 100vh;
  background: var(--ui-bg);
  border-right: 1px solid var(--bd);
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto; scrollbar-width: none;
  box-shadow: 0 0 5px rgba(174,171,171,.18);
}
#ui::-webkit-scrollbar { display: none; }

/* ── 헤더 (로고 + 치수) ─────────────────────────────────────────────────── */
.ui-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--bd);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.logo-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.25;
}
.inline-brand-link {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  vertical-align: baseline;
  align-self: flex-start;
}
.inline-brand-link:hover {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  transform: none;
}
.inline-brand-link:focus-visible {
  outline: 1px solid var(--bd-md);
  outline-offset: 1px;
}
.dim-summary {
  font-size: var(--fs-xs);
  color: var(--muted);
  flex: 0 0 auto;
  max-width: 34%;
  text-align: right;
}

/* ── 섹션 ───────────────────────────────────────────────────────────────── */
.ui-section { padding: 10px 14px; border-bottom: 1px solid var(--bd); }
.ui-section-title {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

/* ── 버튼 기본 ─────────────────────────────────────────────────────────── */
button {
  font-family: inherit; font-size: var(--fs-sm); cursor: pointer;
  border: 1px solid var(--bd-md); background: #fff; color: var(--text);
  border-radius: var(--r-sm); height: 28px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  transition: background .12s, color .12s, border-color .12s, transform .12s; white-space: nowrap;
  line-height: 1;
}
button:hover  { background: var(--accent); color: var(--acc-fg); border-color: var(--accent); transform: translateY(-1px); }
button.active { background: var(--accent); color: var(--acc-fg); border-color: var(--accent); }
button.danger { border-color: var(--red); color: var(--red); }
button.danger:hover { background: var(--red); color: #fff; }
.btn-acc  { background: var(--accent); color: var(--acc-fg); border-color: var(--accent); }
.btn-acc:hover { opacity: .84; background: var(--accent); }
.btn-full { width: 100%; }
.btn-row  { display: flex; gap: 4px; }
.btn-row button { flex: 1; }

/* ── Dimensions 한 줄 컨트롤 ───────────────────────────────────────────── */
.ctrl-line { display: flex; align-items: center; gap: 3px; overflow: visible; flex-wrap: wrap; }

/* 스텝퍼: − W 2 + */
.stepper {
  display: flex; align-items: center;
  border: 1px solid var(--bd-md); border-radius: var(--r-sm);
  overflow: hidden; height: 28px; flex-shrink: 0; min-width: 0;
  background: #fcfbf8;
}
.stepper button {
  width: 20px; height: 28px; border: none; border-radius: 0;
  background: transparent; font-size: var(--fs); padding: 0; flex-shrink: 0;
}
.stepper button:hover { background: var(--accent); color: var(--acc-fg); }
.s-lbl { font-size: var(--fs-xs); color: var(--muted); padding: 0 1px; }
.s-val { font-size: var(--fs); font-weight: 600; min-width: 20px; text-align: center; padding: 0 3px; }

/* Depth / Base 토글 버튼 */
.tog-btn {
  flex: 1; min-width: 0;
  background: white; color: var(--text);
  border: 1px solid var(--bd-md);
  font-size: var(--fs-xs); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
}
.tog-btn:hover  { background: var(--accent); color: var(--acc-fg); border-color: var(--accent); }
.tog-btn.active { background: var(--accent); color: var(--acc-fg); border-color: var(--accent); }

/* ── 컬러 팔레트 ────────────────────────────────────────────────────────── */
.color-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.color-chip {
  aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(17,17,17,0.12);
  transition: transform .1s, border-color .1s;
}
.color-chip:hover    { transform: scale(1.08); border-color: var(--accent); }
.color-chip.selected { border-color: var(--accent); transform: scale(1.04);
  box-shadow: 0 0 0 2px #fcfbf8, 0 0 0 3px var(--accent); }

/* ── Parts list 접힘 ────────────────────────────────────────────────────── */
.coll-hdr {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0;
}
.coll-hdr:hover { color: var(--text); }
.coll-hint { font-size: var(--fs-xs); font-weight: 400; text-transform: none; letter-spacing: 0; }
.coll-body { display: none; margin-top: 6px; }
.coll-body.open { display: block; }
#bom-list { max-height: 130px; overflow-y: auto; margin-bottom: 4px; }
.bom-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 5px; font-size: var(--fs-xs); color: var(--muted); font-weight: 500;
  padding: 1px 0; border-bottom: 1px dotted var(--bd);
}
.bom-qty   { font-weight: 600; color: var(--text); }
.bom-price { font-variant-numeric: tabular-nums; }

/* ── 가격 요약 ──────────────────────────────────────────────────────────── */
.price-summary { padding: 6px 0 7px; border-top: 1px solid var(--bd); margin-top: 5px; }
.p-row {
  display: flex; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--muted);
  padding: 1px 0; border-bottom: 1px dotted var(--bd);
}
.p-total { color: var(--text); font-weight: 700; font-size: var(--fs-sm); border-bottom: none; }

/* ── Quote 블록 ─────────────────────────────────────────────────────────── */
.quote-block { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bd); }
.quote-actions { display: flex; gap: 4px; margin-bottom: 6px; }
.quote-actions button { flex: 1; }
.q-input {
  width: 100%; font-family: inherit; font-size: var(--fs-sm);
  padding: 5px 7px; border: 1px solid var(--bd-md);
  border-radius: var(--r-sm); background: white; outline: none; margin-bottom: 5px;
  color: var(--text);
}
.q-input:focus { border-color: var(--accent); }

/* ── Config 코드 ────────────────────────────────────────────────────────── */
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 3px;
  margin-bottom: 5px;
}
.code-input {
  flex: 1; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: var(--fs-xs);
  font-weight: 600; padding: 3px 6px; border: 1px solid var(--bd-md);
  border-radius: var(--r-sm); background: #fff; color: var(--text); outline: none;
  min-width: 0;
}
.code-input:focus { border-color: var(--accent); }
.code-error { font-size: var(--fs-xs); color: var(--red); display: none; text-align: center; margin-bottom: 4px; }

/* ── 유틸 버튼 한 줄 ────────────────────────────────────────────────────── */
.util-row { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.util-row button {
  flex: 1 1 calc(33.333% - 3px);
  min-width: 56px;
  font-size: var(--fs-xs);
  padding: 0 4px;
  overflow: hidden;
}

/* ── Context menu ───────────────────────────────────────────────────────── */
#ctx-menu {
  position: fixed; display: none; flex-direction: column; gap: 2px;
  z-index: 500; background: rgba(252,250,247,0.98);
  border: 1px solid var(--bd-md); border-radius: var(--r);
  padding: 6px; min-width: 182px; box-shadow: var(--sh);
}
.ctx-label {
  font-size: 6pt; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  padding: 1px 3px 4px; border-bottom: 1px solid var(--bd); margin-bottom: 1px;
}
.ctx-info { font-size: var(--fs-sm); color: var(--muted); padding: 1px 3px 3px; font-style: italic; }
.ctx-btn  { width: 100%; height: 27px; border-radius: var(--r-sm); font-size: var(--fs-sm); justify-content: flex-start; }
.ctx-type { font-weight: 500; }
.ctx-disabled { opacity: .35; cursor: not-allowed; }
.ctx-disabled:hover { background: white; color: var(--text); border-color: var(--bd-md); }
.ctx-remove { color: var(--red); border-color: #e0bebe; }
.ctx-remove:hover { background: var(--red); color: #fff; border-color: var(--red); }
.ctx-cancel { color: var(--muted); font-size: var(--fs-xs); }
.ctx-cancel:hover { background: rgba(0,0,0,.04); color: var(--text); border-color: var(--bd-md); }

/* ── 호버 툴팁 ──────────────────────────────────────────────────────────── */
#hover-tooltip {
  display: none; position: fixed; z-index: 600;
  background: rgba(17,17,17,0.92); color: #f8f5ef;
  font-size: 6pt; font-family: inherit;
  padding: 3px 8px; border-radius: var(--r-sm);
  pointer-events: none; white-space: nowrap;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#color-tooltip {
  display: none;
  position: fixed;
  z-index: 610;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17,17,17,0.92);
  color: #f8f5ef;
  font-size: 6pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(17,17,17,0.12);
}

/* ── 모바일 ─────────────────────────────────────────────────────────────── */
#mobile-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 68px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(174,171,171,0.56);
  border-radius: 14px;
  z-index: 300;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  gap: 6px;
  box-shadow: var(--sh);
}
.nav-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  height: 100%;
  padding: 6px 4px;
  font-size: var(--fs);
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
}
.nav-btn .nav-icon { font-size: var(--fs); line-height: 1; }
.nav-btn.active {
  color: var(--acc-fg);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.nav-btn:hover  { background: rgba(26,26,24,0.08); color: var(--accent); }
#bottom-sheet {
  display: none;
  position: fixed;
  bottom: 92px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 116px);
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(174,171,171,0.56);
  border-radius: 16px 16px 0 0;
  z-index: 299;
  overflow-y: auto;
  transform: translateY(108%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 12px 14px 16px;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh);
}
#bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.14);
  align-self: center;
}
.sheet-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sheet-kicker {
  font-size: 6pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-title {
  font-size: var(--fs);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.sheet-close {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: var(--fs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mobile-summary-card,
.sheet-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 10px;
  box-shadow: none;
}
.mobile-summary-card {
  padding: 12px 14px;
}
.mobile-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--fs);
  color: var(--muted);
}
.mobile-summary-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: var(--fs);
  font-weight: 700;
  color: var(--text);
}
.mobile-summary-value {
  max-width: 68%;
  text-align: right;
  font-weight: 700;
  color: var(--text);
}
.sheet-section { display: none; }
.sheet-section.active { display: block; }
.sheet-card {
  padding: 12px;
}
.sheet-card-title {
  font-size: 6pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.mobile-ctrl-line {
  gap: 6px;
  overflow: visible;
  flex-wrap: wrap;
}
.mobile-ctrl-line.secondary {
  margin-top: 8px;
}
.mobile-ctrl-line .stepper {
  min-width: 74px;
}
.mobile-ctrl-line .tog-btn {
  min-width: 86px;
}
.sheet-note {
  margin: -1px 0 8px;
  font-size: 6pt;
  line-height: 1.45;
  color: var(--muted);
}
.sheet-note-status {
  display: none;
  color: var(--text);
}
.inline-copy-link {
  border: 0;
  background: transparent;
  color: inherit;
  height: auto;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  border-radius: 0;
  vertical-align: baseline;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.inline-copy-link:hover {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.inline-copy-link:focus-visible {
  outline: 1px solid var(--bd-md);
  outline-offset: 1px;
}
#sales-contact-note a,
#sales-contact-note .inline-copy-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* ── 프린트 ─────────────────────────────────────────────────────────────── */
.print-only { display: none; }
@media print {
  #three-canvas, #ui, #mobile-nav, #bottom-sheet, #ctx-menu, #price-bar, #hover-tooltip, #color-tooltip, #brand-home, #commerce-overlay {
    display: none !important;
  }
  body { background: white; overflow: auto; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
  .print-only { display: block; }
  #print-layout { padding: 20px 24px; max-width: 680px; margin: 0 auto; }

  /* 헤더 */
  .print-header { display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 10px; border-bottom: 1.5px solid #1a1a18; margin-bottom: 14px; }
  .print-brand { font-size: 8pt; font-weight: 700; letter-spacing: 1px; color: #1a1a18; }
  .print-subtitle { font-size: 8pt; color: #666; margin-top: 2px; }
  .print-meta { text-align: right; font-size: 8pt; color: #999; line-height: 1.6; }
  .print-code-val { font-family: monospace; font-size: 8pt; color: #555; }

  /* 이미지 */
  #print-img { width: 100%; border: 1px solid #e8e8e8; margin-bottom: 14px;
    border-radius: 4px; display: block; }

  /* BOM 테이블 */
  .print-section-title { font-size: 8pt; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; color: #888; margin-bottom: 5px; }
  .print-bom-item {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: 8px; font-size: 8pt; padding: 2.5px 0;
    border-bottom: 0.5px solid #ebebeb; color: #333;
  }
  .print-bom-item.header {
    font-weight: 700; color: #1a1a18;
    border-bottom: 1px solid #ccc; padding-bottom: 4px; margin-bottom: 1px;
  }
  .print-bom-qty   { font-weight: 600; text-align: center; }
  .print-bom-price { text-align: right; font-variant-numeric: tabular-nums; }

  /* 가격 */
  .print-price-section { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ccc; }
  .print-price-row { display: flex; justify-content: space-between;
    font-size: 8pt; color: #666; padding: 1.5px 0; }
  .print-price-row.total {
    font-size: 8pt; font-weight: 700; color: #1a1a18;
    margin-top: 5px; padding-top: 5px; border-top: 1.5px solid #1a1a18;
  }

  /* 푸터 */
  .print-footer { margin-top: 12px; font-size: 8pt; color: #aaa;
    text-align: center; border-top: 0.5px solid #e8e8e8; padding-top: 8px; }
  .print-config { font-family: monospace; }
}

/* ── 반응형 ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #brand-home {
    top: 10px;
    right: 10px;
    width: 136px;
    height: 42px;
  }
  #ui { display: none; }
  #mobile-nav, #bottom-sheet { display: flex; }
  #price-bar {
    left: 12px;
    right: 12px;
    bottom: 88px;
    padding: 8px 12px;
    justify-content: space-between;
  }
  #price-total { font-size: var(--fs); }
  .color-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .color-chip { min-height: 28px; }
  #mobile-palette {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 18px;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 6px;
    justify-content: start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #mobile-palette::-webkit-scrollbar { display: none; }
  #mobile-palette .color-chip {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    height: 18px;
  }
  .quote-actions {
    flex-wrap: wrap;
  }
  .quote-actions button {
    flex: 1 1 calc(50% - 4px);
  }
}
@media (min-width: 769px) { #mobile-nav, #bottom-sheet { display: none !important; } }

@media (min-width: 769px) and (max-width: 980px) {
  :root { --panel-w: 248px; }
}

/* ── 스크롤바 ───────────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--bd-md) transparent; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--bd-md); border-radius: 3px; }

.ctrl-lbl-out {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--muted); flex-shrink: 0; line-height: 1;
}

/* ── 다중 통화 표시 (그리드 박스) ───────────────────────────────────────────── */
.curr-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; margin-top: 6px; padding-top: 6px;
  border-top: 1px solid var(--bd);
}
.curr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--bd);
  border-radius: 2px;
  padding: 3px 4px; text-align: center;
}
.curr-item.wide { grid-column: span 2; }
.curr-code {
  font-size: 6pt;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: left;
}
.curr-val {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.curr-note {
  font-size: 6pt; color: var(--muted); text-align: center;
  margin-top: 4px;
}
