@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
/* ============================================================
   길드 관리 사이트 스타일
   - 기본 라이트 테마, 오른쪽 위 버튼으로 다크 테마 전환
   - 넓은 화면: 왼쪽 메뉴 고정 / 좁은 화면: ☰ 버튼으로 메뉴 열기
   ============================================================ */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --subtle: #f8fafc;
  --text: #0f172a;
  --strong: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;
  --line: rgba(148, 163, 184, .24);
  --row-line: #eef2f7;
  --border: #e2e8f0;
  --th-bg: #f0f5fc;
  --th-text: #405062;
  --input-bg: #ffffff;
  --accent: #3b82f6;
  --accent-h: #2563eb;
  --accent-soft: #eef4ff;
  --link: #2563eb;
  --pos: #16a34a;
  --neg: #e11d48;
  --warn: #b45309;
  --me: #b45309;
  --save: #16a34a;
  --side-bg: rgba(255, 255, 255, .9);
  --side-line: rgba(148, 163, 184, .24);
  --shadow: 0 0 0 1px rgba(15, 23, 42, .035), 0 18px 42px -26px rgba(15, 23, 42, .34);
  --shadow-sm: 0 0 0 1px rgba(15, 23, 42, .024), 0 7px 20px -16px rgba(15, 23, 42, .32);
  --hero-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px rgba(15, 23, 42, .07);
  --side-w: 224px;
  --icon: #64748b;
}
[data-theme="dark"] {
  --bg: #0f1218;
  --surface: #171b23;
  --subtle: #1d222c;
  --text: #e6e9ef;
  --strong: #f6f7fb;
  --muted: #a3acba;
  --muted2: #7c8696;
  --line: rgba(148, 163, 184, .16);
  --row-line: #232936;
  --border: #2f3644;
  --th-bg: #1e2531;
  --th-text: #aab5c5;
  --input-bg: #12151b;
  --accent: #60a5fa;
  --accent-h: #3b82f6;
  --accent-soft: #1c2a42;
  --link: #7aa8ff;
  --pos: #4ade80;
  --neg: #fb7185;
  --warn: #fbbf24;
  --me: #fbbf24;
  --save: #22c55e;
  --side-bg: rgba(23, 27, 35, .92);
  --side-line: #262c38;
  --shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 18px 42px -26px rgba(0, 0, 0, .9);
  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, .2), 0 7px 20px -16px rgba(0, 0, 0, .8);
  --hero-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
  --icon: #94a3b8;
}

[data-theme="pink"] {
  --bg: #fff5f7;
  --surface: #ffffff;
  --subtle: #fff7f9;
  --text: #3f2932;
  --strong: #291820;
  --muted: #7f626d;
  --muted2: #a98591;
  --line: #f472b629;
  --row-line: #f2d2da;
  --border: #f1c7d1;
  --th-bg: #fff0f4;
  --th-text: #72515e;
  --input-bg: #ffffff;
  --accent: #e6325b;
  --accent-h: #cf214a;
  --accent-soft: #fff0f4;
  --link: #cf214a;
  --pos: #16a34a;
  --neg: #be123c;
  --warn: #b45309;
  --me: #b45309;
  --save: #16a34a;
  --side-bg: rgba(255, 255, 255, .92);
  --side-line: #f7d3dc;
  --shadow: 0 0 0 1px #f43f5e0b, 0 20px 46px -28px #9f12394d;
  --shadow-sm: 0 0 0 1px #f43f5e09, 0 8px 22px -17px #9f123942;
  --hero-shadow: 0 1px 2px #ad2d4d0f, 0 14px 34px #ad2d4d17;
  --icon: #c61d49;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 420px),
    radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 520px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
               "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--side-bg); border-bottom: 1px solid var(--side-line); backdrop-filter: blur(8px);
}
.topbar .burger { display: none; background: none; border: 0; font-size: 22px; color: var(--text); cursor: pointer; padding: 4px 8px; margin: 0; }
.topbar .brand { font-weight: 800; font-size: 16px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sp { flex: 1; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
            color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; font-size: 16px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
          display: inline-flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; }
.topbar form { margin: 0; }

/* ---------- 왼쪽 메뉴 ---------- */
.shell { display: flex; min-height: calc(100vh - 56px); }
.side {
  width: var(--side-w); flex-shrink: 0; background: var(--side-bg); border-right: 1px solid var(--side-line); backdrop-filter: blur(8px);
  padding: 12px 15px 12px 0; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
}
.side a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px 8px 16px; border-radius: 0 16px 16px 0;
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 24px; margin-bottom: 2px;
}
.side a svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--icon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side a.on svg { stroke: currentColor; }
.side a:hover { background: var(--subtle); }
.side a.on { background: var(--accent-soft); color: var(--accent-h); }
[data-theme="dark"] .side a.on { color: var(--link); }
.side .side-sep { height: 1px; background: var(--side-line); margin: 10px 0 10px 16px; }
.side .side-admin { color: var(--strong); }
.side-dim { display: none; }

@media (max-width: 900px) {
  .topbar .burger { display: inline-block; }
  .side { position: fixed; left: 0; top: 56px; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .side.open { transform: none; }
  .side-dim.open { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.3); z-index: 55; }
}

/* ---------- 본문 ---------- */
.wrap { flex: 1; min-width: 0; max-width: 1100px; margin: 0 auto; padding: 24px clamp(16px, 2.2vw, 40px) 64px; }
.wrap.wide { max-width: min(2200px, 100%); }
.wrap.solo { max-width: 440px; margin-top: 48px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--muted2); text-transform: uppercase; margin-bottom: 2px; }
h1 { font-size: 23px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 4px; color: var(--strong); line-height: 1.3; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 30px 0 12px; color: var(--strong); }
h3 { font-size: 15px; font-weight: 700; color: var(--strong); }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

/* ---------- 페이지 머리 카드 ---------- */
/* ---- 페이지 상단 패널 (원본 pg-hero 값 그대로) ---- */
.pg-hero {
  --pgh-border-base: #f1f3f5; --pgh-panel: #fff; --pgh-strong: #0f172a; --pgh-muted: #6b7280; --pgh-muted2: #94a3b8;
  --pgh-brand: #3b82f6; --pgh-brand-soft: #eef2ff;
  --pgh-border: color-mix(in srgb, var(--pgh-brand) 18%, var(--pgh-border-base));
  --pgh-shadow: 0 1px 2px #0f172a0d, 0 14px 34px #0f172a12;
  --pgh-fx-line: color-mix(in srgb, var(--pgh-brand) 16%, transparent);
  --pgh-fx-line-soft: color-mix(in srgb, var(--pgh-brand) 10%, transparent);
  --pgh-fx-fill: color-mix(in srgb, var(--pgh-brand) 5%, transparent);
  --pgh-fx-dot: color-mix(in srgb, var(--pgh-brand) 13%, transparent);
  --pgh-fx-dotgrid: color-mix(in srgb, var(--pgh-brand) 17%, transparent);
  --pgh-fx-sheen: #ffffffeb;
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 16px; padding: 20px 24px; background: var(--pgh-panel);
  border: 1px solid var(--pgh-border); border-radius: 1.75rem; box-shadow: var(--pgh-shadow);
}
[data-theme="dark"] .pg-hero {
  --pgh-border-base: #343a45; --pgh-panel: #1d2027; --pgh-strong: #f6f7fb; --pgh-muted: #abb1bc; --pgh-muted2: #8e95a1;
  --pgh-brand: #7aa8ff; --pgh-brand-soft: #293752;
  --pgh-border: color-mix(in srgb, var(--pgh-brand) 22%, var(--pgh-border-base));
  --pgh-shadow: 0 1px 2px #0006, 0 18px 40px #00000047;
  --pgh-fx-line: color-mix(in srgb, var(--pgh-brand) 18%, transparent);
  --pgh-fx-line-soft: color-mix(in srgb, var(--pgh-brand) 13%, transparent);
  --pgh-fx-fill: color-mix(in srgb, var(--pgh-brand) 7%, transparent);
  --pgh-fx-dot: color-mix(in srgb, var(--pgh-brand) 16%, transparent);
  --pgh-fx-dotgrid: color-mix(in srgb, var(--pgh-brand) 20%, transparent);
  --pgh-fx-sheen: #ffffff1a;
}
.pg-hero-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.pg-hero-fx i { position: absolute; display: none; }
/* 글래스 스트릭 (기본) — 사선 유리 결 */
:root:not([data-hero-pattern="rings"]):not([data-hero-pattern="lens"]) .pg-hero-fx i:nth-child(1) { display: block; top: -40%; bottom: -40%; left: 58%; width: 84px; transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, var(--pgh-fx-fill) 46%, transparent); border-left: 1px solid var(--pgh-fx-line-soft); }
:root:not([data-hero-pattern="rings"]):not([data-hero-pattern="lens"]) .pg-hero-fx i:nth-child(2) { display: block; top: -40%; bottom: -40%; left: 76%; width: 46px; transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, var(--pgh-fx-fill) 50%, transparent); border-left: 1px solid color-mix(in srgb, var(--pgh-brand) 8%, transparent); }
:root:not([data-hero-pattern="rings"]):not([data-hero-pattern="lens"]) .pg-hero-fx i:nth-child(3) { display: block; top: 16px; left: 52%; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--pgh-fx-line); background: radial-gradient(circle at 34% 30%, var(--pgh-fx-sheen), var(--pgh-fx-fill)); }
:root:not([data-hero-pattern="rings"]):not([data-hero-pattern="lens"]) .pg-hero-fx i:nth-child(4) { display: block; top: 30px; right: 12%; width: 5px; height: 5px; border-radius: 50%; background: var(--pgh-fx-dot); }
:root:not([data-hero-pattern="rings"]):not([data-hero-pattern="lens"]) .pg-hero-fx i:nth-child(5) { display: block; bottom: 16px; right: 30%; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--pgh-brand) 10%, transparent); }
/* 글래스 링 — 기울인 링 + 도트 */
:root[data-hero-pattern="rings"] .pg-hero-fx i:nth-child(1) { display: block; top: -58px; right: -46px; width: 250px; height: 152px; border-radius: 50%; transform: rotate(-11deg);
  border: 1px solid var(--pgh-fx-line); background: linear-gradient(132deg, var(--pgh-fx-fill), transparent 62%); }
:root[data-hero-pattern="rings"] .pg-hero-fx i:nth-child(2) { display: block; bottom: -42px; left: 41%; width: 122px; height: 76px; border-radius: 50%; transform: rotate(14deg); border: 1px solid var(--pgh-fx-line-soft); }
:root[data-hero-pattern="rings"] .pg-hero-fx i:nth-child(3) { display: block; top: 8px; right: 15%; width: 170px; height: 92px;
  background-image: radial-gradient(circle, var(--pgh-fx-dotgrid) 0 1px, transparent 1.3px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(#000 22%, #0000 74%); mask-image: radial-gradient(#000 22%, #0000 74%); }
:root[data-hero-pattern="rings"] .pg-hero-fx i:nth-child(4) { display: block; top: 17px; left: 56%; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--pgh-fx-line); background: radial-gradient(circle at 34% 30%, var(--pgh-fx-sheen), var(--pgh-fx-fill)); }
/* 프로스트 렌즈 — 유리 렌즈 */
:root[data-hero-pattern="lens"] .pg-hero-fx i:nth-child(1) { display: block; top: -46px; right: -34px; width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--pgh-fx-line);
  background: radial-gradient(circle at 32% 30%, var(--pgh-fx-sheen), var(--pgh-fx-fill) 58%, color-mix(in srgb, var(--pgh-brand) 9%, transparent));
  box-shadow: inset 0 1px 8px #ffffff8c, inset 0 -6px 14px var(--pgh-fx-fill); }
:root[data-hero-pattern="lens"] .pg-hero-fx i:nth-child(2) { display: block; bottom: -26px; left: 47%; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--pgh-fx-line-soft);
  background: radial-gradient(circle at 34% 28%, var(--pgh-fx-sheen), var(--pgh-fx-fill) 60%, color-mix(in srgb, var(--pgh-brand) 7%, transparent)); }
:root[data-hero-pattern="lens"] .pg-hero-fx i:nth-child(3) { display: block; top: 22px; right: 27%; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--pgh-fx-line); background: radial-gradient(circle at 34% 30%, var(--pgh-fx-sheen), var(--pgh-fx-fill)); }
:root[data-hero-pattern="lens"] .pg-hero-fx i:nth-child(4) { display: block; bottom: 18px; right: 21%; width: 6px; height: 6px; border-radius: 50%; background: var(--pgh-fx-dot); }
.pg-hero-main { position: relative; display: flex; align-items: center; gap: 15px; min-width: 0; }
.pg-seal { position: relative; flex: 0 0 auto; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.pg-seal-bg { position: absolute; inset: 0; border-radius: 14px; transform: rotate(45deg);
  background: var(--pgh-brand-soft); border: 1.5px solid var(--pgh-brand); box-shadow: inset 0 0 0 3px var(--pgh-panel); }
.pg-seal svg { position: relative; width: 21px; height: 21px; fill: none; stroke: var(--pgh-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-hero-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--pgh-muted2); }
.pg-title { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.02em; line-height: 1.3; color: var(--pgh-strong); }
.pg-desc { margin: 0; font-size: 12.5px; color: var(--pgh-muted); }
@media (max-width: 639px) {
  .pg-hero { border-radius: 1.25rem; gap: 10px; padding: 15px 16px; }
  .pg-title { font-size: 18px; } .pg-desc { font-size: 12px; }
  .pg-seal { width: 38px; height: 38px; } .pg-seal-bg { border-radius: 11px; } .pg-seal svg { width: 17px; height: 17px; }
  :root[data-hero-pattern="rings"] .pg-hero-fx i:nth-child(1) { width: 160px; height: 98px; top: -40px; right: -34px; }
  :root[data-hero-pattern="rings"] .pg-hero-fx i:nth-child(3) { width: 110px; height: 64px; right: 10%; }
  :root[data-hero-pattern="lens"] .pg-hero-fx i:nth-child(1) { width: 88px; height: 88px; top: -30px; right: -24px; }
}
.pg-hero-right { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pg-hero-right > div { gap: 8px !important; }

/* ---------- 카드 ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card .card { box-shadow: none; }
a.card { transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-1px); }
.card.top-blue::before, .card.top-purple::before, .card.top-red::before, .card.top-green::before, .card.top-amber::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
}
.card.top-blue::before   { background: linear-gradient(90deg, #3b82f6, rgba(59,130,246,.28)); }
.card.top-purple::before { background: linear-gradient(90deg, #8b5cf6, rgba(139,92,246,.28)); }
.card.top-red::before    { background: linear-gradient(90deg, #f43f5e, rgba(244,63,94,.28)); }
.card.top-green::before  { background: linear-gradient(90deg, #22c55e, rgba(34,197,94,.28)); }
.card.top-amber::before  { background: linear-gradient(90deg, #f59e0b, rgba(245,158,11,.28)); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div, .row > .card, .row > a.card, .row > form.card { flex: 1; min-width: 150px; }
.row > .card .att-title, .row > a.card .att-title { font-size: 22px; letter-spacing: -.01em; color: var(--strong); }
.row > .card > .muted:first-child, .row > a.card > .muted:first-child { font-size: 12.5px; font-weight: 600; }

/* ---------- 입력 ---------- */
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 13px; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.muted { color: var(--muted); font-size: 13px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], input[type=time],
input[type=search], input[type=url], input[type=date], input[type=email], select, textarea {
  width: 100%; padding: 9px 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 30px; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input:disabled, select:disabled { opacity: .6; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent-h); width: 16px; height: 16px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
fieldset:disabled { opacity: .75; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ---------- 버튼 ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; padding: 9px 16px;
  background: var(--accent-h); border: 1px solid transparent; border-radius: 12px;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08); transition: background .15s, border-color .15s, color .15s;
}
button:hover, .btn:hover { background: #1d4ed8; }
button:disabled { opacity: .4; cursor: not-allowed; }
.btn-s { margin: 0 !important; padding: 6px 12px !important; font-size: 13px !important; font-weight: 600 !important; border-radius: 10px !important; }
.btn-gray  { background: var(--surface) !important; color: color-mix(in srgb, var(--text) 85%, var(--muted)) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.btn-gray:hover { background: var(--subtle) !important; }
.btn-red   { background: var(--neg) !important; color: #fff !important; }
.btn-green { background: var(--save) !important; color: #fff !important; }
.btn-s.btn-red   { background: color-mix(in srgb, #f43f5e 9%, var(--surface)) !important; color: #e11d48 !important; border: 1px solid color-mix(in srgb, #f43f5e 30%, var(--surface)) !important; box-shadow: none !important; }
.btn-s.btn-red:hover { background: color-mix(in srgb, #f43f5e 16%, var(--surface)) !important; }
.btn-s.btn-green { background: color-mix(in srgb, #22c55e 9%, var(--surface)) !important; color: #15803d !important; border: 1px solid color-mix(in srgb, #22c55e 32%, var(--surface)) !important; box-shadow: none !important; }
.btn-s.btn-green:hover { background: color-mix(in srgb, #22c55e 16%, var(--surface)) !important; }
[data-theme="dark"] .btn-s.btn-red { color: #fb7185 !important; }
[data-theme="dark"] .btn-s.btn-green { color: #4ade80 !important; }

/* ---------- 안내 상자 ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; box-shadow: var(--shadow-sm); }
.alert.ok  { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); }
.alert.err { background: color-mix(in srgb, #f43f5e 7%, var(--surface)); border: 1px solid color-mix(in srgb, #f43f5e 32%, transparent); color: var(--text); }
.alert.warn { background: color-mix(in srgb, #f59e0b 9%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); color: var(--warn); }
.alert ul { margin: 0; padding-left: 18px; }
.alert a { color: inherit; font-weight: 700; }
a.alert:hover { filter: brightness(.98); }

.code {
  font-family: Consolas, monospace; font-size: 26px; letter-spacing: 4px; background: var(--subtle);
  border: 1px dashed var(--accent); border-radius: 12px; padding: 14px; text-align: center; margin: 10px 0;
}

/* ---------- 표 / 배지 / 칩 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { background: var(--th-bg); text-align: left; padding: 10px 12px; font-weight: 700; color: var(--th-text); font-size: 13px; white-space: nowrap; }
.tbl td { border-top: 1px solid var(--row-line); padding: 10px 12px; vertical-align: middle; font-weight: 500; }
.tbl tr:hover td { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.tbl form { display: inline; margin: 0; }
.card > .tbl:first-child th:first-child { border-top-left-radius: 15px; }
.card > .tbl:first-child th:last-child { border-top-right-radius: 15px; }
.badge { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; vertical-align: middle; }
.b-open   { background: color-mix(in srgb, #22c55e 12%, var(--surface)); color: #15803d; border: 1px solid color-mix(in srgb, #22c55e 28%, transparent); }
.b-closed { background: var(--subtle); color: var(--muted); border: 1px solid var(--border); }
.b-cancel { background: color-mix(in srgb, #f43f5e 10%, var(--surface)); color: #e11d48; border: 1px solid color-mix(in srgb, #f43f5e 26%, transparent); }
.b-warn   { background: color-mix(in srgb, #f59e0b 13%, var(--surface)); color: #b45309; border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); }
[data-theme="dark"] .b-open { color: #4ade80; }
[data-theme="dark"] .b-cancel { color: #fb7185; }
[data-theme="dark"] .b-warn { color: #fbbf24; }
.me { color: var(--me); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { background: var(--subtle); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 500; }
.chip.me { background: color-mix(in srgb, #f59e0b 16%, var(--surface)); color: var(--me); border-color: color-mix(in srgb, #f59e0b 35%, transparent); }

.att { margin-bottom: 14px; }
.att-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.att-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--strong); }
details > summary { list-style-position: inside; cursor: pointer; font-weight: 600; }
details.card > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted2); border-bottom: 2px solid var(--muted2); transform: rotate(45deg); margin: -4px 4px 0 10px; transition: transform .15s; }
details.card[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }

/* ---------- 알림 토스트 ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; max-width: 340px; }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--text);
         padding: 12px 14px; border-radius: 12px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-size: 14px; animation: tin .25s ease-out; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 막대 그래프 ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-decoration: none; color: var(--text); }
.bar i { display: block; width: 100%; max-width: 38px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bar.on i { background: #fbbf24; }
.bar b { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.bar span { font-size: 11px; color: var(--muted); margin-top: 4px; }
.photo-thumb { max-width: 100%; max-height: 320px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; display: block; }

/* 예전 상단 메뉴 (사용 안 함) */
.nav { display: none; }


/* ---------- 카드 제목 / 로비 ---------- */
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--strong); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.att-head > .card-title { margin-bottom: 0; }
.notice-item { padding: 10px 0; border-top: 1px solid var(--row-line); }
.notice-item:first-of-type { border-top: 0; padding-top: 0; }
.lobby-hero {
  text-align: center; padding: 34px 24px; margin: 0 0 18px; border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background: radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
              linear-gradient(135deg, color-mix(in srgb, var(--accent) 2%, var(--surface)), var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 4%, transparent), 0 12px 28px -20px rgba(29, 78, 216, .3);
}
.lobby-hero h1 { font-size: 28px; margin: 0 0 6px; }
.lobby-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.lobby-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.lobby-meta span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted);
  background: color-mix(in srgb, var(--strong) 4%, var(--surface)); border: 1px solid var(--border); }
.lobby-meta b { color: var(--strong); font-weight: 700; }
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .rank-grid { grid-template-columns: 1fr; } }
.rank-grid .card { padding: 16px; }
.rank-tbl th, .rank-tbl td { padding: 8px 8px; font-size: 13.5px; }
.rank-tbl th { font-size: 12.5px; }
.rank-tbl tr.podium td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.rank-tbl tr.mine td { background: color-mix(in srgb, #f59e0b 10%, transparent); }
.rank-tbl th:first-child { border-radius: 10px 0 0 10px; }
.rank-tbl th:last-child { border-radius: 0 10px 10px 0; }
.rank-tbl tr:nth-child(2) td { border-top: 0; }
.weights { font-size: 12.5px; color: var(--muted); background: var(--subtle); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.weights b { color: var(--strong); }

/* ---------- 요약 칸 (통계 타일) ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-tile { position: relative; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 104px; }
.stat-tile.hl { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.st-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.st-value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--strong); margin-top: 6px; line-height: 1.2; }
.stat-tile.hl .st-value { color: var(--accent-h); }
[data-theme="dark"] .stat-tile.hl .st-value { color: var(--accent); }
.st-value small { font-size: 14px; font-weight: 700; color: inherit; opacity: .8; }
.st-sub { font-size: 12px; color: var(--muted2); margin-top: 4px; }
.st-ico { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--subtle); border: 1px solid var(--border); }
.stat-tile.hl .st-ico { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.st-ico svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-tile.hl .st-ico svg { stroke: var(--accent-h); }

/* ---------- 탭(세그먼트) / 검색 줄 ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.seg a { padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); background: var(--subtle); }
.seg a.on { background: var(--accent-h); color: #fff; box-shadow: 0 2px 6px -2px rgba(37, 99, 235, .6); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 420px; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search input { padding-left: 36px !important; }
.card .tbl th:first-child { border-radius: 10px 0 0 10px; }
.card .tbl th:last-child { border-radius: 0 10px 10px 0; }
.card[style*="padding:0"] .tbl th:first-child, .card[style*="padding:0"] .tbl th:last-child { border-radius: 0; }
.tbl tr:nth-child(2) td { border-top: 0; }
.tbl tr.mine td { background: color-mix(in srgb, #f59e0b 9%, transparent); }

/* ---------- 표 안 꾸밈 ---------- */
.ini { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px; vertical-align: middle;
  font-size: 12px; font-weight: 700; color: var(--accent-h); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
[data-theme="dark"] .ini { color: var(--accent); }
.pill-num { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--accent-h); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
[data-theme="dark"] .pill-num { color: var(--accent); }
.b-class { background: color-mix(in srgb, #10b981 12%, var(--surface)); color: #047857; border: 1px solid color-mix(in srgb, #10b981 28%, transparent); }
[data-theme="dark"] .b-class { color: #34d399; }

/* ---------- 업데이트/점검 목록 · 글 보기 창 ---------- */
.hero-count { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #7c3aed; padding-right: 6px; }
[data-theme="dark"] .hero-count { color: #a78bfa; }
.seg-n { font-size: 12px; opacity: .75; margin-left: 2px; }
.upd-list { display: flex; flex-direction: column; gap: 10px; }
.upd-row {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.upd-row:hover { background: var(--surface); border-color: color-mix(in srgb, #8b5cf6 40%, var(--border)); transform: translateY(-1px); box-shadow: var(--shadow); }
.upd-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.upd-date { flex: none; width: 140px; font-size: 12.5px; color: var(--muted); }
.upd-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-tags { flex: none; display: flex; gap: 6px; }
.upd-arrow { flex: none; color: #8b5cf6; font-size: 18px; transition: transform .15s; }
.upd-row:hover .upd-arrow { transform: translateX(3px); }
@media (max-width: 700px) {
  .upd-row { flex-wrap: wrap; gap: 4px 10px; }
  .upd-date { width: auto; order: 1; }
  .upd-tags { order: 2; }
  .upd-arrow { display: none; }
  .upd-title { order: 3; flex-basis: 100%; white-space: normal; }
}
.b-mod { background: #fff1e6; color: #c2410c; border: 1px solid #fed7aa; }
[data-theme="dark"] .b-mod { background: #3b2418; color: #fdba74; border-color: #7c3a16; }

.upd-modal { position: fixed; inset: 0; z-index: 900; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.upd-modal[hidden] { display: none; }
.upd-box { width: min(900px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.upd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; }
.upd-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #7c3aed; }
[data-theme="dark"] .upd-kicker { color: #a78bfa; }
.upd-mtitle { font-size: 17px; font-weight: 700; color: var(--strong); margin-top: 4px; line-height: 1.45; }
.upd-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.upd-x { margin: 0; width: 38px; height: 38px; padding: 0; flex: none; border-radius: 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: none; font-size: 15px; }
.upd-x:hover { background: var(--subtle); }
.upd-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 22px 12px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, #facc15 14%, var(--surface)); border: 1px solid color-mix(in srgb, #eab308 45%, transparent); color: var(--text); font-size: 13.5px; }
.upd-banner[hidden] { display: none; }
.upd-banner b { color: color-mix(in srgb, #a16207 85%, var(--text)); }
[data-theme="dark"] .upd-banner b { color: #fde047; }
.upd-bsub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.upd-pen { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #facc15; color: #422006; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.upd-banner .btn-s { border-radius: 999px !important; }
.upd-body { flex: 1; overflow-y: auto; padding: 6px 26px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.upd-body img { max-width: 100%; height: auto; display: block; margin: 10px auto; border-radius: 8px; }
.upd-body p { margin: 0; min-height: 1em; }
.upd-body table { border-collapse: collapse; max-width: 100%; margin: 8px 0; display: block; overflow-x: auto; font-size: 14px; }
.upd-body td, .upd-body th { border: 1px solid var(--border); padding: 6px 10px; }
.upd-body a { color: var(--link); }
.upd-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 18px; }
.upd-foot .btn-s:not(.btn-gray):not(.btn-red) { padding: 7px 18px !important; }
mark.upd-mark { background: color-mix(in srgb, #facc15 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme="dark"] mark.upd-mark { background: rgba(250, 204, 21, .32); }
del.upd-del { color: var(--muted2); text-decoration: line-through; text-decoration-color: var(--muted); background: color-mix(in srgb, var(--muted2) 14%, transparent); border-radius: 3px; padding: 0 2px; }
.upd-mtitle mark.upd-mark { padding: 0 3px; }
.chg-now { outline: 2px solid #f59e0b; outline-offset: 1px; }
.marks-off mark.upd-mark { background: none; padding: 0; }
.marks-off del.upd-del { display: none; }
.marks-off .chg-now { outline: none; }
[data-theme="dark"] .upd-body span[style*="color"], [data-theme="dark"] .upd-body font[color], [data-theme="dark"] .upd-body strong[style*="color"] { filter: brightness(1.7) saturate(.85); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager a { min-width: 38px; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.pager a:hover { background: var(--subtle); }
.pager a.on { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
.pager a.pg-num:not(.on) { background: transparent; border-color: transparent; box-shadow: none; padding: 0 10px; }
.pager a.off { opacity: .45; pointer-events: none; }

/* ---------- 머리 카드 오른쪽 버튼 ---------- */
.pg-hero { flex-wrap: nowrap; }
.pg-hero-main { flex: 1 1 auto; }
.pg-hero-right { flex: 0 0 auto; }
@media (max-width: 860px) { .pg-hero { flex-wrap: wrap; } .pg-hero-right { flex-basis: 100%; justify-content: flex-start; } }
.pg-hero-right .btn-s, .hero-btn { margin: 0 !important; padding: 10px 18px !important; font-size: 14px !important; font-weight: 700 !important; border-radius: 12px !important; }
.hero-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
a.hero-btn, button.hero-btn:not(.soft-green):not(.soft-red):not(.soft-amber) { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; box-shadow: 0 6px 16px -6px rgba(59, 130, 246, .7); }
.soft-green, .btn-s.soft-green { background: color-mix(in srgb, #22c55e 10%, var(--surface)) !important; color: #15803d !important; border: 1px solid color-mix(in srgb, #22c55e 35%, var(--surface)) !important; box-shadow: none !important; }
.soft-red, .btn-s.soft-red { background: color-mix(in srgb, #f43f5e 9%, var(--surface)) !important; color: #e11d48 !important; border: 1px solid color-mix(in srgb, #f43f5e 32%, var(--surface)) !important; box-shadow: none !important; }
.btn-amber, .soft-amber { background: color-mix(in srgb, #f59e0b 12%, var(--surface)) !important; color: #b45309 !important; border: 1px solid color-mix(in srgb, #f59e0b 38%, var(--surface)) !important; box-shadow: none !important; }
[data-theme="dark"] .soft-green { color: #4ade80 !important; }
[data-theme="dark"] .soft-red { color: #fb7185 !important; }
[data-theme="dark"] .btn-amber, [data-theme="dark"] .soft-amber { color: #fbbf24 !important; }
.cap { display: inline-flex; padding: 7px 14px; border-radius: 999px; font-size: 12px; color: var(--muted);
  background: color-mix(in srgb, var(--strong) 5%, var(--surface)); border: 1px solid var(--border); white-space: nowrap; }

/* ---------- 색 타일 · 배지 ---------- */
.stat-tile.tint-blue   { background: color-mix(in srgb, #3b82f6 7%, var(--surface)); border-color: color-mix(in srgb, #3b82f6 22%, var(--border)); }
.stat-tile.tint-purple { background: color-mix(in srgb, #8b5cf6 7%, var(--surface)); border-color: color-mix(in srgb, #8b5cf6 22%, var(--border)); }
.stat-tile.tint-green  { background: color-mix(in srgb, #10b981 7%, var(--surface)); border-color: color-mix(in srgb, #10b981 22%, var(--border)); }
.stat-tile.tint-blue .st-value   { color: #2563eb; }
.stat-tile.tint-purple .st-value { color: #7c3aed; }
.stat-tile.tint-green .st-value  { color: #059669; }
[data-theme="dark"] .stat-tile.tint-blue .st-value { color: #60a5fa; }
[data-theme="dark"] .stat-tile.tint-purple .st-value { color: #a78bfa; }
[data-theme="dark"] .stat-tile.tint-green .st-value { color: #34d399; }
.stat-tiles .stat-tile:not(:has(.st-ico)) { min-height: 0; }
.b-div { background: #2563eb; color: #fff; border: 1px solid #2563eb; }
.b-legend { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); color: #b45309; border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); }
[data-theme="dark"] .b-legend { color: #fbbf24; }
.b-people { background: color-mix(in srgb, #8b5cf6 12%, var(--surface)); color: #6d28d9; border: 1px solid color-mix(in srgb, #8b5cf6 28%, transparent); }
[data-theme="dark"] .b-people { color: #c4b5fd; }
.num-pill { display: inline-block; min-width: 36px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--subtle); border: 1px solid var(--border); }

/* ---------- 정렬 가능한 표 ---------- */
table.sortable th { cursor: pointer; user-select: none; }
table.sortable th::after { content: " ⇅"; font-size: 10px; color: var(--muted2); }
table.sortable th.sorted-asc::after { content: " ↑"; color: var(--accent-h); }
table.sortable th.sorted-desc::after { content: " ↓"; color: var(--accent-h); }

/* ---------- 보스 참여내역 ---------- */
.legend-line { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 0 2px 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-blue { background: var(--accent); } .dot-gray { background: var(--muted2); }
.tbl tr.bh-names td { background: var(--subtle); }

/* ---------- 분배금 ---------- */
.dist-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 8px;
  border-radius: 22px; color: #fff; text-decoration: none; background: linear-gradient(120deg, #1e3a5f, #3b5b8a 55%, #6b7fa8); box-shadow: 0 18px 40px -22px rgba(30, 58, 95, .8); }
.dist-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 700; }
.dist-period { font-size: 12.5px; opacity: .8; margin-left: 6px; }
.dist-amount { font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin-top: 10px; }
.dist-amount small { font-size: 15px; font-weight: 700; opacity: .8; }
.dist-sub { font-size: 13px; opacity: .8; }
.dist-mine { min-width: 240px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.dist-mine-v { font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
.dist-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.9); color: #1e3a5f; font-size: 12px; font-weight: 700; margin-right: 8px; }
.dist-go { font-size: 13px; font-weight: 700; }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dist-card { text-decoration: none; color: var(--text); }
.dist-ctitle { font-size: 16px; font-weight: 700; color: var(--strong); margin-top: 6px; }
.dist-cnum { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--strong); margin: 4px 0 2px; }
.dist-cnum small { font-size: 13px; color: var(--accent-h); }
.dist-link { font-size: 12.5px; font-weight: 700; color: var(--accent-h); }

/* ---------- 주간 요약 기간 고르기 ---------- */
.period-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.period-strip a { flex: none; min-width: 110px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.period-strip a b { font-size: 13.5px; }
.period-strip a span { font-size: 11.5px; color: var(--muted); }
.period-strip a.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.period-strip a.on b { color: var(--accent-h); }

/* ---------- 내 정보 확인 ---------- */
.me-id { text-align: center; padding: 18px 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--surface); }
.me-name { font-size: 26px; font-weight: 900; letter-spacing: -.02em; color: var(--accent-h); }
[data-theme="dark"] .me-name { color: var(--accent); }
.calc-box { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--subtle); border: 1px solid var(--border); }
.calc-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.calc-item { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); font-size: 13px; }
.calc-item > b { flex-basis: 100%; font-size: 13px; }
.calc-item.c-blue > b { color: #2563eb; } .calc-item.c-green { border-left-color: #10b981; } .calc-item.c-green > b { color: #059669; }
.frac { display: inline-flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); }
.frac span:first-child { border-bottom: 1px solid var(--muted2); padding-bottom: 1px; }
.calc-item em { font-style: normal; color: var(--muted); font-size: 12px; }
.calc-base { margin-left: auto; text-align: right; }
.calc-base small { display: block; font-size: 11px; color: var(--muted); }
.calc-base b { font-size: 18px; }
.calc-notes { margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.boss-cell { padding: 12px 14px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--border); font-size: 13.5px; }
.bar-track { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--muted2) 22%, transparent); margin-top: 8px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.tx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tx-head { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.tx-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px 12px; }
.tx-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--row-line); font-size: 13.5px; }
.tx-row:first-child { border-top: 0; }

/* ---------- 마이페이지 ---------- */
.mp-card { margin-bottom: 16px; scroll-margin-top: 70px; }
.mp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.spec-sum { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); }
.spec-power { font-size: 28px; font-weight: 900; letter-spacing: -.02em; color: var(--accent-h); }
[data-theme="dark"] .spec-power { color: var(--accent); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.spec-cell { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--subtle); border: 1px solid var(--border); font-size: 13.5px; }
.noti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.noti-item { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--subtle); cursor: pointer; font-weight: 400; }
.noti-item b { display: block; font-size: 14px; }
.noti-item small { color: var(--muted); font-size: 12px; }
.noti-item:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }

/* ---------- 넓은 화면 · 스크롤바 · 줄바꿈 ---------- */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted2) 55%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted2) 45%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--muted2) 70%, transparent); }
.tbl.nowrap td, .tbl.nowrap th { white-space: nowrap; }
.chip, .num-pill, .pill-num, .cap { white-space: nowrap; }

/* ---------- 순서 바꾸기 · 한 번에 저장 ---------- */
.sort-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; transition: opacity .15s; }
.sort-row > input[type=text] { flex: 1; }
.grip { cursor: grab; color: var(--muted2); font-size: 18px; line-height: 1; padding: 4px 2px; user-select: none; flex: none; }
.grip:active { cursor: grabbing; }
.sort-row.dragging { opacity: .45; }
.sort-row.to-del { opacity: .5; }
.sort-row.to-del input { text-decoration: line-through; }
.item-card { display: block; margin-top: 12px; padding: 14px 16px; }
.item-card.to-del { border-color: var(--neg); }
.item-top { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.item-top .grip { align-self: center; }
.item-top label { margin-top: 0; }
.opt-wrap { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--border); }
.opt-head, .opt-row { display: grid; grid-template-columns: 22px minmax(120px, 1fr) 120px 80px 64px; gap: 8px; align-items: center; }
.opt-head { font-size: 12px; font-weight: 700; color: var(--th-text); padding: 0 0 4px; }
.opt-row { margin-top: 6px; }
.save-bar { position: sticky; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; padding: 12px 16px;
  border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.save-bar #dirtyMsg { margin-right: auto; }
.save-bar.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.save-bar .dirty { margin-right: auto; color: var(--warn); font-weight: 600; font-size: 13px; }

/* ---------- 로그인 (입장 코드 → 길드원 로그인) ---------- */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 10% 10%, color-mix(in srgb, #3b82f6 14%, transparent), transparent 420px),
              radial-gradient(circle at 90% 90%, color-mix(in srgb, #8b5cf6 12%, transparent), transparent 420px), var(--bg); }
.auth-card { width: min(880px, 100%); min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden;
  background: var(--surface); box-shadow: 0 30px 80px -30px rgba(15, 23, 42, .45); border: 1px solid var(--line); }
.auth-side { position: relative; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(59,130,246,.55), transparent 45%), radial-gradient(circle at 85% 95%, rgba(124,58,237,.5), transparent 40%), #0b1224; }
.auth-side.light { background: var(--subtle); align-items: center; justify-content: center; }
.auth-side.light .auth-logo { width: 120px; height: 120px; filter: grayscale(1); opacity: .35; }
.auth-logo { width: 72px; height: 72px; border-radius: 18px; }
.auth-brand b { display: block; font-size: 22px; font-weight: 800; }
.auth-brand span { font-size: 13px; opacity: .75; }
.auth-main { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-main h1 { font-size: 24px; }
.auth-main input[type=text], .auth-main input[type=password] { padding: 12px 14px; font-size: 15px; border-radius: 12px; }
.auth-btn { width: 100%; margin-top: 22px; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .8); }
.auth-btn:disabled { opacity: .5; }
.auth-back { all: unset; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.auth-back:hover { color: var(--text); }
.auth-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.auth-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-h); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-eye { all: unset; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; opacity: .55; font-size: 15px; }
.auth-remember { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--subtle); cursor: pointer; }
.auth-remember b { display: block; font-size: 14px; }
.auth-remember small { font-size: 12px; color: var(--muted); font-weight: 400; }
input.switch { appearance: none; -webkit-appearance: none; width: 42px !important; height: 24px !important; border-radius: 99px; background: var(--border); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
input.switch:checked { background: var(--accent-h); }
input.switch:checked::after { left: 21px; }
@media (max-width: 760px) { .auth-card { grid-template-columns: 1fr; min-height: 0; } .auth-side { min-height: 140px; padding: 24px; } .auth-side.light { display: none; } .auth-main { padding: 28px 22px; } }

[hidden] { display: none !important; }

/* ---------- 길드원 관리 표 ---------- */
.seg-form { margin: 0; }
.seg button { all: unset; padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); background: var(--subtle); }
.seg button.on { background: var(--accent-h); color: #fff; }
.mem-card { padding: 14px 16px; }
.qa-form { display: flex; gap: 6px; align-items: center; margin: 0; padding: 4px; border-radius: 12px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.qa-form input { width: 220px; padding: 6px 10px; }
.mem-save { margin: 0 !important; padding: 9px 18px !important; border-radius: 12px !important; background: color-mix(in srgb, var(--accent) 22%, var(--surface)) !important; color: var(--accent-h) !important; }
.mem-save.on { background: var(--accent-h) !important; color: #fff !important; box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .7); }
.mem-scroll { overflow: auto; max-height: calc(100vh - 260px); border-radius: 12px; }
.mem-tbl th { position: sticky; top: 0; z-index: 2; text-align: center; }
.mem-tbl td { padding: 8px 6px; }
.mem-tbl tr.dirty td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.mem-tbl tr.inactive td { opacity: .5; }
.mem-tbl input[type=text], .mem-tbl input[type=date], .mem-tbl input[type=number], .mem-tbl select { padding: 6px 8px; font-size: 13px; border-radius: 9px; }
.mem-nick { width: 150px !important; text-align: center; font-weight: 700; }
.mem-nick.me { color: var(--me); }
.mem-date { width: 140px !important; }
.mem-num { width: 72px !important; text-align: center; }
.pill-sel { width: auto !important; min-width: 96px; border-radius: 999px !important; font-weight: 600; text-align: center; }
.pill-sel.blue { background: color-mix(in srgb, #3b82f6 10%, var(--surface)); border-color: color-mix(in srgb, #3b82f6 35%, var(--border)); color: #2563eb; }
.pill-sel.green { background: color-mix(in srgb, #10b981 10%, var(--surface)); border-color: color-mix(in srgb, #10b981 35%, var(--border)); color: #047857; }
.pill-sel.opt { background: color-mix(in srgb, #f43f5e 6%, var(--surface)); }
[data-theme="dark"] .pill-sel.blue { color: #93c5fd; } [data-theme="dark"] .pill-sel.green { color: #6ee7b7; }
.mem-power { display: inline-block; min-width: 80px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--border); font-weight: 700; color: var(--text); text-decoration: none; }
.mem-power:hover { border-color: var(--accent); }
.icon-act { all: unset; cursor: pointer; font-size: 16px; padding: 4px 6px; border-radius: 8px; }
.icon-act:hover { background: var(--subtle); }

/* ---------- 정산 기간 · 히스토리 ---------- */
.per-nav { display: flex; align-items: center; gap: 12px; }
.pn-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: 20px; }
.pn-btn:hover { background: var(--subtle); }
.pn-btn.off { opacity: .35; pointer-events: none; }
.delta { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.delta.up { color: var(--pos); } .delta.down { color: var(--neg); }
.bar.ongoing i { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, color-mix(in srgb, var(--accent) 45%, transparent) 6px 12px) !important; }
.hist-card { margin-bottom: 16px; }
.hist-range { font-size: 17px; font-weight: 800; color: var(--strong); }
.hist-dd { position: relative; }
.hist-dd > summary { list-style: none; }
.hist-dd > summary::-webkit-details-marker { display: none; }
.hist-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 330px; max-height: 420px; overflow-y: auto; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .45); }
.hist-head { padding: 12px 14px; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--row-line); background: color-mix(in srgb, #8b5cf6 8%, var(--surface)); }
.hist-menu a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--row-line); text-decoration: none; color: var(--text); font-size: 13.5px; }
.hist-menu a span { font-size: 12px; color: var(--muted); }
.hist-menu a:hover { background: var(--subtle); }
.hist-menu a.on { background: color-mix(in srgb, #8b5cf6 12%, var(--surface)); box-shadow: inset 3px 0 0 #8b5cf6; }
.period-mini { margin-top: 12px; border-top: 1px solid var(--row-line); }
.pm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--row-line); font-size: 13.5px; }
.pm-row > span:first-child { flex: 1; min-width: 240px; }

/* ---------- 글꼴 다듬기 ---------- */
body { text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; letter-spacing: -.005em; }
.tbl td, .st-value, .num-pill, .pill-num, .hero-count, .dist-amount, .dist-cnum, .spec-power { font-variant-numeric: tabular-nums; }
.tbl td { font-weight: 500; }
.tbl th { font-weight: 700; letter-spacing: -.01em; }
/* 정산이 끝난 기간의 출석은 흐리게, 이번 기간은 진하게 (원본처럼) */
.tbl tr.past td { opacity: 1; color: var(--muted); font-weight: 400; }
.tbl tr.past td b { font-weight: 500; }
.tbl tr.cur td { color: var(--strong); font-weight: 600; }
.tbl tr.cur td b { font-weight: 800; }

/* ---------- 출석 기록관리: 핀볼 · 삭제 · 수동출석추가 ---------- */
.soft-purple, .btn-s.soft-purple { background: color-mix(in srgb, #8b5cf6 13%, var(--surface)) !important; color: #7c3aed !important; border: 1px solid color-mix(in srgb, #8b5cf6 35%, var(--surface)) !important; box-shadow: none !important; }
[data-theme="dark"] .soft-purple { color: #c4b5fd !important; }
.round-act { all: unset; box-sizing: border-box; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; vertical-align: middle; border: 1px solid; transition: transform .12s; }
.round-act:hover { transform: scale(1.08); }
.round-act.amber { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 45%, transparent); }
.round-act.red { background: color-mix(in srgb, #f43f5e 10%, var(--surface)); border-color: color-mix(in srgb, #f43f5e 40%, transparent); }
.names-btn { border-radius: 999px !important; margin: 0 4px !important; color: var(--accent-h) !important; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)) !important; }
.man-box { width: min(980px, 100%); }
.man-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.man-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-h); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.man-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.man-col { padding: 16px 22px 20px; }
.man-col + .man-col { border-left: 1px solid var(--line); }
.man-sec { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.man-sec > span { color: var(--muted2); font-size: 12px; }
.man-note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.man-paste { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--border); }
.man-paste textarea { margin: 8px 0 6px; }
.chip.unknown { background: color-mix(in srgb, #f43f5e 10%, var(--surface)); color: #e11d48; border-color: color-mix(in srgb, #f43f5e 35%, transparent); text-decoration: line-through; }
.chip-x { all: unset; cursor: pointer; font-size: 11px; opacity: .6; margin-left: 2px; }
.chip-x:hover { opacity: 1; }
@media (max-width: 760px) { .man-body { grid-template-columns: 1fr; } .man-col + .man-col { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- 참여율 조회 표 ---------- */
.st-main { padding: 20px 22px; }
.st-main .hist-dd > summary { margin: 0 !important; }
.calc-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; }
.calc-box > summary::-webkit-details-marker { display: none; }
.st-tbl th small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted2); margin-top: 1px; }
.st-tbl td { padding: 11px 10px; }
.c-blue { color: #2563eb; } .c-green { color: #059669; } .c-purple { color: #7c3aed; }
[data-theme="dark"] .c-blue { color: #60a5fa; } [data-theme="dark"] .c-green { color: #34d399; } [data-theme="dark"] .c-purple { color: #a78bfa; }
td.c-blue { font-weight: 700; }

/* ---------- 출석체크 ---------- */
.att-warn { font-size: 13.5px; }
.att-warn b { color: var(--warn); }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.empty-line { text-align: center; color: var(--muted); padding: 28px 0; font-size: 14px; }
.closed-wrap { padding: 0; overflow: hidden; }
.closed-wrap > summary { padding: 14px 18px; font-size: 14px; }
.closed-wrap[open] > summary { border-bottom: 1px solid var(--row-line); }
.closed-wrap > .att, .closed-wrap > .empty-line { margin: 12px 14px; }
.closed-wrap > .att { box-shadow: none; border-color: var(--border); }

/* ---------- 색 부드럽게 (원본 톤) ---------- */
.c-blue { color: #3b82f6; } .c-green { color: #10b981; } .c-purple { color: #8b5cf6; }
b.c-blue, b.c-green, td.c-blue { font-weight: 600; }
[data-theme="dark"] .c-blue { color: #7cb3fb; } [data-theme="dark"] .c-green { color: #4fd1a5; } [data-theme="dark"] .c-purple { color: #b4a2f8; }
.stat-tile.tint-blue   { background: color-mix(in srgb, #3b82f6 4%, var(--surface)); border-color: color-mix(in srgb, #3b82f6 16%, var(--border)); }
.stat-tile.tint-purple { background: color-mix(in srgb, #8b5cf6 4%, var(--surface)); border-color: color-mix(in srgb, #8b5cf6 16%, var(--border)); }
.stat-tile.tint-green  { background: color-mix(in srgb, #10b981 4%, var(--surface)); border-color: color-mix(in srgb, #10b981 16%, var(--border)); }
.stat-tile.tint-blue .st-value   { color: #3b82f6; }
.stat-tile.tint-purple .st-value { color: #8b5cf6; }
.stat-tile.tint-green .st-value  { color: #10b981; }
.stat-tile .st-value { font-weight: 700; }
.stat-tile.hl .st-value { color: #3b82f6; }
[data-theme="dark"] .stat-tile.tint-blue .st-value, [data-theme="dark"] .stat-tile.hl .st-value { color: #7cb3fb; }
[data-theme="dark"] .stat-tile.tint-purple .st-value { color: #b4a2f8; }
[data-theme="dark"] .stat-tile.tint-green .st-value { color: #4fd1a5; }
.calc-item.c-blue > b { color: #3b82f6; } .calc-item.c-green > b { color: #10b981; }
.calc-item { border-left-width: 2px; }
.me-name { color: #3b82f6; font-weight: 800; }
.tbl tr.grp td { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--accent-h); font-size: 12px; font-weight: 700; padding: 7px 12px; border-top: 0; }
[data-theme="dark"] .tbl tr.grp td { color: #7cb3fb; }

/* ---------- 아이템 현황 ---------- */
.it-main { padding: 18px 20px; }
.income-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 12px; font-size: 14px;
  background: color-mix(in srgb, #3b82f6 7%, var(--surface)); border: 1px solid color-mix(in srgb, #3b82f6 18%, var(--border)); color: var(--accent-h); }
.income-bar b { font-size: 20px; color: var(--accent-h); }
.income-bar small { font-size: 13px; }
[data-theme="dark"] .income-bar, [data-theme="dark"] .income-bar b { color: #7cb3fb; }
.it-view { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; }
.it-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.it-filters label { margin-top: 0; }

/* ---------- 출석보스 설정 ---------- */
.boss-grid-h, .boss-row { display: grid; grid-template-columns: 56px minmax(160px, 1fr) 120px 130px 60px 36px; gap: 10px; align-items: center; }
.boss-grid-h { font-size: 12px; font-weight: 700; color: var(--th-text); padding: 0 0 6px; border-bottom: 1px solid var(--row-line); }
.boss-row { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--row-line); }
.boss-row .grip small { font-size: 12px; color: var(--muted); }
.boss-row.off input[type=text], .boss-row.off input[type=number], .boss-row.off input[type=time] { opacity: .5; }
.boss-row.to-del { opacity: .45; }
.boss-row.to-del input { text-decoration: line-through; }
.tgl { margin: 0; display: flex; justify-content: center; }
@media (max-width: 700px) { .boss-grid-h { display: none; } .boss-row { grid-template-columns: 40px 1fr 80px; } .boss-row input[type=time], .boss-row .tgl { grid-column: span 1; } }
.onoff { all: unset; cursor: pointer; min-width: 52px; text-align: center; padding: 5px 0; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--subtle); border: 1px solid var(--border); color: var(--muted); }
.onoff.on { background: color-mix(in srgb, #8b5cf6 14%, var(--surface)); border-color: color-mix(in srgb, #8b5cf6 40%, transparent); color: #7c3aed; }
[data-theme="dark"] .onoff.on { color: #c4b5fd; }
.b-dungeon { background: color-mix(in srgb, #8b5cf6 12%, var(--surface)); color: #7c3aed; border: 1px solid color-mix(in srgb, #8b5cf6 30%, transparent); }
[data-theme="dark"] .b-dungeon { color: #c4b5fd; }

/* ---- 설정 페이지 섹션 카드 (가중치 설정 등) ---- */
.set-card { max-width: 760px; margin-left: auto; margin-right: auto; }
.set-card .set-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.set-card .set-head span { display: inline-flex; align-items: center; gap: 8px; }
.set-card .set-head svg { width: 17px; height: 17px; color: var(--accent); }
.set-card .hint { line-height: 1.6; margin: 0 0 10px; }
.unit-in { display: flex; align-items: center; gap: 10px; }
.unit-in input { flex: 1; margin: 0; }
.unit-in span { color: var(--muted); font-size: 13px; }
.w-now { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.75;
  background: color-mix(in srgb, #3b82f6 7%, var(--surface)); border: 1px solid color-mix(in srgb, #3b82f6 22%, var(--surface)); color: color-mix(in srgb, #1d4ed8 80%, var(--text)); }
[data-theme="dark"] .w-now { color: #93c5fd; }
.set-save { max-width: 760px; margin: 0 auto 20px; display: flex; justify-content: flex-end; }
.set-save button { min-width: 90px; }

/* ---- 이의제기 / 공통 필터 바 ---- */
.hero-btn.hero-ghost { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-sm) !important; }
.hero-btn svg { width: 15px; height: 15px; }
.obj-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.obj-bar > .muted { margin-left: auto; font-size: 13px; }
.obj-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 auto; }
.obj-chips a { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.obj-chips a:hover { color: var(--text); }
.obj-chips a.on { background: #1f2937; color: #fff; border-color: #1f2937; }
[data-theme="dark"] .obj-chips a.on { background: #e5e7eb; color: #111827; border-color: #e5e7eb; }
.empty-card { text-align: center; padding: 44px 20px !important; color: var(--muted); }
.empty-card svg { width: 28px; height: 28px; color: var(--accent); }
.empty-card p { margin: 10px 0 0; font-size: 14px; color: var(--text); }

/* ---- 상단 패널 테마 선택 (관리자 설정) ---- */
.hp-wrap { display: flex; align-items: center; gap: 10px; }
.hp-label { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.hp-label b { font-size: 12.5px; }
.hp-label span { font-size: 11px; color: var(--muted); }
.hp-dd { position: relative; }
.hp-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 700; white-space: nowrap; }
.hp-dd > summary::-webkit-details-marker { display: none; }
.hp-caret { color: var(--muted); font-size: 11px; transition: transform .15s; }
.hp-dd[open] .hp-caret { transform: rotate(180deg); }
.hp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 250px; padding: 6px; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); }
.hp-menu button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.hp-menu button:hover, .hp-menu button.on { background: var(--subtle); }
.hp-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.hp-txt b { font-size: 13px; }
.hp-txt small { font-size: 11px; color: var(--muted); }
.hp-chk { color: var(--accent); font-weight: 800; }
/* 미리보기 칩 */
.hp-prev { position: relative; flex: none; width: 60px; height: 26px; border-radius: 7px; overflow: hidden; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); }
.hp-menu .hp-prev { width: 86px; height: 32px; }
.hp-prev i { position: absolute; display: block; }
.hp-streaks i:nth-child(1) { top: -60%; bottom: -60%; left: 48%; width: 18px; transform: rotate(24deg); border-left: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 10%, transparent), transparent); }
.hp-streaks i:nth-child(2) { top: -60%; bottom: -60%; left: 72%; width: 10px; transform: rotate(24deg); border-left: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.hp-streaks i:nth-child(3) { top: 5px; left: 30%; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.hp-rings i:nth-child(1) { top: -14px; right: -14px; width: 54px; height: 32px; border-radius: 50%; transform: rotate(-11deg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.hp-rings i:nth-child(2) { bottom: -10px; left: 30%; width: 28px; height: 16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.hp-rings i:nth-child(3) { top: 3px; left: 8%; width: 34px; height: 20px; background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent) 0 .8px, transparent 1px); background-size: 5px 5px; }
.hp-lens i:nth-child(1) { top: -10px; right: -8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), color-mix(in srgb, var(--accent) 10%, transparent) 60%); box-shadow: inset 0 1px 4px rgba(255,255,255,.6); }
.hp-lens i:nth-child(2) { bottom: -8px; left: 40%; width: 16px; height: 16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.8), color-mix(in srgb, var(--accent) 8%, transparent)); }
.hp-lens i:nth-child(3) { top: 6px; left: 22%; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 30%, transparent); }
[data-theme="dark"] .hp-lens i:nth-child(1), [data-theme="dark"] .hp-lens i:nth-child(2) { background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55), color-mix(in srgb, var(--accent) 10%, transparent) 60%); }
@media (max-width: 640px) { .hp-label { display: none; } }

/* ---- 내보내기 세그먼트 버튼 (참여율 조회) ---- */
.pexp-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; position: relative;
  background: var(--subtle); border: 1px solid color-mix(in srgb, var(--muted) 35%, var(--border));
  --pexp-image: #4338ca; --pexp-excel: #047857; }
[data-theme="dark"] .pexp-seg { background: #15171c; border-color: var(--border); --pexp-image: #a5b4fc; --pexp-excel: #6ee7b7; }
.pexp-seg button, .pexp-seg a { all: unset; box-sizing: border-box; position: relative; min-height: 44px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.pexp-seg > * + *::before { content: ""; position: absolute; left: -3px; top: 10px; bottom: 10px; width: 1px; background: color-mix(in srgb, var(--muted) 35%, var(--border)); }
.pexp-seg .pexp-img { color: var(--pexp-image); }
.pexp-seg .pexp-xls { color: var(--pexp-excel); }
.pexp-seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pexp-seg button:hover, .pexp-seg a:hover { background: var(--surface); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
@media (max-width: 479px) { .pexp-more { display: none; } .pexp-seg button, .pexp-seg a { padding: 0 8px; } }

/* 히스토리 버튼 (원본: 보라→남색 가로 그라데이션) */
.hist-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(to right, #a855f7, #4f46e5); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); transition: box-shadow .2s, filter .2s; }
.hist-btn::-webkit-details-marker { display: none; }
.hist-btn:hover { background: linear-gradient(to right, #9333ea, #4338ca); box-shadow: 0 10px 15px -3px rgba(0,0,0,.15); }
.hist-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hist-btn .chev { transition: transform .15s; }
details[open] > .hist-btn .chev { transform: rotate(180deg); }

/* 이미지 내보내기 모달 */
.ix-box { width: min(820px, 96vw) !important; max-width: none !important; }
.ix-opts { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; margin: 14px 0; align-items: end; }
.ix-opts label { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.ix-opts select { margin: 0; }
.ix-tog { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; }
.ix-tog input { display: none; }
.ix-tog .sw { width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.ix-tog .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.ix-tog input:checked + .sw { background: #6366f1; }
.ix-tog input:checked + .sw::after { left: 17px; }
.ix-prev { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--subtle); padding: 10px; }
.ix-prev canvas { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.ix-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 8px 2px 0; }
.ix-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 640px) { .ix-opts { grid-template-columns: 1fr; } }
.ix-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #6366f1 14%, var(--surface)); color: #6366f1; }
.ix-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 테마 선택 메뉴 (라이트 · 다크 · 핑크) ---- */
.theme-sel { position: relative; flex: 0 0 auto; }
.theme-toggle { width: 2.5rem; height: 2.5rem; padding: 0; margin: 0; border-radius: 999px; display: grid; place-items: center;
  color: #334155; background: #fff; border: 1px solid #dbe4f0; box-shadow: none; transition: transform .15s ease-out, background-color .15s, border-color .15s, color .15s; }
.theme-toggle:hover { color: #0f172a; background: #f1f5f9; }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle[aria-expanded="true"] { filter: brightness(.96); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="dark"] .theme-toggle { color: #f2f4f9; background: #2a3039; border-color: #444b58; }
[data-theme="dark"] .theme-toggle:hover { color: #fff; background: #353c47; }
[data-theme="dark"] .theme-toggle[aria-expanded="true"] { filter: brightness(1.14); }
[data-theme="pink"] .theme-toggle { color: #ad173b; background: #fff; border-color: #e5aebc; }
[data-theme="pink"] .theme-toggle:hover { background: #fff0f4; }
.theme-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: min(248px, calc(100vw - 24px)); padding: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 23, 42, .18); }
[data-theme="dark"] .theme-menu { background: #1d2027; border-color: #343a45; }
.theme-menu-title { padding: 2px 8px 7px; font-size: 11px; font-weight: 700; color: var(--muted); }
.theme-opt { all: unset; box-sizing: border-box; width: 100%; min-height: 48px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 16px; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: transform .15s ease-out, background-color .15s, border-color .15s; }
.theme-opt:hover { background: var(--subtle); }
.theme-opt:active { transform: scale(.96); }
.theme-opt.on { border-color: var(--accent); background: var(--accent-soft); }
[data-theme="dark"] .theme-opt.on { border-color: #7aa8ff; background: #293752; }
.theme-opt-ic { width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--subtle); color: var(--accent-h); }
[data-theme="dark"] .theme-opt-ic { background: #15171c; color: #9cc0ff; }
.theme-opt-copy { min-width: 0; }
.theme-opt-copy b { display: block; font-size: 13px; font-weight: 700; color: var(--strong); }
.theme-opt-copy small { display: block; margin-top: 1px; font-size: 10px; line-height: 1.25; color: var(--muted); }
.theme-sw { display: flex; gap: 3px; }
.theme-sw i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .12); }
.theme-chk { width: 15px; height: 15px; color: var(--accent-h); opacity: 0; transform: scale(.25); filter: blur(4px); transition: opacity .3s cubic-bezier(.2,0,0,1), filter .3s, transform .3s cubic-bezier(.2,0,0,1); }
[data-theme="dark"] .theme-chk { color: #9cc0ff; }
.theme-opt.on .theme-chk { opacity: 1; transform: scale(1); filter: none; }
@media (max-width: 639px) { .theme-toggle { width: 2.75rem; height: 2.75rem; } .theme-menu { position: fixed; top: 56px; right: 12px; } }

/* ---- 핑크 테마: 원본처럼 파란 강조색을 체리 핑크로 ---- */
[data-theme="pink"] body { background: radial-gradient(circle at 8% -12%, rgba(244, 114, 182, .04), transparent 34%), linear-gradient(#fffdfd 0%, #fff7fa 100%); background-attachment: fixed; color: #291820; }
[data-theme="pink"] .pg-hero {
  --pgh-border-base: #f4c8d2; --pgh-panel: #fff; --pgh-strong: #291820; --pgh-muted: #7f626d; --pgh-muted2: #a98591;
  --pgh-brand: #e6325b; --pgh-brand-soft: #fff0f4;
  --pgh-border: color-mix(in srgb, var(--pgh-brand) 14%, var(--pgh-border-base));
  --pgh-shadow: 0 1px 2px #ad2d4d0f, 0 14px 34px #ad2d4d17;
  --pgh-fx-line: color-mix(in srgb, var(--pgh-brand) 14%, transparent);
  --pgh-fx-line-soft: color-mix(in srgb, var(--pgh-brand) 9%, transparent);
  --pgh-fx-fill: color-mix(in srgb, var(--pgh-brand) 4%, transparent);
  --pgh-fx-dot: color-mix(in srgb, var(--pgh-brand) 11%, transparent);
  --pgh-fx-dotgrid: color-mix(in srgb, var(--pgh-brand) 15%, transparent);
  --pgh-fx-sheen: #ffffffeb;
}
[data-theme="pink"] button:not([class*="soft"]):not(.btn-gray):not(.btn-red):not(.btn-green):not(.btn-amber):not(.theme-toggle):not(.theme-opt):not(.upd-x):hover,
[data-theme="pink"] .btn:not(.btn-gray):not(.btn-red):not(.btn-green):hover { background: #ad173b; }
[data-theme="pink"] .seg a.on, [data-theme="pink"] .seg button.on { box-shadow: 0 2px 6px -2px rgba(230, 50, 91, .6); }
[data-theme="pink"] .side a.on { background: linear-gradient(90deg, color-mix(in srgb, #e6325b 13%, #fff), color-mix(in srgb, #e6325b 10%, #fff) 34%, color-mix(in srgb, #e6325b 6%, #fff) 70%, color-mix(in srgb, #e6325b 2%, #fff)); color: #e11d48; }
[data-theme="pink"] .side a:hover { background: #fff7f9; }
[data-theme="pink"] .c-blue { color: #c61d49; }
[data-theme="pink"] .b-div { background: #e6325b; border-color: #e6325b; }
[data-theme="pink"] .avatar { background: #e6325b; }
[data-theme="pink"] a.hero-btn:not(.hero-ghost) { background: linear-gradient(135deg, #f43f5e, #db2777); box-shadow: 0 6px 16px -6px rgba(230, 50, 91, .6); }
[data-theme="pink"] .pexp-seg { --pexp-image: #be185d; border-color: #f5cfe0; background: #fff8fa; }
[data-theme="pink"] input[type=checkbox] { accent-color: #f43f5e; }
@media (min-width: 701px) { .boss-grid-h, .boss-row { grid-template-columns: 56px minmax(150px, 1fr) 100px 120px 96px 80px 60px 36px; } }

/* ---- 보스 타이머 ---- */
.bt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.bt-bar .bt-perm-note { font-size: 13px; }
.bt-bar #btSync { margin-left: auto; font-size: 12px; }
.bt-perm-k { font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.hero-btn.bt-bell { margin: 0; }
.hero-btn.bt-bell.on { border-color: color-mix(in srgb, #f59e0b 50%, var(--border)) !important; background: color-mix(in srgb, #f59e0b 12%, var(--surface)) !important; }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.bt-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, background .2s; }
.bt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bt-name { font-size: 16px; font-weight: 800; color: var(--strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-hist { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 8px; border-radius: 8px; border: 1px solid var(--border); }
.bt-hist:hover { color: var(--text); background: var(--subtle); }
.bt-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.bt-b-resp { background: color-mix(in srgb, #8b5cf6 12%, var(--surface)); color: #7c3aed; }
.bt-b-fix  { background: color-mix(in srgb, #3b82f6 11%, var(--surface)); color: #2563eb; }
.bt-b-mung { background: color-mix(in srgb, #64748b 14%, var(--surface)); color: var(--muted); }
[data-theme="dark"] .bt-b-resp { color: #c4b5fd; } [data-theme="dark"] .bt-b-fix { color: #93c5fd; }
.bt-big { font-size: 34px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; color: var(--strong); }
.bt-big.spawn { color: #e11d48; animation: btPulse 1.2s ease-in-out infinite; }
@keyframes btPulse { 50% { opacity: .55; } }
.bt-sub { font-size: 13px; color: var(--muted); }
.bt-sub b { color: var(--text); }
.bt-last { font-size: 12px; color: var(--muted2); padding-top: 6px; border-top: 1px dashed var(--row-line); margin-top: 2px; }
.bt-acts { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 6px; }
.bt-acts button { margin: 0; padding: 9px 12px; font-size: 14px; }
.bt-cut { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; }
.bt-cut:hover { filter: brightness(.95); }
.bt-card.is-soon { border-color: color-mix(in srgb, #f59e0b 55%, var(--border)); background: color-mix(in srgb, #f59e0b 6%, var(--surface)); }
.bt-card.is-soon .bt-big { color: #d97706; }
.bt-card.is-spawn { border-color: color-mix(in srgb, #f43f5e 55%, var(--border)); background: color-mix(in srgb, #f43f5e 6%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, #f43f5e 14%, transparent), var(--shadow-sm); }
.bt-card.is-done .bt-big { color: var(--muted); }
.bt-card.is-unknown { opacity: .85; }
.bt-box { width: min(460px, 100%) !important; }
.bt-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 1000; padding: 11px 18px; border-radius: 12px;
  background: #0f172a; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; max-width: 90vw; }
.bt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.bt-toast.err { background: #be123c; }
@media (max-width: 640px) { .bt-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .bt-big { font-size: 26px; } .bt-acts { grid-template-columns: 1fr; } }

/* ---- 장비 전투력 ---- */
.eq-card { margin-bottom: 16px; }
.eq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.eq-grade-h, .eq-grade-row { display: grid; grid-template-columns: 64px minmax(160px, 1fr) 64px 140px 36px; gap: 10px; align-items: center; }
.eq-grade-h { font-size: 12px; font-weight: 700; color: var(--th-text); padding-bottom: 6px; border-bottom: 1px solid var(--row-line); }
.eq-grade-row { padding: 7px 0; border-bottom: 1px solid var(--row-line); }
.eq-grade-row input, .eq-slot input { margin: 0; }
.eq-grade-row input[type=color] { width: 48px; height: 36px; padding: 2px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); cursor: pointer; }
.eq-name-wrap { position: relative; display: block; }
.eq-name-wrap .eq-dot { position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.eq-name-wrap input { padding-left: 30px !important; font-weight: 700; }
.eq-move { display: inline-flex; gap: 2px; }
.eq-move button { all: unset; cursor: pointer; width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); border: 1px solid var(--border); background: var(--surface); }
.eq-move button:hover { color: var(--text); background: var(--subtle); }
.eq-max { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.eq-max input { width: 76px; margin: 0; }
.eq-mx-scroll { overflow-x: auto; border: 1px solid var(--row-line); border-radius: 12px; }
.eq-mx { margin: 0; }
.eq-mx th, .eq-mx td { text-align: center; padding: 6px; }
.eq-mx td input { width: 74px; margin: 0; padding: 6px 8px; text-align: right; font-size: 13px; }
.eq-mx .eq-mx-g { position: sticky; left: 0; z-index: 1; background: var(--th-bg); text-align: left; }
.eq-gbadge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  color: color-mix(in srgb, var(--g) 72%, var(--strong)); background: color-mix(in srgb, var(--g) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--g) 40%, transparent); }
[data-theme="dark"] .eq-gbadge { color: var(--g); }
.eq-ex { margin-top: 12px; font-size: 13px; color: var(--muted); }
.eq-ex b { color: var(--text); }
.eq-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.eq-slot { display: grid; grid-template-columns: auto 1fr 32px; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--row-line); border-radius: 12px; background: var(--subtle); }
@media (max-width: 640px) { .eq-grade-h { display: none; } .eq-grade-row { grid-template-columns: 56px 1fr 48px; } .eq-grade-row input[type=number] { grid-column: 2 / 3; } }

/* 캐릭터 정보: 장비 입력 · 보기 */
.eq-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.eq-erow { --g: var(--border); display: grid; grid-template-columns: 70px 1fr 74px 56px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--g) 45%, var(--border)); background: color-mix(in srgb, var(--g) 7%, var(--surface)); }
.eq-erow.none { --g: var(--border); background: var(--surface); }
.eq-erow select { margin: 0; padding: 7px 8px; font-size: 13.5px; }
.eq-erow .eq-g { font-weight: 700; color: color-mix(in srgb, var(--g) 72%, var(--strong)); }
[data-theme="dark"] .eq-erow .eq-g { color: color-mix(in srgb, var(--g) 85%, #fff); }
.eq-erow.none .eq-g { color: var(--muted); font-weight: 500; }
.eq-slot-name { font-size: 13px; font-weight: 700; }
.eq-pts { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.eq-view-h { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; font-size: 14px; }
.eq-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.eq-vcell { --g: var(--border); display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; font-size: 12px;
  border: 1px solid color-mix(in srgb, var(--g) 45%, var(--border)); background: color-mix(in srgb, var(--g) 8%, var(--surface)); }
.eq-vcell b { font-size: 14px; }
.eq-vcell small { color: var(--muted); }
.eq-vcell.empty { background: var(--subtle); }
.eq-gtext { color: color-mix(in srgb, var(--g) 72%, var(--strong)); }
[data-theme="dark"] .eq-gtext { color: var(--g); }

/* ---- 전투력 점수 항목: 접고 펼치기 ---- */
.items-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 26px 0 4px; }
.item-card { padding: 0 !important; overflow: hidden; }
.item-sum { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; user-select: none; transition: background .15s; }
.item-sum:hover { background: var(--subtle); }
.item-sum .grip { cursor: grab; }
.item-chev { color: var(--muted); font-size: 12px; width: 12px; transition: transform .15s; }
.item-card.open .item-chev { transform: rotate(90deg); color: var(--accent-h); }
.item-nm { font-size: 15px; color: var(--strong); white-space: nowrap; }
.item-desc { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.item-sum .del-btn { flex: none; }
.item-body { display: none; padding: 2px 16px 16px; border-top: 1px solid var(--row-line); }
.item-card.open .item-body { display: block; }
.item-card.open .item-sum { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.item-card.to-del .item-nm { text-decoration: line-through; color: var(--neg); }
@media (max-width: 640px) { .item-sum { flex-wrap: wrap; } .item-desc { flex-basis: 100%; text-align: left; order: 9; } }
.item-body .item-top { padding-top: 12px; }

/* 보스 알림 소리 막힘 안내 */
.bt-lock { position: fixed; right: 18px; bottom: 18px; z-index: 1001; margin: 0; padding: 11px 16px; border-radius: 999px;
  background: #b45309 !important; color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 26px rgba(0,0,0,.25); animation: btPulse 1.4s ease-in-out infinite; }

/* 초기 비밀번호 변경 강제 */
.pw-force-banner { font-size: 14.5px; }
.pw-force-banner a { text-decoration: underline; }
.mp-card.pw-force { border: 2px solid #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 18%, transparent), var(--shadow); }
.set-card + .set-card { margin-top: 14px; }
.toast.toast-live { border-left-color: #ef4444; }

/* ---- 스트리밍 알림설정 ---- */
.st-back { margin: 0 0 12px; }
.st-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.st-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.st-status.ok   { color: #15803d; background: color-mix(in srgb, #22c55e 10%, var(--surface)); border-color: color-mix(in srgb, #22c55e 35%, transparent); }
.st-status.bad  { color: #be123c; background: color-mix(in srgb, #f43f5e 9%, var(--surface)); border-color: color-mix(in srgb, #f43f5e 35%, transparent); }
.st-status.idle { color: var(--muted); background: var(--subtle); border-color: var(--border); }
[data-theme="dark"] .st-status.ok { color: #4ade80; } [data-theme="dark"] .st-status.bad { color: #fb7185; }
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .st-layout { grid-template-columns: 1fr; } }
.st-card { padding: 0 !important; overflow: hidden; margin-bottom: 12px; }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--row-line); }
.st-head b { font-size: 15.5px; }
.st-head .muted { font-size: 12.5px; }
.st-add { margin: 0; padding: 9px 16px; border-radius: 12px; font-size: 14px; background: var(--accent-soft) !important; color: var(--accent-h) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent) !important; box-shadow: none; }
.st-row { border-bottom: 1px solid var(--row-line); }
.st-row:last-child { border-bottom: 0; }
.st-sum { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; }
.st-sum:hover { background: var(--subtle); }
.st-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--subtle); border: 1px solid var(--border); font-weight: 800; color: var(--muted); }
.st-ava img { width: 100%; height: 100%; object-fit: cover; }
.st-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-name b { font-size: 14.5px; color: var(--strong); }
.st-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-b-on  { background: color-mix(in srgb, #22c55e 12%, var(--surface)); color: #15803d; font-size: 11px; }
.st-b-off { background: var(--subtle); color: var(--muted); font-size: 11px; }
.st-b-all { background: var(--accent-soft); color: var(--accent-h); font-size: 11px; }
.st-b-live { background: #ef4444; color: #fff; font-size: 11px; text-decoration: none; animation: btPulse 1.6s ease-in-out infinite; }
[data-theme="dark"] .st-b-on { color: #4ade80; }
.st-tg { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.st-tg input.switch:checked { background: #16a34a; }
.st-chev { color: var(--muted); font-size: 16px; transition: transform .15s; width: 16px; text-align: center; }
.st-row.open .st-chev { transform: rotate(180deg); }
.st-body { display: none; padding: 4px 18px 18px 70px; }
.st-row.open .st-body { display: block; }
.st-body label { margin-top: 10px; }
.st-body .hint { margin: 6px 0 0; font-size: 12px; }
.st-note { margin: 12px 0; padding: 9px 12px; border-radius: 10px; background: var(--subtle); font-size: 12.5px; color: var(--muted); }
.st-kw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); cursor: text; }
.st-kw input { flex: 1; min-width: 120px; border: 0 !important; box-shadow: none !important; padding: 4px !important; margin: 0; background: transparent; }
.st-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-h); }
.st-chip button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; text-align: center; line-height: 18px; font-size: 13px; }
.st-chip button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.st-save { display: flex; align-items: center; gap: 8px; padding: 12px 16px !important; position: sticky; bottom: 12px; z-index: 5; margin-bottom: 12px; }
.st-save #stDirty { flex: 1; font-size: 13px; }
.st-save #stDirty.dirty { color: #d97706; font-weight: 700; }
.st-save button { margin: 0; }
.st-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.st-check .muted { flex: 1; }
.st-guide { font-size: 13px; line-height: 1.6; }
.st-g-title { font-weight: 800; font-size: 14.5px; margin-bottom: 10px; }
.st-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 6px; }
.st-steps li { counter-increment: s; position: relative; padding: 0 0 14px 34px; display: flex; flex-direction: column; gap: 3px; }
.st-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-h); color: #fff;
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.st-steps li > span { color: var(--muted); font-size: 12.5px; }
.st-g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.st-g-2 div { padding: 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.st-g-2 b { color: var(--text); font-size: 12px; }
.st-g-url { display: block; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: var(--subtle); font-size: 12px; }
.st-g-url mark { background: #fde68a; color: #713f12; border-radius: 4px; padding: 0 3px; }
.st-g-sec { font-weight: 800; margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--row-line); }
.st-flow { display: flex; flex-direction: column; gap: 8px; }
.st-flow div { display: flex; gap: 10px; }
.st-flow i { font-style: normal; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.st-flow span { display: flex; flex-direction: column; color: var(--muted); font-size: 12.5px; }
.st-flow b { color: var(--text); }
.st-ok { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.st-ok li.y::before { content: "✓ "; color: #16a34a; font-weight: 800; }
.st-ok li.n::before { content: "✕ "; color: #e11d48; font-weight: 800; }
.st-ok li.n { color: #e11d48; }
.st-guide p { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .st-body { padding-left: 18px; } .st-tg-txt { display: none; } }

/* ---- 모집 페이지 설정 (관리자) ---- */
.rc-admin .rc-sec { margin-bottom: 14px; }
.rc-save { background: linear-gradient(135deg, #3b82f6, #6366f1) !important; }
.rc-save:disabled { opacity: .45; cursor: not-allowed; }
.rc-tg-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.rc-tg-row b { font-size: 15px; }
.rc-tg-row .muted { font-size: 13px; }
.rc-sw { margin: 0; display: inline-flex; }
.rc-url { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--subtle); }
.rc-url code { font-size: 13px; word-break: break-all; }
.rc-idx-hint { margin: 10px 0 0; }
.rc-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--row-line); }
.rc-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.rc-h b { font-size: 15.5px; }
.rc-h .muted { font-size: 13px; }
.rc-h .badge { align-self: flex-start; margin-top: 4px; }
.rc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.rc-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.rc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rc-opt input { margin-top: 3px; }
.rc-opt span { display: flex; flex-direction: column; gap: 2px; }
.rc-opt b { font-size: 14px; }
.rc-opt em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent-h); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.rc-opt small { color: var(--muted); font-size: 12.5px; }
.rc-term { margin-top: 2px; }
.rc-term label { margin: 0; }
.rc-term input { display: none; }
.rc-term span { display: inline-block; padding: 7px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.rc-term input:checked + span { background: var(--accent-h); color: #fff; }
.rc-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-under { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.rc-img { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border: 1.5px dashed var(--border); border-radius: 16px; background: var(--subtle); }
.rc-img-ic { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--surface); border: 1px solid var(--border); }
.rc-img-ic img { width: 100%; height: 100%; object-fit: cover; }
.rc-img div { display: flex; flex-direction: column; gap: 2px; }
.rc-img small { color: var(--muted); font-size: 12.5px; }
.rc-upbtn { margin: 0 !important; cursor: pointer; }
.rc-cond { display: grid; grid-template-columns: 160px 1fr auto 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rc-cond input[type=text] { margin: 0; }
.rc-cl { font-weight: 700; }
.rc-empty { font-size: 13px; margin: 4px 0 10px; }
.rc-add { display: flex; align-items: center; gap: 10px; }
.rc-add-dd { position: relative; }
.rc-add-dd > summary { list-style: none; cursor: pointer; }
.rc-add-dd > summary::-webkit-details-marker { display: none; }
.rc-add-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 6px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.18); }
.rc-add-menu button { all: unset; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.rc-add-menu button:hover { background: var(--subtle); }
.rc-add-menu .rc-own { border-top: 1px solid var(--row-line); margin-top: 4px; color: var(--accent-h); font-weight: 700; }
.rc-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-feats { grid-template-columns: repeat(2, 1fr); }
.rc-ck { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 600; }
.rc-ck:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rc-ck input { margin-top: 2px; }
.rc-ck span { display: flex; flex-direction: column; gap: 2px; }
.rc-ck small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
@media (max-width: 760px) { .rc-tg-row { grid-template-columns: auto 1fr; } .rc-url { grid-column: 1 / -1; } .rc-choice, .rc-3, .rc-checks, .rc-feats { grid-template-columns: 1fr; } .rc-cond { grid-template-columns: 1fr 1fr auto 32px; } }

/* ---- 공개 모집 페이지 ---- */
body.rc-public { background: #f8f9fa; color: #1e293b; }
.rc-shell { max-width: 1080px; margin: 0 auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.rc-preview { padding: 12px 16px; border-radius: 14px; background: #eef4ff; color: #1d4ed8; font-weight: 700; font-size: 14px; }
.rc-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px; }
.rc-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; color: #0f172a; letter-spacing: -.02em; }
.rc-brand img { width: 30px; height: 30px; border-radius: 8px; }
.rc-brand.sm { font-size: 14px; } .rc-brand.sm img { width: 22px; height: 22px; border-radius: 6px; }
.rc-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; font-weight: 600; color: #334155; }
.rc-hero { position: relative; overflow: hidden; background: #fff; border: 1px solid #d6e2fb; border-radius: 28px; padding: 40px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 14px 34px rgba(15,23,42,.07); }
.rc-fx { position: absolute; pointer-events: none; }
.rc-fx.a { top: -40%; bottom: -40%; left: 62%; width: 90px; transform: rotate(24deg); background: linear-gradient(90deg, transparent, rgba(59,130,246,.05) 46%, transparent); border-left: 1px solid rgba(59,130,246,.1); }
.rc-fx.b { top: -40%; bottom: -40%; left: 80%; width: 50px; transform: rotate(24deg); border-left: 1px solid rgba(59,130,246,.08); }
.rc-fx.c { top: 22px; right: 14%; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(59,130,246,.18); background: radial-gradient(circle at 34% 30%, #fff, rgba(59,130,246,.06)); }
.rc-hero-body { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.rc-hero h1 { margin: 0 0 12px; font-size: 56px; font-weight: 900; letter-spacing: -.03em; color: #0f172a; line-height: 1.1; }
.rc-slogan { margin: 0; font-size: 19px; font-weight: 800; color: #0f172a; line-height: 1.5; }
.rc-intro { margin: 14px 0 0; font-size: 15px; color: #475569; line-height: 1.75; }
.rc-join-btn { display: inline-flex; margin-top: 22px; padding: 14px 24px; border-radius: 14px; background: #1e3a8a; color: #fff; font-weight: 800; text-decoration: none; }
.rc-join-btn:hover { background: #1e40af; }
.rc-hero-img img { display: block; max-width: 300px; max-height: 260px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 30px rgba(15,23,42,.12); }
.rc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rc-metric { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.rc-metric span { font-size: 12.5px; color: #6b7280; }
.rc-metric b { font-size: 30px; font-weight: 900; color: #0f172a; letter-spacing: -.02em; }
.rc-metric small { font-size: 15px; font-weight: 700; margin-left: 3px; color: #334155; }
.rc-cap { margin: -6px 2px 0; font-size: 12.5px; color: #6b7280; }
.rc-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.rc-two.one { grid-template-columns: 1fr; }
.rc-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 22px 24px; }
.rc-card h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: #0f172a; }
.rc-features { display: flex; flex-direction: column; gap: 14px; }
.rc-features > div { display: flex; gap: 12px; align-items: flex-start; }
.rc-features span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rc-features b { font-size: 15px; color: #0f172a; }
.rc-features small { font-size: 13.5px; color: #64748b; }
.rc-fi { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #eef4ff; color: #2563eb; display: inline-flex; align-items: center; justify-content: center; }
.rc-fi svg { width: 19px; height: 19px; }
.rc-conds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rc-conds li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 14px; }
.rc-conds li span { color: #64748b; }
.rc-conds li b { color: #0f172a; text-align: right; }
.rc-anywhere-head { margin-bottom: 14px; }
.rc-anywhere-head span { font-size: 12px; font-weight: 700; color: #2563eb; }
.rc-anywhere-head h2 { margin: 4px 0 0; }
.rc-anywhere-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rc-anywhere-item { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rc-anywhere-item b { font-size: 14.5px; color: #0f172a; margin-top: 4px; }
.rc-anywhere-item small { font-size: 13px; color: #64748b; line-height: 1.6; }
.rc-join { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 36px; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(99,102,241,.45), transparent 50%), #1e3a8a; }
.rc-join h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.rc-join p { margin: 0; color: rgba(255,255,255,.82); font-size: 14.5px; }
.rc-join-white { flex: none; padding: 14px 24px; border-radius: 14px; background: #fff; color: #1e3a8a; font-weight: 800; text-decoration: none; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px 2px; font-size: 13px; color: #64748b; }
.rc-foot a { color: #2563eb; font-weight: 700; }
@media (max-width: 760px) {
  .rc-hero { padding: 26px 22px; border-radius: 22px; } .rc-hero h1 { font-size: 40px; } .rc-slogan { font-size: 16px; }
  .rc-hero-body { grid-template-columns: 1fr; } .rc-hero-img img { max-width: 100%; }
  .rc-two, .rc-anywhere-grid { grid-template-columns: 1fr; } .rc-join { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
}

/* ============================================================
   분석·리포트 공통 (원본 화면 구성)
   ============================================================ */
.an-seg { display: flex; width: 100%; margin: 0 0 14px; }
.an-seg a { flex: 1; text-align: center; }
.an-seg.sm { width: auto; margin: 0; }
.an-seg.sm a { flex: none; }
.an-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.an-chip b { color: var(--text); }
.an-chip.off { opacity: .7; }
.an-card { margin-bottom: 14px; }
.an-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.an-card-h b { font-size: 15px; }
.an-card-h .muted { font-size: 12.5px; }
.an-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.an-top.three { grid-template-columns: 1.3fr 1fr 1fr; }
.an-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.an-stat > span { font-size: 12.5px; color: var(--muted); }
.an-stat b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--strong); }
.an-stat b.neg { color: #e11d48; } .an-stat b.pos { color: #16a34a; }
.an-stat small { font-size: 12px; color: var(--muted); }
.an-stat.hi { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.an-stat.hi b { color: var(--accent-h); }
.an-ring-card, .an-alert { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px;
  background: color-mix(in srgb, #f43f5e 7%, var(--surface)); border: 1px solid color-mix(in srgb, #f43f5e 35%, var(--border)); }
.an-ring-card > div, .an-alert > div { display: flex; flex-direction: column; gap: 2px; }
.an-ring-card .muted, .an-alert .muted { font-size: 12.5px; }
.an-big { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.an-big.neg { color: #e11d48; }
.an-ring { --p: 0; flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#e11d48 calc(var(--p) * 1%), color-mix(in srgb, #f43f5e 14%, var(--surface)) 0); position: relative; }
.an-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.an-ring b { position: relative; font-size: 14px; }
.an-dist { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--subtle); gap: 2px; }
.an-dist a { display: block; min-width: 6px; transition: opacity .15s; }
.an-dist a:hover, .an-dist a.on { opacity: .8; }
.an-dist-empty { flex: 1; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.an-legend a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; padding: 3px 8px; border-radius: 8px; }
.an-legend a.on { background: var(--subtle); color: var(--text); }
.an-legend i { width: 9px; height: 9px; border-radius: 50%; }
.an-legend b { color: var(--text); }
.an-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--row-line); }
.an-tools .search { flex: 1; min-width: 180px; max-width: 360px; }
.an-tools-foot { border-top: 1px solid var(--row-line); border-bottom: 0; justify-content: space-between; }
.an-sort { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--border); margin-left: auto; }
.an-sort a { padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.an-sort a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.an-copy { margin: 0; padding: 9px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: #0f172a !important; color: #fff; }
.an-copy.blue { background: var(--accent-h) !important; }
.an-copy:disabled { opacity: .45; }
[data-theme="dark"] .an-copy:not(.blue) { background: #e5e7eb !important; color: #111827; }
.an-tbl td { vertical-align: middle; }
.an-tbl tr:hover td { background: var(--subtle); }
.an-who { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.an-who > span:last-child { display: flex; flex-direction: column; }
.an-who b { color: var(--strong); }
.an-who small { font-size: 12px; color: var(--muted); }
.an-av { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  background: color-mix(in srgb, #f43f5e 12%, var(--surface)); color: #e11d48; }
.an-av.lg { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; background: var(--accent-soft); color: var(--accent-h); }
.an-adm { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-h); }
.an-last { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; min-width: 220px; }
.an-last .muted { font-size: 12px; }
.an-last .an-bar { grid-column: 1 / -1; }
.an-pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, #f43f5e 12%, var(--surface)); color: #e11d48; white-space: nowrap; }
.an-pill.gray { background: var(--subtle); color: var(--muted); }
.an-bar { display: block; height: 6px; border-radius: 999px; background: var(--subtle); overflow: hidden; }
.an-bar > i { display: block; height: 100%; border-radius: inherit; background: #be123c; }
.an-bar.gray > i { background: #64748b; }
.an-foot { font-size: 12.5px; }
/* 현황판 */
.an-todo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.an-todo-i { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--subtle); text-decoration: none; color: inherit; transition: transform .15s; }
.an-todo-i:hover { transform: translateY(-1px); }
.an-todo-i b { font-size: 26px; font-weight: 900; }
.an-todo-i b small { font-size: 14px; margin-left: 2px; }
.an-todo-t { font-size: 13px; color: var(--muted); }
.an-todo-t em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #e11d48; color: #fff; margin-left: 4px; }
.an-todo-i .muted { font-size: 12px; }
.an-todo-i.late { background: color-mix(in srgb, #f43f5e 7%, var(--surface)); border-color: color-mix(in srgb, #f43f5e 40%, var(--border)); }
.an-todo-i.late b { color: #e11d48; }
.an-hub2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-wk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.an-wk > div { display: flex; flex-direction: column; gap: 2px; }
.an-wk span { font-size: 12.5px; color: var(--muted); }
.an-wk b { font-size: 24px; font-weight: 900; }
.an-wk small { font-size: 11.5px; } .an-wk small.down { color: #e11d48; } .an-wk small.up { color: #16a34a; }
.an-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 130px; align-items: end; }
.an-bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 12px; }
.an-bars b { font-size: 12px; color: var(--muted); }
.an-bars i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.an-bars .today i { background: var(--accent-h); }
.an-bars span { color: var(--muted); }
.an-status { display: flex; flex-direction: column; gap: 8px; }
.an-status a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.an-status a:hover { background: var(--subtle); }
.an-status a > span:nth-child(2) { display: flex; flex-direction: column; }
.an-status small { font-size: 12px; color: var(--muted); }
.an-status em { font-style: normal; font-weight: 900; font-size: 17px; }
.an-status i { font-style: normal; color: var(--muted); }
.an-st-ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.an-st-ic.red { background: color-mix(in srgb, #f43f5e 12%, var(--surface)); } .an-st-ic.blue { background: var(--accent-soft); } .an-st-ic.gray { background: var(--subtle); }
.an-report-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--subtle); text-decoration: none; color: var(--text); font-size: 13.5px; }
.an-report-link .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.an-report-link span { margin-left: auto; color: var(--muted); }
/* 급감 */
.an-hist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 150px; align-items: end; }
.an-hist > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.an-hist b { font-size: 13px; }
.an-hist i { display: block; width: 70%; border-radius: 8px 8px 3px 3px; background: #cbd5e1; }
.an-hist .neg i { background: #e11d48; } .an-hist .pos i { background: #16a34a; }
.an-hist span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.an-drop { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(220px, 1.4fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--row-line); text-decoration: none; color: inherit; }
.an-drop:hover { background: var(--subtle); }
.an-cmp { display: flex; flex-direction: column; gap: 4px; }
.an-cmp > div { display: grid; grid-template-columns: 70px 1fr 52px; gap: 8px; align-items: center; font-size: 12px; }
.an-cmp span { color: var(--muted); }
.an-cmp b { text-align: right; }
.an-delta { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, #f43f5e 12%, var(--surface)); color: #e11d48; white-space: nowrap; }
.an-ago { font-size: 12px; white-space: nowrap; }
/* 히트맵 */
.an-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.an-boss-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.an-boss-tabs a { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.an-boss-tabs a.on { background: var(--accent-h); color: #fff; border-color: var(--accent-h); }
.an-heat-wrap { overflow-x: auto; }
.an-heat { border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.an-heat th { font-weight: 600; color: var(--muted); padding: 0 4px; text-align: center; }
.an-heat td { width: 32px; min-width: 32px; height: 30px; border-radius: 7px; text-align: center; font-weight: 800; color: #fff; cursor: pointer; }
.an-heat td.empty { background: var(--subtle); cursor: default; border: 1px dashed var(--border); }
.an-heat .lv0 { background: #bfdbfe; color: #1e3a8a; } .an-heat .lv1 { background: #93c5fd; color: #1e3a8a; } .an-heat .lv2 { background: #60a5fa; }
.an-heat .lv3 { background: #3b82f6; } .an-heat .lv4 { background: #1d4ed8; }
.an-heat td.sel { outline: 2px solid #f59e0b; outline-offset: 1px; }
.an-heat-leg { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.an-heat-leg i { width: 16px; height: 12px; border-radius: 4px; }
.an-heat-leg .lv0 { background: #bfdbfe; } .an-heat-leg .lv1 { background: #93c5fd; } .an-heat-leg .lv2 { background: #60a5fa; } .an-heat-leg .lv3 { background: #3b82f6; } .an-heat-leg .lv4 { background: #1d4ed8; }
.an-heat-leg .empty { background: var(--subtle); border: 1px dashed var(--border); margin-left: 10px; }
.an-pick { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--subtle); }
.an-pick > div { display: flex; flex-direction: column; }
.an-pick span { font-size: 12px; color: var(--muted); }
.an-pick b { font-size: 17px; }
.an-pick-names { flex-direction: row !important; gap: 6px; flex-wrap: wrap; }
.an-pick-names span { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.an-hbars { display: flex; flex-direction: column; gap: 10px; }
.an-hbars > div { display: grid; grid-template-columns: 110px 1fr 64px 170px; gap: 12px; align-items: center; font-size: 13px; }
.an-hb-name { font-weight: 700; }
.an-hb { display: block; height: 12px; border-radius: 999px; background: var(--subtle); overflow: hidden; }
.an-hb > i { display: block; height: 100%; border-radius: inherit; background: var(--accent-h); }
.an-hbars .lack .an-hb > i { background: #e11d48; }
.an-hbars b { text-align: right; }
.an-hb-when { font-size: 12px; color: var(--muted); }
.an-hb-when em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #f43f5e 12%, var(--surface)); color: #e11d48; }
/* 신규 */
.an-newtop { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.an-st3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.an-st3 > div { display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); min-height: 120px; }
.an-st3 span { font-size: 12.5px; color: var(--muted); }
.an-st3 b { font-size: 30px; font-weight: 900; }
.an-st3 .ok b { color: #16a34a; } .an-st3 .warn b { color: #d97706; }
.an-st3 .bad { background: color-mix(in srgb, #f43f5e 6%, var(--surface)); border-color: color-mix(in srgb, #f43f5e 35%, var(--border)); }
.an-st3 .bad b { color: #e11d48; }
.an-funnel { display: flex; flex-direction: column; gap: 10px; }
.an-funnel > div { display: grid; grid-template-columns: 90px 1fr 40px 44px; gap: 10px; align-items: center; font-size: 13px; }
.an-funnel .an-bar { height: 10px; } .an-funnel .an-bar > i { background: var(--accent-h); }
.an-funnel em { font-style: normal; color: var(--muted); text-align: right; font-size: 12px; }
.an-funnel b { text-align: right; }
.an-weeks { display: grid; grid-template-columns: repeat(4, 34px); gap: 6px; height: 46px; align-items: end; }
.an-weeks > span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.an-weeks i { display: block; width: 100%; border-radius: 5px; background: var(--accent-h); }
.an-weeks .zero i { background: #fda4af; } .an-weeks .future i { background: var(--subtle); }
.an-weeks small { font-size: 10px; color: var(--muted); }
/* 길드원 리포트 */
.an-pickbox { position: relative; flex: 1; min-width: 240px; max-width: 520px; }
.an-pickbox .search { max-width: none; }
.an-pick-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 320px; overflow: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(15,23,42,.18); }
.an-pick-list a { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: inherit; }
.an-pick-list a:hover { background: var(--subtle); }
.an-pick-list small { color: var(--muted); font-size: 12px; }
.an-mr-head { display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)) !important; }
.an-mr-head > div { display: flex; flex-direction: column; flex: 1; }
.an-mr-head b { font-size: 18px; }
.an-mr-head small { color: var(--muted); font-size: 12.5px; }
.an-mood { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.an-mood.ok { background: color-mix(in srgb, #22c55e 12%, var(--surface)); color: #15803d; }
.an-mood.warn { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); color: #b45309; }
.an-mood.bad { background: color-mix(in srgb, #f43f5e 12%, var(--surface)); color: #be123c; }
.an-mr-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.an-12 { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 150px; align-items: end; padding-bottom: 18px; }
.an-12 > div { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.an-12 > div i { display: block; border-radius: 6px 6px 2px 2px; background: var(--accent-h); }
.an-12 .low i { background: #e11d48; }
.an-12 > div span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.an-avgline { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--muted); z-index: 1; margin-bottom: 18px; }
.an-avgline span { position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--muted); background: var(--surface); padding: 0 4px; }
.an-li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--row-line); font-size: 13.5px; }
.an-li:last-child { border-bottom: 0; }
.an-li span { flex: 1; color: var(--muted); }
.an-li b + small, .an-li small:first-child { flex: none; }
.an-li small:first-child { flex: 1; }
.an-bb { display: grid; grid-template-columns: 100px 1fr 60px; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.an-bb .an-bar { height: 10px; } .an-bb .an-bar > i { background: var(--accent-h); }
.an-bb b { text-align: right; font-size: 12.5px; }
.an-mr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-tag { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; background: var(--subtle); border: 1px solid var(--border); color: var(--muted); }
.an-tag.ok { color: #15803d; } .an-tag.off { color: #be123c; }
/* 주간 리포트 */
.wr-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: start; }
.wr-sw { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--subtle); cursor: pointer; }
.wr-sw span { display: flex; flex-direction: column; }
.wr-sw small { color: var(--muted); font-size: 12px; }
.wr-ch { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.wr-ch .muted { font-size: 12px; }
.wr-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.wr-opts { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.wr-opts label { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--row-line); cursor: pointer; font-size: 13.5px; }
.wr-opts label:last-child { border-bottom: 0; }
.wr-opts small { color: var(--muted); font-size: 12px; }
.wr-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-h); font-size: 12.5px; }
.wr-prev-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 2px 10px; }
.wr-prev-h .muted { font-size: 12px; }
.dc-card { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: #313338; color: #dbdee1; font-size: 14px; line-height: 1.55; }
.dc-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #5865f2; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.dc-body { flex: 1; min-width: 0; }
.dc-who { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dc-who b { color: #f2f3f5; }
.dc-who em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; }
.dc-who span { font-size: 12px; color: #949ba4; }
.dc-embed { padding: 12px 14px; border-radius: 6px; background: #2b2d31; border-left: 4px solid #5865f2; white-space: normal; }
.dc-embed b { color: #f2f3f5; }
@media (max-width: 960px) {
  .an-top, .an-top.three, .an-todo, .an-mr-stats { grid-template-columns: 1fr 1fr; }
  .an-ring-card, .an-alert { grid-column: 1 / -1; }
  .an-hub2, .an-newtop, .wr-layout { grid-template-columns: 1fr; }
  .an-drop { grid-template-columns: 1fr; gap: 8px; }
  .an-hbars > div { grid-template-columns: 90px 1fr 56px; } .an-hb-when { grid-column: 1 / -1; }
}

/* ---------- 길드·클래스 색상 선택 (원본과 같은 팝오버) ---------- */
.clr-dot, .clr-sw, .clr-none { all: unset; box-sizing: border-box; cursor: pointer; }
.clr-dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c) !important; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.clr-dot.none { background: repeating-conic-gradient(var(--subtle) 0 25%, var(--surface) 0 50%) 50% / 8px 8px !important; }
.clr-dot:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 25%, transparent); }
.clr-pop { position: absolute; z-index: 1000; width: 260px; padding: 12px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(15,23,42,.18); }
.clr-prev { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 10px; background: var(--subtle); margin-bottom: 10px; }
.clr-pill { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.clr-auto { font-size: 11px; color: var(--muted); }
.clr-lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.clr-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.clr-sw { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--c) !important; transition: transform .1s; }
.clr-sw:hover { transform: scale(1.12); }
.clr-sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.clr-foot { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.clr-cur { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: 0 0 0 1px var(--border); }
.clr-hex { flex: 1; min-width: 0; padding: 5px 8px !important; font-family: ui-monospace, monospace; font-size: 12px !important; height: auto !important; }
.clr-custom { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; margin: 0; color: var(--text); }
.clr-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.clr-none { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; white-space: nowrap; }
.pill-sel.has-c { border-color: transparent !important; }

/* ======================================================================
   참여율 조회 · 전투력 조회 — 원본과 같은 글자·색 (라이트 / 다크 / 핑크)
   관리자가 정하는 길드·클래스 색상은 그대로 사용
   ====================================================================== */
:root, [data-theme="light"] {
  --tb-strong: #0f172a; --tb-plain: #475569; --tb-sub: #64748b; --tb-faint: #94a3b8;
  --tb-bg: #ffffff; --tb-line: #f1f5f9; --tb-head-line: #e2e8f0; --tb-hover: #f8fafc;
  --tb-comp: #4f46e5; --tb-part: #2563eb; --tb-contrib: #059669; --tb-final: #6d28d9; --tb-legend: #7c3aed;
  --tb-part-h: #1d4ed8; --tb-part-s: #3b82f6; --tb-contrib-h: #047857; --tb-contrib-s: #10b981; --tb-final-h: #6d28d9; --tb-final-s: #8b5cf6;
  --pw-text: #0f172a; --pw-strong: #0f172a; --pw-head: #404e61; --pw-head-bg: #f4f4fc; --pw-head-line: rgba(148,163,184,.24); --pw-line: rgba(148,163,184,.24);
  --pw-hover: rgba(239,246,255,.4); --pw-num-bg: #f1f5f9; --pw-num: #334155; --pw-none: #94a3b8;
  --pw-cls-bg: #e0f2fe; --pw-cls: #075985; --pw-cls-bd: #bae6fd;
  /* 카드 */
  --cd-bg: #ffffff; --cd-bd: #e2e8f0; --cd-shadow: 0 0 0 1px rgba(15,23,42,.035), 0 20px 46px -28px rgba(15,23,42,.34);
  --cd-sub-bg: #f8fafc; --cd-sub-bd: #f1f5f9; --cd-div: #e2e8f0; --cd-label: #64748b; --cd-val: #334155; --cd-name: #0f172a; --cd-rank: #475569;
  --pc-bg: #eff6ff; --pc-l: #3b82f6; --pc-v: #1e40af; --pf-v: #1e293b; --pw-list-bg: rgba(248,250,252,.7);
  /* 등급 색: 배경 / 진한 글자 / 중간 글자 */
  --g-legend-bg: #f3e8ff; --g-legend: #7e22ce; --g-legend-m: #9333ea;
  --g-hero-bg: #fee2e2;   --g-hero: #b91c1c;   --g-hero-m: #dc2626;
  --g-rare-bg: #dbeafe;   --g-rare: #1d4ed8;   --g-rare-m: #2563eb;
  --g-adv-bg: #dcfce7;    --g-adv: #15803d;    --g-adv-m: #16a34a;
  --g-normal-bg: #f1f5f9; --g-normal: #475569; --g-normal-m: #64748b;
  --g-none-bg: #e2e8f0;   --g-none: #334155;   --g-none-m: #64748b;
}
[data-theme="dark"] {
  --tb-strong: #dbe0ea; --tb-plain: #c8ced9; --tb-sub: #aab1bd; --tb-faint: #8e96a3;
  --tb-bg: #1d2027; --tb-line: #3c444f; --tb-head-line: #343a45; --tb-hover: rgba(148,163,184,.06);
  --tb-comp: #b1a3ff; --tb-part: #98bbff; --tb-contrib: #89d8bf; --tb-final: #c8bcff; --tb-legend: #7c3aed;
  --tb-part-h: #b7ceff; --tb-part-s: #7fa7ff; --tb-contrib-h: #a8e7d4; --tb-contrib-s: #10b981; --tb-final-h: #c8bcff; --tb-final-s: #a78bfa;
  --pw-text: #e5e7eb; --pw-strong: #f6f7fb; --pw-head: #dde1ea; --pw-head-bg: rgba(42,47,56,.95); --pw-head-line: #343a45; --pw-line: #323843;
  --pw-hover: rgba(59,130,246,.08); --pw-num-bg: #2b303a; --pw-num: #dde1ea; --pw-none: #8e96a3;
  --pw-cls-bg: #1a3b4e; --pw-cls: #bae6fd; --pw-cls-bd: #2b5d78;
  --cd-bg: #252a33; --cd-bd: #3c444f; --cd-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 24px 50px -30px rgba(0,0,0,.88);
  --cd-sub-bg: #20242c; --cd-sub-bd: #3c444f; --cd-div: #3c444f; --cd-label: #aab4c3; --cd-val: #dbe0ea; --cd-name: #f8fafc; --cd-rank: #cbd5e1;
  --pc-bg: #22324a; --pc-l: #7fa7ff; --pc-v: #dbe7ff; --pf-v: #eceff5; --pw-list-bg: rgba(35,39,47,.7);
  --g-legend-bg: #3d365c; --g-legend: #c8bcff; --g-legend-m: #b1a3ff;
  --g-hero-bg: #4a2a2e;   --g-hero: #fecaca;   --g-hero-m: #fca5a5;
  --g-rare-bg: #22324a;   --g-rare: #bfdbfe;   --g-rare-m: #93c5fd;
  --g-adv-bg: #1f3a2e;    --g-adv: #bbf7d0;    --g-adv-m: #86efac;
  --g-normal-bg: #2b303a; --g-normal: #dde1ea; --g-normal-m: #aab1bd;
  --g-none-bg: #2b303a;   --g-none: #cbd5e1;   --g-none-m: #aab1bd;
}
[data-theme="pink"] {
  --tb-strong: #2f1720; --tb-plain: #72515e; --tb-sub: #8d6976; --tb-faint: #aa8994;
  --tb-bg: #ffffff; --tb-line: #f8dce3; --tb-head-line: #f1c7d1; --tb-hover: #fff5f8;
  --tb-comp: #c61d49; --tb-part: #c61d49; --tb-contrib: #059669; --tb-final: #c61d49; --tb-legend: #7c3aed;
  --tb-part-h: #c61d49; --tb-part-s: #c61d49; --tb-contrib-h: #047857; --tb-contrib-s: #10b981; --tb-final-h: #c61d49; --tb-final-s: #8b5cf6;
  --pw-text: #2f1720; --pw-strong: #291820; --pw-head: #4c2e39; --pw-head-bg: #faf2fa; --pw-head-line: #f1c7d1; --pw-line: #f8dce3;
  --pw-hover: #fff5f8; --pw-num-bg: #fde8ed; --pw-num: #4c2e39; --pw-none: #aa8994;
  --pw-cls-bg: #ffdce5; --pw-cls: #9f1239; --pw-cls-bd: #fecdd3;
  --cd-bg: #ffffff; --cd-bd: rgba(244,114,182,.17); --cd-sub-bg: #fffafb; --cd-sub-bd: #f8dce3; --cd-div: #f8dce3;
  --cd-label: #8d6976; --cd-val: #4c2e39; --cd-name: #2f1720; --cd-rank: #72515e;
  --pc-bg: #fff0f4; --pc-l: #e11d48; --pc-v: #9f1239; --pf-v: #2f1720; --pw-list-bg: rgba(255,245,248,.7);
  --g-legend-bg: #ffdce5; --g-legend: #c61d49; --g-legend-m: #e11d48;
}

/* ---------- 참여율 조회 표 ---------- */
.st-tbl { font-size: 14px; background: var(--tb-bg); }
.st-tbl th { font-size: 14px !important; font-weight: 700 !important; color: var(--tb-strong) !important; letter-spacing: -.012em !important;
  padding: 8px !important; background: var(--tb-bg) !important; border-bottom: 1px solid var(--tb-head-line); line-height: 20px; border-radius: 0 !important; }
.st-tbl th small { display: block; font-size: 10px !important; font-weight: 400 !important; color: var(--tb-sub) !important; line-height: 1.25; margin-top: 2px; letter-spacing: 0; }
.st-tbl th.th-part { color: var(--tb-part-h) !important; }     .st-tbl th.th-part small { color: var(--tb-part-s) !important; }
.st-tbl th.th-contrib { color: var(--tb-contrib-h) !important; } .st-tbl th.th-contrib small { color: var(--tb-contrib-s) !important; }
.st-tbl th.th-final { color: var(--tb-final-h) !important; }   .st-tbl th.th-final small { color: var(--tb-final-s) !important; }
.st-tbl th:has(small):not(.sorted-asc):not(.sorted-desc)::after { content: none; }
.st-tbl td { padding: 8px !important; font-size: 14px; font-weight: 400 !important; color: var(--tb-plain); line-height: 20px;
  border-top: 0 !important; border-bottom: 1px solid var(--tb-line); background: var(--tb-bg); }
.st-tbl tr.st-row { cursor: pointer; }
.st-tbl tr:hover td { background: var(--tb-hover) !important; }
.st-tbl td.s-rank, .st-tbl td.s-nick { font-weight: 500 !important; color: var(--tb-strong); }
.st-tbl td.s-nick .me { color: var(--me); font-weight: 700; }
.st-tbl td.s-comp    { font-weight: 700 !important; color: var(--tb-comp); }
.st-tbl td.s-part    { font-weight: 600 !important; color: var(--tb-part); }
.st-tbl td.s-contrib { font-weight: 600 !important; color: var(--tb-contrib); }
.st-tbl td.s-final   { font-weight: 600 !important; color: var(--tb-final); }
.st-tbl td.s-boss    { font-size: 12px; line-height: 16px; color: var(--tb-sub); }
.st-tbl .legend-mark { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: var(--tb-legend); line-height: 1.2; }
.st-tbl td .muted { color: var(--tb-faint); }
.st-tbl .badge, .pc-card .badge, .pd-modal .badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px !important; border-radius: 9999px !important;
  font-size: 12px !important; font-weight: 500 !important; line-height: 16px; border: 0 !important; margin: 0; }
.st-tbl .badge.b-div:not([style]), .pc-card .badge.b-div:not([style]), .pd-modal .badge.b-div:not([style]) { background: #3b82f6; color: #fff; }
.st-tbl .badge.b-class:not([style]), .pc-card .badge.b-class:not([style]), .pd-modal .badge.b-class:not([style]) { background: var(--g-none-bg); color: var(--g-none); }

/* 등급 배지 (참여율·전투력 공통) */
.g-legend { background: var(--g-legend-bg) !important; color: var(--g-legend) !important; }
.g-hero   { background: var(--g-hero-bg) !important;   color: var(--g-hero) !important; }
.g-rare   { background: var(--g-rare-bg) !important;   color: var(--g-rare) !important; }
.g-adv    { background: var(--g-adv-bg) !important;    color: var(--g-adv) !important; }
.g-normal { background: var(--g-normal-bg) !important; color: var(--g-normal) !important; }
.g-none   { background: var(--g-none-bg) !important;   color: var(--g-none) !important; }

/* ---------- 전투력 조회 표 ---------- */
.pw-tbl { font-size: 12px; }
.pw-tbl th { font-size: 11px !important; font-weight: 700 !important; color: var(--pw-head) !important; background: var(--pw-head-bg) !important;
  padding: 8px 10px !important; text-align: center !important; border-bottom: 1px solid var(--pw-head-line); letter-spacing: 0 !important; border-radius: 0 !important; }
.pw-tbl td { padding: 8px 10px !important; font-size: 12px; font-weight: 400 !important; color: var(--pw-text); text-align: center;
  border-top: 0 !important; border-bottom: 1px solid var(--pw-line); }
.pw-tbl tr:hover td { background: var(--pw-hover) !important; }
.pw-tbl td.pw-nick span { font-weight: 700; color: var(--pw-strong); }
.pw-tbl td.pw-nick .me, .pw-card__name.me { color: var(--me) !important; }
.pw-tbl td.pw-power { font-weight: 900 !important; color: var(--pw-strong); font-variant-numeric: tabular-nums; }
.pw-none { color: var(--pw-none); font-size: 12px; }
.pw-div { display: inline-flex; max-width: 150px; align-items: center; justify-content: center; gap: 4px; padding: 3px 12px; border-radius: 9999px;
  border: 1px solid #3b82f6; background: #3b82f6; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pw-div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-div svg { width: 13px; height: 13px; flex: 0 0 auto; }
.pw-tbl .pw-div svg { display: none; }
.pw-cls { display: inline-flex; padding: 3px 10px; border-radius: 9999px; border: 1px solid var(--pw-cls-bd); background: var(--pw-cls-bg); color: var(--pw-cls);
  font-size: 11px; font-weight: 700; line-height: 16px; }
.pw-cls.own { background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: color-mix(in srgb, var(--c) 30%, var(--surface));
  color: color-mix(in srgb, var(--c) 70%, #000); }
[data-theme="dark"] .pw-cls.own { background: color-mix(in srgb, var(--c) 22%, #1d2027); border-color: color-mix(in srgb, var(--c) 45%, #1d2027);
  color: color-mix(in srgb, var(--c) 45%, #fff); }
.pw-sel { display: inline-flex; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; line-height: 16px; }
.pw-num { display: inline-flex; min-width: 40px; justify-content: center; padding: 3px 8px; border-radius: 12px; background: var(--pw-num-bg); color: var(--pw-num);
  font-size: 11px; font-weight: 700; line-height: 16px; font-variant-numeric: tabular-nums; }

/* ---------- 좁은 화면: 표 → 박스(카드) ---------- */
.st-cards, .pw-cards { display: none; }
@media (max-width: 767px) {
  .st-tbl-wrap { display: none; }
  .st-cards { display: block; margin-top: 4px; }
}
@media (max-width: 1023px) {
  .pw-tbl-wrap { display: none; }
  .pw-cards { display: grid; gap: 16px; margin: 12px -20px -18px; padding: 16px; background: var(--pw-list-bg); border-top: 1px solid var(--cd-sub-bd); border-radius: 0 0 16px 16px; }
}

/* 참여율 카드 */
.pc-card { all: unset; box-sizing: border-box; display: grid; gap: 10px; width: 100%; padding: 12px; margin-top: 8px; cursor: pointer; text-align: left;
  background: var(--cd-bg); border: 1px solid var(--cd-bd); border-radius: 12px; box-shadow: var(--cd-shadow); color: var(--cd-name); }
.pc-card:first-child { margin-top: 0; }
.pc-card.mine { border-color: color-mix(in srgb, #f59e0b 45%, var(--cd-bd)); }
.pc-card[style*="display: none"] { display: none !important; }
.pc-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pc-card__name { display: flex; align-items: center; gap: 8px; }
.pc-card__name strong { font-size: 16px; font-weight: 600; color: var(--cd-name); }
.pc-card__name strong.me { color: var(--me); }
.pc-card__rank { min-width: 20px; font-size: 16px; font-weight: 700; color: var(--cd-rank); }
.pc-card__id { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.pc-card .pc-card__id .badge { font-size: 10px !important; padding: 2px 8px !important; }
.pc-card__lv { font-size: 11px; font-weight: 700; color: var(--tb-sub); }
.pc-card__rates { display: grid; grid-template-columns: auto auto; column-gap: 8px; row-gap: 2px; align-items: baseline; text-align: right; flex: 0 0 auto; }
.pc-card__rates span { font-size: 11px; color: var(--cd-label); }
.pc-card__rates b { font-size: 14px; font-weight: 700; }
.pc-card .is-rate { color: var(--tb-part); } .pc-card .is-contrib { color: var(--tb-contrib); } .pc-card .is-final { color: var(--tb-final); } .pc-card .is-comp { color: var(--tb-comp) !important; }
.pc-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cd-sub-bg); border: 1px solid var(--cd-sub-bd); border-radius: 10px; }
.pc-card__stats > div { padding: 6px 8px; text-align: center; }
.pc-card__stats > div + div { border-left: 1px solid var(--cd-div); }
.pc-card__stats span { display: block; font-size: 10px; font-weight: 600; color: var(--cd-label); }
.pc-card__stats b { font-size: 12px; font-weight: 700; color: var(--cd-val); }
.pc-card__gear { display: grid; padding-top: 10px; border-top: 1px solid var(--cd-sub-bd); }
.pc-card__gi { display: flex; align-items: center; justify-content: center; gap: 5px; }
.pc-card__gi + .pc-card__gi { border-left: 1px solid var(--cd-div); }
.pc-card__gl { font-size: 10.5px; font-weight: 600; color: var(--cd-label); }
.pc-card .pc-card__gi .badge { font-size: 10px !important; font-weight: 600 !important; padding: 2px 8px !important; }

/* 전투력 카드 */
.pw-card { padding: 16px; background: var(--cd-bg); border: 1px solid var(--pw-line); border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(15,23,42,.024), 0 7px 20px -16px rgba(15,23,42,.32); }
[data-theme="dark"] .pw-card { background: #1d2027; border-color: #343a45; }
.pw-card.mine { border-color: color-mix(in srgb, #f59e0b 45%, var(--pw-line)); }
.pw-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pw-card__name { font-size: 15px; font-weight: 900; color: var(--pw-strong); }
.pw-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.pw-card__meta .pw-div { font-size: 12px; padding: 2px 10px; }
.pw-card__meta .pw-cls { font-size: 12px; padding: 2px 8px; }
.pw-card__power { flex: 0 0 auto; padding: 8px 12px; border-radius: 16px; background: var(--pc-bg); text-align: right; }
.pw-card__power div { font-size: 11px; font-weight: 700; color: var(--pc-l); }
.pw-card__power b { font-size: 16px; font-weight: 900; color: var(--pc-v); font-variant-numeric: tabular-nums; }
.pw-card__grades, .pw-card__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pw-card__grades + .pw-card__fields { margin-top: 8px; }
.pw-gcard { padding: 8px 12px; border-radius: 16px; }
.pw-gcard__l { font-size: 11px; font-weight: 700; opacity: .85; }
.pw-gcard__v { margin-top: 4px; font-size: 16px; font-weight: 700; }
.pw-gcard.g-legend .pw-gcard__l { color: var(--g-legend-m) !important; } .pw-gcard.g-hero .pw-gcard__l { color: var(--g-hero-m) !important; }
.pw-gcard.g-rare .pw-gcard__l { color: var(--g-rare-m) !important; } .pw-gcard.g-adv .pw-gcard__l { color: var(--g-adv-m) !important; }
.pw-gcard.g-normal .pw-gcard__l, .pw-gcard.g-none .pw-gcard__l { color: var(--g-normal-m) !important; }
.pw-gcard.g-empty { background: var(--cd-sub-bg); color: var(--pw-none); border: 1px solid var(--pw-line); }
.pw-field { padding: 8px 12px; border-radius: 16px; background: var(--cd-sub-bg); border: 1px solid var(--pw-line); }
[data-theme="dark"] .pw-field { background: #23272f; border-color: #323843; }
.pw-field__l { font-size: 11px; font-weight: 700; color: var(--cd-label); }
.pw-field__v { margin-top: 4px; font-size: 14px; font-weight: 900; color: var(--pf-v); font-variant-numeric: tabular-nums; }
.pw-field__v.none { color: var(--pw-none); font-weight: 400; }

/* ---------- 참여율 상세 창 ---------- */
.pd-modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.5); }
.pd-modal[hidden] { display: none; }
.pd-panel { width: 100%; max-width: 1024px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--cd-bg); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--cd-name); }
[data-theme="dark"] .pd-panel { background: #1d2027; }
.pd-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cd-sub-bd); }
.pd-ico { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #fef3c7; font-size: 20px; font-weight: 800; color: #92400e; }
[data-theme="dark"] .pd-ico { background: #3a321f; color: #ffd29f; }
.pd-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pd-title b { font-size: 18px; font-weight: 700; margin-right: 2px; }
.pd-sub { margin-top: 2px; font-size: 12px; color: var(--cd-label); }
.pd-sub b { color: var(--cd-name); }
.pd-x { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--cd-label); font-size: 16px; }
.pd-x:hover { background: var(--cd-sub-bg); }
.pd-body { overflow: auto; padding: 16px 20px 20px; }
.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--cd-bd); border-radius: 16px; overflow: hidden; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pd-grid > div { padding: 12px; border-right: 1px solid var(--cd-div); border-bottom: 1px solid var(--cd-div); margin: 0 -1px -1px 0; }
.pd-grid span { display: block; font-size: 12px; color: var(--cd-label); }
.pd-grid b { display: block; margin: 4px 0 2px; font-size: 22px; font-weight: 800; color: var(--cd-val); font-variant-numeric: tabular-nums; }
.pd-grid b em { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 2px; }
.pd-grid small { font-size: 11px; color: var(--cd-label); }
.pd-grid .is-rate { color: var(--tb-part); } .pd-grid .is-contrib { color: var(--tb-contrib); } .pd-grid .is-final { color: var(--tb-final); } .pd-grid .is-comp { color: var(--tb-comp); }
.pd-h { margin: 18px 0 8px; font-size: 14px; font-weight: 700; color: var(--cd-name); }
.pd-brow { display: grid; grid-template-columns: 88px 1fr auto 44px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cd-sub-bd); font-size: 13px; }
.pd-brow b { font-weight: 700; color: var(--cd-name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bar { height: 8px; border-radius: 999px; background: var(--cd-sub-bg); overflow: hidden; }
.pd-bar i { display: block; height: 100%; border-radius: 999px; background: #e0b34f; }
.pd-bar i.full { background: #6aa775; }
.pd-cnt { font-size: 12px; color: var(--cd-label); white-space: nowrap; }
.pd-pct { font-size: 12px; font-weight: 700; color: #a0581f; text-align: right; }
.pd-pct.full { color: #3d7b48; }
[data-theme="dark"] .pd-pct { color: #f0c27b; } [data-theme="dark"] .pd-pct.full { color: #8fd19b; }
/* 스펙 수정: 등급 선택칸 색 */
select.pv.g-sel { font-weight: 600; border-color: transparent !important; }

/* ======================================================================
   참여율 조회 · 일일 기여율 (원본 dcb 구성)
   ====================================================================== */
:root, [data-theme="light"] {
  --dcb-ink: #0f172a; --dcb-muted: #6b7280; --dcb-line: #d0d7e0; --dcb-soft: #f8f9fa; --dcb-card: #ffffff;
  --dcb-base-bg: #ecfdf5; --dcb-base-bd: #a7f3d0; --dcb-base: #047857; --dcb-green: #10b981; --dcb-track: #e7ecf3;
  --dcb-note-bg: #eef2ff; --dcb-note: #1d4ed8; --dcb-accent: #2563eb; --dcb-date-bd: #94aee4; --dcb-th: #404e61; --dcb-th-bg: #eef7fb;
  --dcb-search-bd: rgba(100,116,139,.34); --dcb-sun: #be123c; --dcb-sat: #1d4ed8;
}
[data-theme="dark"] {
  --dcb-ink: #eceff5; --dcb-muted: #aab1bd; --dcb-line: #3c444f; --dcb-soft: #20242c; --dcb-card: #1d2027;
  --dcb-base-bg: rgba(16,185,129,.12); --dcb-base-bd: rgba(16,185,129,.35); --dcb-base: #6ee7b7; --dcb-green: #34d399; --dcb-track: #2b303a;
  --dcb-note-bg: rgba(59,130,246,.14); --dcb-note: #b7ceff; --dcb-accent: #60a5fa; --dcb-date-bd: #4a628f; --dcb-th: #dde1ea; --dcb-th-bg: #252a33;
  --dcb-search-bd: #3c444f; --dcb-sun: #fda4af; --dcb-sat: #93c5fd;
}
[data-theme="pink"] {
  --dcb-ink: #2f1720; --dcb-muted: #8d6976; --dcb-line: #f1c7d1; --dcb-soft: #fffafb; --dcb-th: #4c2e39; --dcb-th-bg: #fdf1f5;
  --dcb-note-bg: #fff0f4; --dcb-note: #c61d49; --dcb-accent: #e11d48; --dcb-date-bd: #f3a6bb; --dcb-search-bd: #f1c7d1;
}
.dcb-tabs { margin-bottom: 14px; }
.dcb-card { padding: 16px !important; }
.dcb-root { display: flex; flex-direction: column; gap: 16px; color: var(--dcb-ink); }
.dcb-root svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dcb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dcb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dcb-icon-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer;
  border: 1px solid var(--dcb-line); border-radius: 12px; background: var(--dcb-card); color: var(--dcb-ink); }
.dcb-icon-btn:hover { background: var(--dcb-soft); }
.dcb-icon-btn.is-small { width: 40px; height: 40px; border-radius: 10px; }
.dcb-icon-btn.is-off, .dcb-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.dcb-anchor { position: relative; }
.dcb-date-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 12px; cursor: pointer;
  border: 1px solid var(--dcb-date-bd); border-radius: 12px; background: var(--dcb-card); color: var(--dcb-accent); }
.dcb-date-text { font-size: 15px; font-weight: 800; color: var(--dcb-ink); font-variant-numeric: tabular-nums; }
.dcb-date-btn .dcb-chev { width: 16px; height: 16px; color: var(--dcb-muted); transition: transform .15s; }
.dcb-date-btn[aria-expanded="true"] .dcb-chev { transform: rotate(180deg); }
.dcb-chips { display: flex; gap: 6px; }
.dcb-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--dcb-line); border-radius: 999px; background: var(--dcb-card); font-size: 13px; font-weight: 600; color: var(--dcb-muted); }
.dcb-chip:hover { color: var(--dcb-ink); background: var(--dcb-soft); }
.dcb-chip.is-on { color: var(--dcb-accent); border-color: var(--dcb-date-bd); }
.dcb-chip.is-off { opacity: .45; cursor: not-allowed; }
.dcb-tools { display: flex; gap: 8px; }
.dcb-search input { box-sizing: border-box; width: 280px; height: 44px; padding: 0 14px !important; margin: 0; border: 1px solid var(--dcb-search-bd) !important;
  border-radius: 12px !important; background: var(--dcb-card) !important; font-size: 14px; color: var(--dcb-ink); }
.dcb-note { padding: 10px 14px; border-radius: 12px; background: var(--dcb-note-bg); color: var(--dcb-note); font-size: 13px; }
.dcb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dcb-kpi { padding: 14px 16px; border: 1px solid var(--dcb-line); border-radius: 16px; background: var(--dcb-soft); }
.dcb-kpi-label { font-size: 13px; font-weight: 600; color: var(--dcb-muted); }
.dcb-kpi-value { margin-top: 6px; font-size: 24px; font-weight: 800; color: var(--dcb-ink); font-variant-numeric: tabular-nums; }
.dcb-kpi-value small { margin-left: 3px; font-size: 14px; font-weight: 700; color: var(--dcb-muted); }
.dcb-kpi.is-base { background: var(--dcb-base-bg); border-color: var(--dcb-base-bd); }
.dcb-kpi.is-base .dcb-kpi-label, .dcb-kpi.is-base .dcb-kpi-value, .dcb-kpi.is-base small { color: var(--dcb-base); font-weight: 700; }
.dcb-kpi.is-base .dcb-kpi-value { font-weight: 800; }
.dcb-sub { font-size: 13px; font-weight: 700; color: var(--dcb-muted); margin-bottom: 8px; }
.dcb-bosses { display: flex; flex-wrap: wrap; gap: 8px; }
.dcb-boss { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border: 1px solid var(--dcb-line); border-radius: 10px; background: var(--dcb-card); }
.dcb-boss time { font-size: 12px; font-weight: 700; color: var(--dcb-muted); font-variant-numeric: tabular-nums; }
.dcb-boss strong { font-size: 13px; font-weight: 700; color: var(--dcb-ink); }
.dcb-score-pill { padding: 1px 7px; border-radius: 999px; background: var(--dcb-base-bg); color: var(--dcb-base); font-size: 12px; font-weight: 800; }
.dcb-empty-line { font-size: 13px; color: var(--dcb-muted); }
.dcb-formula-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.dcb-formula { font-size: 13px; color: var(--dcb-muted); }
.dcb-switch-btn { all: unset; display: inline-flex; align-items: center; gap: 10px; padding: 0 4px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--dcb-ink); }
.dcb-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.dcb-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.25); transition: transform .15s; }
[data-theme="dark"] .dcb-switch { background: #4b5563; }
.dcb-switch-btn[aria-pressed="true"] .dcb-switch { background: var(--dcb-accent); }
.dcb-switch-btn[aria-pressed="true"] .dcb-switch::after { transform: translateX(16px); }
.dcb-table-wrap { overflow-x: auto; border: 1px solid var(--dcb-line); border-radius: 16px; background: var(--dcb-card); }
.dcb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dcb-table th { padding: 10px 14px; background: var(--dcb-th-bg); color: var(--dcb-th); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.dcb-table td { padding: 12px 14px; border-top: 1px solid var(--dcb-line); white-space: nowrap; vertical-align: middle; }
.dcb-table .is-num { text-align: right; }
.dcb-table th:first-child { width: 64px; }
.dcb-table th:nth-child(3), .dcb-table th:nth-child(4) { width: 100px; }
.dcb-table th:nth-child(5) { width: 180px; } .dcb-table th:nth-child(6) { width: 110px; } .dcb-table th:nth-child(7) { width: 230px; }
.dcb-row[hidden] { display: none; }
.dcb-row:hover td { background: var(--dcb-soft); }
.dcb-row.is-me td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.dcb-rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; font-size: 13px; font-weight: 800;
  border: 1px solid var(--dcb-line); background: var(--dcb-soft); color: var(--dcb-ink); font-variant-numeric: tabular-nums; }
.dcb-rank.is-top { border-color: transparent; background: var(--dcb-note-bg); color: var(--dcb-note); }
.dcb-row strong { font-size: 14px; font-weight: 700; color: var(--dcb-ink); }
.dcb-pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 18px; background: #3b82f6; color: #fff; }
.dcb-pill.is-class:not([style]) { background: var(--dcb-track); color: var(--dcb-ink); }
.dcb-pill.is-none { background: var(--dcb-track); color: var(--dcb-muted); }
.dcb-dots-cell { display: inline-flex; align-items: center; gap: 8px; }
.dcb-dots { display: inline-flex; gap: 3px; }
.dcb-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--dcb-track); }
.dcb-dot.is-on { background: var(--dcb-green); }
.dcb-dots-text { font-size: 13px; color: var(--dcb-ink); font-variant-numeric: tabular-nums; }
.dcb-score { font-size: 14px; font-weight: 800; color: var(--dcb-ink); font-variant-numeric: tabular-nums; }
.dcb-rate { display: inline-flex; align-items: center; gap: 10px; }
.dcb-rate-track { position: relative; width: 128px; height: 8px; border-radius: 999px; background: var(--dcb-track); overflow: hidden; }
.dcb-rate-fill { position: absolute; inset: 0; border-radius: 999px; background: var(--dcb-green); transform-origin: left center; animation: dcbGrow .6s ease-out both; }
@keyframes dcbGrow { from { transform: scaleX(0); } }
.dcb-rate-text { min-width: 64px; text-align: right; font-size: 14px; font-weight: 800; color: var(--dcb-base); font-variant-numeric: tabular-nums; }
.dcb-row.is-absent strong { font-weight: 600; }
.dcb-row.is-absent strong, .dcb-row.is-absent .dcb-rank, .dcb-row.is-absent .dcb-dots-text,
.dcb-row.is-absent .dcb-score, .dcb-row.is-absent .dcb-rate-text { color: var(--dcb-muted); }
.dcb-empty td { padding: 28px; text-align: center; color: var(--dcb-muted); }
/* 달력 */
.dcb-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 344px; padding: 16px; box-sizing: border-box;
  border: 1px solid var(--dcb-line); border-radius: 20px; background: var(--dcb-card);
  box-shadow: 0 24px 60px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.08); }
.dcb-pop[hidden] { display: none; }
.dcb-pop-head { display: flex; align-items: center; justify-content: space-between; }
.dcb-pop-title { display: flex; flex-direction: column; align-items: center; }
.dcb-pop-title strong { font-size: 16px; font-weight: 800; color: var(--dcb-ink); line-height: 24px; }
.dcb-pop-title span { font-size: 12px; color: var(--dcb-muted); line-height: 18px; }
.dcb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.dcb-wd { padding: 4px 0 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--dcb-muted); }
.dcb-wd.is-sun { color: var(--dcb-sun); } .dcb-wd.is-sat { color: var(--dcb-sat); }
.dcb-day { all: unset; box-sizing: border-box; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 12px; cursor: pointer; }
.dcb-day:hover:not([disabled]) { background: var(--dcb-soft); }
.dcb-day-num { font-size: 14px; font-weight: 600; color: var(--dcb-ink); line-height: 14px; }
.dcb-day.is-sun .dcb-day-num { color: var(--dcb-sun); } .dcb-day.is-sat .dcb-day-num { color: var(--dcb-sat); }
.dcb-day-cnt { display: inline-block; padding: 1px 5px; border-radius: 999px; background: var(--dcb-base-bg); color: var(--dcb-base); font-size: 10px; font-weight: 800; line-height: 14px; }
.dcb-day.no-rec { opacity: .35; cursor: not-allowed; }
.dcb-day.is-today { box-shadow: inset 0 0 0 1.5px var(--dcb-accent); }
.dcb-day.is-sel { background: var(--dcb-accent) !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--dcb-accent) 38%, transparent); opacity: 1; }
.dcb-day.is-sel .dcb-day-num { color: #fff !important; }
.dcb-day.is-sel .dcb-day-cnt { background: rgba(255,255,255,.22); color: #fff; }
.dcb-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--dcb-line); }
.dcb-legend { display: flex; gap: 10px; font-size: 12px; color: var(--dcb-muted); }
.dcb-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.dcb-legend-today { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--dcb-accent); }
.dcb-pop-actions { display: flex; gap: 6px; }
.dcb-confirm { all: unset; padding: 8px 14px; border-radius: 14px; background: var(--dcb-accent); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.dcb-confirm[hidden] { display: none; }
@media (max-width: 760px) {
  .dcb-tools, .dcb-search, .dcb-search input { width: 100%; }
  .dcb-pop { width: min(344px, calc(100vw - 32px)); }
}
@media (max-width: 520px) { .dcb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* 공통 button 색(파랑)이 덮어쓰지 않게 */
.dcb-root .dcb-icon-btn, .dcb-root .dcb-date-btn, .dcb-root .dcb-chip { background: var(--dcb-card) !important; }
.dcb-root .dcb-icon-btn:hover:not(:disabled), .dcb-root .dcb-chip:hover { background: var(--dcb-soft) !important; }
.dcb-root .dcb-date-btn:hover, .dcb-root .dcb-date-btn[aria-expanded="true"] { background: var(--dcb-soft) !important; }
.dcb-root .dcb-day, .dcb-root .dcb-switch-btn { background: transparent !important; }
.dcb-root .dcb-day:hover:not([disabled]) { background: var(--dcb-soft) !important; }
.dcb-root .dcb-day.is-sel { background: var(--dcb-accent) !important; }
.dcb-root .dcb-confirm { background: var(--dcb-accent) !important; color: #fff !important; }

/* ======================================================================
   분배금 조회 (원본 dfl 구성)
   ====================================================================== */
:root, [data-theme="light"] {
  --dfl-ink: #0f172a; --dfl-muted: #5b6b82; --dfl-line: rgba(100,116,139,.2); --dfl-inset: #eef2f7; --dfl-paid: #047857;
  --dfl-card: #ffffff; --dfl-hero: #0d1b31; --dfl-hero-copy: rgba(255,255,255,.78); --dfl-cyan: #a5f3fc; --dfl-accent: #2563eb;
  --dfl-paid-row: rgba(227,246,238,.6); --dfl-paid-chip: #e3f6ee; --dfl-num: #475569; --dfl-amt-unit: #0e7490;
  --dfl-shadow: 0 0 0 1px rgba(15,23,42,.03), 0 10px 26px -20px rgba(15,23,42,.4);
}
[data-theme="dark"] {
  --dfl-ink: #eceff5; --dfl-muted: #aab4c3; --dfl-line: #3c444f; --dfl-inset: #2b303a; --dfl-paid: #34d399;
  --dfl-card: #1d2027; --dfl-hero: #0b1526; --dfl-accent: #7fa7ff; --dfl-paid-row: rgba(16,185,129,.08); --dfl-paid-chip: rgba(16,185,129,.16);
  --dfl-num: #c8ced9; --dfl-amt-unit: #67e8f9; --dfl-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -26px rgba(0,0,0,.9);
}
[data-theme="pink"] {
  --dfl-ink: #2f1720; --dfl-muted: #8d6976; --dfl-line: #f1c7d1; --dfl-inset: #fde8ed; --dfl-accent: #e11d48; --dfl-num: #72515e;
  --dfl-hero: #3a0f20; --dfl-amt-unit: #be185d;
}
.dfl { color: var(--dfl-ink); }
.dfl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dfl-stack { display: flex; flex-direction: column; gap: 22px; }
.dfl-stack > .pg-hero { margin: 0 !important; }
.dfl-back { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; height: 44px; padding: 0 12px 0 6px; border-radius: 12px; color: var(--dfl-num); text-decoration: none; font-size: 16px; }
.dfl-back:hover { background: var(--dfl-inset); }
.dfl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; line-height: 18px; white-space: nowrap; }
.dfl-chip-glass { background: rgba(255,255,255,.14); color: #fff; }
.dfl-chip-muted { background: var(--dfl-inset); color: var(--dfl-muted); }
.dfl-chip-paid { background: var(--dfl-paid-chip); color: var(--dfl-paid); }
/* 목록: 최근 분배 */
.dfl-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 20px 32px; padding: 28px 30px;
  border-radius: 24px; background: var(--dfl-hero); color: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.04), 0 30px 60px -36px rgba(15,23,42,.5); }
.dfl-hero::before, .dfl-stat-hero::before { content: ""; position: absolute; inset: -20% -20%; pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(34,211,238,.3), transparent 32%), radial-gradient(circle at 86% 88%, rgba(59,130,246,.36), transparent 38%),
              radial-gradient(circle at 66% 8%, rgba(168,85,247,.22), transparent 30%); }
.dfl-hero > *, .dfl-stat-hero > * { position: relative; }
.dfl-hero-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dfl-hero-copy); }
.dfl-hero-amount { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.dfl-big { font-size: 48px; font-weight: 900; letter-spacing: -.04em; color: #fff; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dfl-big-unit { font-size: 16px; font-weight: 800; color: var(--dfl-cyan); }
.dfl-hero-meta { margin: 8px 0 0; font-size: 14px; color: var(--dfl-hero-copy); }
.dfl-hero-side { display: flex; flex-direction: column; gap: 12px; }
.dfl-my { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.dfl-my-label { font-size: 13px; color: var(--dfl-hero-copy); }
.dfl-my-amount { font-size: 22px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.dfl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 16px; text-decoration: none; }
.dfl-btn-light { background: #fff; color: #0d1b31; }
.dfl-btn-light:hover { background: #f1f5f9; }
.dfl-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dfl-section-head h2 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: -.02em; color: var(--dfl-ink); }
.dfl-count { font-size: 14px; font-weight: 700; color: var(--dfl-muted); }
.dfl-hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dfl-hist { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--dfl-card); border: 1px solid var(--dfl-line);
  box-shadow: var(--dfl-shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; animation: dflIn .4s ease-out both; }
.dfl-hist:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(37,99,235,.2), 0 16px 30px -20px rgba(15,23,42,.45); }
@keyframes dflIn { from { opacity: 0; transform: translateY(6px); } }
.dfl-hist-range { font-size: 13px; font-weight: 700; color: var(--dfl-muted); font-variant-numeric: tabular-nums; }
.dfl-hist-title { font-size: 16px; font-weight: 800; color: var(--dfl-ink); }
.dfl-hist-amount { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--dfl-ink); font-variant-numeric: tabular-nums; }
.dfl-hist-amount small { font-size: 14px; font-weight: 700; color: var(--dfl-amt-unit); }
.dfl-hist-meta { font-size: 13px; color: var(--dfl-muted); line-height: 1.45; }
.dfl-hist-go { display: inline-flex; align-items: center; gap: 2px; align-self: flex-end; margin-top: auto; font-size: 13px; font-weight: 800; color: var(--dfl-accent); }
.dfl-hist-go svg { width: 14px; height: 14px; }
/* 상세 */
.dfl-callout-row { display: flex; gap: 10px; }
.dfl-period-callout { display: inline-flex; align-items: center; gap: 11px; padding: 9px 14px 9px 10px; border-radius: 13px; background: var(--dfl-card);
  border: 1px solid color-mix(in srgb, var(--dfl-accent) 22%, transparent); }
.dfl-period-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--dfl-accent) 10%, var(--dfl-card)); color: var(--dfl-accent); }
.dfl-period-icon svg { width: 16px; height: 16px; }
.dfl-period-copy { display: flex; flex-direction: column; }
.dfl-period-copy span { font-size: 12px; font-weight: 700; color: var(--dfl-muted); }
.dfl-period-copy strong { font-size: 13.5px; font-weight: 800; color: var(--dfl-ink); }
.dfl-stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.dfl-stat { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--dfl-card); border: 1px solid var(--dfl-line); box-shadow: var(--dfl-shadow); }
.dfl-stat-hero { position: relative; overflow: hidden; background: var(--dfl-hero); border-color: transparent; color: #fff; }
.dfl-stat-hero .dfl-hero-amount { margin-top: 0; }
.dfl-stat-hero .dfl-big { font-size: 40px; }
.dfl-stat-label { font-size: 13px; font-weight: 800; color: var(--dfl-muted); }
.dfl-stat-hero .dfl-stat-label { color: var(--dfl-hero-copy); }
.dfl-stat-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--dfl-hero-copy); }
.dfl-ringwrap { display: flex; align-items: center; gap: 18px; }
.dfl-ring { position: relative; display: grid; place-items: center; width: 88px; height: 88px; }
.dfl-ring svg { position: absolute; inset: 0; width: 88px; height: 88px; transform: rotate(-90deg); stroke: none; }
.dfl-ring-fill { transition: stroke-dashoffset .8s ease-out; }
.dfl-ring-num { position: relative; display: flex; align-items: baseline; gap: 1px; }
.dfl-ring-num b { font-size: 22px; font-weight: 900; color: var(--dfl-ink); }
.dfl-ring-num small { font-size: 11px; font-weight: 800; color: var(--dfl-muted); }
.dfl-ring-copy b { display: block; font-size: 22px; font-weight: 900; color: var(--dfl-ink); }
.dfl-ring-copy small { font-size: 13px; color: var(--dfl-muted); }
.dfl-method-text { font-size: 16px; font-weight: 900; color: var(--dfl-ink); line-height: 1.4; }
.dfl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dfl-card { padding: 18px 20px; border-radius: 18px; background: var(--dfl-card); border: 1px solid var(--dfl-line); box-shadow: var(--dfl-shadow); }
.dfl-my-card { border-color: var(--dfl-accent); }
.dfl-my-card.is-out { border-color: var(--dfl-line); }
.dfl-row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dfl-card-title { display: block; font-size: 15px; font-weight: 800; color: var(--dfl-ink); }
.dfl-card-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--dfl-muted); }
.dfl-my-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dfl-my-card-amount { font-size: 26px; font-weight: 900; color: var(--dfl-ink); text-align: right; font-variant-numeric: tabular-nums; }
.dfl-unit { font-size: 13px; font-weight: 700; color: var(--dfl-muted); }
.dfl-listcard { overflow: hidden; border-radius: 24px; background: var(--dfl-card); border: 1px solid var(--dfl-line); box-shadow: var(--dfl-shadow); }
.dfl-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
.dfl-seg { display: grid; grid-template-columns: repeat(3, auto); padding: 4px; border-radius: 15px; background: var(--dfl-inset); border: 1px solid var(--dfl-line); }
.dfl-seg button { all: unset; height: 44px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 800; color: var(--dfl-muted); cursor: pointer; text-align: center; white-space: nowrap; }
.dfl-seg button.is-on { background: var(--dfl-card) !important; color: var(--dfl-ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.dfl-seg button:not(.is-on):hover { color: var(--dfl-ink); background: transparent !important; }
.dfl-toolbar-line { display: flex; gap: 8px; }
.dfl-input-box { display: flex; flex: 1; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 16px; border-radius: 14px; background: var(--dfl-card);
  border: 1px solid var(--dfl-line); color: var(--dfl-muted); margin: 0; }
.dfl-bare { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; height: auto !important; box-shadow: none !important; font-size: 15px; color: var(--dfl-ink); outline: none; margin: 0; }
.dfl-thead, .dfl-mrow { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); align-items: center; gap: 12px; padding: 0 20px; }
.dfl-thead { height: 44px; background: var(--dfl-inset); font-size: 12px; font-weight: 800; color: var(--dfl-muted); }
.dfl-thead span:not(:first-child) { text-align: right; }
.dfl-rows { list-style: none; margin: 0; padding: 0; }
.dfl-mrow { min-height: 68px; border-top: 1px solid var(--dfl-line); }
.dfl-rows .dfl-mrow:first-child { border-top: 0; }
.dfl-mrow[hidden] { display: none; }
.dfl-mrow.is-paid { background: var(--dfl-paid-row); }
.dfl-mrow.is-me { box-shadow: inset 3px 0 0 var(--dfl-accent); }
.dfl-mrow.is-out { opacity: .72; }
.dfl-mname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dfl-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; font-size: 14px; font-weight: 900; }
.dfl-mname-copy { display: flex; flex-direction: column; min-width: 0; }
.dfl-mname-copy strong { font-size: 15px; font-weight: 800; color: var(--dfl-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfl-mname-copy small { font-size: 12px; color: var(--dfl-muted); }
.dfl-nums { display: contents; }
.dfl-num { font-size: 14px; color: var(--dfl-num); text-align: right; font-variant-numeric: tabular-nums; }
.dfl-num-label { display: none; }
.dfl-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dfl-amt span { font-size: 16px; font-weight: 900; color: var(--dfl-ink); font-variant-numeric: tabular-nums; }
.dfl-amt small { font-size: 12px; font-weight: 700; color: var(--dfl-muted); }
.dfl-empty { padding: 28px; text-align: center; color: var(--dfl-muted); }
.dfl-out-toggle { padding: 12px; text-align: center; border-top: 1px solid var(--dfl-line); }
.dfl-link { all: unset; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--dfl-accent); cursor: pointer; font-size: 16px; }
.dfl-link:hover { background: var(--dfl-inset) !important; }
.dfl-foot { margin: -10px 4px 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--dfl-muted); }
@media (max-width: 1100px) { .dfl-stats { grid-template-columns: 1fr 1fr; } .dfl-stat-hero { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .dfl-hero { grid-template-columns: 1fr; padding: 22px; }
  .dfl-big { font-size: 40px; }
  .dfl-stats { grid-template-columns: 1fr; }
  .dfl-toolbar { grid-template-columns: 1fr; }
  .dfl-thead { display: none; }
  .dfl-mrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name amt" "nums nums"; padding: 14px 16px; gap: 8px 12px; }
  .dfl-mname { grid-area: name; } .dfl-amt { grid-area: amt; }
  .dfl-nums { display: flex; flex-wrap: wrap; grid-area: nums; gap: 4px 12px; }
  .dfl-num { font-size: 12px; text-align: left; }
  .dfl-num-label { display: inline; margin-right: 4px; color: var(--dfl-muted); }
  .dfl-my-card { flex-direction: column; align-items: flex-start; }
  .dfl-my-right { align-items: flex-start; }
}

/* ======================================================================
   통장 현황 상단 요약 (원본 mbx-kpi)
   ====================================================================== */
:root, [data-theme="light"] {
  --mbx-card: #ffffff; --mbx-bd: #e5e9f0; --mbx-ink: #0f172a; --mbx-muted: #6b7280; --mbx-icon-bg: #f8fafc;
  --mbx-ft-bg: #f1f6fe; --mbx-ft-bd: #d4e3fd; --mbx-ft: #2d60b5; --mbx-ft-icon: #3b82f6; --mbx-ft-icon-bg: #ffffff;
  --mbx-pos: #1f7a55; --mbx-pos-bg: #edf6f1; --mbx-neg: #b23c55; --mbx-neg-bg: #fbf0f2;
}
[data-theme="dark"] {
  --mbx-card: #1d2027; --mbx-bd: #2d323c; --mbx-ink: #f6f7fb; --mbx-muted: #abb1bc; --mbx-icon-bg: #171a20;
  --mbx-ft-bg: #2a3345; --mbx-ft-bd: #394968; --mbx-ft: #adc9ff; --mbx-ft-icon: #7aa8ff; --mbx-ft-icon-bg: #1d2027;
  --mbx-pos: #74c9a0; --mbx-pos-bg: #1b2a24; --mbx-neg: #ee98aa; --mbx-neg-bg: #2c1f24;
}
[data-theme="pink"] {
  --mbx-bd: #ebd5de; --mbx-ink: #291820; --mbx-muted: #7f626d; --mbx-icon-bg: #fef7f8;
  --mbx-ft-bg: #fdf1f4; --mbx-ft-bd: #fad2db; --mbx-ft: #a1294b; --mbx-ft-icon: #e6325b;
}
.mbx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mbx-kpi { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--mbx-card); border: 1px solid var(--mbx-bd); }
.mbx-kpi p { margin: 0; }
.mbx-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mbx-kpi-label { font-size: 13px; font-weight: 600; color: var(--mbx-muted); }
.mbx-kpi-icon { display: grid; place-items: center; width: 30px; height: 30px; box-sizing: border-box; border-radius: 9px; background: var(--mbx-icon-bg);
  border: 1px solid var(--mbx-bd); color: var(--mbx-muted); }
.mbx-kpi-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mbx-kpi-value { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--mbx-ink); font-variant-numeric: tabular-nums; }
.mbx-kpi-sub { font-size: 12px; color: var(--mbx-muted); }
.mbx-kpi.is-featured { background: var(--mbx-ft-bg); border-color: var(--mbx-ft-bd); }
.mbx-kpi.is-featured .mbx-kpi-label { font-weight: 700; color: var(--mbx-ft); }
.mbx-kpi.is-featured .mbx-kpi-value { color: var(--mbx-ft); }
.mbx-kpi-icon.is-brand { background: var(--mbx-ft-icon-bg); border-color: var(--mbx-ft-bd); color: var(--mbx-ft-icon); }
.mbx-kpi-icon.is-pos { background: var(--mbx-pos-bg); border-color: transparent; color: var(--mbx-pos); }
.mbx-kpi-icon.is-neg { background: var(--mbx-neg-bg); border-color: transparent; color: var(--mbx-neg); }
.mbx-kpi-value.is-pos { color: var(--mbx-pos); }
.mbx-kpi-value.is-neg { color: var(--mbx-neg); }
@media (max-width: 900px) { .mbx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================================================================
   전투력 조회 표 — 참여율 조회 표와 같은 글자 크기·색으로 통일
   ====================================================================== */
.pw-tbl { font-size: 14px; background: var(--tb-bg); }
.pw-tbl th { font-size: 14px !important; font-weight: 700 !important; color: var(--tb-strong) !important; letter-spacing: -.012em !important;
  padding: 8px !important; background: var(--tb-bg) !important; border-bottom: 1px solid var(--tb-head-line); line-height: 20px; }
.pw-tbl td { padding: 8px !important; font-size: 14px; font-weight: 400 !important; color: var(--tb-plain); line-height: 20px;
  border-bottom: 1px solid var(--tb-line); background: var(--tb-bg); }
.pw-tbl tr:hover td { background: var(--tb-hover) !important; }
.pw-tbl td.pw-nick span { font-weight: 500; color: var(--tb-strong); }
.pw-tbl td.pw-nick .me { color: var(--me) !important; font-weight: 700; }
.pw-tbl td.pw-power { font-weight: 700 !important; color: var(--tb-comp); }
.pw-tbl .pw-val { font-variant-numeric: tabular-nums; }
.pw-tbl .pw-none { font-size: 14px; color: var(--tb-faint); }
.pw-tbl .badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px !important; border-radius: 9999px !important;
  font-size: 12px !important; font-weight: 500 !important; line-height: 16px; border: 0 !important; margin: 0; }
.pw-tbl .badge.b-div:not([style]) { background: #3b82f6; color: #fff; }
.pw-tbl .badge.b-class:not([style]) { background: var(--g-none-bg); color: var(--g-none); }

/* 전투력 조회 표 — 원본처럼 칸마다 세로·가로 줄이 있는 표 형식 */
.pw-tbl-wrap { max-height: calc(100vh - 200px); overflow: auto !important; border: 1px solid var(--pw-line); border-radius: 14px; background: var(--tb-bg); }
.pw-tbl { border-collapse: separate !important; border-spacing: 0; width: 100%; margin: 0; }
.pw-tbl th, .pw-tbl td { border-top: 0 !important; border-left: 0 !important; border-right: 1px solid var(--pw-line) !important; border-bottom: 1px solid var(--pw-line) !important;
  padding: 8px 10px !important; text-align: center !important; min-width: 96px; }
.pw-tbl tr > :last-child { border-right: 0 !important; }
.pw-tbl tr:last-child td { border-bottom: 0 !important; }
.pw-tbl th { position: sticky; top: 0; z-index: 3; background: var(--pw-head-bg) !important; white-space: nowrap; }
.pw-tbl td:first-child, .pw-tbl th:first-child { position: sticky; left: 0; z-index: 2; min-width: 120px; }
.pw-tbl th:first-child { z-index: 4; }
.pw-tbl td:first-child { background: var(--tb-bg); }
.pw-tbl tr:hover td { background: var(--pw-hover) !important; }
.pw-tbl tr:hover td:first-child { background: color-mix(in srgb, var(--tb-bg) 92%, #3b82f6) !important; }
.pw-tbl tr.mine td { background: color-mix(in srgb, var(--tb-bg) 92%, #f59e0b); }
.auc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.auc-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- 진행중 경매: 은은한 깜박임 ---------- */
.auc-live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.auc-blink-btn { all: unset; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface) !important; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.auc-blink-btn:hover { color: var(--text); background: var(--subtle) !important; }
.auc-blink-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.auc-blink-btn[aria-pressed="true"] .auc-blink-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.auc-live { position: relative; border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--border)) !important; }
.auc-live-tag { position: absolute; top: -9px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px;
  background: #f59e0b; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.auc-live-tag i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
/* 켜짐: 테두리 빛이 천천히 밝아졌다 어두워짐 (2.6초, 약하게) */
.auc-blink-on .auc-live { animation: aucGlow 2.6s ease-in-out infinite; }
.auc-blink-on .auc-live-tag i { animation: aucDot 1.3s ease-in-out infinite; }
@keyframes aucGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0), var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05)); }
  50%      { box-shadow: 0 0 0 4px rgba(245,158,11,.16), 0 0 18px rgba(245,158,11,.22); }
}
@keyframes aucDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
[data-theme="pink"] .auc-live { border-color: color-mix(in srgb, #e11d48 40%, var(--border)) !important; }
[data-theme="pink"] .auc-live-tag { background: #e11d48; }
[data-theme="pink"] .auc-blink-on .auc-live { animation-name: aucGlowPink; }
@keyframes aucGlowPink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
  50%      { box-shadow: 0 0 0 4px rgba(225,29,72,.14), 0 0 18px rgba(225,29,72,.18); }
}
.auc-live { overflow: visible !important; margin-top: 14px; }

/* ======================================================================
   새 분배금 계산 (원본과 같은 단계별 화면)
   ====================================================================== */
:root, [data-theme="light"] {
  --sw-ink: #0f172a; --sw-muted: #64748b; --sw-line: #e2e8f0; --sw-soft: #f1f5f9; --sw-card: #ffffff; --sw-accent: #2563eb; --sw-accent-soft: #eef2ff;
  --sw-purple: #7c3aed; --sw-ok: #059669; --sw-ok-soft: #ecfdf5; --sw-bad: #be123c; --sw-bad-soft: #fff1f2; --sw-warn: #fff7ed; --sw-warn-ink: #9a3412;
}
[data-theme="dark"] {
  --sw-ink: #eceff5; --sw-muted: #aab1bd; --sw-line: #343a45; --sw-soft: #23272f; --sw-card: #1d2027; --sw-accent: #60a5fa; --sw-accent-soft: rgba(59,130,246,.14);
  --sw-ok: #34d399; --sw-ok-soft: rgba(16,185,129,.14); --sw-bad: #fb7185; --sw-bad-soft: rgba(244,63,94,.14); --sw-warn: rgba(249,115,22,.12); --sw-warn-ink: #fdba74;
}
[data-theme="pink"] { --sw-accent: #e11d48; --sw-accent-soft: #fff0f4; --sw-line: #f1c7d1; --sw-soft: #fdf2f5; }
.sw { max-width: 1200px; margin: 0 auto; color: var(--sw-ink); }
.sw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sw-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-card); margin-bottom: 22px; }
.sw-top > b { font-size: 15px; white-space: nowrap; }
.sw-top-step { font-size: 13px; font-weight: 700; color: var(--sw-accent); white-space: nowrap; }
.sw-top-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--sw-soft); overflow: hidden; }
.sw-top-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sw-accent); transition: width .3s; }
.sw-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.sw-btn-ghost { border: 1px solid var(--sw-line); background: var(--sw-card) !important; color: var(--sw-muted) !important; }
.sw-btn-ghost:hover { color: var(--sw-ink) !important; background: var(--sw-soft) !important; }
.sw-btn-primary { min-width: 140px; background: var(--sw-accent) !important; color: #fff !important; }
.sw-btn:disabled { opacity: .45; cursor: not-allowed; }
.sw-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sw-rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; }
.sw-rail-item { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; padding: 8px 6px; border-radius: 12px; cursor: pointer; background: transparent !important; }
.sw-rail-item:hover { background: var(--sw-soft) !important; }
.sw-rail-no { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--sw-line); font-size: 13px; font-weight: 700; color: var(--sw-muted); background: var(--sw-card); }
.sw-rail-no svg { width: 15px; height: 15px; }
.sw-rail-copy { display: flex; flex-direction: column; min-width: 0; }
.sw-rail-copy b { font-size: 14px; font-weight: 700; color: var(--sw-ink); }
.sw-rail-copy small { font-size: 12px; color: var(--sw-muted); line-height: 1.4; }
.sw-rail-item.is-on .sw-rail-no { background: var(--sw-accent); border-color: var(--sw-accent); color: #fff; }
.sw-rail-item.is-on b, .sw-rail-item.is-on small { color: var(--sw-accent); }
.sw-rail-item.is-done .sw-rail-no { background: var(--sw-accent-soft); border-color: transparent; color: transparent; position: relative; }
.sw-rail-item.is-done .sw-rail-no::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--sw-accent); font-size: 14px; }
.sw-main { min-width: 0; }
.sw-panel h2 { margin: 4px 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--sw-ink); }
.sw-kicker { font-size: 13px; font-weight: 800; color: var(--sw-accent); letter-spacing: .02em; }
.sw-desc { margin: 0 0 18px; font-size: 15px; color: var(--sw-muted); }
.sw-info { padding: 14px 16px; border-radius: 14px; background: var(--sw-accent-soft); color: var(--sw-ink); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.sw-info a { color: var(--sw-accent); font-weight: 700; }
.sw-periods { display: flex; flex-direction: column; gap: 10px; }
.sw-period, .sw-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--sw-line); border-radius: 16px; background: var(--sw-card); cursor: pointer; margin: 0; }
.sw-period input, .sw-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sw-period.on, .sw-opt:has(input:checked) { border-color: var(--sw-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-accent) 14%, transparent); }
.sw-period.is-used { opacity: .5; cursor: not-allowed; }
.sw-period-ico, .sw-opt-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sw-soft); color: var(--sw-accent); flex: 0 0 auto; }
.sw-opt-ico.is-blue { background: var(--sw-accent); color: #fff; }
.sw-period-copy { display: flex; flex-direction: column; flex: 1; }
.sw-period-copy b { font-size: 16px; font-weight: 800; }
.sw-period-copy small { font-size: 13px; color: var(--sw-muted); }
.sw-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sw-line); flex: 0 0 auto; margin-left: auto; }
.sw-period.on .sw-radio, .sw-opt:has(input:checked) .sw-radio { border: 6px solid var(--sw-accent); }
.sw-amount { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1.5px solid var(--sw-line); border-radius: 18px; background: var(--sw-card); }
.sw-amount:focus-within { border-color: var(--sw-accent); }
.sw-amount-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #ecfeff; color: #0e7490; }
.sw-amount label { flex: 1; margin: 0; display: flex; flex-direction: column; }
.sw-amount small { font-size: 13px; color: var(--sw-muted); }
.sw-amount input { all: unset; width: 100%; text-align: right; font-size: 40px; font-weight: 800; color: var(--sw-ink); font-variant-numeric: tabular-nums; }
.sw-amount-unit { align-self: flex-start; font-size: 16px; color: var(--sw-muted); }
.sw-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sw-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--sw-line); border-radius: 999px;
  background: var(--sw-card) !important; color: var(--sw-ink); font-size: 14px; cursor: pointer; white-space: nowrap; }
.sw-chip:hover { background: var(--sw-soft) !important; }
.sw-chip.on { background: var(--sw-accent) !important; border-color: var(--sw-accent); color: #fff; }
.sw-chip.is-accent { color: var(--sw-ok); border-color: color-mix(in srgb, var(--sw-ok) 40%, var(--sw-line)); }
.sw-card { padding: 18px 20px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-card); margin-bottom: 14px; }
.sw-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sw-card-head b { display: block; font-size: 16px; font-weight: 800; }
.sw-card-head small { display: block; font-size: 13px; color: var(--sw-muted); margin-top: 2px; }
.sw-card-body { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--sw-line); }
.sw-switch { all: unset; position: relative; flex: 0 0 auto; width: 54px; height: 32px; border-radius: 99px; background: #cbd5e1 !important; cursor: pointer; transition: background .15s; }
.sw-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.sw-switch[aria-pressed="true"] { background: var(--sw-accent) !important; }
.sw-switch[aria-pressed="true"]::after { transform: translateX(22px); }
.sw-stepper { display: inline-flex; align-items: center; height: 46px; border-radius: 12px; background: var(--sw-soft); overflow: hidden; }
.sw-stepper button { all: unset; width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; color: var(--sw-ink); cursor: pointer; background: transparent !important; }
.sw-stepper button:hover { background: color-mix(in srgb, var(--sw-ink) 6%, transparent) !important; }
.sw-stepper input { all: unset; width: 110px; text-align: center; font-size: 17px; font-weight: 700; color: var(--sw-ink); }
.sw-unit { font-size: 14px; color: var(--sw-muted); }
.sw-note { font-size: 14px; color: var(--sw-muted); margin: 6px 0 0; }
.sw-note b { color: var(--sw-ink); }
.sw-choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sw-choice2 .sw-opt { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; min-height: 150px; }
.sw-choice2 .sw-opt b { font-size: 18px; font-weight: 800; margin-top: 10px; }
.sw-choice2 .sw-opt small { font-size: 13px; color: var(--sw-muted); line-height: 1.5; }
.sw-choice2 .sw-radio { position: absolute; top: 18px; right: 18px; }
.sw-choice2.is-small .sw-opt { min-height: 0; padding: 14px 16px; }
.sw-choice2.is-small .sw-opt b { margin-top: 0; font-size: 15px; }
.sw-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.sw-divs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sw-divchk { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--sw-line); border-radius: 12px; background: var(--sw-card); cursor: pointer; margin: 0; }
.sw-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 16px; background: var(--sw-soft); border: 1px solid var(--sw-line); }
.sw-seg button { all: unset; height: 46px; text-align: center; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--sw-muted); cursor: pointer; background: transparent !important; }
.sw-seg button.on { background: var(--sw-card) !important; color: var(--sw-ink); font-weight: 800; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
#swMethodDesc { margin: 12px 0 14px; }
.sw-sum100 b { display: inline !important; font-size: 13px !important; }
.sw-ratio { display: flex; gap: 3px; height: 46px; margin: 14px 0 18px; border-radius: 10px; overflow: hidden; }
.sw-ratio span { display: grid; place-items: center; min-width: 0; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; transition: flex .2s; }
#swRatioP { background: #2563eb; } #swRatioC { background: #7c3aed; }
.sw-slider { display: grid; grid-template-columns: 10px 80px 1fr 56px; align-items: center; gap: 10px; margin-bottom: 12px; }
.sw-slider i { width: 8px; height: 8px; border-radius: 50%; } .dot-p { background: #2563eb; } .dot-c { background: #7c3aed; }
.sw-slider span { font-size: 14px; font-weight: 600; }
.sw-slider b { text-align: right; font-size: 20px; font-weight: 800; } .sw-slider b small { font-size: 12px; color: var(--sw-muted); }
.sw-slider input { width: 100%; accent-color: #2563eb; } .sw-slider:nth-of-type(2) input { accent-color: #7c3aed; }
.sw-cut.is-off .sw-track, .sw-cut.is-off .sw-cut-ctl .sw-stepper { opacity: .45; }
.sw-track { position: relative; height: 34px; margin: 26px 6px 10px; }
.sw-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 99px; background: var(--sw-soft); }
.sw-track-fail { position: absolute; left: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 99px; background: color-mix(in srgb, var(--sw-bad) 45%, transparent); }
.sw-dot { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--sw-ok); }
.sw-dot.is-fail { background: var(--sw-bad); }
.sw-track-avg { position: absolute; top: 4px; bottom: 4px; width: 1.5px; background: var(--sw-muted); }
.sw-track-cut { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--sw-bad); }
.sw-track-cut em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; padding: 1px 7px; border-radius: 99px; background: var(--sw-bad); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; white-space: nowrap; }
.sw-cut.is-off .sw-track-cut { display: none; }
.sw-mm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-mm div { padding: 10px 12px; border-radius: 12px; background: var(--sw-soft); }
.sw-mm small { display: block; font-size: 12px; color: var(--sw-muted); }
.sw-mm b { font-size: 15px; font-weight: 800; }
.sw-cut-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--sw-line); }
.sw-pass { display: inline-flex; gap: 6px; }
.sw-pass span { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.sw-pass .ok { background: var(--sw-ok-soft); color: var(--sw-ok); } .sw-pass .no { background: var(--sw-bad-soft); color: var(--sw-bad); }
.sw-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border: 1px solid var(--sw-line); border-radius: 14px; background: var(--sw-card); color: var(--sw-muted); margin: 0 0 12px; }
.sw-search input { all: unset; flex: 1; font-size: 15px; color: var(--sw-ink); }
.sw-exchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sw-exchip { all: unset; padding: 7px 12px; border-radius: 99px; background: var(--sw-bad-soft) !important; color: var(--sw-bad); font-size: 14px; font-weight: 700; cursor: pointer; }
.sw-exlist { max-height: 560px; overflow: auto; border: 1px solid var(--sw-line); border-radius: 16px; background: var(--sw-card); }
.sw-exrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--sw-line); cursor: pointer; margin: 0; }
.sw-exrow:first-child { border-top: 0; }
.sw-exrow.is-ex { background: var(--sw-bad-soft); }
.sw-exrow input { width: 20px; height: 20px; accent-color: var(--sw-bad); margin: 0; }
.sw-exav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sw-accent); color: #fff; font-weight: 800; font-size: 14px; }
.sw-excopy { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sw-excopy b { font-size: 15px; } .sw-excopy small { font-size: 12px; color: var(--sw-muted); }
.sw-exrow > b { font-size: 15px; font-variant-numeric: tabular-nums; }
.sw-tag { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--sw-soft); color: var(--sw-muted); }
.sw-tag.is-cut { background: var(--sw-warn); color: var(--sw-warn-ink); } .sw-tag.is-ex { background: transparent; color: var(--sw-bad); }
.sw-sumtbl { border: 1px solid var(--sw-line); border-radius: 16px; background: var(--sw-card); margin-bottom: 18px; }
.sw-sumrow { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--sw-line); }
.sw-sumrow:first-child { border-top: 0; }
.sw-sumrow span { font-size: 13px; color: var(--sw-muted); } .sw-sumrow b { font-size: 15px; font-weight: 700; }
.sw-link { all: unset; color: var(--sw-accent); font-size: 14px; font-weight: 600; cursor: pointer; text-align: right; background: transparent !important; }
.sw-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--sw-muted); }
.sw-input { width: 100%; box-sizing: border-box; height: 50px; margin-bottom: 16px; }
.sw-bars, .sw-prev-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sw-bar { display: grid; grid-template-columns: 90px 1fr 64px; align-items: center; gap: 10px; font-size: 14px; }
.sw-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sw-bar i { height: 6px; border-radius: 99px; background: var(--sw-soft); overflow: hidden; }
.sw-bar em { display: block; height: 100%; border-radius: 99px; background: var(--sw-accent); }
.sw-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.sw-warn { padding: 14px 16px; border-radius: 14px; background: var(--sw-warn); color: var(--sw-warn-ink); font-size: 13.5px; line-height: 1.55; }
.sw-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-card); position: sticky; bottom: 12px; }
/* 미리보기 */
.sw-prev { position: sticky; top: 16px; padding: 22px; border-radius: 24px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 85% 90%, rgba(59,130,246,.35), transparent 45%), radial-gradient(circle at 10% 0%, rgba(34,211,238,.18), transparent 40%), #0d1b31;
  box-shadow: 0 30px 60px -36px rgba(15,23,42,.6); }
.sw-prev-kicker { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #a5f3fc; }
.sw-prev-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.sw-prev-amt { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 16px; }
.sw-prev-amt b { font-size: 36px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sw-prev-amt span { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.78); }
.sw-prev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw-prev-grid div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.sw-prev-grid small { display: block; font-size: 12px; color: rgba(255,255,255,.7); }
.sw-prev-grid b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sw-prev-sub { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.75); }
.sw-prev .sw-bar { grid-template-columns: 70px 1fr 56px; font-size: 13px; }
.sw-prev .sw-bar i { background: rgba(255,255,255,.12); } .sw-prev .sw-bar em { background: linear-gradient(90deg, #38bdf8, #22d3ee); }
.sw-prev-empty { font-size: 13px; color: var(--sw-muted); }
.sw-prev .sw-prev-empty { color: rgba(255,255,255,.6); }
@media (max-width: 1100px) { .sw-grid { grid-template-columns: 170px minmax(0, 1fr); } .sw-prev { grid-column: 1 / -1; position: static; order: -1; } }
@media (max-width: 760px) {
  .sw-grid { grid-template-columns: 1fr; }
  .sw-rail { flex-direction: row; overflow-x: auto; position: static; }
  .sw-rail-item { flex: 0 0 auto; } .sw-rail-copy small { display: none; }
  .sw-choice2 { grid-template-columns: 1fr; } .sw-panel h2 { font-size: 22px; } .sw-amount input { font-size: 30px; }
  .sw-top { flex-wrap: wrap; } .sw-top-bar { order: 3; flex-basis: 100%; }
}
.sw-choice2.is-small { margin-bottom: 14px; }
@media (max-width: 760px) {
  .sw-prev { padding: 14px 16px; border-radius: 18px; }
  .sw-prev-amt { margin: 4px 0 10px; } .sw-prev-amt b { font-size: 26px; }
  .sw-prev-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .sw-prev-grid div { padding: 8px 9px; border-radius: 10px; } .sw-prev-grid small { font-size: 11px; } .sw-prev-grid b { font-size: 14px; }
  .sw-prev-sub, .sw-prev .sw-prev-bars, .sw-prev .sw-prev-empty { display: none; }
  .sw-top-step { flex: 1; } .sw-top .sw-btn { height: 38px; padding: 0 12px; font-size: 14px; }
  .sw-period-copy b { font-size: 14px; }
  .sw-sumrow { grid-template-columns: 84px 1fr 40px; padding: 12px 14px; }
}
.sw ~ h2 + .card .tbl, .sw-recent .tbl { min-width: 640px; }
@media (max-width: 760px) { .sw-rail-item { align-items: center; } }
/* 분배 기간 상태 표시 */
.sw-period-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
.sw-period-tags + .sw-radio { margin-left: 4px; }
.sw-ptag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sw-ptag.is-recent { background: var(--sw-accent-soft); color: var(--sw-accent); }
.sw-ptag.is-done { background: var(--sw-ok-soft); color: var(--sw-ok); }
.sw-ptag.is-open { background: var(--sw-bad-soft); color: var(--sw-bad); }
.sw-period.is-used { opacity: 1; }
.sw-period.is-used .sw-period-ico, .sw-period.is-used .sw-period-copy, .sw-period.is-used .sw-radio { opacity: .5; }
@media (max-width: 760px) { .sw-period { flex-wrap: wrap; } .sw-period-tags { order: 3; width: 100%; justify-content: flex-start; padding-left: 58px; } }
.hist-menu .hist-tags { display: flex !important; flex-wrap: wrap; gap: 5px; margin: 3px 0 2px; }
.hist-menu .hist-tags .sw-ptag { font-style: normal; height: 21px; padding: 0 8px; font-size: 11px; }
/* 아직 안 간 단계는 비활성 */
.sw-rail-item.is-locked { cursor: default; }
.sw-rail-item.is-locked:hover { background: transparent !important; }
.sw-rail-item.is-locked .sw-rail-no { color: var(--sw-muted); background: var(--sw-card); border-color: var(--sw-line); }
.sw-rail-item.is-locked .sw-rail-copy b { color: var(--sw-muted); font-weight: 600; }
.sw-rail-item.is-locked .sw-rail-copy small { display: none; }
.sw-rail-item.is-locked { align-items: center; }
/* 분배 기록 있는 기간도 고를 수 있음 (고르면 분배기준 수정으로) */
.sw-period.is-used { cursor: pointer; }
.sw-period.is-used .sw-period-ico, .sw-period.is-used .sw-period-copy, .sw-period.is-used .sw-radio { opacity: 1; }
.sw-ptag.is-done { background: #fff7ed; color: #c2410c; }
[data-theme="dark"] .sw-ptag.is-done { background: rgba(249,115,22,.14); color: #fdba74; }
/* 분배금 상세: 관리자 버튼 · 입금 알약 · 도구 · 분배확인 */
.dfl-edit-btn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 12px; background: color-mix(in srgb, var(--dfl-accent) 12%, var(--dfl-card));
  color: var(--dfl-accent); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dfl-edit-btn:hover { background: color-mix(in srgb, var(--dfl-accent) 18%, var(--dfl-card)); }
.dfl-edit-btn svg, .dfl-del-btn svg, .dfl-paid-pill svg, .dfl-tool svg, .dfl-allok svg, .dfl-okpill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dfl-del-form { display: inline-flex; margin: 0 0 0 8px; }
.dfl-del-btn { all: unset; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--dfl-line); background: var(--dfl-card) !important; color: #e11d48; cursor: pointer; box-sizing: border-box; }
.dfl-del-btn:hover { background: #fff1f2 !important; border-color: #fecdd3; }
.pg-hero-right:has(.dfl-edit-btn) { display: flex; align-items: center; }
.dfl-callout-row { align-items: center; flex-wrap: wrap; }
.dfl-paid-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: 13.5px; font-weight: 800; }
[data-theme="dark"] .dfl-paid-pill { background: rgba(16,185,129,.14); color: #6ee7b7; }
.dfl-toolbar-line { align-items: center; }
.dfl-tools { display: inline-flex; align-items: stretch; gap: 2px; padding: 3px; border-radius: 14px; background: var(--dfl-inset); border: 1px solid var(--dfl-line); }
.dfl-tool { all: unset; position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; height: 40px; padding: 0 8px;
  border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--dfl-muted); cursor: pointer; text-decoration: none; box-sizing: border-box; }
.dfl-tool:hover { background: var(--dfl-card) !important; color: var(--dfl-ink); }
.dfl-tool.is-xlsx { color: #047857; }
.dfl-dot { position: absolute; top: 5px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--dfl-accent); }
.dfl-colwrap { position: relative; }
.dfl-colmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 170px; padding: 10px; border-radius: 14px; background: var(--dfl-card); border: 1px solid var(--dfl-line);
  box-shadow: 0 18px 40px -18px rgba(15,23,42,.45); display: flex; flex-direction: column; gap: 2px; }
.dfl-colmenu[hidden] { display: none; }
.dfl-colmenu b { padding: 2px 8px 6px; font-size: 12px; color: var(--dfl-muted); }
.dfl-colmenu label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 14px; color: var(--dfl-ink); cursor: pointer; margin: 0; }
.dfl-colmenu label:hover { background: var(--dfl-inset); }
.dfl-allok { all: unset; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 14px; background: color-mix(in srgb, var(--dfl-accent) 8%, var(--dfl-card)) !important;
  color: var(--dfl-accent); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; box-sizing: border-box; }
.dfl-allok:disabled { opacity: .55; cursor: default; }
@media (min-width: 861px) { .dfl-thead, .dfl-mrow { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr) minmax(110px, .9fr); } }
.dfl-ok { display: flex; justify-content: flex-end; }
.dfl-okpill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: color-mix(in srgb, #10b981 12%, var(--dfl-card)); color: #047857; font-size: 14px; font-weight: 800; white-space: nowrap; }
.dfl-okpill svg { fill: #059669; stroke: #fff; }
[data-theme="dark"] .dfl-okpill { color: #6ee7b7; }
.dfl-outtag { font-size: 12px; font-weight: 700; color: var(--dfl-muted); }
.dfl-listcard.hide-rate [data-c="rate"], .dfl-listcard.hide-score [data-c="score"], .dfl-listcard.hide-power [data-c="power"], .dfl-listcard.hide-split [data-c="split"] { visibility: hidden; }
@media (max-width: 860px) {
  .dfl-mrow { grid-template-areas: "name amt" "nums nums" "ok ok"; }
  .dfl-ok { grid-area: ok; justify-content: flex-start; } .dfl-okpill { height: 30px; font-size: 13px; }
  .dfl-toolbar-line { flex-wrap: wrap; } .dfl-toolbar-search { flex-basis: 100%; }
  .dfl-listcard.hide-rate [data-c="rate"], .dfl-listcard.hide-score [data-c="score"], .dfl-listcard.hide-power [data-c="power"], .dfl-listcard.hide-split [data-c="split"] { display: none; }
}
/* ---- 엑셀 내보내기 확인 창 (원본과 같은 모양) ---- */
.xm-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xm-back[hidden] { display: none; }
.xm { width: min(488px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; background: var(--surface, #fff); color: var(--text, #0f172a);
  box-shadow: 0 30px 70px -20px rgba(15,23,42,.45); animation: xmIn .18s ease-out; }
@keyframes xmIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.xm svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.xm-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: color-mix(in srgb, #10b981 8%, var(--surface, #fff)); border-bottom: 1px solid var(--border, #e2e8f0); }
.xm-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, #10b981 16%, var(--surface, #fff)); color: #047857; }
.xm-head b { flex: 1; font-size: 17px; font-weight: 800; }
.xm-x { all: unset; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; color: var(--muted, #64748b); }
.xm-x:hover { background: var(--subtle, #f1f5f9); }
.xm-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.xm-desc { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted, #475569); }
.xm-desc b { color: var(--text, #0f172a); }
.xm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xm-tiles div { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border, #e2e8f0); background: var(--subtle, #f8fafc); }
.xm-tiles small { display: block; font-size: 11.5px; color: var(--muted, #64748b); margin-bottom: 4px; }
.xm-tiles b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.xm-tiles b.is-sm { font-size: 12.5px; font-weight: 800; line-height: 1.45; display: block; }
.xm-tiles i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted, #64748b); margin-left: 1px; }
.xm-box { padding: 13px 15px; border-radius: 12px; background: color-mix(in srgb, #10b981 7%, var(--surface, #fff)); border: 1px solid color-mix(in srgb, #10b981 35%, var(--border, #e2e8f0)); }
.xm-box > b { display: block; font-size: 13px; font-weight: 800; color: #047857; margin-bottom: 6px; }
.xm-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xm-box li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.55; color: var(--text, #334155); }
.xm-box li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 9px; height: 5px; border-left: 2px solid #059669; border-bottom: 2px solid #059669; transform: rotate(-45deg); }
.xm-file { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--subtle, #f8fafc); font-size: 12.5px; color: var(--muted, #64748b); }
.xm-file svg { width: 15px; height: 15px; }
.xm-file b { color: var(--text, #0f172a); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.xm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border, #e2e8f0); }
.xm-cancel, .xm-go { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 11px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.xm-cancel { border: 1px solid var(--border, #e2e8f0); background: var(--surface, #fff) !important; color: var(--text, #0f172a); }
.xm-cancel:hover { background: var(--subtle, #f1f5f9) !important; }
.xm-go { background: #059669 !important; color: #fff !important; text-decoration: none; }
.xm-go:hover { background: #047857 !important; }
[data-theme="dark"] .xm-ico, [data-theme="dark"] .xm-box > b { color: #6ee7b7; }
@media (max-width: 480px) { .xm-tiles { grid-template-columns: 1fr 1fr; } .xm-tiles div:first-child { grid-column: 1 / -1; } }
.xm-tiles.is-wide { grid-template-columns: 1fr; }
.xm-tiles.is-wide b.is-sm { font-size: 14px; }
.st-hero-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
/* ======================================================================
   내 정보 확인 (원본과 같은 모양)
   ====================================================================== */
:root, [data-theme="light"] { --cmi-card: rgba(255,255,255,.96); --cmi-line: #dfe7f1; --cmi-ink: #0f172a; --cmi-muted: #64748b; --cmi-soft: #f8fafc; --cmi-item: rgba(255,255,255,.9); }
[data-theme="dark"] { --cmi-card: #1d2027; --cmi-line: #343a45; --cmi-ink: #eceff5; --cmi-muted: #aab1bd; --cmi-soft: #23272f; --cmi-item: #23272f; }
[data-theme="pink"] { --cmi-line: #f1d5dd; }
.cmi-page { display: flex; flex-direction: column; gap: 20px; }
.cmi-page > .pg-hero { margin-bottom: 0; }
.cmi-card { position: relative; padding: 16px; border-radius: 28px; background: var(--cmi-card); border: 1px solid var(--cmi-line); box-shadow: 0 14px 34px rgba(15,23,42,.07); color: var(--cmi-ink); }
.cmi-title { font-size: 18px; font-weight: 600; line-height: 28px; margin-bottom: 8px; }
.cmi-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cmi-title-row .cmi-title { margin: 0; }
.cmi-more { font-size: 13px; color: var(--cmi-muted); text-decoration: none; }
.cmi-more:hover { color: var(--cmi-ink); text-decoration: underline; }
.cmi-profile { padding: 20px 16px; border-radius: 23px; text-align: center; border: 1px solid #e7edf5;
  background: radial-gradient(at 50% -45%, rgba(59,130,246,.07), transparent 56%), linear-gradient(120deg, #f8fbff, #fff 52%, #f7f8ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.cmi-name { font-size: 30px; font-weight: 700; line-height: 36px; color: #2563eb; margin-bottom: 4px; }
.cmi-sub { font-size: 14px; color: var(--cmi-muted); }
.cmi-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; text-align: center; }
.cmi-metric { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 128px; padding: 16px; border-radius: 21.6px;
  --c: 59,130,246; border: 1px solid rgba(var(--c), .22); background: linear-gradient(145deg, rgba(var(--c), .082), rgba(255,255,255,.94) 64%); box-shadow: 0 9px 21px rgba(15,23,42,.06); }
.cmi-metric::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: .48;
  background: linear-gradient(90deg, transparent 4%, rgba(var(--c), .58) 36%, rgba(var(--c), .22) 72%, transparent 96%); }
.cmi-metric > * { position: relative; }
.cmi-metric.is-rate { --c: 59,130,246; --t: #1d4ed8; --v: #2563eb; border-color: #bfdbfe; background: #eff6ff; border-radius: 16px; }
.cmi-metric.is-contrib { --c: 16,185,129; --t: #10b981; --v: #11a174; }
.cmi-metric.is-score { --c: 71,85,105; --t: #334155; --v: #334155; }
.cmi-metric.is-overall { --c: 99,102,241; --t: #4338ca; --v: #4f46e5; }
.cmi-metric.is-rate::before { display: none; }
.cmi-metric.is-contrib::after { content: ""; position: absolute; top: -48px; right: -36px; width: 109px; height: 82px; background: rgba(16,185,129,.063); border-radius: 58% 42% 53% 47% / 44% 59% 41% 56%; transform: rotate(8deg); }
.cmi-metric.is-score::after { content: ""; position: absolute; top: 16px; right: 14px; width: 46px; height: 72px; border: 11px solid rgba(71,85,105,.043); border-radius: 49% 51% 45% 55% / 56% 43% 57% 44%; transform: rotate(19deg); }
.cmi-metric.is-overall::after { content: ""; position: absolute; left: -32px; bottom: -29px; width: 112px; height: 56px; background: rgba(99,102,241,.063); border-radius: 62% 38% 56% 44% / 52% 61% 39% 48%; transform: rotate(15deg); }
.cmi-m-label { font-size: 15px; font-weight: 700; color: var(--t); min-height: 24px; margin-bottom: 4px; }
.cmi-m-value { font-size: 27px; font-weight: 800; line-height: 1.2; color: var(--v); font-variant-numeric: tabular-nums; }
.cmi-m-sub { margin-top: 4px; font-size: 12px; color: var(--v); opacity: .8; }
.cmi-calc { display: grid; gap: 8px; margin-top: 24px; padding: 16px; border-radius: 20px; border: 1px solid #e3e9f2; font-size: 12px; line-height: 16px; color: var(--cmi-muted);
  background: linear-gradient(115deg, rgba(239,246,255,.76), rgba(255,255,255,.9) 46%, rgba(236,253,245,.68)); }
.cmi-calc-title { font-size: 13px; font-weight: 700; line-height: 20px; color: #1e293b; }
.cmi-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmi-calc-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 11.5px 13.6px 11.5px 16px; border-radius: 14.4px; background: rgba(255,255,255,.62);
  --c: 59,130,246; --v: #1d4ed8; border: 1px solid rgba(var(--c), .13); box-shadow: inset 2.88px 0 0 rgba(var(--c), .66); color: #475569; }
.cmi-calc-card.is-contrib { --c: 16,185,129; --v: #047857; }
.cmi-calc-main > b { display: block; font-size: 12px; font-weight: 700; color: var(--v); }
.cmi-calc-f { display: flex; align-items: center; gap: 6px; margin-top: 4.8px; font-size: 11.2px; font-weight: 500; }
.cmi-frac { display: inline-flex; flex-direction: column; align-items: center; }
.cmi-frac span:first-child { padding: 0 4px 1.6px; border-bottom: 1px solid #94a3b8; }
.cmi-frac span:last-child { padding: 1.6px 4px 0; }
.cmi-times { font-weight: 600; }
.cmi-calc-base { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; padding-left: 13.6px; border-left: 1px solid rgba(var(--c), .18); }
.cmi-calc-base small { font-size: 10.5px; font-weight: 600; line-height: 14px; color: #64748b; }
.cmi-calc-base b { font-size: 20px; font-weight: 800; line-height: 24px; color: var(--v); }
.cmi-calc-base b i { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 1px; }
.cmi-note { padding: 4px 6.4px; border-radius: 14.4px; line-height: 18.4px; }
.cmi-note.is-hl { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; line-height: 16px; }
.cmi-note.is-line { border-top: 1px solid #e2e8f0; border-radius: 0; padding-top: 8px; }
.cmi-note b { font-weight: 600; color: #334155; }
.cmi-boss { margin-top: 24px; padding: 16px; border-radius: 23px; border: 1px solid var(--cmi-line); background: linear-gradient(145deg, rgba(248,250,252,.98), rgba(255,255,255,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.82); }
.cmi-boss-title { font-size: 16.8px; font-weight: 800; line-height: 25px; color: #172033; margin-bottom: 12px; }
.cmi-boss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.cmi-boss-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--cmi-muted); }
.cmi-boss-head b { color: var(--cmi-ink); }
.cmi-bar { height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(148,163,184,.22); overflow: hidden; }
.cmi-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.cmi-empty { font-size: 13px; color: var(--cmi-muted); }
.cmi-bank-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmi-bank-card, .cmi-log { padding: 16px; border-radius: 18.4px; border: 1px solid rgba(148,163,184,.24); box-shadow: 0 0 0 1px rgba(15,23,42,.035), 0 20px 46px -28px rgba(15,23,42,.34); }
.cmi-bank-card.is-bal { background: rgba(238,242,255,.8); --t: #4338ca; --v: #3730a3; }
.cmi-bank-card.is-in  { background: rgba(236,253,245,.8); --t: #047857; --v: #065f46; }
.cmi-bank-card.is-out { background: rgba(255,241,242,.8); --t: #be123c; --v: #9f1239; }
.cmi-b-label { font-size: 12px; font-weight: 600; line-height: 16px; color: var(--t); }
.cmi-b-value { margin-top: 4px; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--v); font-variant-numeric: tabular-nums; }
.cmi-bank-logs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cmi-log.is-in { background: rgba(236,253,245,.4); --t: #047857; --b: #d1fae5; }
.cmi-log.is-out { background: rgba(255,241,242,.4); --t: #be123c; --b: #ffe4e6; }
.cmi-log-title { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--t); margin-bottom: 12px; }
.cmi-log-list { display: flex; flex-direction: column; gap: 8px; max-height: 224px; overflow-y: auto; padding-right: 4px; }
.cmi-log-item { padding: 8px 12px; border-radius: 14.4px; background: var(--cmi-item); border: 1px solid var(--b); }
.cmi-log-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 16.5px; color: var(--cmi-muted); }
.cmi-log-memo { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.cmi-log-amt { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--t); font-variant-numeric: tabular-nums; }
.cmi-log-empty { padding: 24px 0; text-align: center; font-size: 12px; color: var(--cmi-muted); }
.cmi-foot { text-align: center; font-size: 13px; color: var(--cmi-muted); margin: 0; }
/* 다크 */
[data-theme="dark"] .cmi-profile { background: linear-gradient(120deg, #1f2430, #1d2027 52%, #22223a); border-color: var(--cmi-line); }
[data-theme="dark"] .cmi-name { color: #60a5fa; }
[data-theme="dark"] .cmi-metric { background: linear-gradient(145deg, rgba(var(--c), .16), rgba(29,32,39,.94) 64%); }
[data-theme="dark"] .cmi-metric.is-rate { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); --t: #93c5fd; --v: #60a5fa; }
[data-theme="dark"] .cmi-metric.is-contrib { --t: #34d399; --v: #34d399; }
[data-theme="dark"] .cmi-metric.is-score { --t: #cbd5e1; --v: #e2e8f0; }
[data-theme="dark"] .cmi-metric.is-overall { --t: #a5b4fc; --v: #a5b4fc; }
[data-theme="dark"] .cmi-calc { background: linear-gradient(115deg, rgba(59,130,246,.1), #1d2027 46%, rgba(16,185,129,.08)); border-color: var(--cmi-line); }
[data-theme="dark"] .cmi-calc-title, [data-theme="dark"] .cmi-boss-title { color: var(--cmi-ink); }
[data-theme="dark"] .cmi-calc-card { background: rgba(255,255,255,.04); color: var(--cmi-muted); --v: #93c5fd; }
[data-theme="dark"] .cmi-calc-card.is-contrib { --v: #6ee7b7; }
[data-theme="dark"] .cmi-calc-base small { color: var(--cmi-muted); }
[data-theme="dark"] .cmi-note.is-hl { background: rgba(99,102,241,.14); border-color: rgba(99,102,241,.35); color: #c7d2fe; }
[data-theme="dark"] .cmi-note.is-line { border-color: var(--cmi-line); }
[data-theme="dark"] .cmi-note b { color: var(--cmi-ink); }
[data-theme="dark"] .cmi-boss { background: var(--cmi-soft); }
[data-theme="dark"] .cmi-bank-card.is-bal { background: rgba(99,102,241,.14); --t: #a5b4fc; --v: #c7d2fe; }
[data-theme="dark"] .cmi-bank-card.is-in, [data-theme="dark"] .cmi-log.is-in { background: rgba(16,185,129,.1); --t: #6ee7b7; --v: #a7f3d0; --b: rgba(16,185,129,.25); }
[data-theme="dark"] .cmi-bank-card.is-out, [data-theme="dark"] .cmi-log.is-out { background: rgba(244,63,94,.1); --t: #fda4af; --v: #fecdd3; --b: rgba(244,63,94,.25); }
[data-theme="dark"] .cmi-bank-card, [data-theme="dark"] .cmi-log { border-color: var(--cmi-line); }
@media (max-width: 860px) {
  .cmi-metrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cmi-calc-grid, .cmi-bank-logs, .cmi-boss-grid { grid-template-columns: 1fr; }
  .cmi-bank-sum { grid-template-columns: 1fr 1fr; } .cmi-bank-card.is-bal { grid-column: 1 / -1; }
  .cmi-name { font-size: 24px; }
}
[data-theme="dark"] .cmi-profile, [data-theme="dark"] .cmi-boss { box-shadow: none; }
/* ======================================================================
   주간 요약 (원본 gx 디자인)
   ====================================================================== */
.gx-view { --gx-panel: var(--surface, #fff); --gx-line: var(--border, #e3e6eb); --gx-ink: var(--text, #0f172a); --gx-muted: var(--muted, #5b6474);
  --gx-row: color-mix(in srgb, var(--gx-panel) 94%, #64748b); --gx-brand: #2563eb; --gx-brand-soft: color-mix(in srgb, var(--gx-brand) 12%, var(--gx-panel));
  --gx-warn: #be123c; --gx-ok: #15803d; --gx-ease: cubic-bezier(.2,.8,.2,1); --gx-spring: cubic-bezier(.3,1.35,.5,1);
  color: var(--gx-ink); word-break: keep-all; display: flex; flex-direction: column; gap: 14px; }
[data-theme="dark"] .gx-view { --gx-row: color-mix(in srgb, var(--gx-panel) 90%, #fff); --gx-brand: #60a5fa; --gx-warn: #fda4af; --gx-ok: #4ade80; }
[data-theme="pink"] .gx-view { --gx-brand: #e11d48; }
.gx-view .pg-hero { margin-bottom: 0; }
.gx-view h2 { margin: 0; } .gx-view p { margin: 0; }
.gx-view svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gx-muted { color: var(--gx-muted); font-size: 12.5px; line-height: 1.6; }
.gx-card { min-width: 0; padding: 18px; border-radius: 18px; border: 1px solid var(--gx-line); background: var(--gx-panel); }
.gx-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.gx-card-h h2 { font-size: 16px; font-weight: 800; }
.gx-card-h p { color: var(--gx-muted); font-size: 12.5px; }
.gx-period { display: flex; flex-direction: column; gap: 14px; }
.gx-period-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.gx-seg { position: relative; display: inline-grid; grid-template-columns: repeat(var(--gx-n, 2), minmax(0, 1fr)); padding: 4px; border-radius: 14px; border: 1px solid var(--gx-line); background: var(--gx-row); align-self: flex-start; }
.gx-seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--gx-n, 2)); border-radius: 10px; background: var(--gx-panel);
  box-shadow: 0 1px 3px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.06); transition: transform .42s var(--gx-spring); }
.gx-seg a { position: relative; z-index: 1; display: grid; place-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--gx-muted); white-space: nowrap; text-decoration: none; }
.gx-seg a[aria-checked="true"] { color: var(--gx-ink); }
.gx-step-nav { display: flex; align-items: center; gap: 6px; }
.gx-step-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--gx-line); background: var(--gx-panel); color: var(--gx-ink); text-decoration: none; transition: transform .2s var(--gx-spring), border-color .2s var(--gx-ease); }
.gx-step-btn:hover:not(.is-off) { border-color: color-mix(in srgb, var(--gx-brand) 40%, var(--gx-line)); }
.gx-step-btn:active:not(.is-off) { transform: scale(.92); }
.gx-step-btn.is-off { opacity: .4; pointer-events: none; }
.gx-step-nav > div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 170px; }
.gx-step-nav b { font-size: 16px; }
.gx-step-nav span { color: var(--gx-muted); font-size: 12px; }
.gx-period-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.gx-period-chips a { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 112px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--gx-line); background: var(--gx-panel); color: var(--gx-ink); text-decoration: none;
  transition: transform .25s var(--gx-spring), border-color .2s var(--gx-ease), background-color .2s var(--gx-ease); }
.gx-period-chips a:hover { transform: translateY(-2px); }
.gx-period-chips a[aria-pressed="true"] { border-color: var(--gx-brand); background: var(--gx-brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gx-brand) 14%, transparent); }
.gx-period-chips b { font-size: 13.5px; }
.gx-period-chips small { color: var(--gx-muted); font-size: 11.5px; }
.gx-weekly-body { display: flex; flex-direction: column; gap: 14px; animation: gx-swap .45s var(--gx-ease); }
@keyframes gx-swap { from { opacity: .2; transform: translateY(10px); } }
@keyframes gx-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes gx-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes gx-grow { from { transform: scaleY(0); } }
@keyframes gx-growx { from { transform: scaleX(0); } }
.gx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.gx-kpis > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--gx-line); background: var(--gx-panel); animation: gx-rise .5s var(--gx-ease) backwards; }
.gx-kpis > div > span { color: var(--gx-muted); font-size: 13px; font-weight: 700; }
.gx-kpis strong { font-size: 26px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gx-view em.is-up, .gx-view em.is-down, .gx-view em.is-same { font-size: 12.5px; font-style: normal; font-weight: 700; }
.gx-view em.is-up { color: var(--gx-ok); } .gx-view em.is-down { color: var(--gx-warn); } .gx-view em.is-same { color: var(--gx-muted); }
.gx-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.gx-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 10px; height: 150px; padding-top: 8px; border-bottom: 1px solid var(--gx-line); }
.gx-bars > span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.gx-bars b { color: var(--gx-muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-bars i { display: block; width: 100%; max-width: 46px; min-height: 4px; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--gx-brand) 28%, var(--gx-row));
  transform-origin: center bottom; animation: gx-grow .6s var(--gx-ease) backwards; animation-delay: calc(var(--gx-i, 0) * 55ms + .15s); }
.gx-bars .is-top i { background: var(--gx-brand); }
.gx-axis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 6px; color: var(--gx-muted); text-align: center; font-size: 12px; font-weight: 700; }
.gx-me { border-color: color-mix(in srgb, var(--gx-brand) 35%, var(--gx-line)); background: linear-gradient(180deg, var(--gx-brand-soft), var(--gx-panel) 70%); }
.gx-me-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gx-me-top div { display: flex; flex-direction: column; }
.gx-me-top b { font-size: 15.5px; }
.gx-me-top div > span { color: var(--gx-muted); font-size: 12.5px; }
.gx-mc-av { display: grid; place-items: center; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 18px; background: var(--gx-brand); color: #fff; font-size: 24px; font-weight: 800; animation: gx-pop .6s var(--gx-spring) .1s backwards; }
.gx-mc-av.is-small { width: 42px; height: 42px; border-radius: 13px; font-size: 17px; }
.gx-me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.gx-me-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--gx-line); background: var(--gx-panel); }
.gx-me-grid > div > span { color: var(--gx-muted); font-size: 12px; font-weight: 700; }
.gx-me-grid strong { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gx-me-grid small { color: var(--gx-muted); font-size: 12px; }
.gx-times { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gx-times li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--gx-row); animation: gx-rise .5s var(--gx-ease) backwards; animation-delay: calc(var(--gx-i, 0) * 70ms + .15s); }
.gx-times li > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--gx-panel); color: var(--gx-muted); font-size: 13px; font-weight: 800; }
.gx-times li.is-first > span { background: var(--gx-brand); color: #fff; }
.gx-times b { flex: 1; font-size: 15px; }
.gx-times em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-boss-list { display: flex; flex-direction: column; gap: 10px; }
.gx-boss-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 52px; align-items: center; gap: 12px; font-size: 14px; }
.gx-boss-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.gx-boss-row em { text-align: right; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-track { display: block; flex: 1; height: 8px; border-radius: 999px; background: var(--gx-row); overflow: hidden; }
.gx-track.is-thick { height: 12px; }
.gx-track i { display: block; height: 100%; border-radius: 999px; background: var(--gx-brand); transform-origin: 0 center; animation: gx-growx .6s var(--gx-ease) backwards; animation-delay: calc(var(--gx-i, 0) * 50ms + .15s); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-panel); color: var(--gx-ink); font-size: 13px; font-weight: 700; }
.gx-trend { display: grid; grid-template-columns: repeat(var(--gx-n, 8), minmax(0, 1fr)); align-items: end; gap: 10px; height: 150px; }
.gx-trend a { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; text-decoration: none; }
.gx-trend b { color: var(--gx-muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-trend i { display: block; width: 100%; max-width: 52px; min-height: 3px; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--gx-brand) 24%, var(--gx-row));
  transform-origin: center bottom; animation: gx-grow .6s var(--gx-ease) backwards; animation-delay: calc(var(--gx-i, 0) * 45ms + .15s); transition: background-color .25s var(--gx-ease); }
.gx-trend a.is-live i { background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--gx-panel) 45%, transparent) 6px 12px); }
.gx-trend a[aria-pressed="true"] i { background-color: var(--gx-brand); }
.gx-trend a[aria-pressed="true"] b { color: var(--gx-ink); }
.gx-trend a:hover i { background-color: color-mix(in srgb, var(--gx-brand) 45%, var(--gx-row)); }
.gx-trend a[aria-pressed="true"]:hover i { background-color: var(--gx-brand); }
.gx-trend-axis { display: grid; grid-template-columns: repeat(var(--gx-n, 8), minmax(0, 1fr)); gap: 10px; margin-top: 6px; color: var(--gx-muted); text-align: center; font-size: 11.5px; font-weight: 700; }
@media (max-width: 900px) { .gx-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .gx-boss-row { grid-template-columns: 80px minmax(0, 1fr) 52px; gap: 8px; }
  .gx-kpis strong { font-size: 21px; }
  .gx-bars, .gx-axis, .gx-trend, .gx-trend-axis { gap: 5px; }
  .gx-trend { height: 120px; } .gx-trend-axis { font-size: 10px; }
  .gx-step-nav { justify-content: space-between; width: 100%; } .gx-step-nav > div { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .gx-view, .gx-view * { animation: none !important; transition: none !important; } }
