/* 골든패스 관리: the admin's layout and components. Colours only through the 66 roles of theme.css (palette p3);
   no colour literal in this file. Type follows the site: 15 17 21 28 36 (nothing under 15 px), tabular figures,
   Pretendard. Radii 8 (controls), 12 (cards, rows), 16 (sheets). Gold is a ground for one figure and the mark,
   never a button; every action is ink. Desktop from 1024: a dark rail with the six parts; phone: five tabs at the
   bottom, 설정 behind the account picture (23 v3 §3.1). */
@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920; font-style: normal; font-display: block;
}
:root {
  --rail: 232px; --top: 64px; --tabs: 64px; --gut: 16px;
  --line: var(--surface-card-border);
  --shadow-1: 0 1px 2px rgb(var(--ink-rgb) / 0.06);
  --shadow-2: 0 10px 28px rgb(var(--ink-rgb) / 0.16), 0 2px 6px rgb(var(--ink-rgb) / 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) { :root { --gut: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface-page); color: var(--text-body);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.rail :focus-visible, .brand :focus-visible { outline-color: var(--focus-ring-on-dark); }
[inert], [inert] * { cursor: default !important; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num, .tn { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
.strong { color: var(--text-strong); font-weight: 700; }
.kbd { display: none; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--control-border);
  font: 600 15px/22px "Pretendard Variable", sans-serif; color: var(--text-muted); text-align: center; background: var(--surface-card); }
@media (min-width: 1024px) and (hover: hover) { .kbd { display: inline-block; } }

/* ---------------------------------------------------------------- top bar */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: var(--surface-card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.mark { width: 33px; height: 22px; flex: none; }
.mark-ticket { fill: var(--figure-box); }
.mark-dot { fill: var(--surface-card); }
.brand-word, .brand-sub { display: none; }
.find { position: relative; flex: 1; min-width: 0; }
.find input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--control-border); border-radius: 999px;
  background: var(--surface-card); color: var(--text-strong); font-size: 17px; -webkit-appearance: none; appearance: none; }
.find input::placeholder { color: var(--text-muted); opacity: 1; }
.find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find-ic { position: absolute; left: 14px; top: 12px; color: var(--text-muted); pointer-events: none; }
.find-kbd { position: absolute; right: 12px; top: 11px; }
.top-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-strong); }
.icon-btn:hover { background: var(--action-secondary-hover); }
.icon-btn .ic { width: 24px; height: 24px; }
.new-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--action-primary); color: var(--action-primary-text); font-weight: 700; }
.new-btn:hover { background: var(--action-primary-hover); }
.new-btn .ic { width: 22px; height: 22px; }
.new-word { display: none; }
.bell-n { position: absolute; top: 4px; right: 3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--action-primary);
  color: var(--action-primary-text); font: 700 15px/20px "Pretendard Variable", sans-serif; }
.acct { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--surface-band-dark); color: var(--text-on-dark);
  font-size: 15px; font-weight: 700; }
.acct-who { display: none; text-align: left; line-height: 1.25; }
.acct-who b { display: block; font-size: 15px; color: var(--text-strong); }
.acct-who span { display: block; font-size: 15px; color: var(--text-muted); }
.sample-tag { display: none; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--badge-sample);
  color: var(--badge-sample-text); box-shadow: inset 0 0 0 1px var(--badge-sample-border); font-size: 15px; font-weight: 600; white-space: nowrap; }
.bell { display: none; }

/* ---------------------------------------------------------------- nav: phone tabs, desktop rail */
.rail { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface-card); border-top: 1px solid var(--line); }
.rail ul { display: flex; height: var(--tabs); }
.rail li { flex: 1; min-width: 0; }
.rail li.set { display: none; }
.rail a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%;
  font-size: 15px; line-height: 1.2; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.rail a .ic { width: 24px; height: 24px; }
.rail a[aria-current="page"] { color: var(--text-strong); font-weight: 800; }
.rail a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--action-primary); }
.rail .n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--action-primary); color: var(--action-primary-text); font: 700 15px/20px "Pretendard Variable", sans-serif; text-align: center; }
.main { display: block; padding: calc(var(--top) + 12px) var(--gut) calc(var(--tabs) + 32px + env(safe-area-inset-bottom)); max-width: 100%; outline: 0; }

@media (min-width: 1024px) {
  .top { padding: 0 24px 0 0; gap: 16px; }
  .brand { width: var(--rail); height: var(--top); padding: 0 20px; background: var(--surface-band-dark); gap: 10px; }
  .mark { width: 36px; height: 24px; }
  .mark-dot { fill: var(--surface-band-dark); }
  .brand-word { display: inline; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-on-dark); }
  .brand-sub { display: inline; font-size: 15px; font-weight: 600; color: var(--text-accent-on-dark); }
  .find { flex: 0 1 560px; }
  .top-acts { margin-left: auto; gap: 8px; }
  .new-btn { padding: 0 18px 0 14px; }
  .new-word { display: inline; }
  .acct { padding-right: 4px; }
  .acct-who { display: block; }
  .sample-tag { display: inline-flex; }
  .bell { display: inline-grid; }
  .rail { top: var(--top); bottom: 0; right: auto; width: var(--rail); height: auto; padding: 16px 12px; background: var(--surface-band-dark); border: 0; }
  .rail ul { flex-direction: column; height: auto; gap: 4px; }
  .rail li { flex: none; }
  .rail li.set { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--surface-band-dark-border); }
  .rail a { flex-direction: row; justify-content: flex-start; gap: 12px; height: 48px; padding: 0 14px; border-radius: 10px; font-size: 17px;
    color: var(--text-on-dark-muted); }
  .rail a:hover { background: var(--surface-band-dark-2); color: var(--text-on-dark); }
  .rail a[aria-current="page"] { background: var(--action-nav-pill); color: var(--action-nav-pill-text); }
  .rail a[aria-current="page"]::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; background: var(--text-accent-on-dark); }
  .rail .n { position: static; margin-left: auto; background: transparent; color: var(--text-accent-on-dark); font-size: 17px; line-height: 1; }
  .main { margin-left: var(--rail); padding: calc(var(--top) + 24px) 32px 48px; max-width: calc(1240px + var(--rail)); }
}

/* ---------------------------------------------------------------- page head */
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 12px; }
.ph h1 { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.ph .sub { font-size: 15px; color: var(--text-muted); }
.ph .end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1024px) { .ph { margin-bottom: 18px; } .ph h1 { font-size: 28px; } .ph .sub { font-size: 17px; } }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -4px 0 4px -8px; padding: 0 10px 0 4px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-strong); font-weight: 600; }
.back:hover { background: var(--action-secondary-hover); }

/* ---------------------------------------------------------------- buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--action-primary); color: var(--action-primary-text); font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-decoration: none; transition: background-color .15s var(--ease); }
.btn:hover { background: var(--action-primary-hover); }
.btn .ic { width: 18px; height: 18px; }
.btn-line { background: var(--action-secondary); color: var(--action-secondary-text); box-shadow: inset 0 0 0 1.5px var(--action-secondary-border); }
.btn-line:hover { background: var(--action-secondary-hover); }
.btn-soft { background: var(--surface-band-tint); color: var(--text-strong); }
.btn-soft:hover { background: var(--surface-band-tint-border); }
.btn-text { background: transparent; color: var(--text-strong); padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.btn-text:hover { background: var(--action-secondary-hover); }
.btn-kakao { background: var(--kakao); color: var(--kakao-text); }
.btn-wide { width: 100%; }
.btn-tall { min-height: 52px; font-size: 17px; }
.btn[disabled] { background: var(--badge-sample); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
.btn-wrap { white-space: normal; text-align: left; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 48px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--surface-card); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--control-border); font-size: 17px; font-weight: 600; white-space: nowrap; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--text-strong); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-current="true"] { background: var(--action-primary); color: var(--action-primary-text); box-shadow: none; }
.chip .n { font-weight: 800; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-band-tint); }
.seg .chip { box-shadow: none; background: transparent; }
.seg .chip:hover { background: var(--surface-card); }
.seg .chip[aria-selected="true"], .seg .chip[aria-pressed="true"] { background: var(--action-primary); color: var(--action-primary-text); }
.chip-label { font-size: 15px; font-weight: 700; color: var(--text-muted); margin: 10px 0 6px; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px; font-size: 17px; color: var(--text-strong); cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 0; accent-color: var(--action-primary); flex: none; }

/* ---------------------------------------------------------------- status words (plain text, never a control) */
.st { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 15px; line-height: 1; font-weight: 700; white-space: nowrap; }
.st-초안 { background: var(--tag); color: var(--tag-text); }
.st-검수 { background: var(--tag-new-store); color: var(--tag-new-store-text); }
.st-게시 { background: var(--badge-verified); color: var(--badge-verified-text); }
.st-중단 { background: var(--badge-sample); color: var(--badge-sample-text); box-shadow: inset 0 0 0 1px var(--badge-sample-border); }
.st-완료 { background: var(--tag-transfer); color: var(--tag-transfer-text); }
.st-late { background: var(--badge-new); color: var(--badge-new-text); }
.st-plain { background: var(--surface-band-tint); color: var(--text-body); }
.st-ok { background: var(--badge-verified); color: var(--badge-verified-text); }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--text-location); }
.late-t { color: var(--status-error); font-weight: 800; }
.default-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: var(--tag-new-store); color: var(--tag-new-store-text); white-space: nowrap; }

/* ---------------------------------------------------------------- 오늘 */
.tabs-adm { margin-bottom: 12px; }
.team { margin-bottom: 12px; padding: 10px; border-radius: 12px; background: var(--surface-band-dark); }
.team .lab { align-self: center; flex: none; padding: 0 4px 0 2px; font-size: 15px; font-weight: 700; color: var(--text-on-dark-muted); white-space: nowrap; }
.team .chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.team .chips::-webkit-scrollbar { display: none; }
.team .chip { flex: none; }
@media (min-width: 1024px) { .team .chips { flex-wrap: wrap; overflow: visible; } }
.team .chip { background: var(--surface-band-dark-2); color: var(--text-on-dark); box-shadow: inset 0 0 0 1px var(--surface-band-dark-border); font-size: 15px; padding: 0 12px; }
.team .chip:hover { box-shadow: inset 0 0 0 1.5px var(--text-on-dark); }
.team .chip .n { color: var(--text-accent-on-dark); font-size: 17px; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.count { display: flex; flex-direction: column; justify-content: center; min-height: 64px; margin: 0; padding: 8px 10px; border: 0; border-radius: 12px;
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; color: var(--text-body); }
.count .l { font-size: 15px; line-height: 1.25; font-weight: 600; color: var(--text-muted); }
.count .v { font-size: 21px; line-height: 1.2; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.count.key { background: var(--figure-box); box-shadow: none; }
.count.key .l { color: var(--figure-box-label); }
.count.key .v { color: var(--figure-box-text); }
.count.warn .v { color: var(--status-error); }
@media (max-width: 1023px) {
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .count { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 12px; }
  .count .v { font-size: 24px; }
}
@media (min-width: 1024px) {
  .counts { gap: 12px; margin-bottom: 24px; }
  .count { min-height: 84px; padding: 12px 16px; }
  .count .l { font-size: 17px; }
  .count .v { font-size: 28px; }
  .today-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .today-grid .g-wait { grid-column: 1; }
  .today-grid .g-kakao { grid-column: 1; }
  .today-grid .g-deal { grid-column: 1; }
  .today-grid .g-todo { grid-column: 2; grid-row: 1 / span 4; }
}
.grp { margin-bottom: 20px; }
.grp-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.grp-h h2 { font-size: 17px; line-height: 1.4; font-weight: 800; color: var(--text-strong); }
.grp-h .n { font-size: 17px; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.grp-h .end { margin-left: auto; }
@media (min-width: 1024px) { .grp-h h2, .grp-h .n { font-size: 21px; } }
.list { border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.list > li { position: relative; display: flex; align-items: center; gap: 10px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list > li.col { flex-direction: column; align-items: stretch; }
.r-main { flex: 1; min-width: 0; }
.r-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.r-title { font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--text-strong); }
.rlink { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.rlink:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .rlink { min-height: 28px; } }
.r-sub { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.r-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.wait { font-size: 15px; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wait.late { color: var(--status-error); }
.no { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--text-strong); white-space: nowrap; }
.kakao-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-band-tint-warm); box-shadow: inset 0 0 0 1px var(--surface-band-tint-border); }
.kakao-box > ul > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0; }
.kakao-box > ul > li + li { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--surface-band-tint-border); }
.kakao-box p.t { flex: 1 1 240px; font-size: 17px; line-height: 1.5; color: var(--text-strong); }
.kakao-box .more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.kakao-box .note { margin-top: 8px; font-size: 15px; color: var(--text-muted); }
.callwait { margin-bottom: 16px; padding: 14px; border-radius: 12px; background: var(--surface-band-dark); color: var(--text-on-dark); }
.callwait p.lead { font-size: 17px; font-weight: 800; }
.callwait p.who { margin-top: 2px; font-size: 15px; color: var(--text-on-dark-muted); }
.callwait .acts { margin-top: 10px; }
.callwait .btn { background: var(--action-on-dark); color: var(--action-on-dark-text); }
.callwait .btn:hover { background: var(--action-on-dark-hover); }
.callwait .btn-line { background: transparent; color: var(--text-on-dark); box-shadow: inset 0 0 0 1.5px var(--surface-band-dark-border); }
.callwait :focus-visible { outline-color: var(--focus-ring-on-dark); }
.empty { padding: 16px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; color: var(--text-body); }
.empty.empty-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; }
.rows .ln2 .cl { display: block; }
.more-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--text-muted); }
.notice-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--text-body); }
.notice-line .t { flex: 1 1 200px; }
.task-kind { font-size: 15px; font-weight: 800; color: var(--text-location); }
.readout { margin-top: 6px; padding: 10px 12px; background: var(--surface-band-tint); border-radius: 8px;
  font-size: 15px; line-height: 1.55; color: var(--text-body); }
.readout b { display: block; color: var(--text-strong); }

/* team tab */
.tsec { margin-bottom: 20px; scroll-margin-top: calc(var(--top) + 12px); }
.review { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1024px) { .review { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 20px; } .review .r-acts-row { grid-column: 1 / -1; } }
.review h3 { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.src-box { padding: 12px; border-radius: 8px; background: var(--surface-band-tint); }
.src-box .doc { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--text-body); }
.src-box .doc i { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 4px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); font-style: normal; color: var(--text-muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 15px; }
.kv dt { color: var(--text-muted); font-weight: 600; }
.kv dd { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }

/* numbers tab */
.nums { display: grid; gap: 8px; }
.numrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 12px; text-align: left;
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-body); font-size: 17px; line-height: 1.5; }
.numrow:hover { box-shadow: inset 0 0 0 2px var(--text-strong); }
.numrow .ic { margin-left: auto; color: var(--text-muted); }
.numrow b { color: var(--text-strong); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .numrow { font-size: 21px; min-height: 72px; padding: 14px 20px; } }
.periods { margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface-card); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tbl th, .tbl td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { border-top: 0; font-weight: 700; color: var(--text-muted); background: var(--surface-band-tint); }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .hi { color: var(--status-error); font-weight: 800; }
.tbl .lo { color: var(--status-success); font-weight: 800; }
.tbl-wrap { overflow-x: auto; border-radius: 12px; }
.fineprint { margin-top: 8px; font-size: 15px; color: var(--text-muted); }

/* ---------------------------------------------------------------- lists: 문의, 고객, 매물 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.desk-only { display: none !important; }
@media (max-width: 1023px) { .toolbar .grow { flex: 1 1 100%; } .seg .chip { padding: 0 12px; } }
@media (min-width: 1024px) { .desk-only { display: inline-flex !important; } }
.selwrap { position: relative; display: inline-flex; }
.selwrap select { height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface-card);
  color: var(--text-strong); font-size: 17px; font-weight: 600; -webkit-appearance: none; appearance: none; }
.selwrap .ic { position: absolute; right: 10px; top: 12px; color: var(--text-muted); pointer-events: none; }
.sublab { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 17px; font-weight: 800; color: var(--text-strong); }
.sublab .n { font-variant-numeric: tabular-nums; }
.sublab:first-child { margin-top: 0; }
.rows { border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.rows > li { position: relative; display: grid; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.rows > li:first-child { border-top: 0; }
.rows .open { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.rows .open:hover { background: rgb(var(--ink-rgb) / 0.03); }
.rows .lift, .rows button, .rows a:not(.open), .rows select { position: relative; z-index: 2; }
.rows .nm { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.rows .ln { font-size: 15px; color: var(--text-muted); }
.rows .ln2 { font-size: 15px; color: var(--text-body); }
.rows .tel { font-size: 15px; color: var(--text-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .act { justify-self: end; }
.colhead { display: none; }
/* 문의 rows */
.inq-row { grid-template-columns: minmax(0, 1fr) auto; }
.inq-row .c-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.inq-row .c-what { flex: 1 1 100%; order: 3; font-size: 15px; }
.inq-row .c-own { order: 4; font-size: 15px; }
.inq-row .c-st { display: none; }
.inq-row .c-act { justify-content: flex-end; }
@media (max-width: 1023px) { .inq-row .c-act { flex-direction: column; align-items: stretch; } }
/* 고객 rows */
.cust-row { grid-template-columns: minmax(0, 1fr) auto; }
.cust-row > * { grid-column: 1; }
.cust-row .act { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
.cust-row .c-tn { display: flex; flex-wrap: wrap; gap: 0 10px; }
/* 매물 rows */
.lst-row { grid-template-columns: minmax(0, 1fr) auto; }
.lst-row > * { grid-column: 1 / -1; }
.lst-row .no { grid-column: 1; grid-row: 1; align-self: center; }
.lst-row .l-st { grid-column: 2; grid-row: 1; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
@media (max-width: 1023px) { .lst-row .l-st { max-width: 236px; } }   /* a third flag (공동 · 상대 사무소) wraps instead of covering the number */
.lst-row .l-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lst-row .l-name a { font-size: 17px; font-weight: 800; color: var(--text-strong); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.lst-row .l-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.figs3 { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 15px; color: var(--text-body); }
.figs3 b { color: var(--text-strong); font-weight: 800; font-variant-numeric: tabular-nums; }
.figs3 span { white-space: nowrap; }
.hint { font-size: 15px; font-weight: 700; color: var(--text-location); }
@media (min-width: 1024px) {
  .colhead { display: grid; gap: 12px; padding: 0 14px 6px; font-size: 15px; font-weight: 700; color: var(--text-muted); }
  .inq-row, .inq-head { grid-template-columns: 96px minmax(0, 1.5fr) minmax(0, 1fr) 120px 84px 264px; }
  .inq-row .c-main { display: contents; }
  .inq-row .c-what { order: 0; font-size: 17px; }
  .inq-row .c-own { order: 0; }
  .inq-row .c-st { display: block; }
  .cust-row, .cust-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) 132px 132px auto; }
  .cust-row > *, .cust-row .act { grid-column: auto; grid-row: auto; }
  .cust-row .c-tn { display: contents; }
  .lst-row, .lst-head { grid-template-columns: 84px minmax(0, 1.6fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr) 212px; }
  .lst-row > *, .lst-row .no, .lst-row .l-st, .lst-row .l-acts { grid-column: auto; grid-row: auto; }
  .lst-row .l-st { justify-self: start; justify-content: flex-start; }
  .lst-row .l-acts { justify-content: flex-end; flex-wrap: nowrap; }
  .lst-row .l-name a { min-height: 32px; }
  .figs3 { flex-direction: column; gap: 0; }
}
.grade-tabs { margin-bottom: 12px; }

/* ---------------------------------------------------------------- search panel */
.search-panel { position: fixed; z-index: 45; top: var(--top); left: 0; right: 0; max-height: calc(100vh - var(--top) - var(--tabs)); overflow-y: auto;
  padding: 12px var(--gut) 16px; background: var(--surface-page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
@media (min-width: 1024px) { .search-panel { left: calc(var(--rail) + 8px); right: auto; width: 680px; max-height: calc(100vh - var(--top) - 24px); border-radius: 0 0 16px 16px; } }
.sp-h { margin: 10px 0 6px; font-size: 15px; font-weight: 800; color: var(--text-muted); }
.sp-h:first-child { margin-top: 0; }
.pcard { padding: 14px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--control-border); }
.pcard .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pcard .who a { font-size: 21px; font-weight: 800; color: var(--text-strong); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.pcard .who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard .line { margin-top: 2px; font-size: 15px; color: var(--text-body); }
.pcard .five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.pcard .five .btn { padding: 0 6px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; }
.pcard .orphan { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-band-tint-warm); font-size: 15px; color: var(--text-strong); }
.pcard .acts { margin-top: 10px; }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--line); }
.prow .t { flex: 1 1 160px; }
.prow .t b { font-size: 17px; color: var(--text-strong); }
.prow .t span { display: block; font-size: 15px; color: var(--text-muted); }
.sp-empty { padding: 12px 0; font-size: 17px; color: var(--text-body); }

/* ---------------------------------------------------------------- person, listing, deal screens */
.two { display: grid; gap: 16px; }
@media (min-width: 1024px) { .two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.panel { padding: 16px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin-bottom: 10px; font-size: 17px; font-weight: 800; color: var(--text-strong); }
@media (min-width: 1024px) { .panel { padding: 20px; } .panel h2 { font-size: 21px; } }
.hero-p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hero-p .nm { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.hero-p .tel { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 17px; font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.pin { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-band-tint-warm); box-shadow: inset 0 0 0 1px var(--surface-band-tint-border); }
.pin b { color: var(--text-strong); }
.condchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cond { padding: 4px 10px; border-radius: 999px; background: var(--tag); color: var(--tag-text); font-size: 15px; font-weight: 600; }
.timeline > li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.timeline > li:first-child { border-top: 0; }
.timeline .when { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.recbar { display: flex; flex-wrap: wrap; gap: 8px; }
.ltabs { display: flex; gap: 4px; overflow-x: auto; margin: 4px 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ltabs::-webkit-scrollbar { display: none; }
.ltabs .tab { min-height: 48px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--text-muted); font-size: 17px; font-weight: 700; white-space: nowrap; }
.ltabs .tab[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--action-primary); }
.revbar { position: sticky; top: calc(var(--top) + 4px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; padding: 12px 14px;
  border-radius: 12px; background: var(--surface-band-dark); color: var(--text-on-dark); box-shadow: var(--shadow-2); }
.revbar p { flex: 1 1 260px; font-size: 15px; line-height: 1.5; }
.revbar .btn { background: var(--action-on-dark); color: var(--action-on-dark-text); }
.revbar .btn:hover { background: var(--action-on-dark-hover); }
.revbar .btn-line { background: transparent; color: var(--text-on-dark); box-shadow: inset 0 0 0 1.5px var(--surface-band-dark-border); }
.revbar :focus-visible { outline-color: var(--focus-ring-on-dark); }
.figgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) { .figgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fld label, .fld .lab { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--text-strong); }
.fld .help { margin-top: 4px; font-size: 15px; color: var(--text-muted); }
.fld .err { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--status-error); }
.inp { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface-card);
  color: var(--text-strong); font-size: 17px; -webkit-appearance: none; appearance: none; }
.inp::placeholder { color: var(--text-muted); opacity: 1; }
.inp:hover { border-color: var(--text-body); }
.inp:focus { border-color: var(--text-strong); }
.inp.money { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.inp.changed { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
textarea.inp { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.unit { display: flex; align-items: center; gap: 8px; }
.unit span { flex: none; font-size: 15px; color: var(--text-muted); }
.savedline { margin-top: 10px; font-size: 15px; color: var(--status-success); font-weight: 600; }
.keyfig { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 16px; border-radius: 8px;
  background: var(--figure-box); color: var(--figure-box-text); }
.keyfig .l { font-size: 15px; font-weight: 700; color: var(--figure-box-label); }
.keyfig .v { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.blocking > li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-top: 1px solid var(--line); font-size: 15px; }
.blocking > li:first-child { border-top: 0; }
.blocking > li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
/* the public card preview: the site's listing card, drawn with the same roles */
.pv { max-width: 320px; padding: 12px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.pv-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--surface-band-tint); }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-mark { position: absolute; left: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.74); color: var(--text-on-dark); font-size: 15px; }
.pv-title { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--text-strong); }
.pv-loc { font-size: 15px; font-weight: 600; color: var(--text-location); }
.pv-figs { position: relative; margin: 10px -12px 0; padding: 10px 12px 0; border-top: 2px dotted var(--control-border); }
.pv-key { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: var(--figure-box); color: var(--figure-box-text); }
.pv-key b { font-size: 21px; font-weight: 800; }
/* deal board */
.dstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.dstrip .sep { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }
.dstrip .stepn { display: inline-flex; align-items: baseline; gap: 4px; padding: 0 6px; font-size: 15px; color: var(--text-muted); }
.dstrip .stepn b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.strip-notes { margin-bottom: 16px; font-size: 15px; color: var(--text-muted); }
.board { display: none; }
.dlist { display: block; }
@media (min-width: 1024px) {
  .board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .dlist { display: none; }
}
.bcol { min-width: 0; padding: 8px; border-radius: 12px; background: var(--surface-band-tint); }
.bcol-h { display: flex; align-items: baseline; gap: 6px; padding: 4px 6px 8px; }
.bcol-h .w { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.bcol-h .c { font-size: 17px; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bcol-h { flex-wrap: wrap; }
.bcol-h .sum { flex: 1 1 100%; font-size: 15px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bcards > li + li { margin-top: 8px; }
.dcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.dcard.stale { box-shadow: inset 0 0 0 1.5px var(--status-error); }
.dcard .who { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.dcard .lst { font-size: 15px; color: var(--text-body); }
.dcard .meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 15px; color: var(--text-muted); }
.dcard .btn { margin-top: 6px; width: 100%; padding: 0 8px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.25; }
.dcard .due { font-size: 15px; color: var(--text-muted); }
.dcard .open { position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.dcard .btn, .dcard .lift, .dcard a:not(.open) { position: relative; z-index: 2; }
.fold { margin-top: 12px; }
.fold summary { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; font-size: 17px; font-weight: 700; color: var(--text-strong); list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.stepline { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.stepline span { display: inline-flex; flex-direction: column; min-width: 64px; padding: 6px 10px; border-radius: 8px; background: var(--surface-band-tint); font-size: 15px; color: var(--text-muted); }
.stepline span b { color: var(--text-strong); }
.stepline span.on { background: var(--action-primary); color: var(--action-primary-text); }
.stepline span.on b { color: var(--action-primary-text); }
.stepline span.done b { color: var(--text-strong); }
/* settings */
.sgrp { margin-bottom: 20px; }
.sgrp h2 { margin-bottom: 8px; font-size: 17px; font-weight: 800; color: var(--text-strong); }
.sitems { display: grid; gap: 8px; }
@media (min-width: 768px) { .sitems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sitems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sitem { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; border-radius: 12px; text-align: left;
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-strong); font-size: 17px; font-weight: 700; }
.sitem:hover { box-shadow: inset 0 0 0 2px var(--text-strong); }
.sitem .default-tag { margin-left: auto; }
.sitem .ic { margin-left: auto; color: var(--text-muted); }
.sitem .default-tag + .ic { margin-left: 0; }
.sitepv { padding: 20px; border-radius: 12px; background: var(--surface-band-dark-2); color: var(--text-on-dark); }
.sitepv h2 { font-size: 21px; font-weight: 700; }
.sitepv .pvtext { margin-top: 8px; font-size: 17px; color: var(--text-on-dark-muted); }
.sitepv .fake { display: grid; gap: 8px; margin-top: 16px; max-width: 420px; }
.sitepv .fake span { display: block; height: 44px; border-radius: 8px; background: var(--surface-band-dark); box-shadow: inset 0 0 0 1px var(--surface-band-dark-border); }
.sitepv textarea { margin-top: 8px; }
.sitepv label { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--text-on-dark); }
.sitepv .btn { background: var(--action-on-dark); color: var(--action-on-dark-text); margin-top: 10px; }
.sitepv :focus-visible { outline-color: var(--focus-ring-on-dark); }
.rule-sent > li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 17px; }
.rule-sent > li:first-child { border-top: 0; }

/* ---------------------------------------------------------------- sheets, toast */
.scrim { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgb(var(--band-dark-rgb) / 0.5); }
.sheet { width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0; background: var(--surface-card); color: var(--text-body); box-shadow: var(--shadow-2); outline: 0; }
.sheet .grab { width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 999px; background: var(--surface-card-border); }
@media (min-width: 1024px) {
  .scrim { align-items: center; padding: 24px; }
  .sheet { width: 560px; max-height: 88vh; padding: 20px 24px 22px; border-radius: 16px; }
  .sheet.wide { width: 720px; }
  .sheet .grab { display: none; }
}
.sh-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sh-h h2 { font-size: 21px; line-height: 1.35; font-weight: 800; color: var(--text-strong); }
.sh-who { font-size: 15px; color: var(--text-muted); }
.sh-sec { margin-top: 14px; }
.sh-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sh-foot .btn { flex: 1 1 140px; min-height: 52px; }
.sh-foot .btn-text { flex: 0 0 auto; }
.res4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.res4 .btn { min-height: 56px; font-size: 17px; justify-content: flex-start; padding: 0 14px; }
.res4 .btn .kbd { margin-left: auto; background: transparent; box-shadow: inset 0 0 0 1px var(--surface-band-dark-border); color: var(--text-on-dark-muted); }
@media (min-width: 1024px) { .res4.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .res4.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dial { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-band-tint); }
.dial .big { font-size: 28px; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.dial .s { font-size: 15px; color: var(--text-muted); }
.sheet .fld + .fld { margin-top: 12px; }
.sheet .chip-row + .chip-row { margin-top: 8px; }
.picklist > li + li { margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 12px; text-align: left;
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--control-border); color: var(--text-strong); font-size: 17px; }
.pick:hover { box-shadow: inset 0 0 0 2px var(--text-strong); }
.pick[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--action-primary); background: var(--surface-band-tint); }
.pick .s { margin-left: auto; font-size: 15px; color: var(--text-muted); }
.pickrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.pickrow:first-child { border-top: 0; }
.pickrow .t { flex: 1 1 180px; font-size: 15px; color: var(--text-body); }
.pickrow .t b { display: block; font-size: 17px; color: var(--text-strong); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slots .btn { min-height: 52px; }
.signline { margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--surface-band-tint); font-size: 15px; color: var(--text-body); }
.fee-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.fee-t th, .fee-t td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; }
.fee-t td.n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-strong); }
.badrow { padding: 10px 12px; border-radius: 8px; background: var(--status-error-surface); font-size: 15px; color: var(--text-strong); }
.badrow + .badrow { margin-top: 6px; }
.badrow b { color: var(--status-error); }
.goodrows { margin-top: 10px; font-size: 15px; color: var(--text-body); }
.goodrows li { padding: 4px 0; border-top: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; background: var(--surface-band-tint); font-size: 15px; color: var(--text-muted); }
.menu-grid { display: grid; gap: 8px; margin-top: 8px; }
.menu-grid .pick b { display: block; font-size: 17px; }
.menu-grid .pick span { display: block; font-size: 15px; color: var(--text-muted); }
.menu-grid .pick .kbd { margin-left: auto; }
.toast-wrap { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
@media (min-width: 1024px) { .toast-wrap { left: calc(var(--rail) + 24px); right: auto; bottom: 24px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 8px 8px 8px 16px; border-radius: 12px;
  background: var(--surface-band-dark); color: var(--text-on-dark); box-shadow: var(--shadow-2); font-size: 17px; line-height: 1.45; }
.toast .btn { background: var(--action-on-dark); color: var(--action-on-dark-text); min-height: 44px; }
.toast .btn:hover { background: var(--action-on-dark-hover); }
.toast :focus-visible { outline-color: var(--focus-ring-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .2s var(--ease); }
  .toast { animation: rise .2s var(--ease); }
  @keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
}

/* ---------------------------------------------------------------- 사이트 (design 24): the page is the index
   Desktop, three columns: 페이지 (the eleven pages and seven shared parts, with the strip of counts), 미리 보기 (the real
   page in a frame, 390 wide for 휴대폰 or 1280 scaled to the column for 데스크톱), 구역 (what the click opened, the page's
   sections, 검색·공유, 이전 버전). Phone: the page list, then one page with its preview at the phone's own width. */
.s-ph { margin-bottom: 12px; }
.s-grid { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.s-left, .s-panel { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.s-left { padding-right: 2px; }
.s-grid.desk { grid-template-columns: minmax(0, 1fr); }
.s-grid.desk .s-left, .s-grid.desk .s-panel { display: none; }
.s-grid.desk[data-fold="페이지"] .s-left, .s-grid.desk[data-fold="구역"] .s-panel { display: block; position: absolute; z-index: 30; top: 0; width: 320px; max-height: calc(100vh - var(--top) - 48px);
  padding: 12px; border-radius: 16px; background: var(--surface-page); box-shadow: var(--shadow-2); }
.s-grid.desk[data-fold="페이지"] .s-left { left: 0; }
.s-grid.desk[data-fold="구역"] .s-panel { right: 0; width: 360px; }
.s-plist { max-width: 640px; }
.s-strip { display: grid; gap: 6px; margin-bottom: 14px; }
.s-sbtn { display: block; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; text-align: left;
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-body); font-size: 15px; font-weight: 600; line-height: 1.35; }
.s-sbtn b { font-size: 17px; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.s-sbtn:hover { box-shadow: inset 0 0 0 2px var(--text-strong); }
.s-sbtn.on { background: var(--figure-box); color: var(--figure-box-text); box-shadow: none; }
.s-sbtn.on b { color: var(--figure-box-text); }
.s-lh { margin: 14px 0 6px; font-size: 15px; font-weight: 800; color: var(--text-muted); }
.s-ents { display: grid; gap: 2px; }
.s-ent { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.s-entb { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 52px; padding: 6px 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-strong); text-align: left; }
.s-entb:hover { background: var(--action-secondary-hover); }
.s-entb .nm { font-size: 17px; font-weight: 700; line-height: 1.3; }
.s-entb .meta { font-size: 15px; line-height: 1.35; color: var(--text-muted); }
.s-entb[aria-current="page"] { background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--action-primary); }
.s-entb[aria-current="page"] .nm { font-weight: 800; }
.s-add { flex: none; min-height: 44px; padding: 0 12px; font-size: 15px; }
.s-inner { flex: 1 1 100%; display: grid; gap: 2px; margin: 2px 0 8px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.s-ibtn { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-body); font-size: 15px; font-weight: 600; text-align: left; }
.s-ibtn:hover { background: var(--action-secondary-hover); }
.s-ibtn[aria-current="page"] { background: var(--surface-card); color: var(--text-strong); font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }
.s-bar { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-band-dark); color: var(--text-on-dark); box-shadow: var(--shadow-2); }
.s-bar-t { font-size: 17px; line-height: 1.5; font-weight: 700; }
.s-bar-s { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--text-on-dark-muted); }
.s-bar .acts { margin-top: 10px; }
.s-bar .btn { background: var(--action-on-dark); color: var(--action-on-dark-text); }
.s-bar .btn:hover { background: var(--action-on-dark-hover); }
.s-bar .btn-line { background: transparent; color: var(--text-on-dark); box-shadow: inset 0 0 0 1.5px var(--surface-band-dark-border); }
.s-bar :focus-visible { outline-color: var(--focus-ring-on-dark); }
.s-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.s-tools .chips { gap: 6px; }
.s-seg { padding: 4px; border-radius: 12px; background: var(--surface-band-tint); }
.s-seg .chip { box-shadow: none; background: transparent; }
.s-seg .chip[aria-pressed="true"] { background: var(--action-primary); color: var(--action-primary-text); }
.s-states { align-items: center; }
.s-lab { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-right: 2px; }
.s-tool-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin-bottom: 8px; }
.s-lstpick { flex: 1 1 260px; }
.s-lstpick label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--text-strong); }
.s-hint, .s-load { margin: 2px 0 8px; font-size: 15px; color: var(--text-muted); }
.s-load { font-weight: 700; color: var(--text-strong); }
.s-pvwrap { position: relative; }
.s-frame { display: block; width: 390px; max-width: 100%; height: calc(100vh - var(--top) - 210px); min-height: 520px; margin: 0 auto; border: 1px solid var(--surface-card-border);
  border-radius: 16px; background: var(--surface-card); box-shadow: var(--shadow-1); }
.s-pvwrap.desk { overflow: hidden; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.s-pvwrap.desk .s-frame { width: 1280px; max-width: none; height: 800px; min-height: 0; margin: 0; border: 0; border-radius: 0; transform-origin: 0 0; box-shadow: none; }
.s-box { padding: 14px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.s-box + .s-box { margin-top: 12px; }
.s-bh { margin-bottom: 6px; font-size: 17px; line-height: 1.4; font-weight: 800; color: var(--text-strong); }
.s-box .fld + .fld, .s-gap .fld + .fld { margin-top: 10px; }
.s-box .fld { margin-top: 8px; }
.s-ans { box-shadow: inset 0 0 0 2px var(--action-primary); }
.s-ans-t { font-size: 17px; line-height: 1.55; font-weight: 600; color: var(--text-strong); }
.s-ans .acts { margin-top: 10px; }
.s-editbox { background: var(--surface-band-tint); box-shadow: inset 0 0 0 1px var(--surface-band-tint-border); }
.s-baseline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.s-zones > li, .s-litems > li, .s-coll > li { padding: 10px 0; border-top: 1px solid var(--line); }
.s-zones > li:first-child, .s-litems > li:first-child, .s-coll > li:first-child { border-top: 0; }
.s-zt { display: flex; align-items: center; gap: 8px; }
.s-zt .nm { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.s-zones .acts, .s-lacts, .s-coll .acts { margin-top: 6px; gap: 6px; }
.s-zones .btn, .s-lacts .btn, .s-coll .btn { padding: 0 12px; font-size: 15px; }
.s-zones .fineprint { margin-top: 2px; }
.s-box > .btn, .s-box > .acts { margin-top: 10px; }
.s-lfields .fld:first-child { margin-top: 0; }
.s-lpair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.s-lpair .fld { margin-top: 0; }
.s-state-line { margin: 6px 0 2px; font-size: 17px; font-weight: 700; color: var(--text-strong); }
.s-ct { font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--text-strong); }
.s-cm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 15px; color: var(--text-muted); }
.s-tabs { margin-bottom: 4px; }
.s-tabs .chip { padding: 0 12px; font-size: 15px; }
.s-logo { display: flex; align-items: center; gap: 10px; }
.s-logo svg { width: 36px; height: 24px; flex: none; }
.s-logo .lm-ticket { fill: var(--figure-box); }
.s-logo .lm-dot { fill: var(--surface-card); }
.s-snip { padding: 12px 14px; border-radius: 8px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.s-snip-u { font-size: 15px; color: var(--text-muted); }
.s-snip-t { margin-top: 2px; font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--accent-transfer); }
.s-snip-d { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.s-share { overflow: hidden; border-radius: 12px; background: var(--surface-band-tint); }
.s-share img { display: block; width: 100%; height: auto; aspect-ratio: 1.9 / 1; object-fit: cover; }
.s-share-t { padding: 8px 12px 0; font-size: 15px; font-weight: 700; color: var(--text-strong); }
.s-share-d { padding: 0 12px 10px; font-size: 15px; color: var(--text-muted); }
.s-seo .fineprint { margin-top: 12px; margin-bottom: 6px; }
.s-verline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.s-verline .fineprint { margin: 0; }
.s-standin { padding: 16px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }
.s-standin > h2 { font-size: 21px; font-weight: 800; color: var(--text-strong); }
.s-standin > p { margin-top: 4px; color: var(--text-body); }
.s-rows { margin-top: 12px; }
.s-srow .s-val { font-size: 17px; color: var(--text-body); }
.s-srow .inp { margin-top: 6px; }
.s-warn { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-band-tint-warm); color: var(--text-strong); font-weight: 600; }
.s-doc .acts { margin-top: 12px; }
.s-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.s-cards .panel + .panel { margin-top: 0; }
.s-cards h3 { margin-bottom: 6px; font-size: 17px; font-weight: 800; color: var(--text-strong); }
.s-thumb { display: block; width: 160px; height: 90px; object-fit: cover; border-radius: 8px; }
.s-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.s-imgs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-band-tint); }
.s-imgs .r-title { margin-top: 6px; }
.s-imgs .btn { margin-top: 6px; }
.s-vers > li, .s-diff > li, .s-baselist > li { padding: 10px 0; border-top: 1px solid var(--line); }
.s-vers > li:first-child, .s-diff > li:first-child, .s-baselist > li:first-child { border-top: 0; }
.s-vers, .s-diff, .s-baselist { margin-top: 10px; }
.s-diff .kv { margin-top: 4px; }
.s-diff .acts { margin-top: 6px; }
.sgrp.proto { padding: 14px; border-radius: 12px; background: var(--surface-band-tint-warm); box-shadow: inset 0 0 0 1px var(--surface-band-tint-border); }
/* phone: one page at a time, its preview at the phone's own width */
.s-phone .s-phead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.s-phone .s-phead h1 { font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--text-strong); }
.s-ichips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)) 12px; padding: 0 var(--gut) 2px; }
.s-ichips::-webkit-scrollbar { display: none; }
.s-ichips .chip { flex: none; }
.s-phone #s-ptop > * + * { margin-top: 12px; }
.s-phone #s-ptop:not(:empty) { margin-bottom: 12px; }
.s-phone .s-tools { flex-wrap: wrap; }
.s-phone .s-states { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.s-phone .s-states::-webkit-scrollbar { display: none; }
.s-phone .s-states .chip { flex: none; }
.s-phone .s-frame { width: 100%; height: min(600px, calc(100vh - 200px)); min-height: 480px; border-radius: 12px; }
.s-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.s-line .btn { padding: 0 8px; font-size: 15px; }
@media (max-width: 1023px) { .s-lpair { grid-template-columns: minmax(0, 1fr); } }
.s-phone .s-bar { padding: 10px 12px; }
.s-phone .s-bar-t { font-size: 15px; }
.s-phone .s-bar .acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.s-phone .s-bar .acts .s-pub { grid-column: 1 / -1; }
.s-phone .s-bar .acts .btn { padding: 0 8px; white-space: normal; }
.s-phone { padding-bottom: 104px; }   /* room to scroll the bottom line above the toast and the tabs */
