:root {
  --bg: #f3f4ee;
  --surface: #fffefa;
  --ink: #24362c;
  --muted: #7a8676;
  --green: #205e48;
  --green-soft: #e9f0e5;
  --line: #dfe5d8;
  --amber: #956827;
  --red: #a55c4e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
button, input, select, a { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); }
[hidden] { display: none !important; }
.app-header { min-height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 16px 30px; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 650; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: white; font: 24px Georgia,serif; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.header-meta { display: flex; flex-direction: column; font-size: 10px; color: var(--muted); line-height: 1.8; }
.header-actions { margin-left: auto; display: flex; gap: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border-radius: 5px; border: 1px solid var(--line); padding: 7px 12px; min-height: 33px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #174b39; }
.secondary { background: var(--surface); color: #607258; }
.secondary:hover { border-color: #a9b99d; }
.text-button { border-color: transparent; background: transparent; color: var(--green); }
.text-button:hover { background: var(--green-soft); }
.refresh-icon { font-size: 19px; line-height: 1; }
.is-refreshing .refresh-icon { animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
main { max-width: 1850px; margin: 0 auto; padding: 19px 30px 24px; }
.intro { display: flex; align-items: baseline; gap: 18px; margin: 0 0 17px; }
h1 { font-size: 19px; font-weight: 650; margin: 0; letter-spacing: -.3px; }
.intro p { font-size: 11px; color: var(--muted); margin: 0; }
.view-bar { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.view-tabs { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.view-tabs button { color: #73816b; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 8px 14px; font-size: 12px; }
.view-tabs button.active { color: var(--green); background: var(--surface); border-color: var(--line); font-weight: 600; }
.view-tabs button span { font-size: 10px; padding: 1px 5px; background: #e9eee2; border-radius: 4px; margin-left: 4px; }
.view-tools { display: flex; gap: 5px; }
.status-banner { font-size: 11px; border: 1px solid #d8e4cf; background: #edf3e8; color: var(--green); border-radius: 5px; padding: 9px 13px; margin-bottom: 12px; overflow-wrap: anywhere; }
.status-banner.warning { background: #faf3e3; border-color: #ebdfc5; color: var(--amber); }
.status-banner.error { background: #f8eae6; border-color: #ecd6ce; color: var(--red); }
.add-form { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; background: #ebf0e4; border: 1px solid #dce5d1; border-radius: 6px; padding: 11px 14px; margin-bottom: 13px; font-size: 11px; }
.add-form input { max-width: 160px; border: 1px solid #d2dec9; border-radius: 4px; padding: 6px 9px; background: var(--surface); }
.add-form span { color: var(--muted); font-size: 10px; }
.add-form span.error { color: var(--red); }
.needs-form { display: grid; gap: 17px; }
.needs-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 12px 15px 14px; }
.needs-form legend { color: var(--green); font-weight: 600; font-size: 12px; padding: 0 6px; }
.needs-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.needs-grid label { min-width: 0; display: grid; gap: 6px; align-content: start; color: #657a59; font-size: 11px; }
.needs-grid select, .needs-grid input { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcf7; color: #485e3d; padding: 5px 9px; }
.needs-grid input::placeholder { color: #98a18e; }
.needs-hint { font-size: 10px; color: var(--muted); margin: 0 0 13px; overflow-wrap: anywhere; }
.needs-grid + .needs-hint { margin: 12px 0 0; }
.needs-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.needs-message { color: var(--green); margin-top: 14px; font-size: 11px; overflow-wrap: anywhere; }
.needs-message:empty, .needs-summary:empty { display: none; }
.needs-message.error { color: var(--red); }
.needs-summary { padding: 12px 14px; margin-top: 13px; border: 1px solid #dce6d2; border-radius: 5px; background: #f5f8ef; font-size: 11px; color: #607258; overflow-wrap: anywhere; }
.needs-summary p { margin: 0 0 6px; }
.needs-summary p:last-child { margin-bottom: 0; }
.conditions-panel { padding: 12px 17px 0; }
.conditions-panel p { margin: 0 0 5px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.conditions-panel #active-needs { color: var(--green); }
.result-breakdown { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 17px 0; }
.result-breakdown button { display: inline-flex; align-items: center; gap: 7px; color: #718169; background: #f8faf3; border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; font-size: 11px; }
.result-breakdown button[aria-pressed=true] { color: var(--green); border-color: #b7ccaa; background: var(--green-soft); font-weight: 600; }
.result-breakdown button span { font-variant-numeric: tabular-nums; font-size: 10px; background: #e8eee1; border-radius: 3px; padding: 0 5px; }
.match-reasons { display: block; margin-top: 5px; color: var(--amber); font-size: 9px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.data-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; overflow: hidden; }
.filters { display: flex; gap: 9px 12px; align-items: center; flex-wrap: wrap; padding: 15px 17px 13px; border-bottom: 1px solid #e7ecdf; }
.filters > label { display: inline-flex; align-items: center; gap: 6px; color: #7a8970; font-size: 10px; position: relative; }
.filters select, .filters input { height: 31px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcf7; color: #485e3d; padding: 4px 7px; font-size: 11px; }
.filters select { max-width: 175px; }
.filters input[type=number] { width: 78px; padding-right: 21px; }
.filters .unit { position: absolute; right: 7px; font-size: 9px; color: #9aa48f; pointer-events: none; }
.search-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fbfcf7; width: 260px; height: 33px; }
.search-box > span { font-size: 24px; color: #87967b; padding: 0 10px; }
.search-box input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 5px 8px 5px 0; outline: none; }
.search-box:focus-within { border-color: #718e60; box-shadow: 0 0 0 2px #205e4810; }
.search-box input::placeholder { color: #98a18e; }
.filter-button { background: transparent; color: #7d8b73; border: 1px solid var(--line); padding: 6px 10px; font-size: 11px; border-radius: 4px; height: 31px; }
.filter-button[aria-pressed=true] { color: var(--green); background: var(--green-soft); border-color: #b7ccaa; }
.table-toolbar { padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.table-toolbar > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
#result-count { font-size: 12px; font-weight: 550; }
.coverage-text { font-size: 10px; color: var(--muted); max-width: 600px; }
.table-options { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
.segmented { display: flex; background: #f0f3e9; border: 1px solid #e1e7d9; border-radius: 5px; padding: 2px; gap: 2px; }
.segmented button { background: transparent; color: #7e8c71; font-size: 10px; border: 0; border-radius: 3px; padding: 4px 11px; }
.segmented button.active { background: white; color: var(--green); box-shadow: 0 1px 3px #26372215; font-weight: 600; }
.sort-control { font-size: 10px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.sort-control select { background: transparent; border: 0; font-size: 10px; color: #617450; max-width: 125px; }
.table-scroll { overflow: auto; max-height: min(720px,70vh); }
.fund-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1700px; font-size: 11px; }
.fund-table.catalog-table { min-width: 1260px; }
.fund-table th { position: sticky; top: 0; z-index: 3; background: #f0f4e8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; color: #708460; padding: 11px 8px; font-weight: 500; font-size: 10px; white-space: nowrap; }
.column-sort { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; }
.fund-table th[aria-sort] { color: var(--green); background: #e8f0df; }
.fund-table td { border-bottom: 1px solid #e9eee1; padding: 12px 8px; vertical-align: middle; background: var(--surface); }
.fund-table tbody tr:hover td { background: #f6f9ef; }
.fund-table tbody tr:last-child td { border-bottom: 0; }
.fund-table .selection-head, .fund-table .selection-cell { position: sticky; left: 0; width: 66px; min-width: 66px; padding-left: 12px; }
.fund-table .selection-cell { z-index: 1; white-space: nowrap; }
.fund-table .name-head, .fund-table .name-cell { position: sticky; left: 66px; min-width: 242px; width: 242px; max-width: 242px; border-right: 1px solid #e3ead9; }
.fund-table .name-head { z-index: 4; }
.fund-table .name-cell { z-index: 1; }
.fund-table .selection-head { z-index: 4; }
.selection-cell input { accent-color: var(--green); width: 12px; height: 12px; vertical-align: middle; margin: 0 7px 0 0; cursor: pointer; }
.star-button { border: 0; background: transparent; color: #a0ad92; font-size: 18px; padding: 0; vertical-align: middle; line-height: 1; }
.star-button.saved { color: var(--green); }
.fund-name { display: block; max-width: 221px; color: var(--ink); font-size: 11px; font-weight: 550; line-height: 1.45; border: 0; background: transparent; text-align: left; padding: 0; }
.fund-name:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.fund-code { display: flex; gap: 7px; align-items: center; color: #88947d; font-size: 9px; margin-top: 4px; }
.share-badge { color: #668452; background: #eef4e7; border: 1px solid #dee8d4; border-radius: 3px; line-height: 1.3; padding: 0 4px; }
.fund-theme { color: #88937f; font-size: 9px; max-width: 215px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.identity-badge { display: inline-block; font-size: 9px; color: var(--amber); margin-top: 4px; border-radius: 3px; background: #f7efdb; padding: 0 4px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric { font-size: 12px; font-weight: 550; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.missing { color: #a0aa94; font-size: 10px; font-weight: 400; }
.cell-note { display: block; font-size: 9px; color: #93a087; margin-top: 4px; line-height: 1.5; font-weight: 400; }
.dates-cell { font-size: 9px; color: #86957a; white-space: nowrap; }
.subscription-cell { min-width: 145px; max-width: 175px; font-size: 10px; }
.subscription.open { color: #547747; }
.subscription.closed { color: var(--amber); }
.subscription.unknown { color: #a0aa94; }
.channel-cell { font-size: 10px; color: #77886a; max-width: 110px; }
.evidence-cell { font-size: 10px; white-space: nowrap; }
.evidence-found { color: #8a774f; }
.nav-cell { font-variant-numeric: tabular-nums; font-size: 12px; }
.manager-cell { color: #829073; font-size: 10px; max-width: 120px; }
.row-action { border: 0; background: transparent; color: var(--green); padding: 5px 0; font-size: 10px; white-space: nowrap; }
.row-action:hover { text-decoration: underline; }
.stale-row .fund-name::before { content: "· "; color: var(--amber); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination > span { margin-right: auto; }
.pagination label { display: flex; align-items: center; gap: 5px; margin-right: 9px; }
.pagination select { border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #718760; padding: 4px 6px; font-size: 10px; }
.pagination .button { min-height: 28px; padding: 4px 9px; font-size: 10px; }
.table-note { display: flex; gap: 20px; justify-content: space-between; background: #f8faf3; border-top: 1px solid var(--line); padding: 10px 17px; color: #86947a; font-size: 9px; }
.table-note span:last-child { white-space: nowrap; }
.empty-state { text-align: center; padding: 42px 18px; }
.empty-state h3 { font-size: 14px; font-weight: 550; margin: 0 0 8px; }
.empty-state p { font-size: 11px; color: var(--muted); margin: 0 0 15px; }
.selection-bar { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 18px; justify-content: space-between; margin: 14px 0; background: #eaf1e3; border: 1px solid #b9cdaa; border-radius: 6px; padding: 12px 16px; box-shadow: 0 6px 20px #253a2615; }
.selection-bar > div:last-child { display: flex; gap: 8px; flex-shrink: 0; }
.selection-bar strong { font-size: 12px; color: var(--green); }
.selection-bar span { display: block; max-width: 1050px; font-size: 10px; color: #769366; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 17px 20px; margin: 0 0 16px; scroll-margin-top: 14px; }
#compare-panel { margin-top: 17px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
h2 { font-size: 14px; margin: 0; font-weight: 600; }
.panel-heading p { font-size: 10px; color: var(--muted); margin: 5px 0 0; }
.icon-button { border: 1px solid var(--line); border-radius: 5px; background: #f5f8ef; color: #80946f; width: 28px; height: 28px; font-size: 19px; line-height: 1; flex-shrink: 0; }
.calculator-form { display: grid; grid-template-columns: 1fr 1fr 150px 120px auto; gap: 12px; align-items: end; }
.calculator-form label { color: #829275; font-size: 10px; display: grid; gap: 5px; min-width: 0; }
.calculator-form select, .calculator-form input { width: 100%; height: 34px; color: #547045; background: #fbfcf7; border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 11px; }
.calculator-result { margin-top: 14px; color: #8c9a80; font-size: 11px; }
.calculator-evidence { color: #907c53; margin: 0 0 10px; font-size: 10px; }
.calculator-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calculator-card { border: 1px solid #dce6d2; border-radius: 5px; background: #f5f8ef; padding: 14px; }
.calculator-card strong { display: block; color: #4f6942; font-size: 11px; }
.calculated-cost { display: block; font-size: 23px; color: var(--green); margin: 7px 0; font-variant-numeric: tabular-nums; }
.panel-footnote { font-size: 9px; color: #9ca88e; margin: 13px 0 0; }
.comparison-scroll { overflow-x: auto; }
.comparison-table { border-collapse: collapse; width: 100%; font-size: 11px; min-width: 600px; table-layout: fixed; }
.comparison-table thead th { background: #edf3e5; text-align: left; padding: 12px; color: #526e44; font-weight: 550; }
.comparison-table th:first-child { width: 172px; }
.comparison-table thead small { display: block; font-size: 9px; font-weight: 400; color: #8a9d7b; }
.comparison-table tbody th { text-align: left; padding: 10px 12px; color: #839776; font-weight: 400; background: #f7f9f1; }
.comparison-table td { padding: 10px 12px; color: #657d56; vertical-align: top; overflow-wrap: anywhere; }
.comparison-table td, .comparison-table tbody th { border-bottom: 1px solid #e5ebdc; }
footer { color: #97a38b; font-size: 9px; line-height: 1.9; margin-top: 16px; max-width: 1300px; }
dialog { padding: 0; width: min(900px,calc(100vw - 30px)); max-height: 92vh; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); box-shadow: 0 15px 60px #20351f35; }
dialog::backdrop { background: #25392170; backdrop-filter: blur(3px); }
.dialog-header { padding: 20px 25px 17px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; position: sticky; top: 0; z-index: 2; }
.dialog-header h2 { font-size: 19px; margin-top: 5px; }
.eyebrow { color: #6d8c5b; font-size: 10px; letter-spacing: .6px; }
#detail-content { padding: 0 25px 25px; }
.detail-section { margin-top: 22px; }
.detail-section h3 { font-size: 13px; font-weight: 600; margin: 0 0 11px; }
.detail-section p { margin: 7px 0; color: #89987c; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.detail-dl > div { border-bottom: 1px solid #e7eddc; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 11px; }
.detail-dl dt { color: #859978; flex-shrink: 0; }
.detail-dl dd { color: #5f7750; margin: 0; text-align: right; overflow-wrap: anywhere; }
.period-table, .holdings-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.period-table th, .holdings-table th { text-align: left; background: #f0f5e8; color: #7a9269; font-weight: 400; }
.period-table th, .period-table td, .holdings-table th, .holdings-table td { padding: 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.period-table td { color: #5b7850; font-variant-numeric: tabular-nums; }
.date-range { font-size: 9px; }
.holdings-table th:last-child, .holdings-table td:last-child { text-align: right; }
.chart-box { border: 1px solid var(--line); border-radius: 5px; background: #fafcf6; padding: 12px 9px; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-caption { display: flex; justify-content: space-between; font-size: 9px; color: #8d9d80; padding: 0 10px; }
.chart-empty { text-align: center; padding: 28px 0; color: #93a387; font-size: 11px; }
.warning-box { background: #faf6e9; border: 1px solid #e9dfc3; border-radius: 5px; padding: 14px; }
.warning-box .detail-dl > div { border-color: #ebe3cc; }
.warning-list { color: #978156; font-size: 10px; padding-left: 17px; line-height: 1.9; margin: 12px 0 0; }
.source-list { display: flex; flex-wrap: wrap; gap: 7px; }
.source-list a { display: block; color: var(--green); background: #eff4e7; border: 1px solid #dfe8d4; border-radius: 4px; padding: 5px 10px; text-decoration: none; font-size: 10px; }
.source-list a:hover { text-decoration: underline; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 10; border-radius: 6px; padding: 11px 17px; background: #2d563d; color: white; font-size: 11px; box-shadow: 0 6px 25px #223c2020; max-width: calc(100vw - 35px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
  .app-header { padding: 14px 22px; gap: 20px; }
  main { padding: 18px 22px; }
  .intro { display: block; }
  .intro p { margin-top: 5px; }
  .header-meta { font-size: 9px; }
  .calculator-form { grid-template-columns: 1fr 1fr 110px 90px; }
  .calculator-form > button { grid-column: 4; }
  .coverage-text { max-width: 430px; }
  .needs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .app-header { flex-wrap: wrap; padding: 13px 17px; gap: 12px; }
  .brand { font-size: 15px; }
  .header-meta { margin-left: auto; }
  .header-actions { width: 100%; margin-left: 0; justify-content: flex-end; }
  main { padding: 16px; }
  .view-bar { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .view-tabs { gap: 2px; }
  .view-tabs button { font-size: 11px; padding: 7px 9px; }
  .view-tools { margin-left: auto; }
  .filters { gap: 8px 11px; padding: 13px; }
  .search-box { width: 100%; }
  .filters > label { font-size: 9px; }
  .conditions-panel { padding: 12px 13px 0; }
  .result-breakdown { padding: 10px 13px 0; }
  .filters select { max-width: 140px; }
  .filters input[type=number] { width: 75px; }
  .table-toolbar { padding: 12px 13px; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .table-options { width: 100%; justify-content: space-between; }
  .table-note { padding: 10px 13px; }
  .table-note span:last-child { display: none; }
  .fund-table .name-head, .fund-table .name-cell { min-width: 205px; width: 205px; max-width: 205px; }
  .fund-name, .fund-theme { max-width: 185px; }
  .fund-table .selection-head, .fund-table .selection-cell { min-width: 53px; width: 53px; padding-left: 7px; }
  .fund-table .name-head, .fund-table .name-cell { left: 53px; }
  .selection-cell input { margin-right: 4px; }
  .tool-panel { padding: 14px; }
  .calculator-form { grid-template-columns: 1fr 1fr; }
  .calculator-form > button { grid-column: auto; }
  .selection-bar { padding: 10px 12px; }
  .selection-bar > div:first-child { min-width: 0; }
  .selection-bar span { max-width: 370px; }
}
@media (max-width: 500px) {
  .app-header { padding: 12px; }
  main { padding: 14px 10px; }
  h1 { font-size: 17px; }
  .intro p { font-size: 10px; }
  .header-meta { max-width: 160px; text-align: right; font-size: 8px; }
  .brand small { font-size: 9px; }
  .header-actions .button { min-height: 30px; padding: 6px 10px; }
  .view-tabs { width: 100%; }
  .view-tabs button { padding: 7px; font-size: 10px; }
  .needs-grid { grid-template-columns: 1fr; }
  .needs-form fieldset { padding: 10px; }
  .needs-actions .button { flex: 1 1 130px; }
  .result-breakdown button { flex: 1 1 120px; justify-content: space-between; font-size: 10px; }
  .view-tools .button { font-size: 10px; padding: 5px 7px; }
  .filters > label { flex: 1; justify-content: space-between; min-width: min(143px,100%); max-width: 100%; }
  .filters select { width: 105px; }
  .filters input[type=number] { width: 85px; }
  .filter-button { font-size: 10px; }
  .fund-table .name-head, .fund-table .name-cell { min-width: 169px; width: 169px; max-width: 169px; }
  .fund-name, .fund-theme { max-width: 149px; }
  .fund-name { font-size: 10px; }
  .fund-code { font-size: 8px; gap: 4px; }
  .fund-table th { font-size: 9px; }
  .fund-table td { padding-top: 11px; padding-bottom: 11px; }
  .fund-table .selection-head, .fund-table .selection-cell { min-width: 45px; width: 45px; padding-left: 5px; }
  .fund-table .name-head, .fund-table .name-cell { left: 45px; }
  .star-button { font-size: 15px; }
  .selection-cell input { width: 10px; height: 10px; margin-right: 3px; }
  .pagination { flex-wrap: wrap; font-size: 9px; padding: 9px; gap: 5px; }
  .pagination label { margin-right: 0; }
  .pagination .button { padding: 4px 7px; font-size: 9px; }
  .calculator-cards { grid-template-columns: 1fr; }
  .selection-bar span { max-width: 160px; font-size: 9px; }
  .selection-bar .button { font-size: 10px; padding: 6px 9px; }
  .comparison-table { min-width: 670px; }
  .comparison-table th:first-child { width: 130px; }
  .dialog-header { padding: 17px; }
  .dialog-header h2 { font-size: 17px; }
  #detail-content { padding: 0 17px 20px; }
  .detail-dl { grid-template-columns: 1fr; }
  .detail-dl > div { font-size: 10px; }
  .period-table th, .period-table td { font-size: 10px; padding: 8px; }
  .date-range { font-size: 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .is-refreshing .refresh-icon { animation: none; }
  dialog::backdrop { backdrop-filter: none; }
}

/* Account controls inherit the public observer's colors and compact spacing. */
.account-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 30px; border-bottom:1px solid var(--line); background:var(--surface); color:var(--muted); font-size:11px; }
.account-actions { display:flex; flex-wrap:wrap; gap:5px; justify-content:flex-end; }
.account-message { margin:0; padding:9px 30px; background:var(--green-soft); color:var(--green); overflow-wrap:anywhere; }
.account-message.error { color:var(--red); background:#fbefea; }
.account-dialog { width:min(460px,calc(100vw - 30px)); max-height:90vh; padding:0 22px 20px; }
.account-dialog .dialog-header { padding-left:0; padding-right:0; }
.account-dialog h2 { font-size:18px; }
.account-mode { display:flex; gap:8px; margin-top:12px; }
.account-mode [aria-pressed="true"] { background:var(--green-soft); border-color:var(--green); color:var(--green); }
.account-form { display:grid; gap:14px; margin-top:15px; }
.account-form label { display:grid; gap:5px; color:var(--ink); }
.account-form input { width:100%; min-width:0; border:1px solid var(--line); border-radius:5px; padding:9px 10px; background:var(--surface); }
.account-form p { margin:0; color:var(--red); overflow-wrap:anywhere; }
.account-hint,.account-record-tools p { color:var(--muted); font-size:11px; }
.account-record-tools { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.account-record-tools p { width:100%; margin:0; }
@media (max-width:600px) { .account-bar { padding:8px 12px; align-items:flex-start; } .account-message { padding:9px 12px; } .account-actions .button { padding:5px 8px; } }

/* Official checks keep each field and channel date visible. */
.verification-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.verification-tools[hidden] { display:none; }
#verify-scope { flex:1 1 280px; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
#verify-message { width:100%; margin:0; font-size:13px; overflow-wrap:anywhere; }
.verification-badge { display:block; font-size:11px; line-height:1.5; margin-top:6px; color:var(--muted); white-space:normal; }
.verification-badge.conflict { color:#9b3225; font-weight:700; }
.verification-conflict { background:#fff1ed; }
.verification-table { width:100%; min-width:690px; border-collapse:collapse; font-size:12px; }
.verification-table th,.verification-table td { padding:10px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; white-space:normal; overflow-wrap:anywhere; max-width:280px; }
.verification-request { font-size:13px; overflow-wrap:anywhere; }
.detail-section h3 { margin:20px 0 8px; font-size:14px; }
