/* Home only: keep reporting pages and embedded report styles independent. */
@font-face {
    font-family: "Report Home";
    src: url("../assets/fonts/Inter-normal-400-latin.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Report Home";
    src: url("../assets/fonts/Inter-normal-600-latin.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
.report-home {
    min-height: calc(100vh - 60px);
    padding: 32px 24px 48px;
    border-top: 4px solid #ffc904;
    background: #f7f8fa;
    color: #1a1f2e;
    font-family: "Report Home", system-ui, sans-serif;
    line-height: 1.5;
}
.report-home * { box-sizing: border-box; }
.report-home-inner { max-width: 1080px; margin: 0 auto; }
.report-home-brand { display: flex; gap: 14px; align-items: center; }
.report-home-brand img { width: 36px; height: 49px; object-fit: contain; }
.report-home-brand-name { display: block; font-size: 16px; font-weight: 600; }
.report-home-brand-detail { display: block; margin-top: 2px; color: #647084; font-size: 12px; }

.report-home-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 34px 0 24px; }
.report-home-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 32px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; }
.report-home-heading p { margin: 10px 0 0; font-size: 14px; color: #596579; }
.report-home-refresh { border: 1px solid #d6dae1; border-radius: 7px; padding: 10px 14px; min-height: 42px; background: white; color: #374151; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.report-home-refresh:disabled { opacity: 0.6; cursor: wait; }
.report-home-refresh:hover:not(:disabled) { border-color: #9ba4b3; background: #f8fafc; }
.report-home-status { background: white; border: 1px solid #e2e5ea; border-radius: 12px; }
.report-home-status-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid #edf0f3; }
.report-home h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.015em; }
.report-home-status-badge { font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 5px; background: #f3f4f6; color: #596579; }
.report-home-status-badge[data-state="connected"] { background: #e9f7ee; color: #19643a; }
.report-home-status-badge[data-state="timeout"], .report-home-status-badge[data-state="not_configured"] { background: #fff4d5; color: #85530c; }
.report-home-status-badge[data-state="unavailable"] { background: #fceced; color: #a52b36; }
.report-home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-home-metric { min-width: 0; padding: 24px 22px; }
.report-home-metric + .report-home-metric { border-left: 1px solid #edf0f3; }
.report-home-metric h3 { margin: 0 0 12px; font-size: 12px; font-weight: 400; color: #667085; }
.report-home-value { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: #1a1f2e; letter-spacing: -0.025em; line-height: 1.2; overflow-wrap: anywhere; }
.report-home-unit { font-size: 12px; font-weight: 400; color: #667085; letter-spacing: 0; }
.report-home-metric-note { margin: 0; font-size: 11px; line-height: 1.5; color: #667085; }
.report-home-status-footer { padding: 14px 22px; border-top: 1px solid #edf0f3; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; background: #fcfcfd; border-radius: 0 0 12px 12px; }
.report-home-status-footer p { margin: 0; font-size: 11px; color: #667085; }
.report-home-error { margin: 12px 22px; padding: 10px 12px; background: #fff4d5; color: #85530c; border-radius: 5px; font-size: 12px; }
.report-home-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.report-home-links { margin-top: 30px; }
.report-home-links > h2 { margin-bottom: 16px; }
.report-home-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-home-tool { display: flex; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid #e2e5ea; border-radius: 12px; background: white; color: #1a1f2e; text-decoration: none; transition: border-color 150ms, box-shadow 150ms; }
.report-home-tool.is-featured { background: #fffaf0; border-color: #eadcae; }
.report-home-tool-label { display: block; font-size: 10px; font-weight: 600; color: #667085; letter-spacing: 0.025em; }
.report-home-tool h3 { margin: 8px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.025em; }
.report-home-tool p { margin: 0 0 22px; font-size: 12px; line-height: 1.7; color: #596579; }
.report-home-tool-action { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12px; font-weight: 600; }
.report-home-tool:hover { color: #1a1f2e; border-color: #bda047; box-shadow: 0 4px 14px rgb(26 31 46 / 6%); }
.report-home a:focus-visible, .report-home button:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.report-home-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 26px; color: #667085; font-size: 11px; }
.report-home-footer p { margin: 0; }
.report-home-footer a { color: #485469; flex-shrink: 0; text-underline-offset: 3px; }
@media (max-width: 800px) {
    .report-home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-home-metric:nth-child(3) { border-left: 0; }
    .report-home-metric:nth-child(n+3) { border-top: 1px solid #edf0f3; }
    .report-home-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .report-home { padding: 22px 14px 30px; }
    .report-home-heading { align-items: flex-start; flex-direction: column; margin-top: 28px; }
    .report-home-metric { padding: 20px 14px; }
    .report-home-status-header, .report-home-status-footer { padding: 16px 14px; }
    .report-home-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .report-home-tool { transition: none; } }
