/* TallyBrix — calculator styles.
   Reads the theme's tokens when present; falls back to the same values so the
   calculators look right in any theme. */
.bdt {
  --b-font: var(--font, "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --b-ink: var(--c-ink, #13171b);
  --b-page: var(--c-bg, #ffffff);
  --b-ink-2: var(--c-ink-2, #344054);
  --b-muted: var(--c-muted, #5d6b82);
  --b-line: var(--c-line, #e3e8ef);
  --b-line-2: var(--c-line-2, #cdd5df);
  --b-bg: var(--c-bg-2, #f7f9fc);
  --b-card: var(--c-card, #ffffff);
  --b-brand: var(--c-brand, #0f6fff);
  --b-brand-hover: var(--c-brand-hover, #0a5ee0);
  --b-brand-ink: var(--c-brand-ink, #102a5c);
  --b-brand-soft: var(--c-brand-soft, #eef3fc);
  --b-ok: var(--c-ok, #067647);
  --b-ok-soft: var(--c-ok-soft, #ecfbf3);
  --b-warn: var(--c-warn, #93370d);
  --b-warn-soft: var(--c-warn-soft, #fff7ed);
  --b-err: var(--c-err, #b42318);
  --b-focus: var(--c-focus, rgba(24, 73, 169, .35));
  --b-r-sm: 8px;
  --b-r: 12px;
  --b-r-lg: 16px;
  --b-shadow-sm: 0 1px 2px rgba(12, 20, 39, .06);
  --b-shadow: 0 1px 2px rgba(12, 20, 39, .05), 0 12px 32px -12px rgba(12, 20, 39, .16);
  font-family: var(--b-font);
  color: var(--b-ink);
}
:root[data-mode="dark"] .bdt {
    --b-ink: var(--c-ink, #eef1f4);
    --b-page: var(--c-bg, #0d1014);
    --b-ink-2: var(--c-ink-2, #c4cddb);
    --b-muted: var(--c-muted, #93a1b7);
    --b-line: var(--c-line, #222d42);
    --b-line-2: var(--c-line-2, #2f3c55);
    --b-bg: var(--c-bg-2, #0e1626);
    --b-card: var(--c-card, #111a2c);
    --b-brand: var(--c-brand, #7ea6f2);
    --b-brand-hover: var(--c-brand-hover, #a3c0f7);
    --b-brand-ink: var(--c-brand-ink, #d6e3fb);
    --b-brand-soft: var(--c-brand-soft, #142443);
    --b-ok: var(--c-ok, #4cc58a);
    --b-ok-soft: var(--c-ok-soft, #0e2a1e);
    --b-warn: var(--c-warn, #f5b062);
    --b-warn-soft: var(--c-warn-soft, #2a1d0f);
    --b-err: var(--c-err, #f97066);
}
.bdt *, .bdt *::before, .bdt *::after { box-sizing: border-box; }
.bdt [hidden] { display: none !important; }
.bdt-icon { flex: none; vertical-align: middle; }
.bdt-small { font-size: .875rem; }
.bdt-muted { color: var(--b-muted); }
.bdt-center { text-align: center; }
.bdt a { color: var(--b-brand); }

/* Breadcrumbs */
.bdt-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.25rem; padding: 0; font-size: .8125rem; color: var(--b-muted); }
.bdt-crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--b-line-2); }
.bdt-crumbs a { color: var(--b-muted); }
.bdt-crumbs a:hover { color: var(--b-ink); }

/* Page heading */
.bdt-hero { margin: 0 0 1.75rem; max-width: 780px; }
.bdt-hero h1 { font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2.125rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 650; margin: 0 0 .6rem; color: var(--b-ink); text-wrap: balance; }
.bdt-lead { font-size: 1.0625rem; line-height: 1.6; color: var(--b-ink-2); margin: 0 0 1rem; max-width: 68ch; }
.bdt-hero__icon { display: inline-flex; color: var(--b-brand); margin-bottom: .75rem; }
.bdt-badges { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.bdt-badges li { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--b-muted); }
.bdt-badges .bdt-icon { color: var(--b-ok); width: 15px; height: 15px; }

/* App layout */
.bdt-card { background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--b-r-lg); box-shadow: var(--b-shadow-sm); padding: clamp(1rem, .8rem + .8vw, 1.5rem); }
.bdt-app { display: grid; gap: 1.25rem; align-items: start; margin-bottom: 2.5rem; scroll-margin-top: 80px; }
@media (min-width: 960px) {
  .bdt-app { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 1.5rem; }
}

/* Form */
.bdt-form__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: calc(-1 * clamp(1rem, .8rem + .8vw, 1.5rem)) calc(-1 * clamp(1rem, .8rem + .8vw, 1.5rem)) 1.25rem; padding: .85rem clamp(1rem, .8rem + .8vw, 1.5rem); border-bottom: 1px solid var(--b-line); }
.bdt-form__title { font-size: .9375rem; font-weight: 650; margin: 0; color: var(--b-ink); letter-spacing: 0; }
.bdt-units { display: inline-flex; padding: 2px; background: var(--b-bg); border: 1px solid var(--b-line); border-radius: 8px; }
.bdt-units__btn { appearance: none; border: 0; background: transparent; color: var(--b-muted); font: inherit; font-size: .8125rem; font-weight: 600; padding: 0 .75rem; height: 30px; border-radius: 6px; cursor: pointer; }
.bdt-units__btn.is-on { background: var(--b-card); color: var(--b-ink); box-shadow: 0 1px 2px rgba(12, 20, 39, .12); }
.bdt-form { display: flex; flex-direction: column; }
.bdt-form > .bdt-field, .bdt-more__body > .bdt-field { margin-bottom: 1.1rem; }
.bdt-label { display: block; font-weight: 600; font-size: .875rem; margin: 0 0 .4rem; color: var(--b-ink); }
.bdt-opt { font-weight: 400; font-size: .8125rem; color: var(--b-muted); margin-left: .25rem; }
.bdt-help { font-size: .8125rem; color: var(--b-muted); margin: .35rem 0 0; line-height: 1.45; }
.bdt-err { font-size: .8125rem; color: var(--b-err); margin: .35rem 0 0; font-weight: 500; }
.bdt-err:empty { display: none; }
.bdt-input { position: relative; display: flex; align-items: stretch; background: var(--b-card); border: 1px solid var(--b-line-2); border-radius: var(--b-r-sm); box-shadow: var(--b-shadow-sm); transition: border-color .15s, box-shadow .15s; }
.bdt-input:focus-within { border-color: var(--b-brand); box-shadow: 0 0 0 3px var(--b-focus); }
.has-err .bdt-input { border-color: var(--b-err); }
.has-err .bdt-input:focus-within { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
.bdt-input input, .bdt-input select, .bdt-input textarea { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--b-ink); font: inherit; font-size: 16px; padding: 0 .8rem; height: 44px; outline: none; border-radius: var(--b-r-sm); font-variant-numeric: tabular-nums; }
.bdt-input textarea { height: auto; padding: .65rem .8rem; resize: vertical; min-height: 130px; }
.bdt-input select { appearance: none; -webkit-appearance: none; padding-right: 2.25rem; cursor: pointer; }
.bdt-input--select::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--b-muted); border-bottom: 1.5px solid var(--b-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.bdt-unit, .bdt-prefix { display: flex; align-items: center; padding: 0 .8rem; color: var(--b-muted); font-size: .8125rem; white-space: nowrap; border-left: 1px solid var(--b-line); }
.bdt-prefix { border-left: 0; border-right: 1px solid var(--b-line); }
.bdt-dimunit { flex: 0 0 auto !important; width: auto !important; border-left: 1px solid var(--b-line) !important; border-radius: 0 var(--b-r-sm) var(--b-r-sm) 0 !important; font-size: .8125rem !important; color: var(--b-ink-2) !important; padding: 0 .7rem !important; cursor: pointer; }

/* Segmented choices */
.bdt-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.bdt-choice legend { padding: 0; }
.bdt-choice__opts { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--b-line-2); border-radius: var(--b-r-sm); overflow: hidden; box-shadow: var(--b-shadow-sm); background: var(--b-card); }
.bdt-choice__opt { position: relative; flex: 1 1 0; min-width: max-content; }
.bdt-choice__opt + .bdt-choice__opt { border-left: 1px solid var(--b-line-2); }
.bdt-choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bdt-choice__opt span { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .45rem .8rem; font-weight: 500; font-size: .875rem; color: var(--b-ink-2); text-align: center; line-height: 1.25; transition: background .15s, color .15s; }
.bdt-choice__opt span .bdt-icon { width: 16px; height: 16px; color: var(--b-muted); }
.bdt-choice__opt:hover span { background: var(--b-bg); }
.bdt-choice__opt input:checked + span { background: var(--b-brand-soft); color: var(--b-brand-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--b-brand); }
.bdt-choice__opt input:checked + span .bdt-icon { color: var(--b-brand); }
.bdt-choice__opt input:focus-visible + span { outline: 2px solid var(--b-brand); outline-offset: -2px; }
@media (max-width: 520px) {
  .bdt-choice__opt { flex: 1 1 45%; }
  .bdt-choice__opt + .bdt-choice__opt { border-left: 0; }
  .bdt-choice__opts { display: grid; grid-template-columns: 1fr 1fr; }
  .bdt-choice__opt:nth-child(even) { border-left: 1px solid var(--b-line-2); }
  .bdt-choice__opt:nth-child(n+3) { border-top: 1px solid var(--b-line-2); }
  .bdt-choice__opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.bdt-check { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .875rem; cursor: pointer; min-height: 44px; }
.bdt-check input { width: 18px; height: 18px; accent-color: var(--b-brand); }

@media (min-width: 560px) {
  .bdt-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .bdt-form > * { grid-column: 1 / -1; }
  .bdt-form > .bdt-w-half { grid-column: auto; }
  .bdt-more__body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .bdt-more__body > * { grid-column: 1 / -1; }
  .bdt-more__body > .bdt-w-half { grid-column: auto; }
}

/* Expandable groups */
.bdt-more { border: 1px solid var(--b-line); border-radius: var(--b-r); margin: .25rem 0 1rem; background: var(--b-card); }
.bdt-more > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; cursor: pointer; padding: .75rem 2.5rem .75rem 1rem; font-weight: 600; font-size: .875rem; color: var(--b-ink); position: relative; }
.bdt-more > summary::-webkit-details-marker { display: none; }
.bdt-more > summary .bdt-icon { color: var(--b-muted); width: 16px; height: 16px; }
.bdt-more > summary small { font-weight: 400; color: var(--b-muted); font-size: .8125rem; }
.bdt-more > summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--b-muted); border-bottom: 1.5px solid var(--b-muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.bdt-more[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.bdt-more[open] > summary { border-bottom: 1px solid var(--b-line); }
.bdt-more__body { padding: 1rem 1rem .1rem; background: var(--b-bg); border-radius: 0 0 var(--b-r) var(--b-r); }

/* Rows */
.bdt-rows { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.bdt-row { border: 1px solid var(--b-line); border-radius: var(--b-r); padding: .75rem .9rem .1rem; background: var(--b-bg); }
.bdt-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.bdt-row__title { font-weight: 600; font-size: .8125rem; color: var(--b-ink-2); }
.bdt-row__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: .75rem; }
.bdt-row__grid > .bdt-field { margin-bottom: .75rem; min-width: 0; }
.bdt-row__grid > .bdt-w-full { grid-column: 1 / -1; }

/* Buttons */
.bdt-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 600; font-size: .875rem; line-height: 1.2; padding: 0 1.1rem; height: 44px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.bdt-btn .bdt-icon { width: 16px; height: 16px; }
.bdt-btn:hover { text-decoration: none; }
.bdt-btn--primary { background: var(--b-ink); color: var(--b-page); }
.bdt-btn--primary:hover { background: var(--b-brand); color: #fff; }
.bdt-btn--soft, .bdt-btn--ghost { background: var(--b-card); color: var(--b-ink); border-color: var(--b-line-2); box-shadow: var(--b-shadow-sm); }
.bdt-btn--soft:hover, .bdt-btn--ghost:hover { background: var(--b-bg); }
.bdt-btn:focus-visible, .bdt-linkbtn:focus-visible { outline: 2px solid var(--b-brand); outline-offset: 2px; }
.bdt-linkbtn { appearance: none; background: none; border: 0; padding: .2rem; font: inherit; font-size: .8125rem; font-weight: 500; color: var(--b-muted); cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; }
.bdt-linkbtn:hover { color: var(--b-ink); }
.bdt-form__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .25rem; }
.bdt-form__actions .bdt-calc-btn { flex: 1 1 200px; }
.bdt-restore { font-size: .8125rem; color: var(--b-muted); margin: .75rem 0 0; }
.bdt-restore .bdt-linkbtn { color: var(--b-brand); }

/* Result */
.bdt-result { padding: 0; overflow: hidden; }
.bdt-result__body { padding: 1.25rem clamp(1rem, .8rem + .8vw, 1.5rem) 1.5rem; }
.bdt-result__label { margin: 0 0 .35rem; font-size: .8125rem; font-weight: 600; color: var(--b-muted); }
.bdt-result__big { margin: 0; line-height: 1.05; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; font-variant-numeric: tabular-nums; }
.bdt-result__num { font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.75rem); font-weight: 650; letter-spacing: -.03em; color: var(--b-ink); }
.bdt-result__unit { font-size: 1rem; font-weight: 500; color: var(--b-ink-2); }
.bdt-result__sub { margin: .5rem 0 0; color: var(--b-ink-2); font-size: .875rem; }
.bdt-result__placeholder { color: var(--b-muted); margin: .25rem 0 0; display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; }
.bdt-stats { display: grid; grid-template-columns: 1fr; margin: 1.25rem 0 0; border-top: 1px solid var(--b-line); }
.bdt-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding: .65rem 0; border-bottom: 1px solid var(--b-line); min-width: 0; }
.bdt-stat dt { font-size: .875rem; color: var(--b-ink-2); margin: 0; }
.bdt-stat dd { margin: 0; font-weight: 600; font-size: .9375rem; color: var(--b-ink); text-align: right; font-variant-numeric: tabular-nums; display: contents; }
.bdt-stat dd small { grid-column: 1 / -1; font-weight: 400; font-size: .75rem; color: var(--b-muted); text-align: left; }
.bdt-stat.is-strong dd { color: var(--b-brand); }
.bdt-tablewrap { overflow-x: auto; margin: 1.25rem 0 0; -webkit-overflow-scrolling: touch; }
.bdt-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.bdt-table caption { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--b-ink-2); padding-bottom: .5rem; }
.bdt-table th, .bdt-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--b-line); vertical-align: middle; }
.bdt-table thead th { font-size: .75rem; color: var(--b-muted); font-weight: 600; background: var(--b-bg); }
.bdt-table tbody th { font-weight: 500; }
.bdt-table tr.is-hi th, .bdt-table tr.is-hi td { background: var(--b-brand-soft); font-weight: 600; color: var(--b-brand-ink); }
.bdt-num { text-align: right !important; }
.bdt-cost { margin: 1.25rem 0 0; border: 1px solid var(--b-line); border-radius: var(--b-r); overflow: hidden; }
.bdt-cost__title { margin: 0; font-weight: 600; font-size: .8125rem; padding: .55rem .85rem; background: var(--b-bg); border-bottom: 1px solid var(--b-line); color: var(--b-ink-2); }
.bdt-cost ul { list-style: none; margin: 0; padding: 0 .85rem; }
.bdt-cost li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .875rem; border-bottom: 1px solid var(--b-line); font-variant-numeric: tabular-nums; }
.bdt-cost li span:last-child { white-space: nowrap; }
.bdt-cost li:last-child { border-bottom: 0; }
.bdt-cost__total { font-weight: 700; font-size: .9375rem !important; }
.bdt-cost .bdt-small { margin: 0; padding: .5rem .85rem .65rem; font-size: .75rem; color: var(--b-muted); border-top: 1px solid var(--b-line); }
.bdt-warn, .bdt-good, .bdt-note { display: flex; gap: .55rem; align-items: flex-start; margin: .85rem 0 0; padding: .65rem .8rem; border-radius: var(--b-r-sm); font-size: .8125rem; line-height: 1.5; border: 1px solid; }
.bdt-warn { background: var(--b-warn-soft); color: var(--b-warn); border-color: color-mix(in srgb, var(--b-warn) 22%, transparent); }
.bdt-good { background: var(--b-ok-soft); color: var(--b-ok); border-color: color-mix(in srgb, var(--b-ok) 22%, transparent); }
.bdt-warn .bdt-icon, .bdt-good .bdt-icon { width: 16px; height: 16px; margin-top: .1rem; }
.bdt-warn span, .bdt-good span { color: var(--b-ink); }
.bdt-steps { margin: 1.25rem 0 0; border: 1px solid var(--b-line); border-radius: var(--b-r); }
.bdt-steps summary { cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--b-ink); padding: .65rem .85rem; list-style: none; position: relative; }
.bdt-steps summary::-webkit-details-marker { display: none; }
.bdt-steps summary::after { content: ""; position: absolute; right: .95rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--b-muted); border-bottom: 1.5px solid var(--b-muted); transform: translateY(-70%) rotate(45deg); }
.bdt-steps[open] summary { border-bottom: 1px solid var(--b-line); }
.bdt-steps[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.bdt-steps ol { margin: 0; padding: .75rem .85rem .75rem 2rem; font-size: .8125rem; color: var(--b-ink-2); line-height: 1.6; font-variant-numeric: tabular-nums; }
.bdt-steps li { margin-bottom: .35rem; }
.bdt-notes { margin: .9rem 0 0; padding-left: 1rem; font-size: .75rem; color: var(--b-muted); line-height: 1.5; }
.bdt-notes li { margin-bottom: .25rem; }
.bdt-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.bdt-actions .bdt-btn { flex: 1 1 auto; height: 40px; }
.bdt-actions .bdt-btn--primary { flex-basis: 100%; }
.bdt-actions .bdt-btn--soft { flex: 1 1 calc(50% - .5rem); }
.bdt-next { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--b-line); }
.bdt-next__title { margin: 0 0 .25rem; font-size: .8125rem; font-weight: 600; color: var(--b-muted); }
.bdt-next__link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 0; font-weight: 600; font-size: .875rem; color: var(--b-brand); }
.bdt-next__link .bdt-icon { width: 16px; height: 16px; }

/* Toast */
.bdt-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); z-index: 9999; background: #101828; color: #fff; padding: .7rem 1rem; border-radius: 8px; font-family: var(--font, system-ui, sans-serif); font-size: .875rem; font-weight: 500; box-shadow: 0 12px 32px -10px rgba(0,0,0,.45); display: flex; align-items: center; gap: .5rem; max-width: calc(100vw - 32px); transition: transform .2s ease; }
.bdt-toast.is-on { transform: translate(-50%, 0); }
.bdt-toast a { color: #a8c3f5; font-weight: 600; }

/* Guide */
.bdt-content { display: grid; gap: 2rem; margin-top: .5rem; padding-top: 2.5rem; border-top: 1px solid var(--b-line); }
@media (min-width: 1080px) {
  .bdt-content { grid-template-columns: 220px minmax(0, 1fr); gap: 3.5rem; }
  .bdt-toc { position: sticky; top: 84px; align-self: start; }
}
.bdt-toc { font-size: .8125rem; }
.bdt-toc__title { font-weight: 600; font-size: .8125rem; color: var(--b-ink); margin: 0 0 .6rem; }
.bdt-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--b-line); }
.bdt-toc li { margin: 0; }
.bdt-toc a { display: block; padding: .3rem 0 .3rem .85rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--b-muted); line-height: 1.4; }
.bdt-toc a:hover { color: var(--b-ink); border-left-color: var(--b-ink); text-decoration: none; }
@media (max-width: 1079px) {
  .bdt-toc { border: 1px solid var(--b-line); border-radius: var(--b-r); padding: .9rem 1rem; }
  .bdt-toc ol { columns: 2 200px; column-gap: 1.5rem; border-left: 0; }
  .bdt-toc a { padding-left: 0; border: 0; }
}
.bdt-guide { max-width: 720px; font-size: 1.0625rem; line-height: 1.72; color: var(--b-ink-2); min-width: 0; }
.bdt-guide h2 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.5rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 650; color: var(--b-ink); margin: 2.75rem 0 .85rem; scroll-margin-top: 84px; }
.bdt-guide > h2:first-child { margin-top: 0; }
.bdt-guide h3 { font-size: 1.0625rem; font-weight: 650; color: var(--b-ink); margin: 1.6rem 0 .45rem; }
.bdt-guide p, .bdt-guide ul, .bdt-guide ol { margin: 0 0 1rem; }
.bdt-guide ul, .bdt-guide ol { padding-left: 1.25rem; }
.bdt-guide li { margin-bottom: .4rem; }
.bdt-guide li::marker { color: var(--b-muted); }
.bdt-guide strong { color: var(--b-ink); font-weight: 600; }
.bdt-guide table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 0; font-variant-numeric: tabular-nums; }
.bdt-guide th, .bdt-guide td { border-bottom: 1px solid var(--b-line); padding: .6rem .8rem; text-align: left; line-height: 1.45; }
.bdt-guide thead th { background: var(--b-bg); color: var(--b-ink); font-size: .8125rem; font-weight: 600; }
.bdt-guide tbody tr:last-child td { border-bottom: 0; }
.bdt-guide .bdt-tablewrap { margin: 0 0 1.25rem; border: 1px solid var(--b-line); border-radius: var(--b-r); }
.bdt-formula { background: var(--b-bg); border: 1px solid var(--b-line); border-radius: var(--b-r); padding: .9rem 1.1rem; margin: 0 0 1.1rem; font-size: .9375rem; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.bdt-formula p { margin: 0 0 .35rem; }
.bdt-formula p:last-child { margin: 0; }
.bdt-example { border: 1px solid var(--b-line); border-radius: var(--b-r); padding: 1rem 1.15rem .25rem; margin: 0 0 1.25rem; color: var(--b-ink-2); font-variant-numeric: tabular-nums; }
.bdt-example__title { font-weight: 650; margin: 0 0 .5rem; color: var(--b-ink); font-size: .9375rem; }
.bdt-callout { display: flex; gap: .85rem; border-radius: var(--b-r); padding: 1rem 1.15rem; margin: 2.5rem 0 1rem; background: var(--b-warn-soft); border: 1px solid color-mix(in srgb, var(--b-warn) 20%, transparent); }
.bdt-callout__icon { color: var(--b-warn); }
.bdt-callout__title { font-weight: 650; color: var(--b-ink); margin: 0 0 .3rem; font-size: .9375rem; }
.bdt-callout p { margin: 0 0 .5rem; font-size: .9375rem; }
.bdt-faq { border-top: 1px solid var(--b-line); }
.bdt-faq__item { border-bottom: 1px solid var(--b-line); }
.bdt-faq__item summary { list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--b-ink); position: relative; font-size: 1rem; }
.bdt-faq__item summary::-webkit-details-marker { display: none; }
.bdt-faq__item summary::after { content: ""; position: absolute; right: .4rem; top: 1.4rem; width: 7px; height: 7px; border-right: 1.5px solid var(--b-muted); border-bottom: 1.5px solid var(--b-muted); transform: rotate(45deg); }
.bdt-faq__item[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.bdt-faq__a { padding: 0 0 .5rem; }
.bdt-review { margin: 1.75rem 0 0; padding: 1rem 1.15rem; border: 1px solid var(--b-line); border-radius: var(--b-r); font-size: .8125rem; color: var(--b-ink-2); line-height: 1.5; }
.bdt-review__row { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 .5rem; }
.bdt-review__row:last-child { margin-bottom: 0; }
.bdt-review__row .bdt-icon { color: var(--b-muted); margin-top: .1rem; width: 16px; height: 16px; }
.bdt-review__log summary { cursor: pointer; font-weight: 600; }
.bdt-slot { margin: 0 0 2.5rem; text-align: center; }
.bdt-guide .bdt-slot { margin: 1.5rem 0; }

/* Tool cards */
.bdt-cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bdt-tcard a { display: flex; align-items: flex-start; gap: .85rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--b-line); border-radius: var(--b-r); background: var(--b-card); color: var(--b-ink); box-shadow: var(--b-shadow-sm); transition: border-color .15s, box-shadow .15s; }
.bdt-tcard a:hover { border-color: var(--b-line-2); box-shadow: var(--b-shadow); text-decoration: none; }
.bdt-tcard__icon { flex: none; display: flex; color: var(--b-brand); margin-top: .1rem; }
.bdt-tcard__icon .bdt-icon { width: 20px; height: 20px; }
.bdt-tcard__body { flex: 1; min-width: 0; }
.bdt-tcard__title { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .15rem; }
.bdt-tcard__text { display: block; font-size: .8125rem; color: var(--b-muted); line-height: 1.45; }
.bdt-tcard__go { color: var(--b-line-2); margin-top: .1rem; }
.bdt-tcard__go .bdt-icon { width: 16px; height: 16px; }
.bdt-tcard a:hover .bdt-tcard__go { color: var(--b-brand); }
.bdt-group { margin: 0 0 1rem; }
.bdt-group__title { display: flex; align-items: center; gap: .5rem; font-size: 1.125rem; font-weight: 650; margin: 2rem 0 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--b-line); }
.bdt-group__title a { color: var(--b-ink); }
.bdt-group__title .bdt-icon { color: var(--b-brand); width: 20px; height: 20px; }
.bdt-related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--b-line); }
.bdt-related h2 { font-size: 1.25rem; font-weight: 650; margin: 0 0 1rem; }
.bdt-trustbar { display: grid; gap: 1px; background: var(--b-line); border: 1px solid var(--b-line); border-radius: var(--b-r); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 1rem 0; }
.bdt-trustbar > div { display: flex; gap: .7rem; padding: 1.1rem; background: var(--b-card); }
.bdt-trustbar .bdt-icon { color: var(--b-brand); margin-top: .1rem; width: 20px; height: 20px; }
.bdt-trustbar p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--b-ink-2); }
.bdt-trustbar strong { color: var(--b-ink); font-weight: 600; }

/* Project page */
.bdt-skeleton { background: linear-gradient(90deg, var(--b-bg) 25%, var(--b-line) 50%, var(--b-bg) 75%); background-size: 200% 100%; animation: bdt-sk 1.2s infinite; }
@keyframes bdt-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bdt-skeleton { animation: none; } .bdt-toast, .bdt-tcard a { transition: none; } }
.bdt-empty { text-align: center; padding: 3rem 1.25rem; }
.bdt-empty h2 { margin: .75rem 0 .5rem; font-size: 1.125rem; font-weight: 650; }
.bdt-empty p { color: var(--b-ink-2); max-width: 460px; margin: 0 auto 1.25rem; font-size: .9375rem; }
.bdt-empty__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--b-line); color: var(--b-muted); }
.bdt-empty__icon .bdt-icon { width: 20px; height: 20px; }
.bdt-plist { padding: 0; overflow: hidden; }
.bdt-plist__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; border-bottom: 1px solid var(--b-line); }
.bdt-plist > .bdt-tablewrap { margin: 0; }
.bdt-plist .bdt-table th:first-child, .bdt-plist .bdt-table td:first-child { padding-left: 1.25rem; }
.bdt-plist .bdt-table th:last-child, .bdt-plist .bdt-table td:last-child { padding-right: 1.25rem; }
.bdt-plist > .bdt-actions, .bdt-plist > .bdt-small { padding: 0 1.25rem; }
.bdt-plist > .bdt-small { padding-bottom: 1.25rem; }
.bdt-plist > .bdt-actions .bdt-btn--primary { flex-basis: auto; }
.bdt-pi { font: inherit; font-size: 16px; color: var(--b-ink); background: var(--b-card); border: 1px solid var(--b-line-2); border-radius: var(--b-r-sm); padding: 0 .55rem; height: 38px; width: 100%; font-variant-numeric: tabular-nums; }
.bdt-pi:focus { outline: none; border-color: var(--b-brand); box-shadow: 0 0 0 3px var(--b-focus); }
.bdt-pi--title { font-size: 1.0625rem; font-weight: 650; border-color: transparent; padding-left: 0; max-width: 420px; }
.bdt-pi--title:hover { border-color: var(--b-line); padding-left: .55rem; }
.bdt-pi--qty { width: 6.5em; }
.bdt-pi--price { width: 6.5em; border: 0; padding-left: .25rem; box-shadow: none !important; }
.bdt-pi-money { display: inline-flex; align-items: center; border: 1px solid var(--b-line-2); border-radius: var(--b-r-sm); padding-left: .55rem; background: var(--b-card); color: var(--b-muted); }
.bdt-pi-money:focus-within { border-color: var(--b-brand); box-shadow: 0 0 0 3px var(--b-focus); }
.bdt-ptable td small { display: block; color: var(--b-muted); font-size: .75rem; margin-top: .25rem; }
.bdt-ptable tfoot th, .bdt-ptable tfoot td { border-bottom: 0; font-size: .9375rem; }
.bdt-padd { margin-top: 1rem; }
.bdt-padd__grid { display: grid; gap: .5rem; grid-template-columns: 2fr 1fr 1fr auto; }
.bdt-padd .bdt-btn { height: 38px; }
@media (max-width: 640px) {
  .bdt-padd__grid { grid-template-columns: 1fr 1fr; }
  .bdt-padd__grid > :first-child { grid-column: 1 / -1; }
  .bdt-ptable thead { display: none; }
  .bdt-ptable tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--b-line); position: relative; }
  .bdt-ptable tbody td { border: 0; padding: 0 !important; }
  .bdt-ptable tbody td:first-child { grid-column: 1 / -1; padding-right: 2.5rem !important; }
  .bdt-ptable tbody td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; font-weight: 600; color: var(--b-muted); margin-bottom: .2rem; }
  .bdt-ptable tbody td:first-child::before { display: none; }
  .bdt-ptable tbody td:last-child { position: absolute; right: 1rem; top: .85rem; }
  .bdt-ptable tbody td.bdt-num { text-align: left !important; }
}

/* Contact */
.bdt-contact { max-width: 620px; }
.bdt-contact .bdt-field { margin-bottom: 1.1rem; }
.bdt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bdt-alert { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: var(--b-r-sm); margin: 0 0 1rem; font-weight: 500; font-size: .875rem; max-width: 620px; border: 1px solid; font-family: var(--font, system-ui, sans-serif); }
.bdt-alert--ok { background: #ecfbf3; color: #054f31; border-color: #abefc6; }
.bdt-alert--err { background: #fef3f2; color: #7a271a; border-color: #fecdca; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Printing a single result */
#bdt-print { display: none; }
@media print {
  html.bdt-print-mode body > *:not(#bdt-print) { display: none !important; }
  html.bdt-print-mode #bdt-print { display: block !important; font: 10.5pt/1.45 "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #000; }
  #bdt-print h2 { font-size: 12pt; margin: 14pt 0 6pt; }
  #bdt-print table { width: 100%; border-collapse: collapse; }
  #bdt-print th, #bdt-print td { text-align: left; border-bottom: .5pt solid #bbb; padding: 3pt 4pt; font-size: 9.5pt; }
  .bdt-print__head { display: flex; justify-content: space-between; gap: 12pt; border-bottom: 1pt solid #000; padding-bottom: 6pt; font-size: 9.5pt; }
  .bdt-print__res .bdt-result__num { font-size: 24pt; color: #000; }
  .bdt-print__res .bdt-stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18pt; }
  .bdt-print__res .bdt-warn, .bdt-print__res .bdt-good { border: .5pt solid #bbb; background: none; }
  .bdt-print__res .bdt-icon { display: none; }
  .bdt-print__foot { margin-top: 14pt; font-size: 8pt; color: #333; word-break: break-all; }
  .bdt-noprint, .bdt-padd, .bdt-toast { display: none !important; }
  .bdt-pi { border: 0 !important; padding: 0 !important; height: auto !important; }
}

/* Live diagrams drawn by the calculators */
.bdt-figure { margin: 1.1rem 0 0; padding: .75rem; border: 1px solid var(--b-line); border-radius: var(--b-r); background: var(--b-bg); }
.bdt-figure svg { display: block; width: 100%; height: auto; max-height: 220px; }
.bdt-figure figcaption { font-size: .75rem; color: var(--b-muted); margin-top: .35rem; text-align: center; }
.fg-ln { stroke: var(--b-ink); stroke-width: 1.6; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.fg-roof { fill: var(--b-brand-soft); stroke: var(--b-brand); stroke-width: 2; stroke-linejoin: round; }
.fg-wall { fill: var(--b-card); stroke: var(--b-line-2); stroke-width: 1.2; }
.fg-dim { stroke: var(--b-muted); stroke-width: 1; fill: none; }
.fg-dash { stroke: var(--b-brand); stroke-width: 1.4; stroke-dasharray: 5 4; fill: none; }
.fg-txt { fill: var(--b-ink-2); font: 500 11px var(--b-font); paint-order: stroke fill; stroke: var(--b-bg); stroke-width: 4px; stroke-linejoin: round; }
.fg-txt--s { fill: var(--b-muted); font-size: 10px; }
.fg-txt--b { fill: var(--b-brand); font-weight: 600; }
.fg-step { fill: var(--b-brand-soft); stroke: var(--b-brand); stroke-width: 1.4; stroke-linejoin: round; }

.fg-fill { fill: var(--b-brand-soft); stroke: var(--b-brand); stroke-width: 1.4; stroke-linejoin: round; }
.fg-top { fill: color-mix(in srgb, var(--b-brand-soft) 55%, var(--b-card)); }
.fg-side { fill: color-mix(in srgb, var(--b-brand) 22%, var(--b-brand-soft)); }
.fg-layer { fill: #c9b79c; stroke: #8a7354; stroke-width: 1.2; }
.fg-asphalt { fill: #3d434b; stroke: #22262b; stroke-width: 1.2; }
.fg-concrete { fill: #c4c8cd; stroke: #8b9097; stroke-width: 1.2; }
.fg-base { fill: #dcd3c2; stroke: #b3a68c; stroke-width: 1; stroke-dasharray: 3 2; }
.fg-open { fill: var(--b-bg); stroke: var(--b-err); stroke-width: 1.4; stroke-dasharray: 5 3; }
.fg-bar { fill: var(--b-brand); }
.fg-post { fill: var(--b-ink); }
.fg-rail { stroke: var(--b-muted); stroke-width: 2; }
.fg-gate { fill: none; stroke: var(--b-brand); stroke-width: 1.6; stroke-dasharray: 4 3; }
.fg-block { fill: #d7dadf; stroke: #8b9097; stroke-width: 1.2; }
.fg-brick { fill: #d9876a; stroke: #9c4f35; stroke-width: 1.2; }
.fg-joint { stroke: rgba(255, 255, 255, .75); stroke-width: 1; fill: none; }
.bdt-figure svg { max-height: 240px; }
.fg-soil { fill: #b89f7f; stroke: #8a7354; stroke-width: 1; opacity: .55; }
.fg-c1 { fill: #0f6fff; } .fg-c2 { fill: #7b61ff; } .fg-c3 { fill: #15b79e; } .fg-c4 { fill: #f79009; }
.fg-c5 { fill: #ee46bc; } .fg-c6 { fill: #2e90fa; } .fg-c7 { fill: #84cc16; } .fg-c8 { fill: #98a2b3; }
.fg-wood { fill: #d9a066; stroke: #9a6633; stroke-width: 1; }
.fg-gutter { fill: #b8c4d6; stroke: #5d6b82; stroke-width: 1.2; }
.fg-siding { fill: #dbe7f6; stroke: #8fa7c7; stroke-width: 1; }

/* ---- text, notes and dates ---- */
.bdt-input--textarea textarea { height: auto; min-height: 84px; padding: .65rem .8rem; resize: vertical; line-height: 1.45; }
.bdt-input--date input { padding-right: .5rem; }
.bdt-input--text input, .bdt-input--textarea textarea { font-variant-numeric: normal; }

/* ---- document preview: always paper-white, like the PDF ---- */
.bdt-doc { margin: 1rem 0 1.1rem; border-radius: var(--b-r); background: var(--b-bg); padding: .7rem; border: 1px solid var(--b-line); }
.bdt-doc__paper { background: #fff; color: #13171b; border-radius: 6px; box-shadow: 0 1px 2px rgba(12,20,39,.08), 0 8px 24px -12px rgba(12,20,39,.25); padding: 1.1rem 1.1rem 1rem; font-size: .74rem; line-height: 1.45; border-top: 4px solid #0f6fff; }
.bdt-doc__paper p { margin: 0; }
.bdt-doc__top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid #e3e8ef; margin-bottom: .7rem; }
.bdt-doc__from { font-weight: 650; font-size: .92rem; letter-spacing: -.01em; }
.bdt-doc__ln { color: #5d6b82; }
.bdt-doc__typeb { text-align: right; }
.bdt-doc__title { color: #0b5bd6; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; margin-bottom: .25rem !important; }
.bdt-doc__meta { margin: 0; }
.bdt-doc__meta div { display: flex; justify-content: flex-end; gap: .5rem; }
.bdt-doc__meta dt { color: #5d6b82; }
.bdt-doc__meta dd { margin: 0; font-weight: 600; }
.bdt-doc__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: .7rem; }
.bdt-doc__k { font-size: .62rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #5d6b82; margin-bottom: .15rem !important; }
.bdt-doc__name { font-weight: 600; }
.bdt-doc__intro { margin: 0 0 .6rem !important; }
.bdt-doc__tw { overflow-x: auto; }
.bdt-doc__items { width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
.bdt-doc__items th { background: #f4f7fc; color: #5d6b82; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; text-align: left; padding: .35rem .4rem; }
.bdt-doc__items td { padding: .38rem .4rem; border-bottom: 1px solid #edf0f4; vertical-align: top; font-variant-numeric: tabular-nums; }
.bdt-doc__items .r { text-align: right; white-space: nowrap; }
.bdt-doc__items tr.is-sub td { font-weight: 650; background: #fafbfd; }
.bdt-doc__items tr.is-done td { color: #5d6b82; text-decoration: line-through; text-decoration-color: #b7bec9; }
.bdt-doc__totals { margin: 0 0 .6rem auto; border-collapse: collapse; min-width: 58%; font-variant-numeric: tabular-nums; }
.bdt-doc__totals th { text-align: left; font-weight: 400; color: #5d6b82; padding: .22rem .4rem; }
.bdt-doc__totals td { text-align: right; font-weight: 600; padding: .22rem .4rem; white-space: nowrap; }
.bdt-doc__totals tr.is-total th, .bdt-doc__totals tr.is-total td { background: #f4f7fc; color: #13171b; font-weight: 700; font-size: .85rem; }
.bdt-doc__sec { margin-top: .6rem; }
.bdt-doc__sec p + p { margin-top: .3rem !important; }
.bdt-doc__sec ul { margin: .1rem 0 0; padding-left: 1.1rem; }
.bdt-doc__sign { display: flex; gap: 1.2rem; margin-top: 1.4rem; }
.bdt-doc__sign div { flex: 1; }
.bdt-doc__sign span { display: block; border-bottom: 1px solid #13171b; height: 1.5rem; }
.bdt-doc__sign p { color: #5d6b82; font-size: .65rem; margin-top: .2rem !important; }
.bdt-doc__foot { margin-top: .9rem !important; padding-top: .5rem; border-top: 1px solid #edf0f4; color: #5d6b82; font-size: .62rem; }
@media print {
  html.bdt-print-mode .bdt-doc--print { border: 0; background: #fff; padding: 0; margin: 0; }
  html.bdt-print-mode .bdt-doc--print .bdt-doc__paper { box-shadow: none; font-size: 10pt; padding: 0; border-top-width: 6px; }
}

.bdt-signnote { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .8rem; padding: .65rem .8rem; border-radius: var(--b-r-sm); background: var(--b-brand-soft); color: var(--b-ink-2); font-size: .85rem; line-height: 1.45; }
.bdt-signnote svg { flex: none; margin-top: .15rem; color: var(--b-brand); }
.bdt-doc__sign p strong { display: block; color: #13171b; font-weight: 600; font-size: .7rem; }

.bdt-doc__sign { gap: 1.6rem; margin-top: 1.2rem; }
.bdt-doc__sigblk { flex: 1; min-width: 0; }
.bdt-doc__sign .bdt-doc__sigline { display: block; border-bottom: 1px solid #13171b; height: 2.4rem; }
.bdt-doc__sign p.bdt-doc__siglab { color: #5d6b82; font-size: .62rem; margin: .2rem 0 .55rem !important; }
.bdt-doc__sign p.bdt-doc__sigrow { display: flex; align-items: flex-end; gap: .35rem; color: #5d6b82; font-size: .66rem; margin: 0 0 .45rem !important; }
.bdt-doc__sign p.bdt-doc__sigrow strong { display: inline; color: #13171b; font-size: .7rem; font-weight: 600; }
.bdt-doc__blank { flex: 1; border-bottom: 1px solid #c4ccd8; height: .8rem; }
.bdt-doc__sign { flex-wrap: wrap; row-gap: 1rem; }
.bdt-doc__sigblk { flex: 1 1 150px; }
.bdt-doc__sign p.bdt-doc__sigrow { white-space: nowrap; }
.bdt-doc__sign p.bdt-doc__sigrow strong { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.bdt-doc__sigblk { flex: 1 1 200px; }
.bdt-doc__sign p.bdt-doc__sigrow { align-items: baseline; }
.bdt-doc__sign .bdt-doc__sigblk { flex: 1 1 200px; }

.fg-joint-bg { fill: #c9c3b8; }
.fg-tape { fill: #ffd84d; stroke: #b08d00; stroke-width: 1; }
.fg-sheet { fill: #eef1f5; stroke: #9aa6b8; stroke-width: 1; }
.fg-grout { fill: #b9b2a6; }
.fg-tile { fill: #f4f1ea; stroke: #cfc8bb; stroke-width: .5; }
.fg-water { fill: #8fd0f2; stroke: #3a95c9; stroke-width: 1.2; }
.fg-liner { fill: none; stroke: #13171b; stroke-width: 2.4; }
:root[data-mode="dark"] .bdt .fg-tile { fill: #2b3346; stroke: #46526b; }
:root[data-mode="dark"] .bdt .fg-sheet { fill: #253047; stroke: #4b5a78; }
:root[data-mode="dark"] .bdt .fg-water { fill: #1e5a7c; stroke: #4fb3e8; }
:root[data-mode="dark"] .bdt .fg-liner { stroke: #e7ecf3; }
.bdt-app > * { min-width: 0; }
.bdt-tablewrap { max-width: 100%; overflow-x: auto; }
.bdt-review a, .bdt-guide p a, .bdt-guide li a, .bdt-faq a, .bdt-small a { text-decoration: underline; text-underline-offset: 2px; }
