.ct-public-brand-group { display: flex; align-items: center; flex-shrink: 0; gap: 16px; }
.ct-public-menu-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 42px; padding: 8px; border: 1px solid var(--ct-line); border-radius: 10px; background: var(--ct-surface); color: var(--ct-ink); cursor: pointer; }
.ct-public-menu-toggle:hover, .ct-public-menu-toggle[aria-expanded="true"] { color: var(--ct-accent); border-color: var(--ct-accent); background: var(--ct-soft); }
.ct-public-menu-toggle svg { width: 23px; height: 23px; }
.ct-public-sidebar { color: var(--ct-ink); font: 500 14px/1.75 'Cairo', sans-serif; }
#ct-public-menu { padding: 0 !important; overflow: hidden; }
#ct-public-menu > .modal-dialog { width: min(320px, calc(100% - 36px)); max-width: none; height: 100%; height: 100dvh; margin: 0; margin-inline-end: auto; }
#ct-public-menu.fade > .modal-dialog { transform: translateX(-100%); transition: transform .25s ease; }
[dir="rtl"] #ct-public-menu.fade > .modal-dialog { transform: translateX(100%); }
#ct-public-menu.show > .modal-dialog, [dir="rtl"] #ct-public-menu.show > .modal-dialog { transform: translateX(0); }
#ct-public-menu .modal-content { height: 100%; max-height: 100%; border: 0; border-inline-end: 1px solid var(--ct-line); border-radius: 0; background: var(--ct-surface); color: var(--ct-ink); box-shadow: 0 0 60px #120d2833; }
#ct-public-menu :focus-visible { outline: 3px solid var(--ct-accent); outline-offset: 3px; }
.ct-sidebar-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; padding: max(16px, env(safe-area-inset-top)) 16px 12px; border: 0; }
.ct-sidebar-close { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 42px; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ct-muted); cursor: pointer; }
.ct-sidebar-close:hover { background: var(--ct-soft); color: var(--ct-accent); }
.ct-sidebar-toolbar svg { width: 20px; height: 20px; }
.ct-sidebar-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px max(24px, env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: var(--ct-line) var(--ct-surface); }
#ct-public-menu a { text-decoration: none; }
.ct-sidebar-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; width: fit-content; margin: 4px auto 18px; color: var(--ct-ink); }
.ct-sidebar-brand img { width: 80px; height: 60px; object-fit: contain; }
.ct-sidebar-brand > span { font: 900 25px/1.3 'Cairo', sans-serif; letter-spacing: 1px; }
[data-ct-lesson-theme="dark"] .ct-sidebar-brand img { filter: brightness(0) invert(1); }
#ct-public-menu h2 { margin: 26px 12px 10px; color: var(--ct-muted); font: 750 12px/1.6 'Cairo', sans-serif; }
#ct-public-menu .ct-sidebar-brand + h2 { margin-top: 18px; }
.ct-sidebar-links { display: flex; flex-direction: column; gap: 3px; }
.ct-sidebar-links > a, .ct-sidebar-links > .ct-navigation-soon { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 9px; color: var(--ct-muted); font-size: 13px; line-height: 1.8; }
.ct-sidebar-links > a:hover, .ct-sidebar-links > a.ct-is-current { color: var(--ct-accent); background: var(--ct-soft); }
.ct-sidebar-links > a.ct-is-current { font-weight: 800; }
.ct-sidebar-links > a > span { overflow-wrap: anywhere; }
.ct-navigation-icon { width: 20px; height: 20px; flex-shrink: 0; }
.ct-sidebar-links small { margin-inline-start: auto; padding: 1px 6px; border: 1px solid var(--ct-line); border-radius: 4px; font-size: 10px; color: var(--ct-muted); }
.ct-sidebar-links > .ct-sidebar-explore { justify-content: space-between; color: var(--ct-accent); font-weight: 700; }
.ct-sidebar-account { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ct-line); font-size: 12px; }
.ct-sidebar-account a { color: var(--ct-accent); padding: 8px 10px; }
.ct-sidebar-account a:first-child { border-radius: 8px; background: var(--ct-accent); color: var(--ct-on-accent); }
[dir="rtl"] .ct-sidebar-account { justify-content: flex-start; flex-direction: row-reverse; }
@media (max-width: 1100px) {
    .ct-public-header .ct-public-nav { display: none; }
    .ct-public-header-inner { gap: 18px; }
}
@media (max-width: 720px) {
    .ct-public-header-inner { min-height: 69px; padding-block: 10px; flex-wrap: nowrap; gap: 10px; }
    .ct-public-brand-group { gap: 8px; }
    .ct-public-menu-toggle { width: 35px; height: 37px; padding: 6px; }
    .ct-public-header-actions { gap: 6px; }
    .ct-public-header .ct-public-button { gap: 6px; padding-inline: 10px; }
    .ct-public-header .ct-public-arrow { display: none; }
}
@media (max-width: 370px) {
    .ct-public-logo > span { font-size: 12px; letter-spacing: .4px; }
    .ct-public-logo-mark { width: 30px; }
    .ct-public-brand-group { gap: 6px; }
    .ct-public-header .ct-public-button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    #ct-public-menu.fade > .modal-dialog { transition: none; }
}
