
.met-subtype--aldehyde   { background: #fee2e2; color: #991b1b; }
.met-subtype--dialdehyde { background: #ede9fe; color: #5b21b6; }
.met-subtype--dienal     { background: #fef3c7; color: #92400e; }
.met-subtype--saturated  { background: #e2e8f0; color: #334155; }
.met-subtype--default    { background: #f1f5f9; color: #64748b; }
body.dark-mode .met-subtype--aldehyde   { background: #7f1d1d; color: #fecaca; }
body.dark-mode .met-subtype--dialdehyde { background: #4c1d95; color: #ddd6fe; }
body.dark-mode .met-subtype--dienal     { background: #78350f; color: #fde68a; }
body.dark-mode .met-subtype--saturated  { background: #334155; color: #cbd5e1; }
body.dark-mode .met-subtype--default    { background: #334155; color: #94a3b8; }

.met-badge-primary   { background: #b91c1c; color: #fff; }
.met-badge-secondary { background: #e2e8f0; color: #334155; }
body.dark-mode .met-badge-primary   { background: #7f1d1d; color: #fecaca; }
body.dark-mode .met-badge-secondary { background: #334155; color: #cbd5e1; }

.met-badge-no { background: #f1f5f9; color: #94a3b8; }
body.dark-mode .met-badge-no { background: #334155; color: #94a3b8; }

.met-col-75    { width: 75px; }
.met-col-80    { width: 80px; }
.met-col-95    { width: 95px; }
.met-col-100   { width: 100px; }
.met-col-105   { width: 105px; }
.met-col-110   { width: 110px; }
.met-col-120   { width: 120px; }
.met-col-140   { width: 140px; }
.met-col-150   { width: 150px; }
.met-col-11pct { width: 11%; }
.met-col-14pct { width: 14%; }
.met-col-16pct { width: 16%; }
.met-col-18pct { width: 18%; }
.met-col-20pct { width: 20%; }
.met-col-22pct { width: 22%; }
.met-col-24pct { width: 24%; }

.met-empty-note { text-align: center; font-style: italic; padding: 1rem; }
.met-empty-row  { text-align: center; padding: 1rem; }

.met-ext-icon { font-size: .75em; opacity: .6; }
.met-id-sub   { font-size: var(--fs-xs); }
.met-fa-cell  { font-size: var(--fs-sm); }

.fad-ox-body { padding: 0 1rem 1rem; }
.fad-ox-risk-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-bottom: .85rem; }
.fad-ox-risk-badge { font-size: var(--fs-base); padding: .35rem .8rem; }
.fad-ox-stat { font-size: var(--fs-md); color: var(--text-muted); }
.fad-ox-stat-num { color: var(--text-main, inherit); }
.fad-ox-why { font-size: var(--fs-md); line-height: 1.5; margin: 0; color: var(--text-muted); }
.fad-ox-topiclink { margin-top: .85rem; }

.fad-ox-count { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }
.fad-ox-note { padding: 0 1rem; margin: .25rem 0 .75rem; font-size: var(--fs-sm); color: var(--text-muted); }
.fad-ox-unresolved-note { font-size: var(--fs-sm); color: var(--text-muted); margin: .25rem 0 .6rem; }
.fad-ox-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.fad-ox-chip { background: var(--bg-level-3); color: var(--text-muted); }

.fad-ox-col-14pct { width: 14%; }
.fad-ox-col-18pct { width: 18%; }
.fad-ox-col-26pct { width: 26%; }
.fad-ox-col-42pct { width: 42%; }

.fad-ox-kind-primary   { background: var(--accent-primary, #1d4ed8); color: #fff; }
.fad-ox-kind-secondary { background: var(--bg-level-3); }
.fad-ox-abbr       { color: var(--text-muted); font-size: .85em; }
.fad-ox-class-cell { font-size: .85em; }
.fad-ox-react-cell { font-size: .85em; line-height: 1.45; color: var(--text-muted); }

.fad-mem-status-no { background: #f3f4f6; color: #6b7280; }
body.dark-mode .fad-mem-status-no { background: #374151; color: #d1d5db; }

.fad-mem-inferred { background: var(--bg-surface-2); color: var(--text-muted); }

.fad-mem-topic-link { font-size: var(--fs-sm); }
.fad-mem-topic-link-icon { font-size: .85em; opacity: .6; }
.fad-mem-summary { margin: 0 0 1rem; line-height: 1.5; }
.fad-mem-not-incorporated { padding: .75rem 1rem; color: var(--text-muted); font-style: italic; }

:root {
    --fad-mem-expand-bg: #eef2f7;
    --fad-mem-source-bg: #ffffff;
    --fad-mem-track-bg:  #eef1f5;
}
body.dark-mode {
    --fad-mem-expand-bg: #1b2536;
    --fad-mem-source-bg: #243044;
    --fad-mem-track-bg:  #202b3c;
}

.fad-mem-table { width: 100%; table-layout: auto; margin-bottom: .5rem; }
.fad-mem-table > thead > tr > th,
.fad-mem-table > tbody > tr > td { vertical-align: middle; }

.fad-mem-table > thead > tr > th,
.fad-mem-table > tbody > tr > .fad-mem-toggle-cell,
.fad-mem-table > tbody > tr.fad-mem-row > td { width: 1%; white-space: nowrap; }

.fad-mem-table .fad-mem-col-bar,
.fad-mem-table .fad-mem-bar-cell { width: 99%; white-space: normal; }

.fad-mem-scale {
    display: block;
    font-size: var(--fs-2xs);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.fad-mem-row.is-expanded { background: var(--fad-mem-expand-bg); }

.fad-mem-table .fad-mem-col-chevron,
.fad-mem-table .fad-mem-toggle-cell {
    padding-left: .4rem;
    padding-right: .1rem;
}
.fad-mem-table .fad-mem-toggle-cell {
    text-align: center;
    cursor: pointer;
}
.fad-mem-chevron {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    transition: transform 0.15s;
}
.fad-mem-row.is-expanded .fad-mem-chevron { transform: rotate(90deg); }

.fad-mem-group-sub {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.2;
}

.fad-mem-bar-cell { vertical-align: middle; }
.fad-mem-track {
    position: relative;
    height: 9px;
    border-radius: 5px;
    background: var(--fad-mem-track-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.fad-mem-track-empty { opacity: .5; }
.fad-mem-range {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 3px;
    border-radius: 5px;
    background: var(--primary-color);
    opacity: .85;
}
.fad-mem-pct {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fad-mem-detail-row { display: none; }
.fad-mem-detail-row.is-open { display: table-row; }

.fad-mem-detail-cell {
    padding: 1.25rem 1.5rem;
    background: var(--fad-mem-expand-bg);
}
.fad-mem-props-table {
    width: 100%;
    font-size: var(--fs-sm);
    background: var(--fad-mem-source-bg);
}
.fad-mem-props-table tr { background: var(--fad-mem-source-bg); }
.fad-mem-props-table th,
.fad-mem-props-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.fad-mem-props-table th {
    width: 22%;
    text-align: left;
    background: var(--fad-mem-source-bg);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    vertical-align: top;
}
.fad-mem-props-table tr:last-child th,
.fad-mem-props-table tr:last-child td { border-bottom: none; }

.fad-mem-capitalize { text-transform: capitalize; }
.fad-mem-lc-cell    { line-height: 1.4; }
.fad-mem-notes-cell { line-height: 1.45; }

.fad-mem-section        { margin-top: 1rem; }
.fad-mem-section-title  { font-size: var(--fs-md); }
.fad-mem-roles-list     { margin: .4rem 0 0; padding-left: 1.2rem; line-height: 1.5; }
.fad-mem-turnover       { margin-top: 1rem; font-size: var(--fs-sm); }
.fad-mem-turnover-body  { margin-top: .3rem; line-height: 1.5; }
.fad-mem-turnover-notes { color: var(--text-muted); margin-top: 2px; }
.fad-mem-turnover-refs  { margin-top: 3px; }

.fad-energy-status-no { background: #f3f4f6; color: #6b7280; }
body.dark-mode .fad-energy-status-no { background: #374151; color: #d1d5db; }

.fad-energy-h4-capability { margin: 0.25rem 1rem 0.75rem; }
.fad-energy-h4-atp        { margin: 1.5rem 1rem 0.5rem; }
.fad-energy-h4-roles      { margin: 1.5rem 1rem 0.75rem; }
.fad-energy-table         { margin-bottom: 2rem; }

.fad-energy-col-13pct { width: 13%; }
.fad-energy-col-22pct { width: 22%; }
.fad-energy-col-25pct { width: 25%; }
.fad-energy-col-28pct { width: 28%; }
.fad-energy-col-40pct { width: 40%; }
.fad-energy-col-47pct { width: 47%; }

.fad-energy-note-cell { font-size: .9em; line-height: 1.45; }
.fad-energy-refs-cell { font-size: .82em; }
.fad-energy-loc        { margin-top: .4rem; font-size: .85em; color: var(--text-muted); }
.fad-energy-flag-wrap  { margin-top: .3rem; }
.fad-energy-center     { text-align: center; }

.fad-energy-calc-link-extra { font-size: var(--fs-xs); font-weight: 400; margin-left: .4rem; }

.fad-bio-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.fad-bio-title  { margin: 0; }
.fad-bio-topic-link      { font-size: var(--fs-sm); }
.fad-bio-topic-link-icon { font-size: .85em; opacity: .6; }
.fad-bio-summary  { margin: 0 0 1rem; line-height: 1.5; }
.fad-bio-eyebrow  { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .4rem; }
.fad-bio-pills    { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.fad-bio-src-notes { margin: 0 0 1rem; font-size: var(--fs-sm); color: var(--text-muted); font-style: italic; }
.fad-bio-empty-conv { padding: .75rem 1rem; color: var(--text-muted); font-style: italic; }
.fad-bio-conv-h4  { margin: .75rem 0 .4rem; font-size: var(--fs-md); }
.fad-bio-table    { margin-bottom: 1rem; }

.fad-bio-col-24pct { width: 24%; }
.fad-bio-col-26pct { width: 26%; }
.fad-bio-cell-88 { font-size: .88em; }
.fad-bio-cell-80 { font-size: .8em; }

.fad-bio-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 999px;
    font-size: var(--fs-sm); font-weight: 600;
}
.fad-bio-pill--on  { background: #dcfce7; color: #166534; }
.fad-bio-pill--off { background: #f3f4f6; color: #9ca3af; }
body.dark-mode .fad-bio-pill--on  { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-bio-pill--off { background: #374151; color: #d1d5db; }

.fad-bio-dir-from { background: #eff6ff; color: #1e40af; }
.fad-bio-dir-to   { background: #f0fdf4; color: #166534; }
body.dark-mode .fad-bio-dir-from { background: #1e3a5f; color: #bfdbfe; }
body.dark-mode .fad-bio-dir-to   { background: #14532d; color: #bbf7d0; }

.fad-mech-loc  { margin-top: .4rem; font-size: .85em; color: var(--text-muted); }
.fad-mech-pathway-badge {
    background: #e2e8f0; color: #1e293b;
    text-transform: capitalize; margin-top: .25rem; display: inline-block;
}
body.dark-mode .fad-mech-pathway-badge { background: #334155; color: #e2e8f0; }

.fad-mech-stage-badge { background: var(--bg-level-3); color: var(--text-muted); margin-left: .35rem; font-size: .75em; }

.fad-mech-role-cell { font-size: .9em; line-height: 1.45; }
.fad-mech-refs-cell { font-size: .82em; }
.fad-mech-note  { padding: 0 1rem; margin: .25rem 0 .75rem; font-size: var(--fs-sm); color: var(--text-muted); }
.fad-mech-count { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }

.fad-mech-col-25pct { width: 25%; }
.fad-mech-col-28pct { width: 28%; }
.fad-mech-col-47pct { width: 47%; }

.fad-mf-type--nonenz    { background: #fee2e2; color: #991b1b; }
.fad-mf-type--enz       { background: #dcfce7; color: #166534; }
.fad-mf-type--thermal   { background: #fef3c7; color: #92400e; }
.fad-mf-type--auto      { background: #e2e8f0; color: #334155; }
.fad-mf-type--photo     { background: #fef9c3; color: #854d0e; }
.fad-mf-type--microbial { background: #e0e7ff; color: #3730a3; }
.fad-mf-type--default   { background: #f1f5f9; color: #64748b; }
body.dark-mode .fad-mf-type--nonenz    { background: #7f1d1d; color: #fecaca; }
body.dark-mode .fad-mf-type--enz       { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-mf-type--thermal   { background: #78350f; color: #fde68a; }
body.dark-mode .fad-mf-type--auto      { background: #334155; color: #cbd5e1; }
body.dark-mode .fad-mf-type--photo     { background: #4d3b09; color: #fde68a; }
body.dark-mode .fad-mf-type--microbial { background: #312e81; color: #c7d2fe; }
body.dark-mode .fad-mf-type--default   { background: #334155; color: #94a3b8; }

.fad-mf-icon-muted { opacity: .6; }
.fad-mf-col-12pct { width: 12%; }
.fad-mf-col-14pct { width: 14%; }
.fad-mf-col-16pct { width: 16%; }
.fad-mf-col-24pct { width: 24%; }
.fad-mf-col-34pct { width: 34%; }
.fad-mf-col-56pct { width: 56%; }

.fad-ma-icon-muted { opacity: .6; }
.fad-ma-col-16pct { width: 16%; }
.fad-ma-col-34pct { width: 34%; }
.fad-ma-refs-wrap { margin-top: .5rem; }

.fad-ma-dir-pos { background: #b91c1c; color: #fff; }
.fad-ma-dir-neg { background: #15803d; color: #fff; }

.fad-mm-path--adduction   { background: #fee2e2; color: #991b1b; }
.fad-mm-path--genotoxicity { background: #fce7f3; color: #9d174d; }
.fad-mm-path--signalling  { background: #dbeafe; color: #1e40af; }
.fad-mm-path--receptor    { background: #e0e7ff; color: #3730a3; }
.fad-mm-path--redox       { background: #fef3c7; color: #92400e; }
.fad-mm-path--celldeath   { background: #ede9fe; color: #5b21b6; }
.fad-mm-path--metabolism  { background: #dcfce7; color: #166534; }
.fad-mm-path--biomarker   { background: #e2e8f0; color: #334155; }
.fad-mm-path--default     { background: #f3f4f6; color: #6b7280; }
body.dark-mode .fad-mm-path--adduction    { background: #7f1d1d; color: #fecaca; }
body.dark-mode .fad-mm-path--genotoxicity { background: #831843; color: #fbcfe8; }
body.dark-mode .fad-mm-path--signalling   { background: #1e3a8a; color: #bfdbfe; }
body.dark-mode .fad-mm-path--receptor     { background: #312e81; color: #c7d2fe; }
body.dark-mode .fad-mm-path--redox        { background: #78350f; color: #fde68a; }
body.dark-mode .fad-mm-path--celldeath    { background: #4c1d95; color: #ddd6fe; }
body.dark-mode .fad-mm-path--metabolism   { background: #14532d; color: #bbf7d0; }
body.dark-mode .fad-mm-path--biomarker    { background: #334155; color: #cbd5e1; }
body.dark-mode .fad-mm-path--default      { background: #374151; color: #d1d5db; }

.fad-mm-icon-muted { opacity: .6; }
.fad-mm-badge-wrap { margin-top: .35rem; }
.fad-mm-col-16pct { width: 16%; }
.fad-mm-col-20pct { width: 20%; }
.fad-mm-col-28pct { width: 28%; }
.fad-mm-col-52pct { width: 52%; }

.fad-assoc-count-pos { font-size: var(--fs-xs); color: #15803d; }
.fad-assoc-count-neg { font-size: var(--fs-xs); color: #b91c1c; }
body.dark-mode .fad-assoc-count-pos { color: #4ade80; }
body.dark-mode .fad-assoc-count-neg { color: #f87171; }

.fad-assoc-tabs-bar {
    display: flex; gap: .35rem; padding: .75rem .75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.fa-assoc-tab {
    appearance: none; background: transparent; border: 1px solid transparent; border-bottom: none;
    border-radius: 6px 6px 0 0; padding: .45rem .9rem; font: inherit; font-size: var(--fs-sm); font-weight: 600;
    color: var(--text-muted); cursor: pointer; margin-bottom: -1px; display: inline-flex; align-items: center; gap: .4rem;
}
.fa-assoc-tab:hover { color: var(--tab-col); background: color-mix(in srgb, var(--tab-col) 7%, transparent); }
.fa-assoc-tab.is-active {
    color: var(--tab-col); border-color: var(--border-color);
    border-bottom: 1px solid var(--card-bg); background: var(--card-bg);
}
.fa-assoc-tab.is-active .fa-assoc-tab-n { background: var(--tab-col); color: #fff; }
.fa-assoc-tab-n {
    background: var(--border-color); color: var(--text-muted);
    border-radius: 999px; padding: .02rem .42rem; font-size: .76em; line-height: 1.5;
}

.fad-assoc-empty-panel { padding: 1.25rem; color: var(--text-muted); font-style: italic; text-align: center; }
.fad-assoc-col-42pct { width: 42%; }
.fad-assoc-col-58pct { width: 58%; }

.fad-assoc-mech      { margin-top: 4px; font-size: .8em; }
.fad-assoc-mech-icon { opacity: .55; }
.fad-assoc-role      { font-size: .85em; color: var(--text-muted); line-height: 1.4; }
.fad-assoc-refs-cell { font-size: .82em; }

.fad-assoc-controversy { background: #fee2e2; color: #991b1b; }
.fad-assoc-emerging    { background: #fef3c7; color: #92400e; }
body.dark-mode .fad-assoc-controversy { background: #7f1d1d; color: #fecaca; }
body.dark-mode .fad-assoc-emerging    { background: #78350f; color: #fde68a; }

.fad-assoc-dir-neg { background: #fee2e2; color: #991b1b; }
body.dark-mode .fad-assoc-dir-neg { background: #7f1d1d; color: #fecaca; }

.fad-assoc-celldeath-note {
    margin: .6rem .75rem 0; padding: .5rem .65rem; border-left: 3px solid #831843;
    background: #83184310; color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.45;
    border-radius: 0 4px 4px 0;
}
.fad-assoc-celldeath-icon { opacity: .7; margin-right: .3rem; }

.fad-assoc-chip-icon    { font-size: .9em; opacity: .85; }
.fad-assoc-chip-divider { width: 1px; align-self: stretch; background: var(--border-color); margin: 0 .15rem; }
.fad-assoc-chipbar      { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .75rem .75rem 0; }

.hs-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .5rem; border-radius: 999px; font-size: var(--fs-xs); white-space: nowrap;
}

.fad-hs-group-cell {
    background: color-mix(in srgb, var(--hs-col) 8%, transparent);
    border-left: 4px solid var(--hs-col);
    padding: .45rem .6rem;
    font-weight: 600;
    color: var(--hs-col);
}
.fad-hs-group-icon  { margin-right: .45rem; opacity: .85; }
.fad-hs-group-count { font-weight: 400; opacity: .65; font-size: .85em; }
.fad-hs-nonclinical {
    font-weight: 400; font-size: .72em; background: #e2e8f0; color: #475569;
    padding: .1rem .4rem; border-radius: 3px; margin-left: .35rem;
}
body.dark-mode .fad-hs-nonclinical { background: #334155; color: #cbd5e1; }

.hs-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: color-mix(in srgb, var(--hs-col) 8%, transparent);
    color: var(--hs-col);
    padding: .12rem .45rem; border-radius: 3px; font-size: .8em; white-space: nowrap;
}
.fad-hs-pill-icon { font-size: .9em; opacity: .85; }

.fad-id-mono    { font-family: ui-monospace, Menlo, Consolas, monospace; }
.fad-id-mono-sm { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8em; }

.fad-iso-missing-chip { border-style: dashed; color: #9ca3af; background: var(--bg-card); }
body.dark-mode .fad-iso-missing-chip { color: #9ca3af; }

.fad-base-group-header {
    background: var(--bg-surface-2);
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: var(--fs-2xs);
    padding: 6px 8px;
}
body.dark-mode .fad-base-group-header { color: #cbd5e1; }

.ifr-th-left { text-align: left; }
.ifr-wrap { overflow-x: auto; margin: 1rem 0; }
.ifr-table { border-collapse: collapse; width: 100%; font-size: var(--fs-md); min-width: 820px; }
.ifr-table th, .ifr-table td { border: 1px solid var(--border-color); padding: 0.55rem 0.7rem; text-align: center; vertical-align: middle; }
.ifr-table thead th { background: var(--bg-body); font-weight: 700; }
.ifr-table th.ifr-unit { font-weight: 500; font-size: var(--fs-2xs); color: var(--text-muted); }
.ifr-table td.ifr-juris { text-align: left; white-space: nowrap; }
.ifr-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.02); }
body.dark-mode .ifr-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }
.ifr-flag { font-size: var(--fs-lg); margin-right: 0.35rem; }
.ifr-juris a { text-decoration: none; color: inherit; font-weight: 700; }
.ifr-juris a:hover { color: var(--primary-color); text-decoration: underline; }
.ifr-instr { display: block; font-size: var(--fs-2xs); color: var(--text-muted); font-weight: 400; margin-top: 0.15rem; max-width: 230px; white-space: normal; }
.ifr-val { font-weight: 600; }
.ifr-na { color: var(--text-muted); }
.ifr-note { font-size: var(--fs-2xs); color: var(--primary-color); cursor: help; text-decoration: underline dotted; }
.ifr-badge { display: inline-block; font-size: var(--fs-4xs); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #dcfce7; color: #166534; border-radius: 999px; padding: 0.05rem 0.4rem; vertical-align: middle; }
body.dark-mode .ifr-badge { background: #14532d; color: #bbf7d0; }
.ifr-caption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; }

/* ── Peroxidation Susceptibility stats (OxidationStats::statsHtml) ─────────── */
.fad-ox-statrow { display: flex; align-items: flex-start; gap: 1rem; margin: 0 0 .75rem; }
.fad-ox-statrow-hd {
    flex: 0 0 108px; padding-top: .5rem;
    font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--text-muted);
}
/* A fixed 4-column grid on BOTH rows, so every tile is the same width and the
   Stability row lines up column-for-column under the Structure row (the scores
   row has three tiles, leaving the fourth slot empty by design). */
.fad-ox-tiles {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem; min-width: 0; flex: 1 1 auto; max-width: 720px;
}
.fad-ox-tile {
    padding: .55rem .7rem; border-radius: 7px; text-align: center;
    background: var(--bg-level-2, rgba(127,127,127,.07));
    border: 1px solid var(--border-color, rgba(127,127,127,.22));
}
.fad-ox-tile--low    { background: #f2fbf5; border-color: #cdead6; }
.fad-ox-tile--medium { background: #fff9f1; border-color: #f2ddc0; }
.fad-ox-tile--high   { background: #fff5f5; border-color: #f0cdcd; }

.fad-ox-tile-num { font-size: var(--fs-lg); font-weight: 700; line-height: 1.15; }
.fad-ox-num--low    { color: #15803d; }
.fad-ox-num--medium { color: #c2410c; }
.fad-ox-num--high   { color: #b91c1c; }
.fad-ox-tile-num.is-missing { color: var(--text-muted); font-weight: 500; }

.fad-ox-tile-lbl {
    margin-top: .15rem; font-size: var(--fs-xs); color: var(--text-muted);
    border-bottom: 1px dotted currentColor; display: inline-block; cursor: help;
    line-height: 1.3;
}
.fad-ox-tile-lbl:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
/* Marker on a value that is extrapolated or estimated rather than measured. */
.fad-ox-est { font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); cursor: help; }

body.dark-mode .fad-ox-tile--low    { background: rgba(22,101,52,.16);  border-color: rgba(34,143,74,.4); }
body.dark-mode .fad-ox-tile--medium { background: rgba(124,45,18,.18);  border-color: rgba(194,65,12,.4); }
body.dark-mode .fad-ox-tile--high   { background: rgba(127,29,29,.20);  border-color: rgba(185,28,28,.45); }
body.dark-mode .fad-ox-num--low     { color: #86efac; }
body.dark-mode .fad-ox-num--medium  { color: #fdba74; }
body.dark-mode .fad-ox-num--high    { color: #fca5a5; }

/* Verdict row: badge plus the one line saying what the badge is based on. */
.fad-ox-risk-row { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1rem; }
.fad-ox-risk-basis { font-size: var(--fs-sm); color: var(--text-muted); flex: 1 1 260px; line-height: 1.45; }

@media (max-width: 720px) {
    .fad-ox-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fad-ox-statrow { flex-direction: column; gap: .35rem; }
    .fad-ox-statrow-hd { flex: none; padding-top: 0; }
}
