:root {
    --hmcc-burgundy: #800020;
    --hmcc-titanium: #b8bec6;
    --hmcc-charcoal: #17191c;
    --hmcc-bg: #f7f8fa;
    --hmcc-white: #ffffff;
    --hmcc-border: #d9dde3;
}

.hmcc-body {
    margin: 0;
    background: var(--hmcc-bg);
    color: var(--hmcc-charcoal);
    font-family: Sora, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hmcc-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hmcc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: var(--hmcc-charcoal);
    color: var(--hmcc-white);
    border-radius: 18px;
}

.hmcc-header h1,
.hmcc-section h2,
.hmcc-card h2 {
    margin: 0;
    line-height: 1;
}

.hmcc-header h1 {
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.hmcc-eyebrow {
    margin: 0 0 10px;
    color: var(--hmcc-titanium);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-status,
.hmcc-metric,
.hmcc-card {
    background: var(--hmcc-white);
    border: 1px solid var(--hmcc-border);
    border-radius: 14px;
}

.hmcc-status {
    min-width: 150px;
    padding: 16px;
    color: var(--hmcc-charcoal);
}

.hmcc-status span,
.hmcc-metric span {
    display: block;
    margin-bottom: 8px;
    color: #626a73;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hmcc-status strong,
.hmcc-metric strong {
    color: var(--hmcc-burgundy);
    font-size: 1.25rem;
}

.hmcc-main {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.hmcc-console-header {
    align-items: stretch;
}

.hmcc-console-subtitle {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--hmcc-titanium);
    font-size: 0.98rem;
    line-height: 1.6;
}

.hmcc-console-status-stack {
    display: grid;
    align-content: center;
    min-width: 190px;
    padding: 16px;
    border: 1px solid rgba(184, 190, 198, 0.38);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.hmcc-console-status-stack span,
.hmcc-console-status-stack small {
    color: var(--hmcc-titanium);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-console-status-stack strong {
    margin: 5px 0;
    color: var(--hmcc-white);
    font-size: 1.25rem;
}

.hmcc-console-panel {
    overflow: hidden;
    border: 1px solid var(--hmcc-border);
    border-radius: 14px;
    background: var(--hmcc-white);
}

.hmcc-console-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hmcc-border);
    background: linear-gradient(180deg, #ffffff, #fafbfc);
}

.hmcc-console-toolbar h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.1;
}

.hmcc-console-toolbar p {
    max-width: 780px;
    margin: 6px 0 0;
    color: #535b65;
    font-size: 0.86rem;
    line-height: 1.55;
}

.hmcc-console-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(68px, 1fr));
    gap: 8px;
    margin: 0;
}

.hmcc-console-meta div {
    min-width: 76px;
    padding: 8px 10px;
    border: 1px solid var(--hmcc-border);
    border-radius: 10px;
    background: var(--hmcc-bg);
}

.hmcc-console-meta dt {
    margin: 0;
    color: #626a73;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-console-meta dd {
    margin: 2px 0 0;
    color: var(--hmcc-burgundy);
    font-size: 1rem;
    font-weight: 900;
}

.hmcc-console-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.hmcc-spreadsheet-panel {
    border-radius: 10px;
}

.hmcc-table-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(140px, 0.8fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hmcc-border);
    background: #fbfcfd;
}

.hmcc-table-controls label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hmcc-table-controls span {
    color: #626a73;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-table-controls input,
.hmcc-table-controls select {
    min-height: 34px;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid var(--hmcc-border);
    border-radius: 8px;
    background: #ffffff;
    color: #626a73;
    font: inherit;
    font-size: 0.78rem;
}

.hmcc-pagination-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hmcc-pagination-placeholder button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--hmcc-border);
    border-radius: 8px;
    background: #ffffff;
    color: #626a73;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hmcc-pagination-placeholder span {
    padding: 0 4px;
    color: #535b65;
    font-size: 0.76rem;
    font-weight: 800;
}

.hmcc-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--hmcc-border);
}

.hmcc-v3-mission-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hmcc-v3-havs-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hmcc-widget {
    min-height: 118px;
    padding: 16px;
    background: var(--hmcc-white);
}

.hmcc-widget.is-linked {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hmcc-widget.is-linked:hover,
.hmcc-widget.is-linked:focus-visible {
    outline: 2px solid rgba(128, 0, 32, 0.26);
    outline-offset: -2px;
    background: #fbf8f9;
}

.hmcc-widget span,
.hmcc-registry-grid span {
    display: block;
    color: #626a73;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-widget strong,
.hmcc-registry-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--hmcc-burgundy);
    font-size: 1.22rem;
    line-height: 1.1;
}

.hmcc-widget p {
    margin: 8px 0 0;
    color: #535b65;
    font-size: 0.78rem;
    line-height: 1.45;
}

.hmcc-action-center-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--hmcc-border);
}

.hmcc-action-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 162px;
    padding: 15px;
    background: var(--hmcc-white);
}

.hmcc-action-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hmcc-action-group-header > span {
    color: #626a73;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-action-card-body {
    display: grid;
    gap: 4px;
    min-height: 68px;
}

.hmcc-action-card-body > span {
    color: #626a73;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-action-card-body strong {
    display: block;
    color: var(--hmcc-charcoal);
    font-size: 1.05rem;
    line-height: 1.18;
}

.hmcc-action-card-body p,
.hmcc-action-empty {
    display: block;
    margin: 0;
    color: #535b65;
    font-size: 0.76rem;
    line-height: 1.35;
}

.hmcc-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(128, 0, 32, 0.28);
    border-radius: 8px;
    background: #fff7f9;
    color: var(--hmcc-burgundy);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.hmcc-action-link:hover,
.hmcc-action-link:focus {
    border-color: var(--hmcc-burgundy);
    background: var(--hmcc-burgundy);
    color: var(--hmcc-white);
}

.hmcc-console-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    color: var(--hmcc-charcoal);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hmcc-campaign-table {
    min-width: 980px;
}

.hmcc-campaign-table td:last-child {
    max-width: 420px;
}

.hmcc-spreadsheet-table {
    min-width: 1080px;
    font-size: 0.78rem;
}

.hmcc-console-table th,
.hmcc-console-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hmcc-border);
    text-align: left;
    vertical-align: middle;
}

.hmcc-spreadsheet-table th,
.hmcc-spreadsheet-table td {
    padding: 8px 10px;
}

.hmcc-console-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--hmcc-charcoal);
    color: var(--hmcc-white);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-console-table tbody tr:nth-child(even) {
    background: #fbfcfd;
}

.hmcc-console-table tbody tr:hover {
    background: #fff7f9;
}

.hmcc-spreadsheet-table tbody th,
.hmcc-spreadsheet-table tbody td {
    white-space: nowrap;
}

.hmcc-spreadsheet-table tbody td:nth-child(1),
.hmcc-spreadsheet-table tbody td:nth-child(6),
.hmcc-spreadsheet-table tbody td:nth-child(7) {
    white-space: normal;
}

.hmcc-module-name {
    display: block;
    min-width: 170px;
    color: var(--hmcc-charcoal);
    font-weight: 900;
}

.hmcc-module-summary {
    max-width: 390px;
    color: #3f464f;
}

.hmcc-module-summary-main {
    display: block;
    overflow: hidden;
    max-width: 390px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hmcc-attention-signal {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #3f464f;
    font-size: 0.74rem;
    line-height: 1.35;
    white-space: nowrap;
}

.hmcc-attention-signal strong {
    color: var(--hmcc-charcoal);
    font-weight: 900;
}

.hmcc-priority-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid var(--hmcc-border);
    border-radius: 999px;
    background: #f4f6f8;
    color: #3f464f;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-priority-badge.is-critical {
    border-color: rgba(128, 0, 32, 0.32);
    background: #fff1f4;
    color: var(--hmcc-burgundy);
}

.hmcc-priority-badge.is-high {
    border-color: rgba(158, 82, 24, 0.3);
    background: #fff6ec;
    color: #8b4513;
}

.hmcc-priority-badge.is-medium {
    border-color: rgba(88, 107, 137, 0.32);
    background: #f2f6fb;
    color: #34445d;
}

.hmcc-priority-badge.is-low {
    border-color: rgba(48, 112, 82, 0.28);
    background: #eff8f3;
    color: #246445;
}

.hmcc-module-alerts {
    max-width: 270px;
    color: #535b65;
}

.hmcc-module-updated {
    min-width: 120px;
    color: #535b65;
    font-size: 0.78rem;
}

.hmcc-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid var(--hmcc-border);
    border-radius: 999px;
    background: var(--hmcc-bg);
    color: var(--hmcc-charcoal);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hmcc-status-badge.is-connected {
    border-color: rgba(25, 115, 70, 0.24);
    background: #edf9f2;
    color: #16613d;
}

.hmcc-status-badge.is-standby {
    border-color: rgba(184, 190, 198, 0.7);
    background: #f5f7f9;
    color: #3f464f;
}

.hmcc-status-badge.is-not-connected {
    border-color: rgba(128, 0, 32, 0.18);
    background: #fff3f6;
    color: var(--hmcc-burgundy);
}

.hmcc-status-badge.is-safe {
    border-color: rgba(23, 25, 28, 0.16);
    background: #f0f1f3;
    color: var(--hmcc-charcoal);
}

.hmcc-row-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.hmcc-table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--hmcc-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--hmcc-charcoal);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.hmcc-table-button.is-workspace-trigger {
    border-color: rgba(128, 0, 32, 0.28);
    background: #fff7f9;
    color: var(--hmcc-burgundy);
}

.hmcc-table-button.is-workspace-trigger:hover,
.hmcc-table-button.is-workspace-trigger:focus {
    border-color: var(--hmcc-burgundy);
    background: var(--hmcc-burgundy);
    color: var(--hmcc-white);
}

.hmcc-table-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.hmcc-workspace-row {
    display: none;
}

.hmcc-workspace-row:target {
    display: table-row;
}

.hmcc-workspace-row > td {
    padding: 0;
    background: #fbfcfd;
}

.hmcc-workspace-panel {
    border-bottom: 1px solid var(--hmcc-border);
}

.hmcc-workspace-content {
    padding: 14px;
    background: #ffffff;
}

.hmcc-workspace-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.hmcc-workspace-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 8px;
}

.hmcc-workspace-close {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--hmcc-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--hmcc-charcoal);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.hmcc-workspace-close:hover,
.hmcc-workspace-close:focus {
    border-color: var(--hmcc-burgundy);
    color: var(--hmcc-burgundy);
}

.hmcc-workspace-header h3 {
    margin: 0;
    color: var(--hmcc-charcoal);
    font-size: 1rem;
    line-height: 1.15;
}

.hmcc-workspace-header p,
.hmcc-workspace-empty {
    margin: 5px 0 0;
    color: #535b65;
    font-size: 0.78rem;
    line-height: 1.5;
}

.hmcc-workspace-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--hmcc-border);
    border-radius: 10px;
}

.hmcc-workspace-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.hmcc-workspace-table th,
.hmcc-workspace-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--hmcc-border);
    text-align: left;
    vertical-align: middle;
}

.hmcc-workspace-table thead th {
    background: #f0f1f3;
    color: #3f464f;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-table-controls input:disabled,
.hmcc-table-controls select:disabled,
.hmcc-pagination-placeholder button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.hmcc-no-action {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 800;
}

.hmcc-section {
    display: grid;
    gap: 18px;
}

.hmcc-section-header p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #535b65;
}

.hmcc-grid {
    display: grid;
    gap: 16px;
}

.hmcc-grid-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.hmcc-metric,
.hmcc-card {
    padding: 20px;
}

.hmcc-card h2 {
    margin-bottom: 18px;
    color: var(--hmcc-charcoal);
    font-size: 1.35rem;
}

.hmcc-card p {
    margin: 0 0 14px;
    color: #535b65;
    font-size: 0.88rem;
    line-height: 1.55;
}

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

.hmcc-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.hmcc-mini-table th,
.hmcc-mini-table td {
    padding: 8px 0;
    border-top: 1px solid var(--hmcc-border);
    text-align: left;
    vertical-align: top;
}

.hmcc-readonly-list,
.hmcc-alert-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hmcc-readonly-list li {
    padding: 8px 10px;
    border: 1px solid var(--hmcc-border);
    border-radius: 9px;
    background: var(--hmcc-bg);
    color: #3f464f;
    font-size: 0.78rem;
    font-weight: 700;
}

.hmcc-alert-list li {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--hmcc-border);
    border-radius: 10px;
    background: #fbfcfd;
}

.hmcc-alert-list span:not(.hmcc-status-badge) {
    color: var(--hmcc-charcoal);
    font-size: 0.75rem;
    font-weight: 900;
}

.hmcc-alert-list p {
    margin: 0;
    font-size: 0.8rem;
}

.hmcc-registry-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: var(--hmcc-border);
}

.hmcc-registry-grid div {
    padding: 16px;
    background: var(--hmcc-white);
}

.hmcc-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--hmcc-border);
}

.hmcc-row:first-of-type {
    border-top: 0;
}

.hmcc-row span {
    color: #535b65;
}

.hmcc-row strong {
    text-align: right;
}

.hmcc-access {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.hmcc-button {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--hmcc-burgundy);
    color: var(--hmcc-white);
    font-weight: 800;
    text-decoration: none;
}

.hmcc-public-admin-link {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(184, 190, 198, 0.72);
    border-radius: 999px;
    background: rgba(23, 25, 28, 0.92);
    color: #ffffff;
    font-family: Sora, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(23, 25, 28, 0.18);
}

.hmcc-public-admin-link:hover,
.hmcc-public-admin-link:focus {
    background: var(--hmcc-burgundy);
    color: #ffffff;
}

.hmcc-login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(184, 190, 198, 0.2)),
        var(--hmcc-bg);
}

.hmcc-login-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid var(--hmcc-border);
    border-radius: 18px;
    background: var(--hmcc-white);
    box-shadow: 0 24px 70px rgba(23, 25, 28, 0.16);
}

.hmcc-login-card h1 {
    margin: 0;
    color: var(--hmcc-charcoal);
    font-size: clamp(2.2rem, 8vw, 4rem);
    line-height: 0.95;
}

.hmcc-login-copy {
    margin: 14px 0 22px;
    color: #535b65;
}

.hmcc-login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--hmcc-burgundy);
    background: #fff5f7;
    color: var(--hmcc-charcoal);
    font-weight: 700;
}

.hmcc-login-form {
    display: grid;
    gap: 12px;
}

.hmcc-login-form label {
    color: var(--hmcc-charcoal);
    font-weight: 800;
}

.hmcc-login-form input[type="text"],
.hmcc-login-form input[type="password"] {
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--hmcc-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--hmcc-charcoal);
    font: inherit;
}

.hmcc-login-button {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    border: 0;
    cursor: pointer;
}

.hmcc-login-meta {
    margin: 18px 0 0;
    text-align: center;
}

.hmcc-login-meta a {
    color: var(--hmcc-burgundy);
    font-weight: 800;
}

@media (max-width: 860px) {
    .hmcc-header,
    .hmcc-grid-two {
        grid-template-columns: 1fr;
    }

    .hmcc-header {
        display: grid;
        align-items: start;
    }

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

    .hmcc-widget-grid,
    .hmcc-v3-mission-grid,
    .hmcc-v3-havs-grid,
    .hmcc-action-center-grid,
    .hmcc-detail-grid,
    .hmcc-registry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hmcc-console-toolbar {
        display: grid;
        align-items: start;
    }

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

    .hmcc-pagination-placeholder {
        justify-content: start;
    }

    .hmcc-console-meta {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .hmcc-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .hmcc-header,
    .hmcc-card,
    .hmcc-metric {
        border-radius: 12px;
        padding: 16px;
    }

    .hmcc-grid-metrics {
        grid-template-columns: 1fr;
    }

    .hmcc-widget-grid,
    .hmcc-v3-mission-grid,
    .hmcc-v3-havs-grid,
    .hmcc-action-center-grid,
    .hmcc-detail-grid,
    .hmcc-registry-grid {
        grid-template-columns: 1fr;
    }

    .hmcc-row {
        display: grid;
    }

    .hmcc-console-table-wrap {
        margin-inline: -1px;
    }

    .hmcc-table-controls {
        grid-template-columns: 1fr;
    }

    .hmcc-row strong {
        text-align: left;
    }

    .hmcc-public-admin-link {
        top: auto;
        right: 10px;
        bottom: 10px;
    }
}

/* HMCC V3 executive cockpit layer. */
.hmcc-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(128, 0, 32, 0.28), transparent 34%),
        linear-gradient(135deg, #090b0f 0%, #101318 46%, #17191c 100%);
    color: #f7f8fa;
}

.hmcc-shell {
    width: min(1540px, calc(100% - 28px));
    padding: 18px 0 28px;
}

.hmcc-header {
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(128, 0, 32, 0.38), rgba(14, 16, 21, 0.94)),
        #101318;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.hmcc-header h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: 0;
}

.hmcc-main.hmcc-dashboard-mode {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(300px, 0.7fr);
    gap: 14px;
    margin-top: 14px;
}

.hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard {
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    align-items: start;
    gap: 14px;
}

.hmcc-founder-sidebar {
    position: sticky;
    top: 14px;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(184, 190, 198, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(128, 0, 32, 0.22), rgba(255, 255, 255, 0.025)),
        rgba(8, 11, 15, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 52px rgba(0, 0, 0, 0.28);
}

.hmcc-founder-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 190, 198, 0.12);
}

.hmcc-founder-brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 79, 103, 0.45);
    border-radius: 9px;
    background: rgba(128, 0, 32, 0.62);
    color: #ffffff;
    font-weight: 900;
}

.hmcc-founder-brand strong,
.hmcc-founder-sidebar-card strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.2;
}

.hmcc-founder-brand small,
.hmcc-founder-sidebar-card small {
    color: #b8bec6;
    font-size: 0.72rem;
    font-weight: 700;
}

.hmcc-founder-nav {
    display: grid;
    gap: 4px;
}

.hmcc-founder-nav a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d9dee6;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.hmcc-founder-nav a:hover,
.hmcc-founder-nav a:focus,
.hmcc-founder-nav a.is-active {
    border-color: rgba(255, 79, 103, 0.36);
    background: rgba(128, 0, 32, 0.42);
    color: #ffffff;
}

.hmcc-founder-sidebar-card {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(184, 190, 198, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.hmcc-founder-sidebar-card span {
    color: #b8bec6;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hmcc-founder-main-column {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hmcc-dashboard-span-2 {
    grid-column: span 2;
}

.hmcc-founder-main-column .hmcc-dashboard-span-2 {
    grid-column: auto;
}

.hmcc-dashboard-side {
    display: grid;
    gap: 10px;
    align-content: start;
}

.hmcc-founder-dashboard .hmcc-dashboard-side {
    position: sticky;
    top: 14px;
}

.hmcc-console-panel,
.hmcc-side-panel,
.hmcc-module-card,
.hmcc-widget {
    border-color: rgba(184, 190, 198, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(13, 15, 19, 0.88);
    color: #f7f8fa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 42px rgba(0, 0, 0, 0.22);
}

.hmcc-console-panel {
    border-radius: 10px;
}

.hmcc-console-toolbar {
    min-height: auto;
    padding: 14px 16px;
    border-color: rgba(184, 190, 198, 0.14);
    background: rgba(255, 255, 255, 0.025);
}

.hmcc-console-toolbar h2,
.hmcc-side-panel h2,
.hmcc-module-card span {
    color: #ffffff;
}

.hmcc-console-toolbar p,
.hmcc-side-panel p,
.hmcc-module-card p,
.hmcc-widget p,
.hmcc-console-subtitle {
    color: #b8bec6;
}

.hmcc-console-meta div {
    border-color: rgba(184, 190, 198, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.hmcc-console-meta dt {
    color: #b8bec6;
}

.hmcc-console-meta dd,
.hmcc-widget strong,
.hmcc-side-panel strong {
    color: #ff4f67;
}

.hmcc-widget-grid,
.hmcc-v3-mission-grid,
.hmcc-v3-havs-grid,
.hmcc-compact-card-grid,
.hmcc-module-card-grid {
    display: grid;
    gap: 10px;
}

.hmcc-v3-mission-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
}

.hmcc-v3-havs-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 12px;
}

.hmcc-compact-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
}

.hmcc-module-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 12px;
}

.hmcc-widget,
.hmcc-module-card {
    min-height: 104px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 8px;
    text-decoration: none;
}

.hmcc-widget span,
.hmcc-module-card strong {
    color: #b8bec6;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-widget strong {
    display: block;
    margin: 8px 0 4px;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1;
}

.hmcc-engine-side-panel strong {
    font-size: 1.1rem;
    line-height: 1.15;
}

.hmcc-widget.is-linked:hover,
.hmcc-widget.is-linked:focus,
.hmcc-module-card:hover,
.hmcc-module-card:focus,
.hmcc-mode-link:hover,
.hmcc-mode-link:focus,
.hmcc-back-link:hover,
.hmcc-back-link:focus {
    border-color: rgba(255, 79, 103, 0.72);
    background:
        linear-gradient(180deg, rgba(128, 0, 32, 0.24), rgba(255, 255, 255, 0.035)),
        rgba(20, 23, 29, 0.96);
    color: #ffffff;
}

.hmcc-action-center-grid {
    padding: 12px;
}

.hmcc-action-card {
    border-color: rgba(184, 190, 198, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.hmcc-action-card-body strong,
.hmcc-action-card-body p,
.hmcc-action-group-header span {
    color: #f7f8fa;
}

.hmcc-action-link,
.hmcc-mode-link,
.hmcc-back-link,
.hmcc-table-button,
.hmcc-side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(184, 190, 198, 0.2);
    border-radius: 7px;
    background: rgba(128, 0, 32, 0.42);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.hmcc-table-button.is-disabled,
.hmcc-action-link.is-disabled,
.hmcc-mode-link.is-disabled,
.hmcc-side-link.is-disabled {
    display: inline-grid;
    gap: 3px;
    opacity: 0.7;
    cursor: not-allowed;
}

.hmcc-table-button small,
.hmcc-action-link small,
.hmcc-mode-link small,
.hmcc-side-link small,
.hmcc-module-card small,
.hmcc-widget small {
    display: block;
    color: #b8bec6;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.hmcc-side-panel {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 10px;
}

.hmcc-side-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hmcc-side-heading h2 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.15;
}

.hmcc-side-heading a {
    color: #ff4f67;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.hmcc-side-panel strong {
    font-size: 1.45rem;
    line-height: 1;
}

.hmcc-side-panel p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.hmcc-workflow-bar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(128, 0, 32, 0.28), rgba(255, 255, 255, 0.035));
}

.hmcc-workflow-bar span {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-right: 1px solid rgba(184, 190, 198, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hmcc-workflow-bar span:last-child {
    border-right: 0;
}

.hmcc-workflow-bar small {
    color: #b8bec6;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: none;
}

.hmcc-mode-screen {
    max-width: 1280px;
    margin-inline: auto;
    display: grid;
    gap: 14px;
}

.hmcc-back-link {
    width: fit-content;
}

.hmcc-navigation-context {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(128, 0, 32, 0.22), rgba(255, 255, 255, 0.025)),
        rgba(13, 15, 19, 0.88);
}

.hmcc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #b8bec6;
    font-size: 0.72rem;
    font-weight: 800;
}

.hmcc-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hmcc-breadcrumbs li:not(:last-child)::after {
    content: ">";
    color: rgba(184, 190, 198, 0.56);
}

.hmcc-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.hmcc-page-context-title {
    display: grid;
    gap: 4px;
}

.hmcc-page-context-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.12;
}

.hmcc-page-context-title span {
    color: #b8bec6;
    font-size: 0.75rem;
    font-weight: 800;
}

.hmcc-mode-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.hmcc-mode-metric,
.hmcc-mode-section {
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.hmcc-mode-metric {
    padding: 14px;
}

.hmcc-mode-metric span {
    display: block;
    color: #b8bec6;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-mode-metric strong {
    display: block;
    margin-top: 8px;
    color: #ff4f67;
    font-size: 1.35rem;
    line-height: 1.05;
}

.hmcc-mode-metric p,
.hmcc-mode-section p {
    margin: 6px 0 0;
    color: #b8bec6;
    font-size: 0.8rem;
    line-height: 1.45;
}

.hmcc-mode-section {
    display: grid;
    gap: 12px;
    margin: 12px;
    padding: 14px;
}

.hmcc-mode-section h3,
.hmcc-console-table-wrap h3 {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.hmcc-mode-section-body {
    min-width: 0;
}

.hmcc-quick-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hmcc-system-notice,
.hmcc-system-access-callout,
.hmcc-system-global-form,
.hmcc-system-mode-grid,
.hmcc-system-state-grid {
    margin: 12px;
}

.hmcc-system-notice {
    padding: 12px 14px;
    border: 1px solid rgba(46, 204, 113, 0.42);
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.12);
    color: #ffffff;
    font-weight: 800;
}

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

.hmcc-system-mode-card,
.hmcc-system-state-card,
.hmcc-system-access-callout {
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.hmcc-system-mode-card {
    padding: 14px;
}

.hmcc-system-mode-card.is-active {
    border-color: rgba(255, 79, 103, 0.72);
    background: linear-gradient(180deg, rgba(128, 0, 32, 0.32), rgba(255, 255, 255, 0.04));
}

.hmcc-system-mode-card span,
.hmcc-system-state-card header span,
.hmcc-system-access-callout strong {
    display: block;
    color: #ffffff;
    font-weight: 900;
}

.hmcc-system-mode-card p,
.hmcc-system-access-callout p {
    margin: 8px 0 0;
    color: #b8bec6;
    font-size: 0.82rem;
    line-height: 1.5;
}

.hmcc-system-global-form,
.hmcc-system-control-form {
    display: grid;
    gap: 10px;
}

.hmcc-system-global-form {
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.4fr) auto;
    align-items: end;
    padding: 12px;
    border-top: 1px solid rgba(184, 190, 198, 0.14);
}

.hmcc-system-global-form label,
.hmcc-system-control-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.hmcc-system-global-form label > span,
.hmcc-system-control-form label > span,
.hmcc-system-checkbox span {
    color: #b8bec6;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-system-global-form input,
.hmcc-system-global-form select,
.hmcc-system-control-form input[type="text"],
.hmcc-system-control-form select {
    min-height: 36px;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid rgba(184, 190, 198, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font: inherit;
    font-size: 0.78rem;
}

.hmcc-system-global-form button,
.hmcc-system-control-form button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 79, 103, 0.7);
    border-radius: 7px;
    background: rgba(128, 0, 32, 0.68);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hmcc-system-state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hmcc-engine-stage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px;
}

.hmcc-engine-stage-card {
    padding: 12px;
    border: 1px solid rgba(184, 190, 198, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.hmcc-engine-stage-card span {
    display: block;
    color: #b8bec6;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-engine-stage-card strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-size: 0.86rem;
    line-height: 1.2;
}

.hmcc-engine-stage-card p {
    margin: 6px 0 0;
    color: #b8bec6;
    font-size: 0.74rem;
    line-height: 1.45;
}

.hmcc-certification-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px;
}

.hmcc-system-state-card {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.hmcc-system-state-card header,
.hmcc-system-access-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hmcc-system-state-card header strong {
    display: block;
    margin-top: 4px;
    color: #ff4f67;
    font-size: 1.1rem;
}

.hmcc-system-state-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.hmcc-system-state-card dl div {
    padding: 8px;
    border: 1px solid rgba(184, 190, 198, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
}

.hmcc-system-state-card dt {
    margin: 0;
    color: #b8bec6;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hmcc-system-state-card dd {
    margin: 3px 0 0;
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1.35;
}

.hmcc-system-checkbox {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.hmcc-system-checkbox input {
    width: auto;
}

.hmcc-system-access-callout {
    padding: 12px;
}

.hmcc-workspace-table,
.hmcc-console-table {
    background: rgba(10, 12, 16, 0.9);
    color: #f7f8fa;
}

.hmcc-workspace-table th,
.hmcc-workspace-table td,
.hmcc-console-table th,
.hmcc-console-table td {
    border-color: rgba(184, 190, 198, 0.14);
}

/* Founder Portal visual alignment: dark cards, restrained color, compact cockpit density. */
.hmcc-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(71, 17, 27, 0.18), transparent 30%),
        linear-gradient(135deg, #07090c 0%, #0c1015 48%, #11161d 100%);
}

.hmcc-shell {
    width: min(1580px, calc(100% - 24px));
    padding: 12px 0 18px;
}

.hmcc-header {
    align-items: center;
    padding: 16px 18px;
    border-color: rgba(184, 190, 198, 0.14);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(8, 11, 15, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 54px rgba(0, 0, 0, 0.28);
}

.hmcc-header h1 {
    font-size: clamp(1.45rem, 2.1vw, 2.25rem);
}

.hmcc-eyebrow {
    margin-bottom: 6px;
    color: #8f98a3;
    font-size: 0.68rem;
}

.hmcc-console-subtitle {
    max-width: 660px;
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.hmcc-console-status-stack {
    min-width: 170px;
    padding: 12px;
    border-color: rgba(184, 190, 198, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.hmcc-console-status-stack strong {
    color: #2ecc71;
    font-size: 1rem;
}

.hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard {
    grid-template-columns: 226px minmax(0, 1fr) 326px;
    gap: 12px;
    margin-top: 12px;
}

.hmcc-founder-sidebar,
.hmcc-console-panel,
.hmcc-side-panel,
.hmcc-module-card,
.hmcc-widget,
.hmcc-action-card,
.hmcc-engine-stage-card,
.hmcc-system-state-card dl div {
    border-color: rgba(139, 149, 161, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(12, 16, 21, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.18);
}

.hmcc-founder-sidebar {
    padding: 12px;
}

.hmcc-founder-brand {
    padding-bottom: 10px;
}

.hmcc-founder-brand-mark {
    border-color: rgba(174, 45, 63, 0.68);
    background: rgba(128, 0, 32, 0.34);
}

.hmcc-founder-nav {
    gap: 3px;
}

.hmcc-founder-nav a {
    min-height: 31px;
    color: #cdd3dc;
    font-size: 0.74rem;
}

.hmcc-founder-nav a:hover,
.hmcc-founder-nav a:focus,
.hmcc-founder-nav a.is-active {
    border-color: rgba(174, 45, 63, 0.42);
    background: rgba(128, 0, 32, 0.22);
}

.hmcc-founder-sidebar-card {
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.hmcc-founder-main-column,
.hmcc-dashboard-side {
    gap: 10px;
}

.hmcc-console-panel {
    border-radius: 10px;
}

.hmcc-console-toolbar {
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.018);
}

.hmcc-console-toolbar h2,
.hmcc-side-heading h2 {
    font-size: 0.96rem;
    line-height: 1.15;
}

.hmcc-console-toolbar p {
    max-width: 700px;
    margin-top: 4px;
    color: #9fa8b4;
    font-size: 0.76rem;
    line-height: 1.38;
}

.hmcc-console-meta {
    gap: 6px;
}

.hmcc-console-meta div {
    min-width: 64px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.026);
}

.hmcc-console-meta dd {
    color: #dfe4eb;
}

.hmcc-widget-grid,
.hmcc-v3-mission-grid,
.hmcc-v3-havs-grid,
.hmcc-compact-card-grid,
.hmcc-module-card-grid {
    gap: 8px;
}

.hmcc-v3-mission-grid,
.hmcc-v3-havs-grid,
.hmcc-compact-card-grid,
.hmcc-module-card-grid,
.hmcc-action-center-grid {
    padding: 10px;
}

.hmcc-widget,
.hmcc-module-card {
    min-height: 92px;
    padding: 11px;
    border-radius: 9px;
}

.hmcc-widget span,
.hmcc-module-card strong,
.hmcc-action-card-body > span,
.hmcc-side-panel span {
    color: #8f98a3;
    font-size: 0.62rem;
    letter-spacing: 0.075em;
}

.hmcc-widget strong {
    margin: 6px 0 4px;
    color: #e9edf3;
    font-size: clamp(1.08rem, 1.45vw, 1.52rem);
}

.hmcc-widget.is-connected strong,
.hmcc-widget.is-safe strong {
    color: #2ecc71;
}

.hmcc-widget.is-standby strong {
    color: #f4b942;
}

.hmcc-widget.is-not-connected strong {
    color: #ff4f67;
}

.hmcc-widget p,
.hmcc-module-card p,
.hmcc-side-panel p,
.hmcc-action-card-body p {
    color: #9fa8b4;
    font-size: 0.72rem;
    line-height: 1.35;
}

.hmcc-widget.is-linked:hover,
.hmcc-widget.is-linked:focus,
.hmcc-module-card:hover,
.hmcc-module-card:focus,
.hmcc-mode-link:hover,
.hmcc-mode-link:focus,
.hmcc-back-link:hover,
.hmcc-back-link:focus {
    border-color: rgba(174, 45, 63, 0.58);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(15, 20, 26, 0.98);
}

.hmcc-action-card {
    padding: 10px;
    background: rgba(255, 255, 255, 0.024);
}

.hmcc-action-card-body {
    gap: 5px;
}

.hmcc-action-card-body strong {
    color: #f2f5f8;
    font-size: 0.92rem;
}

.hmcc-side-panel {
    gap: 6px;
    padding: 11px;
}

.hmcc-side-panel strong {
    color: #e9edf3;
    font-size: 1.2rem;
}

.hmcc-engine-side-panel strong {
    color: #f4b942;
    font-size: 0.98rem;
}

.hmcc-action-link,
.hmcc-mode-link,
.hmcc-back-link,
.hmcc-table-button,
.hmcc-side-link {
    min-height: 29px;
    border-color: rgba(174, 45, 63, 0.44);
    background: rgba(128, 0, 32, 0.28);
    font-size: 0.68rem;
}

.hmcc-workflow-bar {
    gap: 6px;
    padding: 8px;
    border-color: rgba(139, 149, 161, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(12, 16, 21, 0.94);
}

.hmcc-workflow-bar span {
    padding: 7px 9px;
    font-size: 0.72rem;
}

@media (max-width: 1180px) {
    .hmcc-main.hmcc-dashboard-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .hmcc-founder-dashboard .hmcc-dashboard-side {
        grid-column: 1 / -1;
    }

    .hmcc-dashboard-side {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hmcc-v3-mission-grid,
    .hmcc-v3-havs-grid,
    .hmcc-compact-card-grid,
    .hmcc-module-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hmcc-main.hmcc-dashboard-mode,
    .hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard,
    .hmcc-dashboard-side,
    .hmcc-v3-mission-grid,
    .hmcc-v3-havs-grid,
    .hmcc-compact-card-grid,
    .hmcc-module-card-grid,
    .hmcc-workflow-bar,
    .hmcc-system-mode-grid,
    .hmcc-system-state-grid,
    .hmcc-system-global-form,
    .hmcc-system-state-card dl,
    .hmcc-mode-card-grid,
    .hmcc-engine-stage-grid {
        grid-template-columns: 1fr;
    }

    .hmcc-dashboard-span-2,
    .hmcc-dashboard-side {
        grid-column: auto;
    }

    .hmcc-founder-sidebar,
    .hmcc-founder-dashboard .hmcc-dashboard-side {
        position: static;
    }

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

/* Founder-grade product polish: calmer hierarchy, sharper tables, consistent actions. */
.hmcc-app .hmcc-header {
    min-height: 68px !important;
}

.hmcc-app .hmcc-header h1 {
    font-size: clamp(1.28rem, 1.65vw, 1.82rem) !important;
}

.hmcc-app .hmcc-console-subtitle {
    max-width: 610px !important;
    font-size: 0.74rem !important;
}

.hmcc-app .hmcc-founder-brand strong {
    font-size: 0.86rem !important;
}

.hmcc-app .hmcc-founder-nav a {
    min-height: 29px !important;
}

.hmcc-app .hmcc-console-toolbar {
    align-items: center !important;
    padding: 9px 11px !important;
}

.hmcc-app .hmcc-console-toolbar h2 {
    font-size: 0.88rem !important;
}

.hmcc-app .hmcc-console-toolbar p {
    max-width: 560px !important;
    font-size: 0.68rem !important;
}

.hmcc-app .hmcc-widget,
.hmcc-app .hmcc-module-card,
.hmcc-app .hmcc-action-card {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 9px !important;
}

.hmcc-app .hmcc-widget strong {
    font-size: clamp(0.98rem, 1.18vw, 1.24rem) !important;
}

.hmcc-app .hmcc-module-card span {
    overflow: hidden !important;
    color: #eef2f6 !important;
    font-size: 0.74rem !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.hmcc-app .hmcc-module-card strong {
    color: #8f98a3 !important;
    font-size: 0.58rem !important;
}

.hmcc-app .hmcc-action-card-body strong {
    font-size: 0.82rem !important;
}

.hmcc-app .hmcc-v3-mission-grid,
.hmcc-app .hmcc-v3-havs-grid,
.hmcc-app .hmcc-compact-card-grid,
.hmcc-app .hmcc-module-card-grid,
.hmcc-app .hmcc-action-center-grid {
    gap: 6px !important;
    padding: 7px !important;
}

.hmcc-app .hmcc-side-panel {
    min-height: 76px !important;
    padding: 9px !important;
}

.hmcc-app .hmcc-side-panel strong {
    font-size: 0.98rem !important;
}

.hmcc-app .hmcc-side-heading {
    align-items: center !important;
}

.hmcc-app .hmcc-side-heading h2 {
    font-size: 0.78rem !important;
}

.hmcc-app .hmcc-action-link,
.hmcc-app .hmcc-mode-link,
.hmcc-app .hmcc-back-link,
.hmcc-app .hmcc-table-button,
.hmcc-app .hmcc-side-link {
    min-height: 27px !important;
    padding: 0 9px !important;
    border-radius: 6px !important;
    font-size: 0.62rem !important;
}

.hmcc-app .hmcc-mode-section {
    gap: 7px !important;
    margin: 7px !important;
    padding: 10px !important;
}

.hmcc-app .hmcc-mode-section h3,
.hmcc-app .hmcc-console-table-wrap h3,
.hmcc-app .hmcc-workspace-header h2,
.hmcc-app .hmcc-workspace-header h3 {
    font-size: 0.84rem !important;
}

.hmcc-app .hmcc-mode-section p,
.hmcc-app .hmcc-workspace-header p,
.hmcc-app .hmcc-workspace-empty,
.hmcc-app .hmcc-readonly-list li {
    font-size: 0.66rem !important;
}

.hmcc-app .hmcc-workspace-header {
    padding: 9px 10px !important;
}

.hmcc-app .hmcc-mode-metric {
    min-height: 76px !important;
}

.hmcc-app .hmcc-mode-metric strong {
    font-size: 1rem !important;
}

.hmcc-app .hmcc-workspace-table,
.hmcc-app .hmcc-console-table {
    border-spacing: 0 !important;
    font-size: 0.7rem !important;
}

.hmcc-app .hmcc-workspace-table th,
.hmcc-app .hmcc-workspace-table td,
.hmcc-app .hmcc-console-table th,
.hmcc-app .hmcc-console-table td {
    padding: 7px 8px !important;
}

.hmcc-app .hmcc-workspace-table tbody tr,
.hmcc-app .hmcc-console-table tbody tr {
    transition: background-color 140ms ease, border-color 140ms ease;
}

.hmcc-app .hmcc-row-actions {
    gap: 5px !important;
}

.hmcc-app .hmcc-system-global-form,
.hmcc-app .hmcc-system-control-form {
    gap: 8px !important;
}

.hmcc-app .hmcc-system-state-card {
    gap: 9px !important;
    padding: 10px !important;
}

.hmcc-app .hmcc-system-state-card header strong {
    color: #f4f6f8 !important;
    font-size: 0.96rem !important;
}

.hmcc-app .hmcc-engine-stage-card {
    padding: 10px !important;
}

.hmcc-app .hmcc-workflow-bar {
    padding: 6px !important;
}

.hmcc-app .hmcc-workflow-bar span {
    padding: 6px 7px !important;
}

@media (max-width: 1180px) {
    .hmcc-app .hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard {
        grid-template-columns: 190px minmax(0, 1fr) !important;
    }
}

@media (max-width: 760px) {
    .hmcc-app .hmcc-header {
        gap: 10px !important;
        min-height: 0 !important;
    }

    .hmcc-app .hmcc-founder-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hmcc-app .hmcc-founder-nav a {
        white-space: normal !important;
    }

    .hmcc-app .hmcc-widget,
    .hmcc-app .hmcc-module-card,
    .hmcc-app .hmcc-action-card {
        height: auto !important;
        min-height: 76px !important;
        max-height: none !important;
    }
}

/* Final Founder Operating System UI pass: apply the cockpit language to every center workspace. */
.hmcc-app .hmcc-navigation-context,
.hmcc-app .hmcc-mode-section,
.hmcc-app .hmcc-console-table-wrap,
.hmcc-app .hmcc-workspace-table-wrap,
.hmcc-app .hmcc-workspace-content,
.hmcc-app .hmcc-system-mode-card,
.hmcc-app .hmcc-system-state-card,
.hmcc-app .hmcc-system-access-callout,
.hmcc-app .hmcc-engine-stage-card,
.hmcc-app .hmcc-readonly-list,
.hmcc-app .hmcc-readonly-list li {
    border-color: rgba(139, 149, 161, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
        rgba(11, 15, 20, 0.96) !important;
    color: #f4f6f8 !important;
}

.hmcc-app .hmcc-navigation-context {
    display: grid !important;
    gap: 7px !important;
    padding: 10px 12px !important;
    border-radius: 9px !important;
}

.hmcc-app .hmcc-breadcrumbs,
.hmcc-app .hmcc-breadcrumbs a,
.hmcc-app .hmcc-navigation-context span {
    color: #9fa8b4 !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.hmcc-app .hmcc-mode-section {
    gap: 8px !important;
    margin: 8px !important;
    padding: 11px !important;
    border: 1px solid rgba(139, 149, 161, 0.14) !important;
    border-radius: 9px !important;
}

.hmcc-app .hmcc-mode-section h3,
.hmcc-app .hmcc-console-table-wrap h3,
.hmcc-app .hmcc-workspace-header h2,
.hmcc-app .hmcc-workspace-header h3 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    line-height: 1.15 !important;
}

.hmcc-app .hmcc-mode-section p,
.hmcc-app .hmcc-workspace-header p,
.hmcc-app .hmcc-workspace-empty,
.hmcc-app .hmcc-readonly-list li {
    color: #9fa8b4 !important;
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
}

.hmcc-app .hmcc-workspace-content {
    display: grid !important;
    gap: 8px !important;
    padding: 8px !important;
}

.hmcc-app .hmcc-workspace-header {
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 10px 11px !important;
    border: 1px solid rgba(139, 149, 161, 0.14) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.018) !important;
}

.hmcc-app .hmcc-mode-metric {
    min-height: 82px !important;
    padding: 10px !important;
}

.hmcc-app .hmcc-mode-metric strong {
    margin-top: 4px !important;
    color: #e9edf3 !important;
    font-size: 1.08rem !important;
}

.hmcc-app .hmcc-workspace-table-wrap,
.hmcc-app .hmcc-console-table-wrap {
    overflow-x: auto !important;
    border: 1px solid rgba(139, 149, 161, 0.16) !important;
    border-radius: 9px !important;
}

.hmcc-app .hmcc-workspace-table,
.hmcc-app .hmcc-console-table {
    width: 100% !important;
    min-width: 820px !important;
    border-collapse: collapse !important;
    background: rgba(7, 10, 14, 0.92) !important;
    color: #dfe5ec !important;
    font-size: 0.72rem !important;
}

.hmcc-app .hmcc-workspace-table th,
.hmcc-app .hmcc-workspace-table td,
.hmcc-app .hmcc-console-table th,
.hmcc-app .hmcc-console-table td {
    max-width: 260px !important;
    padding: 8px 9px !important;
    border-color: rgba(139, 149, 161, 0.12) !important;
    color: #dfe5ec !important;
    line-height: 1.28 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.hmcc-app .hmcc-workspace-table thead th,
.hmcc-app .hmcc-console-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    background: rgba(17, 22, 29, 0.98) !important;
    color: #9fa8b4 !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

.hmcc-app .hmcc-workspace-table tbody tr:nth-child(even),
.hmcc-app .hmcc-console-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018) !important;
}

.hmcc-app .hmcc-workspace-table tbody tr:hover,
.hmcc-app .hmcc-console-table tbody tr:hover {
    background: rgba(128, 0, 32, 0.12) !important;
}

.hmcc-app .hmcc-status-badge,
.hmcc-app .hmcc-priority-badge {
    min-height: 22px !important;
    padding: 0 8px !important;
    border-color: rgba(139, 149, 161, 0.18) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: #dfe5ec !important;
    font-size: 0.6rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.hmcc-app .hmcc-status-badge.is-connected,
.hmcc-app .hmcc-priority-badge.is-low {
    border-color: rgba(46, 204, 113, 0.36) !important;
    color: #2ecc71 !important;
}

.hmcc-app .hmcc-status-badge.is-standby,
.hmcc-app .hmcc-priority-badge.is-high,
.hmcc-app .hmcc-priority-badge.is-medium {
    border-color: rgba(244, 185, 66, 0.36) !important;
    color: #f4b942 !important;
}

.hmcc-app .hmcc-status-badge.is-not-connected,
.hmcc-app .hmcc-priority-badge.is-critical {
    border-color: rgba(255, 79, 103, 0.42) !important;
    color: #ff4f67 !important;
}

.hmcc-app .hmcc-status-badge.is-safe {
    border-color: rgba(86, 156, 214, 0.28) !important;
    color: #8fbce8 !important;
}

.hmcc-app .hmcc-system-global-form,
.hmcc-app .hmcc-system-control-form {
    border-color: rgba(139, 149, 161, 0.14) !important;
}

.hmcc-app .hmcc-system-global-form input,
.hmcc-app .hmcc-system-global-form select,
.hmcc-app .hmcc-system-control-form input[type="text"],
.hmcc-app .hmcc-system-control-form select {
    background: rgba(7, 10, 14, 0.92) !important;
    color: #f4f6f8 !important;
}

.hmcc-app .hmcc-system-state-card dl div {
    background: rgba(7, 10, 14, 0.45) !important;
}

.hmcc-app .hmcc-system-state-card dd {
    color: #dfe5ec !important;
}

@media (max-width: 760px) {
    .hmcc-app .hmcc-workspace-header,
    .hmcc-app .hmcc-system-state-card header,
    .hmcc-app .hmcc-system-access-callout {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .hmcc-app .hmcc-system-global-form {
        grid-template-columns: 1fr !important;
    }

    .hmcc-app .hmcc-workspace-table,
    .hmcc-app .hmcc-console-table {
        min-width: 720px !important;
    }
}

/* HMCC CSS + template enforcement layer. Keep this last in the file. */
body.hmcc-body {
    min-height: 100vh;
    margin: 0 !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(128, 0, 32, 0.14), transparent 28%),
        linear-gradient(135deg, #06080b 0%, #0a0e13 46%, #11161d 100%) !important;
    color: #f4f6f8 !important;
    font-family: Sora, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.hmcc-app,
.hmcc-app *,
.hmcc-app *::before,
.hmcc-app *::after {
    box-sizing: border-box;
}

.hmcc-app {
    isolation: isolate;
    width: min(1620px, calc(100vw - 24px)) !important;
    margin: 0 auto !important;
    padding: 12px 0 16px !important;
    color: #f4f6f8;
    font-family: Sora, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hmcc-app a,
.hmcc-app a:visited,
.hmcc-app a:hover,
.hmcc-app a:focus {
    color: inherit;
    text-decoration: none !important;
    box-shadow: none !important;
}

.hmcc-app p,
.hmcc-app h1,
.hmcc-app h2,
.hmcc-app h3,
.hmcc-app h4,
.hmcc-app dl,
.hmcc-app dd {
    margin-top: 0;
}

.hmcc-app .hmcc-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 74px;
    gap: 18px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(139, 149, 161, 0.14) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(8, 11, 15, 0.98) !important;
    color: #f4f6f8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 42px rgba(0, 0, 0, 0.24) !important;
}

.hmcc-app .hmcc-header h1 {
    max-width: 720px;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(1.38rem, 1.9vw, 2.05rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

.hmcc-app .hmcc-eyebrow {
    margin: 0 0 5px !important;
    color: #8f98a3 !important;
    font-size: 0.66rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.hmcc-app .hmcc-console-subtitle {
    max-width: 680px !important;
    margin: 5px 0 0 !important;
    color: #9fa8b4 !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
}

.hmcc-app .hmcc-console-status-stack {
    min-width: 166px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(139, 149, 161, 0.16) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.026) !important;
}

.hmcc-app .hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard {
    display: grid !important;
    grid-template-columns: 224px minmax(0, 1fr) 324px !important;
    gap: 10px !important;
    align-items: start !important;
    margin-top: 10px !important;
}

.hmcc-app .hmcc-founder-sidebar,
.hmcc-app .hmcc-console-panel,
.hmcc-app .hmcc-side-panel,
.hmcc-app .hmcc-widget,
.hmcc-app .hmcc-module-card,
.hmcc-app .hmcc-action-card {
    overflow: hidden;
    border: 1px solid rgba(139, 149, 161, 0.16) !important;
    border-radius: 9px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
        rgba(11, 15, 20, 0.96) !important;
    color: #f4f6f8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}

.hmcc-app .hmcc-founder-sidebar {
    position: sticky !important;
    top: 10px !important;
    align-content: start !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 12px !important;
}

.hmcc-app .hmcc-founder-nav {
    display: grid !important;
    gap: 3px !important;
}

.hmcc-app .hmcc-founder-nav a {
    min-height: 30px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    color: #cdd3dc !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.hmcc-app .hmcc-founder-nav a:hover,
.hmcc-app .hmcc-founder-nav a:focus,
.hmcc-app .hmcc-founder-nav a.is-active {
    border-color: rgba(174, 45, 63, 0.46) !important;
    background: rgba(128, 0, 32, 0.22) !important;
    color: #ffffff !important;
}

.hmcc-app .hmcc-founder-main-column,
.hmcc-app .hmcc-dashboard-side {
    display: grid !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.hmcc-app .hmcc-founder-main-column > .hmcc-mode-screen {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.hmcc-app .hmcc-mode-screen {
    display: grid !important;
    gap: 10px !important;
}

.hmcc-app .hmcc-mode-screen .hmcc-console-panel {
    width: 100% !important;
}

.hmcc-app .hmcc-dashboard-side {
    position: sticky !important;
    top: 10px !important;
    align-content: start !important;
}

.hmcc-app .hmcc-console-toolbar {
    min-height: 0 !important;
    padding: 10px 12px !important;
    border-color: rgba(139, 149, 161, 0.13) !important;
    background: rgba(255, 255, 255, 0.018) !important;
}

.hmcc-app .hmcc-console-toolbar h2,
.hmcc-app .hmcc-side-heading h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
}

.hmcc-app .hmcc-console-toolbar p {
    max-width: 620px !important;
    margin: 3px 0 0 !important;
    color: #9fa8b4 !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
}

.hmcc-app .hmcc-console-meta {
    gap: 5px !important;
}

.hmcc-app .hmcc-console-meta div {
    min-width: 58px !important;
    padding: 6px 7px !important;
    border-color: rgba(139, 149, 161, 0.14) !important;
    background: rgba(255, 255, 255, 0.026) !important;
}

.hmcc-app .hmcc-console-meta dt,
.hmcc-app .hmcc-widget span,
.hmcc-app .hmcc-module-card strong,
.hmcc-app .hmcc-action-card-body > span {
    color: #8f98a3 !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

.hmcc-app .hmcc-console-meta dd {
    margin: 2px 0 0 !important;
    color: #e9edf3 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

.hmcc-app .hmcc-v3-mission-grid,
.hmcc-app .hmcc-v3-havs-grid,
.hmcc-app .hmcc-compact-card-grid,
.hmcc-app .hmcc-module-card-grid,
.hmcc-app .hmcc-action-center-grid {
    display: grid !important;
    gap: 7px !important;
    padding: 8px !important;
}

.hmcc-app .hmcc-v3-mission-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.hmcc-app .hmcc-v3-havs-grid,
.hmcc-app .hmcc-module-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.hmcc-app .hmcc-compact-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.hmcc-app .hmcc-widget,
.hmcc-app .hmcc-module-card {
    display: grid !important;
    align-content: start !important;
    gap: 4px !important;
    min-width: 0 !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    padding: 10px !important;
    text-decoration: none !important;
}

.hmcc-app .hmcc-widget strong {
    display: block !important;
    overflow: hidden !important;
    margin: 2px 0 !important;
    color: #e9edf3 !important;
    font-size: clamp(1rem, 1.3vw, 1.38rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.hmcc-app .hmcc-widget p,
.hmcc-app .hmcc-module-card p,
.hmcc-app .hmcc-side-panel p,
.hmcc-app .hmcc-action-card-body p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #9fa8b4 !important;
    font-size: 0.68rem !important;
    line-height: 1.28 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.hmcc-app .hmcc-widget.is-connected strong,
.hmcc-app .hmcc-widget.is-safe strong {
    color: #2ecc71 !important;
}

.hmcc-app .hmcc-widget.is-standby strong {
    color: #f4b942 !important;
}

.hmcc-app .hmcc-widget.is-not-connected strong {
    color: #ff4f67 !important;
}

.hmcc-app .hmcc-action-card {
    min-height: 88px !important;
    padding: 9px !important;
}

.hmcc-app .hmcc-action-card-body strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #f4f6f8 !important;
    font-size: 0.86rem !important;
    line-height: 1.18 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.hmcc-app .hmcc-side-panel {
    gap: 5px !important;
    min-height: 82px !important;
    padding: 10px !important;
}

.hmcc-app .hmcc-side-panel strong {
    overflow: hidden !important;
    color: #e9edf3 !important;
    font-size: 1.05rem !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
}

.hmcc-app .hmcc-side-link,
.hmcc-app .hmcc-action-link,
.hmcc-app .hmcc-mode-link,
.hmcc-app .hmcc-back-link,
.hmcc-app .hmcc-table-button {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-color: rgba(174, 45, 63, 0.42) !important;
    border-radius: 7px !important;
    background: rgba(128, 0, 32, 0.24) !important;
    color: #ffffff !important;
    font-size: 0.66rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.hmcc-app .hmcc-widget.is-linked:hover,
.hmcc-app .hmcc-widget.is-linked:focus,
.hmcc-app .hmcc-module-card:hover,
.hmcc-app .hmcc-module-card:focus {
    border-color: rgba(174, 45, 63, 0.54) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018)),
        rgba(15, 20, 26, 0.99) !important;
}

.hmcc-app .hmcc-workflow-bar {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px !important;
    border: 1px solid rgba(139, 149, 161, 0.16) !important;
    border-radius: 9px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
        rgba(11, 15, 20, 0.96) !important;
}

.hmcc-app .hmcc-workflow-bar span {
    min-width: 0 !important;
    padding: 6px 8px !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

@media (max-width: 1180px) {
    .hmcc-app .hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard {
        grid-template-columns: 198px minmax(0, 1fr) !important;
    }

    .hmcc-app .hmcc-dashboard-side {
        grid-column: 1 / -1 !important;
        position: static !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .hmcc-app .hmcc-v3-mission-grid,
    .hmcc-app .hmcc-v3-havs-grid,
    .hmcc-app .hmcc-module-card-grid,
    .hmcc-app .hmcc-compact-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .hmcc-app {
        width: min(100% - 18px, 680px) !important;
    }

    .hmcc-app .hmcc-header,
    .hmcc-app .hmcc-main.hmcc-dashboard-mode.hmcc-founder-dashboard,
    .hmcc-app .hmcc-founder-main-column,
    .hmcc-app .hmcc-dashboard-side,
    .hmcc-app .hmcc-v3-mission-grid,
    .hmcc-app .hmcc-v3-havs-grid,
    .hmcc-app .hmcc-module-card-grid,
    .hmcc-app .hmcc-compact-card-grid,
    .hmcc-app .hmcc-workflow-bar {
        grid-template-columns: 1fr !important;
    }

    .hmcc-app .hmcc-founder-sidebar,
    .hmcc-app .hmcc-dashboard-side {
        position: static !important;
    }

    .hmcc-app .hmcc-widget,
    .hmcc-app .hmcc-module-card {
        height: auto !important;
        min-height: 86px !important;
        max-height: none !important;
    }
}
