/* ============================================================
   Body Fat & BMR Calculator — page skin
   Only loaded by body-fat-bmr-calculator.html (+ its locale copies),
   so the overrides below are scoped by the file itself.
   ============================================================ */

.bf-page {
    --bf-brand: #1a73e8;
    --bf-brand-dark: #1557b0;
    --bf-ink: #101c30;
    --bf-ink-soft: #3c4c66;
    --bf-muted: #5f7089;
    --bf-line: #e1e9f3;
    --bf-line-soft: #edf2f9;
    --bf-radius-lg: 18px;
    --bf-radius: 12px;
    --bf-shadow-card: 0 1px 2px rgba(16, 32, 56, 0.05), 0 24px 48px -34px rgba(16, 32, 56, 0.55);
    --bf-shadow-control: 0 1px 2px rgba(16, 32, 56, 0.06);
}

/* ---------- page heading & quick answer ---------- */

.bf-page .section-title {
    gap: 12px;
    margin-bottom: 10px;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bf-ink);
}
.bf-page .section-title svg {
    width: 22px;
    height: 22px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #3b8ef0, #1a73e8);
    box-shadow: 0 8px 16px -10px rgba(26, 115, 232, 0.95);
    flex: none;
}
.bf-page .section-subtitle {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--bf-muted);
}
.bf-page .geo-direct-answer {
    padding: 18px 20px;
    margin: 0 0 22px;
    border: 1px solid #dfeafb;
    border-left: 4px solid #2b82ea;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff, #eef5ff);
    color: #39475f;
    font-size: 14.5px;
    line-height: 1.68;
}
.bf-page .geo-direct-answer .geo-quick-answer,
.bf-page .geo-direct-answer strong { color: var(--bf-brand-dark); }
/* main.css bolds the whole first paragraph; keep only the <strong> lead emphasised */
.bf-page .geo-direct-answer p:first-child { font-weight: 400; }

/* ---------- calculator card ---------- */

.bf-page .dev-tool-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-lg);
    background: #fff;
    box-shadow: var(--bf-shadow-card);
}
/* thin brand ribbon along the top edge */
.bf-page .dev-tool-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8 0%, #3b8ef0 55%, #7cb6f5 100%);
}

/* ---------- unit toggle ---------- */

.bf-units-toggle {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    margin-bottom: 22px;
    border: 1px solid #e4ebf5;
    border-radius: 999px;
    background: #eef2f8;
}
.bf-unit-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #5b6a80;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.bf-unit-btn:hover { color: var(--bf-ink); }
.bf-unit-btn.active {
    background: #fff;
    color: var(--bf-brand);
    box-shadow: 0 1px 2px rgba(16, 32, 56, 0.14), 0 0 0 1px rgba(26, 115, 232, 0.06);
}

/* ---------- fields ---------- */

/* Three per row keeps the six measurements in exactly two rows */
.bf-input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
    margin-bottom: 10px;
}
/* A localised label that wraps to two lines (pt, ru) would otherwise lift its
   input out of line: keep labels top-aligned and push every input to the
   bottom of the row instead. */
.bf-input-grid .dev-tool-label .dev-tool-input {
    margin-top: auto;
}

/* Results are live, so say so instead of offering a Calculate button.
   Styled as a tinted callout so it registers at a glance. */
.bf-auto-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid #d7e7fb;
    border-radius: 11px;
    background: linear-gradient(180deg, #f5faff, #ecf4ff);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bf-brand-dark);
    letter-spacing: -0.005em;
}
.bf-auto-note::before {
    content: "i";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #b6d2f8;
    color: var(--bf-brand);
    font: 700 12.5px/1 Georgia, "Times New Roman", serif;
}
.bf-input-grid .dev-tool-label,
.bf-goal .dev-tool-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--bf-ink-soft);
}
.bf-input-grid .dev-tool-input,
.bf-goal .dev-tool-input,
#bfActivity {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 15px;
    font-weight: 500;
    color: var(--bf-ink);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.bf-input-grid .dev-tool-input:hover,
.bf-goal .dev-tool-input:hover,
#bfActivity:hover { border-color: #c3d2e5; background: #fff; }
.bf-input-grid .dev-tool-input:focus,
.bf-goal .dev-tool-input:focus,
#bfActivity:focus {
    outline: none;
    border-color: var(--bf-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

/* .dev-tool-input was written for text inputs: its inline padding crowds the
   native select arrow, so draw the chevron ourselves and reserve room for it. */
select.dev-tool-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7c93' d='M0 1h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    padding-right: 34px;
    cursor: pointer;
}
[dir="rtl"] select.dev-tool-input {
    background-position: left 12px center;
    padding-right: 12px;
    padding-left: 34px;
}
.bf-input-grid .bf-hip-row[hidden] { display: none; }
/* Hip is a female-only 7th field: let it fill the row instead of leaving a hole */
.bf-input-grid .bf-hip-row {
    grid-column: 1 / -1;
}

/* The activity picker sits between the body-fat and BMR/TDEE results:
   needs the same typography as the grid labels plus air above it, because
   .base64-meta only carries a top margin. */
.dev-tool-card > .dev-tool-label[for="bfActivity"] {
    margin-top: 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--bf-ink-soft);
}

/* ---------- results ---------- */

/* Localised category words (e.g. "Durchschnittlich") must not break the cell */
.base64-meta-cell b {
    overflow-wrap: anywhere;
}
#bfMeta .base64-meta-cell > span,
#bfBmrMeta .base64-meta-cell > span,
#bfGoalMeta .base64-meta-cell > span {
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--bf-muted);
}

/* Body-composition panel: hero number, two supporting figures, category pill */
#bfMeta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 20px;
    border: 1px solid #dfeaf9;
    border-radius: 14px;
    background:
        radial-gradient(120% 130% at 0% 0%, #edf4ff 0%, rgba(237, 244, 255, 0) 58%),
        linear-gradient(180deg, #fcfdff, #f5f9ff);
}
#bfMeta .base64-meta-cell:nth-child(1) { grid-column: 1 / -1; }
#bfMeta .base64-meta-cell:nth-child(1) > b {
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bf-brand-dark);
}
#bfMeta .base64-meta-cell:nth-child(2) > b,
#bfMeta .base64-meta-cell:nth-child(3) > b {
    font-size: 21px;
    font-weight: 700;
    color: var(--bf-ink);
}
#bfMeta .base64-meta-cell:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed #d9e6f7;
}
#bfMeta .base64-meta-cell:nth-child(4) > span {
    order: -1;
    font-size: 11.5px;
}
#bfMeta .base64-meta-cell:nth-child(4) > b {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #eef2f7;
    color: var(--bf-ink-soft);
}
#bfMeta .base64-meta-cell:nth-child(4) > b::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
    flex: none;
}
/* Band colours mirror the scale bar below (extra id so it outranks the pill base rule) */
#bfMeta #bfCategory[data-level="0"] { background: #e8f0fe; color: #1a5eb8; }
#bfMeta #bfCategory[data-level="1"] { background: #e6f4ea; color: #137333; }
#bfMeta #bfCategory[data-level="2"] { background: #f1f8e6; color: #4a6b12; }
#bfMeta #bfCategory[data-level="3"] { background: #fdf1dd; color: #8a5300; }
#bfMeta #bfCategory[data-level="4"] { background: #fce8e6; color: #c5221f; }

/* Energy panel */
#bfBmrMeta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 18px 20px;
    margin-top: 16px;
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--bf-shadow-control);
}
#bfBmrMeta .base64-meta-cell > b {
    font-size: 19px;
    font-weight: 700;
    color: var(--bf-ink);
}
/* Turns the abstract −400 kcal into "≈ −0.36 kg per week" */
#bfBmrMeta .bf-cut-note {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--bf-muted);
    font-variant-numeric: tabular-nums;
}
#bfBmrMeta .bf-cut-note:empty { display: none; }

/* ---------- body-fat scale ---------- */

.bf-scale { margin-top: 16px; }
.bf-scale[hidden] { display: none; }
.bf-scale-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background-color: #eef1f5;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: inset 0 0 0 1px rgba(16, 32, 56, 0.06), inset 0 1px 2px rgba(16, 32, 56, 0.08);
}
.bf-scale-pointer {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #101c30;
    box-shadow: 0 2px 6px rgba(16, 32, 56, 0.35);
    transform: translate(-50%, -50%);
}
.bf-scale-ticks {
    position: relative;
    height: 16px;
    margin-top: 4px;
}
.bf-scale-ticks span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 10.5px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
/* Scale bound at the right edge — keep it inside the track instead of centring on it */
.bf-scale-ticks span.bf-scale-end {
    transform: translateX(-100%);
    color: #94a0b3;
}

/* ---------- waist-to-height line ---------- */

.bf-whtr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 14px 0 0;
    padding: 10px 14px;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    background: #f8fafd;
    font-size: 12.5px;
    color: var(--bf-muted);
}
.bf-whtr[hidden] { display: none; }
.bf-whtr b {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bf-ink);
    font-variant-numeric: tabular-nums;
}

/* ---------- actions ---------- */

.dev-tool-actions {
    gap: 10px;
    margin-top: 22px;
}
.dev-tool-btn {
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #33415c;
    border-color: #dbe3ee;
    box-shadow: 0 1px 1px rgba(16, 32, 56, 0.04);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.dev-tool-btn:hover {
    transform: translateY(-1px);
    background: #fff;
    border-color: #c8d5e6;
    box-shadow: 0 8px 18px -12px rgba(16, 32, 56, 0.65);
}
.dev-tool-btn:active { transform: translateY(0); }
/* The reset button steps back so Copy Report owns the row */
.dev-tool-btn.ghost {
    color: var(--bf-muted);
    background: transparent;
    border-color: #e2e8f1;
}
.dev-tool-btn.ghost:hover {
    color: var(--bf-ink-soft);
    background: #f7f9fc;
    border-color: #cfdaea;
}

/* ---------- goals & macros (collapsible) ---------- */

.bf-extra {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #dde6f1;
}
.bf-extra > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e3ecf8;
    border-radius: 11px;
    background: #f5f9fe;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--bf-ink-soft);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bf-extra > summary:hover {
    background: #edf4fd;
    border-color: #d2e3fa;
    color: var(--bf-brand-dark);
}
.bf-extra > summary::-webkit-details-marker { display: none; }
.bf-extra > summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.15s ease;
}
.bf-extra[open] > summary::before { transform: rotate(90deg); }

.bf-goal { margin-top: 16px; }
.bf-goal .dev-tool-label { max-width: 190px; }
.bf-goal-note {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: #64748b;
}
#bfGoalMeta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    margin-top: 14px;
    border: 1px solid #e3ecf8;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f4f9ff);
}
#bfGoalMeta .base64-meta-cell > b {
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-ink);
}

/* FFMI: muscle mass relative to height, with the usual reference band */
.bf-ffmi { margin-top: 20px; }
.bf-ffmi-title {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.bf-ffmi-value {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0;
}
.bf-ffmi-value b {
    font-size: 20px;
    font-weight: 700;
    color: var(--bf-ink);
    font-variant-numeric: tabular-nums;
}
.bf-ffmi-band {
    font-size: 12px;
    font-weight: 600;
    color: var(--bf-muted);
}
.bf-ffmi-note {
    margin: 6px 0 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: #64748b;
}

.bf-macros { margin-top: 20px; }
.bf-macros-title {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
/* Explains why the goal field above does not re-shuffle the macro rows */
.bf-macros-note {
    margin: 0 0 10px;
    font-size: 11.5px;
    line-height: 1.55;
    color: #64748b;
}

/* Protein total → per-meal figure people can actually act on */
.bf-macros-permeal {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: #64748b;
}
.bf-macros-permeal:empty { display: none; }

.bf-macro-row {
    display: grid;
    grid-template-columns: minmax(60px, 1.4fr) repeat(4, minmax(40px, 1fr));
    gap: 6px;
    padding: 9px 0;
    border-top: 1px solid var(--bf-line-soft);
    font-size: 12.5px;
    color: #33415c;
    font-variant-numeric: tabular-nums;
}
.bf-macro-row span + span { text-align: right; }
.bf-macro-row:not(.bf-macro-head) span + span { white-space: nowrap; }
.bf-macro-row:not(.bf-macro-head) span:first-child {
    font-weight: 600;
    color: var(--bf-ink);
}
.bf-macro-head {
    align-items: end;
    padding-top: 0;
    border-top: 0;
    font-size: 11px;
    color: #64748b;
}
/* Long single-word headers (de "Kohlenhydrate", ru "Углеводы") must not spill into
   the neighbouring column on narrow phones: hyphenate, then break as a last resort. */
.bf-macro-head span {
    hyphens: auto;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

/* ---------- saved entries ---------- */

.bf-history { margin-top: 16px; }
.bf-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bf-history-empty {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bf-muted);
}
.bf-history-empty[hidden] { display: none; }
.bf-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.bf-history-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--bf-line-soft);
    border-radius: 9px;
    font-size: 12.5px;
    color: var(--bf-muted);
    font-variant-numeric: tabular-nums;
}
.bf-history-list li b {
    font-size: 14px;
    font-weight: 700;
    color: var(--bf-ink);
}
.bf-history-weight { font-size: 12px; }
.bf-history-chart {
    display: block;
    width: 100%;
    height: 64px;
    margin-top: 12px;
    color: var(--bf-brand);   /* the polyline strokes with currentColor */
}
.bf-history-chart[hidden] { display: none; }

/* Measuring guide inside the FAQ answer */
.bf-measure {
    max-width: 240px;
    margin: 16px 0 0;
    padding: 14px;
    border: 1px solid var(--bf-line-soft);
    border-radius: 12px;
    background: #f8fafd;
    color: var(--bf-ink-soft);
}
.bf-measure svg {
    display: block;
    width: 100%;
    height: auto;
}
.bf-measure figcaption {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--bf-muted);
    text-align: center;
}

/* ---------- RTL ---------- */

/* Measurements read "16.1 %" / "78,9 kg" in every locale; without isolation the
   bidi-neutral % and unit symbols jump to the wrong side of the number. */
[dir="rtl"] .base64-meta-cell > b:not(#bfCategory),
[dir="rtl"] .bf-whtr b,
[dir="rtl"] .bf-cut-note,
[dir="rtl"] .bf-history-list li b,
[dir="rtl"] .bf-history-weight,
[dir="rtl"] .bf-macro-row span + span {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}

/* ---------- keyboard focus ---------- */

/* Shared .dev-tool-btn rule lives in dev-tools.css */
.bf-unit-btn:focus-visible {
    outline: 2px solid var(--bf-brand);
    outline-offset: 2px;
    position: relative;
    z-index: 1; /* keep the outline above the neighbouring pill */
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
    .bf-page .section-title { font-size: 22px; }
    .bf-page .section-title svg { padding: 7px; }
    .bf-page .section-subtitle { font-size: 14px; }
}

@media (max-width: 600px) {
    .bf-input-grid { grid-template-columns: 1fr; }

    .bf-page .dev-tool-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    #bfMeta,
    #bfBmrMeta,
    #bfGoalMeta {
        padding: 16px;
        gap: 14px;
    }
    #bfMeta .base64-meta-cell:nth-child(1) > b { font-size: 34px; }
    #bfBmrMeta .base64-meta-cell > b { font-size: 18px; }
    #bfGoalMeta .base64-meta-cell > b { font-size: 18px; }

    .bf-page .geo-direct-answer {
        padding: 16px;
        font-size: 14px;
    }

    /* 16px keeps iOS Safari from zooming into the field on focus */
    .bf-input-grid .dev-tool-input,
    .bf-goal .dev-tool-input,
    #bfActivity {
        font-size: 16px;
    }

    .bf-unit-btn {
        min-height: 40px;
        padding: 9px 18px;
        font-size: 14px;
    }

    /* Icon inline instead of a column, so the copy keeps the full card width */
    .bf-auto-note {
        display: block;
        padding: 9px 12px;
        font-size: 13.5px;
        line-height: 1.42;
    }
    .bf-auto-note::before {
        display: inline-flex;
        vertical-align: -3px;
        margin-right: 7px;
    }
}

/* ---------- print ---------- */

@media print {
    /* Print a one-page report: measurements + results only. The FAQ, the SEO
       copy, the quick-answer blurb and every on-screen control are dropped. */
    .bf-page .dev-tool-actions,
    .bf-page .bf-auto-note,
    .bf-page .bf-units-toggle,
    .bf-page .bf-extra > summary,
    .bf-page .bf-history-actions,
    .bf-page .geo-direct-answer,
    .bf-page .faq,
    .bf-page .seo-content,
    .bf-page .section-subtitle {
        display: none !important;
    }
    /* A collapsed goals panel would leave a lone dashed divider on paper */
    .bf-page .bf-extra:not([open]) { display: none !important; }
    /* The report is a snapshot of this session; the trend list is on-screen only */
    .bf-page #bfHistory { display: none !important; }
    .bf-page .dev-tool-card {
        box-shadow: none;
        border-color: #ccc;
    }
    .bf-page .dev-tool-card::before { display: none; }
    .bf-page .section-title {
        margin-bottom: 14px;
        font-size: 20pt;
    }
    .bf-page #bfMeta,
    .bf-page #bfBmrMeta,
    .bf-page #bfGoalMeta {
        background: #fff;
        box-shadow: none;
    }
    /* Never split a result panel across two sheets */
    .bf-page #bfMeta,
    .bf-page #bfBmrMeta,
    .bf-page #bfGoalMeta,
    .bf-page .bf-macros {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    /* Keep the body-fat band colours when the browser honours background printing */
    .bf-page #bfMeta,
    .bf-page .bf-scale-track,
    .bf-page #bfCategory {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dev-tool-btn,
    .bf-extra > summary,
    .bf-extra > summary::before,
    .bf-unit-btn {
        transition: none;
    }
    .dev-tool-btn:hover { transform: none; }
}
