@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600&display=swap');

:root {
  --background: #eaf1f0;
  --text: #0f3838;
  --muted: #647b7a;
  --accent: #168a8a;
  --on-accent: #fff;
  --surface: #fcfefe;
  --soft: #dce8e7;
  --line: #b8cdcb;
}

* { box-sizing: border-box; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html { background: var(--text); }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.5 Inter, Arial, sans-serif; }
.app-shell { min-height: 100vh; }
.rail { background: var(--text); color: #fff; display: flex; flex-direction: column; padding: 30px 24px; position: sticky; top: 0; height: 100vh; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: flex-start; gap: 10px; font: 600 13px/1.08 "Nunito Sans", sans-serif; letter-spacing: -.5px; }
.mark { width: 25px; height: 25px; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent); font-size: 17px; }
.nav-list { display: grid; gap: 7px; margin-top: 70px; }
.nav-link { display: flex; gap: 14px; border: 0; background: transparent; color: #c9d9d7; padding: 12px 10px; font: 400 15px Inter; text-align: left; cursor: pointer; }
.nav-link span { padding-top: 2px; color: #92b3b0; font-size: 11px; }
.nav-link b { margin-left: auto; padding: 2px 6px; background: #fff; color: var(--text); border-radius: 12px; font-size: 11px; }
.nav-link:hover, .nav-link.active { background: #1a4a4a; color: #fff; }
.nav-link.active span, .lock { color: var(--accent); }
.rail-bottom { margin-top: auto; font-size: 12px; }
.local-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 10px; border: 1px solid #416362; background: rgba(255,255,255,.05); }
.rail-bottom .local-status { color: #c9d9d7; white-space: nowrap; }
.local-controls .text-button { color: #c9d9d7; font-size: 11px; white-space: nowrap; }
.local-controls .text-button:hover { color: #fff; }
.saved-clear { align-self: flex-start; margin-top: 12px; padding: 10px 12px; border: 1px solid #9d2a32; color: #9d2a32; text-decoration: none; }
.saved-clear:hover { background: #9d2a32; color: #fff; }
.privacy-note { border-top: 1px solid #416362; padding: 20px 0 12px; color: #c9d9d7; }
.text-button { border: 0; padding: 0; background: transparent; color: inherit; font: 500 13px Inter; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.topbar { height: 88px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 6.4vw; }
.eyebrow { margin: 0 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.35px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.local-status { color: var(--muted); font-size: 12px; }
.local-status i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--text); background: none; font-size: 20px; cursor: pointer; }
.mobile-menu { display: none; }
main { overflow: hidden; }
.view { display: none; padding: 66px 6.4vw 72px; }
.view.active { display: block; }
.intro-row { display: flex; justify-content: space-between; gap: 36px; max-width: 1180px; margin: 0 auto 53px; }
.intro-row > div:first-child { max-width: 770px; }
#analyzer .intro-row { position: relative; padding: 46px; overflow: hidden; background: var(--text); color: #fff; }
#analyzer .intro-row::after { content: ''; position: absolute; right: -82px; bottom: -104px; width: 290px; height: 290px; border: 42px solid var(--accent); border-radius: 50%; opacity: .8; pointer-events: none; }
#analyzer .intro-row > * { position: relative; z-index: 1; }
h1, h2 { margin: 0; font-family: "Nunito Sans", Arial, sans-serif; font-weight: 400; letter-spacing: -1.6px; }
h1 { font-size: 55px; line-height: 1.03; letter-spacing: -2.5px; }
h2 { font-size: 25px; line-height: 1.16; }
.lead { max-width: 580px; margin: 21px 0 0; color: var(--text); font-size: 17px; line-height: 1.65; }
#analyzer .lead { color: #d5e2e0; }
.site-disclaimer { display: flex; justify-content: center; padding: 18px 6.4vw 22px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 11px; }
.site-disclaimer div { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 1180px; }
.site-disclaimer strong { color: var(--text); font-weight: 600; }
.analysis-grid { display: grid; grid-template-columns: minmax(330px,.92fr) minmax(360px,1.08fr); gap: 22px; max-width: 1180px; margin: auto; }
#analyzer .offer-form { border-top: 4px solid var(--text); box-shadow: 0 8px 18px rgba(15,56,56,.05); }
#analyzer .results { display: block; }
.offer-workspace { display: grid; grid-template-columns: minmax(360px,.92fr) minmax(420px,1.08fr); overflow: hidden; background: var(--surface); box-shadow: 0 8px 18px rgba(15,56,56,.08); }
#analyzer .analysis-grid { display: block; }
#analyzer .offer-workspace .offer-form { padding: 30px; border: 0; border-top: 4px solid var(--text); box-shadow: none; }
#analyzer .offer-workspace .financial-snapshot { height: 100%; }
.financial-snapshot { padding: 0; overflow: hidden; border-color: var(--text); border-left: 4px solid var(--accent); background: var(--text); color: #fff; box-shadow: 0 8px 18px rgba(15,56,56,.14); }
.financial-snapshot .result-hero { display: flex; flex-direction: column; justify-content: center; min-height: 278px; padding: 30px; background: transparent; color: #fff; }
.financial-snapshot .result-hero .result-header .eyebrow, .financial-snapshot .result-hero .metric-row span, .financial-snapshot .chart-key, .financial-snapshot .chart-labels { color: #c9d9d7; }
.financial-snapshot .result-hero .tag { background: var(--accent); color: #fff; }
.financial-snapshot .result-hero .metric-row, .financial-snapshot .result-hero .metric-row div + div { border-color: #416362; }
.financial-snapshot .snapshot-divider { display: none; }
.financial-snapshot .breakdown { display: block; min-height: 0; padding: 27px 30px 30px; }
.financial-snapshot .chart-key i { background: #fff; }
.financial-snapshot .chart-key .interest-key, .financial-snapshot .bar-chart { background: var(--accent); }
.financial-snapshot .principal-bar { background: #416362; }
.financial-snapshot, .financial-snapshot .result-hero { background: #0f3838; }
.financial-snapshot .breakdown { background: #0f3838; color: #fff; }
.financial-snapshot .result-header, .financial-snapshot .payment, .financial-snapshot .metric-row strong, .financial-snapshot .breakdown h2 { color: #fff; }
.financial-snapshot .result-header .eyebrow, .financial-snapshot .metric-row span, .financial-snapshot .breakdown .eyebrow, .financial-snapshot .chart-key, .financial-snapshot .chart-labels { color: #d5e2e0; }
.financial-snapshot .metric-row { grid-template-columns: repeat(3,1fr); }
.financial-snapshot .breakdown .card-heading { margin-bottom: 18px; }
.financial-snapshot .breakdown .bar-chart { margin-top: 18px; }
#analyzer .flags-section { padding: 28px; background: rgba(255,255,255,.5); border: 1px solid var(--line); }
#analyzer .next-steps { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--text); box-shadow: 0 8px 18px rgba(15,56,56,.04); }
.financial-snapshot { border: 0; border-left: 4px solid var(--accent); }
.financial-snapshot { border: 0; border-left: 4px solid var(--accent); outline: 0; box-shadow: 0 8px 18px rgba(15,56,56,.14); }
#analyzer .next-steps { border: 0; border-left: 4px solid var(--accent); background: #0f3838; color: #fff; box-shadow: 0 8px 18px rgba(15,56,56,.14); }
#analyzer .next-steps h2, #analyzer .next-steps ol { color: #fff; }
#analyzer .next-steps .secondary { border: 0; background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
#analyzer .next-steps .secondary:hover { background: #159f82; }

@media (max-width: 900px) {
  .offer-workspace { grid-template-columns: 1fr; }
  #analyzer .offer-workspace .financial-snapshot { min-height: auto; }
}
#analyzer { --section-gap: 36px; }
#analyzer > .intro-row { margin-bottom: var(--section-gap); }
#analyzer > .analysis-grid { margin-bottom: var(--section-gap); }
#analyzer .compare-inline { max-width: 1180px; margin: 0 auto var(--section-gap); }
.compare-inline-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 30px; background: var(--soft); border-left: 4px solid var(--accent); }
.compare-inline-header .eyebrow { margin-bottom: 5px; color: var(--muted); }
.compare-inline-header .secondary { min-height: 48px; color: var(--text); white-space: nowrap; }
.comparison-body { padding-top: 18px; }
#analyzer .compare-inline .compare-grid { max-width: none; }
#analyzer > .flags-section { margin: 0 auto var(--section-gap); }
.card { padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.card-heading .text-button, .saved-item button { color: var(--text); }
label { display: grid; gap: 8px; margin-bottom: 20px; font-size: 13px; }
input { width: 100%; padding: 14px 12px; border: 1px solid #afc4c2; border-radius: 0; background: #fff; color: var(--text); font: 400 16px Inter; outline-color: var(--accent); }
select, textarea { width: 100%; padding: 14px 12px; border: 1px solid #afc4c2; border-radius: 0; background: #fff; color: var(--text); font: 400 15px Inter; outline-color: var(--accent); resize: vertical; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 54px; }
.input-wrap em { position: absolute; top: 15px; right: 12px; color: var(--muted); font-size: 11px; font-style: normal; }
.currency input { padding-left: 28px; }
.currency::before { content: '$'; position: absolute; z-index: 1; top: 14px; left: 13px; color: var(--muted); }
small { margin-top: -2px; color: var(--muted); font-size: 11px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section { margin-bottom: 6px; padding-top: 1px; }
.form-section + .form-section { padding-top: 8px; border-top: 1px solid var(--line); }
.form-section-label { margin: 0 0 13px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.form-section .form-pair label { margin-bottom: 17px; }
#loan-form .form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#loan-form .form-pair > label { grid-template-rows: auto auto 14px; min-width: 0; }
#loan-form .input-wrap { min-width: 0; }
#loan-form .input-wrap input { height: 50px; }
#loan-form .form-pair small { align-self: start; min-height: 14px; }
#loan-form .form-pair > label.slider-field { display: grid; grid-template-rows: 34px 18px; align-content: start; gap: 10px; }
.slider-field > span { display: flex; height: 34px; align-items: flex-start; justify-content: space-between; gap: 8px; }
.slider-field output { align-self: flex-start; padding: 3px 7px; background: var(--soft); color: var(--text); font: 500 12px Inter, sans-serif; }
#loan-form input[type="range"] { width: 100%; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
#loan-form input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 var(--range-progress, 50%), var(--line) var(--range-progress, 50%) 100%); }
#loan-form input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 var(--range-progress, 50%), var(--line) var(--range-progress, 50%) 100%); }
#loan-form input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; border: 3px solid var(--surface); border-radius: 50%; appearance: none; -webkit-appearance: none; background: var(--text); box-shadow: 0 1px 4px rgba(15,56,56,.28); }
#loan-form input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--text); box-shadow: 0 1px 4px rgba(15,56,56,.28); }
fieldset { margin: 8px 0 21px; padding: 19px 0 4px; border: 0; border-top: 1px solid var(--line); }
legend { padding: 0 8px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.check { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12px; }
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 57px; padding: 13px 19px; border: 0; border-radius: 0; font: 500 15px Inter; cursor: pointer; }
.button span { font-size: 22px; line-height: 1; }
.primary { width: 100%; background: var(--accent); color: var(--on-accent); }
.primary:hover { background: #116f70; }
.secondary { border: 1px solid var(--text); background: #fff; }
.offer-form .button { margin-top: 2px; }
.results { display: grid; gap: 22px; }
.dark-card { border-color: var(--text); background: var(--text); color: #fff; }
.result-hero.dark-card { display: flex; flex-direction: column; justify-content: center; min-height: 292px; border-color: var(--line); background: var(--surface); color: var(--text); }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; }
.result-header .eyebrow, .metric-row span, .difference p, .difference .tip { color: #c9d9d7; }
.result-hero .result-header .eyebrow, .result-hero .metric-row span { color: var(--muted); }
.tag { padding: 5px 8px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 600; letter-spacing: .8px; }
.result-hero .tag { background: var(--text); color: #fff; }
.payment { margin: 40px 0; font: 400 63px/1 "Nunito Sans"; letter-spacing: -3px; }
.payment span { font-size: 33px; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 17px; border-top: 1px solid #416362; }
.metric-row div + div { padding-left: 17px; border-left: 1px solid #416362; }
.result-hero .metric-row, .result-hero .metric-row div + div { border-color: var(--line); }
.metric-row span { display: block; margin-bottom: 5px; font-size: 11px; }
.metric-row strong { font-size: 17px; font-weight: 400; }
.breakdown { display: flex; flex-direction: column; justify-content: center; min-height: 206px; padding-bottom: 30px; }
.chart-key { color: var(--muted); font-size: 10px; white-space: nowrap; }
.chart-key i { display: inline-block; width: 7px; height: 7px; margin: 0 5px 0 9px; background: var(--text); }
.chart-key .interest-key, .bar-chart { background: var(--accent); }
.bar-chart { display: flex; height: 27px; margin-top: 25px; }
.principal-bar { width: 80%; background: var(--text); transition: width .3s; }
.chart-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.chart-label { padding-top: 9px; border-top: 3px solid var(--text); }.chart-label.chart-cost { border-color: var(--accent); text-align: right; }.chart-label span { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }.chart-label strong { display: block; margin-top: 3px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.15; }
.financial-snapshot .chart-label.chart-principal { border-color: #729693; }.financial-snapshot .chart-label.chart-cost { border-color: var(--accent); }.financial-snapshot .chart-label span { color: #c9d9d7; }.financial-snapshot .chart-label strong { color: #fff; }
.flags-section { max-width: 1180px; margin: 70px auto; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 21px; }
.section-title > p { max-width: 340px; margin: 0; color: var(--muted); font-size: 13px; }
.flags { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.flag { position: relative; min-height: 168px; padding: 21px 16px; border-top: 3px solid var(--text); background: var(--soft); }
.flag-icon { width: 24px; height: 24px; margin-bottom: 18px; background: var(--accent); color: var(--on-accent); text-align: center; font-size: 17px; font-weight: 600; }
.flag-title { margin: 0 0 8px; font: 400 18px/1.15 "Nunito Sans"; letter-spacing: -.5px; }
.flag-copy { margin: 0; color: #315755; font-size: 12px; line-height: 1.45; }
.flag-level { position: absolute; top: 22px; right: 17px; color: var(--text); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.next-steps { display: grid; grid-template-columns: 1.1fr 1.4fr auto; align-items: center; gap: 25px; max-width: 1180px; margin: auto; padding: 30px; border-top: 3px solid var(--text); }
.next-steps ol { margin: 0; padding-left: 17px; font-size: 13px; line-height: 1.8; }
.next-steps .button { white-space: nowrap; }
.compact { margin-bottom: 49px; }
.compare-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; max-width: 1180px; margin: auto; }
.compare-card h2 { margin-bottom: 31px; }
.compare-card > strong, .difference > strong { display: block; margin-bottom: 28px; font: 400 43px/1 "Nunito Sans"; letter-spacing: -2px; }
.compare-card dl { margin: 0; border-top: 1px solid var(--line); }
dt, dd { display: inline-block; width: 50%; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dd { text-align: right; font-weight: 600; }
.compare-card label { margin-bottom: 13px; font-size: 11px; }
.compare-card input { padding: 10px; font-size: 14px; }
.compare-card .button { min-height: 49px; margin-top: 5px; font-size: 13px; }
.alt { background: var(--soft); }
.difference { display: flex; flex-direction: column; }
.difference p { margin: 0; font-size: 14px; }
.difference .tip { margin-top: auto; padding-top: 16px; border-top: 1px solid #416362; font-size: 12px; }
.learn-grid { display: grid; grid-template-columns: repeat(2,1fr); max-width: 1180px; margin: auto; border-top: 1px solid var(--text); border-left: 1px solid var(--text); }
.rights-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1180px; margin: 0 auto 22px; }.rights-section-heading h2 { margin: 0; font-size: 29px; }.rights-section-heading > p { max-width: 395px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.learn-grid article { min-height: 190px; padding: 31px; border-right: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.learn-grid span { color: #247978; font-size: 11px; font-weight: 600; }
.learn-grid h2 { margin: 22px 0 10px; }
.learn-grid p { max-width: 420px; color: #315755; font-size: 13px; }
.collections-guide { max-width: 1180px; margin: 52px auto 0; padding: 30px; border-left: 4px solid var(--accent); background: var(--soft); }.collections-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }.collections-heading > div { max-width: 650px; }.collections-heading > p { max-width: 300px; margin: 0; color: var(--muted); font-size: 12px; }.collections-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }.collections-steps article { padding-top: 17px; border-top: 1px solid #9bb7b4; }.collections-steps span { color: #247978; font-size: 11px; font-weight: 600; }.collections-steps h3 { margin: 17px 0 8px; font: 400 20px/1.15 "Nunito Sans"; letter-spacing: -.5px; }.collections-steps p { min-height: 92px; margin: 0 0 16px; color: #315755; font-size: 12px; line-height: 1.5; }.collections-steps a { color: var(--text); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rights-action-kit { max-width: 1180px; margin: 20px auto 0; padding: 30px; background: #e3edeb; border-top: 4px solid var(--text); }.action-kit-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }.action-kit-heading > div { max-width: 650px; }.action-kit-heading > p { max-width: 365px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.action-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }.action-path li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #9bb7b4; color: #315755; font-size: 12px; font-weight: 600; }.action-path span { color: var(--accent); font-size: 10px; letter-spacing: .7px; }.action-kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.evidence-packet, .collection-record { min-height: 318px; border-color: #b1c6c3; }.evidence-packet h3, .response-routes h3, .collection-record h3 { margin: 0 0 18px; font: 400 23px/1.15 "Nunito Sans"; letter-spacing: -.7px; }.evidence-packet .check { padding: 10px 0; margin: 0; border-top: 1px solid var(--line); font-size: 12px; }.evidence-packet .check:first-of-type { margin-top: 8px; }.action-link { display: block; margin-top: 18px; color: var(--text); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }.route-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }.route-link:hover { color: var(--accent); }.route-link b { font-size: 20px; font-weight: 400; }.collection-record { display: grid; grid-template-rows: auto 1fr; gap: 20px; margin: 0; background: var(--text); color: #fff; }.collection-record .eyebrow { color: #bcd5d1; }.collection-record > div > p:last-child { max-width: 390px; margin: 0; color: #d5e2e0; font-size: 12px; line-height: 1.55; }.collection-record-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-self: end; }.collection-record label { color: #d5e2e0; }.collection-record input, .collection-record textarea { border-color: #5f807d; background: #f7fbfa; }.collection-record .record-notes { grid-column: 1 / -1; }.collection-record .button { width: max-content; min-height: 48px; padding-inline: 18px; }.response-routes { display: grid; grid-template-columns: 250px 1fr; gap: 36px; margin-top: 18px; border-color: #b1c6c3; }.response-routes h3 { margin-bottom: 0; }.route-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.route-link { min-height: 66px; }.collection-record-output { margin-top: 18px; border-left: 4px solid var(--accent); }.collection-record-output > p { max-width: 820px; margin: 0 0 15px; font: 400 19px/1.55 "Nunito Sans"; }.collection-record-output small { color: var(--muted); }
.saved-list { display: grid; gap: 12px; max-width: 1180px; margin: auto; }
.empty-state { padding: 45px; border: 1px dashed #9bb7b4; color: var(--muted); text-align: center; }
.saved-item { display: flex; align-items: center; gap: 20px; padding: 19px; border: 1px solid var(--line); background: #fff; }
.saved-item .saved-date { min-width: 100px; color: var(--muted); font-size: 12px; }
.saved-item strong { font: 400 20px "Nunito Sans"; }
.saved-item .saved-meta { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.saved-item button { border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.saved-item .delete-save { color: #9d2a32; }

/* Lifecycle workspaces */
.manage-grid, .monitor-grid, .resolve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1180px; margin: auto; }
.servicing-controls, .event-form, .evidence-card, .concern-card { border-top: 4px solid var(--text); }.servicing-controls .eyebrow, .event-form .eyebrow, .evidence-card .eyebrow, .concern-card .eyebrow { margin-bottom: 20px; }
.manage-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }.local-note { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.payoff-card { padding: 30px; }.payoff-card .eyebrow { color: #c9d9d7; }.payoff-number { display: flex; align-items: baseline; gap: 9px; margin: 32px 0; }.payoff-number strong { font: 400 72px/1 "Nunito Sans"; letter-spacing: -4px; }.payoff-number span { color: #c9d9d7; font-size: 14px; }.payoff-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 17px; border-top: 1px solid #416362; }.payoff-metrics div + div { padding-left: 16px; border-left: 1px solid #416362; }.payoff-metrics span { display: block; margin-bottom: 5px; color: #c9d9d7; font-size: 11px; }.payoff-metrics strong { font-size: 16px; font-weight: 500; }.balance-track { height: 8px; margin-top: 32px; background: #416362; }.balance-track span { display: block; width: 72%; height: 100%; background: var(--accent); transition: width .2s; }.balance-caption { display: flex; justify-content: space-between; margin: 9px 0 0; color: #c9d9d7; font-size: 11px; }.balance-caption strong { color: #fff; font-weight: 500; }
.payment-log { max-width: 1180px; margin: 20px auto 0; border-color: var(--line); border-left: 4px solid var(--accent); background: var(--soft); }.compact-button { min-height: 46px; width: auto; font-size: 13px; }.payment-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.payment-steps article { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }.payment-steps span { display: grid; place-items: center; width: 25px; height: 25px; flex: none; background: #fff; color: var(--text); font-size: 11px; font-weight: 600; }.payment-steps strong { font-size: 13px; }.payment-steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.timeline-card { min-height: 390px; border-color: var(--text); background: var(--text); color: #fff; }.timeline-card .eyebrow, .timeline-card .event-date, .timeline-card .event-empty { color: #c9d9d7; }.timeline-card h2, .timeline-card .event-type { color: #fff; }.timeline-card .text-button { color: #fff; }.timeline-card .event-item { border-color: #416362; }.timeline-card .event-note { color: #d5e2e0; }.event-list { display: grid; gap: 0; }.event-item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }.event-date { color: var(--muted); font-size: 11px; }.event-type { margin: 0 0 4px; font-size: 13px; font-weight: 600; }.event-note { margin: 0; color: #315755; font-size: 12px; }.event-empty { padding: 42px 0; color: var(--muted); text-align: center; font-size: 13px; }
.evidence-card .check { padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }.evidence-card .check:first-of-type { margin-top: 20px; }.concern-card { border-color: var(--text); background: var(--text); color: #fff; }.concern-card .eyebrow, .concern-card label { color: #d5e2e0; }.concern-card textarea { border-color: #5f807d; background: #f7fbfa; }.summary-output { max-width: 1180px; margin: 20px auto 0; border-left: 4px solid var(--accent); }.summary-output p { max-width: 780px; margin: 0 0 18px; font: 400 20px/1.5 "Nunito Sans"; }.summary-output small { margin: 0; }

/* Resolve: a staged case workspace rather than one long form. */
.resolve-roadmap { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 0 auto 20px; border: 1px solid var(--line); background: var(--soft); }.resolve-roadmap article { min-height: 112px; padding: 18px; border-left: 1px solid var(--line); }.resolve-roadmap article:first-child { border-left: 0; }.resolve-roadmap span { display: block; margin-bottom: 9px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .9px; }.resolve-roadmap strong { font-size: 14px; }.resolve-roadmap p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.case-setup { border-top: 4px solid var(--text); }.case-setup h2, .concern-card h2 { margin-bottom: 20px; }.case-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }.case-fields label:last-child { grid-column: 1 / -1; }.resolve-panel { max-width: 1180px; margin: 20px auto 0; border: 1px solid var(--line); background: var(--surface); }.resolve-panel > summary { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; list-style: none; }.resolve-panel > summary::-webkit-details-marker { display: none; }.resolve-panel > summary > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--text); color: #fff; font-size: 11px; font-weight: 600; }.resolve-panel > summary div { flex: 1; }.resolve-panel > summary strong { display: block; font: 400 21px/1.15 "Nunito Sans"; letter-spacing: -.6px; }.resolve-panel > summary small { display: block; margin-top: 4px; color: var(--muted); }.resolve-panel > summary > b { color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .18s ease; }.resolve-panel[open] > summary { border-bottom: 1px solid var(--line); }.resolve-panel[open] > summary > b { transform: rotate(180deg); }.resolve-panel-body { padding: 24px; background: #f7fbfa; }.resolve-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.resolve-mini-form, .resolve-list-card, .next-step-card { padding: 22px; border: 1px solid var(--line); background: #fff; }.resolve-mini-form { margin: 0; }.resolve-mini-form label { margin-bottom: 14px; }.resolve-mini-form .button { width: 100%; }.resolve-list-card .card-heading { margin-bottom: 15px; }.resolve-list-card h3, .next-step-card h3 { margin: 0; font: 400 21px/1.2 "Nunito Sans"; letter-spacing: -.6px; }.resolve-list { display: grid; gap: 0; }.resolve-empty { margin: 4px 0; color: var(--muted); font-size: 12px; }.resolve-entry { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }.resolve-entry:first-child { border-top: 0; }.resolve-entry strong { display: block; font-size: 13px; }.resolve-entry small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.45; }.resolve-entry button { align-self: start; border: 0; background: transparent; color: #9d2a32; font: 500 11px Inter; text-decoration: underline; cursor: pointer; }.next-step-card { grid-column: 1 / -1; background: var(--soft); }.next-step-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }.next-step-links a, .next-step-links .text-button { min-height: 58px; padding: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 12px; line-height: 1.4; text-align: left; text-decoration: none; }.next-step-links .text-button { cursor: pointer; text-decoration: none; }

@media (max-width: 900px) {
  .manage-grid, .monitor-grid, .resolve-grid, .action-kit-grid, .route-list, .resolve-work-grid { grid-template-columns: 1fr; }.collections-steps { grid-template-columns: 1fr; }.collections-steps p { min-height: 0; }.collections-heading, .action-kit-heading, .rights-section-heading { display: block; }.collections-heading > p, .action-kit-heading > p, .rights-section-heading > p { margin-top: 14px; }.response-routes { grid-template-columns: 1fr; gap: 14px; }.route-link { min-height: 0; }
  .payment-steps { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 570px) {
  .manage-fields, .collection-record-fields, .case-fields { grid-template-columns: 1fr; }.case-fields label:last-child { grid-column: auto; }.collection-record .record-notes { grid-column: auto; }.collection-record .button { width: 100%; }.action-path { grid-template-columns: 1fr; gap: 0; }
  .resolve-roadmap { grid-template-columns: 1fr 1fr; }.resolve-roadmap article { min-height: 96px; padding: 15px; }.resolve-roadmap article:nth-child(odd) { border-left: 0; }.resolve-roadmap article:nth-child(n+3) { border-top: 1px solid var(--line); }.resolve-panel > summary { padding: 18px; }.resolve-panel > summary strong { font-size: 19px; }.resolve-panel-body { padding: 14px; }.resolve-mini-form, .resolve-list-card, .next-step-card { padding: 18px; }.next-step-links { grid-template-columns: 1fr; }.summary-output .card-actions { display: grid; grid-template-columns: 1fr; }.summary-output .card-actions .button { width: 100%; }
  .payoff-metrics { gap: 8px; }.payoff-metrics div + div { padding-left: 8px; }
  .payment-log .card-heading { display: block; }.payment-log .compact-button { width: 100%; margin-top: 18px; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }.rail { position: relative; height: auto; padding: 18px 5vw; }.nav-list,.rail-bottom { display: none; }.topbar { padding: 0 5vw; }.mobile-menu { display: block; border: 0; background: none; font-size: 20px; }.view { padding: 45px 5vw; }.analysis-grid,.compare-grid { grid-template-columns: 1fr; }.flags { grid-template-columns: 1fr 1fr; }.next-steps { grid-template-columns: 1fr; }.intro-row { margin-bottom: 38px; }
}
@media (max-width: 570px) {
  h1 { font-size: 39px; }.intro-row { display: block; }.form-pair,.flags,.learn-grid { grid-template-columns: 1fr; }.chart-key { display: none; }.metric-row { gap: 8px; }.card { padding: 22px; }.payment { font-size: 54px; }.next-steps { display: block; }.next-steps .button { width: 100%; margin-top: 20px; }.saved-item { flex-wrap: wrap; }.saved-item .saved-meta { width: 100%; margin: 0; justify-content: space-between; }.top-actions .local-status { display: none; }
}

/* Top navigation */
.rail { z-index: 10; height: auto; min-height: 82px; flex-direction: row; align-items: center; gap: 28px; padding: 14px 4.5vw; border-bottom: 1px solid #416362; box-shadow: 0 3px 14px rgba(0,0,0,.12); }
.brand { min-width: 174px; }
.brand { min-width: 0; padding: 0; background: transparent; }
.brand-lockup { display: block; width: 142px; height: auto; filter: brightness(0) invert(1); }
.nav-list { display: flex; flex: 1; align-items: center; justify-content: center; gap: 5px; margin: 0; }
.nav-link { align-items: center; min-height: 43px; padding: 10px 14px; white-space: nowrap; }
.nav-link span { display: none; }
.rail-bottom { margin: 0; }
.rail-bottom { display: flex; align-items: center; gap: 12px; }.install-button { border: 1px solid #729693; padding: 7px 10px; background: transparent; color: #fff; font: 500 11px Inter; cursor: pointer; white-space: nowrap; }.install-button:hover { border-color: var(--accent); background: var(--accent); }.install-button span { margin-left: 4px; font-size: 14px; }
.local-controls { min-width: 182px; }

@media (max-width: 900px) {
  .rail { position: sticky; display: flex; min-height: 72px; gap: 14px; padding: 10px 4vw; overflow-x: auto; }
  .nav-list,.rail-bottom { display: flex; }
  .brand { min-width: 145px; }
  .nav-list { justify-content: flex-start; min-width: max-content; }
  .nav-link { min-height: 39px; padding: 8px 10px; font-size: 13px; }
  .local-controls { min-width: max-content; }
}

@media (max-width: 570px) {
  .rail { gap: 10px; padding-inline: 14px; }
  .brand { min-width: 42px; }
  .brand > span:last-child { display: none; }
  .nav-list { gap: 2px; }
  .nav-link { padding: 8px 9px; font-size: 12px; }
  .local-controls .local-status { display: none; }
}

@media (max-width: 570px) {
  #analyzer { --section-gap: 24px; }
  .compare-inline-header { display: block; padding: 22px; }
  .compare-inline-header .button { width: 100%; margin-top: 18px; }
}

@media print {
  .rail,.topbar,.button,.text-button { display: none !important; }.app-shell { display: block; }.view { padding: 0; }.view:not(#analyzer) { display: none !important; }.analysis-grid { grid-template-columns: 1fr 1fr; }.flags { grid-template-columns: repeat(3,1fr); }
}

/* Rights: distinct surfaces and a clear scan order */
#learning .learn-grid article { background: #fcfefe; }
#learning .learn-grid article:nth-child(even) { background: #dce8e7; }
#learning .collections-guide { margin-top: 24px; padding: 34px; border-left-color: var(--accent); background: var(--text); color: #fff; }
#learning .collections-heading .eyebrow, #learning .collections-heading > p { color: #c9d9d7; }
#learning .collections-steps article { border-top-color: #416362; }
#learning .collections-steps span { color: var(--accent); }
#learning .collections-steps h3, #learning .collections-steps a { color: #fff; }
#learning .collections-steps p { color: #d5e2e0; }
#learning .collections-steps a { text-decoration-color: var(--accent); }
#learning .rights-action-kit { margin-top: 24px; padding: 34px; border-top-color: var(--accent); background: #d7e5e3; }
#learning .evidence-packet { background: #fcfefe; }
#learning .response-routes { border-left: 4px solid var(--accent); background: #fff; }
#learning .route-list { gap: 14px; }
#learning .route-link { min-height: 112px; padding: 20px; border: 0; background: var(--text); color: #fff; line-height: 1.4; transition: background .18s ease, transform .18s ease; }
#learning .route-link b { color: var(--accent); }
#learning .route-link:hover { background: #174948; color: #fff; transform: translateY(-2px); }
#learning .collection-record-output { background: #fff; }

@media (max-width: 900px) {
  #learning .collections-guide, #learning .rights-action-kit { padding: 26px; }
  #learning .route-link { min-height: 0; }
}

/* Explicit-save library */
.card-actions { display: flex; align-items: center; gap: 10px; }.summary-output .button, .collection-record-output .button { display: block; width: max-content; margin-top: 20px; }.saved-library-item { align-items: flex-start; }.saved-library-item > div:nth-child(2) { flex: 1; min-width: 0; }.saved-kind { margin: 0 0 5px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .9px; }.saved-library-item small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }.saved-detail { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: #315755; font-size: 12px; line-height: 1.55; white-space: pre-line; }.saved-library-item .saved-meta { flex-wrap: wrap; justify-content: flex-end; gap: 14px; }.saved-library-item .saved-meta button { color: var(--text); }.saved-library-item .saved-meta .delete-save { color: #9d2a32; }

@media (max-width: 570px) {
  .card-actions { width: 100%; margin-top: 16px; }.card-actions .button { flex: 1; }.timeline-card .card-actions { width: auto; margin-top: 0; }.summary-output .button, .collection-record-output .button { width: 100%; }.saved-library-item .saved-meta { justify-content: flex-start; }#manage .payment-log .card-actions { display: grid; grid-template-columns: 1fr; }#manage .payment-log .card-actions .compact-button { width: 100%; margin: 0; }
}

/* Phone navigation: keep primary destinations within thumb reach. */
@media (max-width: 640px) {
  .rail { display: block; min-height: 54px; padding: 0; position: sticky; top: 0; border: 0; background: var(--text); box-shadow: 0 3px 14px rgba(0,0,0,.12); overflow: visible; }
  .rail > .brand { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 54px; margin: 0; padding: 10px 16px; background: transparent; }
  .brand-lockup { width: 128px; }
  .rail-bottom { display: none; }
  .install-button { display: none !important; }
  .nav-list { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-width: 0; height: calc(64px + env(safe-area-inset-bottom)); margin: 0; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); gap: 2px; border-top: 1px solid #416362; background: var(--text); box-shadow: 0 -4px 14px rgba(0,0,0,.16); }
  .nav-link { display: flex; min-width: 0; min-height: 52px; justify-content: center; padding: 7px 2px; color: #c9d9d7; font-size: 10px; line-height: 1.15; text-align: center; white-space: normal; }
  .nav-link.active { background: #1a4a4a; color: #fff; }
  .nav-link b { position: absolute; top: 4px; right: 5px; margin: 0; font-size: 9px; }
  .view { padding-bottom: 96px; }
  .site-disclaimer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Rights stays expansive on desktop and progressive on phones. */
.rights-disclosure > summary { cursor: pointer; list-style: none; }
.rights-disclosure > summary::-webkit-details-marker { display: none; }
.rights-disclosure-toggle { display: none; }

@media (max-width: 640px) {
  #learning .collections-guide, #learning .rights-action-kit { padding: 0; overflow: hidden; }
  #learning .rights-disclosure > summary { display: flex; align-items: center; gap: 14px; padding: 20px 18px; }
  #learning .collections-heading, #learning .action-kit-heading { display: block; flex: 1; margin: 0; }
  #learning .collections-heading h2, #learning .action-kit-heading h2 { font-size: 21px; }
  #learning .collections-heading > p, #learning .action-kit-heading > p { display: none; }
  #learning .rights-disclosure-toggle { display: flex; align-items: center; gap: 7px; flex: none; color: var(--accent); font-size: 11px; font-weight: 600; white-space: nowrap; }
  #learning .rights-disclosure-toggle b { font-size: 16px; transition: transform .18s ease; }
  #learning .rights-disclosure[open] > summary { border-bottom: 1px solid #416362; }
  #learning .rights-disclosure[open] .rights-disclosure-toggle b { transform: rotate(180deg); }
  #learning .rights-disclosure-content { padding: 0 18px 20px; }
  #learning .collections-steps { gap: 0; }
  #learning .collections-steps article { padding: 18px 0; }
  #learning .collections-steps article:first-child { border-top: 0; }
  #learning .action-path { margin-top: 4px; }
}

/* On phones, Rights becomes a hub with one focused collections workflow. */
.rights-mobile-routes { display: none; }
.rights-back { display: block; margin-top: 24px; color: var(--text); }

@media (max-width: 640px) {
  #learning .rights-mobile-routes { display: grid; gap: 14px; margin: 24px auto; max-width: 1180px; }
  .rights-mobile-route { position: relative; display: grid; gap: 6px; width: 100%; padding: 22px 54px 22px 20px; border: 0; border-left: 4px solid var(--accent); background: var(--text); color: #fff; text-align: left; cursor: pointer; }
  .rights-mobile-route.action-route { background: #d7e5e3; color: var(--text); }
  .rights-mobile-route span { color: #c9d9d7; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
  .rights-mobile-route.action-route span { color: var(--muted); }
  .rights-mobile-route strong { font: 400 22px/1.15 "Nunito Sans"; letter-spacing: -.7px; }
  .rights-mobile-route small { color: #d5e2e0; font-size: 12px; line-height: 1.5; }
  .rights-mobile-route.action-route small { color: #315755; }
  .rights-mobile-route b { position: absolute; right: 20px; top: 50%; color: var(--accent); font-size: 24px; font-weight: 400; transform: translateY(-50%); }
  .rights-detail-view { max-width: 1180px; margin: 0 auto; }
  .rights-detail-view .collections-guide, .rights-detail-view .rights-action-kit { margin: 0; padding: 24px 20px; }
  .rights-detail-view .collections-guide { border-left-color: var(--accent); background: var(--text); color: #fff; }
  .rights-detail-view .collections-heading .eyebrow, .rights-detail-view .collections-heading > p { color: #c9d9d7; }
  .rights-detail-view .collections-steps article { border-top-color: #416362; }
  .rights-detail-view .collections-steps span { color: var(--accent); }
  .rights-detail-view .collections-steps h3, .rights-detail-view .collections-steps a { color: #fff; }
  .rights-detail-view .collections-steps p { color: #d5e2e0; }
  .rights-detail-view .collections-steps a { text-decoration-color: var(--accent); }
  .rights-detail-view .rights-action-kit { border-top-color: var(--accent); background: #d7e5e3; }
  .rights-detail-view .collections-heading, .rights-detail-view .action-kit-heading { display: block; }
  .rights-detail-view .collections-heading > p, .rights-detail-view .action-kit-heading > p { margin-top: 14px; }
  .rights-detail-view .collections-steps, .rights-detail-view .action-kit-grid, .rights-detail-view .route-list, .rights-detail-view .action-path { grid-template-columns: 1fr; }
  .rights-detail-view .collections-steps { gap: 0; }
  .rights-detail-view .collections-steps p { min-height: 0; }
  .rights-detail-view .collections-steps article { padding: 18px 0; }
  .rights-detail-view .action-path { gap: 0; }
  .rights-detail-view .response-routes { grid-template-columns: 1fr; gap: 14px; }
}

/* First-use legal notice */
.consent-required { overflow: hidden; }
.legal-modal[hidden] { display: none; }
.legal-modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(5, 30, 30, .78); }
.legal-modal-card { width: min(620px, 100%); padding: 34px; background: var(--text); color: #fff; box-shadow: 0 24px 64px rgba(0, 0, 0, .32); }
.legal-modal-card .eyebrow { margin: 0 0 10px; }
.legal-modal-card h1 { margin: 0 0 18px; font-size: clamp(30px, 5vw, 40px); line-height: 1.03; }
.legal-modal-card p, .legal-modal-card li { color: #d5e2e0; font-size: 15px; line-height: 1.6; }
.legal-modal-card p { margin: 0 0 14px; }
.legal-modal-card ul { display: grid; gap: 9px; margin: 0 0 18px; padding-left: 20px; }
.legal-consent-note { padding-top: 15px; border-top: 1px solid #416362; color: #c9d9d7 !important; font-size: 12px !important; }
.legal-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.legal-modal-actions .button { min-height: 52px; }
.legal-modal-actions .secondary { border-color: #729693; background: transparent; color: #fff; }

@media (max-width: 640px) {
  .legal-modal { align-items: end; padding: 0; }
  .legal-modal-card { width: 100%; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
  .legal-modal-card h1 { font-size: 32px; }
  .legal-modal-actions { display: grid; grid-template-columns: 1fr; }
  .legal-modal-actions .button { width: 100%; }
  .legal-modal-actions .secondary { grid-row: 2; }
}

/* Task navigation dividers */
.nav-list { gap: 0; }
.nav-link + .nav-link { border-left: 1px solid #416362; }

@media (max-width: 640px) {
  .nav-list { gap: 0; }
  .nav-link + .nav-link { border-left-color: #416362; }
}

/* Track: keep the timeline approachable, with deeper detail only when needed. */
.track-command-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); max-width: 1180px; margin: 0 auto 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 18px rgba(15,56,56,.04); }
.track-next { padding: 25px 30px; border-left: 4px solid var(--accent); background: var(--surface); }
.track-next .eyebrow, .track-summary .eyebrow { margin-bottom: 7px; }
.track-next h2 { font-size: 24px; }
.track-next > p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.track-summary { padding: 25px 30px; border-left: 1px solid var(--line); background: var(--soft); }
.track-summary strong { display: block; margin-top: 7px; font: 400 34px/1 "Nunito Sans"; letter-spacing: -1.5px; }
.track-summary p { margin: 10px 0 14px; color: #315755; font-size: 13px; line-height: 1.5; }
.track-summary small { display: block; margin: 0; color: var(--muted); line-height: 1.45; }
.follow-up-details { margin-top: 18px; border-top: 1px solid var(--line); }
.follow-up-details > summary, .event-more > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
.follow-up-details > summary { list-style: none; }.follow-up-details > summary::-webkit-details-marker { display: none; }.follow-up-details > summary b { color: var(--accent); font-size: 18px; font-weight: 400; transition: transform .18s ease; }.follow-up-details[open] > summary b { transform: rotate(180deg); }
.follow-up-details form { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; align-items: end; gap: 12px; padding-top: 16px; }.follow-up-details label { margin: 0; }.follow-up-details .button { min-height: 47px; }
.event-form h2 { margin-bottom: 6px; }.event-form .form-helper { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }.event-step { margin: 18px 0 9px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .9px; }.event-form .form-helper + .event-step { margin-top: 0; }
.event-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }.event-presets button, .timeline-filters button { border: 1px solid var(--line); background: #fff; color: var(--text); font: 500 11px Inter; cursor: pointer; }.event-presets button { padding: 8px 11px; }.event-presets button:hover { border-color: var(--accent); background: var(--soft); }
.event-more { margin: -4px 0 20px; border-top: 1px solid var(--line); }.event-more > summary { justify-content: flex-start; gap: 5px; list-style: none; }.event-more > summary::-webkit-details-marker { display: none; }.event-more > summary small { margin: 0; font-weight: 400; }.event-more label { margin: 14px 0 0; }
.timeline-card { min-height: 0; }.timeline-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -7px 0 16px; }.timeline-filters button { padding: 7px 10px; color: #c9d9d7; border-color: #416362; background: transparent; }.timeline-filters button:hover, .timeline-filters button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.event-reference { display: block; margin-top: 8px; color: #c9d9d7; font-size: 11px; line-height: 1.45; }

@media (max-width: 900px) {
  .track-command-card { grid-template-columns: 1fr; }.track-summary { border-top: 1px solid var(--line); border-left: 0; }.follow-up-details form { grid-template-columns: 1fr 180px auto; }
}

@media (max-width: 570px) {
  .track-next, .track-summary { padding: 22px; }.track-next h2 { font-size: 22px; }.follow-up-details form { grid-template-columns: 1fr; }.follow-up-details .button { width: 100%; }.timeline-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }.timeline-filters button { flex: none; }.event-item { grid-template-columns: 75px 1fr; gap: 12px; }
}

/* Final interaction polish */
button, a, input, select, textarea { transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }
input:hover, select:hover, textarea:hover { border-color: #7c9e9b; } input::placeholder, textarea::placeholder { color: #7a9290; opacity: 1; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.text-button:hover { color: var(--accent); }.timeline-card .text-button:hover, .rail-bottom .text-button:hover { color: #fff; }
summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.event-presets button.active { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 -2px 0 var(--accent); }
.timeline-filters button.active { box-shadow: inset 0 -2px 0 rgba(255,255,255,.5); }
.empty-state { background: rgba(255,255,255,.44); }
.privacy-note { display: grid; grid-template-columns: 180px 1fr; gap: 18px; max-width: 1180px; margin: 0 auto 14px; padding: 16px 19px; border: 1px solid var(--line); background: var(--soft); color: #315755; font-size: 12px; line-height: 1.55; }
.privacy-note strong { color: var(--text); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }

@media (max-width: 570px) {
  .privacy-note { grid-template-columns: 1fr; gap: 5px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
