/* ═══════════ QUIX 대시보드 ═══════════
   포인트 색은 --accent 하나만 바꾸면 전체가 바뀝니다. */
:root {
  --bg: #0d0f15;
  --side: #08090d;
  --surface: #14161e;
  --surface-2: #1a1d27;
  --surface-3: #222632;
  --surface-solid: #161922;
  --line: #232733;
  --line-2: #303544;
  --track: #232733;
  --text: #eef0f5;
  --text-2: #cdd1dc;
  --muted: #8b92a4;
  --accent: #2f80ff;
  --accent-2: #5ea0ff;
  --accent-soft: rgba(47, 128, 255, .13);
  --accent-text: #ffffff;
  --ink: var(--accent);
  --ink-text: #fff;
  --c1: #3b8bff;
  --c2: #343846;
  --mint: #34d399;  --mint-soft: rgba(52, 211, 153, .12);
  --blue: #7aa7ff;  --blue-soft: rgba(122, 167, 255, .13);
  --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .12);
  --red: #f87171;   --red-soft: rgba(248, 113, 113, .12);
  --radius: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6fa;
  --side: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #eceff5;
  --surface-solid: #ffffff;
  --line: #e5e8ef;
  --line-2: #d3d8e2;
  --track: #edf0f5;
  --text: #111521;
  --text-2: #3a4152;
  --muted: #6b7285;
  --accent: #1f6fff;
  --accent-2: #4d8dff;
  --accent-soft: rgba(31, 111, 255, .09);
  --c1: #1f6fff;
  --c2: #d1d6e0;
  --mint: #059669;  --mint-soft: #e7f8f1;
  --blue: #2563eb;  --blue-soft: #eef3ff;
  --amber: #b45309; --amber-soft: #fef6e7;
  --red: #dc2626;   --red-soft: #fef2f2;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -16px rgba(16, 24, 40, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent-soft); }

/* ═══════════ 레이아웃 ═══════════ */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--side) 264px, var(--bg) 264px); }
.side > * { flex-shrink: 0; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; background: var(--side); border-right: 1px solid var(--line); scrollbar-width: none; }
.side-top { display: flex; align-items: center; }
.side .side-close { display: none; margin-left: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px; font-weight: 900; font-size: 19px; letter-spacing: .12em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text); flex: none; }
.brand-mark svg { width: 32px; height: 32px; }
.brand small { display: none; }

/* 상점 카드 */
.store-box { position: relative; overflow: hidden; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--surface-2); }
.store-box .sb-top { display: flex; align-items: center; gap: 11px; }
.store-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900; font-size: 15px; flex: none; box-shadow: 0 8px 18px -8px var(--accent); }
.store-box b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); }
.plan-chip.basic { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.plan-chip.pro { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; border-color: transparent; }
.sb-days { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.sb-days .d { font-size: 24px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sb-days .u { color: var(--muted); font-size: 12px; font-weight: 600; }
.sb-days .warn { color: var(--amber); }
.days-bar { margin-top: 8px; height: 5px; border-radius: 99px; background: var(--track); overflow: hidden; }
.days-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sb-renew { margin-top: 12px; width: 100%; }

/* 메뉴 */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 12px; font-weight: 700; color: var(--muted); padding: 16px 14px 6px; letter-spacing: 0; }
.nav { gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-weight: 700; font-size: 15px; letter-spacing: -.02em; transition: background .15s, color .15s, box-shadow .15s; }
.nav a svg { width: 19px; height: 19px; stroke-width: 2.1; }
.nav a svg { color: var(--text-2); opacity: .85; transition: color .15s; }
.nav a.on svg { opacity: 1; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a:hover svg { color: var(--text-2); }
.nav a.on { background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 8px 26px -6px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 0 1px color-mix(in srgb, #fff 8%, transparent) inset; }
.nav a.on svg { color: #fff; }
.count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; box-shadow: 0 0 0 0 rgba(255, 90, 54, .6); animation: livePulse 1.6s infinite; flex: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }
.tag { margin-left: auto; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .06em; }
.nav a.on .tag { border-color: rgba(255, 255, 255, .5); color: #fff; }
.nav a.on .count { background: #fff; color: var(--accent); }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.help { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s; }
.help:hover { border-color: var(--line-2); }
.help-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.help b { display: block; font-size: 13px; }
.help small { color: var(--muted); font-size: 11.5px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 4px 0 6px; }
.me b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--muted); font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line-2); color: var(--text-2); flex: none; }

/* 상단 바 */
.main { min-width: 0; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 85% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 36px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; min-width: 0; }
.crumb b { font-weight: 700; }
.crumb .slash { color: var(--line-2); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.theme-sw { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.theme-sw button { width: 30px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.theme-sw button.on { background: var(--surface-3); color: var(--text); }
.theme-sw svg { width: 15px; height: 15px; }
.renew-btn { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); color: var(--text); }
.renew-btn svg { color: var(--accent); }
.renew-btn.urgent { background: var(--accent); color: #fff; border-color: var(--accent); }
.renew-btn.urgent svg { color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.dot.off { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; }
.scrim { display: none; }

/* 페이지 */
.page { width: 100%; max-width: 1480px; margin: 0 auto; padding: 30px 40px 80px; animation: pageIn .25s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -.035em; line-height: 1.25; }
.ph-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 24px -10px var(--accent); }
.ph-ic svg { width: 24px; height: 24px; stroke-width: 2; }
.ph-t { min-width: 0; flex: 1; }
.eyebrow { margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--accent); }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ═══════════ 카드 / 그리드 ═══════════ */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, var(--surface)), var(--surface) 120px); padding: 24px; min-width: 0; box-shadow: var(--shadow); }
.card.click { cursor: pointer; transition: border-color .15s, transform .15s; }
.card.click:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); transform: translateY(-2px); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; min-width: 0; }
.row > .ell { flex: 0 1 auto; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.link { color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 14px; height: 14px; }

/* KPI 카드 */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kcard { position: relative; overflow: hidden; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: default; transition: border-color .15s, transform .15s; }
.kcard[data-go] { cursor: pointer; }
.kcard[data-go]:hover { border-color: var(--line-2); transform: translateY(-2px); }
.kcard.hero { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.kcard .k-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.k-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.k-ic svg { width: 17px; height: 17px; }
.k-ic.warn { background: var(--amber-soft); color: var(--amber); }
.kcard .k-val { margin-top: 14px; font-size: 30px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kcard .k-val small { font-size: 15px; color: var(--muted); font-weight: 700; margin-left: 2px; letter-spacing: 0; }
.kcard .k-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.kpi .label svg { display: none; }
.kpi .value { font-size: 26px; font-weight: 900; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 14px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.delta { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.delta.up { color: var(--mint); background: var(--mint-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }
.delta .muted { color: var(--muted); }
.goal { display: flex; align-items: center; gap: 12px; }
.goal-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--track); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }

.tabs { display: flex; gap: 4px; margin-bottom: 24px; overflow-x: auto; padding: 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs a { padding: 9px 18px; font-size: 14px; font-weight: 700; color: var(--muted); border-radius: 9px; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.tabs a.on { color: #fff; background: var(--accent); box-shadow: 0 6px 16px -8px var(--accent); }
.tabs a:hover { color: var(--text); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; box-shadow: var(--shadow); }
.stat-strip > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-strip .value { font-size: 24px; font-weight: 900; margin-top: 4px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ═══════════ 버튼 / 입력 ═══════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer; white-space: nowrap; font-size: 14px; transition: background .15s, border-color .15s, transform .08s, filter .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); border-color: var(--line-2); }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field > small { color: var(--muted); font-size: 12px; }
.input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.input:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--muted)); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.input[readonly] { opacity: .85; }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.55; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; user-select: none; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }

/* ═══════════ 표 ═══════════ */
.table-wrap { overflow-x: auto; margin: 0 -24px -24px; border-top: 1px solid var(--line); }
.card-head + .table-wrap { margin-top: -2px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 12px 24px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); letter-spacing: .02em; }
td { padding: 15px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
tr.click { cursor: pointer; }
td.r, th.r { text-align: right; }
td.nw { white-space: nowrap; }
.t-title { font-weight: 700; }
.t-sub { color: var(--muted); font-size: 12.5px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty svg { width: 30px; height: 30px; color: var(--line-2); margin-bottom: 8px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-mint { color: var(--mint); background: var(--mint-soft); }
.b-blue { color: var(--blue); background: var(--blue-soft); }
.b-amber { color: var(--amber); background: var(--amber-soft); }
.b-red { color: var(--red); background: var(--red-soft); }
.b-gray { color: var(--muted); background: var(--surface-2); }

.stockbar { width: 96px; height: 5px; border-radius: 99px; background: var(--track); overflow: hidden; }
.stockbar i { display: block; height: 100%; border-radius: 99px; }
.thumb { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 17px; flex: none; overflow: hidden; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }
.sp { flex: 1; }
.show-m { display: none; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.rank-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: var(--muted); background: var(--surface-2); flex: none; font-variant-numeric: tabular-nums; }
.rank-n.hot { color: #fff; background: var(--accent); }
.hbar { height: 5px; border-radius: 99px; background: var(--track); margin-top: 8px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* 차트 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .grid-line { stroke: var(--line); }
.tip { position: absolute; pointer-events: none; padding: 9px 12px; border-radius: 11px; background: var(--surface-solid); border: 1px solid var(--line-2); font-size: 12px; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); white-space: nowrap; transform: translate(-50%, -112%); opacity: 0; transition: opacity .1s; z-index: 5; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 700; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.stack-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--track); gap: 2px; }
.stack-bar i { display: block; height: 100%; }

/* 안내 박스 */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); align-items: flex-start; }
.notice svg { color: var(--accent); margin-top: 1px; }
.notice.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.notice.warn svg { color: var(--amber); }
.notice.danger { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.notice.danger svg { color: var(--red); }
.lock-ic { width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 6%, transparent); }
.lock-card { text-align: center; padding: 56px 24px; }
.lock-card h3 { margin: 18px 0 6px; font-size: 18px; }
.lock-card > p { margin: 0 auto 14px; max-width: 460px; }
.perk-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 620px; margin: 0 auto 22px; }
.perk-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.perk-chips svg { width: 14px; height: 14px; color: var(--accent); }

/* 홈: 확인할 일 */
.todo { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 -12px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.todo:hover { background: var(--surface-2); }
.todo .n { min-width: 38px; height: 30px; padding: 0 9px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.todo .n.hot { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px var(--accent); }
.todo .t { flex: 1; min-width: 0; }
.todo .t b { display: block; font-weight: 700; }
.todo .t small { color: var(--muted); font-size: 12px; }
.todo > svg { color: var(--muted); width: 15px; height: 15px; }
.summary { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; }
.summary .big { font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary .mini b { display: block; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.summary .mini span { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* 라이선스 페이지 */
.lic-hero { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(123, 92, 255, .14), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.lic-hero .big { font-size: 46px; font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.lic-hero .big small { font-size: 18px; color: var(--muted); font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.lic-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; padding: 13px 14px; }
.plan-card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.plan-card.pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface-2); }
.plan-card h4 { margin: 0 0 4px; font-size: 16px; font-weight: 900; letter-spacing: .04em; }
.plan-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 13px; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.plan-card li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }

/* 사이드 직원 표시 */
.sb-staff { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.sb-staff svg { width: 16px; height: 16px; color: var(--accent); }

/* 홈: 빠른 작업 */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, background .15s; box-shadow: var(--shadow); }
.q-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); transform: translateY(-2px); }
.q-tile b { font-size: 13.5px; margin-top: 8px; }
.q-tile small { color: var(--muted); font-size: 12px; }
.q-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.q-ic svg { width: 17px; height: 17px; }
.q-ic.sm { width: 28px; height: 28px; border-radius: 8px; }
.q-ic.sm svg { width: 15px; height: 15px; }

/* 세트 상품 */
.bundle-price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.bundle-price b { font-size: 22px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bundle-price s { color: var(--muted); font-size: 13px; }
.save { display: inline-flex; padding: 2px 8px; border-radius: 99px; background: var(--mint-soft); color: var(--mint); font-size: 11.5px; font-weight: 800; }
.parts { display: flex; flex-wrap: wrap; gap: 6px; }
.part { padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.part b { color: var(--accent); }
.part.out { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.part-row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.qty button { width: 32px; height: 40px; border: 0; background: transparent; cursor: pointer; font-weight: 800; color: var(--text-2); }
.qty button:hover { background: var(--surface-3); }
.qty .input { border: 0; background: transparent; text-align: center; padding: 8px 0; box-shadow: none !important; }
.sum-box { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); flex-wrap: wrap; }
.sum-box > div { display: flex; flex-direction: column; }
.sum-box span { font-size: 12px; font-weight: 700; }
.sum-box b { font-size: 17px; font-weight: 900; }
.sum-box > svg { color: var(--muted); }

/* 직원 */
.staff-list { display: flex; flex-direction: column; margin: 0 -24px -24px; border-top: 1px solid var(--line); }
.staff-row { display: flex; align-items: center; gap: 14px; padding: 15px 24px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.staff-row:last-child { border-bottom: 0; }
.staff-row:hover { background: var(--surface-2); }
.staff-row > svg { color: var(--muted); width: 15px; height: 15px; }
.perm-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.perm-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; }
.perm-tags svg { width: 12px; height: 12px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.perm-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.perm-opt input { position: absolute; opacity: 0; }
.perm-opt b { flex: 1; font-size: 13px; }
.perm-opt .ck { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.perm-opt .ck svg { width: 13px; height: 13px; stroke-width: 3; }
.perm-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.perm-opt:has(input:checked) .ck { background: var(--accent); border-color: var(--accent); color: #fff; }
.cred { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cred > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cred > div:last-child { border-bottom: 0; }
.cred span { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.cred b { word-break: break-all; text-align: right; }

/* 엑셀 · 백업 */
.xl-card .input-row select { flex: 1; }
.backup-hero { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }

/* 모달 */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(3, 5, 10, .62); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7); animation: pop .18s ease-out; }
.modal.wide { width: min(840px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface-solid); z-index: 2; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface-solid); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 13px; background: var(--surface-solid); border: 1px solid var(--line-2); font-weight: 700; animation: pop .2s; max-width: 420px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55); }
.toast svg { color: var(--mint); }
.toast.err svg { color: var(--red); }

/* 디스코드 임베드 미리보기 */
.embed { display: flex; border-radius: 8px; background: #2b2d31; color: #dbdee1; overflow: hidden; font-size: 13.5px; }
.embed .bar { width: 4px; flex: none; }
.embed .inner { padding: 12px 16px 14px; flex: 1; min-width: 0; }
.embed .e-title { font-weight: 700; color: #f2f3f5; margin-bottom: 6px; }
.embed .e-desc { white-space: pre-wrap; margin-bottom: 8px; }
.embed .e-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.embed .e-fields b { display: block; font-size: 12.5px; color: #f2f3f5; }
.embed .e-fields code { background: #1e1f22; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.embed img { max-width: 100%; border-radius: 4px; margin-top: 8px; }
.embed .e-foot { margin-top: 10px; font-size: 11.5px; color: #949ba4; }
.d-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.d-btn { padding: 6px 14px; border-radius: 4px; color: #fff; font-weight: 600; font-size: 13.5px; }
.d-btn.secondary { background: #4e5058; } .d-btn.primary { background: #5865f2; } .d-btn.success { background: #248046; } .d-btn.danger { background: #da373c; }
.color-dots { display: flex; gap: 8px; }
.color-dots button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-dots button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line-2); cursor: pointer; color: var(--muted); background: var(--surface); transition: all .15s; }
.chip:hover { color: var(--text); }
.chip.on { color: #fff; border-color: var(--accent); background: var(--accent); }

.feature { display: flex; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.feature .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.feature h4 { margin: 0 0 3px; font-size: 13.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 12.5px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; color: var(--text-2); }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--accent); color: #fff; margin-top: 1px; }
.steps li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
code.k { padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }

/* ═══════════ v3: 보기 편한 레이아웃 ═══════════ */
/* 페이지 머리: 카드형 배너 */
.page-head { position: relative; overflow: hidden; align-items: center; gap: 18px; margin-bottom: 22px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(70% 160% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.page-head h1 { font-size: 24px; }
.page-head p { font-size: 14px; margin-top: 3px; }
.ph-ic { width: 56px; height: 56px; border-radius: 17px; }
.eyebrow { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; background: var(--accent-soft); color: var(--accent); }

/* 하위 탭: 밑줄형 (페이지 머리 바로 아래) */
.tabs { width: 100%; max-width: 100%; gap: 6px; padding: 0; margin: -4px 0 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.tabs a { position: relative; padding: 12px 16px 13px; border-radius: 0; font-size: 14.5px; color: var(--muted); }
.tabs a:hover { color: var(--text); background: transparent; }
.tabs a.on { color: var(--text); background: transparent; box-shadow: none; }
.tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* 요약 숫자: 따로 떨어진 카드 */
.stat-strip { gap: 14px; border: 0; background: transparent; box-shadow: none; }
.stat-strip > div { position: relative; padding: 18px 20px 18px 24px; border: 1px solid var(--line) !important; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.stat-strip > div::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.stat-strip > div:nth-child(2)::before { background: var(--mint); }
.stat-strip > div:nth-child(3)::before { background: var(--amber); }
.stat-strip > div:nth-child(4)::before { background: var(--red); }
.stat-strip .value { font-size: 26px; margin-top: 6px; }

/* 카드: 제목 줄을 구분선으로 나눔 */
.card { border-radius: 20px; background: var(--surface); }
.card > .card-head:first-child { margin: -24px -24px 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card > .card-head:first-child + .table-wrap, .card > .card-head:first-child + .staff-list { margin-top: -20px; border-top: 0; }
.card-head h3 { display: inline-flex; align-items: center; gap: 9px; }
.card > .card-head:first-child h3::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--accent); }

/* 표: 넓은 줄 간격 + 줄무늬 */
th { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); font-size: 12.5px; padding-top: 13px; padding-bottom: 13px; }
td { padding-top: 16px; padding-bottom: 16px; font-size: 14px; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 35%, transparent); }
tbody tr:hover { background: var(--accent-soft) !important; }
tr.click:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.badge { padding: 4px 11px; font-size: 12px; }

/* 입력 · 버튼 */
.input { border-radius: 12px; min-height: 44px; }
textarea.input { min-height: 96px; }
.btn { border-radius: 11px; min-height: 40px; padding: 9px 16px; }
.btn.sm { min-height: 32px; }
.notice { border-radius: 14px; }

/* 상단 바 */
.top { height: 68px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.crumb { font-size: 14px; }

/* 사이드바: 그룹 사이 구분선 */
.nav-label { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.nav-label:first-child { margin-top: 0; border-top: 0; padding-top: 4px; }
.store-box { border-radius: 18px; }

/* 홈 환영 배너 */
.welcome { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; padding: 28px 30px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: radial-gradient(60% 140% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%), radial-gradient(50% 120% at 0% 100%, rgba(123, 92, 255, .14), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.w-l { flex: 1; min-width: 260px; }
.w-date { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.welcome h1 { margin: 12px 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.035em; }
.welcome h1 b { font-weight: 900; color: var(--accent-2); }
.welcome p { margin: 0; color: var(--muted); }
.welcome p b { color: var(--text); }
.w-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.w-spark { display: flex; align-items: flex-end; gap: 4px; height: 54px; width: 230px; }
.w-spark i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent-2), color-mix(in srgb, var(--accent) 35%, transparent)); }
.w-spark i:last-child { background: linear-gradient(180deg, #fff, var(--accent-2)); }
.k-ic.c-mint { background: var(--mint-soft); color: var(--mint); }
.k-ic.c-violet { background: rgba(139, 108, 255, .14); color: #a48bff; }
.kcard { border-radius: 20px; }
.kcard .k-val { font-size: 32px; }

/* 모달 */
.modal { border-radius: 22px; }
.modal-head { padding: 20px 24px; }
.mh-bar { width: 4px; height: 18px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 22px 24px; gap: 16px; }
.modal-foot { padding: 16px 24px; }

/* 사이드바 메뉴 간격 */
.nav a { padding: 10px 14px; }

/* 사이드 상점 카드: 누르면 라이선스 화면 */
.store-box.clickable { cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.store-box.clickable:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); transform: translateY(-1px); box-shadow: 0 14px 30px -18px var(--accent); }
.sb-ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.sb-ring circle { fill: none; stroke: var(--track); stroke-width: 4; }
.sb-ring circle.v { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent)); }
.sb-ring.warn circle.v { stroke: var(--amber); filter: drop-shadow(0 0 4px var(--amber)); }
.sb-ring text { transform: rotate(90deg); transform-origin: 22px 22px; fill: var(--text); font-size: 12.5px; font-weight: 900; font-family: inherit; }
.sb-cta { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.sb-cta span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sb-cta b { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--accent-2); white-space: nowrap; }
.sb-cta b svg { width: 14px; height: 14px; }
.sb-cta.warn { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.sb-cta.warn b { color: var(--amber); }

/* 상단 바: 입금 대기 · 사용자 */
.pend-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: 13px; cursor: pointer; animation: pillIn .3s ease-out; }
.pend-pill svg { width: 15px; height: 15px; }
.pend-pill b { font-weight: 900; }
@keyframes pillIn { from { opacity: 0; transform: translateY(-4px); } }
.top-user { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.top-user .avatar { width: 30px; height: 30px; font-size: 12px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border: 0; }
.tu-t b { display: block; font-size: 12.5px; line-height: 1.2; }
.tu-t small { color: var(--muted); font-size: 11px; }

/* 키 구매 카드 */
.buy-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); transition: background .15s, border-color .15s; }
a.buy-card:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); border-style: solid; }
.buy-card b { display: block; font-size: 14px; }
.buy-card small { color: var(--muted); font-size: 12.5px; }
.buy-go { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 18px -8px var(--accent); }
.buy-go svg { width: 14px; height: 14px; }
.buy-card.off { border-style: solid; border-color: var(--line); background: var(--surface-2); }

/* 플랜 비교표 */
.cmp-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.cmp { min-width: 640px; }
.cmp th, .cmp td { text-align: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; width: 38%; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.cmp thead th { font-size: 15px; font-weight: 900; color: var(--text); letter-spacing: .06em; background: var(--surface-2); padding: 18px; }
.cmp thead th:first-child { font-size: 12.5px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.cmp td b { font-weight: 800; font-size: 13.5px; }
.cmp td small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; font-weight: 500; }
.cmp tr.grp td { text-align: left; padding: 12px 18px; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface-2) !important; letter-spacing: .02em; }
.cmp tbody tr:nth-child(even) { background: transparent; }
.cmp tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent) !important; }
.cmp .cur { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cmp thead .cur { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); box-shadow: inset 0 3px 0 var(--accent); }
.cmp-now { display: block; width: fit-content; margin: 5px auto 0; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10.5px; letter-spacing: 0; }
.ck-y { display: inline-grid; place-items: center; color: var(--accent); }
.ck-y svg { width: 18px; height: 18px; stroke-width: 2.6; }
.ck-n { color: var(--line-2); font-weight: 800; }

/* 부가 서비스 카드 */
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.addon { --c: var(--accent); position: relative; overflow: hidden; padding: 20px 22px 16px 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.addon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.addon.green { --c: #22c55e; }
.addon.blue { --c: #2f80ff; }
.addon:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.addon.on { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%), var(--surface); }
.ad-top { display: flex; align-items: flex-start; gap: 14px; }
.ad-name { display: flex; gap: 12px; flex: 1; min-width: 0; }
.ad-ic { color: var(--c); display: grid; place-items: center; width: 24px; height: 26px; }
.ad-ic svg { width: 21px; height: 21px; stroke-width: 2.2; }
.ad-name b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.ad-name small { color: var(--muted); font-size: 12.5px; }
.ad-price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ad-price small { color: var(--muted); font-size: 12.5px; }
.ad-price b { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.ad-bot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ad-st { color: var(--muted); font-size: 13px; }
.ad-st b { color: var(--text); }
.usage-pill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.usage-pill b { color: var(--text); }

/* 안드로이드 자동 충전 설명서 */
.aos { padding: 0; overflow: hidden; }
.aos-head { padding: 24px 24px 20px; background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, #22c55e 14%, transparent), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.aos-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #4ade80; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); }
.aos-head h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.aos-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.aos-req { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.aos-req > div { padding: 14px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aos-req > div:nth-child(2n) { border-right: 0; }
.aos-req > div:nth-last-child(-n+2) { border-bottom: 0; }
.aos-req small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.aos-req b { display: block; font-size: 14.5px; margin: 2px 0; }
.aos-req span { color: var(--muted); font-size: 12px; }
.aos-steps { counter-reset: st; list-style: none; margin: 0; padding: 22px 24px 6px; display: flex; flex-direction: column; gap: 0; }
.aos-steps li { counter-increment: st; position: relative; padding: 0 0 20px 46px; }
.aos-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 14px -6px var(--accent); }
.aos-steps li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line-2); }
.aos-steps li:last-child::after { display: none; }
.aos-steps li > b { display: block; font-size: 15px; padding-top: 4px; }
.aos-steps p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.aos-off { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.aos-off span { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--red); background: var(--red-soft); }
.aos-faq { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.aos-faq h4 { margin: 0 0 10px; font-size: 15px; }
.aos-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.aos-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
.aos-faq summary::before { content: "Q"; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; color: var(--accent); background: var(--accent-soft); flex: none; }
.aos-faq summary::-webkit-details-marker { display: none; }
.aos-faq details[open] summary { color: var(--accent-2); }
.aos-faq details p { margin: 0; padding: 0 14px 14px 44px; color: var(--muted); font-size: 13px; line-height: 1.65; }


/* 입금 확인 방식 선택 */
.dep-card { margin-bottom: 16px; padding: 18px 20px; overflow: visible; position: relative; z-index: 5; }
.dep-label { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.dep-pick { position: relative; max-width: 520px; }
.dep-cur { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s; }
.dep-cur:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); }
.dep-pick.open .dep-cur { border-color: var(--text-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.dep-chev { margin-left: auto; color: var(--muted); transition: transform .2s; display: grid; }
.dep-pick.open .dep-chev { transform: rotate(180deg); }
.dep-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.dep-ic svg { width: 20px; height: 20px; }
.dep-ic.off { color: #f87171; background: rgba(239, 68, 68, .14); }
.dep-ic.off svg { width: 14px; height: 14px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: #ef4444; color: #fff; }
.dep-ic.android { color: #4ade80; background: rgba(34, 197, 94, .14); }
.dep-ic.ios { color: #e5e7eb; background: rgba(148, 163, 184, .16); }
.dep-ic.screenshot { color: #fff; background: #1d4ed8; }
.dep-ic.big { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; }
.dep-tx { display: flex; flex-direction: column; min-width: 0; }
.dep-tx b { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dep-tx small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dep-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .55); display: none; flex-direction: column; gap: 4px; }
.dep-pick.open .dep-menu { display: flex; animation: depIn .16s ease; }
@keyframes depIn { from { opacity: 0; transform: translateY(-4px); } }
.dep-opt { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.dep-opt:hover { background: var(--surface-2); }
.dep-opt.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.dep-opt.lock { opacity: .55; }
.dep-opt.lock:hover { opacity: .8; }
.dep-radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.dep-opt.on .dep-radio { border-color: var(--accent); background: var(--accent); }
.dep-opt.on .dep-radio::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.dep-free { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.dep-free .i { width: 16px; height: 16px; flex: none; color: var(--amber); }
.dep-free .link { margin-left: auto; white-space: nowrap; cursor: pointer; }
.dep-empty { text-align: center; padding: 44px 24px; }
.dep-empty h3 { margin: 0 0 8px; }
.dep-empty p { margin: 0; line-height: 1.7; }
.dep-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dep-check li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.dep-check .i { width: 18px; height: 18px; flex: none; color: var(--mint); margin-top: 1px; }
.aos.ios .aos-head { background: radial-gradient(80% 140% at 100% 0%, rgba(148, 163, 184, .16), transparent 60%), var(--surface); }
.aos.ios .aos-tag { color: #e5e7eb; background: rgba(148, 163, 184, .14); border-color: rgba(148, 163, 184, .3); }
.aos.shot .aos-head { background: radial-gradient(80% 140% at 100% 0%, rgba(37, 99, 235, .2), transparent 60%), var(--surface); }
.aos.shot .aos-tag { color: #93c5fd; background: rgba(37, 99, 235, .14); border-color: rgba(37, 99, 235, .35); }
.aos-off.on span:first-child { color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, transparent); }
.proof-btn { margin-left: 6px; padding: 2px 8px !important; font-size: 11.5px !important; }
.proof-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.proof-meta b { color: var(--text); }
.proof-img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; max-height: 62vh; }
.proof-img img { max-width: 100%; max-height: 62vh; object-fit: contain; display: block; }


/* 플랜 사용량 */
.usage-card .card-head { gap: 10px; }
.usage-card .card-head h3 { margin: 0; }
.usage-card .plan-chip { margin: 0; font-size: 11px; padding: 3px 9px; border-radius: 99px; }
.u-row { display: flex; gap: 12px; align-items: center; padding: 12px; margin-top: 8px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; }
.u-row:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-1px); }
.u-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.u-ic .i { width: 18px; height: 18px; }
.u-main { flex: 1; min-width: 0; }
.u-top { display: flex; align-items: center; gap: 8px; }
.u-top b { font-size: 13px; color: var(--text-2); }
.u-num { font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.u-num i { font-style: normal; color: var(--muted); font-weight: 700; font-size: 14px; }
.u-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); white-space: nowrap; }
.u-pill .i { width: 12px; height: 12px; }
.u-pill.warn { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.u-bar { height: 5px; border-radius: 9px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.u-bar i { display: block; height: 100%; border-radius: 9px; background: var(--c); }
.u-bar.inf i { width: 100%; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent) 0 8px, transparent 8px 14px); }
.u-row.lock { opacity: .6; }
.u-row.lock .u-pill { color: var(--muted); background: var(--surface-3); border-color: var(--line-2); }

/* 익명 설정 */
.anon-card .card-head .sub code { font-size: 11.5px; }
.tg-row { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.tg-row:first-of-type { border-top: 0; }
.tg-row > span:first-child { flex: 1; display: flex; flex-direction: column; }
.tg-row b { font-size: 14px; }
.tg-row small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* 제품 색상 */
.pcolor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-dot { width: 28px; height: 28px; border-radius: 9px; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .12s; }
.pc-dot:hover { transform: scale(1.08); }
.pc-dot.on, .pc-custom.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pc-dot.none { width: auto; padding: 0 10px; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pc-custom { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; border: 2px solid transparent; background: conic-gradient(#ef4444, #facc15, #22c55e, #2f80ff, #a855f7, #ef4444); position: relative; color: #fff; }
.pc-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pc-custom .i { width: 13px; height: 13px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.pc-prev { margin-left: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-family: ui-monospace, monospace; }
.pc-prev i { width: 4px; height: 22px; border-radius: 4px; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

/* 포인트 적립 */
.pt-row { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pt-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; padding-top: 4px; }

/* 이벤트 */
.ev-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ev-strip > div { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 700; }
.ev-strip > div b { color: var(--text); font-size: 16px; font-weight: 900; }
.ev-strip .live { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.ev-strip .live i, .ev-pill.live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: evPulse 1.6s infinite; }
@keyframes evPulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.ev-strip p { margin: 0 0 0 auto; }
.ev-grid { margin-bottom: 16px; align-items: stretch; }
.ev-card { display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.ev-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none; }
.ev-card.boost::before { background: radial-gradient(70% 100% at 100% 0%, rgba(245, 165, 36, .14), transparent 70%); }
.ev-card.sale::before { background: radial-gradient(70% 100% at 100% 0%, rgba(47, 128, 255, .16), transparent 70%); }
.ev-head { display: flex; gap: 14px; align-items: center; position: relative; }
.ev-head h3 { margin: 0; font-size: 17px; font-weight: 900; }
.ev-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.ev-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.ev-ic .i { width: 21px; height: 21px; }
.boost .ev-ic, .ev-ic.boost { color: #f5a524; background: rgba(245, 165, 36, .14); }
.sale .ev-ic, .ev-ic.sale { color: #4d94ff; background: rgba(47, 128, 255, .15); }
.ev-ic.sm { width: 38px; height: 38px; border-radius: 11px; }
.ev-dates { display: flex; align-items: flex-end; gap: 10px; }
.ev-dates label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ev-arrow { padding-bottom: 11px; color: var(--muted); font-weight: 900; }
.ev-mult { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-mult button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.ev-mult button b { font-size: 17px; font-weight: 900; }
.ev-mult button small { color: var(--muted); font-size: 11.5px; }
.ev-mult button:hover { border-color: rgba(245, 165, 36, .5); }
.ev-mult button.on { border-color: #f5a524; background: rgba(245, 165, 36, .12); box-shadow: 0 0 0 3px rgba(245, 165, 36, .12); }
.ev-mult button.on b { color: #f7b84b; }
.ev-val { display: flex; gap: 8px; }
.ev-val .input { flex: 1; min-width: 0; }
.seg.sm button { padding: 6px 12px; }
.ev-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--surface-2) 60%, transparent); font-size: 12.5px; color: var(--muted); }
.ev-preview:empty { display: none; }
.ev-preview div { display: flex; align-items: baseline; gap: 10px; }
.ev-preview s { color: var(--muted); }
.ev-preview b { font-size: 18px; color: var(--text); font-weight: 900; }
.ev-preview em { font-style: normal; font-weight: 800; color: #ff7a59; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ev-list .card-head { flex-wrap: wrap; }
.ev-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: 0; }
.ev-row.end { opacity: .55; }
.ev-main { flex: 1; min-width: 0; }
.ev-main .t-sub { margin-top: 3px; }
.ev-bar { height: 3px; border-radius: 3px; background: var(--surface-3); margin-top: 9px; overflow: hidden; max-width: 420px; }
.ev-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #22c55e); }
.ev-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; }
.ev-pill.live { color: #4ade80; background: rgba(34, 197, 94, .12); }
.ev-pill.soon { color: #60a5fa; background: rgba(47, 128, 255, .12); }
.ev-pill.end { color: var(--muted); background: var(--surface-3); }
@media (max-width: 920px) { .ev-mult { grid-template-columns: repeat(2, 1fr); } .ev-strip p { margin: 0; width: 100%; } .ev-dates { flex-direction: column; align-items: stretch; } .ev-arrow { display: none; } }

tr.dim td { opacity: .5; }

/* ═══════════ 반응형 ═══════════ */
@media (max-width: 1240px) {
  .kpi-row, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 90; width: 280px; transform: translateX(-100%); transition: transform .22s ease; }
  .app.nav-open .side { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); }
  .side .side-close, .menu-btn { display: grid; }
  .app { background: var(--bg); }
  .top { padding: 0 14px; height: 58px; }
  .crumb .muted, .crumb .slash { display: none; }
  .renew-btn span { display: none; }
  .top-user .tu-t { display: none; }
  .top-user { padding: 3px; }
  .pend-pill span { display: none; }
  .buy-card { flex-wrap: wrap; }
  .page { padding: 20px 16px 60px; }
  .page-head { gap: 12px; padding: 18px; border-radius: 18px; }
  .welcome { padding: 20px; border-radius: 18px; }
  .addon-grid { grid-template-columns: 1fr; }
  .welcome h1 { font-size: 22px; }
  .w-r { align-items: flex-start; width: 100%; }
  .w-spark { width: 100%; }
  .stat-strip { gap: 10px; }
  .card > .card-head:first-child { margin: -18px -18px 16px; padding: 14px 18px; }
  .card > .card-head:first-child + .table-wrap, .card > .card-head:first-child + .staff-list { margin-top: -16px; }
  .page-head h1 { font-size: 21px; }
  .ph-ic { width: 42px; height: 42px; border-radius: 12px; }
  .ph-ic svg { width: 20px; height: 20px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .embed .e-fields { grid-template-columns: 1fr 1fr; }
  .hide-m { display: none; }
  .show-m { display: inline; }
  .side-first { order: -1; }
  .perm-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .table-wrap, .staff-list { margin: 0 -18px -18px; }
  th, td { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 540px) {
  .g4 { grid-template-columns: 1fr; }
  .kpi-row { gap: 10px; }
  .kcard { padding: 14px; }
  .kcard .k-top { font-size: 12px; gap: 8px; }
  .k-ic { width: 28px; height: 28px; }
  .kcard .delta .muted { display: none; }
  .status { display: none; }
  .kcard .k-val { font-size: 22px; margin-top: 10px; }
}
