/* Operations drawer - shared across pages (self-created by health.js).
   Relies on the --w-* palette, defined by landing.css (index, cases) and
   analysis-shell.css (analysis). */

.health-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(30rem, 92vw);
    z-index: 60;
    background: var(--w-ink);
    border-left: 1px solid var(--w-hair-strong);
    box-shadow: -24px 0 60px rgba(4, 8, 16, 0.6);
    display: flex;
    flex-direction: column;
}
.health-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem;
    padding: 1rem 1.1rem; border-bottom: 1px solid var(--w-hair);
}
.health-head h3 { margin: 0; font-size: 1.05rem; }
.health-head-actions { display: flex; gap: 0.4rem; }
.health-note { margin: 0.2rem 0 0; font-size: 0.72rem; color: var(--w-text-mute); }
.health-body { overflow-y: auto; padding: 0.9rem 1.1rem 2rem; }
.health-section { margin-bottom: 1rem; }
.health-section h4 { margin: 0 0 0.4rem; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.health-row { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.76rem; padding: 0.15rem 0; color: var(--w-text-soft); }
.health-label { flex: 0 0 9rem; color: var(--w-text-mute); font-size: 0.7rem; }
.health-pill {
    display: inline-block; font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: 999px; padding: 0.1rem 0.5rem; border: 1px solid currentColor;
}
.health-pill.is-good { color: var(--w-good); }
.health-pill.is-warn { color: var(--w-warn); }
.health-pill.is-bad { color: var(--w-danger); }
.health-pill.is-idle { color: var(--w-text-mute); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.4rem; }
.health-cell {
    border: 1px solid var(--w-hair); border-radius: 0.6rem;
    padding: 0.4rem 0.55rem; font-size: 0.74rem;
    display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center;
}
.health-cell strong { font-size: 0.74rem; }
.health-cell small { flex-basis: 100%; color: var(--w-text-mute); font-size: 0.62rem; }

/* Drawer buttons: pages without cases.css still get the ghost style. */
.health-drawer .cases-ghost {
    border: 1px solid var(--w-hair-strong);
    background: transparent;
    color: var(--w-text-soft);
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}
.health-drawer .cases-ghost:hover { color: var(--w-eye); border-color: var(--w-eye); }
