.ap-brief, .ap-compare {
    --brief-navy: #112652;
    --brief-blue: #174eb2;
    --brief-line: #d6e4f7;
    --brief-soft: #eef5ff;
    --brief-muted: #486285;
}
.ap-board-workspace { display: flex; align-items: center; gap: 12px; }
.ap-board-workspace a:first-child { padding: 5px 10px; border-radius: 6px; font-weight: 750; background: #e5efff; }
.ap-brief { margin-top: 15px; }
.ap-brief-hero { position: relative; min-height: 344px; overflow: hidden; isolation: isolate; border-radius: 20px; background: var(--brief-navy); color: white; }
.ap-brief-copy { position: relative; z-index: 1; width: min(61%, 670px); padding: clamp(26px, 4vw, 52px); }
.ap-brief-hero h1 { font-size: clamp(29px, 4.25vw, 49px); font-weight: 850; letter-spacing: -.065em; line-height: 1.15; overflow-wrap: anywhere; }
.ap-home .ap-brief-address { margin: 9px 0 21px; color: #cadaf5; font-size: 13px; }
.ap-brief-address i { margin-right: 4px; }
.ap-brief-picture { position: absolute; inset: 0 0 0 38%; margin: 0; }
.ap-brief-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 55%; }
.ap-brief-picture::after { position: absolute; inset: 0; background: linear-gradient(90deg,#112652 0%,#11265291 22%,transparent 48%); content: ''; }
.ap-brief-picture figcaption { position: absolute; z-index: 1; right: 15px; bottom: 14px; padding: 4px 8px; border-radius: 5px; background: #0e234bdd; color: #e7f0ff; font-size: 11px; }
.ap-brief-price { margin-top: 24px; }
.ap-brief-price > span { display: block; color: #d9e8ff; font-size: 15px; font-weight: 750; }
.ap-brief-price > strong { display: block; margin-top: 1px; font-size: clamp(43px, 5.8vw, 74px); line-height: 1.03; font-weight: 880; letter-spacing: -.063em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ap-brief-price > strong small { margin-left: 8px; font-size: clamp(18px, 2.2vw, 25px); letter-spacing: -.025em; font-weight: 740; }
.ap-brief-price .ap-brief-price-missing { font-size: clamp(30px, 4vw, 53px); line-height: 1.15; }
.ap-home .ap-brief-price p { margin-top: 8px; color: #d3e3fb; font-size: 12px; }
.ap-brief-answers, .ap-brief-related { margin-top: 14px; }
.ap-brief-answer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 8px; }
.ap-brief-answer-grid > div { min-width: 0; padding: 9px 12px; border-radius: 8px; background: var(--brief-soft); }
.ap-brief-answer-grid dt, .ap-brief-answer-grid small { color: var(--brief-muted); font-size: 12px; }
.ap-brief-answer-grid dd { margin-top: 2px; overflow-wrap: anywhere; }
.ap-brief-answer-grid strong { color: var(--brief-navy); font-size: 16px; }
.ap-brief-answer-grid small { display: block; }
.ap-home .ap-brief-inline-link { display: inline-block; margin-top: 11px; font-size: 13px; font-weight: 750; }
.ap-brief-related h2 { color: var(--brief-navy); font-size: 18px; }
.ap-brief-related ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.ap-brief-related a { display: inline-block; padding: 6px 9px; border-radius: 7px; background: var(--brief-soft); font-size: 13px; font-weight: 720; }
.ap-brief-related a:hover, .ap-brief-inline-link:hover { text-decoration: underline; }
.ap-brief-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 15px 0 7px; }
.ap-brief-fact { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 5px; min-width: 0; min-height: 112px; padding: 12px 13px; border: 1px solid var(--brief-line); border-radius: 10px; background: #fff; }
.ap-brief-fact-label { display: flex; align-items: center; gap: 7px; color: var(--brief-muted); font-size: 12px; font-weight: 760; }
.ap-brief-icon { display: inline-grid; flex: none; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: var(--brief-blue); background: var(--brief-soft); font-size: 18px; }
.ap-brief-fact .ap-brief-icon { width: 27px; height: 27px; border-radius: 6px; font-size: 13px; }
.ap-brief-fact > strong { font-size: clamp(18px, 2.3vw, 28px); line-height: 1.15; letter-spacing: -.045em; color: var(--brief-navy); overflow-wrap: anywhere; }
.ap-brief-fact-name { color: var(--brief-muted); font-size: 12px; overflow-wrap: anywhere; }
.ap-home .ap-brief-distance-note { padding-left: 2px; color: var(--brief-muted); font-size: 12px; }
.ap-brief-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 17px 0; }
.ap-home .ap-brief-jump a { border: 1px solid var(--brief-line); padding: 6px 11px; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 740; }
.ap-home .ap-brief-jump a:last-child { margin-left: auto; background: #1a4ea8; border-color: #1a4ea8; color: #fff; }
.ap-brief-analysis-grid { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); align-items: start; gap: 13px; }
.ap-brief-panel { padding: clamp(15px, 2.2vw, 25px); min-width: 0; border: 1px solid var(--brief-line); border-radius: 13px; background: #fff; }
.ap-brief-panel-heading { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.ap-brief-panel-heading h2, .ap-brief-next h2, .ap-compare-toolbar h2 { font-size: clamp(19px, 2.5vw, 24px); line-height: 1.24; color: var(--brief-navy); }
.ap-home .ap-brief-panel-heading p, .ap-home .ap-brief-next p, .ap-home .ap-compare-toolbar p { margin-top: 4px; font-size: 13px; color: var(--brief-muted); word-break: keep-all; }
.ap-brief-score-summary { display: flex; align-items: center; gap: 12px; padding: 8px 11px; margin-bottom: 8px; border-radius: 8px; background: var(--brief-soft); }
.ap-brief-score-summary > strong { color: var(--brief-blue); font-size: 21px; }
.ap-brief-score-summary span, .ap-brief-score-line small { font-size: 12px; color: var(--brief-muted); }
.ap-brief-score-line { display: grid; grid-template-columns: minmax(90px,1fr) minmax(65px,1.7fr) minmax(40px,auto); align-items: center; gap: 9px; min-height: 34px; padding: 3px 0; border-bottom: 1px solid #e9eff8; font-size: 13px; }
.ap-brief-score-line meter { display: block; width: 100%; height: 12px; }
.ap-brief-score-line meter::-webkit-meter-bar { background: #e5eefb; border: 0; }
.ap-brief-score-line meter::-webkit-meter-optimum-value { background: #2d67c6; }
.ap-brief-score-line strong { justify-self: end; }
.ap-brief-unrated { grid-column: span 2; justify-self: end; color: var(--brief-muted); font-size: 12px; }
.ap-brief-placeholder { padding: 12px; border-radius: 8px; background: var(--brief-soft); color: var(--brief-muted); font-size: 13px; }
.ap-home .ap-brief-note, .ap-home .ap-brief-method p { margin-top: 10px; color: var(--brief-muted); font-size: 12px; }
.ap-brief-method { margin-top: 12px; }
.ap-brief-method summary { color: var(--brief-blue); cursor: pointer; font-size: 13px; font-weight: 750; }
.ap-brief-price-list > div, .ap-brief-station { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e1ebf8; }
.ap-brief-price-list > div > strong { color: var(--brief-blue); font-size: 22px; text-align: right; white-space: nowrap; }
.ap-brief-price-list small, .ap-brief-station small { display: block; color: var(--brief-muted); font-size: 12px; }
.ap-brief-price-list > div > strong small { display: inline; margin-left: 3px; }
.ap-brief-peer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-top: 12px; padding: 8px 10px; border-radius: 7px; background: var(--brief-soft); color: var(--brief-muted); font-size: 12px; }
.ap-brief-peer strong { color: var(--brief-blue); font-size: 14px; }
.ap-brief-life { margin-top: 13px; }
.ap-brief-life-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 18px; }
.ap-brief-life-grid h3 { margin-bottom: 7px; font-size: 16px; color: var(--brief-navy); }
.ap-brief-school-row + h3 { margin-top: 17px; }
.ap-brief-station strong { font-size: 14px; }
.ap-brief-station > strong { color: var(--brief-blue); white-space: nowrap; }
.ap-brief-shops { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.ap-brief-shop { display: grid; align-content: start; gap: 2px; min-height: 67px; min-width: 0; padding: 7px; border: 1px solid var(--brief-line); border-radius: 7px; background: #f5f9ff; overflow-wrap: anywhere; }
.ap-brief-shop span, .ap-brief-shop small { color: var(--brief-muted); font-size: 11px; }
.ap-brief-shop strong { color: var(--brief-blue); font-size: 15px; }
.ap-visit { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: clamp(18px, 3vw, 30px); margin-top: 16px; padding: clamp(18px, 3.5vw, 36px); border-radius: 18px; background: linear-gradient(115deg,#102a64 10%,#164db1 72%,#1553c0); color: #fff; }
.ap-visit::after { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 98% 5%,#4799ff87,transparent 60%); content: ''; }
.ap-visit-header { display: grid; justify-items: start; gap: 10px; min-width: 0; }
.ap-visit-header > span { padding: 4px 9px; border: 1px solid #c4dcff63; border-radius: 6px; color: #e1efff; font-size: 11px; font-weight: 730; overflow-wrap: anywhere; }
.ap-visit-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; width: min(100%, 575px); }
.ap-visit-logos input { order: 1; accent-color: #fff; }
.ap-visit-logos label { order: 1; min-height: 24px; display: inline-flex; align-items: center; color: #e0ecff; font-size: 11px; cursor: pointer; }
.ap-visit-window { overflow: hidden; width: 100%; }
.ap-visit-track { display: flex; width: max-content; animation: ap-visit-roll 24s linear infinite; }
.ap-visit-logo-set { display: flex; gap: 8px; padding-right: 8px; }
.ap-visit-logo { display: grid; place-items: center; flex: none; width: 136px; height: 52px; border-radius: 9px; background: #fff; }
.ap-visit-logo img { display: block; width: 112px; height: 35px; object-fit: contain; }
.ap-visit-logos input:checked ~ .ap-visit-window .ap-visit-track, .ap-visit-window:hover .ap-visit-track { animation-play-state: paused; }
@keyframes ap-visit-roll { to { transform: translateX(-50%); } }
.ap-visit-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px 24px; }
.ap-home .ap-visit h2 { color: #fff; font-size: clamp(25px, 4vw, 48px); line-height: 1.17; font-weight: 860; word-break: keep-all; }
.ap-home .ap-visit-subtitle { margin-top: 7px; color: #f0f6ff; font-size: clamp(15px, 2vw, 20px); font-weight: 740; overflow-wrap: anywhere; }
.ap-home .ap-visit-terms { margin-top: 9px; color: #deebff; font-size: 12px; word-break: keep-all; }
.ap-home .ap-visit-link { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 9px 18px; border-radius: 10px; background: #fff; color: #103e96; font-weight: 840; }
.ap-home .ap-visit-link:hover { background: #deebff; }
@media (max-width: 520px) { .ap-home .ap-visit-link { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .ap-visit-track { width: auto; animation: none; }
    .ap-visit-logo-set { flex-wrap: wrap; padding: 0; }
    .ap-visit-logo-set[aria-hidden], .ap-visit-logos input, .ap-visit-logos label { display: none; }
    .ap-visit-logo { width: min(136px, calc(50% - 4px)); }
}
.ap-brief-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: clamp(18px, 3vw, 27px); border-radius: 13px; background: #e3efff; }
.ap-home .ap-brief-action { display: inline-flex; align-items: center; gap: 13px; min-height: 43px; padding: 8px 13px; border-radius: 8px; background: var(--brief-blue, #174eb2); color: white; font-size: 14px; font-weight: 800; }
.ap-home .ap-brief-action:hover { background: #133d8b; }
.ap-compare { margin-top: 14px; }
.ap-compare-toolbar { margin-bottom: 13px; padding: 18px; border: 1px solid #a8c6f1; border-radius: 13px; background: linear-gradient(120deg,#edf5ff,#dbeafe); }
.ap-compare-toolbar nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.ap-home .ap-compare-toolbar nav a { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 7px 9px; border: 1px solid #b7cdee; border-radius: 8px; background: #fff; color: #164899; font-size: 13px; font-weight: 780; text-align: center; }
.ap-compare-toolbar nav a:hover { border-color: #154dac; }
.ap-home .ap-compare-toolbar nav a[aria-current] { background: #174ca8; border-color: #174ca8; color: #fff; box-shadow: 0 3px 7px #1f529b40; }
.ap-compare-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.ap-compare-card { display: flex; flex-direction: column; min-width: 0; padding: 12px 13px; border: 1px solid var(--brief-line); border-radius: 11px; background: #fff; }
.ap-compare-card-meta, .ap-compare-detail { display: flex; justify-content: space-between; gap: 6px; color: var(--brief-muted); font-size: 12px; }
.ap-compare-card h3 { margin: 3px 0 5px; overflow-wrap: anywhere; }
.ap-compare-card h3 a { color: var(--brief-navy); font-size: 17px; font-weight: 830; }
.ap-home .ap-compare-range { margin-top: 5px; font-size: 11px; color: var(--brief-muted); }
.ap-compare-range strong { color: var(--brief-navy); }
.ap-home .ap-compare-distances { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; margin-block: 7px 8px; }
.ap-compare-distances dt { font-size: 11px; color: var(--brief-muted); }
.ap-compare-distances dd { color: var(--brief-navy); font-size: 12px; font-weight: 720; }
.ap-home .ap-compare-detail { margin-top: auto; padding-top: 7px; border-top: 1px solid var(--brief-line); color: var(--brief-blue); font-size: 12px; font-weight: 750; }
@media (max-width: 820px) {
    .ap-brief-copy { width: 71%; }
    .ap-brief-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ap-brief-analysis-grid, .ap-brief-life-grid, .ap-compare-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ap-brief-shops { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .ap-board-workspace { gap: 8px; flex-wrap: wrap; }
    .ap-brief-hero { min-height: 0; border-radius: 14px; }
    .ap-brief-copy { width: auto; padding: 20px 17px 13px; }
    .ap-brief-picture { position: relative; inset: auto; height: 155px; }
    .ap-brief-picture img { object-position: 68% 53%; }
    .ap-brief-picture::after { background: linear-gradient(180deg,#112652 0%,#11265278 18%,transparent 43%); }
    .ap-brief-picture figcaption { right: 8px; bottom: 7px; font-size: 10px; }
    .ap-home .ap-brief-address { margin-bottom: 13px; }
    .ap-brief-price { margin-top: 15px; }
    .ap-brief-summary, .ap-compare-toolbar nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .ap-brief-fact { min-height: 88px; padding: 8px; }
    .ap-brief-fact:last-child { grid-column: 1 / -1; }
    .ap-brief-analysis-grid, .ap-brief-life-grid, .ap-compare-grid { grid-template-columns: minmax(0,1fr); }
    .ap-home .ap-brief-jump a:last-child { margin-left: 0; }
}
