/* =========================================================================
   OK-AI Academy — Core Stylesheet (Modern Light Blue Theme)
   ========================================================================= */

:root {
    --h-bg:              #eaf2fb;
    --h-bg-alt:          #f0f5fc;
    --h-surface:         #ffffff;
    --h-surface-hover:   #f8fafc;
    --h-surface-solid:   #ffffff;
    --h-surface-glass:   rgba(255, 255, 255, 0.92);

    --h-line:            rgba(20, 83, 158, 0.12);
    --h-line-strong:     rgba(20, 83, 158, 0.22);
    --h-line-hover:      rgba(20, 83, 158, 0.35);

    --h-text:            #0c192c;
    --h-text-dim:        #334155;
    --h-muted:           #526071;
    --h-muted-dark:      #8292a4;

    --h-brand:           #14539e;
    --h-blue:            #14539e;
    --h-blue-hover:      #0e3c75;
    --h-blue-light:      #1a64bd;
    --h-blue-soft:       rgba(20, 83, 158, 0.08);
    --h-blue-border:     rgba(20, 83, 158, 0.22);
    --h-blue-glow:       rgba(20, 83, 158, 0.25);

    --h-gold:            #b45309;
    --h-gold-hover:      #92400e;
    --h-gold-soft:       rgba(180, 83, 9, 0.08);
    --h-gold-border:     rgba(180, 83, 9, 0.25);

    --h-green:           #059669;
    --h-green-soft:      rgba(5, 150, 105, 0.10);
    --h-danger:          #dc2626;

    --h-wrap:            1220px;
    --h-gutter:          20px;
    --h-section-y:       96px;
    --h-r-s:             8px;
    --h-r-m:             14px;
    --h-r-l:             20px;
    --h-r-full:          9999px;

    --h-font:            'Inter', system-ui, -apple-system, sans-serif;
    --h-head:            'Inter Tight', 'Inter', system-ui, sans-serif;
    --h-ease:            cubic-bezier(0.16, 1, 0.3, 1);

    --brand:             var(--h-brand);
    --brand-strong:      var(--h-blue-hover);
    --text:              var(--h-text);
    --text-soft:         var(--h-muted);
    --text-muted:        var(--h-muted-dark);
    --paper:             var(--h-bg);
    --paper-deep:        #e1ebf7;
    --surface:           var(--h-surface);
    --rule:              var(--h-line);
    --rule-strong:       var(--h-line-strong);
    --font-body:         var(--h-font);
    --font-display:      var(--h-head);
    --font-serif:        var(--h-head);
    --radius-sm:         var(--h-r-s);
    --radius-md:         var(--h-r-m);
    --radius-lg:         var(--h-r-l);
    --rail:              1px;
}

@media (min-width: 768px) {
    :root {
        --h-gutter: 32px;
        --h-section-y: 128px;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: clip;
    background-color: var(--h-bg);
    color: var(--h-text);
    font-family: var(--h-font);
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: radial-gradient(circle at 50% -10%, rgba(20, 83, 158, 0.18), transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(37, 99, 235, 0.10), transparent 42%),
        radial-gradient(circle at 15% 65%, rgba(20, 83, 158, 0.08), transparent 45%);
    will-change: transform;
    transform: translateZ(0);
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    background: var(--h-brand);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--h-r-s);
    z-index: 1000;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--h-head);
    color: var(--h-text);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--h-brand); text-decoration: none; transition: color 0.2s var(--h-ease); }
a:hover { color: var(--h-blue-hover); }
img, video { max-width: 100%; height: auto; display: block; }

.wrap, .container {
    width: 100%;
    max-width: var(--h-wrap);
    margin-inline: auto;
    padding-inline: var(--h-gutter);
}

.section {
    padding-top: clamp(48px, 8vw, 84px);
    padding-bottom: clamp(48px, 8vw, 84px);
    position: relative;
}

.pane, .card {
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-l);
    background: var(--h-surface);
    box-shadow: 0 4px 24px -4px rgba(20, 83, 158, 0.07);
}

.hair { height: 1px; background: var(--h-line); }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--h-r-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge--blue {
    background: var(--h-blue-soft);
    color: var(--h-brand);
    border: 1px solid var(--h-blue-border);
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 120;
    pointer-events: none;
}
.progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--h-brand), #2563eb);
    transition: width 0.1s linear;
}

/* ---- Plovoucí navigace (Masthead) --------------------------------------- */
.mast {
    position: sticky;
    top: 10px;
    z-index: 100;
    padding: 0 16px;
    pointer-events: none;
}
.mast__wrapper {
    pointer-events: auto;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 0;
}
.mast__inner {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 14px 6px 18px;
    border-radius: var(--h-r-full);
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(20, 83, 158, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(20, 83, 158, 0.08);
}

.mast__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--h-text);
    text-decoration: none;
}
/* Logo akademie nahrazuje textový nápis, proto nese název webu v alt textu.
   Výška drží lištu v původních 52 px, v patičce může být logo větší. */
.mast__logo-img {
    display: block;
    width: auto;
    height: 34px;
}
.foot__brand .mast__logo-img { height: 46px; }
@media (min-width: 768px) {
    .mast__logo-img { height: 40px; }
}

.mast__nav {
    display: none;
    align-items: center;
    gap: 22px;
}
.mast__link {
    color: var(--h-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.18s;
}
.mast__link:hover { color: var(--h-brand); }

.mast__actions {
    display: none;
    align-items: center;
    gap: 16px;
}
.logout-form {
    display: inline-flex;
    margin: 0;
}
.mast__login {
    color: var(--h-muted);
    font-size: 13px;
    font-weight: 500;
}
.mast__login:hover { color: var(--h-brand); }

.mast__menu { display: block; position: relative; }
.mast__menu-btn {
    list-style: none;
    padding: 8px 12px;
    border-radius: var(--h-r-full);
}
.mast__menu-btn::-webkit-details-marker { display: none; }
.mast__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(88vw, 320px);
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: var(--h-r-m);
    background: #ffffff;
    border: 1px solid var(--h-line-strong);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(20, 83, 158, 0.15);
}
.mast__panel .mast__link {
    padding: 10px 4px;
    border-bottom: 1px solid var(--h-line);
}
.mast__panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

@media (min-width: 900px) {
    .mast__nav { display: flex; }
    .mast__actions { display: flex; }
    .mast__menu { display: none; }
}

/* ---- Tlačítka ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 600 14.5px/1 var(--h-font);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s var(--h-ease), border-color 0.2s var(--h-ease), color 0.2s var(--h-ease), box-shadow 0.2s var(--h-ease), transform 0.2s var(--h-ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--h-brand);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 16px var(--h-blue-glow);
}
.btn--primary:hover {
    background: var(--h-blue-hover);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 8px 24px rgba(20, 83, 158, 0.35);
}

.btn--secondary {
    background: #ffffff;
    color: var(--h-text);
    border-color: var(--h-line-strong);
    box-shadow: 0 2px 8px rgba(20, 83, 158, 0.04);
}
.btn--secondary:hover {
    background: #f8fafc;
    border-color: var(--h-line-hover);
    color: var(--h-brand);
}

.btn--ghost {
    background: transparent;
    color: var(--h-text);
    border-color: var(--h-line-strong);
}
.btn--ghost:hover {
    background: rgba(20, 83, 158, 0.06);
    border-color: var(--h-line-hover);
    color: var(--h-brand);
}

.btn--sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--h-r-full);
}
.btn--lg {
    min-height: 52px;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 14px;
}
.btn--block {
    display: flex;
    width: 100%;
}
.btn__arrow {
    transition: transform 0.2s var(--h-ease);
}
.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ---- Formuláře ---------------------------------------------------------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.field__label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--h-text);
}
.field__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--h-line-strong);
    background: #ffffff;
    font: 500 15px/1.5 var(--h-font);
    color: var(--h-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input:focus {
    border-color: var(--h-brand);
    box-shadow: 0 0 0 4px rgba(20, 83, 158, 0.12);
}
.field__input::placeholder {
    color: var(--h-muted-dark);
}
textarea.field__input {
    min-height: 120px;
    resize: vertical;
}

.field--check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--h-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}
.field--check input[type='checkbox'] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--h-brand);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-note {
    font-size: 13px;
    color: var(--h-muted);
    line-height: 1.5;
    margin-top: 14px;
    text-align: center;
}
.honeypot { display: none !important; }

/* Informace o reCAPTCHA pod chráněnými formuláři (Captcha::notice); plovoucí
   odznak Googlu místo ní skrýváme — Google to s touto informací povoluje. */
.captcha-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--h-muted);
    text-align: left;
}
.captcha-note__icon {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: var(--h-green, #059669);
}
.captcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.captcha-note a:hover { color: var(--h-brand); }
.grecaptcha-badge { visibility: hidden !important; }

/* Text jen pro čtečky obrazovky (např. legenda skupiny, kterou vizuálně nese nadpis). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.field__hint {
    font-size: 13px;
    color: var(--h-muted);
    line-height: 1.45;
}
.field__hint:empty { display: none; }
.field__error {
    font-size: 13px;
    font-weight: 600;
    color: var(--h-danger);
    line-height: 1.45;
}
.field__optional {
    font-weight: 500;
    color: var(--h-muted);
}
.field__input[aria-invalid='true'] {
    border-color: var(--h-danger);
}
.field__input[aria-invalid='true']:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.notice {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
}
.notice--err {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: var(--h-danger);
}
.notice--ok {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: var(--h-green);
}
.notice--info {
    background: var(--h-blue-soft);
    border: 1px solid var(--h-blue-border);
    color: var(--h-brand);
}

/* ---- Patička (Footer — Dark Navy Anchor) -------------------------------- */
.foot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #091322;
    color: #94a3b8;
    padding: clamp(48px, 8vw, 80px) 0 32px;
    margin-top: auto;
}
.foot__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
    margin-bottom: 48px;
}
.foot__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    margin-bottom: 16px;
    text-decoration: none;
}
.foot__brand:hover {
    color: #ffffff;
}
.foot__tagline {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 20px;
}

/* Povinná identifikace provozovatele (OSVČ) – § 435 občanského zákoníku. */
.foot__ident {
    max-width: 34ch;
    margin-bottom: 22px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.7;
    font-style: normal;
}
.foot__ident-name {
    color: #94a3b8;
    font-weight: 600;
}

.foot__col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 16px;
}
.foot__links {
    display: grid;
    gap: 10px;
}
.foot__link {
    font-size: 13.5px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.18s;
}
.foot__link:hover {
    color: #ffffff;
}
.foot__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #64748b;
}
/* Autoři webu — podpis, ne reklama: uvození zůstává tlumené, jména jsou
   čitelná (kontrast přes 12:1 vůči pozadí patičky). */
.foot__authors {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #7c8ba1;
}
.foot__author {
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(203, 213, 225, 0.4);
    transition: color 0.18s, border-color 0.18s;
}
.foot__author:hover,
.foot__author:focus-visible {
    color: #ffffff;
    border-color: currentColor;
}
.foot__authors-sep {
    color: #64748b;
}
@media (max-width: 960px) {
    .foot__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .foot__inner {
        grid-template-columns: 1fr;
    }
    .foot__bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ---- Studentský Dashboard (Sjednocený s vizuální identitou akademie) --- */

body.page-dashboard {
    background-color: var(--h-bg);
    color: var(--h-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.page-dashboard > main#obsah {
    flex: 1 0 auto;
}

.dash {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* 1. Integrated Application Topbar */
.dash__topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--h-line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(20, 83, 158, 0.06);
}
.dash__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
}

.dash__topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.dash__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--h-text);
    flex-shrink: 0;
}
.dash__brand-img {
    display: block;
    width: auto;
    height: 34px;
}

.dash__sep {
    color: var(--h-line-strong);
    font-size: 14px;
    user-select: none;
}
.dash__course-picker {
    min-width: 0;
}
.dash__course-title {
    font-family: var(--h-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--h-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 320px;
}

/* Center Live Progress */
.dash__topbar-center {
    flex: 1;
    max-width: 320px;
    min-width: 160px;
}
.dash__progress-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--h-muted);
    margin-bottom: 4px;
}
.dash__progress-stat strong {
    color: var(--h-text);
}
.dash__progress-pct {
    font-weight: 700;
    color: var(--h-brand);
    font-family: var(--h-font);
}
.dash__progress-track {
    height: 6px;
    background: rgba(20, 83, 158, 0.10);
    border-radius: var(--h-r-full);
    overflow: hidden;
}
.dash__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--h-brand), #2563eb);
    border-radius: var(--h-r-full);
    transition: width 0.3s var(--h-ease);
}

/* Zvoneček s oznámeními (vystavené diplomy) */
.dash__bell-wrap {
    position: relative;
    flex-shrink: 0;
}
.dash__bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #ffffff;
    color: var(--h-text-dim);
    border: 1px solid var(--h-line-strong);
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.dash__bell:hover,
.dash__bell-wrap.is-open .dash__bell {
    background: var(--h-blue-soft);
    border-color: var(--h-line-hover);
    color: var(--h-brand);
}
.dash__bell .icon {
    width: 19px;
    height: 19px;
}
/* Počet nepřečtených. Sedí na hraně zvonečku, proto záporné odsazení. */
.dash__bell-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: var(--h-r-full);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.dash__bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: min(500px, calc(100vw - 32px));
    background: var(--h-surface);
    border: 1px solid var(--h-line-strong);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(12, 25, 44, 0.16);
    overflow: hidden;
}
.dash__bell-panel[hidden] {
    display: none;
}
.dash__bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--h-line);
    font-size: 13px;
    color: var(--h-text);
}
.dash__bell-close {
    background: none;
    border: 0;
    padding: 0 4px;
    font-size: 20px;
    line-height: 1;
    color: var(--h-muted);
    cursor: pointer;
}
.dash__bell-close:hover {
    color: var(--h-text);
}
.dash__bell-empty {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 168px;
    padding: 24px 26px;
}
.dash__bell-empty-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.dash__bell-empty-copy strong {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--h-text);
}
.dash__bell-empty-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--h-muted);
}
.dash__bell-empty-logo {
    width: 98px;
    height: 140px;
    flex: 0 0 98px;
    object-fit: contain;
}
.dash__bell-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(420px, 60vh);
    overflow-y: auto;
}
.dash__bell-item {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--h-line);
}
.dash__bell-item:last-child {
    border-bottom: 0;
}
/* Dosud nepřečtené oznámení nese barevný proužek u levé hrany. */
.dash__bell-item.is-new {
    background: var(--h-blue-soft);
    box-shadow: inset 3px 0 0 var(--h-brand);
}
.dash__bell-item-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #d97706;
}
.dash__bell-item-icon .icon {
    width: 18px;
    height: 18px;
}
.dash__bell-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.dash__bell-item-body strong {
    font-size: 13px;
    color: var(--h-text);
}
.dash__bell-item-meta {
    font-size: 12px;
    line-height: 1.5;
    color: var(--h-muted);
}
.dash__bell-item-action {
    align-self: flex-start;
    margin-top: 6px;
}

@media (max-width: 640px) {
    /* Na úzkém displeji se panel roztáhne pod celou lištu, ne jen pod ikonu. */
    .dash__bell-panel {
        position: fixed;
        top: auto;
        right: 16px;
        left: 16px;
        width: auto;
    }
    .dash__bell-empty {
        gap: 16px;
        min-height: 140px;
        padding: 20px;
    }
    .dash__bell-empty-logo {
        width: 70px;
        height: 100px;
        flex-basis: 70px;
    }
}

@media (max-width: 400px) {
    .dash__bell-empty {
        align-items: flex-start;
    }
    .dash__bell-empty-logo {
        width: 60px;
        height: 86px;
        flex-basis: 60px;
    }
}

/* Right User Controls */
.dash__topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.dash__admin-badge {
    font-size: 11px;
    font-weight: 700;
    background: #ffffff;
    color: var(--h-brand);
    border: 1px solid var(--h-line-strong);
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.dash__admin-badge:hover {
    background: var(--h-blue-soft);
    border-color: var(--h-brand);
}
.dash__user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--h-blue-soft);
    color: var(--h-brand);
    border: 1px solid var(--h-blue-border);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}
.dash__user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--h-text);
}
.dash__plan-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--h-r-full);
    letter-spacing: .03em;
    background: var(--h-blue-soft);
    color: var(--h-brand);
    border: 1px solid var(--h-blue-border);
}
.dash__plan-badge--pro {
    background: var(--h-gold-soft);
    color: var(--h-gold);
    border-color: var(--h-gold-border);
}
.dash__logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--h-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.dash__logout .icon {
    width: 14px;
    height: 14px;
}
.dash__logout:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

/* 2. Workspace 2-Column Grid */
.dash__workspace-wrap {
    padding-top: 28px;
    padding-bottom: 56px;
}
/* Uvítání po zaplacení; mezeru pod ním už drží odsazení pracovní plochy. */
.dash__welcome-wrap {
    padding-top: 24px;
}
.dash__welcome {
    margin-bottom: 0;
}
.dash__welcome-wrap + .dash__workspace-wrap {
    padding-top: 20px;
}
.dash__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    /* Nástěnka se zprávami sedí pod lekcí, osnova drží celou výšku vpravo. */
    grid-template-areas:
        "stage curriculum"
        "board curriculum";
    gap: 28px;
    align-items: start;
}

/* 3. Main Learning Stage */
.dash__stage {
    grid-area: stage;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Theater */
.dash__theater {
    background: #091322;
    border: 1px solid rgba(20, 83, 158, 0.20);
    border-radius: var(--h-r-m);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 32px rgba(20, 83, 158, 0.12);
}
.dash__player-wrap {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #091322;
}
.dash__video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}
.dash__video-external {
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
}
.dash__video-external h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.dash__video-external p {
    color: #94a3b8;
    font-size: 13.5px;
    margin-bottom: 18px;
}
.dash__video-empty {
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
    max-width: 440px;
}
.dash__video-empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 83, 158, 0.35);
    color: #60a5fa;
    margin: 0 auto 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.dash__video-empty-icon .icon {
    width: 22px;
    height: 22px;
}
.dash__video-empty h3 {
    color: #ffffff;
    font-family: var(--h-head);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.dash__video-empty p {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* Active Lesson Action & Info Bar */
.dash__lesson-bar {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-m);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 24px -4px rgba(20, 83, 158, 0.07);
}
.dash__lesson-meta {
    flex: 1;
    min-width: 0;
}
.dash__module-crumb {
    font-size: 12px;
    font-weight: 700;
    color: var(--h-brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.dash__active-title {
    font-family: var(--h-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--h-text);
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.dash__duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--h-muted);
    font-weight: 500;
}
.dash__duration-pill .icon { width: 13px; height: 13px; }

.dash__lesson-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.dash__btn-complete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--h-brand);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px var(--h-blue-glow);
    transition: all .18s var(--h-ease);
}
.dash__btn-complete:hover {
    background: var(--h-blue-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(20, 83, 158, 0.35);
}
.dash__btn-complete.is-completed {
    background: var(--h-green);
    border-color: var(--h-green);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}
.dash__btn-complete.is-completed:hover {
    background: #047857;
}
.dash__complete-icon {
    display: grid;
    place-items: center;
}
.dash__complete-icon .icon { width: 14px; height: 14px; }

.dash__stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash__stepper .btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid var(--h-line-strong);
    color: var(--h-text);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20, 83, 158, 0.04);
}
.dash__stepper .btn:hover {
    background: var(--h-surface-hover);
    border-color: var(--h-brand);
    color: var(--h-brand);
}

/* Panels (Notes, Materials) */
.dash__content-panel,
.dash__panel {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-m);
    padding: 22px 26px;
    box-shadow: 0 4px 24px -4px rgba(20, 83, 158, 0.07);
}
.dash__section-title,
.dash__panel-title {
    font-family: var(--h-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash__section-title .icon,
.dash__panel-title .icon {
    width: 17px;
    height: 17px;
    color: var(--h-brand);
}
.dash__prose {
    font-size: 15px;
    line-height: 1.68;
    color: var(--h-text-dim);
}

.dash__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.dash__section-header .dash__section-title {
    margin-bottom: 0;
}
.dash__mat-count {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--h-brand);
    background: var(--h-blue-soft);
    border: 1px solid var(--h-blue-border);
    padding: 3px 9px;
    border-radius: var(--h-r-full);
}

/* Materials Download / Links List */
.dash__materials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dash__mat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: #ffffff;
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-s);
    text-decoration: none;
    color: var(--h-text);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    box-shadow: 0 2px 8px rgba(20, 83, 158, 0.03);
}
.dash__mat-item:hover {
    background: #ffffff;
    border-color: var(--h-brand);
    box-shadow: 0 4px 16px rgba(20, 83, 158, 0.08);
    transform: translateY(-1px);
}
.dash__mat-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--h-font);
    background: var(--h-blue-soft);
    color: var(--h-brand);
    border: 1px solid var(--h-blue-border);
}
.dash__mat-badge .icon {
    width: 19px;
    height: 19px;
}
.dash__mat-badge--link {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.dash__mat-badge--pdf {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.dash__mat-badge--zip,
.dash__mat-badge--rar,
.dash__mat-badge--7z {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.dash__mat-badge--doc,
.dash__mat-badge--docx {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}
.dash__mat-badge--xls,
.dash__mat-badge--xlsx,
.dash__mat-badge--csv {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.dash__mat-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dash__mat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--h-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    transition: color .12s ease;
}
.dash__mat-item:hover .dash__mat-name {
    color: var(--h-brand);
}
.dash__mat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--h-muted);
    line-height: 1.2;
}

.dash__mat-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--h-blue-soft);
    border: 1px solid var(--h-blue-border);
    color: var(--h-brand);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all .15s ease;
}
.dash__mat-cta .icon {
    width: 14px;
    height: 14px;
    transition: transform .15s ease;
}
.dash__mat-item:hover .dash__mat-cta {
    background: var(--h-brand);
    border-color: var(--h-brand);
    color: #ffffff;
}
.dash__mat-item:hover .dash__mat-cta .icon {
    transform: translate(1px, -1px);
}
.dash__mat-empty {
    font-size: 13.5px;
    color: var(--h-muted);
    font-style: italic;
    margin: 0;
    padding: 8px 0;
}

/* 4. Curriculum Sidebar */
.dash__curriculum {
    grid-area: curriculum;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dash__curriculum-box {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-m);
    overflow: hidden;
    box-shadow: 0 4px 24px -4px rgba(20, 83, 158, 0.07);
}
.dash__curriculum-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--h-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--h-surface-hover);
}
.dash__curriculum-head h3 {
    font-family: var(--h-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0;
}
.dash__curriculum-count {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--h-r-full);
    background: var(--h-blue-soft);
    border: 1px solid var(--h-blue-border);
    color: var(--h-brand);
}

.dash__modules-tree {
    max-height: 560px;
    overflow-y: auto;
}
.dash__module-group {
    border-bottom: 1px solid var(--h-line);
}
.dash__module-group:last-child {
    border-bottom: none;
}
.dash__module-header {
    padding: 10px 16px;
    background: rgba(20, 83, 158, 0.03);
    border-bottom: 1px solid rgba(20, 83, 158, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dash__module-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dash__module-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--h-brand);
    letter-spacing: .06em;
}
.dash__module-name {
    font-family: var(--h-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--h-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash__module-stat {
    font-size: 11px;
    font-weight: 600;
    color: var(--h-muted);
    font-family: var(--h-font);
    flex-shrink: 0;
}

.dash__module-lessons {
    display: flex;
    flex-direction: column;
}
.dash__lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(20, 83, 158, 0.06);
    color: var(--h-text-dim);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background .12s ease, color .12s ease;
    width: 100%;
    outline: none;
}
.dash__lesson-item:last-child {
    border-bottom: none;
}
.dash__lesson-item:hover {
    background: rgba(20, 83, 158, 0.04);
    color: var(--h-brand);
}
.dash__lesson-item.is-active {
    background: var(--h-blue-soft);
    color: var(--h-brand);
    font-weight: 600;
    border-left: 3px solid var(--h-brand);
}
.dash__item-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--h-line-strong);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--h-muted);
    font-family: var(--h-font);
}
.dash__item-check .icon { display: none; }
.dash__lesson-item.is-done .dash__item-check {
    background: var(--h-green);
    border-color: var(--h-green);
    color: #ffffff;
}
.dash__lesson-item.is-done .dash__item-check .icon {
    display: block;
    width: 12px;
    height: 12px;
}
.dash__lesson-item.is-done .dash__item-idx {
    display: none;
}
.dash__item-title-wrap {
    flex: 1;
    min-width: 0;
}
.dash__item-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.dash__item-dur {
    display: block;
    font-size: 11px;
    color: var(--h-muted-dark);
}
.dash__item-media-type {
    color: var(--h-muted-dark);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dash__item-media-type .icon { width: 13px; height: 13px; }

/* 5. PRO Benefit: 1:1 Consultation Widget */
.dash__pro-box {
    background: linear-gradient(180deg, #ffffff 0%, rgba(180, 83, 9, 0.04) 100%);
    border: 1px solid var(--h-gold-border);
    border-radius: var(--h-r-m);
    padding: 18px 20px;
    box-shadow: 0 4px 24px -4px rgba(180, 83, 9, 0.08);
}
.dash__pro-head {
    margin-bottom: 14px;
}

.dash__pro-head h3 {
    font-family: var(--h-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0;
}

.dash__pro-head p {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--h-muted);
    margin: 0 0 10px;
}
.dash__pro-remaining {
    font-size: 12px;
    color: var(--h-text);
    background: #ffffff;
    border: 1px solid var(--h-gold-border);
    border-radius: 6px;
    padding: 5px 10px;
}
.dash__pro-remaining strong {
    color: var(--h-gold);
    font-weight: 700;
}

.dash__call-msg {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
}
.dash__call-msg--ok {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.dash__call-msg--err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.dash__call-exhausted {
    font-size: 12.5px;
    color: var(--h-muted);
    background: var(--h-surface-hover);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--h-line);
}
#callOpen .icon { width: 15px; height: 15px; }

/* Přehled vlastních rezervací pod tlačítkem */
.dash__call-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash__call-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: 6px;
    padding: 6px 10px;
}
.dash__call-when { color: var(--h-text); font-weight: 600; }
.dash__call-state {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--h-r-full);
    white-space: nowrap;
}
.dash__call-state--requested { background: #fffbeb; color: #92400e; }
.dash__call-state--confirmed { background: #f0fdf4; color: #166534; }
.dash__call-state--rejected  { background: #fef2f2; color: #991b1b; }

/* ---- Rezervační kalendář (modální okno) --------------------------------- */
.call-dialog {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--h-line-strong);
    border-radius: var(--h-r-l);
    background: var(--h-surface);
    color: var(--h-text);
    box-shadow: 0 24px 64px -12px rgba(12, 25, 44, 0.35);
}
.call-dialog::backdrop {
    background: rgba(12, 25, 44, 0.55);
}
.call-dialog__inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}
.call-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.call-dialog__head h2 {
    font-family: var(--h-head);
    font-size: 18px;
    margin: 0 0 4px;
}
.call-dialog__head p {
    font-size: 13px;
    color: var(--h-muted);
    margin: 0;
}
.call-dialog__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-full);
    background: var(--h-surface);
    color: var(--h-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.call-dialog__close:hover { color: var(--h-text); border-color: var(--h-line-hover); }
.call-dialog__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}
.call-dialog__nav .btn { min-width: 40px; }
.call-dialog__nav .btn:disabled { opacity: .35; cursor: default; }

.call-cal {
    display: grid;
    grid-template-columns: 44px repeat(var(--call-cols, 4), minmax(0, 1fr));
    gap: 6px;
    min-height: 260px;
}
.call-cal[aria-busy="true"] { opacity: .5; }
.call-cal__day {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--h-text);
    padding-bottom: 2px;
}
.call-cal__hour {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--h-muted);
    font-variant-numeric: tabular-nums;
}
.call-slot {
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid var(--h-line-strong);
    background: var(--h-surface);
    font-size: 12px;
    font-weight: 600;
    color: var(--h-muted-dark);
    cursor: default;
    transition: background .15s, border-color .15s, color .15s;
}
.call-slot--free {
    color: var(--h-green);
    border-color: rgba(5, 150, 105, 0.35);
    background: var(--h-green-soft);
    cursor: pointer;
}
.call-slot--free:hover { border-color: var(--h-green); }
.call-slot--free:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }
.call-slot.is-selected {
    background: var(--h-blue);
    border-color: var(--h-blue);
    color: #ffffff;
}
.call-slot--pending,
.call-slot--mine-pending {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
.call-slot--taken,
.call-slot--mine {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}
.call-slot--mine-pending,
.call-slot--mine { box-shadow: inset 0 0 0 2px currentColor; }
.call-slot--closed,
.call-slot--day-used {
    background: var(--h-surface-hover);
    border-style: dashed;
}

.call-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--h-muted);
}
.call-legend li { display: flex; align-items: center; gap: 6px; }
.call-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid;
}
.call-legend__dot--free     { background: var(--h-green-soft); border-color: rgba(5, 150, 105, 0.35); }
.call-legend__dot--selected { background: var(--h-blue); border-color: var(--h-blue); }
.call-legend__dot--pending  { background: #fffbeb; border-color: #fcd34d; }
.call-legend__dot--taken    { background: #fee2e2; border-color: #f87171; }

.call-dialog .field { margin: 0; }
.call-dialog .field__label small { font-weight: 400; color: var(--h-muted); }
.call-dialog__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--h-line);
}
.call-dialog__picked { font-size: 13px; color: var(--h-text-dim); }

@media (max-width: 480px) {
    .call-dialog__inner { padding: 16px; }
    .call-cal { grid-template-columns: 36px repeat(var(--call-cols, 4), minmax(0, 1fr)); gap: 4px; }
    .call-slot { font-size: 11px; min-height: 34px; }
    .call-dialog__foot .btn { width: 100%; }
}

/* =========================================================================
   5. Nástěnka: zprávy a články od akademie
   Příspěvek je <details>; zavřený ukazuje nadpis, perex a datum, otevřený
   celý text. Nepřečtený nese modrý proužek u levé hrany, stejně jako
   oznámení ve zvonečku.
   ========================================================================= */
.dash__board {
    grid-area: board;
    min-width: 0;
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-r-m);
    box-shadow: 0 4px 24px -4px rgba(20, 83, 158, 0.07);
    overflow: hidden;
}
.dash__board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--h-line);
    background: var(--h-surface-hover);
}
.dash__board-heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-family: var(--h-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--h-text);
}
.dash__board-heading h2 .icon {
    width: 18px;
    height: 18px;
    color: var(--h-brand);
}
.dash__board-heading p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--h-muted);
}
.dash__board-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dash__board-badge {
    padding: 3px 10px;
    border-radius: var(--h-r-full);
    background: var(--h-blue-soft);
    border: 1px solid var(--h-blue-border);
    color: var(--h-brand);
    font-size: 11.5px;
    font-weight: 700;
}
.dash__board-empty {
    margin: 0;
    padding: 24px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--h-muted);
}
.dash__board-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dash__post {
    border-bottom: 1px solid var(--h-line);
}
.dash__post:last-child {
    border-bottom: 0;
}
.dash__post.is-new {
    background: var(--h-blue-soft);
    box-shadow: inset 3px 0 0 var(--h-brand);
}
.dash__post-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}
.dash__post-summary::-webkit-details-marker {
    display: none;
}
.dash__post-summary:hover {
    background: rgba(20, 83, 158, 0.04);
}
.dash__post-details[open] > .dash__post-summary {
    border-bottom: 1px dashed var(--h-line);
}
.dash__post-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    padding: 4px 9px;
    border-radius: var(--h-r-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.dash__post-kind .icon {
    width: 13px;
    height: 13px;
}
.dash__post-kind--message {
    background: var(--h-blue-soft);
    border: 1px solid var(--h-blue-border);
    color: var(--h-brand);
}
.dash__post-kind--article {
    background: var(--h-gold-soft);
    border: 1px solid var(--h-gold-border);
    color: var(--h-gold);
}
.dash__post-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.dash__post-title {
    font-family: var(--h-head);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--h-text);
}
.dash__post-pin {
    margin-right: 2px;
}
.dash__post-perex {
    font-size: 13px;
    line-height: 1.55;
    color: var(--h-text-dim);
}
.dash__post-meta {
    font-size: 12px;
    color: var(--h-muted);
}
.dash__post-state {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}
.dash__post-new {
    padding: 2px 8px;
    border-radius: var(--h-r-full);
    background: var(--h-brand);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
}
.dash__post-chevron {
    display: inline-flex;
    color: var(--h-muted);
    transition: transform 0.2s var(--h-ease);
}
.dash__post-chevron .icon {
    width: 18px;
    height: 18px;
}
.dash__post-details[open] .dash__post-chevron {
    transform: rotate(180deg);
}
.dash__post-body {
    padding: 16px 20px 20px 20px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--h-text-dim);
    overflow-wrap: anywhere;
}

/* Odkaz na nástěnku v horní liště, vedle zvonečku. */

@media (max-width: 900px) {
    /* Na úzké liště zůstane jen ikona s počtem. */
    
}
@media (max-width: 640px) {
    .dash__post-summary {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .dash__post-main {
        flex-basis: 100%;
        order: 3;
    }
    .dash__post-state {
        margin-left: auto;
    }
    .dash__post-body {
        padding: 14px 16px 18px;
    }
    .dash__board-head {
        padding: 14px 16px;
    }
}

/* Minimal Student Footer (Dark Navy Anchor) */
.dash-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #091322;
    color: #94a3b8;
    padding: 24px 0;
    margin-top: auto;
}
.dash-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}
.dash-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-footer__logo {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--h-brand), #1d6ed8);
    color: #ffffff;
    font-family: var(--h-head);
    font-weight: 800;
    font-size: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(20, 83, 158, 0.35);
}
.dash-footer__title {
    font-family: var(--h-head);
    font-weight: 700;
    color: #ffffff;
}
.dash-footer__title small {
    color: #94a3b8;
    font-weight: 400;
}
.dash-footer__links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.dash-footer__links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
}
.dash-footer__links a:hover {
    color: #ffffff;
}
.dash-footer__copy {
    font-size: 12px;
    color: #64748b;
}
/* Autoři webu — stejné ladění jako v patičce veřejné části. */
.dash-footer__authors {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #7c8ba1;
}
.dash-footer__authors a {
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(203, 213, 225, 0.4);
    transition: color .15s, border-color .15s;
}
.dash-footer__authors a:hover,
.dash-footer__authors a:focus-visible {
    color: #ffffff;
    border-color: currentColor;
}

/* Responsive */
@media (max-width: 1024px) {
    .dash__workspace {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage"
            "curriculum"
            "board";
    }
}
@media (max-width: 768px) {
    .dash__topbar-inner {
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .dash__topbar-center {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .dash__lesson-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .dash__lesson-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .dash-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dash-footer__links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .dash__mat-item {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 10px;
    }
    .dash__mat-details {
        flex: 1 1 calc(100% - 56px);
    }
    .dash__mat-cta {
        width: 100%;
        justify-content: center;
        margin-top: 2px;
    }
    .dash__lesson-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .dash__btn-complete {
        justify-content: center;
    }
    .dash__stepper {
        justify-content: space-between;
    }
    .dash__stepper .btn {
        flex: 1;
        text-align: center;
    }
}
