/* Page layout around the design-system components (tokens.css + bundle.css). */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--ink); }
body { font-family: var(--font-sans); font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt-700); }
:focus-visible { outline: 2px solid var(--cobalt-700); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- workspace ---------- */
.ws { display: flex; min-height: 100vh; background: var(--surface); }
.ws > .fo-side { position: sticky; top: 0; height: 100vh; flex: 0 0 220px; }
.ws-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.ws-head { padding: 14px 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ws-head h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.ws-head__search { margin-left: auto; }
.ws-tabs { padding: 4px 20px 0; }
.ws-filters { padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-filters__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ws-menu { position: relative; }
.ws-menu__pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; }
.ws-filters__right .ws-menu__pop { left: auto; right: 0; }
.ws-menu .fo-menu ul { max-height: 340px; overflow: auto; }
.ws-count { margin: 0; padding: 0 20px 12px; font-size: 13px; color: var(--ink-muted); }
.ws-count b { color: var(--ink); font-weight: 600; }
.ws-link { padding: 0; border: none; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--cobalt-700); cursor: pointer; }
.ws-link:hover { text-decoration: underline; }
.ws-right { text-align: right; }
.ws-muted { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ws-colhead {
  display: grid; grid-template-columns: 30px 54px minmax(0, 1fr) 84px 130px 46px 36px; column-gap: 10px; align-items: center;
  height: 34px; padding: 0 16px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fcfcfd; font-size: 11.5px; font-weight: 500; color: var(--ink-subtle);
}
.ws-list { flex: 1; }
.ws-plain {
  display: grid; grid-template-columns: 30px 54px minmax(0, 1fr) 110px 170px; column-gap: 10px; align-items: center;
  height: 44px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line);
}
.ws-plain--dup { grid-template-columns: 30px 54px minmax(0, 1fr) 110px 150px; }
.ws-plain:hover { background: var(--surface-hover); }
.ws-dupgroup { padding: 12px 20px 16px 118px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-muted); }
.ws-dupgroup p { margin: 0 0 8px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip { height: 26px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.ws-chip small { color: var(--ink-subtle); font-size: 12px; }
.ws-group { margin: 0 20px 12px; }
.ws-group__head { display: flex; align-items: center; gap: 12px; }
.ws-group__head .fo-art { flex: 1; }
.ws-foot { display: flex; align-items: center; gap: 16px; padding: 14px 20px 24px; font-size: 12.5px; color: var(--ink-subtle); }
.ws-foot__legend { margin-left: auto; display: flex; gap: 16px; }

.ws-panel { flex: 0 0 340px; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 14px 20px 24px; }
.ws-panel__body { padding-top: 18px; }
.ws-prop { display: flex; flex-direction: column; gap: 16px; }
.ws-prop__meta { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-subtle); }
.ws-prop__title { margin: 0; font-size: 16.5px; line-height: 23px; font-weight: 600; letter-spacing: -0.01em; }
.ws-prop__later { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.ws-prop__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-prop__actions a.fo-btn { text-decoration: none; }
.ws-basket { display: flex; flex-direction: column; gap: 14px; }
.ws-basket__shared { margin: 0; font-size: 12.5px; color: var(--ink-subtle); }
.ws-basket__totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; padding-top: 12px; font-size: 13px; }
.ws-basket__totals dt { color: var(--ink-muted); }
.ws-basket__totals dd { margin: 0; font-weight: 600; text-align: right; }
.ws-basket__note { margin: 0; font-size: 12px; line-height: 18px; color: var(--ink-subtle); }
.ws-basket__actions { display: flex; gap: 8px; }

@media (max-width: 1100px) {
  .ws > .fo-side { display: none; }
}
@media (max-width: 860px) {
  .ws { flex-direction: column; }
  .ws-panel { position: static; height: auto; flex: none; border-top: 1px solid var(--line); }
  .ws-colhead, .fo-row .fo-range { display: none; }
  .ws-colhead, .ws-main .fo-row { grid-template-columns: 24px 54px minmax(0, 1fr) 74px 40px 36px !important; }
}

/* ---------- shell for tool pages ---------- */
.shell { display: flex; min-height: 100vh; }
.shell__side > .fo-side { position: sticky; top: 0; height: 100vh; width: 220px; }
.shell__top { display: none; }
.shell__main { flex: 1; min-width: 0; }
@media (max-width: 1100px) {
  .shell { display: block; }
  .shell__side { display: none; }
  .shell__top { display: block; }
}

/* ---------- proposal page ---------- */
.pp { padding: 24px 40px 96px; max-width: 1240px; }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ink-subtle); }
.pp-crumbs a { color: var(--ink-subtle); }
.pp-crumbs__here { color: var(--ink); }
.pp-head { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.pp-head__main { flex: 999 1 520px; min-width: 0; max-width: 800px; display: flex; flex-direction: column; gap: 14px; }
.pp-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--ink-muted); }
.pp-head__meta b { color: var(--ink); font-weight: 600; }
.pp-title { margin: 0; font-size: 28px; line-height: 1.22; font-weight: 600; letter-spacing: -0.025em; }
.pp-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-cols { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.pp-main { flex: 999 1 600px; min-width: 0; max-width: 800px; }
.pp-side { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.pp-hero { padding: 26px 28px 24px; border-radius: 20px; background: var(--cobalt-50); border: 1px solid var(--cobalt-100); }
.pp-hero .fo-over { margin: 0 0 10px; }
.pp-hero__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px 48px; align-items: end; padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--cobalt-100); }
.pp-hero__range { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.pp-hero__hint { margin: 4px 0 0; font-size: 12px; color: var(--ink-subtle); text-align: right; }
.pp-hero--none .pp-none__title { margin: 4px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pp-hero--none .pp-none__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-muted); max-width: 620px; }
.pp-card { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.pp-benefit { padding: 22px 28px; border-radius: 20px; }
.pp-review { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; }
.pp-review__text { margin: 0; font-size: 14px; line-height: 1.5; }
.pp-review__text b { font-weight: 600; }
.pp-review__src { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-subtle); }
.pp-sec { padding-top: 44px; }
.pp-sec > h2 { margin: 0 0 18px; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.pp-sec > .pp-card:first-of-type { margin-top: 0; }
.pp-h3 { margin: 28px 0 8px; font-size: 14.5px; font-weight: 600; }
.pp-eqs { display: flex; flex-direction: column; gap: 18px; }
.pp-eqs__total { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pp-box { padding: 18px 20px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.pp-box > h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.pp-box .fo-rel { border: none; padding: 0; }
.pp-data { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.pp-data > h2 { margin-bottom: 4px; }
.pp-data span { color: var(--ink-muted); }
@media (max-width: 700px) {
  .pp { padding: 16px 16px 64px; }
  .pp-title { font-size: 22px; }
  .pp-hero { padding: 20px 18px; }
  .pp-side { max-width: none; }
}

/* ---------- public pages (home, methodology) ---------- */
.pub-cta { text-decoration: none; }
.pb-in { max-width: 1136px; margin: 0 auto; padding: 0 40px; box-sizing: content-box; }
.pb-kicker { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--cobalt-700); }
.pb-over { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.pb-hero { background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.pb-hero__in { padding-top: 76px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.pb-hero__main { flex: 1.4 1 420px; min-width: 0; }
.pb-hero h1 { margin: 14px 0 0; font-size: 54px; font-weight: 600; line-height: 1.06; letter-spacing: -0.038em; text-wrap: balance; }
.pb-lede { margin: 20px 0 0; max-width: 540px; font-size: 18px; line-height: 1.5; color: var(--ink-muted); }
.pb-search { margin-top: 28px; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 6px 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px -16px rgba(22, 58, 122, 0.35); color: var(--ink-subtle); }
.pb-search:focus-within { box-shadow: 0 0 0 2px var(--cobalt-700); }
.pb-search input { flex: 1; min-width: 0; height: 40px; border: none; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.pb-search input:focus { outline: none; }
.pb-search input::placeholder { color: var(--ink-subtle); }
.pb-search button { height: 42px; padding: 0 20px; border: none; border-radius: 999px; background: var(--cobalt-700); font: inherit; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; }
.pb-chips { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chips a { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.pb-chips a:hover { border-color: var(--cobalt-200); background: var(--cobalt-50); }
.pb-scale { flex: 1 1 320px; min-width: 0; max-width: 400px; padding: 26px 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(22, 58, 122, 0.35); }
.pb-scale__big { margin: 10px 0 0; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--amber-800); }
.pb-scale__text { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.pb-scale__text b { font-weight: 600; color: var(--ink); }
.pb-scale__bars { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.pb-scale__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.pb-scale__row a, .pb-scale__row span { color: var(--ink-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-scale__row a:hover { color: var(--cobalt-700); text-decoration: underline; }
.pb-scale__row b { font-weight: 600; white-space: nowrap; }
.pb-scale__bar { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--cobalt-700); min-width: 4px; }
.pb-scale__bar--room { background: var(--amber-600); }
.pb-state { border-bottom: 1px solid var(--line); }
.pb-state .pb-in { padding-top: 40px; padding-bottom: 40px; }
.pb-state .fo-state { margin-top: 14px; }
.pb-sec { padding-top: 64px; }
.pb-sec--last { padding-bottom: 64px; }
.pb-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.pb-sec h2, .pb-sec__h { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.pb-sec h2.pb-sec__h { margin-bottom: 24px; }
.pb-sec__head a { font-size: 14px; }
.pb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.pb-cards > * { display: flex; }
.pb-cards .fo-card { flex: 1; min-width: 0; }
.pb-cards .fo-card__summary { flex: 1 0 auto; }
.pb-tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.pb-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.pb-tile span + span { font-size: 13px; font-weight: 400; color: var(--ink-subtle); }
.pb-tile:hover { border-color: var(--cobalt-200); background: var(--cobalt-50); }
.pb-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 40px; }
.pb-read h3 { margin: 14px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pb-read p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.pb-read__pic { height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 8px; max-width: 220px; }
.pb-pic-firm { display: block; width: 84px; height: 8px; border-radius: 999px; background: var(--cobalt-700); }
.pb-pic-open { display: block; width: 100%; height: 8px; border-radius: 999px; border: 1.5px solid var(--cobalt-700); background: repeating-linear-gradient(135deg, var(--cobalt-700) 0 1.5px, var(--cobalt-100) 1.5px 4px); }
.pb-pic-track { height: 8px; border-radius: 999px; background: #f2f2f6; }
.pb-pic-track div { width: 77%; height: 8px; border-radius: 999px; background: var(--cobalt-700); }
.pb-pic-years { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 4px; }
.pb-pic-years span { width: 14px; border-radius: 4px 4px 0 0; background: var(--cobalt-300); }
.pb-pic-years span.first { background: var(--cobalt-900); }
.pb-pic-check { flex-direction: row; align-items: center; justify-content: flex-start; gap: 5px; }
.pb-pic-check span { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--cobalt-300); }
.pb-pic-check span.in { background: var(--cobalt-700); border-color: var(--cobalt-700); }
.fo-pubfoot a { text-decoration: none; }
@media (max-width: 700px) {
  .pb-in, .fo-pubhead__in, .fo-pubfoot__in { padding-left: 16px; padding-right: 16px; }
  .pb-hero__in { padding-top: 40px; padding-bottom: 40px; }
  .pb-hero h1 { font-size: 36px; }
  .pb-lede { font-size: 16px; }
  .pub-head nav, .pub-cta { display: none; }
  .pb-sec { padding-top: 44px; }
  .pb-sec h2, .pb-sec__h { font-size: 23px; }
}
@media (max-width: 900px) { .pub-head nav { gap: 18px; } .fo-pubhead__left { gap: 24px; } }

/* methodology */
.mt { max-width: 1136px; margin: 0 auto; padding: 56px 40px 88px; box-sizing: content-box; }
.mt-head h1 { margin: 12px 0 0; font-size: 42px; line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; max-width: 760px; }
.mt-lede { margin: 16px 0 0; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }
.mt-cols { margin-top: 48px; display: flex; gap: 56px; align-items: flex-start; }
.mt-toc { flex: 0 0 220px; position: sticky; top: 24px; font-size: 13.5px; }
.mt-toc p { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.mt-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mt-toc a { color: var(--ink-muted); text-decoration: none; }
.mt-toc a:hover { color: var(--cobalt-700); }
.mt-body { flex: 1; min-width: 0; max-width: 760px; }
.mt-body section { padding-bottom: 48px; scroll-margin-top: 24px; }
.mt-body h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.mt-body h2 span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cobalt-50); color: var(--cobalt-700); font-size: 13px; }
.mt-body section > p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.mt-card { margin: 16px 0; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.mt-card h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
.mt-card p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.mt-card__title { margin: 0 0 16px !important; font-size: 14px !important; color: var(--ink) !important; font-weight: 500; }
.mt-note { font-size: 12.5px !important; color: var(--ink-subtle) !important; }
.mt-range { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.mt-range > div { display: flex; flex-direction: column; gap: 6px; }
.mt-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.mt-paths > div { padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 16px; }
.mt-paths b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.mt-paths h3 { margin: 6px 0 4px; font-size: 14.5px; font-weight: 600; }
.mt-paths p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.mt-levels, .mt-states { margin: 16px 0 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.mt-levels > div, .mt-states > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mt-levels dd, .mt-states dd { margin: 0; color: var(--ink-muted); }
.mt-states dt { font-weight: 600; }
.mt-acc__bars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.mt-acc__bars li { display: flex; flex-direction: column; gap: 6px; }
.mt-acc__bars b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.mt-acc__bar { display: block; height: 10px; border-radius: 999px; background: var(--cobalt-700); }
.mt-acc__bar--mid { background: var(--cobalt-300); }
.mt-acc__bar--far { background: #C9CED9; }
.mt-acc__sums { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; }
.mt-acc__sums dt { font-size: 12.5px; color: var(--ink-subtle); }
.mt-acc__sums dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.mt-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.mt-compare .mt-card { margin: 0; }
.mt-big { margin: 0 !important; font-size: 30px !important; font-weight: 600; letter-spacing: -0.03em; color: var(--ink) !important; }
.mt-files { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mt-files li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mt-files li > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mt-files span { color: var(--ink-muted); font-size: 13.5px; }
.mt-files .fo-btn { text-decoration: none; flex: none; }
@media (max-width: 860px) {
  .mt { padding: 32px 16px 64px; }
  .mt-head h1 { font-size: 30px; }
  .mt-cols { display: block; margin-top: 28px; }
  .mt-toc { display: none; }
  .mt-levels > div, .mt-states > div { grid-template-columns: 1fr; gap: 4px; }
  .mt-files li { flex-direction: column; align-items: flex-start; }
}

/* theme pages */
.tm-hero { padding-top: 40px; padding-bottom: 56px; }
.tm-hero h1 { margin: 22px 0 0; font-size: 54px; font-weight: 600; line-height: 1.06; letter-spacing: -0.038em; }
.tm-hero .pb-lede b { color: var(--ink); font-weight: 600; }
.tm-crumbs { font-size: 13.5px; color: var(--ink-subtle); }
.tm-crumbs a { color: var(--ink-muted); }
.tm-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tm-row { display: grid; grid-template-columns: 90px 72px minmax(0, 1fr) 96px 64px; gap: 14px; align-items: center; min-height: 52px; padding: 8px 22px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.tm-row:hover { background: var(--surface-hover); }
.tm-row--head { min-height: 38px; background: #fcfcfd; font-size: 12px; color: var(--ink-subtle); }
.tm-row--head:hover { background: #fcfcfd; }
.tm-row .r { text-align: right; }
.tm-party { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.tm-id { font-size: 13px; color: var(--ink-subtle); }
.tm-cost { font-weight: 600; }
.tm-share { font-size: 13px; color: var(--ink-muted); }
.tm-share--over { color: var(--amber-800); }
.tm-foot { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; font-size: 13.5px; color: var(--ink-subtle); }
.tm-index { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.tm-index .pb-tile { min-height: 76px; padding: 12px 18px; }
.tm-index .pb-tile b { display: block; font-weight: 600; }
.tm-index .pb-tile small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
@media (max-width: 700px) {
  .tm-hero h1 { font-size: 36px; }
  .tm-row { grid-template-columns: 60px minmax(0, 1fr) 70px; padding: 10px 16px; }
  .tm-row .tm-id, .tm-row .tm-share { display: none; }
  .tm-foot { padding: 14px 16px; }
}

/* basket page */
.bk { padding: 24px 40px 96px; max-width: 1180px; }
.bk h1 { margin: 22px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; }
.bk-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-muted); }
.bk-empty { margin-top: 32px; padding: 32px; border: 1px dashed var(--line-strong); border-radius: 16px; max-width: 560px; }
.bk-empty p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.bk-empty .fo-btn { text-decoration: none; }
.bk-top { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.bk-main { flex: 999 1 560px; min-width: 0; }
.bk-side { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.bk-figs { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 32px; }
.bk-figs dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.bk-figs dd { margin: 6px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.bk-figs .bk-figs__note { margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); }
.bk-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.bk-url { width: 100%; height: 36px; margin-bottom: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-sunken); font: inherit; font-size: 13px; color: var(--ink-muted); }
.bk-side .fo-btn { width: 100%; }
.bk-clear { align-self: flex-start; margin-top: 4px; color: var(--ink-muted); }
.bk-h2 { margin: 48px 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.bk-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bk-list .fo-row:last-child { border-bottom: none; }
.bk-note { margin-top: 14px; }
@media (max-width: 700px) {
  .bk { padding: 16px 16px 64px; }
  .bk-side { max-width: none; }
  .bk-list .fo-range { display: none; }
}

/* ---------- Por partido (screen 29) ---------- */
.pt-cap { color: var(--ink-muted); margin-top: 14px; }
.pt-cap b { color: var(--ink); }
.pt-row { display: grid; grid-template-columns: 110px 72px minmax(120px, 1fr) 110px 150px 44px; align-items: center; gap: 16px;
  padding: 0 20px; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-row:hover { background: var(--surface-hover); }
.pt-row--head { min-height: 34px; font-size: 12.5px; color: var(--ink-muted); }
.pt-row--head:hover { background: none; }
.pt-party { all: unset; cursor: pointer; display: inline-flex; align-items: center; border-radius: 4px; }
.pt-party:hover .fo-pmark__name { text-decoration: underline; }
.pt-party:focus-visible { outline: 2px solid var(--cobalt-500, #2f62c4); outline-offset: 2px; }
.pt-n { font-weight: 600; }
.pt-bar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; min-width: 8px; }
.pt-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; font-size: 13px; color: var(--ink-muted); }
.pt-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.pt-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(22, 58, 122, 0.12); }
