:root {
  color-scheme: light;
  --navy: #1b2a38;
  --ink: #202c36;
  --muted: #58636d;
  --teal: #1c656b;
  --warm: #f9f8f5;
  --line: #e1ded6;
  --inset: #f2efe9;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--warm); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: #124c52; }
:focus-visible { outline: 2px solid #227e87; outline-offset: 3px; }
.skip { position: absolute; z-index: 5; top: -60px; left: 12px; padding: 8px; background: white; }
.skip:focus { top: 8px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.14; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 47px); font-weight: 500; letter-spacing: -.035em; }
h2 { font-weight: 600; font-size: 24px; letter-spacing: -.015em; }
h3 { font-weight: 600; font-size: 21px; }
p { margin: .55rem 0; }
small, .muted { color: var(--muted); }
small { font-size: 12px; }
header { background: var(--navy); color: white; }
.bar { max-width: 1264px; margin: auto; min-height: 70px; padding: 0 24px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; line-height: 1.16; font: bold 21px/1.12 var(--serif); white-space: nowrap; }
.brand small { display: block; margin-top: 4px; font: 11px var(--sans); color: #b9c9d3; }
.mark { display: grid; place-items: center; height: 34px; width: 34px; border: 1px solid #6c8993; border-radius: 5px; color: #b9e0df; font: 24px/1 var(--sans); }
nav { display: flex; align-self: stretch; margin-left: auto; align-items: stretch; }
nav a { display: flex; align-items: center; gap: 7px; color: #d2dde4; padding: 0 13px; text-decoration: none; white-space: nowrap; font-weight: 650; font-size: 13px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
nav a:hover, nav a[aria-current] { color: white; border-bottom-color: #75c6c4; }
.bar > .quiet:hover { color: var(--navy); }
nav span { font-size: 20px; line-height: 1; }
.bar > .quiet { margin-left: auto; white-space: nowrap; color: white; }
main { max-width: 1264px; min-height: 70vh; margin: auto; padding: 36px 24px 0; }
.heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.heading p { color: var(--muted); margin: .4rem 0 0; }
.badge, .market, .ticker { display: inline-flex; border-radius: 100px; background: #e9edf0; color: #364d5e; padding: 4px 10px; flex: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge { text-transform: uppercase; letter-spacing: .055em; }
.market.inr { background: #f6ece5; color: #804521; }
.market.aud { background: #e7f0f4; color: #27576b; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 7px; min-width: 0; }
.primary, .secondary, .quiet, .star, .segment { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; min-height: 42px; padding: 8px 14px; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.25; text-align: center; }
.primary { color: #fff; background: var(--teal); }
.primary:hover { color: #fff; background: #124e54; }
.secondary { color: var(--navy); background: #fff; border-color: #d9dcd9; }
.secondary:hover, .quiet:hover { background: var(--inset); color: var(--navy); }
.quiet { background: transparent; color: var(--ink); }
.star { color: var(--teal); background: #f2f7f7; font-size: 21px; width: 42px; padding: 0; }
.actions, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.segments { display: inline-flex; padding: 4px; gap: 4px; background: #e9ecee; border: 1px solid #e3e5e4; border-radius: 7px; margin-bottom: 18px; }
.segment { background: transparent; color: var(--muted); gap: 8px; }
.segment[aria-pressed=true] { background: white; color: var(--navy); border-color: #d9dede; }
.segment small { font-size: 10px; text-transform: uppercase; }
.portfolio-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.attention, .summary, .inset, .research, .watch-card, .pick { padding: 19px; }
.attention h2 { margin-bottom: 12px; }
.attention > .actions { margin-top: 12px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; border: 1px solid; border-radius: 6px; padding: 12px 14px; }
.notice[role=status] { justify-content: flex-start; }
.notice p { margin: 3px 0 0; font-size: 13px; }
.notice strong span[aria-hidden] { margin-right: 4px; }
.notice.green { background: #edf5ee; color: #244d37; border-color: #c5dcc9; }
.notice.red { background: #fbefed; color: #813327; border-color: #ebc8c0; }
.notice.amber { background: #fcf4e3; color: #6c4c17; border-color: #e7d2a5; }
.notice.blue { background: #edf4fa; color: #28516b; border-color: #c6dae9; }
.notice.grey { background: #eff1f2; color: #414f58; border-color: #dce1e3; }
.notice .primary, .notice .secondary { flex-shrink: 0; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .075em; font-weight: 750; }
.balance { font: 500 clamp(26px, 3.5vw, 41px)/1.15 var(--serif); margin-top: 5px; font-variant-numeric: tabular-nums; }
.summary p { font-size: 13px; margin-top: 5px; }
.summary-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px; margin-top: 12px; background: #f3f4f3; border-radius: 4px; }
.summary-sub small, .holding small { display: block; }
.summary-sub strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.block { margin-top: 25px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-title span { font-size: 12px; color: var(--muted); font-weight: 650; }
.holdings { display: grid; gap: 7px; }
.holding { display: grid; grid-template-columns: minmax(0,1.6fr) 1fr 1fr auto; align-items: center; gap: 12px; background: white; padding: 13px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.holding-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ticker { border-radius: 4px; font-size: 11px; padding: 6px; }
.holding-figure, .holding-cost { font-variant-numeric: tabular-nums; }
.row-actions .secondary { padding-inline: 9px; }
.report-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 14px; align-items: start; }
.archive { padding: 11px 15px; }
summary { cursor: pointer; font-weight: 650; }
.archive small { margin-left: 6px; }
.archive ul, .research ul { padding-left: 19px; margin-bottom: 4px; }
.archive li, .research li { margin-block: 6px; }
.picks, .watch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pick-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 10px; }
.pick p { min-height: 42px; }
.pick-facts, .facts { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 0 10px; margin: 12px 0; overflow-wrap: anywhere; }
dt, dd { margin: 0; border-bottom: 1px solid #efede8; padding: 7px 0; }
dt { color: var(--muted); font-size: 13px; }
dd { font-weight: 550; font-size: 14px; }
.learn, .back { display: inline-block; font-weight: 650; padding-block: 8px; }
.back { margin-top: -12px; }
.lede { max-width: 67ch; font-size: 17px; }
.research-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 0; color: var(--muted); font-size: 13px; }
.research-grid { display: grid; gap: 12px; margin-top: 16px; }
.research p { max-width: 80ch; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { background: var(--inset); }
.compare[data-count="3"] { min-width: 590px; }
.compare-hint { display: none; }
.compare th:first-child { width: 165px; }
.block .notice + .table-scroll { margin-top: 10px; }
.watch-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.watch-card h2 a { color: var(--navy); }
footer { padding: 28px 0; color: var(--muted); text-align: center; font-size: 12px; }
.signin { display: grid; justify-items: center; align-content: start; padding-top: clamp(38px, 10vh, 104px); }
.signin-card { width: min(440px,100%); padding: clamp(21px,5vw,36px); }
.signin-card .primary { width: 100%; }
form label:not(.check) { display: grid; gap: 5px; font-weight: 650; margin: 12px 0; }
input:not([type=checkbox]), textarea { display: block; width: 100%; padding: 9px 10px; min-height: 43px; border: 1px solid #bfc8cb; border-radius: 4px; color: var(--ink); background: white; font-size: 16px; }
input[type=file] { font-size: 14px; }
.check { display: inline-flex; gap: 7px; align-items: center; min-height: 42px; }
.check input { width: 17px; height: 17px; accent-color: var(--teal); }
.form-error { color: #922d22; font-weight: 650; }
.form-error:empty { display: none; }
.form-error:not(:empty) { margin: 10px 0; }
dialog { color: var(--ink); width: min(660px,calc(100% - 24px)); max-height: 90dvh; border: 1px solid #9ca5a8; border-radius: 8px; padding: 20px; }
dialog::backdrop { background: rgba(18,32,45,.58); }
.dialog-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dialog-head button { font-size: 22px; }
dialog .actions { margin-top: 12px; }
dialog pre { overflow: auto; padding: 10px; background: var(--inset); }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 790px) {
  body { padding-bottom: calc(63px + env(safe-area-inset-bottom)); }
  .bar { min-height: 61px; padding: 0 13px; gap: 8px; }
  .brand { font-size: 18px; }
  .brand small { font-size: 10px; }
  .mark { width: 31px; height: 31px; }
  .bar > .quiet { font-size: 12px; padding-inline: 6px; }
  nav { position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  nav a { flex: 1; flex-direction: column; justify-content: center; gap: 4px; min-height: 60px; font-size: clamp(9px, 2.75vw, 12px); padding: 1px; color: var(--navy); }
  nav a:hover, nav a[aria-current] { color: var(--teal); border-top-color: var(--teal); border-bottom-color: transparent; }
  main { padding: 19px 12px 0; }
  .heading { margin-bottom: 14px; }
  .segments { display: grid; margin-bottom: 11px; }
  .segment { min-height: 34px; font-size: 12px; }
  .portfolio-grid, .report-grid, .picks, .watch-grid { grid-template-columns: 1fr; gap: 10px; }
  .attention, .summary, .inset, .research, .watch-card, .pick { padding: 14px; }
  .attention h2 { font-size: 19px; margin-bottom: 7px; }
  .attention > .actions { margin-top: 8px; }
  .attention .actions > *, .attention .notice .primary { flex: 1 1 100%; }
  .notice { padding: 9px 10px; }
  .holding { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 7px; padding: 10px; font-size: 13px; }
  .holding-figure, .row-actions { text-align: right; justify-content: flex-end; }
  .holding-cost { grid-column: 1; }
  .holding-name .ticker { display: none; }
  .pick p { min-height: 0; }
  .compare { table-layout: fixed; overflow-wrap: anywhere; font-size: 12px; }
  .compare th:first-child { width: 31%; }
  .compare th, .compare td { padding: 8px; }
  .compare-hint { display: block; font-size: 12px; }
  .block { margin-top: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label:not(.check) { margin-block: 6px; }
}
@media (max-width: 350px) {
  .holding { grid-template-columns: minmax(0,1fr); }
  .holding-figure, .row-actions { text-align: left; justify-content: flex-start; }
}

.mode-row {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--inset);
}
.mode-row .segment { min-height: 31px; padding: 5px 11px; font-size: 12px; }
.market-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-top: 12px; }
.quote { display: grid; align-content: start; overflow-wrap: anywhere; gap: 2px; }
.quote-box { background: #eef5f5; border: 1px solid #d5e5e4; border-radius: 5px; padding: 10px 13px; }
.quote-box strong { color: var(--navy); font-size: 21px; font-variant-numeric: tabular-nums; }
.stale { color: #785020; }
.provenance { display: block; font-weight: 400; margin-top: 3px; }
.holding.estimate { grid-template-columns: .65fr 1.4fr 1fr 1fr; }
select { display: block; width: 100%; background: white; color: var(--ink); border: 1px solid #bfc8cb; border-radius: 4px; font: inherit; min-height: 43px; padding: 8px; }
@media (max-width: 790px) {
  .holding.estimate { grid-template-columns: 1fr 1fr; }
}

.bar > .quiet { text-decoration: none; }
.compare-link { margin-top: 14px; }
.investment-overview { padding: 20px; margin: 18px 0 10px; }
.investment-overview-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.broker-panel p { font-size: 13px; }
.quote-pane { background: #f4f7f8; border: 1px solid #dce5e7; border-radius: 6px; padding: 10px 12px; margin: 12px 0; }
.tv-quote { display: block; border: 0; width: 100%; height: 82px; margin-top: 3px; }
.key-figures { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; margin: 12px 0 10px; }
.key-figures > div { background: #f1f5f5; border-radius: 5px; padding: 10px 12px; overflow-wrap: anywhere; }
.key-figures > div > small, .key-figures > div > strong { display: block; }
.key-figures > div > strong { margin-top: 4px; }
.compare th .secondary { font-size: 11px; min-height: 33px; padding: 3px 6px; margin-top: 6px; white-space: normal; }
@media (max-width: 790px) {
  .investment-overview { padding: 13px; }
  .investment-overview-top { flex-direction: column; gap: 8px; }
  .key-figures { grid-template-columns: 1fr 1fr; gap: 7px; }
  .key-figures > div:last-child { grid-column: 1/-1; }
  nav a { white-space: normal; text-align: center; }
}
.mode-row + .back { margin-left: 12px; }
.tv-quote { height: 124px; }

.brand { color: white; text-decoration: none; }
.brand:hover { color: white; }
.bar { gap: 14px; }
nav a { padding-inline: 8px; }
@media (max-width: 790px) {
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  nav { display: grid; grid-template-columns: repeat(4,1fr); }
  .bar nav a { font-size: 10px; min-height: 47px; gap: 2px; }
  nav a span { font-size: 17px; }
}
.rule-summary { margin: 8px 0 12px; padding: 9px 14px; }
.shortlist-card p { min-height: 0; }
.shortlist-figures { grid-template-columns: 1fr 1fr; }
.shortlist-figures > div:last-child { grid-column: auto; }
.result-label { font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 4px; }
.result-label.leading { background:#edf5ee; color:#244d37; }
.result-label.pending { background:#eff1f2; color:#414f58; }
.return-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin-bottom: 4px; }
.return-strip > div { border-top: 1px solid var(--line); padding: 6px 0; }
.return-strip small, .return-strip strong { display:block; }
.shortlist-reasons { margin: 9px 0; }
.shortlist-reasons dt { font-weight:700; color:var(--ink); border:0; padding-bottom:0; }
.shortlist-reasons dd { font-weight:400; padding-top:2px; }

.category-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 18px; }
.category-links .secondary { font-size: 13px; }
.category-section { scroll-margin-top: 84px; }

@media (min-width: 1120px) {
  .picks-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.family-plan { display: grid; gap: 18px; margin-top: 16px; }
.family-plan > section, .plan-goals > article { min-width: 0; }
.plan-goals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.plan-goal { margin: 0; padding: 16px; }
.plan-goal h3 { margin: 0; overflow-wrap: anywhere; }
.plan-retirement, .plan-education, .plan-budget { grid-column: 1 / -1; }
.plan-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-table { width: 100%; text-align: left; }
.plan-table td, .plan-table th { vertical-align: top; white-space: normal; }
.plan-table small, .plan-allocations small { display: block; margin-top: 4px; }
.plan-review { min-width: 640px; }
.plan-review button { margin-top: 6px; }
.plan-allocations { list-style: none; padding: 0; }
.plan-allocations li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.plan-allocations li > span { flex: 1 1 120px; }
.family-plan details { padding-block: 7px; }
@media (max-width: 720px) {
  .plan-goals { grid-template-columns: 1fr; }
}
