:root {
  --ink: #102c40;
  --ink-soft: #587083;
  --gold: #b8750b;
  --gold-dark: #754600;
  --navy: #143f5a;
  --green: #237a57;
  --red: #b54b4b;
  --line: rgba(16, 44, 64, 0.12);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: #85c8f4 url("assets/bright-horizon.png") center / cover fixed no-repeat;
}
body::before { position: fixed; inset: 0; z-index: -1; content: ""; background: rgba(241, 249, 253, 0.24); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.finance-shell { min-height: 100vh; padding: 20px clamp(18px, 3vw, 48px) 32px; }
.site-header { display: flex; align-items: center; justify-content: space-between; width: min(1440px, 100%); margin: 0 auto 28px; }
.header-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-dark); font-weight: 800; letter-spacing: .17em; text-decoration: none; }
.header-brand img { width: 42px; height: 42px; object-fit: contain; filter: saturate(1.35) drop-shadow(0 4px 8px rgba(122,73,0,.22)); }
.site-nav { display: flex; gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: rgba(255,255,255,.68); box-shadow: 0 12px 32px rgba(17,59,86,.1); backdrop-filter: blur(16px); }
.nav-link { padding: 9px 15px; border-radius: 999px; color: #29475d; font-size: .85rem; font-weight: 700; text-decoration: none; }
.nav-link.active { color: #fff; background: var(--navy); }
.finance-main { width: min(1440px, 100%); margin: 0 auto; }
.finance-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--gold-dark); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.finance-heading h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: .96; }
.finance-heading p:last-child { margin: 10px 0 0; color: var(--ink-soft); }
.symbol-search { display: flex; align-items: center; width: min(430px, 100%); padding: 7px; border: 1px solid rgba(255,255,255,.85); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 18px 45px rgba(18,61,88,.14); backdrop-filter: blur(20px); }
.symbol-search > span { margin: 0 10px; color: var(--ink-soft); font-size: 1.4rem; }
.symbol-search input { min-width: 0; flex: 1; padding: 10px 2px; border: 0; outline: 0; color: var(--ink); background: transparent; text-transform: uppercase; }
.symbol-search button { min-height: 42px; padding: 0 19px; border: 0; border-radius: 12px; color: #fff; background: var(--navy); font-weight: 800; }
.market-strip { display: grid; grid-template-columns: repeat(6, minmax(135px, 1fr)); gap: 10px; margin-bottom: 18px; }
.market-chip { display: grid; gap: 3px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; color: var(--ink); background: rgba(249,253,255,.82); box-shadow: 0 12px 28px rgba(22,65,92,.1); text-align: left; backdrop-filter: blur(18px); }
.market-chip:hover, .market-chip.active { transform: translateY(-1px); background: rgba(255,255,255,.96); box-shadow: 0 16px 34px rgba(22,65,92,.15); }
.market-chip small { overflow: hidden; color: var(--ink-soft); font-size: .67rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.market-chip strong { font-size: .95rem; }
.change { font-size: .72rem; font-weight: 800; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.finance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); gap: 18px; }
.chart-card, .watchlist-card, .snapshot-card { border: 1px solid rgba(255,255,255,.82); background: rgba(249,253,255,.9); box-shadow: 0 24px 68px rgba(22,65,92,.16); backdrop-filter: blur(24px) saturate(1.1); }
.chart-card { position: relative; min-width: 0; min-height: 600px; padding: clamp(20px, 2.5vw, 34px); border-radius: 28px; }
.chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.symbol-line { display: flex; align-items: center; gap: 10px; }
.symbol-line h2 { margin: 0; font-size: 1.05rem; }
.symbol-line span { padding: 4px 8px; border-radius: 7px; color: var(--ink-soft); background: #edf4f7; font-size: .62rem; font-weight: 800; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.price-line strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; }
.price-line span { font-size: .82rem; font-weight: 800; }
.range-switcher { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #edf4f7; }
.range-switcher button { min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; font-size: .68rem; font-weight: 800; }
.range-switcher button.active { color: #fff; background: var(--navy); }
#price-chart { width: 100%; height: 450px; }
.chart-state { position: absolute; inset: 145px 24px 24px; display: grid; place-items: center; color: var(--ink-soft); background: rgba(249,253,255,.88); font-size: .85rem; }
.chart-state[hidden] { display: none; }
.side-column { display: grid; align-content: start; gap: 18px; }
.watchlist-card, .snapshot-card { padding: 24px; border-radius: 24px; }
.card-title { display: flex; align-items: center; justify-content: space-between; }
.card-title h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; }
.card-title button { width: 38px; height: 38px; border: 0; border-radius: 12px; color: #fff; background: var(--navy); font-size: 1.15rem; }
.watchlist { display: grid; gap: 7px; margin-top: 17px; }
.watch-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; width: 100%; padding: 11px 10px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.62); text-align: left; }
.watch-item:hover { background: #fff; }
.watch-symbol strong, .watch-symbol small { display: block; }
.watch-symbol strong { font-size: .78rem; }
.watch-symbol small { margin-top: 2px; color: var(--ink-soft); font-size: .62rem; }
.watch-price { font-size: .74rem; font-weight: 800; }
.watch-remove { padding: 3px; border: 0; color: var(--ink-soft); background: transparent; }
.snapshot-card dl { display: grid; gap: 13px; margin: 16px 0 0; }
.snapshot-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.snapshot-card dt { color: var(--ink-soft); font-size: .7rem; }
.snapshot-card dd { margin: 0; font-size: .72rem; font-weight: 800; text-align: right; }
.finance-footer { display: flex; justify-content: space-between; gap: 24px; margin: 18px 4px 0; color: #29475d; font-size: .67rem; }
.finance-footer p { margin: 0; }
.finance-footer a { font-weight: 800; }
.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; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(255,198,44,.9); outline-offset: 2px; }
@media (max-width: 1100px) { .market-strip { grid-template-columns: repeat(3, 1fr); } .finance-grid { grid-template-columns: 1fr; } .side-column { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { body { background-attachment: scroll; } .finance-shell { padding: 14px; } .site-header { align-items: flex-start; gap: 12px; margin-bottom: 20px; } .header-brand span { display: none; } .site-nav { overflow-x: auto; } .nav-link { padding: 8px 10px; font-size: .72rem; } .finance-heading { align-items: stretch; flex-direction: column; } .market-strip { display: flex; overflow-x: auto; padding-bottom: 4px; } .market-chip { min-width: 145px; } .chart-header { flex-direction: column; } .range-switcher { max-width: 100%; overflow-x: auto; } #price-chart { height: 360px; } .chart-card { min-height: 530px; border-radius: 22px; } .chart-state { inset: 190px 20px 20px; } .side-column { grid-template-columns: 1fr; } .finance-footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
