/* FinRunway Wealth — navy and gold on the shared FinRunway Pro shell. */
:root {
  --teal: #8C6516;        /* gold, dark enough for white text and links */
  --teal-dark: #6F4F0F;
  --teal-light: #C9A24D;
  --teal-wash: #F7F0E1;
  --gold: #C9A24D;
  --gold-soft: #EAD9AE;
}
.input:focus { box-shadow: 0 0 0 3px rgba(140,101,22,.18); }
.kpi--credit { border-color: #E6D3A6; }
.alert--info { color: #5A410C; }
.side { background: linear-gradient(180deg, #0B1F33 0%, #0E2640 100%); }
.side__app small { color: var(--gold); }
.nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
.entry { background: radial-gradient(1200px 600px at 80% -10%, rgba(201,162,77,.18), transparent 60%), #0B1F33; }
.entry__eyebrow { color: var(--gold); }
.auth__panel { background: radial-gradient(900px 500px at 90% -10%, rgba(201,162,77,.20), transparent 60%), #0B1F33; }

/* KPI accents */
.kpi--gold { border-color: #E6D3A6; background: linear-gradient(180deg, #fff, #FBF6EA); }
.kpi--gold .kpi__value { color: #5A410C; }
.kpi__value .cur { font-size: 15px; color: var(--muted); font-weight: 700; margin-left: 4px; }

/* owner filter */
.owner-seg { margin-bottom: 18px; }

/* allocation donut */
.alloc { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.donut { width: 100%; max-width: 220px; height: auto; display: block; }
.donut text { font-family: var(--font-sans); }
.donut__big { font-size: 15px; font-weight: 800; fill: var(--ink); }
.donut__small { font-size: 10px; fill: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.legend-list li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.legend-list .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend-list .pct { color: var(--muted); font-size: 13px; min-width: 44px; text-align: right; }
@media (max-width: 720px) { .alloc { grid-template-columns: 1fr; } .donut { margin: 0 auto; } }

/* simple line chart */
.lchart { width: 100%; height: auto; display: block; }
.lchart__grid { stroke: var(--line-2); }
.lchart__axis { font-size: 11px; fill: var(--muted); font-family: var(--font-sans); }
.lchart__line { fill: none; stroke: #8C6516; stroke-width: 2.4; }
.lchart__line2 { fill: none; stroke: #0B1F33; stroke-width: 1.6; stroke-dasharray: 5 4; }
.lchart__area { fill: rgba(201,162,77,.16); }
.lchart__dot { fill: #8C6516; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--slate); margin-top: 8px; }
.chart-legend span::before { content: ''; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: #8C6516; }
.chart-legend span.l2::before { background: repeating-linear-gradient(90deg, #0B1F33 0 5px, transparent 5px 9px); }

/* asset groups */
.grp { margin-top: 22px; }
.grp:first-child { margin-top: 0; }
.grp__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 8px; border-bottom: 2px solid var(--ink); margin-bottom: 2px; }
.grp__head h2 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.grp__head .num { font-weight: 800; }
.tbl tr.click { cursor: pointer; }
.tbl td .sub { display: block; font-size: 12.5px; color: var(--muted); }
.tbl td.name { min-width: 180px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* type picker */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; font-weight: 700; font-size: 14px; }
.type-tile small { font-weight: 500; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.type-tile:hover { border-color: var(--teal); background: #FDFAF2; }
.type-tile .ico { color: var(--teal); }

/* symbol search */
.sym-results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow: auto; }
.sym-results li button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: #fff; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.sym-results li + li button { border-top: 1px solid var(--line-2); }
.sym-results li button:hover { background: #FDFAF2; }
.sym-picked { display: flex; align-items: center; gap: 10px; background: var(--teal-wash); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-top: 6px; }

/* what if */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--slate); }
.chip[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.wi-bars { display: grid; gap: 9px; }
.wi-bar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr minmax(96px, auto); gap: 12px; align-items: center; font-size: 14px; }
.wi-bar__track { height: 22px; background: var(--line-2); border-radius: 6px; position: relative; overflow: hidden; }
.wi-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; background: #C9CFD6; border-radius: 6px; }
.wi-bar--actual .wi-bar__fill { background: #8C6516; }
.wi-bar--best .wi-bar__fill { background: var(--green); }
.wi-bar__inv { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.wi-bar__label { font-weight: 700; }
.wi-bar__label small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.wi-bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.wi-bar__val small { display: block; font-weight: 600; font-size: 12px; }
.wi-head { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
.wi-head strong { font-size: 20px; }
.verdict { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-top: 16px; }
.verdict--good { background: var(--green-wash); color: #12583A; }
.verdict--bad { background: var(--red-wash); color: #7A231B; }
.verdict--even { background: var(--line-2); }
.switch-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.switch-card .side-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.switch-card .side-box small { display: block; color: var(--muted); font-size: 12.5px; }
.switch-card .side-box b { font-size: 18px; font-variant-numeric: tabular-nums; }
.switch-card .side-box.win { border-color: #9FD3B6; background: var(--green-wash); }
.switch-arrow { color: var(--teal); }
@media (max-width: 640px) { .switch-card { grid-template-columns: 1fr; } .switch-arrow { transform: rotate(90deg); justify-self: center; } .wi-bar { grid-template-columns: 1fr auto; } .wi-bar__track { grid-column: 1 / -1; order: 3; } }

/* calendar */
.cal-month { margin-top: 18px; }
.cal-month:first-child { margin-top: 0; }
.cal-month h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.cal-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.cal-item:last-child { border-bottom: 0; }
.cal-date { text-align: center; border-radius: 10px; background: var(--midnight); color: #fff; padding: 4px 0; line-height: 1.1; }
.cal-date b { display: block; font-size: 18px; }
.cal-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.cal-item.done .cal-title { text-decoration: line-through; color: var(--muted); }
.cal-title { font-weight: 700; font-size: 14.5px; }
.cal-title small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.cal-tag { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--line-2); color: var(--slate); white-space: nowrap; }
.cal-tag--tax { background: #FBF0D9; color: #6F4F0F; }
.cal-tag--property, .cal-tag--wealth { background: #EAF0F6; color: #12304C; }
.cal-tag--vehicle { background: #EFEAF6; color: #4A2F73; }
.cal-tag--maturity, .cal-tag--due { background: var(--green-wash); color: var(--green); }
.cal-tag--debtEnd { background: var(--line-2); }

/* vault */
.vault-locked { text-align: center; padding: 26px 16px; }
.vault-locked .ico { width: 34px; height: 34px; color: var(--teal); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--line-2); border-radius: 6px; padding: 2px 8px; letter-spacing: .04em; }
.cred-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.cred-row span:first-child { color: var(--muted); font-weight: 700; font-size: 13px; }

/* misc */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.fact small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fact b { font-size: 17px; font-variant-numeric: tabular-nums; }
.start-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.mini-note { font-size: 12.5px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.tx-type { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tx-type--buy { background: #FBF0D9; color: #6F4F0F; }
.tx-type--sell { background: #EAF0F6; color: #12304C; }
.tx-type--div, .tx-type--int, .tx-type--rent, .tx-type--repay { background: var(--green-wash); color: var(--green); }
.tx-type--fee, .tx-type--out { background: var(--red-wash); color: var(--red); }
.tx-type--split, .tx-type--in { background: var(--line-2); color: var(--slate); }
.link-chain { font-size: 12.5px; color: var(--teal); font-weight: 700; }
@media (max-width: 520px) {
  .cal-item { grid-template-columns: 48px 1fr; }
  .cal-item > div:last-child { grid-column: 2; justify-self: start; }
  .cal-tag { white-space: normal; }
}
