@charset "UTF-8";
/* Taxlogic Report — 고객용 화면. 밝은 바탕, 큰 숫자, 로직별 대시보드. 직원 워크스페이스(styles.css)와 독립. */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --canvas: #f3f5f8; --surface: #ffffff; --surface-2: #f7f9fb; --line: #e3e7ed; --line-2: #eef1f5;
  --ink: #0f1a2b; --ink-2: #3f4b5e; --muted: #7b8798; --faint: #a7b0bd;
  /* 릭택스 초록(#205c3b, PDF 공통 --wot-brand)을 바탕색으로, 진하게·연하게만 쓴다. 심볼 5색은 강조·차트에만. */
  --brand-900: #0d2a1b; --brand-800: #163f29; --brand-700: #1b4d33; --brand: #205c3b; --brand-600: #27704a; --brand-500: #2f8f5b;
  --brand-400: #4aa876; --brand-200: #bfe0cd; --brand-100: #e1f0e7; --brand-50: #f0f7f3;
  --ric-red: #d80830; --ric-orange: #e87800; --ric-yellow: #f8c800; --ric-green: #38b030; --ric-teal: #20b0a0; --ric-gold: #c9a227;
  --navy: var(--brand); --navy-2: var(--brand-600); --accent: var(--brand-500); --accent-ink: var(--brand); --accent-soft: var(--brand-100);
  --s1: #2f8f5b; --s2: #e0611f; --s3: #1f9c8e; --s4: #c9a227; --gray: #b8c0cc;
  --good: #2f8f5b; --good-text: #1b5e3b; --warn: #f8c800; --serious: #e87800; --critical: #d80830;
  --level-risk: #b4122f; --level-risk-bg: #fde8ec; --level-deadline: #b85d00; --level-deadline-bg: #fdf0e3;
  --level-money: #1b5e3b; --level-money-bg: #e1f0e7; --level-attention: #8a6a00; --level-attention-bg: #fff6d6;
  --level-info: #5b6b82; --level-info-bg: #eef1f5; --level-ok: #157f73; --level-ok-bg: #e3f4f2;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 1px 2px rgba(16, 43, 73, .04), 0 10px 30px -18px rgba(16, 43, 73, .25);
  /* Match rictax.kr: max-w-7xl with px-4 / sm:px-6 / lg:px-8. */
  --max: 1280px;
  --gutter: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: -.01em; font-feature-settings: "ss01"; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #8fc0ff; outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-size: 13.5px; padding: 18px 4px; margin: 0; }

/* ── 부트·워드마크 ─────────────────────────────── */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500; letter-spacing: -.03em; }
.wordmark span { font-size: 20px; color: var(--ink-2); }
.wordmark strong { font-size: 20px; font-weight: 800; color: var(--brand); }
.wordmark .ric { display: inline-flex; align-items: center; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); height: 26px; }
.wordmark .ric img { height: 24px; width: auto; display: block; }

/* ── 로그인 ────────────────────────────────────── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-visual { position: relative; overflow: hidden; background: radial-gradient(1100px 620px at 15% -10%, var(--brand-600) 0%, var(--brand) 42%, var(--brand-900) 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; }
.ric-mark { position: absolute; pointer-events: none; background: #fff; -webkit-mask: url(/report/assets/ric-symbol.svg) no-repeat center / contain; mask: url(/report/assets/ric-symbol.svg) no-repeat center / contain; }
.login-visual .ric-mark { right: -90px; bottom: -40px; width: 560px; height: 430px; opacity: .09; }
.login-visual .wordmark span, .login-visual .wordmark strong { color: #fff; }
.login-visual .wordmark .ric { border-left-color: rgba(255,255,255,.25); }
.login-copy { margin: auto 0; position: relative; z-index: 1; max-width: 520px; }
.login-copy h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; font-weight: 600; letter-spacing: -.035em; margin-bottom: 18px; }
.login-copy h1 em { font-style: normal; color: var(--ric-yellow); }
.login-copy p { color: #cfe3d7; font-size: 15px; line-height: 1.9; max-width: 440px; }
.login-points { display: grid; gap: 10px; margin-top: 28px; }
.login-points li { list-style: none; display: flex; gap: 12px; align-items: center; color: #e4f0e9; font-size: 14px; }
.login-points li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.1); color: var(--ric-yellow); }
.login-foot { position: relative; z-index: 1; font-size: 11.5px; color: #9dc0ab; letter-spacing: .06em; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(380px, 100%); }
.login-card h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 8px; }
.login-card > p { color: var(--muted); font-size: 14px; margin-bottom: 26px; line-height: 1.8; }
.field { display: grid; gap: 7px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field input { font: inherit; font-weight: 500; font-size: 15px; padding: 13px 14px; border: 1px solid #d5dbe4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(47,143,91,.14); outline: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d5dbe4; background: #fff; color: var(--ink-2); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: .15s; min-height: 40px; }
.btn:hover { background: #f4f7fa; border-color: #b9c5d3; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.soft { background: var(--accent-soft); border-color: var(--brand-200); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 6px 10px; min-height: 32px; font-size: 12.5px; border-radius: 8px; }
.btn.full { width: 100%; padding: 13px; font-size: 15px; }
.login-card .btn.full { margin-top: 8px; }
.form-error { color: var(--level-risk); background: var(--level-risk-bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.login-note { margin-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ── 상단 바·레이아웃 ──────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 62px; display: flex; align-items: center; gap: 18px; }
.topbar .wordmark { flex-shrink: 0; }
.refresh-note { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-100); color: var(--brand); font-size: 13px; font-weight: 600; padding: 9px 16px; border-bottom: 1px solid var(--brand-200); }
.client-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.client-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ric-green); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
main { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 64px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ── 홈: 히어로 ────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand) 58%, var(--brand-600) 100%); color: #fff; border-radius: 22px; padding: 34px 36px; box-shadow: var(--shadow); }
.hero .ric-mark { right: -60px; top: -30px; width: 520px; height: 400px; opacity: .085; }
.hero-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; position: relative; z-index: 1; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a9d2b8; margin-bottom: 10px; }
.hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.hero h1 small { display: block; font-size: 14px; font-weight: 500; color: #cfe3d7; letter-spacing: -.01em; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #eaf4ee; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; position: relative; z-index: 1; }
.hero-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; }
.hero-stat small { display: block; font-size: 12px; color: #cfe3d7; margin-bottom: 6px; }
.hero-stat strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hero-stat strong em { font-style: normal; font-size: 13px; font-weight: 500; color: #cfe3d7; margin-left: 4px; }
.hero-stat span { display: block; font-size: 12px; color: #a9d2b8; margin-top: 6px; }

/* ── 보고서 표 ─────────────────────────────────── */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.section-head h2 .count { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.section-head p { font-size: 13px; color: var(--muted); }
.report-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.report-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2.2fr) 150px auto; gap: 18px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); transition: background .12s; }
.report-row:last-child { border-bottom: 0; }
.report-row:hover { background: var(--surface-2); }
.report-list.quiet .report-row { padding: 14px 22px; }
.report-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logic-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); flex-shrink: 0; }
.logic-icon.teal { background: #e3f4f2; color: #157f73; } .logic-icon.purple { background: #fff6d6; color: #8a6a00; } .logic-icon.amber { background: #fdf0e3; color: #b85d00; } .logic-icon.red { background: #fde8ec; color: #b4122f; } .logic-icon.gray { background: #eef1f5; color: #4e5d73; }
.report-name strong { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.report-name small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.report-msg { min-width: 0; }
.report-msg strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.5; letter-spacing: -.012em; }
.report-msg p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-list.quiet .report-msg strong { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.report-meta { display: grid; gap: 6px; justify-items: start; }
.report-meta .amount { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.report-meta .due { font-size: 12.5px; color: var(--level-deadline); font-weight: 600; }
.report-actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: currentColor; font-style: normal; flex-shrink: 0; }
.chip i span { color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.chip.level-risk { background: var(--level-risk-bg); color: var(--level-risk); }
.chip.level-deadline { background: var(--level-deadline-bg); color: var(--level-deadline); }
.chip.level-money { background: var(--level-money-bg); color: var(--level-money); }
.chip.level-attention { background: var(--level-attention-bg); color: var(--level-attention); }
.chip.level-info { background: var(--level-info-bg); color: var(--level-info); }
.chip.level-ok { background: var(--level-ok-bg); color: var(--level-ok); }

/* ── 로직 화면 ─────────────────────────────────── */
.logic-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.logic-head .logic-icon { width: 54px; height: 54px; border-radius: 16px; }
.logic-title { flex: 1; min-width: 240px; }
.logic-title h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.logic-title p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.logic-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.headline { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-s); padding: 16px 20px; margin-bottom: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.headline.level-risk { border-left-color: var(--level-risk); } .headline.level-deadline { border-left-color: var(--level-deadline); } .headline.level-money { border-left-color: var(--level-money); } .headline.level-attention { border-left-color: var(--level-attention); } .headline.level-info { border-left-color: var(--level-info); } .headline.level-ok { border-left-color: var(--level-ok); }
.headline strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.5; }
.headline p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.card strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 4px; line-height: 1.15; overflow-wrap: anywhere; }
.card strong.text { font-size: 20px; }
.card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.card.accent { background: linear-gradient(160deg, var(--brand-800), var(--brand-600)); border-color: transparent; color: #fff; }
.card.accent small, .card.accent span { color: #cfe3d7; }
.card.negative strong { color: var(--level-risk); } .card.positive strong { color: var(--level-ok); }
.delta { font-size: 12px; font-weight: 700; color: var(--muted); }
.delta.good { color: var(--good-text); } .delta.bad { color: var(--level-risk); }
.delta small { font-weight: 500; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 6px; }
.panel-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.panel-head h2 .step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.panel-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.panel-body { padding: 10px 22px 22px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; margin-top: 12px; }
.grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.block { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 14px 16px; background: var(--surface); min-width: 0; }
.block.flat { border: 0; padding: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.block-head h3 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.block-head h3 small { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { background: var(--surface-2); border-radius: var(--radius-s); padding: 12px 14px; min-width: 0; }
.kpi small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; overflow-wrap: anywhere; }
.kpi span, .kpi .sub { display: block; font-size: 11.5px; color: var(--muted); }
.kpi.negative strong { color: var(--level-risk); } .kpi.positive strong { color: var(--level-ok); } .kpi.accent { background: var(--accent-soft); }

/* Monthly dashboards: explicit tabs, with one unframed content section. */
.monthly-dashboard, .monthly-dashboard * { letter-spacing: 0; }
.monthly-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.monthly-tab { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 41px; padding: 6px 14px; border: 1px solid #b7c5bd; border-radius: 8px; background: var(--surface); color: var(--ink-2); text-align: left; font-size: 14px; line-height: 1.25; font-weight: 700; box-shadow: 0 2px 0 #dce4df; transition: background .15s, border-color .15s, box-shadow .15s; }
.monthly-tab:hover { background: var(--brand-50); border-color: var(--brand); box-shadow: 0 2px 0 var(--brand-200); }
.monthly-tab:active { box-shadow: none; }
.monthly-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 0 var(--brand-800); }
.monthly-tab:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; }
.monthly-tab-number { flex: 0 0 20px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; }
.monthly-tab-label { flex: 1; overflow-wrap: anywhere; }
.monthly-tab-mark { display: flex; flex: 0 0 16px; }
.monthly-tabpanel[hidden] { display: none; }
.monthly-tabpanel > .panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.monthly-tabpanel > .panel > .panel-head { padding: 0 0 6px; }
.monthly-tabpanel > .panel > .panel-body { padding: 0; }
.monthly-tabpanel .block, .monthly-tabpanel .kpi { border-radius: 8px; }
@media (max-width: 960px) {
  .monthly-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .monthly-tab { gap: 6px; padding: 4px 10px; min-height: 42px; font-size: 13px; }
  .monthly-tab-number { flex-basis: 16px; font-size: 10px; }
}

/* ── 차트 ──────────────────────────────────────── */
.fig { margin: 8px 0 0; min-width: 0; }
.fig figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.fig figcaption strong { font-size: 13.5px; font-weight: 700; display: block; }
.fig figcaption small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend i.line { height: 2px; width: 16px; border-radius: 1px; }
.legend i.line.dashed { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.chart { width: 100%; min-height: 60px; }
.chart .svg { display: block; width: 100%; height: auto; font-family: var(--font); font-size: 11px; }
.svg text { fill: var(--ink-2); }
.svg .tick { fill: var(--muted); font-variant-numeric: tabular-nums; font-size: 10.5px; }
.svg .label { fill: var(--muted); font-size: 11px; } .svg .label.strong { fill: var(--ink); font-weight: 700; }
.svg .axis-title { fill: var(--muted); font-size: 11px; font-weight: 600; }
.svg .value { fill: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; } .svg .value.muted { fill: var(--muted); font-weight: 500; }
.svg .grid { stroke: var(--line-2); stroke-width: 1; } .svg .zero, .svg .baseline { stroke: #c3c8d1; stroke-width: 1; }
.svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .svg .line.dashed { stroke-dasharray: 5 4; }
.svg .dot { stroke: #fff; stroke-width: 2; }
.svg .ref { stroke-width: 1.5; } .svg .ref.thin { stroke: #4a5565; stroke-width: 1; stroke-dasharray: 4 3; }
.svg .ref-label { font-size: 10.5px; font-weight: 700; fill: #4a5565; }
.svg .track { fill: #eef1f5; } .svg .threshold { stroke: var(--ink); stroke-width: 2; } .svg .marker { stroke: var(--ink); stroke-width: 2; }
.svg .connector { stroke: #c3c8d1; stroke-width: 1; }
.svg .cursor { stroke: #4a5565; stroke-width: 1; stroke-dasharray: 2 3; }
.svg .bar { transition: opacity .1s; } .svg .bar.hover { opacity: .8; }
.svg .slice.hover { opacity: .85; }
.svg.strip .label { font-size: 10px; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut .donut-sub { fill: var(--muted); font-size: 11px; } .donut .donut-value { fill: var(--ink); font-size: 14px; font-weight: 700; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1; min-width: 180px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px 10px; align-items: center; font-size: 12.5px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; }
.donut-legend strong { font-variant-numeric: tabular-nums; } .donut-legend small { grid-column: 2 / 4; color: var(--muted); font-size: 11.5px; margin-top: -4px; }
.fig-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; margin-top: 4px; flex-wrap: wrap; }
.fig-note { font-size: 11.5px; color: var(--muted); flex: 1 1 180px; line-height: 1.5; }
.fig-toggle { margin-left: auto; }
.fig-toggle { border: 0; background: transparent; color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 4px 6px; border-radius: 6px; }
.fig-toggle:hover { background: var(--accent-soft); }
.fig-table { margin-top: 8px; }
.chart-tip { position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none; background: var(--brand-900); color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); min-width: 140px; max-width: 280px; }
.chart-tip[hidden] { display: none; }
.tip-title { font-weight: 700; margin-bottom: 4px; color: #eaf4ee; }
.tip-row { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: center; padding: 2px 0; }
.tip-row i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--c, #a9d2b8); } .tip-row i.none { background: transparent; }
.tip-row strong { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tip-row span { color: #cfe3d7; font-size: 11.5px; text-align: right; }

/* ── 표·목록·메모 ───────────────────────────────── */
.table-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-s); }
table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
caption { text-align: left; padding: 10px 14px 4px; font-size: 12.5px; color: var(--muted); }
th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 11.5px; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td strong { color: var(--ink); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--level-info-bg); color: var(--level-info); white-space: nowrap; }
.pill.good { background: var(--level-ok-bg); color: var(--level-ok); } .pill.bad { background: var(--level-risk-bg); color: var(--level-risk); } .pill.warn { background: var(--level-attention-bg); color: var(--level-attention); } .pill.info { background: var(--accent-soft); color: var(--accent-ink); }
.notes { margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface-2); }
.notes summary { padding: 10px 14px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.notes summary small { color: var(--muted); font-weight: 500; }
.notes ul { margin: 0; padding: 0 16px 12px 30px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; line-height: 1.7; margin: 10px 0; }
.callout.warn { background: var(--level-attention-bg); color: var(--level-attention); } .callout.risk { background: var(--level-risk-bg); color: var(--level-risk); } .callout.ok { background: var(--level-ok-bg); color: var(--level-ok); }
.callout svg { margin-top: 3px; }
.finding-list { display: grid; gap: 10px; }
.finding { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 14px 16px; display: grid; gap: 6px; }
.finding-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.finding-head strong { font-size: 14px; }
.finding p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.finding .todo { font-size: 12.5px; color: var(--ink); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.timeline .date { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.dday { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--level-info-bg); color: var(--level-info); }
.dday.soon { background: var(--level-deadline-bg); color: var(--level-deadline); } .dday.past { background: var(--level-risk-bg); color: var(--level-risk); }
.program { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 16px 18px; display: grid; gap: 8px; }
.program-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.program-head strong { font-size: 14.5px; line-height: 1.5; }
.program dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.program dt { color: var(--muted); } .program dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.program ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.program .links { display: flex; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.disclaimer { margin-top: 28px; padding: 16px 20px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.footer { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--brand-900); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.toast.error { background: #8a2f2f; }
.scroll-x { overflow-x: auto; }

/* ── 반응형 ─────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}
@media (max-width: 960px) {
  .cards, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .grid.even, .grid.three { grid-template-columns: 1fr; }
  .report-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .report-meta { grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; }
  .report-actions { justify-content: flex-start; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-visual { padding: 28px 24px; min-height: 0; }
  .login-visual .login-copy h1 { font-size: 24px; } .login-points, .login-foot { display: none; } .login-visual .ric-mark { width: 300px; height: 230px; right: -60px; bottom: -40px; }
}
@media (max-width: 600px) {
  main { padding: 18px var(--gutter) 56px; }
  .topbar-in { height: 56px; gap: 10px; }
  .topbar-right .label { display: none; }
  .topbar .wordmark .ric { display: none; }
  .topbar .wordmark span, .topbar .wordmark strong { font-size: 17px; }
  .client-chip { flex: 1; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; padding: 6px 10px; }
  .client-chip i { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head h2 { white-space: nowrap; }
  .hero { padding: 24px 20px; border-radius: 18px; } .hero .ric-mark { width: 260px; height: 200px; right: -50px; top: -20px; }
  .hero-stats { grid-template-columns: 1fr; }
  .cards, .kpis, .kpis.three, .kpis.two { grid-template-columns: 1fr 1fr; }
  .card strong { font-size: 20px; }
  .panel-head, .panel-body { padding-left: 16px; padding-right: 16px; }
  .logic-head .actions { width: 100%; } .logic-head .actions .btn { flex: 1; }
  .timeline li { grid-template-columns: 56px 1fr; } .timeline .dday { grid-column: 2; justify-self: start; }
  .program dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .fig-toggle, .actions, .report-actions { display: none !important; } body { background: #fff; } .panel, .card, .report-list { box-shadow: none; break-inside: avoid; } }
