/* 올포랜드 PPT 템플릿(기본 스타일) 시안. 색·서체는 PPT 템플릿\03_빌드키트\a4l_deck\tokens.json 의 house 테마.
   styles.css 뒤에 불러와 덮어쓴다. 주소에 ?theme=basic 을 붙이면 이 파일을 빼고 원래 모습으로 본다. */
@font-face { font-family: "Paperlogy"; font-weight: 400; font-display: block; src: url("fonts/Paperlogy-4Regular.ttf") format("truetype"); }
@font-face { font-family: "Paperlogy"; font-weight: 500; font-display: block; src: url("fonts/Paperlogy-5Medium.ttf") format("truetype"); }
@font-face { font-family: "Paperlogy"; font-weight: 600; font-display: block; src: url("fonts/Paperlogy-6SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Paperlogy"; font-weight: 700; font-display: block; src: url("fonts/Paperlogy-7Bold.ttf") format("truetype"); }
@font-face { font-family: "Paperlogy"; font-weight: 900; font-display: block; src: url("fonts/Paperlogy-9Black.ttf") format("truetype"); }

:root {
  --blue: #0D76B4; --teal: #00B5B3; --green: #90B323; --navy: #0B2E4F;
  --blue-d: #0A5D8F; --teal-d: #009E9C; --green-d: #6F9C1C;
  --blue-t: #EAF2FA; --teal-t: #E3F6F6; --green-t: #EFF5E1;
  --bg: #FFFFFF; --panel: #FFFFFF; --tile: #F3F6F9; --ink: #515151; --sub: #707070; --line: #C9D2DB; --faint: #B8C4D0; --track: #DDE3EA;
  --accent: var(--blue); --done: var(--green-d); --warn: #F0644B; --ask: #0A5D8F; --ask-bg: var(--blue-t);
  --c: var(--blue); --c-d: var(--blue-d); --c-t: var(--blue-t);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
.g1 { --c: var(--blue); --c-d: var(--blue-d); --c-t: var(--blue-t); }
.g2 { --c: var(--teal); --c-d: var(--teal-d); --c-t: var(--teal-t); }
.g3 { --c: var(--green); --c-d: var(--green-d); --c-t: var(--green-t); }

body { font: 500 14px/1.55 "Paperlogy", "Malgun Gothic", system-ui, sans-serif; background: var(--bg); color: var(--ink); word-break: keep-all; }

/* 머리: 키커 + 두 줄 제목 */
header.top { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 16px 28px 12px; }
header.top h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0 0 12px; line-height: 1.25; }
header.top h1 em { font-style: normal; color: var(--blue); }
main { padding: 8px 28px 48px; }

/* 구분 버튼: 알약 */
.seg { border: 0; background: var(--tile); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0 !important; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; color: var(--sub); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.seg button:hover { color: var(--navy); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(11, 46, 79, .22); }
#total { font-weight: 700; color: var(--navy); }
#sync { color: #9AA8B6; }
.tools button, .tools label { border-radius: 999px; border-color: var(--line); color: var(--sub); font-weight: 600; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.tools button:hover, .tools label:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* KPI 타일 */
#kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 28px 0; }
.kpi { background: var(--tile); border-radius: 12px; padding: 14px 16px 12px; border-top: 3px solid var(--c); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.kpi .lab { font-weight: 600; font-size: 12.5px; color: var(--c-d); }
.kpi .val { font-weight: 900; font-size: 30px; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi .val small { font-weight: 600; font-size: 14px; color: var(--sub); margin-left: 3px; }
.kpi .cap { font-size: 12px; color: var(--sub); }
.kpi.all { --c: var(--navy); --c-d: var(--navy); }
.kpi.ask { --c: var(--faint); --c-d: var(--sub); }

.warn { margin: 16px 28px 0; border: 0; border-left: 3px solid var(--warn); border-radius: 0 10px 10px 0; background: var(--tile); color: var(--ink); padding: 10px 14px; }

/* 진행 막대 */
.prog .bar { width: 72px; height: 5px; background: var(--track); }
.prog .bar i { background: var(--c); transition: width .6s var(--ease); }
.prog .num { font-weight: 600; color: var(--sub); }

/* 목표 보기 */
.tree { grid-template-columns: 230px 1fr; gap: 0 64px; margin-top: 28px; }
.node { border-radius: 12px; border-color: var(--line); }
.goal { border: 0; background: var(--navy); color: #fff; padding: 18px 18px 16px; box-shadow: 0 10px 24px rgba(11, 46, 79, .18); overflow: hidden; }
.goal::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.goal h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.goal p { color: #A9BCCE; font-weight: 400; margin: 4px 0 14px; }
.goal .big { font-weight: 900; font-size: 34px; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.goal .big small { font-weight: 600; font-size: 14px; color: #D3DDE7; margin-left: 2px; }
.goal .prog .bar { width: 100%; flex: 1; background: #2E5273; }
.goal .prog { display: flex; }
.goal .prog .num { color: #D3DDE7; }
.branch { grid-template-columns: 180px 1fr; gap: 0 52px; }
.group { background: var(--c-t); border: 0; padding: 10px 14px; transition: transform .25s var(--ease), box-shadow .25s; }
.group:hover { transform: translateX(2px); box-shadow: 0 4px 12px rgba(11, 46, 79, .08); }
.group h3 { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.wires path { stroke: var(--line); stroke-width: 1.25; transition: stroke .4s; }
.wires path.w1 { stroke: var(--c); opacity: .7; stroke-width: 1.5; }
.wires path.done { stroke: var(--c); }
.wires.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) forwards; }
.wires.draw path.w2 { animation-delay: .18s; }

/* 순서 보기 */
.board { gap: 14px; scroll-behavior: smooth; }
.stage header { border: 0; border-radius: 12px; background: var(--tile); border-top: 3px solid var(--blue); padding: 12px 14px; }
.stage:nth-child(n+3) header { border-top-color: var(--teal); }
.stage:nth-child(n+5) header { border-top-color: var(--green); }
.stage:nth-child(7) header { border-top-color: var(--navy); }
.stage h2 { font-weight: 700; font-size: 15px; color: var(--navy); }
.eta { font-weight: 600; }

/* 카드 */
.card { border-radius: 10px; border-color: var(--line); padding: 9px 12px; transition: transform .22s var(--ease), box-shadow .22s, border-color .25s, background .3s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 46, 79, .09); border-color: var(--c); }
.card.s-done { border-color: var(--c); background: var(--c-t); }
.card.s-done .t { color: var(--sub); text-decoration-color: var(--faint); }
.card.s-doing { border-left: 3px solid var(--c); }
.card-title .t { font-weight: 600; color: var(--navy); }
.crit { font-weight: 400; color: var(--sub); }
.card-head input[type=checkbox] { appearance: none; width: 19px; height: 19px; border: 1.5px solid var(--faint); border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.card-head input[type=checkbox]:hover { border-color: var(--c); transform: scale(1.08); }
.card-head input[type=checkbox]::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease); }
.card-head input[type=checkbox]:checked { background: var(--c); border-color: var(--c); }
.card-head input[type=checkbox]:checked::after { transform: rotate(-45deg) scale(1); }
.badge, .chip, .memo-dot { font-weight: 600; font-size: 10.5px; border-radius: 999px; padding: 1px 8px; border-color: var(--line); }
.badge.b-ok { color: var(--green-d); border-color: transparent; background: var(--green-t); }
.badge.b-ask { color: var(--blue-d); background: var(--blue-t); }
.chip.doing { color: var(--c-d); border-color: var(--c); }
.memo-dot { color: var(--teal-d); border-color: var(--teal); }
.detail select, .detail input, .detail textarea { background: #fff; border-color: var(--line); border-radius: 8px; font-family: inherit; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.detail select:focus, .detail input:focus, .detail textarea:focus { outline: 0; border-color: var(--c); box-shadow: 0 0 0 3px var(--c-t); }
button:focus-visible, .card-head input:focus-visible, label:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 전체 흐름 */
.phase-dot { border-color: var(--navy); color: var(--navy); font-weight: 900; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.phase.complete .phase-dot { background: var(--green-d); border-color: var(--green-d); transform: scale(1.06); }
.phase::before { background: var(--track); }
.phase-head { background: var(--tile); border: 0; border-radius: 12px; transition: box-shadow .25s, transform .25s var(--ease); }
.phase-head:hover { box-shadow: 0 4px 12px rgba(11, 46, 79, .08); transform: translateX(2px); }
.phase-head h2 { color: var(--navy); font-weight: 700; }
.phase.side .phase-head { background: var(--green-t); }
.sub { border-color: var(--line); border-radius: 12px; transition: border-color .25s, box-shadow .25s, transform .22s var(--ease); }
.sub:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(11, 46, 79, .08); transform: translateY(-2px); }
.sub-head h3 { color: var(--navy); font-weight: 700; }
.mini input { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--faint); border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.mini input:hover { border-color: var(--c); transform: scale(1.1); }
.mini input::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease); }
.mini input:checked { background: var(--c); border-color: var(--c); }
.mini input:checked::after { transform: rotate(-45deg) scale(1); }
.mini button { font-weight: 500; transition: color .2s; }
.mini button:hover { color: var(--blue); }
.mile { color: var(--sub); }
.mile b { color: var(--navy); font-weight: 700; }
.mile i { background: var(--blue); }
.enter .phase { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.src a { color: var(--blue-d); text-decoration-color: var(--line); transition: color .2s, text-decoration-color .2s; }
.src a:hover { color: var(--blue); text-decoration-color: var(--blue); }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--c-t), 0 0 0 5px var(--c); } 100% { box-shadow: 0 0 0 0 transparent; } }
.card.flash { animation: flash 1.8s var(--ease); }

/* 자료 */
.doc-sec h2 { color: var(--navy); font-weight: 700; }
.doc { border-radius: 12px; transition: transform .22s var(--ease), box-shadow .22s, border-color .25s; }
a.doc:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11, 46, 79, .1); border-color: var(--blue); }
.doc b { color: var(--navy); font-weight: 700; }
.doc .host { color: var(--blue-d); font-weight: 600; }
.doc-sec.lead .doc { border: 0; background: var(--c-t); border-top: 3px solid var(--c); }
.doc-sec.g1 h2, .doc-sec.g2 h2 { border-left: 4px solid var(--c); padding-left: 10px; }
.doc-sec.lead { margin-bottom: 14px; }
.doc-sec.ref .doc { background: var(--tile); border-color: transparent; }
.contact { border-radius: 12px; background: var(--tile); border: 0; }
.contact b { color: var(--navy); font-weight: 700; }
.contact .tel { color: var(--blue-d); }
.enter .doc { animation: rise .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 16) * 30ms); }

/* 모션 */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes open { from { opacity: 0; max-height: 0; transform: translateY(-4px); } to { opacity: 1; max-height: 260px; transform: none; } }
@keyframes close { from { opacity: 1; max-height: 260px; } to { opacity: 0; max-height: 0; margin-top: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
.enter .goal { animation: slide .5s var(--ease) both; }
.enter .group { animation: slide .5s var(--ease) both; animation-delay: .1s; }
.enter .card { animation: rise .45s var(--ease) both; animation-delay: calc(.16s + min(var(--i, 0), 14) * 28ms); }
.enter .stage header { animation: rise .45s var(--ease) both; animation-delay: calc(var(--s, 0) * 50ms); }
.detail { overflow: hidden; animation: open .32s var(--ease) both; }
.detail.closing { animation: close .2s ease-in both; }
.card.pop { animation: pop .35s var(--ease); }

@media (max-width: 860px) {
  header.top, main { padding-left: 16px; padding-right: 16px; }
  #kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px 0; }
  .warn { margin: 12px 16px 0; }
  .tree, .branch { grid-template-columns: 1fr; gap: 8px; }
  .leaves { border-left-color: var(--c); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wires.draw path { stroke-dashoffset: 0; }
}

/* ── 2026-11-18 추가: 목표 색, 거꾸로 정한 조건, 순서 보기 ── */
.g4 { --c: var(--green); --c-d: var(--green-d); --c-t: var(--green-t); }
.g5 { --c: #4E5F71; --c-d: #4E5F71; --c-t: #EDF0F3; }
.g6 { --c: var(--navy); --c-d: var(--navy); --c-t: #E6ECF2; }
.g3 { --c: #6B829A; --c-d: #4E5F71; --c-t: #F3F6F9; }
@media (min-width: 861px) { #kpis { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); } }
.kpi .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal .need { color: #D3DDE7; font-weight: 400; line-height: 1.45; }
.goal .need b { color: #fff; font-weight: 600; }
.chip.pri { color: var(--warn); border-color: var(--warn); background: #fff; }
.chain h2, .flow-bar h2 { color: var(--navy); font-weight: 700; }
.chain-box { border: 0; background: var(--c-t); border-top: 3px solid var(--c); border-radius: 12px; transition: transform .22s var(--ease), box-shadow .22s; }
.chain-box:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 46, 79, .08); }
.chain-box h3 { color: var(--navy); font-weight: 700; }
.chain-box:not(:last-child)::after { border-color: var(--faint); }
.chain-lab { background: #fff; border-color: transparent; color: var(--c-d); font-weight: 600; }
.flow-toggle { border-radius: 999px; font-weight: 600; color: var(--sub); transition: background .25s var(--ease), color .2s, border-color .2s; }
.flow-toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-docs b { color: var(--c-d); }
.enter .chain-box { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
