/* HDC ESG 공시 허브 — 디자인 시스템 "Aurora Ledger"
   컨셉: 깊은 숲(에메랄드)에서 하늘(블루)로 번지는 오로라 = 지속가능 전환. 데이터는 차분하게, 첫 화면은 강렬하게.
   색 규칙(검증 스크립트 통과):
   - 영역(경제·사회·환경·거버넌스) = 범주형 1~4번 색, 항상 글자 라벨과 함께 표시
   - 준비율 = 청록 한 가지 색의 5단계(밝은 화면: 밝음→진함, 어두운 화면: 어두움→밝음)
   - 오류·주의·완료 = 상태색, 아이콘+글자와 함께 표시 */

:root {
  color-scheme: light;
  --bg: #f2f5f4;
  --bg-glow-1: rgba(18, 165, 148, .16);
  --bg-glow-2: rgba(42, 120, 214, .12);
  --surface: #ffffff;
  --surface-2: #f3f7f6;
  --surface-glass: rgba(255, 255, 255, .72);
  --line: rgba(15, 40, 35, .10);
  --line-strong: rgba(15, 40, 35, .18);
  --text: #0e1a17;
  --text-2: #3e4c48;
  --muted: #6a7773;
  --brand: #0e7a6a;
  --brand-2: #12a594;
  --brand-ink: #ffffff;
  --hero-a: #04231f;
  --hero-b: #0a4a40;
  --hero-c: #0e7a6a;
  --hero-d: #1f5fb8;
  --hero-text: #f1fbf8;
  --hero-muted: rgba(241, 251, 248, .72);
  /* 영역 색 (범주형 1~4) */
  --p-econ: #2a78d6;
  --p-soc: #eb6834;
  --p-env: #1baf7a;
  --p-gov: #eda100;
  /* 준비율 5단계 */
  --heat-1: #5fbfac; --heat-2: #2ea18c; --heat-3: #127e6c; --heat-4: #0b5f53; --heat-5: #073f37;
  --heat-ink-1: #0e1a17; --heat-ink-2: #0e1a17; --heat-ink-3: #ffffff; --heat-ink-4: #ffffff; --heat-ink-5: #ffffff;
  /* 상태 */
  --good: #0a8a3a; --good-soft: #e0f5e8;
  --warn: #8a5a00; --warn-soft: #fff1cf; --warn-mark: #fab219;
  --bad: #c0362f; --bad-soft: #fde7e4;
  --info-soft: #e8f0fb;
  --example: #6250d6; --example-soft: #eeebff;
  --focus: #1d6fe0;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 1px rgba(4, 35, 31, .04), 0 8px 24px rgba(4, 35, 31, .07);
  --shadow-lift: 0 2px 4px rgba(4, 35, 31, .06), 0 16px 40px rgba(4, 35, 31, .12);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #070d0c; --bg-glow-1: rgba(47, 181, 158, .14); --bg-glow-2: rgba(57, 135, 229, .12);
    --surface: #121b19; --surface-2: #182421; --surface-glass: rgba(18, 27, 25, .72);
    --line: rgba(220, 255, 245, .09); --line-strong: rgba(220, 255, 245, .16);
    --text: #e9f1ee; --text-2: #c2cfca; --muted: #8b9a95;
    --brand: #2fb59e; --brand-2: #6ad5c1; --brand-ink: #04231f;
    --hero-a: #020d0b; --hero-b: #06302a; --hero-c: #0b5f53; --hero-d: #1c4f9a;
    --p-econ: #3987e5; --p-soc: #d95926; --p-env: #199e70; --p-gov: #c98500;
    --heat-1: #0e6b5d; --heat-2: #16917f; --heat-3: #2fb59e; --heat-4: #6ad5c1; --heat-5: #b0efe2;
    --heat-ink-1: #ffffff; --heat-ink-2: #ffffff; --heat-ink-3: #04231f; --heat-ink-4: #04231f; --heat-ink-5: #04231f;
    --good: #4fd08a; --good-soft: #10301f; --warn: #f2c46b; --warn-soft: #33270d; --bad: #ff8a7f; --bad-soft: #3a1714;
    --info-soft: #172536; --example: #b3a9ff; --example-soft: #221d3d; --focus: #7fb0ff;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 44px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d0c; --bg-glow-1: rgba(47, 181, 158, .14); --bg-glow-2: rgba(57, 135, 229, .12);
  --surface: #121b19; --surface-2: #182421; --surface-glass: rgba(18, 27, 25, .72);
  --line: rgba(220, 255, 245, .09); --line-strong: rgba(220, 255, 245, .16);
  --text: #e9f1ee; --text-2: #c2cfca; --muted: #8b9a95;
  --brand: #2fb59e; --brand-2: #6ad5c1; --brand-ink: #04231f;
  --hero-a: #020d0b; --hero-b: #06302a; --hero-c: #0b5f53; --hero-d: #1c4f9a;
  --p-econ: #3987e5; --p-soc: #d95926; --p-env: #199e70; --p-gov: #c98500;
  --heat-1: #0e6b5d; --heat-2: #16917f; --heat-3: #2fb59e; --heat-4: #6ad5c1; --heat-5: #b0efe2;
  --heat-ink-1: #ffffff; --heat-ink-2: #ffffff; --heat-ink-3: #04231f; --heat-ink-4: #04231f; --heat-ink-5: #04231f;
  --good: #4fd08a; --good-soft: #10301f; --warn: #f2c46b; --warn-soft: #33270d; --bad: #ff8a7f; --bad-soft: #3a1714;
  --info-soft: #172536; --example: #b3a9ff; --example-soft: #221d3d; --focus: #7fb0ff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 44px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  background:
    radial-gradient(900px 500px at 8% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px; }
.skip:focus { left: 8px; z-index: 30; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .rise:nth-child(2) { animation-delay: .05s; } .rise:nth-child(3) { animation-delay: .1s; } .rise:nth-child(4) { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .ring-fg { transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1); }
}

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: var(--surface-glass); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .02em;
  background: conic-gradient(from 210deg, #1baf7a, #12a594, #2a78d6, #6250d6, #1baf7a);
  box-shadow: 0 4px 14px rgba(18, 165, 148, .35);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.cycle { color: var(--muted); font-size: 13px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dev-user { display: flex; align-items: center; gap: 6px; }
.dev-tag { font-size: 12px; color: var(--example); background: var(--example-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.dev-user select { min-height: 44px; max-width: 62vw; }
.icon-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font-size: 18px; }
.example-banner {
  display: flex; align-items: center; gap: 8px; color: var(--example); background: var(--example-soft);
  padding: 8px 16px; font-size: 13px; border-bottom: 1px solid var(--line);
}
.example-banner::before { content: "●"; font-size: 10px; }

main { max-width: 1280px; margin: 0 auto; padding: 16px 16px 48px; }
main:focus { outline: none; }
.loading { color: var(--muted); }
h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* ---------- 공통 컨트롤 ---------- */
input[type=text], input[type=date], select, textarea {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-s); padding: 8px 12px; min-height: 44px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); outline: none; }
textarea { min-height: 96px; resize: vertical; }
.btn {
  min-height: 44px; padding: 8px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--text);
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0e7a6a, #12a594 55%, #2a78d6); box-shadow: 0 6px 18px rgba(18, 165, 148, .3); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 12px; grid-template-columns: 1fr; }
.mt { margin-top: 12px; } .mt-s { margin-top: 4px; } p.mt { margin-bottom: 0; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* 배지 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.error { background: var(--bad-soft); color: var(--bad); }
.badge.error::before { content: "✕"; font-size: 10px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.warn::before { content: "!"; font-weight: 900; }
.badge.ok { background: var(--good-soft); color: var(--good); }
.badge.ok::before { content: "✓"; }
.badge.info { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge.example { background: var(--example-soft); color: var(--example); }
.badge.calc { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-draft, .status-returned { background: var(--warn-soft); color: var(--warn); }
.status-validated, .status-requested, .status-manager_approved, .status-submitted { background: var(--info-soft); color: var(--p-econ); }
.status-confirmed { background: var(--good-soft); color: var(--good); }

/* 카드 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.glass { background: var(--surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 24px 20px; color: var(--hero-text);
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(98, 80, 214, .45), transparent 60%),
    radial-gradient(500px 280px at 10% 110%, rgba(27, 175, 122, .5), transparent 60%),
    linear-gradient(130deg, var(--hero-a) 0%, var(--hero-b) 38%, var(--hero-c) 72%, var(--hero-d) 115%);
  box-shadow: var(--shadow-lift);
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #9be8d8; }
.hero h1 { font-size: 26px; color: #fff; margin-top: 6px; }
.hero p { color: var(--hero-muted); margin: 8px 0 0; }
.hero-metrics { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: stretch; }
.hero-tile {
  border-radius: 16px; padding: 14px 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-tile .lbl { font-size: 12px; color: var(--hero-muted); font-weight: 600; }
.hero-tile .num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
.hero-tile .sub { font-size: 12px; color: var(--hero-muted); }
.dday .num { background: linear-gradient(90deg, #ffffff, #9be8d8 60%, #a9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { width: 112px; height: 112px; flex: none; }
.ring-bg { stroke: rgba(255, 255, 255, .15); }
.ring-tile-text { min-width: 0; }
.ring-tile-text .big { font-size: 15px; font-weight: 800; color: #fff; }
.ring-label { font-size: 26px; font-weight: 800; fill: #fff; }
.ring-sub { font-size: 10px; fill: rgba(241, 251, 248, .72); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }

/* ---------- 결재 파이프라인 ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.stage {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow);
}
.stage .n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stage .t { font-size: 13px; color: var(--text-2); font-weight: 700; }
.stage .who { font-size: 12px; color: var(--muted); min-height: 18px; }
.stage .bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.stage .bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--p-econ)); }
.stage.now { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.stage .idx { position: absolute; right: 12px; top: 10px; font-size: 11px; color: var(--muted); font-weight: 700; }

/* ---------- 준비율 히트맵 ---------- */
.heat { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.heat th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; padding: 4px; }
.heat th.co { text-align: left; color: var(--text); font-size: 13px; width: 34%; }
.heat td { border-radius: 10px; text-align: center; font-weight: 800; font-size: 14px; height: 46px; position: relative; }
.heat td.h1 { background: var(--heat-1); color: var(--heat-ink-1); }
.heat td.h2 { background: var(--heat-2); color: var(--heat-ink-2); }
.heat td.h3 { background: var(--heat-3); color: var(--heat-ink-3); }
.heat td.h4 { background: var(--heat-4); color: var(--heat-ink-4); }
.heat td.h5 { background: var(--heat-5); color: var(--heat-ink-5); }
.heat td.h0 { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); }
.heat td:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.pill-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot-경제 { background: var(--p-econ); } .dot-사회 { background: var(--p-soc); } .dot-환경 { background: var(--p-env); } .dot-거버넌스 { background: var(--p-gov); }
.legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend .sw { width: 22px; height: 12px; border-radius: 4px; display: inline-block; }
.sw.h1 { background: var(--heat-1); } .sw.h2 { background: var(--heat-2); } .sw.h3 { background: var(--heat-3); } .sw.h4 { background: var(--heat-4); } .sw.h5 { background: var(--heat-5); }
.tip {
  position: fixed; z-index: 40; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; padding: 8px 10px;
  border-radius: 10px; box-shadow: var(--shadow-lift); max-width: 240px; line-height: 1.45; opacity: 0; transition: opacity .1s;
}
.tip.show { opacity: 1; }

/* ---------- 회사 카드 ---------- */
.co-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.co-card {
  position: relative; overflow: hidden; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.co-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.co-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--p-env), var(--brand-2), var(--p-econ)); opacity: .9; }
.co-top { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(140deg, #0a4a40, #12a594 60%, #2a78d6);
}
.avatar.a1 { background: linear-gradient(140deg, #3a1d6e, #6250d6 60%, #2a78d6); }
.avatar.a2 { background: linear-gradient(140deg, #5a2a0a, #eb6834 60%, #eda100); }
.avatar.a3 { background: linear-gradient(140deg, #04231f, #1baf7a 60%, #12a594); }
.avatar.a4 { background: linear-gradient(140deg, #0d2b55, #2a78d6 60%, #12a594); }
.co-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.co-sub { font-size: 12px; color: var(--muted); }
.co-score { margin-left: auto; text-align: right; }
.co-score .pct { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.co-score .lbl { font-size: 11px; color: var(--muted); }
.pbars { display: grid; gap: 6px; }
.pbar { display: grid; grid-template-columns: 64px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); }
.pbar .track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.pbar .track { display: block; }
.pbar .fill { display: block; height: 100%; width: 0; border-radius: 4px; }
.fill.p-경제 { background: var(--p-econ); } .fill.p-사회 { background: var(--p-soc); } .fill.p-환경 { background: var(--p-env); } .fill.p-거버넌스 { background: var(--p-gov); }
.pbar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.co-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.depth-tag { font-size: 11px; color: var(--muted); }

details.manage > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 800; }
details.manage > summary::-webkit-details-marker { display: none; }
details.manage > summary::after { content: "＋"; color: var(--brand); font-size: 18px; }
details.manage[open] > summary::after { content: "－"; }
.err-list { margin: 8px 0 0; padding-left: 18px; color: var(--bad); font-size: 13px; }

/* ---------- 회사 상세 ---------- */
.co-hero { display: grid; gap: 16px; grid-template-columns: 1fr; }
.co-hero .ring-wrap { gap: 20px; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1 0 auto; min-width: 72px; display: grid; justify-items: center; gap: 6px; position: relative; font-size: 12px; color: var(--hero-muted); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: rgba(255, 255, 255, .18); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; position: relative; z-index: 1;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.stepper li.done .dot { background: #1baf7a; border-color: #1baf7a; }
.stepper li.done::before, .stepper li.now::before { background: #1baf7a; }
.stepper li.now .dot { background: #fff; color: #0a4a40; box-shadow: 0 0 0 6px rgba(255, 255, 255, .18); }
.stepper li.now { color: #fff; font-weight: 800; }
.stepper li.ret .dot { background: #fab219; border-color: #fab219; color: #1a1300; }

.action-card { display: grid; gap: 10px; }
.toolbar { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 20px 0 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ind-list { display: grid; gap: 10px; }
.ind {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 18px; display: grid; gap: 10px; box-shadow: var(--shadow);
}
.ind::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-strong); }
.ind.c-경제::before { background: var(--p-econ); } .ind.c-사회::before { background: var(--p-soc); } .ind.c-환경::before { background: var(--p-env); } .ind.c-거버넌스::before { background: var(--p-gov); }
.ind.has-error { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 10%, transparent), var(--shadow); }
.ind-path { font-size: 12px; color: var(--muted); }
.ind-title { font-weight: 700; }
.ind-cells { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cell { display: grid; gap: 4px; align-content: start; }
.cell .fy { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.cell .val { font-variant-numeric: tabular-nums; min-height: 44px; display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border-radius: var(--radius-s); font-weight: 600; }
.cell input { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cell input.dirty { border-color: var(--focus); background: var(--info-soft); }
.cell input[aria-invalid="true"] { border-color: var(--bad); }
.cell .flags { display: flex; gap: 4px; flex-wrap: wrap; }
.ind-actions { display: flex; justify-content: flex-end; }
.savebar {
  position: sticky; bottom: 12px; z-index: 6; margin-top: 16px; background: var(--surface-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 16px; display: flex; gap: 8px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lift);
}
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; display: grid; gap: 10px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; font-size: 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.timeline li::before { content: ""; position: absolute; left: -18px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--bg); }

/* 대화상자 */
.dialog { border: none; border-radius: 20px; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift); }
.dialog::backdrop { background: rgba(2, 13, 11, .55); backdrop-filter: blur(3px); }
.dialog-inner { padding: 20px; display: grid; gap: 12px; }
.fy-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; background: var(--surface-2); }
.finding { font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.finding.error { background: var(--bad-soft); color: var(--bad); }
.finding.warning { background: var(--warn-soft); color: var(--warn); }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); z-index: 50; font-weight: 600; box-shadow: var(--shadow-lift); }
.toast.show { opacity: 1; }

/* ---------- 로그인·사용자 관리 ---------- */
.login-hero { min-height: 360px; align-content: center; }
.login-box { display: grid; gap: 4px; align-content: center; }
.btn.kakao { background: #fee500; color: rgba(0, 0, 0, .85); border-color: #fee500; font-size: 16px; min-height: 52px; }
.btn.kakao span { font-size: 10px; }
.me-chip { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.user-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.user-row { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.invite-code-box { border: 1px dashed var(--brand); border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--brand) 8%, transparent); }
.invite-code { font-size: 26px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 6px 0; }

/* ---------- 768px: 2열 ---------- */
@media (min-width: 768px) {
  main { padding: 24px 24px 56px; }
  .hero { padding: 32px; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .hero h1 { font-size: 32px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .co-grid { grid-template-columns: 1fr 1fr; }
  .co-hero { grid-template-columns: 1fr auto; align-items: center; }
  .ind-cells { grid-template-columns: repeat(3, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .user-row { grid-template-columns: 1fr auto; align-items: center; }
}
/* ---------- 1280px: 3열 ---------- */
@media (min-width: 1280px) {
  .pipeline { grid-template-columns: repeat(6, 1fr); }
  .co-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.4fr 1fr; }
  .ind { grid-template-columns: minmax(260px, 2fr) 3fr auto; align-items: center; }
  .toolbar { grid-template-columns: 2fr 1fr auto; align-items: end; }
}
