@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap");

.fo { font-family: var(--font-sans); color: var(--ink); font-size: 13.5px; line-height: 1.45; font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; box-sizing: border-box; }
:where(.fo) *, :where(.fo) *::before, :where(.fo) *::after { box-sizing: border-box; }
:where(.fo) button, :where(.fo) input { font: inherit; color: inherit; }
.fo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.fo-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.fo-logo__word { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }

/* Buttons */
.fo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.fo-btn--sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.fo-btn--primary { background: var(--cobalt-700); color: #ffffff; }
.fo-btn--primary:hover { background: var(--cobalt-900); }
.fo-btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.fo-btn--secondary:hover { background: var(--surface-hover); }
.fo-btn--ghost { background: transparent; color: var(--ink-muted); }
.fo-btn--ghost:hover { background: var(--surface-hover); color: var(--ink); }
.fo-btn:focus-visible, .fo-add:focus-visible, .fo-tab:focus-visible, .fo-seg__opt:focus-visible, .fo-filter:focus-visible { outline: 2px solid var(--cobalt-700); outline-offset: 2px; }

.fo-add { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; padding: 0; }
.fo-add:hover { border-color: var(--cobalt-300); }
.fo-add--on { background: var(--cobalt-700); border-color: var(--cobalt-700); }

/* Tabs */
.fo-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.fo-tab { height: 44px; padding: 0; background: none; border: none; font-size: 13.5px; font-weight: 500; color: var(--ink-subtle); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fo-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt-700); }
.fo-tab__count { font-weight: 400; color: var(--ink-subtle); font-size: 12.5px; }

/* Segmented */
.fo-seg { display: inline-flex; gap: 2px; padding: 3px; background: #f2f2f6; border-radius: 999px; }
.fo-seg__opt { height: 28px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; font-size: 12.5px; font-weight: 500; color: var(--ink-subtle); cursor: pointer; }
.fo-seg__opt[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raised); }

/* Filter button */
.fo-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-muted); cursor: pointer; }
.fo-filter--active { background: var(--cobalt-50); border-color: var(--cobalt-200); color: var(--cobalt-900); }

/* Search */
.fo-search { position: relative; display: inline-flex; align-items: center; }
.fo-search input { height: 32px; width: 100%; padding: 0 48px 0 34px; border-radius: 999px; background: var(--surface-sunken); border: 1px solid var(--line); font-size: 12.5px; }
.fo-search svg { position: absolute; left: 13px; }
.fo-search kbd { position: absolute; right: 7px; font: 500 11px/1 var(--font-sans); color: var(--ink-subtle); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 7px; background: var(--surface); }

/* Badge */
.fo-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px 0 8px; border-radius: 999px; background: #f4f5f8; border: 1px solid #e6e8ee; font-size: 12px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; line-height: 1; }
.fo-badge b { font-weight: 600; color: var(--ink); }
.fo-badge__g { flex: 0 0 auto; display: inline-block; }
.fo-badge__g--aberto { width: 12px; height: 8px; border-radius: 3px; border: 1.25px solid var(--cobalt-700); background: repeating-linear-gradient(135deg, var(--cobalt-700) 0 1.25px, var(--cobalt-100) 1.25px 3.5px); }
.fo-badge__g--acima { width: 2px; height: 12px; border-radius: 1px; background: var(--amber-600); }
.fo-badge__g--novo { width: 7px; height: 7px; border-radius: 1.5px; transform: rotate(45deg); background: var(--agua-700); }
.fo-badge__g--lei { width: 12px; height: 8px; background: linear-gradient(var(--cobalt-200) 0 3px, transparent 3px 5px, var(--cobalt-700) 5px 8px); border-radius: 1px; }
.fo-badge__g--neutro { width: 8px; height: 8px; border-radius: 50%; border: 1.25px dashed var(--ink-subtle); }
.fo-badge--simples { background: var(--surface); }
.fo-badge--breve { height: 18px; padding: 0 7px; border: none; border-radius: 999px; background: var(--agua-50); color: var(--agua-800); font-size: 11px; }
.fo-marker { display: inline-block; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); flex: 0 0 8px; }

/* Range bar */
.fo-range { position: relative; height: 18px; }
.fo-range__track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.fo-range__zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-subtle); }
.fo-range__surplus { position: absolute; top: 1px; bottom: 1px; width: 2px; margin-left: -1px; background: var(--amber-600); border-radius: 999px; }
.fo-range__bar { position: absolute; top: 50%; height: 8px; margin-top: -4px; min-width: 8px; border-radius: 999px; background: var(--cobalt-700); border: 1.5px solid var(--cobalt-700); }
.fo-range__bar--open { background: repeating-linear-gradient(135deg, var(--cobalt-700) 0 1.5px, var(--cobalt-100) 1.5px 4px); }
.fo-range__mid { position: absolute; top: 50%; width: 3px; height: 14px; margin: -7px 0 0 -1.5px; background: var(--cobalt-900); box-shadow: 0 0 0 1.5px #ffffff; border-radius: 999px; }
.fo-range__axis { position: relative; height: 14px; font-size: 11px; color: var(--ink-subtle); }
.fo-range__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.fo-range__axis .fo-range__axis-surplus { color: #ffffff; background: var(--amber-800); border-radius: 3px; padding: 0 4px; font-weight: 600; }

/* Cost figure */
.fo-cost { display: flex; flex-direction: column; gap: 4px; }
.fo-cost__value { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.fo-cost__unit { font-size: 15px; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0; }
.fo-cost__sub { font-size: 12.5px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Surplus share */
.fo-share__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-bottom: 6px; }
.fo-share__value { font-weight: 600; color: var(--ink); }
.fo-share__value--over { color: var(--amber-800); }
.fo-share__track { position: relative; height: 8px; border-radius: 999px; background: #f2f2f6; }
.fo-share__fill { height: 8px; border-radius: 999px; background: var(--cobalt-700); }
.fo-share__fill--over { background: var(--amber-600); }
.fo-share__blocks { display: flex; gap: 3px; }
.fo-share__block { flex: 1 1 0; height: 8px; border-radius: 999px; background: #f2f2f6; overflow: hidden; max-width: 64px; }
.fo-share__block span { display: block; height: 8px; border-radius: 999px; background: var(--amber-600); }
.fo-share__note { margin: 6px 0 0; font-size: 12px; color: var(--ink-subtle); }

/* Year bars */
.fo-years__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fo-years__title { font-size: 12px; color: var(--ink-muted); }
.fo-years__total { font-size: 13px; font-weight: 600; }
.fo-years__total small { font-size: 12px; font-weight: 400; color: var(--ink-subtle); }
.fo-years__bars { margin-top: 10px; display: flex; align-items: flex-end; gap: 5px; height: 40px; padding-bottom: 2px; border-bottom: 1px solid #c9d3e3; }
.fo-years__bar { flex: 1; min-height: 0; border-radius: 999px 999px 2px 2px; background: var(--cobalt-300); }
.fo-years__bar:first-child { background: var(--cobalt-900); }
.fo-years__axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--ink-subtle); }
.fo-years__text { margin: 8px 0 0; font-size: 13px; }
.fo-years__if { color: var(--ink-muted); }

/* Bill comparison */
.fo-bill__title { margin: 0 0 6px; font-size: 12px; color: var(--ink-muted); }
.fo-bill__grid { display: grid; grid-template-columns: 104px minmax(0, 1fr) 60px; align-items: center; gap: 6px 10px; font-size: 12px; }
.fo-bill__grid > span:first-child, .fo-bill__label { color: var(--ink-muted); }
.fo-bill__bar { height: 8px; border-radius: 999px; }
.fo-bill__val { text-align: right; font-weight: 500; }
.fo-bill__delta { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--cobalt-900); }
.fo-bill__text { margin: 0; font-size: 13px; }
.fo-bill__why { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }

/* Basket meter */
.fo-meter { padding: 16px 16px 10px; background: var(--cobalt-50); border: 1px solid #e1e9f6; border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 14px; }
.fo-meter__label { margin: 0; font-size: 12px; color: #4a5875; }
.fo-meter__head { margin: 4px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.fo-meter__head--over { color: var(--amber-800); }
.fo-meter__sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-muted); }
.fo-meter__sub + .fo-meter__sub { margin-top: 2px; }
.fo-meter__chart { position: relative; height: 62px; }
.fo-meter__track { position: absolute; left: 0; right: 0; top: 14px; height: 22px; border-radius: 999px; background: #ffffff; box-shadow: inset 0 0 0 1px #dce5f3; }
.fo-meter__fill { position: absolute; left: 0; top: 14px; height: 22px; display: flex; gap: 2px; border-radius: 999px 0 0 999px; overflow: hidden; }
.fo-meter__seg { min-width: 3px; }
.fo-meter__seg:last-child { border-radius: 0 999px 999px 0; }
.fo-meter__offset { position: absolute; top: 14px; height: 22px; border-radius: 0 999px 999px 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.92) 0 3px, rgba(255,255,255,0.55) 3px 6px); }
.fo-meter__bracket { position: absolute; top: 42px; height: 6px; border: 1.5px solid var(--ink); border-top: none; border-radius: 0 0 2px 2px; }
.fo-meter__surplus { position: absolute; top: 6px; height: 38px; width: 2px; margin-left: -1px; background: var(--amber-600); border-radius: 999px; }
.fo-meter__surplus-label { position: absolute; top: -6px; margin-left: 5px; font-size: 11px; font-weight: 600; color: var(--amber-800); white-space: nowrap; }
.fo-meter__scale { position: absolute; top: 50px; font-size: 10.5px; color: var(--ink-subtle); }
.fo-basket { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fo-basket li { display: flex; align-items: center; gap: 10px; min-height: 38px; border-bottom: 1px solid #f2f2f6; font-size: 13px; }
.fo-basket__swatch { flex: 0 0 9px; height: 9px; border-radius: 2px; }
.fo-basket__swatch--off { box-shadow: inset 0 0 0 1.5px var(--cobalt-300); }
.fo-basket__label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fo-basket__val { font-weight: 500; white-space: nowrap; }
.fo-basket__val--none { color: var(--ink-subtle); font-weight: 400; }

/* Coverage */
.fo-coverage { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.fo-coverage p { margin: 0; }
.fo-coverage__label { font-size: 12px; color: var(--ink-muted); }
.fo-coverage__value { margin: 2px 0 8px !important; font-size: 13px; font-weight: 600; }
.fo-coverage__track { height: 4px; border-radius: 999px; background: var(--line-strong); }
.fo-coverage__fill { height: 4px; border-radius: 999px; background: var(--agua-700); }

/* Proposal row */
.fo-row { display: grid; grid-template-columns: 30px 54px minmax(0, 1fr) 84px 130px 46px 36px; column-gap: 10px; align-items: center; min-height: 44px; padding: 0 16px 0 20px; border-bottom: 1px solid #f2f2f6; background: var(--surface); }
.fo-row:hover { background: var(--surface-hover); }
.fo-row--selected { background: var(--surface-selected); box-shadow: inset 3px 0 0 var(--cobalt-700); }
.fo-row--compact { grid-template-columns: 30px 54px minmax(0, 1fr) 84px 46px 36px; }
.fo-row__party { display: flex; align-items: center; }
.fo-row__id { font-size: 12.5px; color: var(--ink-subtle); white-space: nowrap; }

/* Party mark: logo at one height, then the abbreviation. Identification only. */
.fo-pmark { white-space: nowrap; }
.fo-pmark__img { display: inline-block; vertical-align: middle; position: relative; top: -1px; margin-right: 5px; object-fit: contain; }
.fo-row__party .fo-pmark__img { margin: 0; top: 0; }
.fo-pmark__name { font-weight: 500; color: var(--ink-muted); }
.fo-pmark__none { display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--surface-sunken, #EEF1F6); color: var(--ink-muted); font-size: 10px; font-weight: 600; vertical-align: middle; }
.fo-row__summary { min-width: 0; padding: 0; background: none; border: none; text-align: left; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.fo-row__summary:hover { color: var(--cobalt-700); }
.fo-row__cost { text-align: right; font-weight: 600; white-space: nowrap; }
.fo-row__share { text-align: right; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
.fo-row__share--over { color: var(--amber-800); }

/* Firmness */
.fo-firm { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; cursor: help; }
.fo-firm__g { flex: 0 0 auto; }
.fo-firm__dot { width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--cobalt-700); }
.fo-firm--text { font-size: 12.5px; color: var(--ink-muted); cursor: default; }
.fo-firm--text b { font-weight: 600; color: var(--ink); }
.fo-firm-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Article header */
.fo-group { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.fo-group > *:last-child .fo-row, .fo-group > .fo-row:last-child { border-bottom: none; }
.fo-art { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; background: #fafafc; border-bottom: 1px solid var(--line); }
.fo-art__title { margin: 0; font-size: 13.5px; font-weight: 600; }
.fo-art__note { font-size: 12px; color: var(--ink-subtle); }
.fo-art__sum { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.fo-art__sum--over { color: var(--amber-800); }
.fo-art__mini { position: relative; width: 120px; height: 6px; border-radius: 999px; background: var(--line); }
.fo-art__mini span { position: absolute; left: 0; top: 0; height: 6px; border-radius: 999px; background: var(--cobalt-700); }
.fo-art__mini span.fo-art__mini--over { background: var(--amber-600); }

/* Sidebar */
.fo-side { width: 220px; background: var(--surface-sunken); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 22px; }
.fo-side__select { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; }
.fo-side__nav { display: flex; flex-direction: column; gap: 2px; }
.fo-side__item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink-muted); }
.fo-side__item:hover { background: #eeeff4; }
.fo-side__item--active { background: var(--cobalt-100); color: var(--cobalt-900); font-weight: 500; }
.fo-side__count { margin-left: auto; font-size: 12px; color: var(--ink-subtle); }
.fo-side__heading { margin: 0; padding: 0 10px 6px; font-size: 11.5px; font-weight: 500; color: var(--ink-subtle); }

/* Public card */
.fo-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); text-decoration: none; color: var(--ink); }
.fo-card:hover { border-color: var(--cobalt-200); box-shadow: 0 10px 30px -14px rgba(22,58,122,0.25); }
.fo-card__meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-subtle); }
.fo-card__summary { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.fo-card__cost { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.fo-card__cost small { font-size: 14px; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0; }
.fo-card__per { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-muted); }

/* Equation */
.fo-eq { display: flex; flex-direction: column; gap: 8px; }
.fo-eq__label { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
.fo-eq__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 10px; }
.fo-eq__term { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-radius: var(--radius-lg); background: var(--surface-sunken); max-width: 210px; }
.fo-eq__term--driver { background: var(--cobalt-50); box-shadow: inset 0 0 0 1px var(--cobalt-200); }
.fo-eq__value { display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; white-space: nowrap; }
.fo-eq__what { font-size: 12px; line-height: 1.35; color: var(--ink-muted); }
.fo-eq__op { align-self: center; font-size: 15px; color: var(--ink-subtle); }
.fo-eq__result { align-self: center; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }

/* Input row */
.fo-input { display: grid; grid-template-columns: 112px minmax(0, 1fr) 150px; column-gap: 16px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fo-input__value { font-size: 14px; font-weight: 600; white-space: nowrap; }
.fo-input__label { font-weight: 500; }
.fo-input__source { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }
.fo-input__source a { color: var(--cobalt-700); }
.fo-input__kind { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; font-weight: 500; color: var(--ink); }
.fo-input__range { text-align: right; font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }

/* Party comparison */
.fo-party { display: flex; flex-direction: column; gap: 8px; }
.fo-party__text { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.fo-party__sub { margin: 0; font-size: 13px; color: var(--ink-muted); }
.fo-party--compact { gap: 4px; }
.fo-party--compact .fo-party__text { font-size: 13px; }
.fo-party--compact .fo-party__sub { font-size: 12.5px; }
.fo-party__chart { position: relative; height: 64px; margin: 4px 0; }
.fo-party__track { position: absolute; left: 0; right: 0; top: 31.5px; height: 1px; background: var(--line-strong); }
.fo-party__ours { position: absolute; top: 27px; height: 10px; border-radius: 999px; background: var(--cobalt-700); }
.fo-party__mid { position: absolute; top: 24px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 999px; background: var(--cobalt-900); box-shadow: 0 0 0 1.5px #ffffff; }
.fo-party__dot { position: absolute; top: 26px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--ink); }
.fo-party__lab { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 500; white-space: nowrap; }
.fo-party__lab--ours { color: var(--cobalt-900); }
.fo-quote { margin: 4px 0 0; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--surface-sunken); font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.fo-quote a { color: var(--cobalt-700); white-space: nowrap; }

/* Scale stats */
.fo-scale__row { display: flex; gap: 28px; }
.fo-scale__value { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.fo-scale__label { display: block; font-size: 12px; color: var(--ink-muted); }

/* Note */
.fo-note { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.fo-note svg { flex: 0 0 14px; margin-top: 2px; }
.fo-note__action { padding: 0; border: none; background: none; font-weight: 600; color: var(--cobalt-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Patterns promoted from the screens ---------- */
.fo-rm { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: none; border-radius: 50%; background: none; color: var(--ink-subtle); cursor: pointer; }
.fo-rm:hover { background: var(--surface-hover); color: var(--ink); }
.fo-over { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.fo-hero { padding: 26px 28px 24px; border-radius: 20px; background: var(--cobalt-50); border: 1px solid var(--cobalt-100); }
.fo-hero .fo-cost { gap: 8px; }
.fo-hero .fo-cost__value { font-size: 56px; letter-spacing: -0.04em; }
.fo-hero .fo-cost__unit { font-size: 20px; letter-spacing: -0.01em; }
.fo-hero .fo-cost__sub { font-size: 13.5px; }
.fo-panel { padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }

.fo-state__bar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
.fo-state__list { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 18px 28px; }
.fo-state__list dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.fo-state__sw { flex: none; width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(22, 58, 122, 0.12); }
.fo-state__n { margin: 4px 0 0; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.fo-state__note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-muted); }
.fo-state--lg .fo-state__bar { height: 14px; }
.fo-state--lg .fo-state__list dt { font-weight: 600; color: var(--ink); }

.fo-strip__bar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
.fo-strip__bar span { min-width: 3px; }
.fo-strip__legend { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; }
.fo-strip__legend li { display: inline-flex; align-items: center; gap: 6px; }
.fo-strip__legend b { font-weight: 500; }
.fo-strip__legend li > span:last-child { color: var(--ink-subtle); }
.fo-strip__sw { width: 8px; height: 8px; border-radius: 2px; }

.fo-figs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px 32px; }
.fo-figs dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.fo-figs__v { margin: 6px 0 2px; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.fo-figs__v--over { color: var(--amber-800); }
.fo-figs__note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-muted); }
.fo-figs--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.fo-figs--pair > div { display: flex; flex-direction: column-reverse; padding: 14px 12px 16px 0; }
.fo-figs--pair > div + div { padding-left: 16px; border-left: 1px solid var(--cobalt-200); }
.fo-figs--pair dt { margin-top: 2px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.fo-figs--pair .fo-figs__v { margin: 0; font-size: 22px; }

.fo-rel { padding: 18px 20px 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.fo-rel--bare { padding: 0; border: none; border-radius: 0; }
.fo-rel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fo-rel__head h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.fo-rel__head span { font-size: 12.5px; color: var(--ink-subtle); }
.fo-rel ul { margin: 0; padding: 0; list-style: none; }
.fo-rel li { padding: 12px 0; border-top: 1px solid var(--line); }
.fo-rel li > a { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--ink); text-decoration: none; }
.fo-rel li > a:hover { color: var(--cobalt-700); }
.fo-rel__meta { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-subtle); }
.fo-rel__meta b { margin-left: auto; font-weight: 600; color: var(--ink); }

.fo-time { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 13.5px; }
.fo-time::before { content: ""; position: absolute; left: 4.5px; top: 10px; bottom: 26px; width: 1px; background: var(--line-strong); }
.fo-time__step { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.fo-time__dot { flex: 0 0 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong); }
.fo-time__step b { display: block; font-weight: 500; }
.fo-time__step small { display: block; font-size: 12.5px; color: var(--ink-subtle); }
.fo-time__step--done .fo-time__dot { background: var(--cobalt-700); box-shadow: none; }
.fo-time__step--current .fo-time__dot { box-shadow: 0 0 0 3px var(--cobalt-700); }
.fo-time__step--current b { font-weight: 600; }
.fo-time__step--next { color: var(--ink-subtle); }
.fo-time__step--next b { font-weight: 400; }

.fo-counts { display: flex; flex-direction: column; gap: 4px; }
.fo-counts__row { display: grid; column-gap: 14px; align-items: center; min-height: 30px; font-size: 13px; }
.fo-counts__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-counts__track { display: block; height: 10px; }
.fo-counts__bar { display: block; min-width: 4px; height: 10px; border-radius: 0 4px 4px 0; background: var(--cobalt-700); }
.fo-counts__bar--over { background: var(--amber-600); }
.fo-counts__bar--soft { background: var(--cobalt-300); }
.fo-counts__row b { text-align: right; font-weight: 600; }

.fo-acc { border-top: 1px solid var(--line); }
.fo-acc summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px; list-style: none; cursor: pointer; }
.fo-acc summary::-webkit-details-marker { display: none; }
.fo-acc summary h2 { flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fo-acc__num { flex: none; width: 22px; font-size: 12.5px; font-weight: 600; color: var(--cobalt-700); }
.fo-acc__hint { font-size: 13px; color: var(--ink-subtle); white-space: nowrap; }
.fo-acc__chev { flex: none; transition: transform 0.15s; }
.fo-acc[open] .fo-acc__chev { transform: rotate(180deg); }
.fo-acc__body { padding: 2px 20px 22px; }

.fo-actionbar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.fo-actionbar .fo-btn { flex: 1 1 0; height: 48px; font-size: 15px; }
.fo-actionbar__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }

.fo-menu { width: 248px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 40px -16px rgba(22, 58, 122, 0.35), 0 2px 6px rgba(22, 58, 122, 0.06); }
.fo-menu ul { margin: 0; padding: 0; list-style: none; }
.fo-menu label { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.fo-menu label:hover { background: var(--surface-hover); }
.fo-menu input { width: 15px; height: 15px; margin: 0; accent-color: #1F4FA3; }
.fo-menu small { margin-left: auto; font-size: 12.5px; color: var(--ink-subtle); }
.fo-menu__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 10px 10px 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-subtle); }
.fo-menu__foot button { padding: 0; border: none; background: none; font-weight: 600; color: var(--cobalt-700); cursor: pointer; }
.fo-menu__foot button:disabled { color: var(--ink-subtle); font-weight: 400; cursor: default; }

.fo-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 24px; text-align: center; }
.fo-empty__title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.fo-empty__text { margin: 0 0 8px; max-width: 360px; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

.fo-skel__row:hover { background: var(--surface); }
.fo-skel i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #eef0f5 0%, #f6f7fa 50%, #eef0f5 100%); background-size: 200% 100%; animation: fo-skel 1.4s linear infinite; }
@keyframes fo-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fo-skel i { animation: none; } }

.fo-pubhead { border-bottom: 1px solid var(--line); background: var(--surface); }
.fo-pubhead__in { max-width: 1136px; margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fo-pubhead__left { display: flex; align-items: center; gap: 40px; }
.fo-pubhead__logo { display: inline-flex; color: var(--ink); text-decoration: none; }
.fo-pubhead nav { display: flex; gap: 28px; font-size: 14px; }
.fo-pubhead nav a { color: var(--ink-muted); text-decoration: none; }
.fo-pubhead nav a[aria-current] { color: var(--ink); font-weight: 500; }
.fo-pubhead--compact .fo-pubhead__in { height: 56px; padding: 0 20px; }
.fo-pubhead__menu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.fo-pubfoot { border-top: 1px solid var(--line); background: var(--surface-sunken); }
.fo-pubfoot__in { max-width: 1136px; margin: 0 auto; padding: 28px 40px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; font-size: 13px; color: var(--ink-muted); }
.fo-pubfoot b { font-weight: 600; color: var(--ink); }
.fo-pubfoot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fo-pubfoot a { color: var(--cobalt-700); }

.fo-facts__card { padding: 4px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.fo-facts__row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0; }
.fo-facts__row + .fo-facts__row { border-top: 1px solid var(--line); }
.fo-facts__row h3 { flex: 0 0 190px; margin: 0; padding-top: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.fo-facts__row > div { flex: 1 1 320px; min-width: 0; max-width: 460px; }
.fo-facts .fo-bill__title { display: none; }
.fo-facts__text, .fo-facts .fo-party__text, .fo-facts .fo-bill__text { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.fo-facts__none { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.fo-facts__card + .fo-facts__none { margin-top: 12px; padding: 0 4px; }
.fo-facts--stacked .fo-facts__card { padding: 0; border: none; border-radius: 0; }
.fo-facts--stacked .fo-facts__row { flex-direction: column; gap: 4px; padding: 14px 0; }
.fo-facts--stacked .fo-facts__row:first-child { padding-top: 0; }
.fo-facts--stacked .fo-facts__row h3 { flex: none; padding: 0; }
.fo-facts--stacked .fo-facts__row > div { flex: none; max-width: none; }
.fo-search input::-webkit-search-cancel-button { display: none; }
/* Revenue or saving, reviewed estimates, proposals that count once */
.fo-range__bar--neg { background: var(--surface); }
.fo-range__bar--neg.fo-range__bar--open { border-style: dashed; }
.fo-share__fill--neg { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cobalt-700); }
.fo-row__cost .fo-firm { margin-right: 4px; position: relative; top: -1px; }
.fo-row__cost .fo-firm__g { width: 10px; height: 10px; }
.fo-row--skip .fo-row__cost { font-weight: 500; color: var(--ink-subtle); text-decoration: line-through; }
.fo-row--skip .fo-range { opacity: 0.35; }
.fo-basket__val--skip { font-weight: 400; color: var(--ink-subtle); text-decoration: line-through; }
.fo-search__clear { position: absolute; right: 7px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: var(--line-strong); color: var(--ink-muted); cursor: pointer; }
