.adaptive-dialog {
    width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
    padding: 0; border: 1px solid var(--border-color, #d6dce3); border-radius: 18px;
    background: var(--card-bg, #fff); color: var(--text-primary, #172a3a);
    font-family: inherit; overflow-y: auto; overscroll-behavior: contain;
}
.adaptive-dialog::backdrop { background: rgb(10 22 30 / 55%); }
.adaptive-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border-color, #d6dce3); }
.adaptive-dialog header h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.adaptive-body { padding: 24px; }
.adaptive-dialog h3 { font-size: 1.35rem; line-height: 1.5; margin: 16px 0 20px; }
.adaptive-dialog h4 { font-size: 1rem; font-weight: 700; margin: 16px 0 10px; }
.adaptive-dialog p, .adaptive-dialog li, .adaptive-dialog blockquote { line-height: 1.65; overflow-wrap: anywhere; }
.adaptive-course, .adaptive-concept { font-weight: 600; }
.adaptive-muted { color: var(--text-secondary, #536476); font-size: .88rem; margin-top: 16px; }
.adaptive-dialog label { display: block; font-weight: 600; margin-bottom: 8px; }
.adaptive-dialog textarea { display: block; box-sizing: border-box; width: 100%; padding: 14px; border: 1px solid var(--border-color, #aab7c2); border-radius: 10px; font: inherit; font-size: 16px; color: inherit; background: var(--soft-surface, #f8fafb); resize: vertical; }
.adaptive-dialog button { min-height: 44px; padding: 10px 16px; border-radius: 10px; font: inherit; font-size: .9rem; cursor: pointer; }
.adaptive-primary { border: 1px solid #126a60; background: #126a60; color: #fff; font-weight: 600 !important; }
.adaptive-secondary { border: 1px solid var(--border-color, #aab7c2); background: transparent; color: inherit; }
.adaptive-dialog button:disabled { opacity: .55; cursor: default; }
.adaptive-dialog :focus-visible { outline: 3px solid #38897e; outline-offset: 3px; }
.adaptive-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.adaptive-feedback, .adaptive-summary { padding: 16px 0; border-bottom: 1px solid var(--border-color, #d6dce3); }
.adaptive-dialog details { margin: 14px 0; }
.adaptive-dialog summary { min-height: 44px; cursor: pointer; padding: 10px 0; overflow-wrap: anywhere; }
.adaptive-dialog blockquote { margin: 8px 0; padding: 12px; background: var(--soft-surface, #f1f4f6); border-radius: 8px; font-size: .9rem; }
.adaptive-status { margin-top: 20px; }
.adaptive-error { color: var(--text-primary, #172a3a); font-weight: 600; margin-top: 20px; }
.adaptive-dialog progress { width: 100%; accent-color: #126a60; }
.cours-adaptive-entry { width: 100%; margin: 12px 0 16px; text-align: start; padding: 16px !important; }
@media (max-width: 520px) {
    .adaptive-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
    .adaptive-dialog header { padding: 16px; align-items: flex-start; }
    .adaptive-dialog header h2 { font-size: 1.05rem; }
    .adaptive-dialog header button { max-width: 45%; flex-shrink: 0; }
    .adaptive-body { padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
    .adaptive-dialog h3 { font-size: 1.2rem; }
    .adaptive-actions { flex-direction: column; }
}
