/* IFonly v3 디자인 (PC) — 시안 IFonly-pure-html-css.html 기준.
   기존 화면(app-shell 계열)의 ID·구조는 두고 색·간격·글자만 바꾼다. 맨 마지막에 불러온다.
   색은 변수로만 쓴다(theme.js 7종 테마가 변환할 수 있도록). 글자는 최소 12px. */
:root{
  --v3-paper:#f4efe4;--v3-paper2:#faf6ec;--v3-surface:#fffcf5;--v3-surface2:#f7f1e4;
  --v3-ink:#1c2b23;--v3-ink2:#46524a;--v3-quiet:#686d61;--v3-line:#e4dac6;--v3-line2:#d2c4aa;
  --v3-forest:#1f4d3a;--v3-forest2:#2c654c;--v3-sage:#7fa890;--v3-sage-soft:#e2ebe2;
  --v3-amber:#dd962c;--v3-amber-soft:#f7e5c2;--v3-clay:#c46a4a;--v3-clay-soft:#f3d9cd;
  --v3-good:#356a50;--v3-bad:#b4553b;--v3-radius:16px;
  --v3-shadow:0 1px 2px rgba(28,43,35,.04),0 18px 40px -32px rgba(28,43,35,.45);
  --shell-bg:var(--v3-paper);--shell-paper:var(--v3-surface);--shell-line:var(--v3-line);--shell-ink:var(--v3-ink);
  --shell-muted:var(--v3-quiet);--shell-blue:var(--v3-forest);--shell-purple:var(--v3-forest2);
  --ifo-bg:var(--v3-paper);--ifo-paper:var(--v3-surface);--ifo-paper2:var(--v3-paper2);--ifo-ink:var(--v3-ink);--ifo-muted:var(--v3-quiet);
  --ifo-line:var(--v3-line);--ifo-blue:var(--v3-forest);--ifo-blue2:var(--v3-sage-soft);--ifo-purple:var(--v3-forest2);--ifo-purple2:var(--v3-sage-soft);
  --ifo-panel:var(--v3-surface);--ifo-panel-line:var(--v3-line);--ifo-gold:var(--v3-amber);--ifo-green:var(--v3-good);--ifo-shadow:var(--v3-shadow);--ifo-radius:var(--v3-radius);
}
html body.ifo-v3{background-color:var(--v3-paper)!important;color:var(--v3-ink)!important;font-family:"IBM Plex Sans KR","Pretendard",Inter,"Noto Sans KR","Apple SD Gothic Neo",-apple-system,sans-serif!important;
  background-image:radial-gradient(circle at 1px 1px,rgba(28,43,35,.05) 1px,transparent 0)!important;background-size:24px 24px!important;font-size:14px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
html body.ifo-v3 *:focus-visible{outline:2px solid var(--v3-forest);outline-offset:3px}

/* ── 사이드바 ── */
html body.ifo-v3 .ifo-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:260px!important;height:100vh!important;display:block!important;overflow-y:auto;
  padding:20px 14px!important;background:var(--v3-paper2)!important;border:0!important;border-right:1px solid var(--v3-line)!important;z-index:50;box-sizing:border-box}
html body.ifo-v3 .ifo-brand{display:flex!important;align-items:center;gap:10px;padding:0 6px 22px!important;text-decoration:none;color:var(--v3-ink)!important}
html body.ifo-v3 .ifo-mark{display:grid!important;place-items:center;width:36px!important;height:36px!important;border-radius:12px!important;background:var(--v3-forest)!important;color:#fffaf0!important;font-weight:800;font-size:14px!important;letter-spacing:-.08em}
html body.ifo-v3 .ifo-brand b{display:block;font-size:17px!important;font-weight:800;letter-spacing:-.04em;color:var(--v3-ink)!important;line-height:1.2}
html body.ifo-v3 .ifo-brand small{display:block;margin-top:2px;color:var(--v3-quiet)!important;font-size:12px!important;font-weight:400}
html body.ifo-v3 .ifo-navlabel{margin:14px 8px 7px!important;color:var(--v3-quiet)!important;font-size:12px!important;font-weight:700;letter-spacing:.12em}
html body.ifo-v3 .ifo-sidebar .ifo-nav{display:grid!important;flex-direction:column;gap:3px!important;margin:0!important;padding:0!important;overflow:visible}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a{display:flex!important;align-items:center;gap:10px!important;padding:9px 10px!important;border-radius:11px!important;background:transparent!important;
  color:var(--v3-ink2)!important;font-size:13px!important;font-weight:550!important;line-height:1.35;text-decoration:none}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a .ico{display:grid!important;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1px solid var(--v3-line);border-radius:7px;color:var(--v3-forest);font-size:13px}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a small{display:block;color:var(--v3-quiet);font-size:12px;font-weight:400}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a:hover{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a.active{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important;font-weight:700!important}
html body.ifo-v3 .ifo-sidenote{margin-top:18px;padding:12px;border:1px solid var(--v3-line);border-radius:14px;background:var(--v3-surface);color:var(--v3-ink2);font-size:12px;line-height:1.65}

/* ── 상단 바·본문 폭 ── */
html body.ifo-v3 .ifo-main{margin:0 0 0 260px!important;width:auto!important;max-width:none!important;padding:0!important;min-width:0}
html body.ifo-v3 header.ifo-topbar{position:sticky!important;top:0;z-index:40;height:56px!important;min-height:56px;margin:0!important;padding:0 clamp(16px,3vw,40px)!important;
  display:flex!important;align-items:center;justify-content:space-between;gap:12px;background:var(--v3-paper2)!important;border-bottom:1px solid var(--v3-line)!important;backdrop-filter:blur(12px)}
html body.ifo-v3 .ifo-crumb{color:var(--v3-quiet)!important;font-size:12px!important;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.ifo-v3 .ifo-topright{display:flex!important;align-items:center;gap:10px}
html body.ifo-v3 .ifo-login{border:1px solid var(--v3-line)!important;background:var(--v3-surface)!important;color:var(--v3-forest)!important;border-radius:999px!important;padding:7px 14px!important;font-size:12px!important;font-weight:650;min-height:34px}
html body.ifo-v3 .ifo-avatar{display:grid;place-items:center;width:34px!important;height:34px!important;border-radius:50%!important;background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important;font-size:12px!important;font-weight:700}
html body.ifo-v3 .ifo-theme-btn{height:34px!important;font-size:12px!important}
html body.ifo-v3 .ifo-mobnav{display:none}
html body.ifo-v3 .ifo-page-intro{max-width:1320px;margin:0 auto!important;padding:28px clamp(16px,3vw,40px) 0!important;background:transparent!important;border:0!important}
html body.ifo-v3 .ifo-page-intro h1,html body.ifo-v3 .ifo-page-intro h2{margin:0 0 8px!important;font-size:clamp(26px,3.4vw,38px)!important;line-height:1.2;letter-spacing:-.05em;color:var(--v3-ink)!important}
html body.ifo-v3 .ifo-page-intro p{max-width:760px;margin:0!important;color:var(--v3-ink2)!important;font-size:14px!important;line-height:1.75}
html body.ifo-v3 .ifo-page-intro .badges span{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important;border-radius:999px!important;font-size:12px!important}
html body.ifo-v3 main.ifo-content{max-width:1320px!important;margin:0 auto!important;padding:22px clamp(16px,3vw,40px) 56px!important;width:100%!important;box-sizing:border-box}

/* ── 카드·표면 ── */
html body.ifo-v3 .panel,html body.ifo-v3 .contentpanel,html body.ifo-v3 .card,html body.ifo-v3 .easy-card{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:var(--v3-radius)!important;box-shadow:var(--v3-shadow)!important;color:var(--v3-ink)!important}
html body.ifo-v3 .metric,html body.ifo-v3 .saved-item,html body.ifo-v3 .saved-row,html body.ifo-v3 .step{background:var(--v3-surface2)!important;border:1px solid var(--v3-line)!important;border-radius:14px!important}
html body.ifo-v3 .muted,html body.ifo-v3 .muted-small,html body.ifo-v3 small{color:var(--v3-quiet)!important}
html body.ifo-v3 .muted-small,html body.ifo-v3 small,html body.ifo-v3 .tp-note{font-size:12px!important}
html body.ifo-v3 h2{letter-spacing:-.04em}
html body.ifo-v3 .section-head,html body.ifo-v3 .subhead{border-color:var(--v3-line)!important}
html body.ifo-v3 .tag,html body.ifo-v3 .note,html body.ifo-v3 .status{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important;border-radius:999px!important;font-size:12px!important}

/* ── 입력·버튼 ── */
html body.ifo-v3 input:not(.h4 *),html body.ifo-v3 select:not(.h4 *),html body.ifo-v3 textarea:not(.h4 *){border:1px solid var(--v3-line)!important;border-radius:10px!important;background:var(--v3-surface)!important;color:var(--v3-ink)!important;font-size:14px!important;min-height:40px}
html body.ifo-v3 input[type=checkbox],html body.ifo-v3 input[type=radio]{min-height:0;accent-color:var(--v3-forest)}
html body.ifo-v3 input[type=range]{accent-color:var(--v3-forest);min-height:0}
html body.ifo-v3 input:not(.h4 *):focus,html body.ifo-v3 select:not(.h4 *):focus,html body.ifo-v3 textarea:not(.h4 *):focus{border-color:var(--v3-forest)!important;box-shadow:0 0 0 3px var(--v3-sage-soft)!important}
html body.ifo-v3 button:not(.h4 *),html body.ifo-v3 .btn:not(.h4 *){border-radius:999px!important;font-size:13px!important;font-weight:650;min-height:38px}
html body.ifo-v3 button.primary,html body.ifo-v3 .btn.primary{background:var(--v3-forest)!important;border-color:var(--v3-forest)!important;color:#fffaf0!important}
html body.ifo-v3 button.secondary,html body.ifo-v3 .btn.secondary{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;color:var(--v3-ink2)!important}
html body.ifo-v3 button:disabled{opacity:.55;cursor:not-allowed}

/* ── 표 ── */
html body.ifo-v3 table{font-size:13px}
html body.ifo-v3 th:not(.h4 *){background:var(--v3-surface2)!important;color:var(--v3-quiet)!important;font-size:12px!important;font-weight:650}
html body.ifo-v3 td,html body.ifo-v3 th{border-color:var(--v3-line)!important}
html body.ifo-v3 .ag-theme-quartz,html body.ifo-v3 .ag-theme-quartz-dark,html body.ifo-v3 .pfn-asset .ag-theme-quartz{--ag-font-size:13px;--ag-foreground-color:var(--v3-ink);--ag-background-color:var(--v3-surface);--ag-header-background-color:var(--v3-surface2);--ag-header-foreground-color:var(--v3-quiet);--ag-border-color:var(--v3-line);--ag-row-border-color:var(--v3-line);--ag-row-hover-color:var(--v3-paper2);--ag-odd-row-background-color:var(--v3-surface);--ag-selected-row-background-color:var(--v3-sage-soft)}

/* ── 새 화면 공통 부품 (v3-*) ── */
.v3-grid{display:grid;gap:14px}.v3-g2{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-g3{grid-template-columns:repeat(3,minmax(0,1fr))}.v3-g4{grid-template-columns:repeat(4,minmax(0,1fr))}.v3-g5{grid-template-columns:repeat(5,minmax(0,1fr))}
.v3-card{min-width:0;padding:18px;border:1px solid var(--v3-line);border-radius:var(--v3-radius);background:var(--v3-surface);box-shadow:var(--v3-shadow)}
.v3-card.soft{background:var(--v3-surface2);box-shadow:none}.v3-card.dark{background:var(--v3-forest);border-color:var(--v3-forest);color:#fbf7ee}
.v3-eyebrow{margin:0 0 5px;color:var(--v3-quiet);font:600 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase}
.v3-card h3{margin:0;font-size:16px;line-height:1.4;letter-spacing:-.025em}
.v3-metric-value{margin:8px 0 4px;font-size:clamp(22px,3vw,30px);font-weight:750;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.v3-foot{color:var(--v3-quiet);font-size:12px}
.v3-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.v3-stack{display:grid;gap:12px}
.v3-bar{height:8px;overflow:hidden;border-radius:999px;background:var(--v3-surface2)}.v3-bar>span{display:block;height:100%;border-radius:inherit;background:var(--v3-forest)}
.v3-callout{padding:13px 14px;border:1px solid var(--v3-amber-soft);border-radius:12px;background:var(--v3-amber-soft);color:var(--v3-ink);font-size:13px;line-height:1.7}
.v3-step{padding:14px;border:1px solid var(--v3-line);border-radius:13px;background:var(--v3-surface)}
.v3-step .n{display:inline-grid;place-items:center;width:28px;height:28px;margin-bottom:8px;border-radius:8px;background:var(--v3-sage-soft);color:var(--v3-forest);font-size:12px;font-weight:750}
.v3-field{display:grid;gap:6px;color:var(--v3-ink2);font-size:13px;font-weight:550}
.v3-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v3-pill{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid var(--v3-line);border-radius:999px;background:var(--v3-surface);color:var(--v3-ink2);font-size:12px}.v3-pill.on{background:var(--v3-forest);border-color:var(--v3-forest);color:#fff}
.v3-details{padding:14px 16px;border:1px solid var(--v3-line);border-radius:14px;background:var(--v3-surface)}.v3-details summary{cursor:pointer;font-weight:700}.v3-details p{margin:10px 0 0;color:var(--v3-ink2);font-size:13px}
.v3-good{color:var(--v3-good)}.v3-bad{color:var(--v3-bad)}

/* ── 좁은 화면 ── */
@media(max-width:1020px){html body.ifo-v3 .ifo-sidebar{width:220px!important}html body.ifo-v3 .ifo-main{margin-left:220px!important}.v3-g4,.v3-g5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  html body.ifo-v3 .ifo-sidebar{display:none!important}html body.ifo-v3 .ifo-main{margin-left:0!important}
  html body.ifo-v3 .ifo-mobnav{display:block}html body.ifo-v3 .ifo-mobnav summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--v3-line);border-radius:999px;background:var(--v3-surface);font-size:18px}
  html body.ifo-v3 .ifo-mobnav summary::-webkit-details-marker{display:none}
  html body.ifo-v3 .ifo-mobmenu{position:absolute;top:56px;left:0;right:0;display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:70vh;overflow:auto;padding:12px 16px 16px;background:var(--v3-paper2);border-bottom:1px solid var(--v3-line);box-shadow:var(--v3-shadow)}
  html body.ifo-v3 .ifo-mobnav[open] .ifo-mobmenu{display:grid}
  html body.ifo-v3 .ifo-mobmenu a{padding:10px 12px;border:1px solid var(--v3-line);border-radius:11px;background:var(--v3-surface);color:var(--v3-ink2);font-size:13px;text-decoration:none}
  html body.ifo-v3 .ifo-mobmenu a.active{background:var(--v3-sage-soft);color:var(--v3-forest);font-weight:700}
  .v3-g2,.v3-g3,.v3-g4,.v3-g5,.v3-fields{grid-template-columns:minmax(0,1fr)}
  html body.ifo-v3 .ifo-crumb{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ── 홈(home.html) 전용: 자체 sidebar/main/topbar 구조를 같은 v3 모양으로 ── */
html body.ifo-v3 main.main{margin:0 0 0 260px!important;width:auto!important;max-width:none!important;padding:0 clamp(16px,3vw,40px) 56px!important;box-sizing:border-box}
html body.ifo-v3 main.main>header.topbar{position:sticky!important;top:0;margin:0 calc(-1 * clamp(16px,3vw,40px))!important;padding:0 clamp(16px,3vw,40px)!important;height:56px!important;min-height:56px}
html body.ifo-v3 main.main>header.topbar .topright{display:flex!important;align-items:center;gap:10px;margin-left:auto}
@media(max-width:1020px){html body.ifo-v3 main.main{margin-left:220px!important}}
@media(max-width:760px){html body.ifo-v3 main.main{margin-left:0!important}}

/* ── 홈 본문 v3 스킨: 기존 DOM·ID 는 그대로, 카드·색·글자만 시안 값으로 ── */
html body.ifo-v3 #page-home{--blue:var(--v3-forest);--blue2:var(--v3-sage-soft);--purple:var(--v3-forest2);--gold:var(--v3-amber);--paper:var(--v3-surface);--line:var(--v3-line);--ink:var(--v3-ink);--muted:var(--v3-quiet);--r:var(--v3-radius)}
html body.ifo-v3 #page-home .investment-heading-title h1{margin:4px 0 8px;font-size:clamp(26px,3.4vw,40px);line-height:1.2;letter-spacing:-.05em;color:var(--v3-ink)}
html body.ifo-v3 #page-home .v3-lead{max-width:640px;margin:0;color:var(--v3-ink2);font-size:14px;line-height:1.75}
html body.ifo-v3 #page-home .v3-eyebrow{margin:0;color:var(--v3-quiet);font:600 12px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase}
html body.ifo-v3 #page-home .home-insight-card,html body.ifo-v3 #page-home .investment-main-panel,html body.ifo-v3 #page-home #homeTab-tax,html body.ifo-v3 #page-home #homeTab-extra,
html body.ifo-v3 #page-home .hs-panel,html body.ifo-v3 #page-home .ts-card,html body.ifo-v3 #page-home #v2Progress,html body.ifo-v3 #page-home .home-start-options,html body.ifo-v3 #page-home .home-onboarding-detail{
  background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:var(--v3-radius)!important;box-shadow:var(--v3-shadow)!important;color:var(--v3-ink)}
html body.ifo-v3 #page-home h2{letter-spacing:-.04em;color:var(--v3-ink)}
html body.ifo-v3 #page-home .home-insight-head p,html body.ifo-v3 #page-home .home-insight-note,html body.ifo-v3 #page-home .hero-note,html body.ifo-v3 #page-home .main-chart-foot,html body.ifo-v3 #page-home .hs-note,html body.ifo-v3 #page-home .demo-label{color:var(--v3-quiet)!important;font-size:12px!important}
html body.ifo-v3 #page-home .home-insight-icon{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important}
html body.ifo-v3 #page-home .home-threshold-track{background:var(--v3-surface2)!important}
html body.ifo-v3 #page-home .home-threshold-track i{background:var(--v3-forest)!important}
html body.ifo-v3 #page-home .hero-link,html body.ifo-v3 #page-home .v2-taxhead a,html body.ifo-v3 #page-home .home-insight-card a{color:var(--v3-forest)!important}
html body.ifo-v3 #page-home .chart-periods button{border:1px solid var(--v3-line)!important;border-radius:999px!important;background:var(--v3-surface)!important;color:var(--v3-ink2)!important;font-size:12px!important;min-height:30px}
html body.ifo-v3 #page-home .chart-periods button.on{background:var(--v3-forest)!important;border-color:var(--v3-forest)!important;color:#fffaf0!important}
html body.ifo-v3 #page-home .legend-item{border-radius:999px!important;font-size:12px!important}
html body.ifo-v3 #page-home .legend-item.active{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important;border-color:var(--v3-sage)!important}
html body.ifo-v3 #page-home .home-donut-hole{background:var(--v3-surface)!important}

/* ── 홈 분리 화면: /assets(자산 구성) · /performance(성과 비교) · /tax(세금·건보) ── */
html body.ifo-v3.v3-view #page-home .investment-home{display:flex!important;flex-direction:column;gap:14px}
html body.ifo-v3.v3-view #page-home #homeOnboardingDetail,html body.ifo-v3.v3-view #page-home #homeStartOptions,html body.ifo-v3.v3-view #page-home .home-start-options{display:none!important}
html body.ifo-v3.v3-view-assets #page-home .investment-main-panel,html body.ifo-v3.v3-view-assets #page-home #homeTab-tax,html body.ifo-v3.v3-view-assets #page-home #homeTab-extra,html body.ifo-v3.v3-view-assets #page-home .home-insight-card[aria-labelledby="homeIncomeTitle"]{display:none!important}
html body.ifo-v3.v3-view-perf #page-home .home-insight-card,html body.ifo-v3.v3-view-perf #page-home #homeTab-tax,html body.ifo-v3.v3-view-perf #page-home #homeTab-extra,html body.ifo-v3.v3-view-perf #page-home #v2Progress{display:none!important}
html body.ifo-v3.v3-view-tax #page-home .investment-main-panel,html body.ifo-v3.v3-view-tax #page-home .home-insight-card[aria-labelledby="homeAllocationTitle"],html body.ifo-v3.v3-view-tax #page-home #v2Progress{display:none!important}
html body.ifo-v3.v3-view #page-home .investment-main-panel,html body.ifo-v3.v3-view #page-home #homeTab-tax,html body.ifo-v3.v3-view #page-home #homeTab-extra,html body.ifo-v3.v3-view #page-home .home-insight-card{grid-column:auto!important;grid-row:auto!important;width:100%}
html body.ifo-v3.v2-home:not(.v2-fees) #page-home .investment-heading-title{display:block!important}
html body.ifo-v3.v2-home:not(.v2-fees) #page-home .investment-heading{height:auto!important;min-height:0;align-items:flex-start}

/* ── 계산 화면 3종(27년 절세·간단 세금계산기·은퇴): 글자 12px 이상, 색을 v3 변수로 ── */
html body.ifo-v3 .easy-wrap .easy-card>summary small,html body.ifo-v3 .easy-wrap .rate-label,html body.ifo-v3 .easy-wrap .metric-label,html body.ifo-v3 .easy-wrap .field-hint,
html body.ifo-v3 .easy-wrap .account-tax-help>div,html body.ifo-v3 .easy-wrap .header-total,html body.ifo-v3 .easy-wrap .section-help,html body.ifo-v3 .easy-wrap .account-control>span,
html body.ifo-v3 .easy-wrap .easy-result-head p,html body.ifo-v3 .easy-wrap .scenario-cards article small,html body.ifo-v3 .easy-wrap .scenario-cards article b,html body.ifo-v3 .easy-wrap .easy-table,html body.ifo-v3 .easy-wrap .easy-disclaimer,
html body.ifo-v3 .p27-seg b,html body.ifo-v3 .p27-vl em,html body.ifo-v3 .p27-table th small,html body.ifo-v3 .p27-table td small,html body.ifo-v3 .p27-tip,html body.ifo-v3 .p27-d,html body.ifo-v3 .p27-kpi small,
html body.ifo-v3 .p27-ft th,html body.ifo-v3 .p27-ft td small,html body.ifo-v3 .p27-ft td.acts button,html body.ifo-v3 .xl,html body.ifo-v3 .xl>small,html body.ifo-v3 .xr,html body.ifo-v3 .xn,html body.ifo-v3 .rl,html body.ifo-v3 .p27-mini,html body.ifo-v3 .p27-fin-in small{font-size:12px!important}
html body.ifo-v3 .easy-wrap .easy-top,html body.ifo-v3 .easy-wrap .easy-card,html body.ifo-v3 .easy-wrap .scenario-cards article,html body.ifo-v3 .easy-wrap .account-control{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:var(--v3-radius)!important;color:var(--v3-ink)}
html body.ifo-v3 .easy-wrap .scenario-cards article:first-child{background:var(--v3-sage-soft)!important;border:2px solid var(--v3-forest)!important}
html body.ifo-v3 .easy-wrap .scenario-cards article:first-child b,html body.ifo-v3 .easy-wrap .scenario-cards article:first-child strong{color:var(--v3-forest)!important}
html body.ifo-v3 .easy-wrap .header-total strong,html body.ifo-v3 .easy-wrap .acct-value{color:var(--v3-forest)!important}
html body.ifo-v3 .easy-wrap .easy-card>summary::before{background:var(--v3-sage-soft)!important;color:var(--v3-forest)!important}
html body.ifo-v3 .easy-wrap .section-help,html body.ifo-v3 .easy-wrap .field-hint,html body.ifo-v3 .easy-wrap .easy-card>summary small,html body.ifo-v3 .easy-wrap .easy-disclaimer{color:var(--v3-quiet)!important}
/* 27년 절세: 가입자 토글·갈색 글자·칩 */
html body.ifo-v3 .p27-toggle button{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;color:var(--v3-ink2)!important;box-shadow:none!important}
html body.ifo-v3 .p27-toggle button.p27-on,html body.ifo-v3 .p27-toggle button.loc.p27-on,html body.ifo-v3 .p27-toggle button.emp.p27-on{background:var(--v3-forest)!important;border-color:var(--v3-forest)!important;color:#fffaf0!important;outline:none!important;box-shadow:none!important}
html body.ifo-v3 .p27-cond,html body.ifo-v3 .p27-sub,html body.ifo-v3 .p27-tablewrap,html body.ifo-v3 .p27-box{color:var(--v3-ink)!important}
html body.ifo-v3 .p27-table th,html body.ifo-v3 .p27-table td{color:var(--v3-ink)!important;border-color:var(--v3-line)!important}
html body.ifo-v3 .p27-sliders input[type=range]{accent-color:var(--v3-forest)}
html body.ifo-v3 .p27-pop{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:14px!important;box-shadow:var(--v3-shadow)!important;color:var(--v3-ink)!important}
html body.ifo-v3 .p27-picks button,html body.ifo-v3 #finBtn,html body.ifo-v3 #pickBtn{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;color:var(--v3-ink2)!important}
/* 은퇴 화면(plan.html) 금색 강조 → 포레스트 */
html body.ifo-v3 .panel h2,html body.ifo-v3 .section-head h2{color:var(--v3-ink)}
html body.ifo-v3 .plan-tabs button{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;color:var(--v3-ink2)!important;border-radius:999px!important}
html body.ifo-v3 .plan-tabs button.on{background:var(--v3-forest)!important;border-color:var(--v3-forest)!important;color:#fffaf0!important}
html body.ifo-v3 .plan-sl input[type=range],html body.ifo-v3 .p27-sl input[type=range],html body.ifo-v3 .p27-only input,html body.ifo-v3 .account-control input[type=range]{accent-color:var(--v3-forest)}
html body.ifo-v3 .xn .rl.base{background:var(--v3-forest)!important}
html body.ifo-v3 .scenario-cards article.active,html body.ifo-v3 .compare-table th.selected-col,html body.ifo-v3 .compare-table td.selected-col{background:var(--v3-sage-soft)!important;border-color:var(--v3-forest)!important}
html body.ifo-v3 .account-control output{color:var(--v3-forest)!important}

/* ── 포트폴리오 표 화면(pfmgr·templates): 필터 줄·표·팝업 ── */
html body.ifo-v3 #tpAsset{max-width:100%}
html body.ifo-v3 #tpAsset .grid-search-bar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:12px;border:1px solid var(--v3-line);border-radius:var(--v3-radius);background:var(--v3-surface)}
html body.ifo-v3 #tpAsset .grid-search-bar select{width:auto;min-width:170px;flex:0 0 auto}
html body.ifo-v3 #tpAsset .grid-search-bar input[type=text],html body.ifo-v3 #tpAsset .grid-search-bar .grid-search-input{flex:1 1 220px;min-width:160px;width:auto}
html body.ifo-v3 #tpAsset .grid-search-bar button,html body.ifo-v3 #tpAsset .grid-search-bar .dash3-sort-btn{flex:0 0 auto;padding:8px 14px!important;border:1px solid var(--v3-line)!important;background:var(--v3-surface)!important;color:var(--v3-ink2)!important;white-space:nowrap}
html body.ifo-v3 #tpAsset .grid-search-bar #tpAdd{background:var(--v3-forest)!important;border-color:var(--v3-forest)!important;color:#fffaf0!important}
html body.ifo-v3 #tpAsset .grid-search-count{color:var(--v3-quiet);font-size:12px;margin-left:auto}
html body.ifo-v3 .tp-status{margin:0 0 8px;color:var(--v3-quiet);font-size:12px}
html body.ifo-v3 .tp-link{color:var(--v3-forest)!important;font-size:13px;font-weight:650;text-decoration:none}
html body.ifo-v3 #universeGrid{border:1px solid var(--v3-line);border-radius:var(--v3-radius);overflow:hidden;background:var(--v3-surface)}
html body.ifo-v3 #universeGrid .ag-header-cell-label{justify-content:center}
html body.ifo-v3 .tp-modal{background:rgba(28,43,35,.45)!important}
html body.ifo-v3 .tp-dialog{background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;border-radius:20px!important;box-shadow:var(--v3-shadow)!important;color:var(--v3-ink)!important}
html body.ifo-v3 .tp-toast{background:var(--v3-forest)!important;color:#fffaf0!important;border-radius:12px!important;font-size:13px!important}
html body.ifo-v3 .tp-dialog label{font-size:13px}
html body.ifo-v3 #tpAsset .ag-theme-quartz,html body.ifo-v3 #universeGrid .ag-root-wrapper{--ag-font-size:13px}

/* ── 오늘의 요약(home3) 부품 ── */
.v3-sec{margin:0 0 44px;scroll-margin-top:76px}.v3-sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 16px}.v3-sechead h2{margin:0;font-size:clamp(20px,2.6vw,28px);line-height:1.25}
.v3-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 14px;border:1px solid var(--v3-line);border-radius:999px;background:var(--v3-surface);color:var(--v3-ink2);font-size:13px;font-weight:650;text-decoration:none}
.v3-btn.primary{background:var(--v3-forest);border-color:var(--v3-forest);color:#fffaf0}.v3-btn:hover{filter:brightness(1.04)}
.v3-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.v3-hr{border:0;border-top:1px solid var(--v3-line);margin:14px 0}.v3-line{margin:0 0 12px;font-size:14px}.v3-quiet{color:var(--v3-quiet)}
.v3-tablewrap{width:100%;overflow-x:auto;border:1px solid var(--v3-line);border-radius:12px;background:var(--v3-surface)}.v3-table{width:100%;border-collapse:collapse;text-align:left}.v3-table th,.v3-table td{padding:11px 12px;border-bottom:1px solid var(--v3-line);white-space:nowrap;font-size:13px}.v3-table tr:last-child td{border-bottom:0}.v3-table .r{text-align:right}.num{font-variant-numeric:tabular-nums}
.v3-donut{position:relative;width:min(240px,64vw);aspect-ratio:1;margin:0 auto;border-radius:50%;background:var(--v3-surface2)}.v3-donut-hole{position:absolute;inset:21%;display:grid;place-content:center;border-radius:50%;background:var(--v3-surface);text-align:center;font-size:13px;line-height:1.6}.v3-donut-hole strong{font-size:14px}
.v3-legend{display:grid;gap:10px}.v3-legrow{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:13px}.v3-legrow i{width:9px;height:9px;border-radius:50%}
.v3-linkcard{display:block;text-decoration:none;color:inherit}.v3-linkcard:hover{border-color:var(--v3-line2);transform:translateY(-2px)}
.v3-metric-value{font-size:clamp(20px,2vw,28px);white-space:nowrap}

/* 2026-11-23 템플릿 모달·알림, 시안 구성 화면 공통 */
.v3-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:16px;background:rgba(32,28,20,.45)}.v3-modal[hidden]{display:none}
.v3-dialog{width:min(480px,100%);max-height:90vh;overflow:auto;padding:20px;border:1px solid var(--v3-line);border-radius:var(--v3-radius);background:var(--v3-surface);box-shadow:var(--v3-shadow)}
.v3-dialog h3{margin:0 0 8px}.v3-dialog select,.v3-dialog input{width:100%}
.v3-toast{position:fixed;left:50%;bottom:24px;z-index:210;transform:translateX(-50%);padding:11px 16px;border-radius:12px;background:var(--v3-forest);color:#fffaf0;font-size:13px}.v3-toast[hidden]{display:none}
.v3-card .v3-bar>span{min-width:0}

/* ── 테마 7종: 브랜드색 토큰(포레스트·세이지) — hsl() 로 써서 theme.js 의 자동 색 변환이 건드리지 않게 한다. 베이지는 기본값(초록). ── */
html[data-ifo-theme="purple"]{--v3-forest:hsl(262 28% 46%);--v3-forest2:hsl(262 30% 56%);--v3-sage:hsl(262 25% 68%);--v3-sage-soft:hsl(262 40% 93%)}
html[data-ifo-theme="gray"]{--v3-forest:hsl(215 14% 30%);--v3-forest2:hsl(215 12% 42%);--v3-sage:hsl(215 10% 62%);--v3-sage-soft:hsl(215 15% 92%)}
html[data-ifo-theme="navy"]{--v3-forest:hsl(219 55% 26%);--v3-forest2:hsl(219 50% 36%);--v3-sage:hsl(219 35% 62%);--v3-sage-soft:hsl(219 45% 93%)}
html[data-ifo-theme="yellow"]{--v3-forest:hsl(40 84% 34%);--v3-forest2:hsl(40 76% 44%);--v3-sage:hsl(40 60% 62%);--v3-sage-soft:hsl(40 80% 90%)}
html[data-ifo-theme="black"]{--v3-forest:hsl(0 0% 8%);--v3-forest2:hsl(0 0% 22%);--v3-sage:hsl(0 0% 55%);--v3-sage-soft:hsl(0 0% 92%)}
html[data-ifo-theme="dark"]{--v3-forest:hsl(214 55% 68%);--v3-forest2:hsl(214 50% 58%);--v3-sage:hsl(214 30% 46%);--v3-sage-soft:hsl(214 25% 20%)}
html[data-ifo-theme="dark"]{--panel-fg:hsl(214 20% 10%)}
html[data-ifo-theme="dark"] .h4{--panel:hsl(214 40% 28%);--panel-fg:hsl(214 30% 94%)}

/* ── 새 시안 셸(사이드바·상단바) ── */
html body.ifo-v3 .ifo-sidebar{width:248px!important;padding:24px 16px!important;background:color-mix(in srgb,var(--v3-paper2) 80%,transparent)!important;backdrop-filter:blur(14px);display:flex!important;flex-direction:column}
html body.ifo-v3 .ifo-main{margin-left:248px!important}
html body.ifo-v3 .ifo-mark{position:relative;width:36px!important;height:36px!important;border-radius:10px!important;font-family:ui-monospace,Menlo,monospace;font-size:12px!important;font-weight:600;letter-spacing:-.04em;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
html body.ifo-v3 .ifo-mark i{position:absolute;right:6px;top:6px;width:4px;height:4px;border-radius:50%;background:var(--v3-amber)}
html body.ifo-v3 .ifo-brand b{font-size:17px!important;font-weight:600;letter-spacing:-.03em}
html body.ifo-v3 .ifo-brand small{font-size:11px!important;letter-spacing:.1em}
html body.ifo-v3 .ifo-navlabel{margin:28px 12px 8px!important;font-size:11px!important;letter-spacing:.14em;text-transform:uppercase}
html body.ifo-v3 .ifo-navlabel:first-of-type{margin-top:12px!important}
html body.ifo-v3 .ifo-sidebar .ifo-nav{gap:2px!important}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a{position:relative;padding:9px 12px!important;border-radius:8px!important;font-weight:500!important;gap:12px!important}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a .ico{width:18px;height:18px;flex:0 0 18px;border:0!important;border-radius:0;color:var(--v3-quiet)}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a small{margin-top:1px;font-size:11px}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a:hover{background:color-mix(in srgb,var(--v3-surface2) 70%,transparent)!important;color:var(--v3-ink)!important}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a.active{background:color-mix(in srgb,var(--v3-forest) 8%,transparent)!important;color:var(--v3-ink)!important;font-weight:600!important}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a.active .ico{color:var(--v3-forest)}
html body.ifo-v3 .ifo-sidebar .ifo-nav>a.active::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--v3-forest)}
html body.ifo-v3 .ifo-sidefoot{margin-top:auto;padding-top:24px}
html body.ifo-v3 .ifo-samplecard{margin-bottom:12px;padding:14px;border:1px solid var(--v3-line);border-radius:12px;background:var(--v3-surface)}
html body.ifo-v3 .ifo-samplecard[hidden]{display:none}
html body.ifo-v3 .ifo-samplecard p{margin:0;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--v3-ink)}
html body.ifo-v3 .ifo-samplecard i,html body.ifo-v3 .ifo-chip i{width:6px;height:6px;border-radius:50%;background:var(--v3-amber);display:inline-block}
html body.ifo-v3 .ifo-samplecard span{display:block;margin:6px 0 8px;font-size:11.5px;line-height:1.6;color:var(--v3-quiet)}
html body.ifo-v3 .ifo-samplecard a{font-size:12px;font-weight:600;color:var(--v3-forest);text-decoration:none}
html body.ifo-v3 .ifo-sidenote{margin:0!important;border:0!important;background:transparent!important;padding:0 4px!important;font-size:11.5px!important;color:var(--v3-quiet)!important}
html body.ifo-v3 header.ifo-topbar{height:64px!important;background:color-mix(in srgb,var(--v3-paper) 85%,transparent)!important;backdrop-filter:blur(14px)}
html body.ifo-v3 .ifo-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--v3-line);border-radius:999px;background:var(--v3-surface);font-size:12px;color:var(--v3-ink2)}
html body.ifo-v3 .ifo-chip[hidden]{display:none}
html body.ifo-v3 .ifo-date{font-family:ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.02em;color:var(--v3-quiet)}
@media(max-width:1180px){html body.ifo-v3 .ifo-date{display:none}}
@media(max-width:1020px){html body.ifo-v3 .ifo-sidebar{width:228px!important}html body.ifo-v3 .ifo-main{margin-left:228px!important}}
@media(max-width:760px){html body.ifo-v3 .ifo-main{margin-left:0!important}html body.ifo-v3 .ifo-chip{display:none}}

/* 본문 폭·여백: 시안 main = max-w 1240, px 16/24/32, py 32/40 */
html body.ifo-v3 main.ifo-content{max-width:1240px!important;padding:32px 16px!important}
@media(min-width:640px){html body.ifo-v3 main.ifo-content{padding:32px 24px!important}}
@media(min-width:1024px){html body.ifo-v3 main.ifo-content{padding:40px 32px!important}}
html body.ifo-v3{margin:0!important}
html body.ifo-v3 header.ifo-topbar{padding:0 16px!important}
@media(min-width:640px){html body.ifo-v3 header.ifo-topbar{padding:0 24px!important}}
@media(min-width:1024px){html body.ifo-v3 header.ifo-topbar{padding:0 32px!important}}
html body.ifo-m .ifo-sidebar{display:none!important}html body.ifo-m .ifo-main{margin-left:0!important}html body.ifo-m .m-chipnav{top:64px}html body.ifo-m .ifo-crumb,html body.ifo-m .ifo-date{display:none}
html body.ifo-v3 #ifoSampleBar{display:none!important}
html body.ifo-m .ifo-mobnav{display:none!important}html body.ifo-m .ifo-crumb{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.h4{font-family:"IBM Plex Sans KR",Pretendard,-apple-system,BlinkMacSystemFont,system-ui,sans-serif}
html.ifo-has-samplebar body.ifo-v3{padding-top:0!important}html.ifo-has-samplebar body.ifo-v3 .ifo-sidebar{top:0!important}

/* 상단 오른쪽 버튼: 시안과 같은 크기·모양 */
html body.ifo-v3 .ifo-topright{gap:10px}
html body.ifo-v3 .ifo-chip{font-size:10.5px;padding:6px 10px;line-height:1.5}
html body.ifo-v3 .ifo-date{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10px;letter-spacing:.025em;color:var(--v3-quiet)}
html body.ifo-v3 .ifo-datachip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--v3-line);border-radius:999px;background:var(--v3-surface);color:var(--v3-ink2);font-size:11px;font-weight:500;line-height:1.5;text-decoration:none}
html body.ifo-v3 .ifo-datachip:hover{border-color:var(--v3-line-strong,var(--v3-line))}
html body.ifo-v3 .ifo-datachip svg{color:var(--v3-good,#2f7a52)}
html body.ifo-v3 .ifo-datachip[hidden]{display:none}
html body.ifo-v3 .ifo-login{display:none!important}
html body.ifo-v3 .ifo-theme-wrap .ifo-theme-btn{width:36px;height:36px!important;padding:0!important;justify-content:center;gap:0;border-radius:50%!important;background:var(--v3-surface)!important;border:1px solid var(--v3-line)!important;color:var(--v3-ink2)!important}
html body.ifo-v3 .ifo-theme-btn i,html body.ifo-v3 .ifo-theme-btn span{display:none!important}
html body.ifo-v3 .ifo-theme-btn::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/></svg>") center/contain no-repeat}
html body.ifo-v3 .ifo-avatar{width:36px!important;height:36px!important;border:1px solid var(--v3-line);background:var(--v3-surface2)!important;color:var(--v3-forest)!important;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10px!important;font-weight:600}
@media(max-width:1279px){html body.ifo-v3 .ifo-date{display:none}}
@media(max-width:639px){html body.ifo-v3 .ifo-datachip{display:none}}
html body.ifo-v3 .ifo-avatar,html body.ifo-v3 .ifo-theme-wrap .ifo-theme-btn,html body.ifo-v3 .ifo-chip,html body.ifo-v3 .ifo-datachip{box-sizing:border-box}
html body.ifo-v3 .ifo-theme-wrap{display:flex;align-items:center}
