.dynamic-plan-page {
    min-height: calc(100vh - 6rem);
}

.dynamic-plan-panel {
    border: 1px solid #dbe5ef;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 2rem rgba(15, 32, 55, 0.08);
    overflow: hidden;
}

.dynamic-plan-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f7fbff;
    border-bottom: 1px solid #dbe5ef;
}

.dynamic-plan-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #52708f;
}

.dynamic-plan-helper {
    color: #5e7288;
    font-size: 0.9rem;
}

.dynamic-plan-form,
.dynamic-plan-result {
    padding: 1rem 1.25rem 1.25rem;
}

.dynamic-plan-runs {
    padding: 0.75rem;
}

.dynamic-plan-mode-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.dynamic-plan-mode-group .btn {
    width: 100%;
}

.dynamic-plan-revolution-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.dynamic-plan-revolution-group .btn {
    width: 100%;
}

.dynamic-plan-run-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #e5edf6;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.75rem;
    text-align: left;
}

.dynamic-plan-run-item + .dynamic-plan-run-item {
    margin-top: 0.5rem;
}

.dynamic-plan-run-main {
    min-width: 0;
}

.dynamic-plan-run-title {
    font-weight: 700;
    color: #2c4057;
    word-break: break-word;
}

.dynamic-plan-run-details {
    margin-top: 0.25rem;
    color: #63788f;
    font-size: 0.82rem;
}

.dynamic-plan-run-status {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #52708f;
}

.dynamic-plan-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dynamic-plan-map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid #dbe5ef;
    border-radius: 0.5rem;
    background: #f7fbff;
    padding: 0.75rem;
}

.dynamic-plan-map-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dynamic-plan-field {
    border-bottom: 1px solid #eef4fb;
    padding-bottom: 0.75rem;
}

.dynamic-plan-field-label {
    color: #6b7d90;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.dynamic-plan-field-value {
    font-weight: 600;
    word-break: break-word;
}

.dynamic-plan-json {
    background: #f7fbff;
    border: 1px solid #dbe5ef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 18rem;
    overflow: auto;
}

@media (max-width: 768px) {
    .dynamic-plan-result-grid {
        grid-template-columns: 1fr;
    }

    .dynamic-plan-map-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .dynamic-plan-map-actions {
        justify-content: flex-start;
    }
}
