:root {
  --bg-1: #f4f7ff;
  --bg-2: #e8f6ff;
  --bg-3: #fff4e8;
  --brand-1: #ff5b57;
  --brand-2: #ffb347;
  --brand-3: #4f7dff;
  --accent: #25b39a;
  --panel: #ffffff;
  --panel-soft: #f6f8ff;
  --ink: #1b1b1b;
  --muted: #5b6470;
  --shadow: 0 18px 34px rgba(20, 26, 40, 0.12);
  --radius: 18px;
  --title-font: "Trebuchet MS", "Segoe UI", sans-serif;
  --body-font: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-scale: 1;
}

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

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  font-size: calc(16px * var(--font-scale));
  position: relative;
  background: url("Copilot_20260206_171250.png") center/cover no-repeat;
  min-height: 100vh;
}

body::before,
body::after {
  display: none;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px 48px;
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75)),
    radial-gradient(circle at 0% 0%, #e9f6ff 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, #fff0da 0%, transparent 60%);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid #eef1f7;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mascot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border: 3px solid #fff;
}

.mascot svg {
  width: 110px;
  height: 110px;
}

.brand-text h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 34px;
  letter-spacing: 0.5px;
  color: var(--brand-1);
  text-shadow: 1px 1px 0 #fff;
}

.brand-text p {
  margin: 6px 0 0;
  color: #0d3d62;
  font-weight: 700;
}

.search {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e8edf6;
}

.search label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #17609b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search input {
  border: 2px solid #cbe3ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.search input:focus {
  border-color: var(--brand-2);
}

.search button {
  border: none;
  background: linear-gradient(180deg, #ffd15f, #ffae2f);
  color: #6a3700;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 0 #e19118;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.search-tags span {
  background: #edf5ff;
  color: #17609b;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.user-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid #e8edf6;
}

.user-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 50px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(180deg, #8fd3ff, #3f87ff);
  border: 2px solid #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.user-panel small {
  display: block;
  color: #6a6a6a;
}

.user-stats {
  margin: 10px 0;
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 14px;
}

.user-stats b {
  color: #1e4b2a;
}

.user-actions {
  display: grid;
  gap: 6px;
}

.btn-primary,
.btn-secondary {
  border: none;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-tertiary {
  border: 1px solid #d6def0;
  background: #f3f6ff;
  color: #2e4c7c;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #ff7f3a, #ff5b2a);
  color: #fff;
  box-shadow: 0 6px 0 #d9481c;
}

.btn-secondary {
  background: linear-gradient(180deg, #ffe29b, #f3c35b);
  color: #6a3a00;
  box-shadow: 0 6px 0 #c89b46;
}

.btn-outline {
  border: 1px solid #d3def5;
  background: #f7f9ff;
  color: #2e4c7c;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.role-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #405067;
}

.chip {
  border: 1px solid #d7e1f7;
  background: #f1f5ff;
  color: #2d4f89;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chip.active {
  background: #2f66ff;
  color: #fff;
  border-color: #2f66ff;
}

.signs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 24px 6px 18px;
}

.sign {
  text-decoration: none;
  font-weight: 800;
  color: #1a1a1a;
  background: #fff;
  padding: 14px 10px 20px;
  text-align: center;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.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);
}

.signs-books .sign {
  background: none;
  border: none;
  box-shadow: none;
  padding: 22px 10px 18px;
  transform: translateY(0);
  z-index: 0;
}

.signs-books .sign::before,
.signs-books .sign::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 8px;
  width: 48%;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%),
    var(--book-cover, #f7f1ff);
  border: 2px solid var(--book-edge, #d9c7f2);
  border-radius: 12px;
  box-shadow: 0 10px 16px rgba(20, 26, 40, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: -1;
}

.signs-books .sign::before {
  left: 4px;
  transform-origin: left center;
  transform: rotateY(12deg);
}

.signs-books .sign::after {
  right: 4px;
  transform-origin: right center;
  transform: rotateY(-12deg);
}

.signs-books .sign:hover::before {
  transform: rotateY(6deg);
}

.signs-books .sign:hover::after {
  transform: rotateY(-6deg);
}

.signs-books .sign:hover {
  transform: translateY(-4px);
}

.signs-books .sign.is-active {
  transform: translateY(-6px);
}

.signs-books .sign.is-active::before,
.signs-books .sign.is-active::after {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%),
    var(--book-page, #fffaf3);
  box-shadow: 0 14px 22px rgba(20, 26, 40, 0.16);
  transform: rotateY(0deg);
}

.s-red { background: #fff1f1; border: 2px solid #FFD1DC; }
.s-blue { background: #f1f6ff; border: 2px solid #ADD8E6; }
.s-green { background: #f1fff5; border: 2px solid #B2FBA5; }
.s-cyan { background: #f1fbff; border: 2px solid #ADD8E6; }
.s-yellow { background: #fff7e8; border: 2px solid #FFFACD; }
.s-purple { background: #f7f1ff; border: 2px solid #C3B1E1; }
.s-orange { background: #fff2e8; border: 2px solid #FFDAB9; }

.signs-books .s-red {
  --book-cover: #ffe2e8;
  --book-edge: #f0b6c4;
  --book-page: #fff6f8;
  color: #7a2b3c;
}

.signs-books .s-blue {
  --book-cover: #e4efff;
  --book-edge: #b7cff7;
  --book-page: #f6f9ff;
  color: #234a7a;
}

.signs-books .s-green {
  --book-cover: #e6fff0;
  --book-edge: #b6f0c8;
  --book-page: #f4fff8;
  color: #1f6a4c;
}

.signs-books .s-cyan {
  --book-cover: #e4f7ff;
  --book-edge: #b6ddf2;
  --book-page: #f4fbff;
  color: #1f5c78;
}

.signs-books .s-yellow {
  --book-cover: #fff2d9;
  --book-edge: #f5d39a;
  --book-page: #fff9ef;
  color: #7a4d12;
}

.signs-books .s-purple {
  --book-cover: #efe6ff;
  --book-edge: #cbb7ef;
  --book-page: #f8f3ff;
  color: #5a3a86;
}

.signs-books .s-orange {
  --book-cover: #ffe9dd;
  --book-edge: #f2c2a8;
  --book-page: #fff7f2;
  color: #7a3f1e;
}

.layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.main-col,
.side-col {
  display: grid;
  gap: 18px;
}

.feature {
  background: var(--panel);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.feature h2 {
  margin-top: 0;
  font-size: 22px;
}

.feature .muted {
  color: var(--muted);
}

.feature .link {
  color: #1a6bd8;
  font-weight: 700;
  text-decoration: none;
}

.feature-media {
  display: grid;
  place-items: center;
}

.poster {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 40%),
    radial-gradient(circle at 30% 30%, #ffb54d, #ff7b55 45%, #b23b3b 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.65);
}

.card-grid {
  display: grid;
  gap: 14px;
}

.catalog {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px dashed #99c2ff;
}

.catalog h3 {
  margin: 0 0 10px;
}

.catalog-list {
  display: grid;
  gap: 10px;
}

.catalog-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #eef5ff;
  font-size: 14px;
}

.catalog-item span {
  color: #345b8b;
  white-space: nowrap;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.pill-grid span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #dbe6ff;
  font-size: 12px;
  font-weight: 700;
  color: #315493;
}

.note-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #273142;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 22px;
  color: #1f3f6b;
}

.stat span {
  font-size: 12px;
  color: #5a6470;
}

.schedule {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.schedule-grid {
  display: grid;
  gap: 10px;
}

.schedule-item {
  background: #f6f9ff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe6ff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.schedule-item span {
  color: #3b547a;
  white-space: nowrap;
}

.page-links {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.page-card {
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border-radius: 14px;
  background: #f6f9ff;
  border: 1px solid #dbe6ff;
  text-decoration: none;
  color: #2d4f89;
  font-weight: 700;
  text-align: center;
}

.page-card:hover {
  background: #e9f1ff;
}

.page-sections {
  display: grid;
  gap: 12px;
}

.page-section {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
  display: none;
}

.page-section.active {
  display: block;
}

.page-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.thumb {
  border-radius: 14px;
  height: 110px;
  background: linear-gradient(140deg, #a5d8ff, #73a2ff);
}

.thumb.t1 {
  background: linear-gradient(140deg, #ffe6a6, #ffbf4e);
}

.thumb.t2 {
  background: linear-gradient(140deg, #ffd3d3, #ff8f8f);
}

.side-col {
  align-content: start;
}

.mini-calendar {
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  gap: 8px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.day {
  background: #fff7e9;
  border-radius: 14px;
  text-align: center;
  padding: 8px 6px;
  border: 1px dashed #f1c368;
}

.day b {
  font-size: 22px;
}

.birthdays {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.birthdays ul {
  padding-left: 16px;
  margin: 8px 0 0;
}

.hippo {
  border: none;
  background: linear-gradient(180deg, #6ad6c8, #27c1a6);
  color: #fff;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 0 #1c9f88;
  font-size: 16px;
}

.hippo.hippo-alt {
  background: linear-gradient(180deg, #7aa0ff, #4f7dff);
  box-shadow: 0 10px 0 #3a5fd6;
}

.activity {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #eef1f7;
}

.activity-head,
.activity-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
  padding: 10px 12px;
}

.activity-head {
  background: #3a86d6;
  color: #fff;
  font-weight: 700;
}

.activity-row:nth-child(odd) {
  background: #f0f6ff;
}

.campus {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.campus-map {
  position: relative;
  height: 140px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 30%, #c8f5e9 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #ffe9c7 0%, transparent 45%),
    linear-gradient(180deg, #e8f4ff 0%, #f5ffe8 100%);
  border: 1px dashed #b7d1ff;
  margin: 10px 0;
}

.map-pin {
  position: absolute;
  background: #fff;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #2c4b7a;
  box-shadow: 0 6px 12px rgba(40, 60, 90, 0.12);
}

.map-pin.p1 { top: 18px; left: 18px; }
.map-pin.p2 { top: 18px; right: 22px; }
.map-pin.p3 { bottom: 18px; left: 28px; }
.map-pin.p4 { bottom: 22px; right: 26px; }

.testimonial {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.testimonial blockquote {
  margin: 0 0 8px;
  font-style: italic;
  color: #2d3a4f;
}

.testimonial span {
  font-size: 12px;
  color: #5a6470;
}

.footer {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  font-weight: 700;
}

.footer a {
  color: #0b4a7b;
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 30;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 40, 0.5);
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  width: min(420px, 92vw);
  box-shadow: 0 24px 60px rgba(20, 26, 40, 0.25);
  border: 1px solid #e6ecf7;
  z-index: 1;
}

.modal-card h3 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: #f3f6ff;
  color: #2d4f89;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-form input {
  border: 2px solid #d7e3ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.modal-form small {
  color: #5a6470;
}

.question-form {
  display: grid;
  gap: 10px;
}

.question-form select,
.question-form input,
.question-form textarea {
  border: 2px solid #d7e3ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.question-form textarea {
  min-height: 120px;
  resize: vertical;
}

.question-form small {
  color: #5a6470;
}

.role-choice {
  display: flex;
  gap: 8px;
}

[data-view] {
  display: none;
}

.page[data-role="student"] [data-view="student"] {
  display: block;
}

.page[data-role="rektorat"] [data-view="rektorat"] {
  display: block;
}

.page[data-auth="signed-out"] .user-stats {
  opacity: 0.4;
}

body[data-contrast="on"] {
  --panel: #ffffff;
  --panel-soft: #ffffff;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
}

body[data-contrast="on"] .panel,
body[data-contrast="on"] .card,
body[data-contrast="on"] .catalog,
body[data-contrast="on"] .schedule,
body[data-contrast="on"] .birthdays,
body[data-contrast="on"] .activity,
body[data-contrast="on"] .page-links,
body[data-contrast="on"] .favorites {
  border-color: #1b1b1b;
}

body[data-compact="on"] .panel,
body[data-compact="on"] .card,
body[data-compact="on"] .catalog,
body[data-compact="on"] .schedule,
body[data-compact="on"] .page-links {
  padding: 10px 12px;
}

body[data-motion="off"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body[data-focus="on"] .side-col {
  display: none;
}

body[data-focus="on"] .layout {
  grid-template-columns: 1fr;
}

body[data-dim="on"]::after {
  content: "";
  position: fixed;
  inset: 0;
  display: block;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 0;
}

.page {
  z-index: 1;
}

.toolbox {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e6ecf7;
  box-shadow: 0 18px 32px rgba(20, 26, 40, 0.18);
  z-index: 20;
}

.toolbox button {
  border: 1px solid #d7e1f7;
  background: #f4f7ff;
  color: #2b4a7a;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.toolbox button.active {
  background: #2f66ff;
  color: #fff;
  border-color: #2f66ff;
}

.tool-divider {
  height: 1px;
  background: #dbe6ff;
  margin: 4px 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  z-index: 25;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff8a5c, #ffd15f, #6ad6c8);
}

.offline-banner {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffefef;
  color: #7a1e1e;
  border: 1px solid #ffb3b3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: none;
  z-index: 26;
}

.offline-banner.show {
  display: block;
}

.search-status {
  margin-top: 8px;
  font-size: 12px;
  color: #3b547a;
  font-weight: 700;
}

.search-clear {
  margin-top: 6px;
  border: 1px solid #d7e1f7;
  background: #f1f5ff;
  color: #2b4a7a;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.search-item.is-hidden {
  display: none !important;
}

.search-item.is-hit {
  outline: 2px solid #ffd35a;
  box-shadow: 0 0 0 4px rgba(255, 211, 90, 0.25);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot-red { background: #ff6b6b; }
.dot-blue { background: #4f7dff; }
.dot-green { background: #34c38f; }
.dot-yellow { background: #ffd15f; }
.dot-purple { background: #b28bff; }
.dot-orange { background: #ff9b47; }

.fav-target {
  position: relative;
}

.fav-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #ffb347;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 6px 12px rgba(20, 26, 40, 0.12);
}

.fav-toggle.active {
  color: #ff5b57;
}

.favorites {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid #eef1f7;
}

.favorites.is-hidden {
  display: none;
}

.favorites-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.favorites-item {
  background: #f6f9ff;
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2d4f89;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-toggle {
  border: 1px solid #d7e1f7;
  background: #f1f5ff;
  color: #2b4a7a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

[data-collapsed="true"] > :not(.section-head) {
  display: none;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 90px;
  display: grid;
  gap: 8px;
  z-index: 24;
}

.toast {
  background: #2b4a7a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(20, 26, 40, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.out {
  opacity: 0;
  transform: translateY(6px);
}

.schedule-item.next {
  border: 2px solid #6ad6c8;
  background: #f0fffb;
}

.schedule-item.next::after {
  content: "Další";
  font-size: 11px;
  color: #1f7a6a;
  font-weight: 700;
  margin-left: auto;
}

.mini-calendar .day.today {
  border-color: #ffb347;
  background: #fff0d9;
}

.char-counter {
  font-size: 12px;
  color: #5a6470;
}

nav.signs a.is-active {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 16px 26px rgba(20, 26, 40, 0.2);
}

@keyframes floatIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero,
.signs,
.feature,
.card,
.side-col > * {
  animation: floatIn 0.6s ease both;
}
