.course-support-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 48px));max-height:calc(100dvh - 64px);padding:0;border:0;border-radius:20px;background:var(--portal-milk,#fffdfa);color:var(--portal-ink,#20231e);box-shadow:0 18px 70px rgb(25 29 20 / .2);overscroll-behavior:contain}
.course-support-dialog::backdrop{background:rgb(25 29 20 / .4)}
.course-support-dialog__header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 28px;background:var(--portal-milk,#fffdfa);z-index:1;border-bottom:1px solid var(--portal-line,#dddcd5)}
.course-support-dialog__header h2{margin:0;font-size:1.5rem;letter-spacing:-.025em}.course-support-dialog__body{padding:24px 28px}.course-support-dialog__body:empty{min-height:80px}.course-support-dialog [data-support-fallback]{display:block;margin:0 28px 24px}.course-support-dialog [hidden]{display:none}.course-support-dialog .support-history{min-height:180px;padding:0;background:transparent}.course-support-dialog .support-compose textarea{min-height:100px}.course-support-dialog .support-conversation{gap:20px}.course-support-dialog .support-connect-note{font-size:.875rem}.course-support-dialog .support-telegram{justify-content:flex-start}.course-support-dialog .support-telegram .secondary-action{background:transparent;border:1px solid var(--portal-line,#dddcd5)}.support-panel-entry{display:grid;justify-items:start;gap:16px}.support-panel-entry p{margin:0}.course-support-dialog :focus-visible{outline:2px solid var(--portal-teal,#24574d);outline-offset:4px}.course-support-dialog{scrollbar-color:var(--portal-teal,#24574d) var(--portal-milk,#fffdfa);scrollbar-width:thin}
.course-support-dialog__status{margin:0 28px 20px;line-height:1.5}.course-support-dialog__retry{margin:0 28px 20px}.support-panel-entry h3{margin:0;font-size:1.2rem}.course-support-dialog[aria-busy="true"] .course-support-dialog__body:empty{min-height:0}
.course-support-dialog__alternative { padding:16px 28px 20px; border-top:1px solid var(--portal-line,#dddcd5); background:var(--portal-milk,#fffdfa); }
.course-support-dialog__alternative a { display:inline-flex; align-items:center; min-height:44px; color:inherit; font-weight:650; text-underline-offset:4px; }

/* Keep the Telegram recovery footer on loading/error, without a duplicate guest action. */
.course-support-dialog:has(.support-panel-entry) .course-support-dialog__alternative {display:none}
.support-panel-entry__actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.public-support .support-panel-entry {max-width:62ch}
.support-panel-entry__actions .primary-action {margin:0}
.support-panel-entry__actions .secondary-action {display:inline-flex;align-items:center;min-height:44px;font-size:.9rem;font-weight:500;text-underline-offset:4px}
.course-support-dialog__header [data-support-close] {display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:inherit;font-family:inherit;font-size:.875rem;font-weight:500;line-height:1.4;cursor:pointer}
.course-support-dialog__header [data-support-close]:hover {background:var(--portal-bg,#f0f0eb)}
