.allocation-page { color: #3a3b45; font-size: 14px; padding-bottom: 1rem; }
.allocation-page .allocation-heading { gap: 1rem; }
.allocation-page .allocation-kicker { color: #4e73df; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: .4rem; }
.allocation-page h1 { font-size: 1.65rem; font-weight: 700; }
.allocation-page .allocation-description { color: #6e707e; line-height: 1.7; max-width: 780px; }
.allocation-page .nav-pills { gap: .35rem; }
.allocation-page .nav-pills .nav-link { border: 1px solid #e3e6f0; background: #fff; border-radius: .35rem; color: #5a5c69; padding: .6rem 1rem; }
.allocation-page .nav-pills .nav-link.active { background: #4e73df; color: #fff; border-color: #4e73df; }
.allocation-page .allocation-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.allocation-page .allocation-toolbar label { margin: 0; }
.allocation-page .allocation-toolbar .form-control { width: auto; }
.allocation-page .allocation-status { background: #f0f4ff; color: #3c579e; padding: .8rem 1rem; border-radius: .35rem; line-height: 1.6; }
.allocation-page .allocation-status.is-error { background: #fff1f0; color: #a93226; }
.allocation-page .allocation-status.is-empty { background: #fff8e7; color: #856404; }
.allocation-page .allocation-table-wrap { max-height: 470px; overflow: auto; }
.allocation-page .table { margin: 0; color: #3a3b45; font-size: 13px; }
.allocation-page .table thead th { position: sticky; top: 0; background: #f8f9fc; z-index: 1; vertical-align: middle; white-space: nowrap; font-weight: 600; }
.allocation-page .table td { vertical-align: middle; }
.allocation-page .allocation-input { min-width: 76px; width: 92px; text-align: right; font-size: 13px; }
.allocation-page .allocation-input.allocation-manual-weight { border-color: var(--bs-primary, #4e73df); box-shadow: inset 3px 0 0 var(--bs-primary, #4e73df); }
.allocation-page .allocation-table-wrap .form-control { color: #3a3b45; }
.allocation-page .allocation-asset-name { min-width: 150px; font-weight: 600; }
.allocation-page .allocation-subtext { display: block; color: #6e707e; font-size: 11px; font-weight: 400; margin-top: .2rem; }
.allocation-page .allocation-form-actions { gap: .5rem; }
.allocation-page .allocation-form-actions .btn { font-size: 13px; }
.allocation-page .allocation-chart { height: 320px; width: 100%; }
.allocation-page .allocation-chart-wide { height: 350px; }
.allocation-page .allocation-metric { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.allocation-page .allocation-metric-label { color: #6e707e; font-size: 12px; margin-bottom: .35rem; }
.allocation-page .allocation-help { color: #6e707e; font-size: 12px; line-height: 1.7; margin: .65rem 0 0; }
.allocation-page .allocation-result-note { min-height: 1.5rem; }
.allocation-page .allocation-total { font-variant-numeric: tabular-nums; font-weight: 700; }
.allocation-page .allocation-positive { color: #147d57; }
.allocation-page .allocation-negative { color: #c0392b; }
.allocation-page .allocation-empty { padding: 2rem 1rem; text-align: center; color: #6e707e; }
.allocation-page .allocation-tdf-form .form-group { margin-bottom: 1.2rem; }
.allocation-page .allocation-tdf-form label { font-size: 13px; font-weight: 600; }
.allocation-page .allocation-tdf-form .form-control { font-size: 14px; }
.allocation-page .allocation-field-note { margin-top: .4rem; color: #6e707e; font-size: 11px; }
.allocation-page .allocation-scroll-hint { display: none; }
.allocation-page .allocation-date-input { min-width: 150px; }
.allocation-page .allocation-factor-controls label { font-size: 12px; margin-bottom: .35rem; }
.allocation-page .allocation-toolbar .form-control { max-width: 100%; }
.allocation-page .allocation-plan-list { max-height: 360px; overflow: auto; }
.allocation-page .allocation-plan-list table { min-width: 650px; }
.allocation-page .allocation-plan-list th:first-child { width: 110px; }
.allocation-page .allocation-plan-name { min-width: 160px; max-width: 360px; overflow-wrap: anywhere; }
.allocation-page .allocation-plan-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.allocation-page .allocation-plan-actions { min-width: 220px; white-space: nowrap; }
.allocation-page .allocation-plan-actions .btn { margin: .15rem .3rem .15rem 0; }
.allocation-page .allocation-plan-action { padding: 1rem; background: #f8f9fc; border: 1px solid #dfe4f2; border-radius: .35rem; }
.allocation-page .allocation-plan-action p { overflow-wrap: anywhere; }
.allocation-page #renamePlanName { max-width: 520px; }
.allocation-page .allocation-plan-highlight { background: #edf3ff; }
.allocation-page [hidden] { display: none !important; }
.allocation-page #backtestForm .form-control { font-size: 14px; }
.allocation-page #backtestRows td { white-space: nowrap; }
.allocation-page #backtestIndexRows td { white-space: nowrap; }
.allocation-page #backtestAssumptions p { margin: .4rem 0; }
.allocation-page .allocation-legend { font-size: 12px; margin-top: .5rem; color: #6e707e; }
.allocation-page .card-header h2 { font-size: 14px; }
@media (max-width: 767px) {
    .allocation-page .allocation-scroll-hint { display: block; }
    .allocation-page h1 { font-size: 1.35rem; }
    .allocation-page .nav-pills .nav-link { padding: .55rem .65rem; font-size: 12px; }
    .allocation-page .allocation-heading { display: block !important; }
    .allocation-page .allocation-toolbar { gap: .5rem; }
    .allocation-page .allocation-chart { height: 280px; }
    .allocation-page .allocation-chart-wide { height: 300px; }
    .allocation-page .allocation-metric { font-size: 1.2rem; }
    .allocation-page .allocation-input { width: 78px; }
}


/* v1.98: 소개 페이지 전용, 계산/설정 화면에 영향 없는 디자인 */
.allocation-intro {
    --intro-ink: #26334b;
    --intro-muted: #617086;
    --intro-line: #e1e8f0;
    --intro-blue: #3d6eb6;
    --intro-surface: #ffffff;
    color: var(--intro-ink);
    font-size: 14px;
    line-height: 1.7;
}
.allocation-intro .intro-section { margin: 0 0 1.8rem; }
.allocation-intro .intro-section-overline { display: block; color: #6080aa; font-size: 10px; font-weight: 800; letter-spacing: .14em; margin-bottom: .34rem; }
.allocation-intro .intro-question { border: 1px solid #dce7f4; border-radius: 15px; background: #edf4fa; padding: 1.1rem 1.4rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.allocation-intro .intro-question h2 { color: #284469; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.5; }
.allocation-intro .intro-question p { color: #57718d; font-size: .91rem; margin: 0 0 .05rem; }
.allocation-intro .intro-method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 15px; }
.allocation-intro .intro-method { display: flex; flex-direction: column; background: var(--intro-surface); border: 1px solid var(--intro-line); border-radius: 13px; box-shadow: 0 3px 12px rgba(43,64,94,.035); overflow: hidden; min-width: 0; transition: border-color .15s ease; }
.allocation-intro .intro-method:hover { border-color: #b8cae0; }
.allocation-intro .intro-method-body { display: grid; grid-template-columns: minmax(0,1fr) 168px; gap: 13px; flex: 1; padding: 1.25rem 1.25rem 1.1rem; align-items: center; }
.allocation-intro .intro-method-kicker { color: var(--method-accent); font-size: .83rem; font-weight: 800; margin: 0 0 .35rem; }
.allocation-intro .intro-method h3 { color: var(--intro-ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.025em; margin: 0 0 1.05rem; padding-left: 10px; border-left: 3px solid var(--method-accent); line-height: 1.35; }
.allocation-intro .intro-method-text > p:last-child { color: #566478; font-size: .91rem; line-height: 1.85; margin: 0; }
.allocation-intro .intro-method-text strong { color: #344d6b; font-weight: 750; }
.allocation-intro .intro-method-art { background: var(--method-tint); border-radius: 11px; padding: .62rem; }
.allocation-intro .intro-method-art svg { width: 100%; height: auto; display: block; }
.allocation-intro .intro-svg-label { font-size: 10px; fill: #65748c; font-weight: 700; }
.allocation-intro .intro-svg-legend { font-size: 9px; fill: #7b889b; }
.allocation-intro .intro-method-link { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1.2rem; border-top: 1px solid #edf1f6; color: var(--method-accent); font-size: .85rem; font-weight: 800; text-decoration: none; }
.allocation-intro .intro-method-link:hover { color: var(--method-accent); background: var(--method-tint); text-decoration: none; }
.allocation-intro .intro-method-link span { font-size: 1.08rem; }
.allocation-intro .intro-workflow { background: #fff; border: 1px solid var(--intro-line); border-radius: 15px; padding: 1.45rem 1.4rem 1.2rem; }
.allocation-intro .intro-section-header { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.35rem; }
.allocation-intro .intro-section-header h2 { font-size: 1.22rem; color: var(--intro-ink); font-weight: 800; margin: 0; }
.allocation-intro .intro-section-header p { color: var(--intro-muted); font-size: .9rem; margin: 0; }
.allocation-intro .intro-step-track { display: flex; align-items: stretch; gap: 6px; }
.allocation-intro .intro-step-card { flex: 1 1 0; min-width: 0; border: 1px solid #e6ebf2; background: #f8fafc; border-radius: 12px; padding: 1rem .92rem 1.05rem; }
.allocation-intro .intro-step-head { display: flex; gap: .7rem; align-items: center; min-height: 36px; margin-bottom: .7rem; }
.allocation-intro .intro-step-number { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; background: #e5edf9; border-radius: 10px; color: #3266a1; font-size: 1.22rem; font-weight: 850; line-height: 1; }
.allocation-intro .intro-step-head h3 { color: #304a69; font-size: .96rem; font-weight: 800; margin: 0; line-height: 1.45; }
.allocation-intro .intro-step-card p { color: #647085; font-size: .88rem; line-height: 1.8; margin: 0; }
.allocation-intro .intro-step-card strong { color: #3a5776; }
.allocation-intro .intro-track-arrow { flex: 0 0 25px; display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 800; color: #90a7c5; }
.allocation-intro .intro-workflow-note { color: #647085; font-size: .86rem; line-height: 1.85; padding: .85rem .15rem 0; margin: 0; }
.allocation-intro .intro-backtest { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 26px; background: #f1f5fa; border: 1px solid #e0e9f3; border-radius: 15px; padding: 1.65rem 1.6rem; align-items: center; }
.allocation-intro .intro-backtest-copy h2 { font-size: 1.32rem; font-weight: 800; line-height: 1.5; margin: 0 0 1.15rem; letter-spacing: -.025em; color: #284669; }
.allocation-intro .intro-backtest-copy p { color: #526379; line-height: 1.9; margin: 0 0 .7rem; }
.allocation-intro .intro-backtest-copy strong { color: #304e73; }
.allocation-intro .intro-action-link { display: inline-flex; gap: 1.5rem; align-items: center; background: #3d6eb6; color: #fff; text-decoration: none; font-size: .91rem; font-weight: 750; border-radius: 8px; padding: .7rem 1rem; margin-top: .55rem; }
.allocation-intro .intro-action-link:hover { background: #315c9c; color: #fff; text-decoration: none; }
.allocation-intro .intro-backtest-graphic { background: #fff; border: 1px solid #dde5f0; border-radius: 12px; padding: 1rem 1.15rem .8rem; min-width: 0; }
.allocation-intro .intro-graphic-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .83rem; font-weight: 800; color: #334d6c; }
.allocation-intro .intro-graphic-top small { color: #9da9b7; font-weight: 600; font-size: .72rem; white-space: nowrap; }
.allocation-intro .intro-backtest-graphic svg { display: block; width: 100%; height: auto; }
.allocation-intro .intro-chart-label { fill: #9aa6b5; font-size: 11px; }
.allocation-intro .intro-chart-legend { display: flex; align-items: center; justify-content: center; gap: 1.15rem; color: #55667e; font-size: .8rem; margin: -.1rem 0 .75rem; }
.allocation-intro .intro-chart-legend span { display: inline-flex; align-items: center; gap: .34rem; }
.allocation-intro .intro-legend-dot { display: inline-block; width: 13px; height: 3px; border-radius: 2px; }
.allocation-intro .intro-legend-dot.is-quarter { background: #4977ad; }
.allocation-intro .intro-legend-dot.is-half { background: #51a39a; }
.allocation-intro .intro-legend-dot.is-year { background: #b59a72; }
.allocation-intro .intro-graphic-bottom { background: #f7f9fc; border-radius: 7px; padding: .55rem .7rem; text-align: center; font-size: .8rem; font-weight: 700; color: #63758b; }
.allocation-intro .intro-graphic-bottom span { color: #a1b1c5; padding: 0 .35rem; }
.allocation-intro .intro-disclaimer { color: #8591a1; font-size: .8rem; margin: -1.2rem .2rem 1.65rem; }
.allocation-intro .intro-login-note { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; border-top: 1px solid var(--intro-line); padding: 1.1rem .25rem 0; }
.allocation-intro .intro-login-note p { color: #58677d; font-size: .9rem; margin: 0; line-height: 1.7; }
.allocation-intro .intro-login-note a { white-space: nowrap; color: #3d6eb6; font-size: .88rem; font-weight: 800; text-decoration: none; }
.allocation-intro .intro-login-note a:hover { text-decoration: underline; }
@media (max-width: 1199px) {
    .allocation-intro .intro-method-body { grid-template-columns: 1fr; }
    .allocation-intro .intro-method-art { max-width: 225px; width: 100%; }
    .allocation-intro .intro-backtest { gap: 16px; }
}
@media (max-width: 767px) {
    .allocation-intro .intro-question, .allocation-intro .intro-section-header, .allocation-intro .intro-login-note { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .allocation-intro .intro-question { padding: 1rem; }
    .allocation-intro .intro-question h2 { font-size: 1.02rem; }
    .allocation-intro .intro-method-grid { grid-template-columns: 1fr; }
    .allocation-intro .intro-method-body { grid-template-columns: minmax(0,1fr) 132px; gap: 10px; padding: 1.1rem; }
    .allocation-intro .intro-workflow { padding: 1.1rem; }
    .allocation-intro .intro-step-track { flex-direction: column; }
    .allocation-intro .intro-track-arrow { flex: 0 0 20px; transform: rotate(90deg); }
    .allocation-intro .intro-backtest { grid-template-columns: 1fr; padding: 1.1rem; }
    .allocation-intro .intro-backtest-copy h2 { font-size: 1.17rem; }
    .allocation-intro .intro-disclaimer { margin-top: -1rem; }
}
@media (max-width: 420px) {
    .allocation-intro .intro-method-body { grid-template-columns: 1fr; }
    .allocation-intro .intro-method-art { max-width: 220px; }
}
/* 좁은 태블릿 및 사이드바 표시 화면에서는 안내 문구와 절차를 세로로 배치 */
@media (min-width: 768px) and (max-width: 991px) {
    .allocation-intro .intro-question,
    .allocation-intro .intro-section-header { flex-direction: column; align-items: flex-start; gap: .55rem; }
    .allocation-intro .intro-step-track { flex-direction: column; }
    .allocation-intro .intro-track-arrow { flex: 0 0 17px; transform: rotate(90deg); }
}
