.card.panel-readiness {
    width: 100%;
    max-width: none;
}


.panel-readiness-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.panel-readiness-grid > div {
    min-width: 120px;
}

.panel-marker-preview {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}



.panel-readiness {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.panel-readiness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.panel-readiness-grid {
    max-width: 720px;
}
.panel-readiness-grid > div {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #f8fafc;
}

.panel-readiness-grid strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text);
    margin-bottom: 8px;
}

.panel-readiness-grid .muted {
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .panel-readiness-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 520px) {
    .panel-readiness-grid {
        grid-template-columns: 1fr;
    }
}



.schema-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.schema-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.schema-card {
    min-width: 150px;
    padding: 20px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.schema-arrow {
    font-size: 15px;
    line-height: 1;
}

.schema-zone {
    margin-bottom: 15px;
}

.schema-zone > h2 {
    text-align: center;
    margin-bottom: 24px;
}

.schema-card-primary {
    border-width: 2px;
}



.panel-dive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.panel-dive-label {
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.panel-dive-value {
    font-size: 14px;
    color: #172033;
    font-weight: 600;
    word-break: break-word;
}

.panel-dive-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.panel-dive-text {
    margin-top: 6px;
    color: #475467;
    line-height: 1.6;
}

details.card summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.panel-dive-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

.panel-dive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.panel-dive-table th {
    text-align: left;
    padding: 10px 12px;
    color: #667085;
    font-weight: 600;
    border-bottom: 1px solid #eef2f7;
    white-space: nowrap;
}

.panel-dive-table td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    color: #475467;
}

.panel-dive-table td strong {
    color: #172033;
}

.schema-card-readmodel {
    border-width: 2px;
    background: #f8fafc;
}


.marker-schema-workbench {
    display: grid;
    grid-template-columns: minmax(520px, 0.9fr) minmax(460px, 1.1fr);
    gap: 32px;
    align-items: start;
}

.marker-schema-map {
    min-width: 0;
}

.marker-schema-inspector {
    position: sticky;
    top: 120px;
    min-width: 0;
    max-height: calc(100vh - 140px);
    overflow: auto;
}

.schema-inspector-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(16,24,40,.06);
}



.marker-schema-map .schema-zone {
    margin-bottom: 20px;
}

.marker-schema-map .schema-zone h2 {
    font-size: 22px;
    margin-bottom: 18px;
}


.marker-schema-map .schema-card {
    min-height: 68px;
    padding: 12px 14px;
}

.marker-schema-map .schema-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.marker-schema-map .schema-card p {
    font-size: 11px;
}

.marker-schema-map .schema-row {
    gap: 12px;
}

.marker-schema-map .schema-arrow {
    margin: 6px 0;
    font-size: 28px;
}

.marker-schema-map .schema-flow,
.marker-schema-map .schema-row {
    justify-content: flex-start;
}


.marker-schema-workbench {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (max-width: 1100px) {
    .marker-schema-workbench {
        grid-template-columns: 1fr;
    }

    .marker-schema-inspector {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

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

.marker-schema-map .schema-card {
    display: block;
    text-decoration: none;
    color: inherit;
    min-height: 78px;
    padding: 16px;
}

.marker-schema-map .schema-card:hover {
    border-color: #98a2b3;
    transform: translateY(-1px);
}

.marker-schema-map .schema-zone {
    margin-bottom: 22px;
}

.marker-schema-map .schema-zone h2 {
    text-align: left;
    font-size: 20px;
    margin-bottom: 12px;
}

.marker-schema-map .schema-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.marker-schema-map .schema-card p {
    margin: 0;
    font-size: 12px;
}

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


.schema-inspector-fields {
    display: grid;
    gap: 10px;
}

.schema-inspector-field {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.schema-inspector-field strong {
    font-size: 13px;
    color: #667085;
}

.schema-inspector-field span {
    font-size: 14px;
    color: #172033;
    overflow-wrap: anywhere;
}

.schema-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schema-chip {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #172033;
    font-size: 13px;
}

.schema-inspector-list {
    display: grid;
    gap: 10px;
}

.schema-inspector-details {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
}

.schema-inspector-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #172033;
}

.schema-inspector-details p {
    margin: 10px 0 0;
    color: #667085;
}

.schema-inspector-field code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 220px;
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 8px;
}