:root {
    color-scheme: light;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #172235;
    background: #f3f6fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f3f6fa; color: #172235; }
a { color: inherit; }
.afi-legacy {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 72px;
    display: grid;
    gap: 18px;
}
.afi-hero,
.afi-section {
    border: 1px solid #dce3ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(27, 40, 64, .06);
}
.afi-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f1ff 100%);
}
.afi-hero > img { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; }
.afi-hero p { margin: 0; color: #6d7788; font-size: 14px; line-height: 1.65; }
.afi-hero h1 { margin: 3px 0 4px; color: #172235; font-size: clamp(26px, 4vw, 40px); }
.afi-hero time { display: block; margin-top: 7px; color: #7654d8; font-size: 12px; font-weight: 700; }
.afi-hero > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 11px;
    background: #7654d8;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.afi-section { padding: 24px; }
.afi-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.afi-section__heading p { margin: 0 0 3px; color: #7654d8; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.afi-section__heading h2 { margin: 0; color: #182338; font-size: 22px; }
.afi-section__heading > strong { color: #687386; font-size: 13px; }
.afi-status { padding: 6px 10px; border-radius: 999px; background: #fff3d7; color: #8d5b0d; font-size: 11px; font-weight: 800; }
.afi-risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.afi-risk-grid article { padding: 17px; border: 1px solid #e2e7ee; border-radius: 14px; background: #f9fafc; }
.afi-risk-grid span { color: #707b8d; font-size: 11px; font-weight: 750; }
.afi-risk-grid strong { display: block; margin: 6px 0; font-size: 19px; }
.afi-risk-grid p { margin: 0; color: #596477; font-size: 13px; line-height: 1.65; }
.afi-risk-grid .is-low strong { color: #178054; }
.afi-risk-grid .is-medium strong { color: #a5680d; }
.afi-risk-grid .is-high strong { color: #b94141; }
.afi-plain-conclusion { margin: 14px 0 0; padding: 13px 15px; border-left: 4px solid #7654d8; border-radius: 0 10px 10px 0; background: #f4f0ff; color: #4c3b7f; font-size: 14px; font-weight: 750; line-height: 1.65; }
.afi-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.afi-metric-grid > div { min-width: 0; padding: 16px; border: 1px solid #e3e8ef; border-radius: 13px; background: #fafbfd; }
.afi-metric-grid dt { color: #758094; font-size: 11px; font-weight: 700; }
.afi-metric-grid dd { margin: 7px 0 0; color: #202a3b; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.afi-metric-grid small { margin-left: 5px; color: #758094; font-size: 10px; font-weight: 700; }
.afi-boundary { margin: 14px 0 0; color: #778195; font-size: 12px; line-height: 1.65; }
.afi-table-wrap { overflow-x: auto; border: 1px solid #e1e6ed; border-radius: 12px; }
.afi-table-wrap table { width: 100%; min-width: 900px; border-collapse: collapse; }
.afi-table-wrap th,
.afi-table-wrap td { padding: 13px 14px; border-bottom: 1px solid #e7ebf1; text-align: right; white-space: nowrap; font-size: 12px; }
.afi-table-wrap th:first-child,
.afi-table-wrap td:first-child { text-align: left; }
.afi-table-wrap th { background: #f6f8fb; color: #667186; font-size: 11px; }
.afi-table-wrap tbody tr:last-child td { border-bottom: 0; }
.afi-table-wrap tbody tr:first-child { background: #faf8ff; font-weight: 750; }
.afi-table-wrap td.is-positive { color: #087a54; }
.afi-table-wrap td.is-negative { color: #c3473e; }
.afi-distribution { display: grid; gap: 10px; }
.afi-distribution-row { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(200px, 2fr) auto; align-items: center; gap: 14px; }
.afi-distribution-row > span { color: #465165; font-size: 12px; font-weight: 750; }
.afi-distribution-row > div { height: 10px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.afi-distribution-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7654d8, #a886ef); }
.afi-distribution-row strong { min-width: 112px; color: #212b3e; text-align: right; font-size: 12px; }
.afi-distribution-row strong small { color: #7b8596; font-size: 10px; font-weight: 650; }
.afi-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.afi-check-grid article { display: flex; gap: 12px; padding: 16px; border: 1px solid #e3e8ef; border-radius: 13px; background: #fafbfd; }
.afi-check-grid i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #eee8ff; color: #7654d8; }
.afi-check-grid strong,
.afi-check-grid small { display: block; }
.afi-check-grid strong { color: #263044; font-size: 13px; }
.afi-check-grid small { margin-top: 4px; color: #747f91; font-size: 11px; line-height: 1.55; }
.afi-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.afi-link-grid a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e2e7ee; border-radius: 13px; text-decoration: none; }
.afi-link-grid i { color: #7654d8; font-size: 19px; }
.afi-link-grid strong,
.afi-link-grid small { display: block; }
.afi-link-grid strong { font-size: 13px; }
.afi-link-grid small { margin-top: 4px; color: #798395; font-size: 11px; }
.afi-section ul { margin: 16px 0 0; padding-left: 20px; color: #596477; font-size: 13px; line-height: 1.8; }
body[data-afi-status="unavailable"] [data-afi-field] { color: #9aa3b0; }
@media (max-width: 760px) {
    .afi-legacy { width: min(100% - 20px, 680px); margin-top: 12px; gap: 12px; }
    .afi-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 17px; border-radius: 14px; }
    .afi-hero > img { width: 58px; height: 58px; border-radius: 14px; }
    .afi-hero > a { grid-column: 1 / -1; width: 100%; }
    .afi-section { padding: 17px; border-radius: 14px; }
    .afi-section__heading { align-items: flex-start; }
    .afi-section__heading h2 { font-size: 19px; }
    .afi-risk-grid,
    .afi-metric-grid,
    .afi-check-grid,
    .afi-link-grid { grid-template-columns: 1fr; }
    .afi-risk-grid article { padding: 15px; }
    .afi-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .afi-metric-grid dd { font-size: 18px; }
    .afi-distribution-row { grid-template-columns: minmax(112px, .8fr) minmax(90px, 1fr) auto; gap: 8px; }
    .afi-distribution-row strong { min-width: 88px; font-size: 11px; }
}
@media (max-width: 390px) {
    .afi-metric-grid { grid-template-columns: 1fr; }
}
