:root {
  --bg: #f5f0e6;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #5c677d;
  --border: #dbe1ec;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --radius: 24px;
  --font: "Segoe UI", system-ui, sans-serif;
  --red: #e74c5a;
  --blue: #3b82f6;
  --green: #22c55e;
  --cyan: #06b6d4;
  --yellow: #f59e0b;
  --purple: #8b5cf6;
  --orange: #f97316;
  --pink: #ffb6c1;
  --light-blue: #87ceeb;
  --light-green: #90ee90;
  --light-cyan: #e0ffff;
  --beige: #f5deb3;
  --light-purple: #d8bfd8;
  --light-orange: #ffdab9;
}

[data-theme="dark"] {
  --bg: #0f1524;
  --surface: #171f31;
  --text: #eef2ff;
  --muted: #9aa7c0;
  --border: #2a3550;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] body {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230f1524"/></svg>');
}

[data-theme="dark"] .user-panel {
  background: var(--surface);
}

[data-theme="dark"] .search-row input {
  border-color: var(--border);
  background: var(--bg);
}

[data-theme="dark"] .sign {
  color: var(--text);
  background: var(--surface);
}

[data-theme="dark"] .s-rektorat { background: #3a1f1f; border-color: #8b3943; }
[data-theme="dark"] .s-fakulty { background: #1f2a3a; border-color: #39688b; }
[data-theme="dark"] .s-kurzy { background: #1f3a26; border-color: #398b4d; }
[data-theme="dark"] .s-rozvrh { background: #1f2a3a; border-color: #39688b; }
[data-theme="dark"] .s-nauctura { background: #3a2f1f; border-color: #8b6d39; }
[data-theme="dark"] .s-vypisky { background: #2a1f3a; border-color: #5b398b; }
[data-theme="dark"] .s-doucovani { background: #3a241f; border-color: #8b4d39; }
[data-theme="dark"] .s-uzivatelske { background: #262a26; border-color: #3b4c3b; }

[data-theme="dark"] .protokol-zmeny del {
  background: #5c1f1f;
  color: #fecaca;
}
[data-theme="dark"] .protokol-zmeny ins {
  background: #1f5c2e;
  color: #bbf7d0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f0e6"/></svg>');
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.page { max-width: 1100px; margin: 0 auto; padding: 1rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  z-index: -1;
}
.brand h1 { margin: 0; font-size: 2rem; font-weight: 800; }
.brand h1 a { text-decoration: none; background: linear-gradient(135deg, #ff6b35 0%, #f75c03 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }

.search label { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.search-row { display: flex; gap: .5rem; margin-top: .25rem; }
.search-row input {
  flex: 1;
  border: 2px solid #e0d5c5;
  border-radius: 12px;
  padding: .75rem 1rem;
  background: #fff9f0;
  color: var(--text);
  font-size: 1rem;
}
.search-row button, .btn-primary, .btn-secondary, .btn-outline, .hippo {
  border: 0;
  border-radius: 12px;
  padding: .75rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.search-row button:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.search-row button, .btn-primary { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
.btn-secondary { background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); color: var(--text); }
.btn-outline { background: transparent; border: 2px solid #e0d5c5; color: var(--text); }
.hippo { width: 100%; background: var(--purple); color: white; margin-top: .75rem; }

.search-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.search-tags span {
  font-size: .75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .15rem .55rem;
  color: var(--muted);
}

.user-panel { min-width: 180px; background: white; padding: 1rem; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.user-top { display: flex; gap: .75rem; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  background-size: cover; background-position: center;
  object-fit: cover;
}
.avatar.sm { width: 32px; height: 32px; border-radius: 8px; }
img.avatar {
  background: transparent;
}
.user-actions { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; flex-direction: column; }
.user-actions .btn-primary { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.user-actions .btn-secondary { background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); }
.notif-wrap { position: relative; margin-top: .5rem; }
.notif-dropdown {
  position: absolute; right: 0; top: 110%;
  width: 280px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem; z-index: 20;
}
.notif-item { padding: .5rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.notif-item.unread { background: rgba(59,130,246,.08); }

/* NOVÉ - CEDULY V NAVIGACI */
.signs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 24px 6px 18px;
    justify-items: center;
    justify-content: center;
    max-width: 100%;
}

.signs-rektorat {
  display: grid; /* Použijeme grid pro konzistenci */
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin-top: -.5rem;
}

.signs-rektorat .sign {
  grid-column: unset; /* Odstraníme grid omezení pro podnavigaci */
  padding: 10px 12px 16px; /* Menší padding pro podnavigaci */
  font-size: .9rem; /* Menší font */
}

.sign {
    text-decoration: none;
    font-weight: 800;
    color: #1a1a1a;
    background: #fff;
    padding: 14px 10px 20px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(20, 26, 40, 0.12);
    transform: rotate(-1deg);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 180px;
    width: 100%;
}

.sign::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 6px;
  height: 18px;
  background: #cfa975;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #ad7f49;
}

.sign:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 0 16px 26px rgba(20, 26, 40, 0.16);
}

.s-rektorat { background: #fff1f1; border: 2px solid #FFD1DC; }
.s-fakulty { background: #f1f6ff; border: 2px solid #ADD8E6; }
.s-kurzy { background: #f1fff5; border: 2px solid #B2FBA5; }
.s-rozvrh { background: #f1fbff; border: 2px solid #ADD8E6; }
.s-nauctura { background: #fff7e8; border: 2px solid #FFFACD; }
.s-vypisky { background: #f7f1ff; border: 2px solid #C3B1E1; }
.s-doucovani { background: #fff2e8; border: 2px solid #FFDAB9; }
.s-uzivatelske { background: #bfd4bf; border: 2px solid #5b725c; }

/* Mobile-optimized navigation signs */
@media (max-width: 720px) {
    .signs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        margin: 16px 0 12px;
        padding: 0 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .signs::-webkit-scrollbar {
        display: none;
    }
    
    .sign {
        padding: 8px 12px 10px;
        font-size: 0.85rem;
        min-width: 100px;
        max-width: 120px;
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        scroll-snap-align: start;
    }
    
    .sign::after {
        display: none;
    }
    
    .sign:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
}

/* Layout pro rektorát s levým postranním panelem - starší 3sloupcový layout (zachováno pro zpětnou kompatibilitu) */
.layout.rektorat-layout {
  display: grid;
  grid-template-columns: 220px 2fr 1fr;
  gap: 1rem;
}

/* Nový layout pro rektorát - širší obsah bez pravého sloupce */
.layout.rektorat-fullwidth {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

/* Levý postranní panel - kompaktní */
.rektor-sidebar {
    background: var(--surface);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-group-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-group li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(59, 130, 246, 0.08);
}

.sidebar-link.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    font-weight: 600;
}

/* Barvy pro sidebar odkazy podle tříd */
.sidebar-link.s-rektorat:hover { background: rgba(239, 68, 68, 0.08); }
.sidebar-link.s-rektorat.active { background: rgba(239, 68, 68, 0.12); border-color: #ef4444; }

.sidebar-link.s-fakulty:hover { background: rgba(59, 130, 246, 0.08); }
.sidebar-link.s-fakulty.active { background: rgba(59, 130, 246, 0.12); border-color: #3b82f6; }

.sidebar-link.s-kurzy:hover { background: rgba(34, 197, 94, 0.08); }
.sidebar-link.s-kurzy.active { background: rgba(34, 197, 94, 0.12); border-color: #22c55e; }

.sidebar-link.s-nauctura:hover { background: rgba(245, 158, 11, 0.08); }
.sidebar-link.s-nauctura.active { background: rgba(245, 158, 11, 0.12); border-color: #f59e0b; }

.sidebar-link.s-uzivatelske:hover { background: rgba(91, 114, 92, 0.08); }
.sidebar-link.s-uzivatelske.active { background: rgba(91, 114, 92, 0.12); border-color: #5b725c; }

.sidebar-link.s-doucovani:hover { background: rgba(249, 115, 22, 0.08); }
.sidebar-link.s-doucovani.active { background: rgba(249, 115, 22, 0.12); border-color: #f97316; }
.main-col, .side-col { display: flex; flex-direction: column; gap: 1rem; }

.feature, .panel, .catalog, .schedule, .stats, .birthdays, .mini-calendar, .activity, .testimonial {
  background: var(--surface);
  border: none;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: center; }
.feature h2 { margin: 0 0 .35rem; }
.feature .muted, .muted { color: var(--muted); }
.feature-media .poster {
  min-height: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(139,92,246,.25));
}
.link { color: var(--blue); font-weight: 600; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel h3, .catalog h3, .schedule h3 { margin-top: 0; }
.note-list { margin: 0; padding-left: 1.1rem; }
.catalog-list, .schedule-grid { display: grid; gap: .5rem; }
.catalog-item, .schedule-item {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 12px;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stat { text-align: center; }

.dashboard-hero { grid-template-columns: 1.4fr .6fr; gap: 1.5rem; }
.dashboard-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-actions .action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}
.dashboard-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 1.2rem; }
.status-panel .status-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.status-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.16);
}
.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.dashboard-list { display: grid; gap: 0.85rem; }
.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #fff9e6;
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.dashboard-item-title {
  font-weight: 700;
  color: #7c2d12;
}
.dashboard-item-meta {
  margin-top: 0.35rem;
  color: #7c2d12;
  font-size: 0.92rem;
}
.dashboard-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.status-v_redakci, .status-na_posouzeni, .status-k_doplneni, .status-vydatelny, .status-cekam_na_vydani, .status-vydany { padding: 0.35rem 0.75rem; border-radius: 999px; color: white; font-size: 0.82rem; font-weight: 700; }
.status-na_posouzeni { background: #f59e0b; }
.status-v_redakci { background: #3b82f6; }
.status-k_doplneni { background: #f97316; }
.status-vydatelny { background: #22c55e; }
.status-cekam_na_vydani { background: #8b5cf6; }
.status-vydany { background: #10b981; }
.activity-list { display: grid; gap: 0.85rem; }
.dashboard-sidebar .dashboard-links,
.dashboard-sidebar .dashboard-stats { list-style: none; padding: 0; margin: 0; }
.dashboard-sidebar .dashboard-links li,
.dashboard-sidebar .dashboard-stats li { margin-bottom: 0.9rem; }
.dashboard-sidebar .dashboard-links li a { display: block; padding: 0.75rem 0; }
.dashboard-sidebar .dashboard-stats li strong { display: block; font-size: 1.2rem; }
.stat strong { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: .85rem; }

.mini-calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.day b { display: block; font-size: 1.3rem; }
.day i { display: block; font-size: .75rem; color: var(--muted); }

.activity-head, .activity-row {
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: .9rem; padding: .35rem 0;
}
.activity-head { color: var(--muted); border-bottom: 1px solid var(--border); }

.pill-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.pill-grid span {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: .25rem .6rem; font-size: .85rem;
}

.question-form label { display: block; margin: .65rem 0 .25rem; font-weight: 600; }
.question-form input, .question-form select, .question-form textarea, .auth-form input {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: .65rem .75rem; background: var(--bg); color: var(--text);
}
.question-form textarea { min-height: 120px; resize: vertical; }

.footer {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin: 1.5rem 0 .5rem; color: var(--muted); font-size: .9rem;
}
.footer a { text-decoration: none; }

.flash { padding: .75rem 1rem; border-radius: 12px; margin: .75rem 0; }
.flash.success { background: rgba(34,197,94,.15); }
.flash.error { background: rgba(231,76,90,.15); }

.badge {
  display: inline-block; font-size: .72rem; padding: .1rem .45rem;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
}

/* NFP protokoly */
.nfp {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0.75rem 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.nfp:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}
.nfp-stripe {
  display: none;
}
.nfp[data-color="green"] { border-left: 2px solid #22c55e; }
.nfp[data-color="red"] { border-left: 2px solid #ef4444; }
.nfp[data-color="orange"] { border-left: 2px solid #f59e0b; }
.nfp[data-color="purple"] { border-left: 2px solid #8b5cf6; }
.nfp[data-color="blue"] { border-left: 2px solid #3b82f6; }
.nfp[data-color="gray"] { border-left: 2px solid #94a3b8; }
.nfp-body { padding: 1rem; }
.nfp-head {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.nfp-user {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-shrink: 0;
}
.nfp-header-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.nfp-desc {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}
.nfp-time {
  color: var(--muted);
  font-size: 0.75rem;
  cursor: help;
}
.nfp-toggle {
  flex-shrink: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.nfp-toggle:hover {
  opacity: 1;
}
.nfp-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-top: 0.875rem;
}
.nfp-diff-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
}
.nfp-diff-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nfp-diff pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.nfp-diff pre.empty-value {
  color: var(--muted);
  font-style: italic;
}
.nfp-diff pre.filled-value {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.1);
  color: #166534;
  font-weight: 500;
}
.nfp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.nfp-link {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.nfp-link:hover {
  text-decoration: underline;
}

/* Kompaktní NFP */
.nfp-compact {
  margin: 0.5rem 0;
  border-radius: 6px;
}
.nfp-compact .nfp-head {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
}
.nfp-compact .nfp-user {
  flex-shrink: 0;
}
.nfp-compact .nfp-header-right {
  flex-grow: 1;
}
.nfp-compact .nfp-desc {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
}
.nfp-compact .nfp-time {
  font-size: 0.7rem;
}
.nfp-compact .nfp-toggle {
  padding: 0.25rem 0.4rem;
  font-size: 0.7rem;
  border-radius: 4px;
}
.hidden {
  display: none;
}
.btn-sm {
  padding: .35rem .7rem;
  font-size: .85rem;
}


.auth-box {
  max-width: 420px; margin: 2rem auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.auth-form label { display: block; margin: .65rem 0 .25rem; }
.theme-toggle {
  position: fixed; bottom: 1rem; right: 1rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: .5rem .85rem; cursor: pointer;
}

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: .55rem; text-align: left; }

/* Naučtura - články */
.article-header { margin-bottom: 1.5rem; }
.article-header h2 { margin: 0 0 .75rem; }
.article-meta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.article-author { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.article-status { background: var(--blue); color: white; }
.laurel-points { background: var(--yellow); color: var(--text); }
.article-body { font-size: 1.05rem; line-height: 1.7; }
.article-body h1, .article-body h2, .article-body h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.article-body p { margin: .75rem 0; }
.article-source { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0; padding: 1rem; background: var(--bg); border-radius: 12px; }

.article-filters .status-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.article-filters .badge { cursor: pointer; transition: all .2s; }
.article-filters .badge:hover { opacity: .8; }
.article-filters .badge.active { background: var(--blue); color: white; border-color: var(--blue); }

.catalog-item-main { display: flex; flex-direction: column; gap: .25rem; }
.catalog-item-meta { display: flex; align-items: center; }

.form-actions { display: flex; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: var(--surface);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}
.cookie-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.cookie-buttons .btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.cookie-buttons .btn-secondary {
  background: transparent;
  border: 2px solid var(--border);
}
.cookie-buttons .btn-outline {
  background: transparent;
}

/* Kurz – nástěnka */
.course-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.course-board-head h3 { margin: 0; }
.board-form { margin-bottom: 1.5rem; }
.board-list { display: grid; gap: 1rem; }
.board-entry {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.board-entry-head { margin-bottom: .75rem; }
.board-entry-author {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.board-entry-author time {
  display: block;
  font-size: .85rem;
}
.board-entry-body { margin: 0; }

/* Kurz – fórum */
.forum-section { margin-bottom: 1rem; }
.forum-compose textarea { min-height: 140px; }
.forum-post {
  scroll-margin-top: 5rem;
  transition: box-shadow .3s ease;
}
.forum-post:target {
  box-shadow: 0 0 0 2px var(--blue), 0 8px 24px rgba(59, 130, 246, .15);
}
.forum-post.is-pinned {
  border-left: 4px solid #ffb6c1;
}
.forum-post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.forum-post-author {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.forum-post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted, #5c677d);
  margin-top: .15rem;
}
.forum-pin-badge {
  background: #ffb6c1;
  color: #1a2233;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .78rem;
}
.forum-permalink {
  flex-shrink: 0;
  opacity: .55;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: .25rem;
  border-radius: 8px;
}
.forum-permalink:hover {
  opacity: 1;
  background: var(--bg);
}
.forum-post-body { margin: 0; }
.forum-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .85rem;
}
.forum-tag {
  background: #d8bfd8;
  color: #1a2233;
  border: none;
}
.forum-reactions {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--border);
}
.forum-reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.forum-reaction-form { margin: 0; }
.forum-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: .3rem .65rem;
  cursor: pointer;
  font-size: .95rem;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.forum-reaction-btn:hover {
  background: var(--bg);
  transform: translateY(-1px);
}
.forum-reaction-btn.is-active {
  border-color: var(--blue);
  background: rgba(59, 130, 246, .12);
}
.forum-reaction-count {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted, #5c677d);
}
.forum-reaction-details {
  margin-top: .65rem;
  font-size: .88rem;
}
.forum-reaction-details summary {
  cursor: pointer;
  color: var(--muted, #5c677d);
}
.forum-reaction-voters {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.forum-reaction-voters li {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.forum-post-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.forum-action-form { margin: 0; }
.forum-tags-form {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.forum-tags-input {
  width: 150px;
  padding: .25rem .5rem;
}
.history-list { display: grid; gap: 1rem; }

/* Nový systém protokolů NFP - podle specifikace */
.protokol {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 0.5rem 0;
    overflow: hidden;
    position: relative;
}

.protokol-druh {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.4rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.75em;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fff;
    height: 100%;
}

.protokol-druh span {
    white-space: nowrap;
}

.protokol-content {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
}

.protokol-info {
    padding: 0.5rem 1rem 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.protokol-info-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.protokol-info-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.protokol-info .profilovka {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.protokol-info .protokol-autorita {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

.protokol-info .nick {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.protokol-info .nick:hover {
    text-decoration: underline;
}

.protokol-info .odznak {
    font-size: 0.9rem;
}

.protokol-info time {
    color: var(--muted);
    font-size: 0.8rem;
    cursor: help;
}

.protokol-zmeny {
    margin: 0;
    padding: 0 1rem 0.5rem;
    font-size: 0.85rem;
}

.protokol-zmeny > div {
    margin-bottom: 0.35rem;
}

.protokol-zmeny dt {
    display: inline-block;
    font-weight: 600;
    margin-right: 0.4rem;
}

.protokol-zmeny dd {
    display: inline;
    margin: 0;
}

.protokol-zmeny del {
    background: #fecaca;
    color: #991b1b;
    padding: 0.08rem 0.25rem;
    border-radius: 3px;
    text-decoration: line-through;
}

.protokol-zmeny ins {
    background: #bbf7d0;
    color: #166534;
    padding: 0.08rem 0.25rem;
    border-radius: 3px;
    text-decoration: none;
}

.protokol-text {
    padding: 0 1rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
}

/* Naučtura - Alíkovinský styl (žlutá sekce) */
.clanek-karta {
    background: #fff9e4;
    overflow: hidden;
    margin: 1em 0;
    position: relative;
    padding: 1.5em 1.75em;
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 8px 22px rgba(131, 84, 11, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.clanek-karta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(131, 84, 11, 0.09);
}

.clanek-karta h2 {
    margin: 0 0 0.5em 0;
    font-weight: 700;
    font-size: 1.6rem;
    color: #7c2d12;
    line-height: 1.1;
}

.clanek-karta h2 a {
    color: inherit;
    text-decoration: none;
}

.clanek-karta h2 a:hover {
    color: #c2410c;
}

.clanek-karta .excerpt {
    margin: 0 0 1.5em;
    font-size: 1rem;
    line-height: 1.75em;
    color: #3b2d1a;
}

.clanek-karta .meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75em;
    align-items: center;
    font-size: 0.95rem;
    color: #7c2d12;
}

.clanek-karta .meta .author {
    font-weight: 700;
}

.clanek-karta .meta .significant {
    color: #c2410c;
    font-weight: 700;
}

.clanek-karta-souhrn {
    display: grid;
    gap: 1.1rem;
}

.clanek-karta-hlavicka {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.clanek-status-badge {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35em 0.75em;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #9a3c09;
    white-space: nowrap;
}

.clanek-status-badge.na_posouzeni,
.clanek-status-badge.vraceny_autorem,
.clanek-status-badge.cekam_na_vydani {
    background: rgba(245, 158, 11, 0.18);
    color: #ad4f00;
}

.clanek-status-badge.rozpracovany {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.clanek-status-badge.v_redakci {
    background: rgba(59, 130, 246, 0.16);
    color: #155e75;
}

.clanek-status-badge.vydatelny,
.clanek-status-badge.vydany,
.clanek-status-badge.vydany_vyznamny {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.clanek-status-badge.smazany {
    background: rgba(244, 63, 94, 0.14);
    color: #be123c;
}
/* Detail článku - Naučtura */
.clanek-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    padding: 2rem 2rem 2.25rem;
    background: linear-gradient(180deg, #fffdf5 0%, #fff7e6 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 20px 45px rgba(131, 84, 11, 0.08);
}

.clanek-detail h1 {
    grid-column: 1 / -1;
    color: #9a3c09;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.05;
}

.clanek-detail .clanek-zpet {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #7c2d12;
    font-weight: 600;
}

.clanek-detail .clanek-zpet:hover {
    color: #c2410c;
}

.clanek-detail .clanek-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 244, 214, 0.92);
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    grid-column: 1 / -1;
}

.clanek-detail .clanek-sprava-panel {
    margin: 0 0 1.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 250, 232, 0.95);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 1rem;
}

.clanek-detail .clanek-sprava-nadpis {
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.85rem;
}

.clanek-detail .clanek-sprava-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.clanek-detail .clanek-sprava-akce {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clanek-manazer-nav {
    margin: 0;
    padding: 1.25rem;
    background: rgba(255, 245, 214, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    grid-column: 2;
}

.clanek-manazer-nav h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #92400e;
}

.clanek-manazer-seznam {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.clanek-manazer-seznam li {
    display: block;
}

.clanek-manazer-odkaz,
.clanek-manazer-tlacitko {
    display: block;
    width: 100%;
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.clanek-manazer-odkaz {
    background: #fff;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.clanek-manazer-odkaz:hover,
.clanek-manazer-tlacitko:hover {
    transform: translateY(-1px);
}

.clanek-manazer-tlacitko {
    background: #f59e0b;
    color: #fff;
    border-color: #d97706;
}

.clanek-manazer-tlacitko-druhe {
    background: #22c55e;
    border-color: #16a34a;
}

.clanek-manazer-tlacitko-outline {
    background: transparent;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.clanek-manazer-akce { margin: 0; }

.clanek-manazer-hlavicka h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #92400e;
}

.clanek-manazer-odkazy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clanek-manazer-odkazy .btn-outline {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(245, 158, 11, 0.3);
}

.inline-form { display: inline-block; }

.originality-result {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 1rem;
}

.originality-result.clear {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(220, 252, 231, 0.9);
}

.originality-result.warning {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(254, 226, 226, 0.95);
}

.similar-articles {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.similarity-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(203, 213, 225, 0.5);
}

.similarity-match a {
    font-weight: 700;
}

.history-page {
    display: grid;
    gap: 1.25rem;
}

.history-page .history-summary {
    padding: 1.25rem;
    border-radius: 1.1rem;
    background: #fff7e4;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.history-page .history-entry {
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid rgba(219, 229, 240, 0.8);
    border-radius: 1rem;
}

.history-page .history-entry h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.history-page .history-entry p {
    margin: 0.5rem 0 0;
    color: #334155;
}

.form-group-inline { display: inline-flex; align-items: center; gap: 0.75rem; }

@media (max-width: 1024px) {
    .clanek-detail {
        grid-template-columns: 1fr;
    }
    .clanek-manazer-nav {
        position: static;
        top: auto;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .clanek-manazer-hlavicka {
        flex-direction: column;
        align-items: stretch;
    }
    .clanek-manazer-odkazy {
        justify-content: flex-start;
    }
}
.clanek-detail .clanek-diskuse-panel {
    margin-top: 2rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: rgba(255, 248, 230, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
}

.clanek-detail .clanek-diskuse-seznam {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.clanek-detail .clanek-diskuse-komentar {
    padding: 1rem;
    background: #fff9eb;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 1rem;
}

.clanek-detail .clanek-diskuse-komentar.internal {
    background: rgba(255, 238, 218, 0.92);
    border-color: rgba(245, 158, 11, 0.3);
}

.clanek-detail .clanek-diskuse-komentar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #7c2d12;
    font-size: 0.92rem;
}

.clanek-detail .clanek-diskuse-komentar-body {
    color: #3b2d1a;
    line-height: 1.8em;
}

.clanek-detail .clanek-diskuse-komentar .badge.secondary {
    background: #7c2d12;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.clanek-detail .clanek-diskuse-formular .form-actions {
    flex-wrap: wrap;
}

.clanek-detail .clanek-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: #7c2d12;
    font-size: 0.95rem;
}

.clanek-detail .clanek-meta .date {
    color: #7c2d12;
}

.clanek-detail .clanek-autor-blok {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    color: #7c2d12;
    font-size: 0.95rem;
}

.clanek-detail .clanek-autor-blok .author {
    font-weight: 800;
}

.clanek-detail .clanek-autor-blok .significant-badge {
    background: #f59e0b;
    color: #fff;
    padding: 0.3em 0.75em;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.clanek-detail .clanek-obrazek-figure {
    margin: 0 0 1.5rem;
    padding: 0.75rem;
    background: #fffaf0;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
}

.clanek-detail .clanek-obrazek {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 18rem;
    object-fit: contain;
    border-radius: 0.9rem;
}

.clanek-detail .clanek-obrazek-figure figcaption {
    margin-top: 0.6rem;
    color: #7c2d12;
    font-size: 0.92rem;
}

.clanek-detail .clanek-content {
    font-size: 1rem;
    line-height: 1.95em;
    color: #3b2d1a;
}

.clanek-detail .clanek-content h2,
.clanek-detail .clanek-content h3 {
    color: #7c2d12;
    font-weight: 700;
}

.clanek-detail .clanek-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}

.clanek-detail .clanek-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.4rem;
}

.clanek-detail .clanek-content p,
.clanek-detail .clanek-content ul,
.clanek-detail .clanek-content ol,
.clanek-detail .clanek-content blockquote {
    margin: 1.2rem 0;
}

.clanek-detail .clanek-content ul,
.clanek-detail .clanek-content ol {
    padding-left: 1.3rem;
}

.clanek-detail .clanek-source {
    margin: 1.75rem 0 0;
    padding: 1rem 1.2rem 0.85rem;
    background: #fff8dc;
    border-left: 4px solid #f59e0b;
    color: #7c2d12;
    border-radius: 0 0.85rem 0.85rem 0;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .clanek-detail {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    .clanek-detail h1 {
        font-size: 2rem;
    }
    .clanek-detail .clanek-header {
        grid-template-columns: 1fr;
        text-align: left;
        justify-items: start;
    }
    .clanek-detail .clanek-autor-blok {
        justify-content: flex-start;
    }
}
/* Levá navigace pro Naučturu - inspirace žlutou sekcí */
.nauchtura-nav {
    background: #fff7e0;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    margin: 0.75em 0 0 0;
    box-shadow: 0 10px 20px rgba(131, 84, 11, 0.05);
}

.nauchtura-nav h4 {
    background: linear-gradient(135deg, #fef1d6 0%, #f7c948 100%);
    color: #7c2d12;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 0.9rem 1.25rem;
}

.nauchtura-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0 0.8rem 0;
}

.nauchtura-nav .clanek-manazer-nav {
    margin: 0;
    padding: 0.25rem 0 0.4rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    position: static;
    top: auto;
    align-self: auto;
    grid-column: auto;
}

.nauchtura-nav .clanek-manazer-seznam {
    display: grid;
    gap: 0.5rem;
    padding: 0;
}

.nauchtura-nav .clanek-manazer-odkaz,
.nauchtura-nav .clanek-manazer-tlacitko {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 0.8rem;
}

.nauchtura-nav .section-heading {
    padding: 0.9rem 1.25rem;
    color: #92400e;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    margin-top: 0.35rem;
    background: rgba(254, 243, 199, 0.52);
}

.nauchtura-nav .link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    color: #5f3700;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nauchtura-nav .link::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #f59e0b;
    opacity: 0.65;
}

.nauchtura-nav .link:hover {
    background: rgba(245, 158, 11, 0.1);
}

.nauchtura-nav .link.active {
    color: #ad4f00;
    background: rgba(245, 158, 11, 0.16);
}

.nauchtura-nav .link.active::before {
    background: #ad4f00;
    opacity: 1;
}

.nauchtura-nav .clanek-manazer-nav {
    margin: 0.1rem 0.75rem 0.65rem;
    padding: 0;
    box-shadow: none;
}

.nauchtura-nav .clanek-manazer-seznam {
    gap: 0.4rem;
}

.nauchtura-nav .clanek-manazer-odkaz,
.nauchtura-nav .clanek-manazer-tlacitko {
    min-height: 2.55rem;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(245, 158, 11, 0.24);
    color: #7c2d12;
}

.nauchtura-nav .clanek-manazer-tlacitko-druhe {
    background: #2f9e5b;
    border-color: #27834b;
    color: #fff;
}

.nauchtura-nav .clanek-manazer-tlacitko-outline {
    background: #fff8e8;
}

.originality-result h3 {
    margin: 0 0 0.45rem;
    color: #7c2d12;
}

.originality-result p {
    margin: 0.45rem 0;
}

.originality-external-note {
    color: #5f3700;
    font-size: 0.92rem;
}

.originality-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.clanek-author-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(146, 64, 14, 0.35);
    text-underline-offset: 0.16em;
}

.clanek-author-link:hover {
    color: #c2410c;
}

.clanek-author-external-link {
    margin-left: 0.35rem;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 700;
}

.clanek-karta-obrazek {
    width: auto;
    max-width: 100%;
    max-height: 12rem;
    object-fit: contain;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 0.8rem;
}

.course-enrollment {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(236, 253, 245, .8);
    border: 1px solid #9ed8c8;
    border-radius: 1rem .55rem 1rem .55rem;
}

.course-member-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    margin: .65rem 0;
    padding: 0;
    list-style: none;
}

.course-member-list li { padding: .25rem .55rem; background: #fff; border-radius: 999px; }
.course-member-list a { color: #166534; font-weight: 700; }
.course-enrollment-action { display: inline-block; margin: .35rem .45rem .1rem 0; }
.course-enrollment-admin { margin-top: .7rem; }
.course-enrollment-state { color: #166534; font-weight: 700; }

.clanek-karta .author a,
.dashboard-item-meta a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(124, 45, 18, 0.3);
    text-underline-offset: 0.14em;
}

.clanek-vlastnosti-formular {
    max-width: 760px;
}

.clanek-vlastnosti-formular .muted {
    margin: -0.35rem 0 1.25rem;
}

.clanek-manazer-odkaz-odmena {
    background: #edfdf3;
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.clanek-manazer-odkaz-odmena.is-penalty {
    background: #fff1f2;
    border-color: rgba(225, 29, 72, 0.28);
    color: #9f1239;
}

.clanek-odmena-formular.is-penalty {
    border-color: rgba(225, 29, 72, 0.35);
    background: #fff5f6;
}

.clanek-odmena-poznamka {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.clanek-odmena-formular.is-penalty .clanek-odmena-poznamka {
    border-color: rgba(225, 29, 72, 0.25);
    color: #9f1239;
}

.clanek-odmena-formular .btn-danger {
    background: #e11d48;
    border: 1px solid #be123c;
    color: #fff;
}

.article-reward-form .btn-danger:hover {
    background: #be123c;
}

/* Kurzy: klidnější zelená varianta pro seznam i otevřený kurz. */
.courses-page {
    --course-green: #15803d;
    --course-green-dark: #166534;
    --course-green-soft: #f0fdf4;
    --course-green-border: rgba(34, 197, 94, 0.22);
}

.courses-list-hero,
.course-detail-hero,
.courses-catalog,
.course-detail-panel,
.course-forum-post {
    border: 1px solid var(--course-green-border);
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.06);
}

.courses-list-hero,
.course-detail-hero {
    background: linear-gradient(135deg, #f6fff8 0%, #eaf9ee 100%);
}

.courses-list-hero h2,
.course-detail-hero h2,
.courses-catalog h3,
.course-detail-panel h3 {
    color: var(--course-green-dark);
}

.courses-catalog,
.course-detail-panel {
    background: linear-gradient(180deg, #fcfffc 0%, var(--course-green-soft) 100%);
}

.courses-catalog h3 {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--course-green-border);
}

.course-catalog-item {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--course-green-border);
    border-radius: 0.9rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-catalog-item:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 128, 61, 0.42);
    box-shadow: 0 9px 18px rgba(22, 101, 52, 0.09);
}

.course-catalog-item > div:first-child > a {
    color: var(--course-green-dark) !important;
}

.course-detail-hero .link,
.course-detail-panel .link,
.courses-catalog .link {
    color: var(--course-green);
}

.course-board-head {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--course-green-border);
}

.course-forum-post {
    background: #fbfffc;
}

.course-forum-post.is-pinned {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
}

.course-detail-panel .btn-primary,
.courses-page > div .btn-primary {
    background: #15803d;
    border-color: #166534;
}

.course-detail-panel .btn-primary:hover,
.courses-page > div .btn-primary:hover {
    background: #166534;
}

/* Kurzy – samostatný zelený vzhled. Tyto selektory záměrně přebíjejí obecné panely. */
body .courses-green {
    gap: 1.35rem;
}

body .courses-green .courses-green-hero {
    background: linear-gradient(135deg, #ecfdf3 0%, #d8f7e4 100%) !important;
    border: 1px solid #8dd7aa !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 14px 30px rgba(21, 128, 61, 0.12) !important;
}

body .courses-green .courses-green-hero h2,
body .courses-green .courses-green-catalog h3,
body .courses-green .courses-green-panel h3 {
    color: #14532d !important;
}

body .courses-green .courses-green-catalog,
body .courses-green .courses-green-panel {
    background: #f7fff9 !important;
    border: 1px solid #a7dfba !important;
    border-radius: 1.1rem !important;
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.08) !important;
}

body .courses-green .courses-green-catalog h3,
body .courses-green .course-board-head {
    border-bottom: 2px solid #bde9cb;
}

body .courses-green .courses-green-card {
    background: #ffffff !important;
    border: 1px solid #b7e4c4 !important;
    border-left: 5px solid #36a967 !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.05) !important;
}

body .courses-green .courses-green-card:hover {
    background: #effcf3 !important;
    border-color: #5ebc7d !important;
    box-shadow: 0 10px 22px rgba(21, 128, 61, 0.14) !important;
}

body .courses-green .courses-green-card a,
body .courses-green .courses-green-panel .link,
body .courses-green .courses-green-hero .link {
    color: #16723a !important;
}

body .courses-green .courses-green-post {
    background: #fcfffd !important;
    border: 1px solid #c5ebd0 !important;
    border-radius: 1rem !important;
}

body .courses-green .courses-green-post.is-pinned {
    background: #e9faef !important;
    border-left: 5px solid #239354 !important;
}

body .courses-green .courses-green-panel .btn-primary,
body .courses-green > div .btn-primary {
    background: #16803f !important;
    border-color: #126a34 !important;
    color: #fff !important;
}

body .courses-green .courses-green-panel .btn-primary:hover,
body .courses-green > div .btn-primary:hover {
    background: #126a34 !important;
}

/* Fakulty: modré, pevnější a o něco hranatější. */
body .faculties-page {
    gap: 1.2rem;
}

body .faculties-page > .feature,
body .faculties-page > .panel,
body .faculties-page > .catalog,
body .faculties-page > .panels > .panel,
body .faculties-page > .birthdays {
    background: linear-gradient(145deg, #f5faff 0%, #edf6ff 100%) !important;
    border: 1px solid #a9cef2 !important;
    border-radius: 0.45rem !important;
    box-shadow: 5px 5px 0 rgba(37, 99, 235, 0.1) !important;
}

body .faculties-page h2,
body .faculties-page h3,
body .faculties-page h4 {
    color: #1e4f91;
}

body .faculties-page .catalog-item {
    background: #fff !important;
    border: 1px solid #9dc7ef !important;
    border-left: 5px solid #3182ce !important;
    border-radius: 0.35rem !important;
}

body .faculties-page .link,
body .faculties-page .catalog-item {
    color: #1d5fa7;
}

body .faculties-page .btn-primary {
    background: #2563b8;
    border-color: #1d4e89;
}

/* Výpisky: fialové, měkce zaoblené a klidné. */
body .notes-page {
    gap: 1.35rem;
}

body .notes-page > .feature,
body .notes-page > .panel,
body .notes-page > .catalog,
body .notes-page > .birthdays {
    background: linear-gradient(135deg, #fcf9ff 0%, #f3ebff 100%) !important;
    border: 1px solid #d3b8f2 !important;
    border-radius: 1.6rem !important;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.09) !important;
}

body .notes-page h2,
body .notes-page h3,
body .notes-page h4 {
    color: #6b21a8;
}

body .notes-page .catalog-item {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid #decaf8 !important;
    border-radius: 1.1rem !important;
}

body .notes-page .link {
    color: #7e22ce;
}

body .notes-page .btn-primary {
    background: #7e22ce;
    border-color: #6b21a8;
}

/* Dotazy: oranžové, živější a nepravidelně zaoblené. */
body .questions-page {
    gap: 1.3rem;
}

body .questions-page > .feature,
body .questions-page > .panel,
body .questions-page > div.panel,
body .questions-page > .question-form {
    background: linear-gradient(145deg, #fffaf2 0%, #fff0d9 100%) !important;
    border: 1px solid #f4bb72 !important;
    border-radius: 1.3rem 0.65rem 1.5rem 0.8rem !important;
    box-shadow: 0 10px 23px rgba(194, 101, 7, 0.1) !important;
}

body .questions-page h2,
body .questions-page h3,
body .questions-page h4 {
    color: #a84908;
}

body .questions-page .question-card {
    background: #fffdf9 !important;
    border: 1px solid #f6c887 !important;
    border-radius: 1.1rem 0.5rem 1.25rem 0.65rem !important;
    box-shadow: 4px 5px 0 rgba(234, 134, 24, 0.1) !important;
}

body .questions-page .question-card:nth-child(3n + 2) {
    border-radius: 0.55rem 1.25rem 0.65rem 1.15rem !important;
}

body .questions-page .link,
body .questions-page .question-title {
    color: #b45309;
}

body .questions-page .btn-primary {
    background: #d66b12;
    border-color: #b45309;
}

/* Rozvrh: svěží tyrkysová osa a karty jednotlivých bloků. */
body .schedule-page .schedule-hero,
body .schedule-page .schedule-panel,
body .schedule-tips {
    background: linear-gradient(135deg, #f0fdfa 0%, #dcf7f2 100%) !important;
    border: 1px solid #8cd9cd !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.1) !important;
}

body .schedule-page h2,
body .schedule-page h3,
body .schedule-tips h4 {
    color: #0f766e;
}

body .schedule-page .schedule-item {
    background: #fff !important;
    border: 1px solid #a8e4db !important;
    border-radius: 0.85rem !important;
    border-left: 5px solid #14b8a6 !important;
}

/* Rektorát: důstojný vínový akcent a pevná navigace. */
body .rectorate-page > .feature,
body .rectorate-page > .panel,
body .rectorate-page > .stats {
    background: linear-gradient(145deg, #fff8f8 0%, #ffeded 100%) !important;
    border: 1px solid #efb4b8 !important;
    border-radius: 0.7rem !important;
    box-shadow: 5px 5px 0 rgba(153, 27, 27, 0.1) !important;
}

body .rectorate-page h2,
body .rectorate-page h3,
body .rectorate-page h4 {
    color: #8f1d2c;
}

body .rectorate-page .stat {
    background: rgba(255,255,255,.78);
    border: 1px solid #f1c2c5;
    border-radius: 0.55rem;
}

body .rectorate-sidebar {
    background: #fff5f5;
    border: 1px solid #edb8be;
    border-radius: 0.7rem;
    box-shadow: 5px 5px 0 rgba(153, 27, 27, 0.09);
}

body .rectorate-sidebar .sidebar-group-title,
body .rectorate-sidebar .sidebar-link {
    color: #8f1d2c;
}

/* Nadhled: tmavší inkoustový základ s mentolovými přehledovými prvky. */
body .insight-page > .feature,
body .insight-page > .panel,
body .insight-page > .stats {
    background: linear-gradient(145deg, #f5fffd 0%, #e5f8f2 100%) !important;
    border: 1px solid #9ed8c8 !important;
    border-radius: 1.35rem 0.65rem 1.35rem 0.65rem !important;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.1) !important;
}

body .insight-page h2,
body .insight-page h3,
body .insight-page h4 {
    color: #134e4a;
}

body .insight-page .stat {
    background: rgba(255,255,255,.82);
    border: 1px solid #b8e4d7;
    border-radius: 1rem 0.55rem 1rem 0.55rem;
}

body .insight-sidebar {
    background: linear-gradient(180deg, #ecfdf8 0%, #ddf6ef 100%);
    border: 1px solid #9ed8c8;
    border-radius: 1.2rem 0.6rem 1.2rem 0.6rem;
}

body .insight-sidebar .sidebar-group-title,
body .insight-sidebar .sidebar-link {
    color: #115e59;
}

/* Profil: osobní modrofialová plocha s měkkými kartami. */
body .profile-page > .panel {
    background: linear-gradient(145deg, #fafaff 0%, #eef2ff 100%) !important;
    border: 1px solid #c8d0f7 !important;
    border-radius: 1.25rem 1.25rem 0.65rem 1.25rem !important;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08) !important;
}

body .profile-page h2,
body .profile-page h3,
body .profile-page h4 {
    color: #4338ca;
}

body .profile-page .badge {
    border-radius: 999px;
    box-shadow: 0 3px 0 rgba(67, 56, 202, .16);
}

body .profile-page .avatar {
    outline: 4px solid rgba(129, 140, 248, .2);
    outline-offset: 3px;
}

body .profile-sidebar {
    background: linear-gradient(180deg, #f5f3ff 0%, #e9ecff 100%);
    border: 1px solid #cbd2fa;
    border-radius: 1.25rem 0.65rem 1.25rem 0.65rem;
}

body .profile-sidebar .sidebar-link,
body .profile-sidebar .sidebar-group-title {
    color: #4338ca;
}

/* Konta: tmavší petrolej a zlaté účetní akcenty. */
body .accounts-page > .panel {
    background: linear-gradient(145deg, #f2fffc 0%, #e1f5ef 100%) !important;
    border: 1px solid #9bcfc2 !important;
    border-radius: 0.8rem 1.3rem 0.8rem 1.3rem !important;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1) !important;
}

body .accounts-page h2,
body .accounts-page h3 {
    color: #115e59;
}

body .accounts-page .note-list li {
    padding: 0.8rem 0.95rem;
    margin: 0.6rem 0;
    background: rgba(255,255,255,.72);
    border-left: 4px solid #d4a72c;
    border-radius: 0.45rem;
}

body .accounts-page .btn-primary,
body .accounts-page .btn-outline {
    border-radius: 0.35rem 0.95rem 0.35rem 0.95rem;
}

body .accounts-page .avatar {
    border: 3px solid #d4a72c;
    box-shadow: 4px 4px 0 rgba(17, 94, 89, .16);
}

/* Hlídáček: noční modř, světelné alerty a ostřejší dohledový panel. */
body .watcher-page > .feature,
body .watcher-page > .panel {
    background: linear-gradient(145deg, #f6faff 0%, #e7f0fb 100%) !important;
    border: 1px solid #aac8ea !important;
    border-radius: 0.6rem !important;
    box-shadow: 5px 5px 0 rgba(30, 64, 175, 0.1) !important;
}

body .watcher-page h2,
body .watcher-page h3,
body .watcher-page h4 {
    color: #1e3a8a;
}

body .watcher-sidebar {
    background: #eff6ff;
    border: 1px solid #aac8ea;
    border-radius: 0.6rem;
}

body .watcher-sidebar .sidebar-link,
body .watcher-sidebar .sidebar-group-title {
    color: #1e3a8a;
}

body .watcher-page .feature-media .poster {
    background: repeating-linear-gradient(135deg, #dbeafe 0 12px, #bfdbfe 12px 24px);
    border: 2px solid #60a5fa;
    border-radius: 0.35rem;
}

body .watcher-page .btn-outline {
    border-radius: 0.3rem;
    border-color: #60a5fa;
}

/* Statistiky článků: vlastní přehledová deska redakce. */
.article-stats-page {
    gap: 1rem;
}

.article-stats-hero,
.article-stats-panel {
    padding: 1.35rem;
    background: linear-gradient(145deg, #fffdf5 0%, #fff4d8 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(131, 84, 11, 0.08);
}

.article-stats-hero h2,
.article-stats-panel h3 {
    margin: .45rem 0;
    color: #7c2d12;
}

.article-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.75rem;
}

.article-stats-grid article {
    padding: 1rem;
    background: #fff9e7;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 0.9rem;
}

.article-stats-grid strong,
.article-stats-grid span {
    display: block;
}

.article-stats-grid strong {
    color: #a84b08;
    font-size: 1.55rem;
}

.article-stats-grid span {
    margin-top: 0.25rem;
    color: #7c5a23;
    font-size: .86rem;
}

.article-visitor-list,
.article-recent-views {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-visitor {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem .9rem;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: .75rem;
}

.article-visitor a {
    color: #92400e;
    font-weight: 700;
}

.article-stats-note {
    margin: 0;
    padding: .8rem 1rem;
    color: #7c5a23;
    background: #fff8df;
    border-left: 4px solid #f59e0b;
    border-radius: .25rem .7rem .7rem .25rem;
}

.article-stats-days {
    display: flex;
    align-items: end;
    gap: .65rem;
    min-height: 6rem;
}

.article-stats-days div {
    display: grid;
    flex: 1;
    min-width: 3rem;
    gap: .3rem;
    text-align: center;
}

.article-stats-days strong {
    display: grid;
    min-height: 2rem;
    place-items: center;
    color: #7c2d12;
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
    border-radius: .65rem .65rem .2rem .2rem;
}

.article-stats-days span { color: #7c5a23; font-size: .78rem; }

.user-info-warning {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: .85rem 1rem;
    border: 1px solid;
    border-radius: .75rem 1.1rem .75rem 1.1rem;
}

.user-info-warning p { margin: .2rem 0 0; }
.user-info-warning-red { color: #991b1b; background: #fff1f2; border-color: #fca5a5; }
.user-info-warning-green { color: #166534; background: #ecfdf5; border-color: #86efac; }
.user-info-warning-red .btn-outline { border-color: #ef4444; color: #991b1b; }
.user-info-warning-green .btn-outline { border-color: #22c55e; color: #166534; }

.info-warning-admin .question-form { max-width: 720px; }
.dashboard-item-scheduled { border-left: 4px solid #8b5cf6; }

/* Protokol změn: název pole a diff musí být čitelné i v historii článku. */
.protokol-zmeny > div {
    display: grid;
    grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.7rem 0.85rem;
    margin: 0.45rem 0;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 0.7rem;
    background: rgba(255, 250, 235, 0.78);
}

.protokol-zmeny dt {
    color: #7c2d12;
    font-weight: 800;
}

.protokol-zmeny dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Naučturové protokoly: záznam je vlastní žlutá kartička, ne jen holý řádek. */
.protokol {
    background: linear-gradient(145deg, #fffdf5 0%, #fff5dc 100%);
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 1rem .65rem 1rem .65rem;
    box-shadow: 0 8px 20px rgba(146, 64, 14, .08);
}

.protokol-content {
    min-width: 0;
}

.protokol-info {
    background: rgba(255, 255, 255, .42);
    border-bottom: 1px dashed rgba(180, 83, 9, .2);
}

.protokol-info .nick {
    color: #92400e;
}

.protokol-info .protokol-autorita {
    border-radius: 999px;
    box-shadow: 0 2px 0 rgba(124, 45, 18, .14);
}

.protokol-zmeny del,
.protokol-zmeny ins {
    display: inline;
    padding: .12rem .32rem;
    border-radius: .38rem;
    line-height: 1.8;
}

.protokol-zmeny del {
    background: #fee2e2;
    color: #991b1b;
}

.protokol-zmeny ins {
    background: #dcfce7;
    color: #166534;
}

.text-diff-context {
    color: #78716c;
}

.text-diff-ellipsis {
    color: #b45309;
    font-weight: 900;
    letter-spacing: .08em;
}

.clanek-perex {
    margin: 1rem 0 1.25rem;
    padding: .9rem 1rem;
    background: #fff8df;
    border-left: 4px solid #f59e0b;
    border-radius: .2rem .75rem .75rem .2rem;
    color: #713f12;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .protokol-zmeny > div {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* Redakční dashboard používá stejný vizuální jazyk jako Naučtura. */
.nauchtura-dashboard-hero,
.nauchtura-dashboard-panel {
    background: linear-gradient(180deg, #fffdf5 0%, #fff7e6 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(131, 84, 11, 0.06);
}

.nauchtura-dashboard-hero {
    padding: 1.5rem;
}

.nauchtura-dashboard-hero h2,
.nauchtura-dashboard-panel h3 {
    color: #7c2d12;
}

.nauchtura-dashboard-overview .stat {
    padding: 1.1rem 0.85rem;
    background: #fff9e4;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 1rem;
    box-shadow: 0 6px 16px rgba(131, 84, 11, 0.04);
}

.nauchtura-dashboard-overview .stat strong {
    color: #ad4f00;
    font-size: 1.8rem;
}

.nauchtura-dashboard-panel {
    padding: 1.35rem;
}

.nauchtura-dashboard-panel .status-card {
    background: rgba(255, 255, 255, 0.75);
}

.nauchtura-dashboard-summary {
    margin-top: 1rem;
    padding: 1.15rem 1.25rem;
    background: #fff7e0;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(131, 84, 11, 0.05);
}

.nauchtura-dashboard-summary h4 {
    margin: 0 0 0.85rem;
    color: #7c2d12;
}

.nauchtura-dashboard-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.nauchtura-dashboard-summary dl div {
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.62);
    border-radius: 0.75rem;
}

.nauchtura-dashboard-summary dt {
    color: #7c2d12;
    font-size: 0.8rem;
    font-weight: 600;
}

.nauchtura-dashboard-summary dd {
    margin: 0.2rem 0 0;
    color: #ad4f00;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (max-width: 480px) {
    .nauchtura-dashboard-summary dl {
        grid-template-columns: 1fr;
    }
}

/* Formulář pro nový článek - Naučtura */
.clanek-formular {
    background: #fffbea;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.clanek-formular h2 {
    color: #a15907;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 1rem;
}

.clanek-formular input,
.clanek-formular textarea,
.clanek-formular select {
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.clanek-formular input:focus,
.clanek-formular textarea:focus,
.clanek-formular select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0.4rem rgba(245, 158, 11, 0.12);
}

.clanek-formular .sources-section {
    border-color: rgba(245, 158, 11, 0.25);
}

.clanek-formular .form-actions {
    border-top-color: rgba(245, 158, 11, 0.35);
}
.clanek-formular {
    background: #FFF8D5;
    background: rgba(255, 255, 225, 0.667);
    border: 2px solid #f59e0b;
    border-radius: 0.75em;
    padding: 1.5em;
    margin: 2em 0;
}

.clanek-formular h2 {
    color: #d97706;
    font-weight: bold;
    font-size: 140%;
    margin: 0 0 1em;
}

.clanek-formular .form-group {
    margin-bottom: 1.25em;
}

.clanek-formular label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    font-size: 100%;
    color: #333;
}

.clanek-formular input,
.clanek-formular textarea,
.clanek-formular select {
    width: 100%;
    border: 1px solid #d97706;
    border-radius: 0.5em;
    padding: 0.75em 1em;
    background: #FFF;
    color: #333;
    font-size: 100%;
    transition: border-color 0.2s ease;
}

.clanek-formular input:focus,
.clanek-formular textarea:focus,
.clanek-formular select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0.5em rgba(245, 158, 11, 0.1);
}

.clanek-formular textarea {
    min-height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 100%;
    resize: vertical;
}

.clanek-formular .sources-section {
    background: #FFF;
    border-radius: 0.5em;
    padding: 1em;
    margin-top: 0.5em;
    border: 1px solid #d97706;
    border-color: rgba(217, 119, 6, 0.333);
}

.clanek-formular .form-actions {
    display: flex;
    gap: 0.75em;
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px dotted #f59e0b;
    flex-wrap: wrap;
}

/* Tipy pro psaní - Alíkovinský styl */
.tips-panel {
    background: #FFF8D5;
    background: rgba(255, 255, 225, 0.667);
    border-radius: 0.75em;
    padding: 1em;
    margin: 0.75em 0 0 0;
    box-shadow: 0 0 1.5em rgba(238, 51, 17, 0.06);
}

.tips-panel h4 {
    margin: 0 0 0.75em;
    font-size: 120%;
    font-weight: bold;
    color: #E31;
    border-bottom: 2px dotted #E31;
    padding-bottom: 0.5em;
}

.tips-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-panel li {
    margin: 0.5em 0;
    padding-left: 1.5em;
    position: relative;
    font-size: 100%;
    color: #333;
}

.tips-panel li::before {
    content: "»  ";
    position: absolute;
    left: 0;
    color: #E31;
    font-weight: bold;
}

/* Stavy článků v tip panelu */
.status-item {
    margin: 1em 0;
    padding: 0.75em;
    background: #FFF;
    border-radius: 0.5em;
    border: 1px solid #2C66B1;
    border-color: rgba(44, 102, 177, 0.333);
}

.status-item strong {
    display: block;
    margin-bottom: 0.5em;
    font-size: 110%;
    color: #E31;
}

.status-item p {
    margin: 0;
    font-size: 100%;
    color: #333;
    line-height: 1.4em;
}

/* Úkoly kurzů – zelená studijní karta navazující na vzhled kurzů. */
.course-tasks {
    border-color: #78a86b;
    background: linear-gradient(135deg, #fbfff8, #f0faea);
}

.course-task-card {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #b9dcae;
    border-left: .45rem solid #4f8b45;
    border-radius: .35rem 1rem 1rem .35rem;
    box-shadow: 0 .2rem .7rem rgba(52, 111, 48, .09);
}

.course-task-head,
.course-task-admin {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.course-task-head h4 { margin: 0; color: #285a2a; }
.course-task-description { margin: .75rem 0; }
.course-task-submit { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed #b9dcae; }
.course-task-submit small { display: block; margin-top: .55rem; }
.course-task-admin { margin-top: .8rem; padding-top: .7rem; border-top: 1px dotted #b9dcae; }
.course-task-admin form { margin: 0; }
.course-task-create { margin-top: 1.5rem; padding: 1rem; background: rgba(216, 241, 207, .58); border: 1px dashed #5d9b53; border-radius: 1rem .35rem 1rem .35rem; }
.course-task-create h4 { margin-top: 0; color: #285a2a; }
