.mcdh-toolkit,
.mcdh-hub,
.mcdh-wrap {
    color: #edf3f8;
    margin: 1.5rem 0;
    width: 100%;
}

.mcdh-toolkit * {
    box-sizing: border-box;
}

.mcdh-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin: 0 0 1.5rem;
    padding: 0 0 1.25rem;
}

.mcdh-tool-hero {
    display: grid;
    gap: 0.7rem;
    min-height: 220px;
    place-content: center start;
}

.mcdh-hero h2 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    margin: 0;
    max-width: 940px;
}

.mcdh-hero p {
    color: #d7e0e9;
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
    max-width: 820px;
}

.mcdh-kicker,
.mcdh-freshness {
    color: #82c46c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.mcdh-freshness {
    color: #a7b4c3;
    text-transform: none;
}

.mcdh-control-strip,
.mcdh-search {
    align-items: flex-end;
    background: #111820;
    border: 1px solid #2e3b49;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1rem 0 1.5rem;
    padding: 14px;
}

.mcdh-control-strip label,
.mcdh-search label {
    display: grid;
    flex: 1 1 180px;
    gap: 5px;
    min-width: 0;
}

.mcdh-control-strip span,
.mcdh-search span {
    color: #b5c3d1;
    font-size: 13px;
    font-weight: 800;
}

.mcdh-control-strip select,
.mcdh-search input,
.mcdh-search select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #111827;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.mcdh-control-strip button,
.mcdh-search button,
.mcdh-action-row button {
    background: #2f7d4d;
    border: 1px solid #2f7d4d;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 9px 16px;
    white-space: nowrap;
}

.mcdh-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0 1.75rem;
}

.mcdh-jump-nav a {
    border: 1px solid rgba(130, 196, 108, 0.55);
    border-radius: 6px;
    color: #e8f5e4;
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none;
}

.mcdh-jump-nav a:hover,
.mcdh-table a:hover {
    color: #a8df8f;
}

.mcdh-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1.5rem 0 2rem;
}

.mcdh-stat-card,
.mcdh-output-card,
.mcdh-report-card,
.mcdh-recall-card,
.mcdh-score-tile,
.mcdh-next-actions {
    background: #151d26;
    border: 1px solid #2f3c4b;
    border-radius: 6px;
}

.mcdh-stat-card {
    padding: 14px;
}

.mcdh-stat-card span,
.mcdh-score-tile span {
    color: #a7b4c3;
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.mcdh-stat-card strong {
    color: #ffffff;
    display: block;
    font-size: 30px;
    line-height: 1.1;
    margin: 4px 0 8px;
}

.mcdh-stat-card p,
.mcdh-score-tile p,
.mcdh-output-card p,
.mcdh-report-card p,
.mcdh-recall-card p,
.mcdh-next-actions li {
    color: #d8e1eb;
    font-size: 14px;
    line-height: 1.5;
}

.mcdh-state-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mcdh-state-pills em {
    background: #202b36;
    border: 1px solid #3a4a5b;
    border-radius: 4px;
    color: #e9eef5;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    padding: 5px 7px;
}

.mcdh-tool-section {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0;
    padding: 2.4rem 0;
    scroll-margin-top: 120px;
}

.mcdh-section-head {
    margin: 0 0 1rem;
}

.mcdh-section-head h2 {
    color: #ffffff;
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1.12;
    margin: 0;
}

.mcdh-section-head p:last-child {
    color: #c5ced8;
    max-width: 780px;
}

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

.mcdh-output-card {
    padding: 16px;
}

.mcdh-output-card h3,
.mcdh-report-card h3,
.mcdh-recall-card h3,
.mcdh-planner-main h3,
.mcdh-next-actions h3 {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.mcdh-check-list,
.mcdh-doc-list,
.mcdh-next-actions ul,
.mcdh-risk-box ul {
    margin: 0;
    padding-left: 1.15rem;
}

.mcdh-check-list li,
.mcdh-doc-list li,
.mcdh-risk-box li {
    color: #d8e1eb;
    line-height: 1.45;
    margin: 0.45rem 0;
}

.mcdh-check-list input {
    accent-color: #2f7d4d;
    height: 16px;
    margin-right: 7px;
    width: 16px;
}

.mcdh-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 14px;
}

.mcdh-action-row p,
.mcdh-muted,
.mcdh-source-note {
    color: #a7b4c3;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.mcdh-report-list,
.mcdh-recall-cards {
    display: grid;
    gap: 12px;
}

.mcdh-report-card {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    padding: 16px;
}

.mcdh-fact-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.mcdh-fact-list div {
    background: #101720;
    border: 1px solid #2c3947;
    border-radius: 4px;
    padding: 10px;
}

.mcdh-fact-list dt {
    color: #97a6b5;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.mcdh-fact-list dd {
    color: #ffffff;
    margin: 0;
}

.mcdh-risk-box {
    background: #101720;
    border-left: 4px solid #d3a63a;
    border-radius: 4px;
    padding: 12px;
}

.mcdh-risk-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.mcdh-risk-low {
    color: #8ad27e;
}

.mcdh-risk-medium {
    color: #f1c866;
}

.mcdh-risk-high {
    color: #ff9a8f;
}

.mcdh-binder-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1rem;
}

.mcdh-binder-summary strong,
.mcdh-binder-summary span {
    background: #202b36;
    border: 1px solid #3a4a5b;
    border-radius: 4px;
    color: #e9eef5;
    font-weight: 800;
    padding: 7px 10px;
}

.mcdh-planner-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.mcdh-planner-main {
    border-left: 4px solid #82c46c;
    padding: 0 0 0 16px;
}

.mcdh-planner-main p {
    color: #d8e1eb;
}

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

.mcdh-score-tile {
    padding: 14px;
}

.mcdh-score-tile strong {
    color: #ffffff;
    display: block;
    font-size: 20px;
    margin: 5px 0 7px;
}

.mcdh-next-actions {
    margin-top: 14px;
    padding: 16px;
}

.mcdh-recall-card {
    padding: 16px;
}

.mcdh-recall-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0.8rem 0;
}

.mcdh-recall-meta span {
    background: #202b36;
    border: 1px solid #3a4a5b;
    border-radius: 4px;
    color: #d8e1eb;
    font-size: 13px;
    padding: 5px 8px;
}

.mcdh-source-ledger details {
    background: #111820;
    border: 1px solid #2e3b49;
    border-radius: 6px;
    padding: 14px;
}

.mcdh-source-ledger summary {
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
}

.mcdh-table {
    border-collapse: collapse;
    font-size: 15px;
    width: 100%;
}

.mcdh-table th,
.mcdh-table td {
    border-bottom: 1px solid #334252;
    color: #e9eef5;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.mcdh-table th {
    background: #202936;
    color: #ffffff;
    font-weight: 800;
}

.mcdh-table a,
.mcdh-source-note a {
    color: #9fdb88;
}

.mcdh-empty {
    background: #111820;
    border: 1px solid #2e3b49;
    border-radius: 6px;
    color: #d8e1eb;
    padding: 14px;
}

@media (max-width: 820px) {
    .mcdh-stat-grid,
    .mcdh-output-grid,
    .mcdh-report-card,
    .mcdh-planner-grid,
    .mcdh-score-grid,
    .mcdh-fact-list {
        grid-template-columns: 1fr;
    }

    .mcdh-table {
        display: block;
        overflow-x: auto;
    }

    .mcdh-control-strip button,
    .mcdh-search button,
    .mcdh-action-row button {
        width: 100%;
    }
}

@media (min-width: 821px) and (max-width: 1120px) {
    .mcdh-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    .site-header,
    .mcdh-jump-nav,
    .mcdh-control-strip,
    .mcdh-search,
    .mcdh-source-ledger,
    .mcdh-action-row button {
        display: none !important;
    }

    .mcdh-toolkit,
    .mcdh-toolkit * {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .mcdh-output-card,
    .mcdh-report-card,
    .mcdh-recall-card,
    .mcdh-score-tile,
    .mcdh-next-actions {
        border-color: #cbd5e1 !important;
        break-inside: avoid;
    }
}
