/* Haroo Invoice (하루 정산) — 모바일 퍼스트 (최대 480px 컬럼)
   화이트 바탕 + 코발트 블루 포인트 + 민트 체크. A4 인보이스는 화면 미리보기와 인쇄가 같은 마크업을 쓴다. */
@font-face {
  font-family: "HarooSerif";
  src: url("assets/haroo-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --cobalt: #059669;
  --cobalt-2: #047857;
  --cobalt-3: #064e3b;
  --cobalt-soft: #ecfdf5;
  --cobalt-line: #c9ecdd;
  --mint: #10b981;
  --mint-soft: #e7f8f2;
  --gold: #d9a531;
  --gold-soft: #fbf3dd;
  --ink: #0f172a;
  --ink-2: #1f2a44;
  --muted: #64708a;
  --muted-2: #98a2b8;
  --bg: #f6f7fb;
  --card: #ffffff;
  --card-2: #fafbff;
  --line: #e5e8f2;
  --line-2: #eff2f9;
  --amber: #a96a22;
  --red: #c0362c;
  --red-soft: #fdecea;
  --ok: #047857;
  --pro: #7a5c12;
  --pro-soft: #fdf6e3;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #c9f2e2; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  position: relative;
}
@media (min-width: 520px) {
  body { background: #eef0f6; }
  #app { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 20px 60px rgba(15, 23, 42, 0.1); }
}

/* ── 헤더 (화이트 + 코발트) ─────────────── */
.topbar {
  background: #fff;
  color: var(--ink);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 15;
}
.tb-row { display: flex; align-items: center; gap: 10px; }
.tb-logo { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; box-shadow: 0 3px 10px rgba(5, 150, 105, 0.22); }
.tb-grow { flex: 1; min-width: 0; }
.tb-title { font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.tb-sub { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: #f4f6fb; color: var(--ink-2); font-size: 15px; line-height: 1;
  border: 1px solid var(--line);
}
.icon-btn:active { background: #eaeef9; }
.lang-toggle {
  display: inline-flex; align-items: center; height: 32px; padding: 0 9px; border-radius: 9px;
  background: #f4f6fb; border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); gap: 3px;
}
.lang-toggle b { color: var(--cobalt); }
.lang-toggle span { opacity: .6; }
.lang-toggle i { font-style: normal; opacity: .4; }
.plan-chip {
  height: 26px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  background: var(--cobalt); color: #fff; border: 1px solid var(--cobalt);
  white-space: nowrap;
}
.plan-chip.pro { background: linear-gradient(135deg, #f4d98c, #d9a531); color: #3a2a06; border-color: transparent; }
.plan-chip.free { background: var(--cobalt-soft); color: var(--cobalt); border-color: var(--cobalt-line); }

/* ── 하단 탭 ───────────────────────────── */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 20;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.nav button .ico { font-size: 18px; line-height: 1; filter: grayscale(1); opacity: .5; }
.nav button.on { color: var(--cobalt); background: var(--cobalt-soft); }
.nav button.on .ico { filter: none; opacity: 1; }

/* ── 공통 ──────────────────────────────── */
.wrap { padding: 14px 14px 26px; }
.card {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 12px;
}
.card.flat { box-shadow: none; background: var(--card-2); }
.card h2 { font-size: 14px; margin: 0 0 10px; letter-spacing: .01em; display: flex; align-items: center; gap: 6px; }
.card h2 .sub { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.card p.lead { margin: -4px 0 12px; color: var(--muted); font-size: 12.5px; }
.hr { height: 1px; background: var(--line-2); margin: 12px -14px; }
.section-title { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin: 18px 0 8px 2px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap2 { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.center { text-align: center; }
.hide { display: none !important; }

/* ── 폼 ────────────────────────────────── */
.field { margin-bottom: 10px; min-width: 0; }
.field > label, .lbl { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 0 5px 2px; letter-spacing: .02em; }
.input, select.input, textarea.input {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type="date"].input { -webkit-appearance: none; appearance: none; padding: 11px 10px; font-size: 13.5px; }
.input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(5, 150, 105, .14); }
.input::placeholder { color: var(--muted-2); }
textarea.input { min-height: 72px; resize: vertical; }
.input.amt { font-size: 22px; font-weight: 700; letter-spacing: .01em; padding: 12px; }
.input-group { display: flex; align-items: stretch; }
.input-group .sym {
  display: grid; place-items: center; padding: 0 12px; background: var(--card-2);
  border: 1px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px;
  font-weight: 700; color: var(--muted);
}
.input-group .input { border-radius: 0 11px 11px 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.two > * { min-width: 0; }
.three { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 6px; }

/* ── 버튼 ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--cobalt); color: #fff; border: 1px solid var(--cobalt);
  transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.xs { padding: 6px 9px; font-size: 11.5px; border-radius: 9px; }
.btn.ghost { background: #fff; color: var(--cobalt); border-color: var(--cobalt-line); }
.btn.ghost:active { background: var(--cobalt-soft); }
.btn.indigo { background: var(--cobalt-3); border-color: var(--cobalt-3); }
.btn.gold { background: linear-gradient(135deg, #f2d689, #d9a531); color: #3a2a06; border-color: #d9a531; }
.btn.danger { background: var(--red-soft); color: var(--red); border-color: #f5cfca; }
.btn[disabled] { opacity: .5; }
.btn .i { font-size: 15px; }

/* ── 칩 (플랫폼) ────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.chip.on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip.pro { color: var(--pro); border-color: #ecd9ad; background: var(--pro-soft); }

/* ── 세그먼트 ──────────────────────────── */
.seg { display: flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 9px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--cobalt); box-shadow: var(--shadow-sm); }
.seg.mini { display: flex; width: 100%; max-width: 100%; box-sizing: border-box; }
.seg.mini button { flex: 1; min-width: 0; padding: 7px 4px; font-size: 11.5px; text-align: center; }

/* ── 결과 카드 ─────────────────────────── */
.result {
  background: linear-gradient(155deg, #10b981 0%, #059669 52%, #065f46 100%);
  color: #f0fdf7; border: 0; border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px;
  position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(5, 150, 105, .26);
}
.result:before { content: ""; position: absolute; right: -70px; top: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.result:after { content: ""; position: absolute; left: -40px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); }
.result .rlabel { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #c8f3e3; font-weight: 800; }
.result .rbig { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; letter-spacing: -0.02em; }
.result .rsub { font-size: 12px; color: #cdeee1; }
.result .rrows { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 10px; position: relative; }
.result .rrow { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; color: #d7f6ea; }
.result .rrow b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.result .rrow.total { color: #f0fdf7; }
.result .rrow.total b { color: #ffffff; }
.result .empty { color: #cdeee1; font-size: 13px; padding: 8px 0 4px; }
.result .raction { display: flex; gap: 6px; margin-top: 12px; position: relative; }
.result .raction button { flex: 1; padding: 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.result .raction button.gold { background: #fff; color: var(--cobalt); border-color: #fff; }
.result .eff { position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 800; color: #064e3b; background: #d1fae5; padding: 4px 8px; border-radius: 999px; }

/* ── 안내 줄 ───────────────────────────── */
.note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 8px 2px 0; }
.lockline { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--pro); background: var(--pro-soft); border: 1px solid #ecd9ad; padding: 8px 10px; border-radius: 10px; margin: 8px 0 0; }
.lockline b { letter-spacing: .05em; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink); padding: 6px 0; }
.check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--cobalt); flex: 0 0 auto; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #dbe0ec; position: relative; transition: background .18s; flex: 0 0 auto; }
.switch:after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch.on { background: var(--cobalt); }
.switch.on:after { transform: translateX(18px); }

/* ── 인보이스 편집 행 ──────────────────── */
.items-head { display: grid; grid-template-columns: 1fr 52px 78px 26px; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; padding: 0 2px 4px; }
.item-row { display: grid; grid-template-columns: 1fr 52px 78px 26px; gap: 6px; align-items: start; margin-bottom: 6px; }
.item-row .input { padding: 9px; font-size: 13px; }
.item-row .del { width: 26px; height: 38px; color: var(--muted-2); font-size: 16px; display: grid; place-items: center; }
.item-row .del:active { color: var(--red); }
.inv-total { display: flex; justify-content: space-between; padding: 4px 2px; font-size: 13px; }
.inv-total b { font-variant-numeric: tabular-nums; }
.inv-total.grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-size: 15px; font-weight: 800; color: var(--cobalt-3); }

.preview-frame { background: #eef6f2; border-radius: var(--r); padding: 10px; border: 1px solid var(--line); }
.preview-frame .invoice-page { box-shadow: 0 6px 22px rgba(15,23,42,.12); }

/* ── A4 인보이스 (화면·인쇄 공용) ──────── */
.invoice-page {
  background: #fff; color: #131a2a; padding: 18px 16px 20px; border-radius: 8px;
  font-size: 9.6pt; line-height: 1.42; letter-spacing: 0; position: relative;
}
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--cobalt); }
.inv-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inv-brand img { max-height: 46px; max-width: 150px; object-fit: contain; }
.inv-brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.inv-brand .who { font-weight: 800; font-size: 11.5pt; line-height: 1.2; }
.inv-brand .email { color: #5a6478; font-size: 8.8pt; }
.inv-word { text-align: right; }
.inv-word .big { font-size: 20pt; font-weight: 800; letter-spacing: .12em; line-height: 1; color: var(--cobalt); }
.inv-word .no { font-size: 8.6pt; color: #5a6478; margin-top: 4px; }
.inv-parties { display: flex; gap: 18px; margin: 14px 0 4px; }
.inv-parties > div { flex: 1; min-width: 0; }
.inv-cap { font-size: 7.6pt; letter-spacing: .12em; color: #7c869c; font-weight: 800; text-transform: uppercase; margin-bottom: 3px; }
.inv-strong { font-weight: 700; }
.inv-dim { color: #5a6478; font-size: 8.8pt; }
.inv-datebox { margin-left: auto; text-align: right; }
.inv-datebox .r { display: flex; gap: 10px; justify-content: flex-end; font-size: 8.8pt; padding: 1px 0; }
.inv-datebox .r span { color: #7c869c; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.inv-table th { text-align: left; font-size: 7.8pt; letter-spacing: .08em; text-transform: uppercase; color: #7c869c; border-bottom: 1px solid #dde2ee; padding: 5px 4px; }
.inv-table th.r, .inv-table td.r { text-align: right; }
.inv-table td { padding: 6px 4px; border-bottom: 1px solid #eef1f8; vertical-align: top; }
.inv-table td.r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-totals { margin-left: auto; width: 62%; margin-top: 10px; }
.inv-totals .r { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 9pt; }
.inv-totals .r b { font-variant-numeric: tabular-nums; }
.inv-totals .r.grand { border-top: 1.6px solid var(--cobalt); margin-top: 4px; padding-top: 6px; font-size: 11pt; font-weight: 800; color: var(--cobalt-3); }
.inv-note { margin-top: 16px; padding-top: 8px; border-top: 1px solid #eef1f8; font-size: 8.8pt; color: #45506a; white-space: pre-wrap; }
.inv-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #eef1f8; display: flex; justify-content: space-between; align-items: center; font-size: 7.6pt; color: #8b94a8; }
.inv-foot .powered { letter-spacing: .04em; }
.inv-empty { color: #b6bdcb; }

/* ── 시트/모달 ─────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 88dvh; overflow: auto;
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(14px); opacity: .7; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet .sheet-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sheet-top h3 { margin: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { margin: 0; font-size: 15.5px; }

/* ── 🔔 쪽지함 ─────────────────────────── */
.icon-btn.bell { position: relative; }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e5484d; color: #fff; font-size: 9.5px; font-weight: 800;
  display: grid; place-items: center; border: 1.5px solid #fff; line-height: 1;
}
.msg-list { max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.msg-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff;
}
.msg-item.unread { box-shadow: inset 3px 0 0 #e5484d; background: #fffdfd; }
.msg-top { display: flex; gap: 8px; align-items: baseline; }
.msg-title { font-weight: 800; font-size: 13.5px; flex: 1; min-width: 0; }
.msg-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e5484d; margin-right: 5px; vertical-align: middle; }
.msg-date { font-size: 11px; color: var(--muted); flex: none; }
.msg-body { font-size: 12.8px; margin-top: 5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg-item .msg-link { margin-top: 8px; display: inline-block; text-decoration: none; }
.msg-tpl { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 10px; }
.msg-sel-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 2px 6px; }
.msg-sel-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 12.5px; cursor: pointer; }
.msg-sel-row + .msg-sel-row { border-top: 1px solid var(--line-2); }
.msg-sel-row input { flex: none; width: 16px; height: 16px; accent-color: #e5484d; }
.msg-sel-row .em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-hist { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-size: 12.5px; background: var(--card-2); }
.msg-hist .t { font-weight: 750; }
.msg-hist .m { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.user-row .btn.xs { flex: 0 0 auto; }

/* ── 토스트 ────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  background: rgba(15,23,42,.95); color: #f3f5fb; font-size: 12.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; z-index: 60; transition: opacity .18s, transform .18s;
  max-width: 86%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── PRO 카드 ──────────────────────────── */
.pro-card { background: linear-gradient(160deg, #fffdf6, #fdf4dd); border: 1px solid #f0e2bb; border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.pro-card h2 { margin: 0 0 2px; font-size: 15px; color: #4a3a0f; }
.pro-card .price { font-size: 20px; font-weight: 800; color: #3c2d0c; margin: 6px 0 2px; }
.pro-card ul { margin: 8px 0 10px; padding-left: 18px; font-size: 12.5px; color: #5c4b23; }
.pro-card li { margin: 3px 0; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px dashed rgba(120,95,40,.18); }
.plan-row:last-child { border-bottom: 0; }
.plan-row b { color: #3c2d0c; }

/* ── 기록 리스트 ───────────────────────── */
.list-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.list-item .li-act { display: flex; gap: 4px; flex: 0 0 auto; }

/* ── 관리자 ────────────────────────────── */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.adm-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.adm-stat .n { font-size: 18px; font-weight: 800; color: var(--cobalt); }
.adm-stat .l { font-size: 9.5px; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }
.adm-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.adm-tabs button { flex: 1; padding: 8px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.adm-tabs button.on { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.user-row { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.user-row .u-main { flex: 1; min-width: 0; }
.user-row .u-email { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .u-meta { font-size: 10.5px; color: var(--muted); }
.badge { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.badge.pro { background: var(--pro-soft); color: var(--pro); border-color: #ecd9ad; }
.badge.banned { background: var(--red-soft); color: var(--red); border-color: #f5cfca; }
.req-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #fff; }
.req-card .r-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; }
.req-card .r-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.req-card .r-act { display: flex; gap: 6px; margin-top: 8px; }

/* ── 자체 배너 ─────────────────────────── */
.house-ad { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.house-ad .ad-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--cobalt-soft); font-size: 15px; flex: 0 0 auto; }
.house-ad .ad-t { font-size: 12px; font-weight: 700; line-height: 1.3; }
.house-ad .ad-s { font-size: 10.5px; color: var(--muted); }
.house-ad .ad-tag { font-size: 9px; color: var(--muted-2); letter-spacing: .05em; margin-left: auto; flex: 0 0 auto; }

/* ── 인쇄 ──────────────────────────────── */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  #app, #overlay-root, #toast, .nav { display: none !important; }
  #print-root { display: block !important; }
  #print-root .invoice-page {
    width: 210mm; min-height: 297mm; padding: 16mm 15mm; border-radius: 0; box-shadow: none;
    font-size: 9.8pt;
  }
  #print-root { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
