:root {
    --background: #07090d;
    --panel: rgba(18, 23, 31, 0.86);
    --panel-solid: #12171f;
    --panel-soft: #171e29;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f5f7fb;
    --muted: #a7b0bd;
    --accent: #f44545;
    --accent-light: #ff7474;
    --success: #42d392;
    --warning: #f2bd4b;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(244, 69, 69, 0.16), transparent 35%),
        radial-gradient(circle at 90% 15%, rgba(75, 112, 255, 0.12), transparent 30%),
        var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 9, 13, 0.76);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--accent-light), var(--accent));
    box-shadow: 0 12px 30px rgba(244, 69, 69, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nav a:hover {
    color: var(--text);
}

.hero {
    padding: 112px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 64px;
}

.eyebrow {
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;
    margin: 18px 0 22px;
    font-size: clamp(48px, 8vw, 94px);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.lead {
    max-width: 750px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    font-weight: 850;
    cursor: pointer;
}

.button-primary {
    border-color: transparent;
    background: linear-gradient(145deg, var(--accent-light), var(--accent));
    box-shadow: 0 14px 34px rgba(244, 69, 69, 0.22);
}

.button-danger {
    background: rgba(244, 69, 69, 0.12);
    color: #ff9b9b;
}

.status-orb {
    min-height: 360px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 36px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.05), transparent),
        var(--panel);
    box-shadow: var(--shadow);
}

.status-orb::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,69,69,.45), rgba(244,69,69,.03) 68%, transparent 70%);
    animation: pulse 3.4s ease-in-out infinite;
}

.status-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.status-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 32px;
    background: rgba(8, 10, 14, 0.75);
    font-size: 26px;
    font-weight: 950;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    font-size: 13px;
    font-weight: 850;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 16px currentColor;
}

.section {
    padding: 52px 0 94px;
}

.section-header {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-header h2 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 55px);
    letter-spacing: -0.05em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255,255,255,.04), transparent),
        var(--panel);
    box-shadow: 0 14px 44px rgba(0,0,0,.18);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(244,69,69,.35);
}

.card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 40px;
    border-radius: 16px;
    background: rgba(244,69,69,.12);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 950;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    font-size: 13px;
    font-weight: 800;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.feature {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.feature h3 {
    margin: 0 0 8px;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 18px 0 8px;
    font-size: 36px;
}

.form-group {
    margin-bottom: 19px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 850;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: rgba(0,0,0,.24);
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(244,69,69,.7);
    box-shadow: 0 0 0 4px rgba(244,69,69,.1);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 26px 20px;
    border-right: 1px solid var(--border);
    background: #0b0e13;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    margin-top: 34px;
}

.sidebar-nav a,
.sidebar-nav button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-nav button:hover {
    background: var(--panel-soft);
    color: var(--text);
}

.admin-main {
    padding: 38px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin: 0 0 8px;
    font-size: 42px;
    letter-spacing: -0.05em;
}

.admin-header p {
    margin: 0;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 28px;
}

.stat {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.stat-value {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    font-weight: 950;
}

.panel {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(242,189,75,.12);
    color: #ffd986;
    font-size: 12px;
    font-weight: 850;
}

.badge-green {
    background: rgba(66,211,146,.12);
    color: #7defb7;
}

.badge-red {
    background: rgba(244,69,69,.12);
    color: #ff9292;
}

.alert {
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid rgba(66,211,146,.25);
    border-radius: 14px;
    background: rgba(66,211,146,.1);
    color: #8af1bd;
}

.error {
    margin: 7px 0 0;
    color: #ff8d8d;
    font-size: 13px;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.muted {
    color: var(--muted);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(.92);
        opacity: .75;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .stats,
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding-top: 76px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 26px, 1180px);
    }

    .nav {
        display: none;
    }

    .grid,
    .stats,
    .feature-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 24px 16px;
    }

    .admin-header,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* BO-MISSION-CONTROL-STYLES */

.mission-control {
    overflow: hidden;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.health-card {
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        );
}

.health-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.health-value {
    color: #ff626a;
    font-size: 1.35rem;
}

.health-main-value {
    display: block;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.health-bar {
    height: 9px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.health-bar span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #ff4f58,
            #ff858b
        );
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 999px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
}

.live-dot,
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.live-dot,
.status-online {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.status-warning {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
}

.status-offline {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.65);
}

.service-list {
    display: grid;
    gap: 12px;
}

.service-list > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
    .health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .health-grid {
        grid-template-columns: 1fr;
    }
}


/* BO-WORKER-AND-STORAGE-STYLES */

.worker-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.worker-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.worker-mini-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.worker-mini-stats span {
    color: var(--muted, #9ca3af);
    font-size: 0.8rem;
}

.worker-details {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.018);
}

.worker-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.worker-detail-grid article {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.worker-detail-grid strong {
    font-size: 1.1rem;
}

.worker-detail-grid small {
    overflow-wrap: anywhere;
    color: var(--muted, #9ca3af);
}

.gpu-model {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.storage-path {
    margin-top: 14px;
    padding: 9px 11px;
    overflow-wrap: anywhere;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted, #9ca3af);
    font-family: monospace;
    font-size: 0.76rem;
}

.storage-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.storage-role-list span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    font-size: 0.72rem;
    font-weight: 700;
}

.health-bar-warning span {
    background: linear-gradient(
        90deg,
        #f59e0b,
        #fbbf24
    );
}

.health-bar-danger span {
    background: linear-gradient(
        90deg,
        #dc2626,
        #fb4444
    );
}

.health-bar-healthy span {
    background: linear-gradient(
        90deg,
        #16a34a,
        #4ade80
    );
}

.worker-error {
    margin-top: 15px;
    color: #fca5a5;
}

@media (max-width: 1000px) {
    .worker-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .worker-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HILLBILLY BO PROFESSIONAL MISSION CONTROL
   ========================================================= */

.bo-dashboard-shell {
    --bo-panel: rgba(14, 24, 39, 0.94);
    --bo-panel-soft: rgba(18, 30, 47, 0.82);
    --bo-border: rgba(148, 163, 184, 0.15);
    --bo-text: #f8fafc;
    --bo-muted: #94a3b8;
    --bo-green: #35d060;
    --bo-red: #f04c4c;
    --bo-yellow: #f5b942;
    --bo-blue: #4395ff;
    --bo-purple: #925cff;
    --bo-orange: #ff8d31;
    --bo-cyan: #3dd9e8;
    --bo-lime: #9edc44;

    display: grid;
    gap: 18px;
    color: var(--bo-text);
}

.bo-dashboard-shell *,
.bo-dashboard-shell *::before,
.bo-dashboard-shell *::after {
    box-sizing: border-box;
}

.bo-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.bo-dashboard-header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    letter-spacing: -0.04em;
}

.bo-dashboard-header p,
.bo-panel-title p {
    margin: 6px 0 0;
    color: var(--bo-muted);
}

.bo-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bo-live-status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bo-live-status div {
    display: grid;
    gap: 2px;
}

.bo-live-status small {
    color: var(--bo-muted);
}

.bo-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bo-green);
    box-shadow: 0 0 14px rgba(53, 208, 96, 0.9);
    animation: boPulse 1.8s infinite;
}

@keyframes boPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.bo-manage-button {
    min-height: 46px;
    padding-inline: 22px;
}

.bo-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.bo-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 102px;
    padding: 17px;
    border: 1px solid var(--bo-border);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(24, 39, 59, 0.94),
            rgba(11, 20, 33, 0.95)
        );
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.18),
        inset 0 1px rgba(255, 255, 255, 0.025);
}

.bo-summary-card > div:last-child {
    display: grid;
}

.bo-summary-card span {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.bo-summary-card strong {
    margin-top: 2px;
    font-size: 1.55rem;
}

.bo-summary-card small {
    color: var(--bo-muted);
    font-size: 0.72rem;
}

.bo-summary-icon,
.bo-title-icon,
.bo-worker-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
}

.bo-summary-icon {
    width: 44px;
    height: 44px;
}

.bo-summary-icon svg,
.bo-title-icon svg,
.bo-worker-icon svg,
.bo-uptime-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.bo-icon-purple {
    color: #a67aff;
    background: rgba(146, 92, 255, 0.15);
}

.bo-icon-green {
    color: #50e16e;
    background: rgba(53, 208, 96, 0.13);
}

.bo-icon-blue {
    color: #5aa4ff;
    background: rgba(67, 149, 255, 0.13);
}

.bo-icon-yellow {
    color: #ffd23d;
    background: rgba(245, 185, 66, 0.13);
}

.bo-icon-orange {
    color: #ff993f;
    background: rgba(255, 141, 49, 0.13);
}

.bo-icon-red {
    color: #ff6464;
    background: rgba(240, 76, 76, 0.13);
}

.bo-icon-gray {
    color: #d1d5db;
    background: rgba(148, 163, 184, 0.13);
}

.bo-icon-cyan {
    color: var(--bo-cyan);
    background: rgba(61, 217, 232, 0.13);
}

.bo-icon-lime {
    color: var(--bo-lime);
    background: rgba(158, 220, 68, 0.13);
}

.bo-panel {
    overflow: hidden;
    border: 1px solid var(--bo-border);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(16, 28, 44, 0.96),
            rgba(10, 19, 31, 0.96)
        );
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.025);
}

.bo-live-health,
.bo-worker-panel,
.bo-storage-panel,
.bo-content-grid > .bo-panel {
    padding: 18px;
}

.bo-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.bo-panel-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bo-panel-title h2 {
    margin: 0;
    font-size: 1.05rem;
}

.bo-panel-title p {
    font-size: 0.78rem;
}

.bo-title-icon {
    width: 34px;
    height: 34px;
}

.bo-title-icon-green {
    color: var(--bo-green);
    background: rgba(53, 208, 96, 0.1);
}

.bo-title-icon-blue {
    color: var(--bo-blue);
    background: rgba(67, 149, 255, 0.11);
}

.bo-title-icon-purple {
    color: var(--bo-purple);
    background: rgba(146, 92, 255, 0.11);
}

.bo-last-updated {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--bo-muted);
    font-size: 0.75rem;
}

.bo-refresh-button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: 5px;
    border: 0;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(148, 163, 184, 0.08);
    cursor: pointer;
}

.bo-health-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        minmax(180px, 0.9fr);
    gap: 14px;
}

.bo-health-card {
    min-height: 177px;
    padding: 15px;
    border: 1px solid var(--bo-border);
    border-radius: 12px;
    background:
        linear-gradient(
            150deg,
            rgba(23, 38, 58, 0.82),
            rgba(12, 22, 36, 0.9)
        );
}

.bo-health-card h3 {
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.bo-metric-layout {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bo-ring {
    --ring-color: var(--bo-green);

    position: relative;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--ring-color)
            calc(var(--value) * 1%),
            rgba(148, 163, 184, 0.15) 0
        );
}

.bo-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #101d2d;
}

.bo-ring > div {
    position: relative;
    z-index: 1;
    display: grid;
    text-align: center;
}

.bo-ring strong {
    font-size: 1.05rem;
}

.bo-ring small {
    color: var(--bo-muted);
    font-size: 0.57rem;
}

.bo-ring-healthy {
    --ring-color: var(--bo-green);
}

.bo-ring-warning {
    --ring-color: var(--bo-yellow);
}

.bo-ring-danger {
    --ring-color: var(--bo-red);
}

.bo-metric-copy {
    display: grid;
    gap: 2px;
}

.bo-metric-copy span {
    color: var(--bo-muted);
    font-size: 0.72rem;
}

.bo-metric-copy strong {
    font-size: 1.12rem;
}

.bo-progress-track {
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.bo-progress-fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
}

.bo-progress-healthy {
    background: linear-gradient(90deg, #25b94b, #56df76);
}

.bo-progress-warning {
    background: linear-gradient(90deg, #e5a11f, #f7cc51);
}

.bo-progress-danger {
    background: linear-gradient(90deg, #dd3838, #ff6262);
}

.bo-progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: var(--bo-muted);
    font-size: 0.66rem;
}

.bo-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 35px;
    margin-top: 13px;
    padding-top: 4px;
    border-bottom: 1px solid rgba(53, 208, 96, 0.16);
}

.bo-sparkline span {
    flex: 1;
    min-width: 2px;
    border-radius: 999px 999px 0 0;
    background: var(--bo-green);
    opacity: 0.85;
}

.bo-uptime-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.bo-uptime-card > div:last-child {
    display: grid;
    gap: 4px;
}

.bo-uptime-card strong {
    font-size: 1.07rem;
}

.bo-uptime-card span {
    color: var(--bo-muted);
    font-size: 0.72rem;
}

.bo-uptime-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: var(--bo-green);
    background: rgba(53, 208, 96, 0.13);
}

.bo-uptime-icon svg {
    width: 29px;
    height: 29px;
}

.bo-service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 13px;
}

.bo-service-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    padding: 11px 14px;
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    background: rgba(20, 34, 52, 0.72);
}

.bo-service-card > div {
    display: grid;
}

.bo-service-card strong {
    font-size: 0.72rem;
}

.bo-service-card small {
    margin-top: 2px;
    color: var(--bo-green);
    font-size: 0.66rem;
}

.bo-service-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.bo-service-online {
    background: var(--bo-green);
    box-shadow: 0 0 9px rgba(53, 208, 96, 0.65);
}

.bo-service-offline {
    background: var(--bo-red);
    box-shadow: 0 0 9px rgba(240, 76, 76, 0.65);
}

.bo-service-warning {
    background: var(--bo-yellow);
    box-shadow: 0 0 9px rgba(245, 185, 66, 0.65);
}

.bo-lower-grid,
.bo-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 16px;
}

.bo-worker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--bo-border);
    border-left: 1px solid var(--bo-border);
}

.bo-worker-grid article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 14px;
    border-right: 1px solid var(--bo-border);
    border-bottom: 1px solid var(--bo-border);
}

.bo-worker-grid article > div:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.bo-worker-grid span {
    color: var(--bo-muted);
    font-size: 0.68rem;
}

.bo-worker-grid strong {
    font-size: 0.82rem;
}

.bo-worker-grid small {
    color: #cbd5e1;
    font-size: 0.64rem;
}

.bo-worker-icon {
    width: 34px;
    height: 34px;
}

.bo-worker-icon svg {
    width: 18px;
    height: 18px;
}

.bo-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 0.65rem;
    font-weight: 700;
}

.bo-status-online {
    color: #70ec89;
    background: rgba(53, 208, 96, 0.13);
}

.bo-status-offline {
    color: #ff8585;
    background: rgba(240, 76, 76, 0.13);
}

.bo-storage-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 20px;
    align-items: center;
}

.bo-storage-metrics {
    display: flex;
    align-items: flex-start;
    gap: 70px;
    grid-column: 1;
}

.bo-storage-metrics > div {
    display: grid;
    gap: 3px;
}

.bo-storage-metrics strong {
    font-size: 1.45rem;
}

.bo-storage-metrics > div:first-child strong {
    color: var(--bo-green);
}

.bo-storage-metrics span {
    color: var(--bo-muted);
    font-size: 0.72rem;
}

.bo-storage-track,
.bo-storage-content > .bo-progress-labels {
    grid-column: 1;
}

.bo-storage-roles {
    grid-column: 2;
    grid-row: 1 / span 3;
    padding-left: 18px;
    border-left: 1px solid var(--bo-border);
}

.bo-storage-roles > strong {
    display: block;
    margin-bottom: 11px;
    font-size: 0.78rem;
}

.bo-storage-roles > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
}

.bo-storage-roles span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    font-size: 0.7rem;
}

.bo-storage-roles i {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    color: #6beb82;
    background: rgba(53, 208, 96, 0.16);
    font-size: 0.63rem;
    font-style: normal;
}

.bo-product-list,
.bo-activity-list {
    display: grid;
    gap: 9px;
}

.bo-product-list article {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    background: rgba(20, 34, 52, 0.63);
}

.bo-product-list article > div:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bo-product-list article span {
    overflow: hidden;
    color: var(--bo-muted);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo-product-list article > a {
    color: #dbeafe;
    font-size: 0.72rem;
}

.bo-product-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    color: #ff7b84;
    background: rgba(240, 76, 76, 0.12);
    font-size: 0.65rem;
    font-weight: 800;
}

.bo-activity-list article {
    display: flex;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--bo-border);
}

.bo-activity-list article:last-child {
    border-bottom: 0;
}

.bo-activity-list article > div {
    min-width: 0;
}

.bo-activity-list p {
    margin: 4px 0;
    color: #cbd5e1;
    font-size: 0.76rem;
}

.bo-activity-list small {
    color: var(--bo-muted);
    font-size: 0.66rem;
}

.bo-activity-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--bo-purple);
    box-shadow: 0 0 9px rgba(146, 92, 255, 0.7);
}

.bo-empty-state {
    padding: 28px;
    color: var(--bo-muted);
    text-align: center;
}

.bo-truncate {
    display: block;
    overflow: hidden;
    max-width: 190px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1450px) {
    .bo-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bo-health-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bo-uptime-card {
        grid-column: span 2;
    }
}

@media (max-width: 1050px) {
    .bo-lower-grid,
    .bo-content-grid {
        grid-template-columns: 1fr;
    }

    .bo-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bo-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .bo-dashboard-header,
    .bo-panel-header,
    .bo-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-summary-grid,
    .bo-health-grid,
    .bo-service-grid,
    .bo-worker-grid {
        grid-template-columns: 1fr;
    }

    .bo-uptime-card {
        grid-column: auto;
    }

    .bo-worker-grid {
        border-left: 0;
    }

    .bo-worker-grid article {
        border-left: 1px solid var(--bo-border);
    }

    .bo-storage-content {
        grid-template-columns: 1fr;
    }

    .bo-storage-metrics,
    .bo-storage-track,
    .bo-storage-content > .bo-progress-labels,
    .bo-storage-roles {
        grid-column: auto;
        grid-row: auto;
    }

    .bo-storage-roles {
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid var(--bo-border);
        border-left: 0;
    }

    .bo-product-list article {
        grid-template-columns: auto 1fr;
    }

    .bo-product-list article > .bo-status-badge,
    .bo-product-list article > a {
        grid-column: 2;
        justify-self: start;
    }
}

/* =========================================================
   BO DASHBOARD SVG CONTAINMENT FIX
   Prevent dashboard icons from expanding across the page.
   ========================================================= */

.bo-dashboard-shell svg {
    display: block !important;
    overflow: hidden !important;
    max-width: 100% !important;
    max-height: 100% !important;
    fill: currentColor;
}

.bo-summary-icon,
.bo-title-icon,
.bo-worker-icon,
.bo-uptime-icon {
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.bo-summary-icon {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
}

.bo-summary-icon svg {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
}

.bo-title-icon {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
}

.bo-title-icon svg {
    width: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    height: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;
}

.bo-worker-icon {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
}

.bo-worker-icon svg {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
}

.bo-uptime-icon {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
}

.bo-uptime-icon svg {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
}

/* Stop any inherited site-wide SVG rules from changing layout. */
.bo-dashboard-shell article > svg,
.bo-dashboard-shell section > svg,
.bo-dashboard-shell div > svg {
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

/* ---------- Hillbilly Bo Branding ---------- */

.brand{
display:flex;
align-items:center;
gap:14px;
text-decoration:none;
padding:20px;
}

.brand-logo{
width:54px;
height:54px;
object-fit:contain;
flex-shrink:0;
filter:drop-shadow(0 0 10px rgba(255,70,70,.30));
}

.brand-text{
display:flex;
flex-direction:column;
line-height:1.2;
}

.brand-text strong{
font-size:18px;
font-weight:700;
color:#fff;
}

.brand-text small{
font-size:13px;
color:#9ca3af;
margin-top:2px;
}
