/* Easyinfo Web - 공통 스타일 (PC / 모바일 겸용) */

:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #d5dce8;
  --border-strong: #b9c4d6;
  --text: #1c2431;
  --text-dim: #64708a;
  --brand: #1e5eb8;
  --brand-dark: #17498f;
  --brand-soft: #e4edfb;
  --danger: #c0362c;
  --danger-soft: #ffdedb;
  --warn-row: #ffbdbd;
  --col-cust: #d6ecf8;
  --col-tax: #d3dff0;
  --col-name: #fadde6;
  --col-emp: #f8d3de;
  --shadow: 0 1px 3px rgba(20, 34, 61, .10), 0 6px 20px rgba(20, 34, 61, .06);
  --radius: 10px;
  --header-h: 54px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --surface: #1a2029;
    --surface-2: #212934;
    --border: #2e3844;
    --border-strong: #3c4857;
    --text: #e4e9f0;
    --text-dim: #94a1b5;
    --brand: #5b9bf0;
    --brand-dark: #4a86d8;
    --brand-soft: #203148;
    --danger: #f08076;
    --danger-soft: #3a1e1c;
    --warn-row: #4d2422;
    --col-cust: #1d3040;
    --col-tax: #1e2b3e;
    --col-name: #38222c;
    --col-emp: #331f28;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

button, input, select { font: inherit; color: inherit; }

/* ------------------------------------------------------------ 버튼 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.kbd { font-size: 11px; opacity: .65; font-weight: 500; }

/* ------------------------------------------------------------ 입력 */

.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-dim); }

.input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  width: 100%;
}
.input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }

/* ------------------------------------------------------------ 로그인 */

.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.login-logo { display: block; max-width: 190px; margin: 0 auto 6px; }

.login-sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 0 24px;
  font-size: 13px;
  min-height: 20px;
}

.login-card .field { margin-bottom: 14px; }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.login-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.login-card .btn-primary { width: 100%; min-height: 44px; }

.error-msg {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 600;
}
.error-msg:empty { display: none; }

/* ------------------------------------------------------------ 앱 레이아웃 */

.app { display: flex; flex-direction: column; height: 100dvh; }

.appbar {
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.appbar img { height: 26px; }
.appbar h1 { font-size: 15px; margin: 0; font-weight: 700; }
.appbar .spacer { flex: 1; }
.appbar .who { font-size: 13px; color: var(--text-dim); }

/* 검색 바 */

.searchbar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.searchbar .tilde { padding-bottom: 9px; color: var(--text-dim); }
.searchbar .date { width: 150px; }
.searchbar .filter { width: 190px; }
.searchbar .spacer { flex: 1; }

.quick { display: flex; gap: 4px; }
.quick button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
}
.quick button:hover { border-color: var(--brand); color: var(--brand); }

.status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  min-height: 30px;
}
.status .ok { color: var(--brand); font-weight: 700; }
.status .warn { color: var(--danger); font-weight: 700; }

/* 본문 : PC 는 상단 그리드 + 하단 2분할 */

.content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
}
.panel-head .cnt { font-weight: 600; opacity: .8; }

.panel-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }

.bottom-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  min-height: 0;
}

/* ------------------------------------------------------------ 표 */

table.grid {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}

table.grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
  padding: 7px 10px;
  text-align: left;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
table.grid thead th:hover { color: var(--brand); }
table.grid thead th .arrow { opacity: .6; font-size: 10px; margin-left: 3px; }

table.grid tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { background: var(--brand-soft); }
table.grid tbody tr.blacklist td { background: var(--warn-row); }
table.grid tbody tr.sel td,
table.grid tbody tr.sel.blacklist td { background: var(--brand); color: #fff; }

td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 원본 그리드의 컬럼별 배경색 재현 */
tr:not(.sel):not(.blacklist) td[data-col="CUST_NM"] { background: var(--col-cust); }
tr:not(.sel):not(.blacklist) td[data-col="TAX_NO"]  { background: var(--col-tax); }
tr:not(.sel):not(.blacklist) td[data-col="NAME"]    { background: var(--col-name); }
tr:not(.sel):not(.blacklist) td[data-col="UPD_EMP"] { background: var(--col-emp); }

.empty { padding: 34px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ------------------------------------------------------------ 모바일 카드 */

.cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; }

.card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
}
.card.blacklist { border-left-color: var(--danger); background: var(--warn-row); }
.card.sel { outline: 2px solid var(--brand); }

.card-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.card-title { font-weight: 700; font-size: 15px; flex: 1; }
.card-code { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  align-items: center;
}
.chip {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 700;
  font-size: 11px;
}
.card-desc { font-size: 13px; white-space: pre-wrap; word-break: break-word; }

.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.card-actions button {
  flex: 1;
  min-height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.card-more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: none;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  font-size: 12.5px;
}
.card.open .card-more { display: grid; }
.card-more dt { color: var(--text-dim); font-weight: 600; }
.card-more dd { margin: 0; word-break: break-all; }

/* ------------------------------------------------------------ 데스크톱 기본 */

.tabs { display: none; }
.sheet-grip { display: none; }
.backdrop { display: none; }

@media (min-width: 861px) {
  .cards { display: none; }
  .detail-sheet { display: contents; }
}

/* ------------------------------------------------------------ 모바일 레이아웃 */

@media (max-width: 860px) {
  .content { display: block; padding: 8px; overflow: hidden; }
  .panel.main { height: 100%; }
  .panel.main .panel-body table.grid { display: none; }

  .searchbar { padding: 10px; gap: 8px; }
  .searchbar .date { flex: 1; width: auto; min-width: 0; }
  .searchbar .filter { width: 100%; }
  .searchbar .spacer { display: none; }
  .searchbar .quick { width: 100%; overflow-x: auto; }

  /* 하단 2분할 -> 아래에서 올라오는 시트 */
  .detail-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: 12%;   /* 내용을 넓게 보려고 시트를 높였다 */
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .22);
    transform: translateY(100%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .detail-sheet.open { transform: translateY(0); }

  .sheet-grip {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px 6px;
    border-bottom: 1px solid var(--border);
  }
  .sheet-grip .bar {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 6px; width: 38px; height: 4px; border-radius: 3px; background: var(--border-strong);
  }
  .sheet-title { font-weight: 700; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .tabs { display: flex; flex: none; border-bottom: 1px solid var(--border); }
  .tabs button {
    flex: 1;
    min-height: 42px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
  }
  .tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }

  .bottom-row { display: block; flex: 1; min-height: 0; overflow: hidden; }
  .bottom-row .panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    display: none;
  }
  .bottom-row .panel.active { display: flex; }
  .bottom-row .panel-head { display: none; }

  .backdrop {
    position: fixed; inset: 0; z-index: 39;
    background: rgba(0, 0, 0, .35);
    opacity: 0; pointer-events: none;
    transition: opacity .22s;
    display: block;
  }
  .backdrop.open { opacity: 1; pointer-events: auto; }
}

/* ------------------------------------------------------------ 로딩 / 토스트 */

.loading {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, .55);
}
@media (prefers-color-scheme: dark) { .loading { background: rgba(0, 0, 0, .5); } }
.loading.on { display: grid; }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 95;
  background: #222a36;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 90vw;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================ 메뉴 서랍 */

.btn.icon { min-width: 38px; padding: 0 8px; font-size: 17px; line-height: 1; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  max-width: 84vw;
  z-index: 60;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
  transform: translateX(-100%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  flex: none;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.drawer-body { flex: 1; overflow: auto; padding: 8px 0 20px; }

.drawer-group { padding: 6px 0; }
.drawer-group + .drawer-group { border-top: 1px solid var(--border); }

.drawer-title {
  padding: 8px 16px 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-transform: none;
}

.drawer-sub {
  padding: 6px 16px 2px 22px;
  font-size: 11.5px;
  color: var(--text-dim);
  opacity: .75;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 22px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
a.drawer-item:hover { background: var(--surface-2); }
a.drawer-item.active { border-left-color: var(--brand); color: var(--brand); font-weight: 700; background: var(--brand-soft); }

.drawer-item.off { color: var(--text-dim); opacity: .6; cursor: default; }
.drawer-item em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 6px;
}

.drawer-empty { padding: 20px 16px; color: var(--text-dim); font-size: 13px; }

.drawer-back {
  position: fixed; inset: 0; z-index: 59;
  background: rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.drawer-back.open { opacity: 1; pointer-events: auto; }

/* ============================================================ 모달 */

.modal-back {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 22, 34, .45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-back.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.confirm { max-width: 360px; }

.modal-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
}
.modal-head .spacer { flex: 1; }

.modal-body { flex: 1; overflow: auto; padding: 18px; }
.modal-body p { margin: 0; font-size: 14px; }

.modal-foot {
  flex: none;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.93); }

/* 폼 격자 */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

textarea.input { min-height: 130px; padding: 8px 10px; resize: vertical; line-height: 1.55; font-family: inherit; }

.input-row { display: flex; gap: 6px; }
.input-row .input { flex: 1; min-width: 0; }
.input[readonly] { background: var(--surface-2); color: var(--text-dim); }

.hint { font-size: 11.5px; color: var(--text-dim); }

/* 거래처 검색 결과 */

.pick-list { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.pick-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
}
.pick-row:last-child { border-bottom: none; }
.pick-row:hover { background: var(--brand-soft); }
.pick-row .code { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.pick-row .nm { font-weight: 600; }
.pick-row .tel { color: var(--text-dim); font-size: 12px; }

/* ============================================================ 상세 정보 패널 */

.info-list { padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 12.5px; align-content: start; }
.info-list dt { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.info-list dd { margin: 0; word-break: break-word; }
.info-list .memo { grid-column: 1 / -1; white-space: pre-wrap; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; margin-top: 4px; }

.toast.bad { background: var(--danger); }

/* 상태 배지 */
.badge-done { background: #d8f0dc; color: #1d6b32; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.badge-open { background: #ffe6c9; color: #8a5200; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .badge-done { background: #1d3325; color: #86d79b; }
  .badge-open { background: #3a2c17; color: #ecb464; }
}

/* ============================================================ B51 전용 레이아웃 */

@media (min-width: 861px) {
  .content.b51 {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .content.b51 > .panel.main { grid-column: 1; grid-row: 1; }
  .content.b51 .panel.info { grid-column: 2; grid-row: 1 / 3; }
  .content.b51 .bottom-row { grid-column: 1; grid-row: 2; }
}

@media (max-width: 860px) {
  /* 시트 안에서는 세 패널이 탭으로 번갈아 나온다 */
  .detail-sheet .bottom-row { display: contents; }
  .detail-sheet .panel { display: none; }
  .detail-sheet .panel.active { display: flex; flex: 1; min-height: 0; }
  .detail-sheet .panel-head { display: none; }
}

.panel.info .panel-body { padding-bottom: 12px; }

/* 요약 줄 (거래처 정보 패널 머리) */
.info-head {
  padding: 12px 12px 6px;
  border-bottom: 1px solid var(--border);
}
.info-head .nm { font-weight: 700; font-size: 15px; }
.info-head .cd { color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }

/* 내용 셀은 줄바꿈 허용 */
table.grid td.wrap { white-space: pre-wrap; word-break: break-word; max-width: 520px; }

/* ============================================================ B531 (단일 패널) */

.content.single { display: block; padding: 12px 14px 14px; }
.content.single .panel { height: 100%; }

.panel-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.work-body { padding: 0; display: flex; }
textarea.input.work {
  flex: 1;
  border: none;
  border-radius: 0;
  resize: none;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.7;
  min-height: 0;
}
textarea.input.work:focus { outline: none; }

@media (max-width: 860px) {
  .content.single { padding: 8px; }
  .searchbar .field { flex: 1; min-width: 120px; }
  .searchbar .field .input { width: 100% !important; }
}

/* ============================================================ 모바일 상세: 표 대신 목록 */

.sublist { display: none; }

@media (max-width: 860px) {
  /* 상세 시트 안에서는 좁은 표 대신 내용 위주의 목록으로 보여준다 */
  .detail-sheet table.grid { display: none; }
  .sublist { display: block; padding: 4px 10px 14px; }
}

.sub-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sub-item:last-child { border-bottom: none; }

.sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.sub-meta .chip { font-size: 10.5px; padding: 0 7px; }

.sub-text {
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}
.sub-text:empty::before { content: '(내용 없음)'; color: var(--text-dim); font-size: 12.5px; }

/* 카드 앞면 전화번호 */
.card-meta a.tel {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card-meta a.tel::before { content: '☎ '; font-weight: 400; }
