.home-dashboard {
    --home-ink: #24242a;
    --home-muted: #71717a;
    --home-line: #e4e5e8;
    --home-paper: #ffffff;
    --home-accent: #9e5d42;
    --home-green: #1d8a4c;
    --home-green-soft: #e9f6ee;
    --home-amber: #a96215;
    --home-amber-soft: #fff5e7;
    --home-red: #c53f3f;
    --home-red-soft: #fcecec;
    --home-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--home-ink);
}

.home-dashboard > * {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

.home-heading,
.home-section {
    padding: 1.5rem;
    background: var(--home-paper);
    border: 1px solid rgba(36, 36, 42, .04);
    border-radius: var(--home-radius);
    box-shadow: 0 8px 26px rgba(34, 34, 40, .06);
}

.home-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.home-heading h1 {
    margin: .125rem 0 .25rem;
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.home-heading p,
.home-heading time {
    margin: 0;
    color: var(--home-muted);
}

.home-heading time {
    flex: 0 0 auto;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}

.home-eyebrow {
    margin: 0 !important;
    color: var(--home-accent) !important;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-eyebrow-warning {
    color: var(--home-amber) !important;
}

.home-system {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #f8f7f4;
    background: #242329;
    border-radius: var(--home-radius);
    box-shadow: 0 8px 26px rgba(34, 34, 40, .06);
}

.home-system-indicator {
    width: 2.5rem;
    height: 2.5rem;
    border: .75rem solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    background: #92909a;
}

.home-system-success .home-system-indicator { background: #43b66f; }
.home-system-warning .home-system-indicator { background: #d99a17; }
.home-system-error .home-system-indicator { background: #d94b4b; }

.home-system h2 {
    margin: .0625rem 0 .125rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.home-system p:not(.home-eyebrow) {
    margin: 0;
    color: #c7c5cc;
    font-size: .875rem;
}

.home-system .home-eyebrow { color: #dda287 !important; }
.home-system a { color: #fff; font-weight: 650; text-decoration: none; }
.home-system a:hover { text-decoration: underline; }

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.125rem;
}

.home-section-heading h2 {
    margin: .1875rem 0 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.home-section-heading > span:not(.home-count-pill) {
    color: var(--home-muted);
    font-size: .8125rem;
}

.home-section-heading a,
.home-source-card a {
    color: var(--home-accent);
    font-weight: 650;
    text-decoration: none;
}

.home-section-heading a:hover,
.home-source-card a:hover { text-decoration: underline; }

.home-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.home-source-card {
    min-width: 0;
    padding: 1.125rem;
    background: #fafafa;
    border: 1px solid var(--home-line);
    border-radius: .75rem;
}

.home-source-card:first-child {
    background: #fbf6f3;
    border-color: #ecd3c5;
}

.home-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.home-source-code {
    color: var(--home-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.home-status {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 650;
}

.home-status::before {
    content: '';
    width: .375rem;
    height: .375rem;
    border-radius: 50%;
    background: currentColor;
}

.home-status-success { color: var(--home-green); background: var(--home-green-soft); }
.home-status-warning { color: var(--home-amber); background: var(--home-amber-soft); }
.home-status-error { color: var(--home-red); background: var(--home-red-soft); }
.home-status-unknown { color: #68666f; background: #efeff1; }

.home-source-card h3 {
    margin: 1rem 0 .25rem;
    font-size: 1rem;
    font-weight: 700;
}

.home-card-value {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 720;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.home-card-meta {
    min-height: 2.5rem;
    margin: .25rem 0 1rem;
    color: var(--home-muted);
    font-size: .8125rem;
}

.home-channel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--home-line);
    border-radius: .75rem;
    overflow: hidden;
}

.home-channel-row {
    display: grid;
    grid-template-columns: 2.625rem minmax(8rem, 1fr) minmax(10rem, auto) auto;
    align-items: center;
    gap: .75rem;
    min-height: 5rem;
    padding: .8125rem 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--home-line);
}

.home-channel-row:nth-child(odd) { border-right: 1px solid var(--home-line); }
.home-channel-row:nth-last-child(-n + 2) { border-bottom: 0; }
.home-channel-row:hover { color: inherit; background: #faf7f5; }

.home-channel-monogram {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #fff;
    background: #35343a;
    border-radius: .625rem;
    font-weight: 750;
}

.home-channel-name strong,
.home-channel-name small,
.home-channel-time strong,
.home-channel-time small { display: block; }

.home-channel-name small,
.home-channel-result,
.home-channel-time small {
    color: var(--home-muted);
    font-size: .75rem;
}

.home-channel-result { line-height: 1.35; }
.home-channel-time { text-align: right; font-variant-numeric: tabular-nums; }
.home-text-success { color: var(--home-green) !important; }
.home-text-warning { color: var(--home-amber) !important; }
.home-text-error { color: var(--home-red) !important; }
.home-text-unknown { color: var(--home-muted) !important; }

.home-count-pill {
    display: grid;
    place-items: center;
    min-width: 1.875rem;
    height: 1.875rem;
    padding: 0 .5rem;
    color: var(--home-amber);
    background: var(--home-amber-soft);
    border-radius: 999px;
    font-weight: 750;
}

.home-attention-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.home-attention-card {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-height: 5rem;
    padding: .875rem 1rem;
    color: inherit;
    background: #fffaf3;
    border: 1px solid #f2dcb9;
    border-radius: .75rem;
    text-decoration: none;
}

.home-attention-error { background: #fff7f7; border-color: #f1c3c3; }
.home-attention-card:hover { color: inherit; border-color: #dba55e; }
.home-attention-error:hover { border-color: #d87979; }

.home-attention-indicator {
    width: .75rem;
    height: .75rem;
    border: .1875rem solid rgba(169, 98, 21, .18);
    border-radius: 50%;
    background: var(--home-amber);
}

.home-attention-error .home-attention-indicator {
    border-color: rgba(197, 63, 63, .18);
    background: var(--home-red);
}

.home-attention-card strong,
.home-attention-card small { display: block; }
.home-attention-card small { margin-top: .1875rem; color: var(--home-muted); font-size: .75rem; line-height: 1.35; }
.home-attention-action { color: var(--home-accent); font-size: .75rem; font-weight: 650; }

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .625rem;
}

.home-quick-grid a {
    min-height: 3.125rem;
    padding: .875rem;
    color: inherit;
    background: #f7f7f8;
    border: 1px solid var(--home-line);
    border-radius: .625rem;
    font-weight: 650;
    text-decoration: none;
}

.home-quick-grid a:hover { color: var(--home-accent); border-color: #ddbaa8; }

.home-empty {
    padding: 2rem;
    color: var(--home-muted);
    text-align: center;
    background: #f8f8f9;
    border: 1px solid var(--home-line);
    border-radius: .75rem;
}

.home-empty strong,
.home-empty span { display: block; }
.home-empty strong { color: var(--home-ink); }
.home-empty-success { background: var(--home-green-soft); border-color: #cce9d8; }

.home-dashboard a:focus-visible {
    outline: 3px solid rgba(55, 118, 229, .38);
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .home-source-grid { grid-template-columns: 1fr; }
    .home-card-meta { min-height: 0; }
    .home-channel-list { grid-template-columns: 1fr; }
    .home-channel-row,
    .home-channel-row:nth-child(odd),
    .home-channel-row:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }
    .home-channel-row:last-child { border-bottom: 0; }
}

@media (max-width: 767.98px) {
    .home-dashboard { gap: .75rem; }
    .home-heading,
    .home-section { padding: 1.125rem; border-radius: .75rem; }
    .home-heading { align-items: flex-start; }
    .home-heading h1 { font-size: 1.625rem; }
    .home-heading > div > p:last-child { max-width: 34ch; font-size: .875rem; }
    .home-heading time { display: none; }
    .home-system { grid-template-columns: auto minmax(0, 1fr); padding: 1.125rem; border-radius: .75rem; }
    .home-system a { grid-column: 2; justify-self: start; margin-top: -.375rem; font-size: .8125rem; }
    .home-system-indicator { width: 2.25rem; height: 2.25rem; border-width: .6875rem; }
    .home-system h2 { font-size: 1.125rem; }
    .home-system p:not(.home-eyebrow) { font-size: .8125rem; }
    .home-section-heading { align-items: center; margin-bottom: .875rem; }
    .home-section-heading h2 { font-size: 1.25rem; }
    .home-section-heading > span:not(.home-count-pill) { display: none; }
    .home-source-grid,
    .home-attention-list { gap: .5625rem; }
    .home-source-card { padding: .9375rem; }
    .home-channel-row { grid-template-columns: 2.375rem minmax(0, 1fr) auto; gap: .5625rem; padding: .75rem; }
    .home-channel-monogram { width: 2.25rem; height: 2.25rem; }
    .home-channel-result { display: none; }
    .home-attention-list { grid-template-columns: 1fr; }
    .home-attention-card { grid-template-columns: 1rem minmax(0, 1fr); }
    .home-attention-action { display: none; }
    .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359.98px) {
    .home-heading,
    .home-section { padding-inline: .9375rem; }
    .home-system { gap: .75rem; padding-inline: .9375rem; }
    .home-channel-row { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
    .home-channel-time strong { font-size: .875rem; }
    .home-quick-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .home-dashboard * { scroll-behavior: auto !important; }
}

