/* Scoped to the diagnostics page and additive measurement disclosure. */
.sh-page { height: auto; min-height: 100vh; display: block; overflow: auto; background: var(--bg); }
.sh-wrap { max-width: 1240px; margin: auto; padding: 32px 24px 64px; }
.sh-heading, .sh-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sh-page h1 { font-size: 1.6rem; color: var(--ink-strong); }
.sh-page h2 { font-size: 1.1rem; margin: 0 0 10px; }
.sh-page p, .sh-section-head span { color: var(--mid); line-height: 1.6; }
.sh-eyebrow { margin: 0 0 5px; font-size: .8rem; }
.sh-intro { margin: 12px 0 24px; max-width: 80ch; }
.sh-page a, .sh-measure-errors a { color: var(--accent-strong); text-decoration: underline; }
.sh-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.sh-filters label { display: grid; gap: 6px; font-size: .8rem; color: var(--mid); }
.sh-page button, .sh-filters input, .sh-filters select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); color: var(--ink); font: inherit; }
.sh-page button { cursor: pointer; }
.sh-page button:hover { border-color: var(--accent); }
.sh-page button:disabled { cursor: wait; opacity: .6; }
.sh-page :focus-visible, .sh-measure-errors :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sh-section { margin-top: 22px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sh-section > p { font-size: .85rem; margin: 0 0 16px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.sh-sensor { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-alt); }
.sh-sensor h3 { font: 600 .95rem var(--font-mono); margin: 0 0 12px; }
.sh-sensor p { font-size: .8rem; margin: 10px 0 0; }
.sh-state { display: inline-block; border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--r-sm); font-size: .85rem; }
.sh-reachable { color: var(--good); background: var(--good-bg); }
.sh-unreachable { color: var(--bad); background: var(--bad-bg); }
.sh-notice { padding: 12px; border-left: 3px solid var(--accent); background: var(--panel-alt); color: var(--ink); margin: 12px 0; }
.sh-table-wrap { overflow: auto; max-height: 520px; }
.sh-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .84rem; text-align: left; }
.sh-table th, .sh-table td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.sh-table th { color: var(--mid); font-weight: 500; white-space: nowrap; background: var(--panel); position: sticky; top: 0; }
.sh-table td { max-width: 360px; overflow-wrap: anywhere; }
.sh-table td:first-child, .sh-component { white-space: nowrap; }
.sh-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-message { min-width: 200px; white-space: pre-wrap; }
.sh-reference { min-width: 180px; }
.sh-reference small { display: block; margin-top: 6px; color: var(--mid); }
.sh-pagination { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sh-measure-errors { margin: 12px 0; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.sh-measure-errors summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.sh-measure-errors p { color: var(--mid); margin: 12px 0; line-height: 1.5; }
.sh-measure-errors li { margin: 12px 0 12px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-page [hidden] { display: none !important; }
@media (max-width: 640px) { .sh-wrap { padding: 20px 12px 40px; } .sh-section { padding: 14px; } .sh-filters label { flex: 1 1 140px; } .sh-filters input, .sh-filters select { width: 100%; min-width: 0; } }
