/* Scoped presentation for personal lookup pages; downloaded styles stay intact. */
.age-search-panel,
.life-filter {
    border-radius: 10px;
    padding: 24px;
}
.age-search-panel h1,
.life-filter h1 { margin-top: 0; }
.age-search-panel .form-control,
.life-filter .form-control { height: 40px; border-radius: 6px; }
.age-search-panel .btn-primary,
.life-filter .btn-primary { min-height: 40px; border-radius: 6px; }
.age-search-panel form > .row:last-child,
.life-filter form > .row:last-child { margin-top: 6px; }
.age-search-panel form > .row:last-child p,
.life-filter form > .row:last-child p { color: #58645d; font-size: 14px; line-height: 1.6; }

.age-page .panel,
.life-page .panel { border-radius: 10px; }
.age-page .vncal-header,
.life-page .vncal-header { border-radius: 6px; margin-bottom: 18px; }
.age-page .vncal-header h2,
.life-page .vncal-header h2 { line-height: 1.4; }
.age-page > aside ol,
.life-page > aside ol { padding-left: 22px; font-size: 14px; line-height: 1.7; }
.age-page > aside li,
.life-page > aside li { margin-bottom: 10px; }
.age-page > aside p,
.life-page > aside p { font-size: 14px; line-height: 1.7; }

.age-hero-result .age-comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 14px;
    margin: 0;
}
.age-comparison-grid > [class*="col-"] { float: none; width: auto; padding: 0; min-width: 0; }
.age-comparison-grid::before,
.age-comparison-grid::after,
.life-profile-grid::before,
.life-profile-grid::after { display: none; }
.age-hero-result .age-person-card,
.age-hero-result .age-score-card {
    height: 100%;
    min-height: 260px;
    margin: 0;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce8df;
    border-radius: 10px;
    background: #f7faf8;
    box-shadow: none;
}
.age-hero-result .age-card-label {
    margin: 0 0 16px;
    color: #526359;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}
.age-hero-result .age-animal {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    background: #e8f2eb;
    border-radius: 50%;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 12px;
}
.age-hero-result .age-person-card h3 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; color: #153e28; }
.age-hero-result .age-can-chi { font-size: 15px; line-height: 1.5; font-weight: 600; }
.age-person-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.age-person-meta span { padding: 4px 7px; border: 1px solid #dce8df; border-radius: 5px; background: #fff; color: #536259; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.age-hero-result .age-score-card { --score-color: #06703b; background: #f1f8f3; border-color: #b7d5c2; }
.age-hero-result .age-score-card[data-score-status="consider"] { --score-color: #a26316; background: #fffbf2; border-color: #e6d8b8; }
.age-score-ring { display: grid; place-items: center; width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #e5e9e5 0); }
.age-score-ring > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 94px; height: 94px; border-radius: 50%; background: #fff; }
.age-score-ring strong { color: #253d2e; font-size: 36px; font-weight: 700; line-height: 1.1; }
.age-score-ring span { color: #627168; font-size: 12px; line-height: 1.5; }
.age-rating { display: inline-block; margin-top: 14px; border-radius: 5px; padding: 5px 12px; color: #07592f; background: #e0f0e5; font-size: 14px; line-height: 1.5; }
.age-score-card[data-score-status="consider"] .age-rating { background: #f5e7c9; color: #77470e; }
.age-hero-result .age-score-source { margin: 10px 0 0; color: #667268; font-size: 11px; line-height: 1.5; text-align: center; }
.age-result-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 15px; border-top: 1px solid #e8eeea; }
.age-source-label { color: #536459; background: #f0f4f1; border-radius: 5px; padding: 4px 8px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.age-hero-result .age-result-note p { flex: 1 1 200px; margin: 0; color: #617067; font-size: 12px; line-height: 1.6; text-align: left; }

.age-analysis-panel .table { margin-bottom: 18px; }
.age-analysis-panel thead th { background: #f0f6f2; color: #264b35; }
.age-analysis-panel td { text-align: center; }
.age-page .table th,
.age-page .table td,
.life-page .table th,
.life-page .table td { padding: 12px; border-color: #e1e9e4; vertical-align: middle; font-size: 14px; }
.age-analysis-panel .list-group-item { padding: 13px 15px; font-size: 14px; line-height: 1.7; border-color: #e1e9e4; }
.age-method { padding: 12px 15px; border: 1px solid #e1e9e4; border-radius: 6px; background: #f8faf8; font-size: 13px; }
.age-method summary { cursor: pointer; color: #265139; font-weight: 600; line-height: 1.7; }
.age-page .age-method p { font-size: 13px; line-height: 1.7; margin: 12px 0 0; }
.age-detail-grid article { box-shadow: none; border-color: #e1e9e4; background: #f7faf8; }
.age-detail-grid h3 { margin-top: 0; color: #244b33; font-size: 18px; }
.age-page .age-detail-grid p { font-size: 14px; line-height: 1.7; }
.age-page .btn,
.life-page .btn { border-radius: 6px; }
.age-hero-result { scroll-margin-top: 70px; }

.life-profile-grid { display: flex; flex-wrap: wrap; }
.life-profile-grid > [class*="col-"] { display: flex; }
.life-profile-grid article { width: 100%; padding: 18px 10px; border-color: #dce8df; background: #f5faf6; box-shadow: none; }
.life-page .life-profile-grid p { min-height: 42px; margin: 0 0 10px; color: #5b6c60; font-size: 13px; line-height: 1.6; text-align: center; }
.life-profile-grid h3 { color: #174c2c; margin: 0; font-size: 20px; line-height: 1.5; }
.life-summary { scroll-margin-top: 70px; }

@media (max-width: 767px) {
    .age-search-panel,
    .life-filter { padding: 20px 16px; }
    .age-hero-result .age-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .age-comparison-grid .age-score-column { grid-column: 1 / -1; grid-row: 1; }
    .age-hero-result .age-score-card { min-height: 0; padding: 20px 14px; }
    .age-hero-result .age-person-card { min-height: 230px; padding: 16px 6px; }
    .age-hero-result .age-person-card h3 { font-size: 26px !important; }
    .age-hero-result .age-card-label { font-size: 12px; margin-bottom: 12px; }
    .age-hero-result .age-person-card .age-card-label { min-height: 36px; }
    .age-hero-result .age-animal { width: 56px; height: 56px; font-size: 30px; }
    .age-person-meta { flex-direction: column; align-items: center; margin-top: 10px; }
    .age-result-note { align-items: flex-start; }
    .age-page .table th,
    .age-page .table td,
    .life-page .table th,
    .life-page .table td { padding: 10px 8px; font-size: 12px; }
    .life-profile-grid p { min-height: 0; }
    .life-profile-grid article { padding: 16px; }
}
