#buildcraft-content .buildcraft-dashboard {
    color: #172033 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#buildcraft-content,
#buildcraft-content #buildcraft-dashboard,
#buildcraft-content .buildcraft-dashboard,
#buildcraft-content #buildcraft-dashboard .buildcraft-dashboard,
#buildcraft-content #buildcraft-dashboard .bc-card,
#buildcraft-content #buildcraft-dashboard .bc-card h2,
#buildcraft-content #buildcraft-dashboard .bc-card h3,
#buildcraft-content #buildcraft-dashboard .bc-card li,
#buildcraft-content #buildcraft-dashboard .bc-card p,
#buildcraft-content #buildcraft-dashboard .bc-card strong,
#buildcraft-content #buildcraft-dashboard .bc-card div:not(.label),
#buildcraft-content #buildcraft-dashboard .bc-card span:not(.label),
#buildcraft-content #buildcraft-dashboard .buildcraft-empty-state,
#buildcraft-content #buildcraft-dashboard .buildcraft-empty-state strong,
#buildcraft-content #buildcraft-dashboard .buildcraft-empty-state span,
#buildcraft-content #buildcraft-dashboard .bc-card__welcome h2,
#buildcraft-content #buildcraft-dashboard .bc-card__welcome p,
#buildcraft-content .buildcraft-dashboard .bc-card__welcome h2,
#buildcraft-content .buildcraft-dashboard .bc-card__welcome p,
#buildcraft-content .buildcraft-empty-state,
#buildcraft-content .buildcraft-empty-state strong,
#buildcraft-content .buildcraft-empty-state span {
    color: #172033 !important;
    text-shadow: none !important;
}

#buildcraft-content .bc-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.12);
    color: #172033 !important;
    padding: 20px;
}

#buildcraft-content .buildcraft-dashboard .bc-card,
#buildcraft-content .buildcraft-dashboard .bc-card h2,
#buildcraft-content .buildcraft-dashboard .bc-card h3,
#buildcraft-content .buildcraft-dashboard .bc-card li,
#buildcraft-content .buildcraft-dashboard .bc-card p,
#buildcraft-content .buildcraft-dashboard .bc-card strong,
#buildcraft-content .buildcraft-dashboard .bc-card div:not(.label),
#buildcraft-content .buildcraft-dashboard .bc-card span:not(.label),
#buildcraft-content .buildcraft-dashboard .buildcraft-empty-state,
#buildcraft-content .buildcraft-dashboard .buildcraft-empty-state strong,
#buildcraft-content .buildcraft-dashboard .buildcraft-empty-state span,
#buildcraft-content .buildcraft-dashboard .bc-metric__value {
    color: #172033 !important;
}

#buildcraft-content .buildcraft-dashboard .muted,
#buildcraft-content .buildcraft-dashboard .bc-card .muted,
#buildcraft-content .buildcraft-dashboard .bc-card div.muted,
#buildcraft-content .buildcraft-dashboard .bc-card span.muted,
#buildcraft-content #buildcraft-dashboard .muted,
#buildcraft-content #buildcraft-dashboard .bc-card .muted,
#buildcraft-content #buildcraft-dashboard .bc-card div.muted,
#buildcraft-content #buildcraft-dashboard .bc-card span.muted {
    color: #42536c !important;
}

#buildcraft-content .buildcraft-dashboard .bc-card a,
#buildcraft-content #buildcraft-dashboard .bc-card a {
    color: #174ea6 !important;
    font-weight: 700;
    text-decoration: none;
}

#buildcraft-content .buildcraft-dashboard .bc-card a:hover,
#buildcraft-content #buildcraft-dashboard .bc-card a:hover {
    color: #0f3b82 !important;
    text-decoration: underline;
}

#buildcraft-content .bc-card__welcome {
    border-left: 4px solid #2f80ed;
}

#buildcraft-content .bc-card__metrics {
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

#buildcraft-content .bc-metric {
    background: #eef6ff;
    border: 1px solid rgba(37, 99, 235, 0.32);
    border-radius: 6px;
    box-shadow: inset 4px 0 0 rgba(37, 99, 235, 0.62);
    color: #172033 !important;
    padding: 12px 16px;
}

#buildcraft-content .bc-metric__value,
#buildcraft-content #buildcraft-dashboard .bc-metric .bc-metric__value {
    color: #172033 !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

#buildcraft-content .bc-metric .muted,
#buildcraft-content #buildcraft-dashboard .bc-metric .muted,
#buildcraft-content #buildcraft-dashboard .bc-card .bc-metric div.muted,
#buildcraft-content #buildcraft-dashboard .bc-card .bc-metric span.muted {
    color: #344256 !important;
    font-weight: 700;
    line-height: 1.25;
}

#buildcraft-content #dashboard .bc-card__metrics .bc-metric,
#buildcraft-content #dashboard .bc-card__metrics .bc-metric div,
#buildcraft-content #dashboard .bc-card__metrics .bc-metric span,
#buildcraft-content #dashboard .bc-card__metrics .bc-metric strong {
    color: #172033 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

#buildcraft-content #dashboard .bc-card__metrics .bc-metric .muted {
    color: #344256 !important;
}

#buildcraft-content #dashboard .buildcraft-empty-state > strong,
#buildcraft-content #dashboard .buildcraft-empty-state > span,
#buildcraft-content #dashboard .bc-card__welcome > h2,
#buildcraft-content #dashboard .bc-card__welcome > p {
    color: #172033 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

#buildcraft-content #dashboard .bc-card__welcome > p.muted {
    color: #42536c !important;
}

.ui-layout-west .leftmenu {
    color: #f6f8fb;
}

.ui-layout-west .leftmenu .filter-title {
    color: #d7e3f1 !important;
    font-weight: 700;
    line-height: 1.25;
}

.ui-layout-west .leftmenu .filter-item,
.ui-layout-west .leftmenu .filter-item div,
.ui-layout-west .leftmenu .filter-item span,
.ui-layout-west .leftmenu .filter-item strong {
    color: #f6f8fb !important;
}

.ui-layout-west .leftmenu .filter-item .muted {
    color: #d7e3f1 !important;
}

.ui-layout-west .leftmenu .filter-link {
    color: #d8f7ff !important;
    font-weight: 700;
}

.ui-layout-west .leftmenu .filter-link:hover {
    color: #e0f7ff !important;
    text-decoration: underline;
}

.ui-layout-west .leftmenu .filter-item .label {
    background: rgba(232, 238, 247, 0.96);
    border-radius: 4px;
    color: #172033 !important;
    display: inline-block;
    line-height: 1.2;
    padding: 2px 5px;
}

.bc-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.bc-toolbar .button {
    background: linear-gradient(90deg, #2f80ed, #56ccf2);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bc-toolbar .button:hover {
    box-shadow: 0 6px 18px rgba(47, 128, 237, 0.25);
    transform: translateY(-1px);
}

.buildcraft-empty-state {
    align-items: center;
    background: #ffffff;
    border: 1px dashed rgba(47, 128, 237, 0.4);
    border-radius: 10px;
    color: #172033 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 240px;
    padding: 30px;
    text-align: center;
}

.buildcraft-empty-state i {
    font-size: 48px;
    color: #2f80ed !important;
}

.buildcraft-empty-state strong {
    font-size: 18px;
}

.buildcraft-allplan-tab {
    height: calc(100vh - 104px);
    min-height: 560px;
}

.bc-allplan-workspace {
    background: #eef2f7;
    color: #172033;
    display: grid;
    grid-template-rows: 54px minmax(0, 1fr) auto;
    height: 100%;
    min-height: 560px;
}

.bc-allplan-topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(92, 111, 137, 0.22);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-width: 0;
    padding: 8px 14px;
}

.bc-allplan-title {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.bc-allplan-title strong {
    font-size: 15px;
    line-height: 1.2;
}

.bc-allplan-title span {
    color: #5f6f86;
    font-size: 12px;
    font-weight: 700;
}

.bc-allplan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bc-allplan-actions .button {
    background: #2563eb;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    min-height: 34px;
    padding: 8px 12px;
}

.bc-allplan-actions .button:disabled {
    cursor: default;
    opacity: 0.56;
}

.bc-allplan-actions .bc-button-secondary {
    background: #607086;
}

.bc-allplan-body {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    min-height: 0;
}

.bc-allplan-sidebar {
    background: #1f2a37;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 12px 10px;
}

.bc-allplan-sidebar button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #d5dde8;
    cursor: pointer;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    min-height: 34px;
    padding: 8px 10px;
    text-align: left;
}

.bc-allplan-sidebar button:hover,
.bc-allplan-sidebar button.is-active {
    background: rgba(54, 211, 153, 0.16);
    color: #ffffff;
}

.bc-allplan-stage {
    background: #050914;
    min-height: 0;
    min-width: 0;
}

.bc-allplan-viewport {
    background: #050914;
    height: 100%;
    min-height: 0;
    outline: none;
    position: relative;
}

.bc-allplan-viewport:focus-visible {
    box-shadow: inset 0 0 0 2px #36d399;
}

.bc-allplan-viewport video {
    background: #050914;
    display: block;
    height: 100%;
    min-height: 360px;
    object-fit: contain;
    width: 100%;
}

.bc-allplan-placeholder {
    color: #aab7c8;
    display: grid;
    font-weight: 700;
    inset: 0;
    letter-spacing: 0;
    line-height: 1.35;
    place-items: center;
    pointer-events: none;
    position: absolute;
    padding: 24px;
    text-align: center;
    white-space: normal;
}

.bc-allplan-workspace[data-state="connected"] .bc-allplan-placeholder,
.bc-allplan-workspace[data-state="degraded"] .bc-allplan-placeholder {
    display: none;
}

.bc-allplan-workspace[data-state="failed"] .bc-allplan-placeholder,
.bc-allplan-workspace[data-gateway-ready="0"][data-state="idle"] .bc-allplan-placeholder {
    color: #fecaca;
}

.bc-allplan-metrics {
    background: #182230;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.bc-allplan-metrics span {
    align-items: center;
    background: #ffffff;
    color: #5f6f86;
    display: flex;
    font-size: 12px;
    gap: 10px;
    justify-content: space-between;
    min-height: 34px;
    min-width: 0;
    padding: 7px 10px;
}

.bc-allplan-metrics strong {
    color: #172033;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-registry {
    background: #f5f7fb;
    color: #172033;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100vh - 132px);
    padding: 14px;
}

.bc-registry-header {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(92, 111, 137, 0.18);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 14px;
}

.bc-registry-header h2 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.bc-registry-header span {
    color: #607086;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.bc-registry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bc-registry-actions .button {
    background: #2563eb;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    min-height: 34px;
    padding: 8px 12px;
}

.bc-registry-actions .bc-button-secondary {
    background: #607086;
}

.bc-registry-actions .button:disabled {
    cursor: default;
    opacity: 0.56;
}

.bc-registry-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.bc-registry-summary div {
    background: #ffffff;
    border: 1px solid rgba(92, 111, 137, 0.18);
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
}

.bc-registry-summary span {
    color: #607086;
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.bc-registry-summary strong {
    color: #172033;
    display: block;
    font-size: 24px;
    line-height: 1.15;
    margin-top: 6px;
}

.bc-registry-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bc-registry-panel {
    background: #ffffff;
    border: 1px solid rgba(92, 111, 137, 0.18);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
}

.bc-registry-panel-head {
    align-items: center;
    border-bottom: 1px solid rgba(92, 111, 137, 0.16);
    display: flex;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
}

.bc-registry-panel-head h3 {
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
}

.bc-registry-hosts,
.bc-registry-slots {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding: 10px;
}

.bc-registry-row {
    border: 1px solid rgba(92, 111, 137, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
}

.bc-registry-row-main {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.bc-registry-row-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-registry-row-meta {
    color: #607086;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
}

.bc-registry-row-meta span {
    background: #f4f7fb;
    border: 1px solid rgba(92, 111, 137, 0.12);
    border-radius: 6px;
    line-height: 1.2;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 4px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-registry-pill {
    background: #e8eef7;
    border-radius: 999px;
    color: #344256;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
}

.bc-registry-pill.is-ok {
    background: #dff7ec;
    color: #11623b;
}

.bc-registry-pill.is-warn {
    background: #fff1d6;
    color: #8a5500;
}

.bc-registry-pill.is-bad {
    background: #ffe2e2;
    color: #9b1c1c;
}

.bc-registry-table-wrap {
    overflow: auto;
}

.bc-registry-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.bc-registry-table th,
.bc-registry-table td {
    border-bottom: 1px solid rgba(92, 111, 137, 0.14);
    font-size: 12px;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

.bc-registry-table th {
    color: #607086;
    font-weight: 700;
}

.bc-registry-empty {
    color: #607086;
    font-size: 13px;
    padding: 14px;
}

@media (max-width: 900px) {
    .buildcraft-allplan-tab,
    .bc-allplan-workspace {
        min-height: 620px;
    }

    .bc-allplan-body {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .bc-allplan-sidebar {
        padding: 8px 6px;
    }

    .bc-allplan-sidebar button {
        justify-content: center;
        padding: 8px 6px;
    }

    .bc-allplan-sidebar span {
        display: none;
    }

    .bc-registry-header,
    .bc-registry-row-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .bc-registry-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .bc-registry-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
