/* VOGO FUND AX Workspace — 보고펀드 홈페이지(vogo-fund.com) 결: 남색 #02206d, Noto Sans KR + Ubuntu, 넓은 여백, 가는 선 */
:root {
  --navy: #02206d;
  --navy-700: #0a2a7a;
  --navy-900: #061a4a;
  --navy-950: #040f2e;
  --blue: #024b92;
  --ink: #161c2b;
  --text: #3a4253;
  --muted: #6b7385;
  --faint: #9aa1af;
  --line: #e3e6ed;
  --line-strong: #cdd3df;
  --panel: #f4f5f8;
  --paper: #ffffff;
  --good: #0d5a46;  --good-bg: #e7f2ee;
  --mid: #3f4a5e;   --mid-bg: #eceff4;
  --bad: #9b2c1f;   --bad-bg: #fbeceb;
  --check: #7d5a00; --check-bg: #f8f0d9;
  --en: 'Ubuntu', 'Noto Sans KR', sans-serif;
  --kr: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 15px/1.7 var(--kr);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;          /* 한국어는 단어(띄어쓰기) 단위로만 줄바꿈 */
  overflow-wrap: break-word;     /* 아주 긴 영문, 파일 이름만 예외로 끊음 */
}
p, li, .desc, .v, .steps span, .principles span { text-wrap: pretty; }   /* 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, h4, .lead, .page-title p { text-wrap: balance; }
.only-m { display: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.en { font-family: var(--en); letter-spacing: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- 남색 띠: 유리 외벽 같은 세로 결 ---------- */
.skyline {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 420px at 78% -10%, rgba(76, 122, 214, .32), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy) 100%);
  overflow: hidden;
  isolation: isolate;
}
.skyline::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 13px);
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 42%, #000 70%, transparent 96%),
                      linear-gradient(180deg, #000 0%, transparent 92%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(100deg, transparent 8%, #000 42%, #000 70%, transparent 96%),
                      linear-gradient(180deg, #000 0%, transparent 92%);
          mask-composite: intersect;
  transform: skewX(-8deg) translateX(4%);
}
.skyline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(255,255,255,.12);
}

/* ---------- 글자 로고 ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.wordmark b { font: 500 21px/1 var(--en); letter-spacing: .1em; }
.wordmark i { width: 1px; height: 18px; background: currentColor; opacity: .35; }
.wordmark span { font: 300 13px/1 var(--en); letter-spacing: .14em; text-transform: uppercase; opacity: .78; }

/* ---------- 로그인 ---------- */
.login { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.login-top { display: flex; align-items: center; justify-content: space-between; padding: 30px 48px; }
.login-top small { font: 300 12px/1 var(--en); letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.login-center { display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(440px, 100%);
  background: var(--paper);
  color: var(--text);
  padding: 52px 48px 44px;
  box-shadow: 0 40px 80px -30px rgba(2, 10, 40, .55), 0 2px 0 rgba(255,255,255,.04);
  animation: rise .7s var(--ease) both;
}
.login-card .eyebrow { font: 400 12px/1 var(--en); letter-spacing: .2em; color: var(--blue); text-transform: uppercase; }
.login-card h1 { margin: 14px 0 6px; font: 400 30px/1.2 var(--en); color: var(--navy); letter-spacing: -.005em; }
.login-card p.lead { margin: 0 0 34px; color: var(--muted); font-size: 14px; }
.login-card .btn-primary { width: 100%; margin-top: 10px; }
.login-msg { margin: 0 0 20px; padding: 14px 16px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; line-height: 1.6; }
.login-note { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); line-height: 1.7; }
.login-note .by { display: block; margin-top: 12px; font-size: 12px; color: #b3b9c5; }
.login-foot { padding: 26px 48px; display: flex; justify-content: space-between; font: 300 12px/1 var(--en); letter-spacing: .12em; opacity: .6; }

/* ---------- 입력 ---------- */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field > span em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 6px; }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: #b7bfcf; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2, 32, 109, .10); }

.btn-primary, .btn-ghost, .btn-light, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 34px;
  border-radius: 2px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 500; letter-spacing: -.005em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -14px rgba(2, 32, 109, .9); }
.btn-primary:hover { background: var(--navy-900); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: #c9cfdb; box-shadow: none; transform: none; cursor: not-allowed; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f8; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-line { height: 40px; padding: 0 16px; font-size: 13.5px; background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--navy); }
.btn-text { background: none; border: 0; padding: 0; color: var(--blue); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(2, 75, 146, .35); }
.btn-text:hover { text-decoration-color: var(--blue); }
.btn-text.danger { color: var(--bad); text-decoration-color: rgba(155, 44, 31, .35); }
.btn-text.danger:hover { text-decoration-color: var(--bad); }
.saved .list .v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.saved .list .v a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); word-break: break-all; }
.saved .list .v a:hover { text-decoration-color: var(--ink); }
.saved .size { font: 400 12px/1 var(--en); color: var(--faint); }
.saved-actions { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 18px; }

/* ---------- 작업 화면: 상단 ---------- */
.hero { height: 300px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 84px; border-bottom: 1px solid rgba(255,255,255,.12); }
.topbar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.topbar .who { opacity: .88; }
.topbar .who b { font-weight: 500; }
.pill {
  height: 40px; padding: 0 22px; border-radius: 999px;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85);
  font: 500 12.5px/1 var(--en); letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.pill:hover { background: #fff; color: var(--navy); }
.link-light { background: none; border: 0; padding: 0; color: inherit; font-size: 13px; opacity: .78; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.35); white-space: nowrap; }
.link-light:hover { opacity: 1; text-decoration-color: #fff; }

/* ---------- 비밀번호 변경 창 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(4, 15, 46, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s ease both; }
.modal-card { width: min(420px, 100%); background: #fff; color: var(--text); padding: 40px 40px 30px; box-shadow: 0 40px 80px -30px rgba(2, 10, 40, .6); animation: rise .35s var(--ease) both; }
.modal-card .eyebrow { font: 400 12px/1 var(--en); letter-spacing: .2em; color: var(--blue); text-transform: uppercase; }
.modal-card h2 { margin: 12px 0 24px; font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal-actions .btn-line, .modal-actions .btn-primary { height: 46px; padding: 0 22px; font-size: 14px; }
.modal-note { margin: 18px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.login-msg.ok { background: var(--good-bg); color: var(--good); }
@keyframes fade { from { opacity: 0; } }
.hero-copy { padding-top: 54px; }
.hero-copy .eyebrow { font: 400 12px/1 var(--en); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.hero-copy h2 { margin: 14px 0 0; font: 300 30px/1.3 var(--en); letter-spacing: .01em; }

/* 사진 띠에 걸친 흰 탭 카드 (보고펀드 사업부 페이지와 같은 구성) */
.tabs-card {
  position: relative; z-index: 2;
  width: min(1296px, 100% - 48px);
  margin: -58px auto 0;
  background: var(--paper);
  box-shadow: 0 18px 40px -28px rgba(4, 15, 46, .45);
}
.tabs { display: flex; justify-content: center; gap: 8px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
.tab {
  position: relative; flex: none;
  padding: 30px 26px 24px;
  background: none; border: 0;
  font: 400 16px/1 var(--en); color: #4a5262;
  white-space: nowrap;
}
.tab small { margin-left: 8px; font: 400 11px/1 var(--kr); color: var(--faint); letter-spacing: 0; }
.tab:hover:not([aria-disabled="true"]) { color: var(--navy); }
.tab[aria-disabled="true"] { cursor: default; color: #a1a7b4; }
.tab[aria-selected="true"] { color: var(--navy); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 16px; height: 2px; background: var(--navy);
  animation: grow .5s var(--ease) both;
}

/* ---------- 제목 ---------- */
.page-title { text-align: center; padding: 58px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 52px; }
.page-title h1 { margin: 0; font: 400 36px/1.2 var(--en); color: var(--navy); letter-spacing: -.005em; }
.page-title p { margin: 14px 0 0; color: var(--muted); font-size: 15px; font-weight: 300; }

/* ---------- 본문 배치 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-bottom: 96px; }
.panel { background: var(--panel); padding: 40px 44px 42px; margin-bottom: 24px; }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.step-head h3 { margin: 0; font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.step-head h3 .num { display: inline-block; min-width: 34px; font: 500 13px/1 var(--en); letter-spacing: .14em; color: var(--navy); vertical-align: 3px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-2 .full { grid-column: 1 / -1; }

.segmented { display: inline-flex; border: 1px solid var(--line-strong); background: #fff; border-radius: 2px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px;
  font: 400 14.5px/1 var(--en); color: var(--muted); cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }

/* 자료 세 칸 */
.drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drop {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 20px 22px 18px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
  cursor: pointer;
}
.drop:hover { border-color: #b9c2d6; box-shadow: 0 16px 30px -24px rgba(4, 15, 46, .45); transform: translateY(-2px); }
.drop.dragover { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2, 32, 109, .1); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; font-size: 11.5px; font-weight: 500; border-radius: 999px; }
.tag.req { background: var(--navy); color: #fff; }
.tag.opt { background: var(--mid-bg); color: var(--mid); }
.drop h4 { margin: 0; font: 500 18px/1.2 var(--en); color: var(--ink); letter-spacing: .005em; }
.drop .zone { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.drop .zone svg { flex: none; color: var(--navy); }
.drop .file { display: none; }
.drop .file strong { display: block; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.45; word-break: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drop .file span { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font: 400 12px/1 var(--en); color: var(--muted); letter-spacing: .02em; }
.drop .file em { font-style: normal; }
.drop .file button { background: none; border: 0; padding: 4px 0; color: var(--blue); font: 500 12px/1 var(--kr); }
.drop.has-file { border-color: var(--navy); box-shadow: inset 0 3px 0 var(--navy); }
.drop.has-file .zone { display: none; }
.drop.has-file .file { display: block; }

.panel-files { position: relative; transition: box-shadow .2s; }
body.dragging .panel-files { box-shadow: inset 0 0 0 2px var(--navy); }
.drop-hint { display: none; margin: -6px 0 18px; padding: 12px 16px; background: var(--navy); color: rgba(255,255,255,.86); font-size: 13px; }
.drop-hint b { color: #fff; font-weight: 500; }
body.dragging .drop-hint { display: block; animation: rise .25s var(--ease) both; }
.drop-status { margin: 16px 0 0; font-size: 12.5px; color: var(--faint); }
.drop-status:empty { display: none; }
.drop-status.ok { color: var(--good); }
.drop-status.warn { color: var(--bad); }
.rules { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: ""; width: 5px; height: 5px; background: var(--navy); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 6px 0 0; }
.cta p { margin: 0; font-size: 13px; color: var(--faint); }

/* ---------- 진행: 남색 띠 위 원형 진행률 ---------- */
.progress { margin-top: 28px; padding: 46px 48px 30px; animation: rise .6s var(--ease) both; }
.progress-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 46px; align-items: center; }
.ring { position: relative; width: 172px; height: 172px; flex: none; }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring .track { stroke: rgba(255,255,255,.13); }
.ring .arc { stroke: #fff; stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: 339.292; transition: stroke-dashoffset .9s var(--ease); }
.ring-head { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.ring-head::after {
  content: ""; position: absolute; top: calc(5% - 4px); left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 14px 3px rgba(150, 185, 255, .5);
}
/* 빛 번짐은 미리 그린 둥근 빛을 크기와 투명도로만 움직인다(그림자를 매번 다시 그리지 않아 가벼움) */
.ring-head::before {
  content: ""; position: absolute; top: calc(5% - 14px); left: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 200, 255, .55) 0%, rgba(170, 200, 255, 0) 70%);
  animation: glow 1.8s ease-in-out infinite; will-change: transform, opacity;
}
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; }
.ring-num b { font: 300 50px/1 var(--en); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-num span { position: relative; top: -13px; font: 300 17px/1 var(--en); opacity: .62; }
.progress-copy .eyebrow { font: 400 12px/1 var(--en); letter-spacing: .22em; text-transform: uppercase; opacity: .62; }
.progress-copy h3 { margin: 14px 0 10px; font-size: 25px; font-weight: 400; line-height: 1.35; letter-spacing: -.01em; }
.progress-now { margin: 0; min-height: 1.7em; font-size: 14.5px; color: rgba(255,255,255,.76); }
.progress-time { display: flex; flex-wrap: wrap; gap: 16px 46px; margin: 28px 0 0; }
.progress-time dt { font-size: 12px; color: rgba(255,255,255,.52); }
.progress-time dd { margin: 8px 0 0; font-size: 19px; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 0; padding: 30px 0 0; list-style: none; counter-reset: s; border-top: 1px solid rgba(255,255,255,.12); }
.steps li { position: relative; padding: 0 16px 0 0; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26); background: transparent;
  font: 500 12px/1 var(--en); color: rgba(255,255,255,.5); letter-spacing: .06em;
  position: relative; z-index: 1;
  transition: all .35s var(--ease);
}
.steps li::after { content: ""; position: absolute; top: 17px; left: 46px; right: 12px; height: 1px; background: rgba(255,255,255,.14); transition: background .35s; }
.steps li:last-child::after { display: none; }
.steps b { display: block; margin-top: 14px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.5); transition: color .3s; }
.steps span { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.38); line-height: 1.5; transition: color .3s; }
.steps li.active::before { border-color: #fff; color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.1); }
.steps li.active b, .steps li.done b { color: #fff; }
.steps li.active span { color: rgba(255,255,255,.72); }
.steps li.done::before { content: "✓"; background: #fff; border-color: #fff; color: var(--navy); font-size: 14px; }
.steps li.done::after { background: rgba(255,255,255,.55); }
.progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.progress-foot p { margin: 0; font-size: 13px; color: rgba(255,255,255,.58); }
.btn-notify { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border: 1px solid rgba(255,255,255,.42); border-radius: 0; background: transparent; color: #fff; font-size: 13px; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn-notify::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: all .2s; }
.btn-notify:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-notify[aria-pressed="true"] { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.1); }
.btn-notify[aria-pressed="true"]::before { background: #8be3bd; border-color: #8be3bd; box-shadow: 0 0 10px rgba(139, 227, 189, .7); }
.btn-notify:disabled { opacity: .55; cursor: default; }
.progress.finished .ring-head::before { animation: none; opacity: 0; }
.progress.failed .ring .arc { stroke: rgba(255, 190, 180, .9); }
.progress.failed .ring-head { opacity: .4; }
.progress.failed .ring-head::before { animation: none; opacity: 0; }

/* ---------- 결과 ---------- */
.result { margin-top: 28px; animation: rise .6s var(--ease) both; }
.result-head { padding: 36px 44px 34px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.result-head .eyebrow { font: 400 12px/1 var(--en); letter-spacing: .22em; text-transform: uppercase; opacity: .72; }
.result-head h2 { margin: 14px 0 10px; font: 400 25px/1.35 var(--en); letter-spacing: 0; }
.result-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; opacity: .82; }
.result-head .meta span b { font-weight: 500; }
.result-head .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-head .actions .btn-light, .result-head .actions .btn-ghost { height: 44px; padding: 0 20px; font-size: 14px; }

/* 요약 한 줄: 판단 결과, 점검 결과 분포, 자료 요청, 불일치 */
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; background: #fff; border: 1px solid var(--line); border-top: 0; }
.summary button { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: background .2s; }
.summary button:hover { background: var(--panel); }
.sum-marks { display: flex; border-right: 1px solid var(--line); }
.sum-mark { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 96px; padding: 22px 24px !important; text-align: center !important; }
.sum-mark + .sum-mark { border-left: 1px solid var(--line) !important; }
.sum-mark span { font-size: 12.5px; color: var(--muted); }
.sum-mark b { font: 400 30px/1 var(--en); color: var(--navy); }
.sum-dist { display: flex !important; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 28px !important; }
.sum-label { font-size: 12.5px; color: var(--muted); }
.dist-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.dist-bar i { display: block; }
.dist-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text); }
.dist-legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dist-legend i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.dist-legend b { font: 500 13px/1 var(--en); color: var(--ink); }
.dist-bar .good, .dist-legend .good { background: #1f7a5c; }
.dist-bar .mid, .dist-legend .mid { background: #a3acbd; }
.dist-bar .bad, .dist-legend .bad { background: #b8483a; }
.dist-bar .check, .dist-legend .check { background: #d2a33a; }
.sum-nums { display: flex; border-left: 1px solid var(--line); }
.sum-nums button { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 104px; padding: 22px 24px; }
.sum-nums button + button { border-left: 1px solid var(--line); }
.sum-nums b { font: 300 30px/1 var(--en); color: var(--navy); }
.sum-nums span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* 결과 탭: 한 번에 한 구역만 */
.rtabs { display: flex; gap: 28px; margin-top: 36px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs [role="tab"] { position: relative; padding: 0 0 14px; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--faint); white-space: nowrap; cursor: pointer; transition: color .2s; }
.rtabs [role="tab"]:hover { color: var(--text); }
.rtabs [role="tab"] em { margin-left: 6px; font: 500 13px/1 var(--en); font-style: normal; }
.rtabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.rtabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); }
.rpanel { padding-top: 22px; animation: rise .35s var(--ease) both; }
.rpanel .verdicts { margin-top: 0; }
.rpanel-note { margin: 0 0 4px; font-size: 12.5px; color: var(--faint); }
.list li.empty { font-size: 13.5px; color: var(--faint); }
.verdict .lead-point { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.verdict.open .lead-point { display: block; }

/* 점검 결과: 회사, 전략, 시장 세 칸 */
.rcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rcol { border: 1px solid var(--line); background: #fff; }
.rcol h5 { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 16px 18px 12px; font-size: 14.5px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--line); }
.rcol h5 small { font: 400 12px/1 var(--en); color: var(--faint); }
.rcol ul { list-style: none; margin: 0; padding: 2px 0; }
.rcol li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; font-size: 13px; color: var(--text); line-height: 1.45; }
.rcol li + li { border-top: 1px solid #eef0f4; }
.rcol li .badge { flex: none; height: 24px; padding: 0 10px; font-size: 12px; }
.rcol li em.blank { margin-left: 6px; font-style: normal; font-size: 11.5px; color: var(--faint); }

.block { margin-top: 52px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.block-head h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.block-head p { margin: 0; font-size: 12.5px; color: var(--faint); }

.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.verdict { border: 1px solid var(--line); padding: 26px 26px 22px; background: #fff; display: flex; flex-direction: column; }
.verdict-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.verdict-top h4 { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--navy); font-size: 19px; }
.verdict p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.verdict .more { margin-top: 12px; }
.verdict .extra { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.verdict.open .extra { display: block; }
.verdict .extra p + p { margin-top: 10px; }
.verdict .cond { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.verdict .cond b { color: var(--navy); font-weight: 500; }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.mid { background: var(--mid-bg); color: var(--mid); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.check { background: var(--check-bg); color: var(--check); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.list .k { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.list .k .docs { font: 500 11px/1 var(--en); letter-spacing: .06em; color: var(--blue); background: #eef3fb; padding: 5px 8px; border-radius: 2px; }
.list .v { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.list .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; }
.list .vs span { background: var(--panel); padding: 8px 12px; color: var(--text); }
.list .vs span em { display: block; margin-top: 2px; font: 400 11.5px/1.2 var(--en); color: var(--faint); font-style: normal; }
.list .vs i { font: 400 12px/1 var(--en); color: var(--faint); font-style: normal; }
.list-more { margin-top: 14px; }

.note { margin: 28px 0 0; padding: 16px 22px; background: var(--panel); font-size: 13px; color: var(--muted); }

/* 일자: 큰 달력 */
.date-field { position: relative; }
.date-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; cursor: pointer; }
.date-btn svg { flex: none; color: var(--navy); }
.date-btn[aria-expanded="true"] { border-color: var(--navy); }
.cal { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 352px; max-width: calc(100vw - 32px); padding: 18px 18px 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 28px 56px -24px rgba(4, 15, 46, .4); animation: rise .2s var(--ease) both; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 17px; font-weight: 500; color: var(--ink); }
.cal-nav { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .2s; }
.cal-nav:hover { border-color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .wd { display: grid; place-items: center; height: 30px; font-size: 12.5px; color: var(--faint); }
.cal-grid .wd.sun, .cal-grid button.sun { color: #c0392b; }
.cal-grid .wd.sat, .cal-grid button.sat { color: var(--blue); }
.cal-grid button { height: 42px; border: 0; background: none; color: var(--ink); font: 400 15px/1 var(--en); cursor: pointer; transition: background .15s; }
.cal-grid button:hover { background: var(--panel); }
.cal-grid button.out { color: #c7ccd6; }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--navy); font-weight: 500; }
.cal-grid button.sel { background: var(--navy); color: #fff; font-weight: 500; }
.cal-foot { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* 보기 방식 전환(시범) */
.layout-switch { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.layout-switch .seg { display: inline-flex; border: 1px solid var(--line-strong); background: #fff; }
.layout-switch .seg button { height: 32px; padding: 0 14px; border: 0; background: none; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.layout-switch .seg button + button { border-left: 1px solid var(--line-strong); }
.layout-switch .seg button[aria-checked="true"] { background: var(--navy); color: #fff; }
.layout-switch .sample-tag { order: -1; margin-right: auto; padding: 5px 10px; background: var(--check-bg); color: var(--check); font-size: 12px; font-style: normal; font-weight: 500; }
.side-link { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 24px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--blue); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.side-link span { font-size: 12px; font-weight: 400; color: var(--faint); }
.side-link:hover { background: var(--panel); }

/* 확인 사항, 보고 메일 */
.checks-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.checks-head p { margin: 0; font-size: 12.5px; color: var(--faint); }
.btn-mail { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s; }
.btn-mail:hover { background: var(--blue); }
.list.checks .k { flex-wrap: wrap; }
.list.checks .k .docs { font-family: var(--kr); letter-spacing: 0; }
.badge.xs { height: 22px; padding: 0 8px; font-size: 11.5px; }
.done-box { position: relative; display: inline-flex; flex: none; width: 18px; height: 18px; cursor: pointer; }
.done-box input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.done-box span { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); background: #fff; transition: background .15s, border-color .15s; }
.done-box input:checked + span { background: var(--navy); border-color: var(--navy); }
.done-box input:checked + span::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.done-box input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.list.checks li.done .t { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--faint); }
.list.checks li.done .docs, .list.checks li.done .badge, .list.checks li.done .v, .list.checks li.done .vs { opacity: .45; }
.done-count { margin-left: 8px; font: 500 12px/1 var(--en); color: var(--navy); white-space: nowrap; }
.autofill-note { margin: -6px 0 18px; font-size: 12.5px; color: var(--muted); }
.autofill-note.busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border: 1.5px solid var(--line-strong); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.autofill-note.ok { color: var(--good); }
@keyframes spin { to { transform: rotate(360deg); } }
.copy-mini { margin-left: auto; flex: none; height: 24px; padding: 0 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); font-size: 11.5px; font-weight: 500; cursor: pointer; transition: color .2s, border-color .2s; }
.copy-mini:hover { color: var(--navy); border-color: var(--navy); }
.copy-mini.done { color: var(--good); border-color: var(--good); }
.list.checks .v + .v { margin-top: 4px; }
.modal-card.wide { width: min(680px, 100%); }
.mail-text { display: block; width: 100%; min-height: 320px; margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 400 13.5px/1.75 var(--kr); resize: vertical; }
.mail-text:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: #fff; }

/* 시안 B: 한 장 요약 */
.b-block { margin-top: 30px; }
.b-block.first { margin-top: 26px; }
.b-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--ink); }
.b-h h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.b-h h3 small, .b-h > small { font-size: 12.5px; font-weight: 400; color: var(--faint); margin-left: 6px; }
.b-block > .dist-bar { margin-bottom: 14px; }
.layout-b .verdict .lead-point { -webkit-line-clamp: 3; }

/* 시안 C: 보고서형 */
.head-marks { display: flex; gap: 10px; margin-top: 22px; }
.head-marks span { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border: 1px solid rgba(255,255,255,.28); }
.head-marks small { font-size: 12.5px; opacity: .78; }
.head-marks b { font: 400 22px/1 var(--en); }
.brief { margin-top: 0; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.brief h3 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--blue); letter-spacing: .02em; }
.brief ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.brief li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; font-size: 13.5px; line-height: 1.65; color: var(--text); }
.brief li b { font-weight: 500; color: var(--navy); white-space: nowrap; }
.brief li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc { margin-top: 14px; border: 1px solid var(--line); background: #fff; }
.acc > summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc > summary .dist-bar { width: 160px; }
.acc-t { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.acc-t em { margin-left: 6px; font: 500 13px/1 var(--en); font-style: normal; color: var(--faint); }
.acc-sub { font-size: 12.5px; color: var(--faint); }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc > :not(summary) { margin: 18px 22px 20px; }
.acc .rcols, .acc .verdicts { margin: 18px 22px 22px; }

/* ---------- 옆 칸 ---------- */
.side { position: sticky; top: 24px; display: grid; gap: 24px; }
.side-card { border: 1px solid var(--line); background: #fff; }
.side-card h4 { margin: 0; padding: 20px 24px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.side-card h4 small { font-weight: 400; font-size: 12px; color: var(--faint); }
.history { list-style: none; margin: 0; padding: 6px 0; }
.history li a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 24px; text-decoration: none; color: inherit; transition: background .2s; }
.history li a:hover { background: var(--panel); }
.history .doc { width: 34px; height: 40px; border: 1px solid var(--line-strong); display: grid; place-items: end center; padding-bottom: 6px; font: 500 9.5px/1 var(--en); color: var(--navy); letter-spacing: .08em; background: linear-gradient(225deg, var(--panel) 0 9px, #fff 9px); }
.history b { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.history span { font-size: 12px; color: var(--faint); }
.history .ver { font: 500 12px/1 var(--en); color: var(--navy); letter-spacing: .06em; }
.principles { list-style: none; margin: 0; padding: 8px 24px 18px; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); line-height: 1.6; }
.principles li:last-child { border-bottom: 0; }
.principles li::before { content: counter(p, decimal-leading-zero); font: 500 11.5px/1.9 var(--en); color: var(--navy); letter-spacing: .08em; }
.principles b { display: block; font-weight: 500; color: var(--ink); }

/* ---------- 바닥 ---------- */
.foot { background: var(--navy-950); color: rgba(255,255,255,.62); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 30px 0; font-size: 12.5px; }
.foot .wordmark b { font-size: 15px; }
.foot .wordmark span { font-size: 11px; }

/* ---------- 움직임 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glow { from { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } to { transform: scale(.7); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .only-m { display: inline; }
  .wrap { width: calc(100% - 32px); }
  .login-top, .login-foot { padding-left: 20px; padding-right: 20px; }
  .login-card { padding: 40px 26px 34px; }
  .hero { height: 260px; }
  .topbar .who { display: none; }
  .wordmark b { white-space: nowrap; }
  .topbar .wordmark i, .topbar .wordmark > span, .login-top .wordmark i, .login-top .wordmark > span { display: none; }
  .pill { height: 36px; padding: 0 16px; }
  .hero-copy h2 { font-size: 24px; }
  .tabs-card { width: calc(100% - 32px); }
  .tabs { justify-content: flex-start; }
  .page-title h1 { font-size: 30px; }
  .panel { padding: 28px 20px 30px; }
  .grid-2, .drops, .verdicts, .two, .side { grid-template-columns: 1fr; }
  .cta { flex-direction: column-reverse; align-items: stretch; }
  .cta .btn-primary { width: 100%; }
  .progress { padding: 32px 22px 24px; }
  .progress-main { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; }
  .ring { width: 150px; height: 150px; }
  .ring-num b { font-size: 44px; }
  .progress-time { justify-content: center; gap: 14px 28px; }
  .progress-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .steps { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .result-head { grid-template-columns: 1fr; padding: 30px 22px; }
  .result-head .actions { flex-wrap: wrap; }
  .summary { grid-template-columns: 1fr; }
  .sum-marks { border-right: 0; border-bottom: 1px solid var(--line); }
  .sum-mark { flex: 1; min-width: 0; padding: 16px 8px !important; }
  .sum-dist { padding: 18px 20px !important; }
  .sum-nums { border-left: 0; border-top: 1px solid var(--line); }
  .sum-nums button { flex: 1; min-width: 0; padding: 16px 20px; }
  .rtabs { gap: 20px; margin-top: 28px; }
  .rcols { grid-template-columns: 1fr; }
  .checks-head { flex-direction: column; align-items: stretch; }
  .layout-switch { flex-wrap: wrap; justify-content: flex-start; }
  .layout-switch .seg { width: 100%; }
  .layout-switch .seg button { flex: 1; }
  .head-marks { flex-wrap: wrap; }
  .brief { padding: 20px; }
  .brief li { grid-template-columns: 1fr; gap: 2px; }
  .acc > summary { padding: 16px 18px; }
  .acc > summary .dist-bar { width: 100%; order: 3; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
