@font-face {
  font-family: 'Gilroy';
  src: url("/static/schedule/951194fe7756-Gilroy-Medium.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url("/static/schedule/0775f06566fa-Gilroy-SemiBold.ttf") format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f6;
  --surface: #eef0f3;
  --surface-2: #f5f5f5;
  --section-bg: #fbfbfbfc;
  --block-bg: #eef0f3;
  --block-bg-2: #f6f6f6;
  --card: #ffffff;
  --text: #111318;
  --muted: #6d7583;
  --primary: #2f7fe6;
  --primary-soft: #e8f0fe;
  --line: #dce0e5;
  --danger-bg: #fff5f5;
  --danger-line: #f6cccc;
  --danger-text: #c62828;
  --footer: #2f3549;
  --table-head: #5f6a78;
  --table-head-active: #2677dc;
  --table-subhead: #e2e4e8;
  --text-cell: #1f2d3d;
  --table-cell: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2430;
    --surface: #2a3040;
    --surface-2: #2d3445;
    --section-bg: #2a3040;
    --block-bg: #353d51;
    --block-bg-2: #21252f;
    --card: #353d51;
    --text: #eef1f6;
    --muted: #a5b0c2;
    --primary: #1574e8;
    --primary-soft: #35588d;
    --line: #49526a;
    --danger-bg: #4a2d31;
    --danger-line: #6c3f45;
    --danger-text: #ffb8b8;
    --footer: #171c28;
    --table-head: #16181b;
    --table-head-active: #1574e8;
    --table-subhead: #2d3445;
    --table-cell: #353d51;
  }
}

[data-theme="light"] {
  --bg: #f6f6f6;
  --surface: #eef0f3;
  --surface-2: #f5f5f5;
  --section-bg: #ffffff;
  --block-bg: #eef0f3;
  --block-bg-2: #f5f5f5;
  --card: #ffffff;
  --text: #111318;
  --muted: #6d7583;
  --primary: #2f7fe6;
  --primary-soft: #e8f0fe;
  --line: #dce0e5;
  --danger-bg: #fff5f5;
  --danger-line: #f6cccc;
  --danger-text: #c62828;
  --footer: #2f3549;
  --table-head: #5f6a78;
  --table-head-active: #2677dc;
  --table-subhead: #e2e4e8;
  --table-cell: #f5f5f5;
}

[data-theme="dark"] {
  --bg: #1f2430;
  --surface: #2a3040;
  --surface-2: #2d3445;
  --section-bg: #2a3040;
  --block-bg: #353d51;
  --block-bg-2: #21252f;
  --card: #353d51;
  --text: #eef1f6;
  --muted: #a5b0c2;
  --primary: #1574e8;
  --primary-soft: #35588d;
  --line: #49526a;
  --danger-bg: #4a2d31;
  --danger-line: #6c3f45;
  --danger-text: #ffb8b8;
  --footer: #171c28;
  --table-head: #16181b;
  --table-head-active: #1574e8;
  --table-subhead: #2d3445;
  --table-cell: #353d51;
  --text-cell: unset;
}

* {
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
}

body {
  position: relative;
  width: 100%;
  background: var(--bg);
  color: var(--text);
}

#admin {
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 10px;
  background: var(--surface);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: var(--card);
  border-radius: 10px;
  width: 30%;
  position: relative;
}

.popup h2,
.popup .close,
.popup .content,
h1,
h3,
p,
td,
th {
  color: var(--text);
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}

.hrMin {
  margin: 5px 0;
}

.rasp {
  margin-left: 15%;
  margin-right: 15%;
}

button,
#upload,
label,
select,
#search,
input {
  color: var(--text);
}

button {
  border: 1px solid transparent;
  margin: 8px;
  background: var(--card);
  border-radius: 5px;
  width: 194px;
  height: 40px;
}

.history-chip:hover,
.history-chip:focus {
  background: var(--block-bg);
}

select,
#search {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  width: inherit;
  padding: 10px;
}

input::placeholder {
  color: #9ba3b1;
  background-image: url("/static/schedule/ed2048b02caf-lupa.svg");
  background-repeat: no-repeat;
  background-position: 100% 50%;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
}

td,
th {
  font-size: 14px;
  padding: 10px;
  background: var(--card);
  text-align: center;
}

.activeButton {
  box-shadow: 0 0 0 2px var(--primary);
}

#inrasp {
  display: none;
}

.main {
  margin-left: 20px;
  padding: 10px 25px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
}

#back {
  padding: 10px 25px;
  background: var(--primary);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
}

#pwd {
  color: var(--text);
}

.rasp2-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 28px;
}

.rasp2-theme-row {
  display: flex;
  margin-bottom: 8px;
  justify-content: space-between;
}

.main-btn {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--block-bg-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  align-items: center;
  text-decoration: none;
  color: var(--text-cell);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rasp2-theme-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--section-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  user-select: none;
  cursor: pointer;
}

.rasp2-theme-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.rasp2-theme-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rasp2-theme-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--block-bg-2);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.rasp2-theme-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.rasp2-theme-checkbox:checked + .rasp2-theme-slider {
  background: var(--primary);
}

.rasp2-theme-checkbox:checked + .rasp2-theme-slider::after {
  transform: translateX(16px);
}

.rasp2-theme-checkbox:focus-visible + .rasp2-theme-slider {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.rasp2-theme-text {
  min-width: 58px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.rasp2-history,
.rasp2-select-grid,
.rasp2-warning,
.rasp2-empty,
.rasp2-result,
.rasp2-bottom-grid {
  background: var(--section-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rasp2-box {
  background: var(--section-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rasp2-hero {
  position: relative;
  margin-bottom: 8px;
}

.rasp2-hero-back {
  /* высота только по контенту: отступ снизу, без фиксированной height */
  padding-bottom: 40px;
}

.rasp2-hero-card {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: 14px 16px;
  background: var(--section-bg);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rasp2-hero-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3%;
}

.rasp2-hero-title-wrap {
  text-align: center;
}

.rasp2-robot {
  position: absolute;
  right: -40px;
  top: 60px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.rasp2-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.7;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1.2px;
}

.rasp2-subtitle,
.rasp2-today {
  margin: 6px 0 0;
  color: var(--primary);
  font-size: 18px;
  line-height: 0.8;
  letter-spacing: 1.2px;
}

.rasp2-robot img {
  width: 170px;
  height: auto;
  max-height: 178px;
  object-fit: contain;
}

.rasp2-robot-text{
  background: var(--primary);
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  max-width: 220px;
  width: fit-content;
  text-align: left;
}

.rasp2-robot-text > p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.rasp2-robot-text > p + p {
  margin-top: 3px;
}

.rasp2-robot-text > p:first-child strong {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.65;
}

.rasp2-search-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 8px;
}

.rasp2-search-input-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}

.rasp2-search-input-wrap input {
  width: 100%;
  display: block;
}

/* iOS Safari auto-zoom is handled via JavaScript viewport fix in rasptest3.php */

.rasp2-search-row input,
.rasp2-search-row button {
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.rasp2-search-row input {
  padding: 0 12px;
  background: var(--card);
  outline: none;
  transition: border-color 0.25s ease;
  /* iOS Safari зумит если font-size < 16px */
  font-size: max(13px, 16px);
}

@keyframes rasp2-search-pulse {
  0%, 100% { border-color: var(--line); }
  50%       { border-color: var(--primary); }
}

.rasp2-search-row input:focus {
  outline: none;
  animation: rasp2-search-pulse 2.4s ease-in-out infinite;
}

/* ===== Download modal ===== */
.rasp2-dl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.rasp2-dl-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}
.rasp2-dl-box {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  transform: scale(0.93) translateY(10px);
  transition: transform 0.22s ease;
}
.rasp2-dl-backdrop.is-open .rasp2-dl-box {
  transform: scale(1) translateY(0);
}
.rasp2-dl-handle { display: none; }
.rasp2-dl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--block-bg);
  color: var(--muted);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transition: background 0.15s;
}
.rasp2-dl-close:hover { background: var(--line); }
.rasp2-dl-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.rasp2-dl-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.rasp2-dl-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rasp2-dl-choice {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--block-bg-2);
  color: var(--text);
  padding: 18px 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  width: 100%;
  height: auto;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}
.rasp2-dl-choice:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.rasp2-dl-choice-icon { font-size: 24px; }
@media (max-width: 600px) {
  .rasp2-dl-backdrop {
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .rasp2-dl-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 0 20px 36px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  }
  .rasp2-dl-backdrop.is-open .rasp2-dl-box {
    transform: translateY(0);
  }
  .rasp2-dl-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 12px auto 20px;
  }
  .rasp2-dl-choices {
    grid-template-columns: 1fr;
  }
  .rasp2-dl-choice {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 16px;
    gap: 14px;
    font-size: 15px;
  }
}

.rasp2-search-row button {
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  width: 100%;
  margin: 0;
  height: 36px;
  align-self: stretch;
}

.rasp2-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 999;
  overflow: hidden;
}

.rasp2-search-dropdown-item {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}

@media (max-width: 768px) {
  .rasp2-search-dropdown-item {
    padding: 13px 16px;
    font-size: 16px;
  }
}

.rasp2-search-dropdown-item:hover,
.rasp2-search-dropdown-item.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.rasp2-search-dropdown-item + .rasp2-search-dropdown-item {
  border-top: 1px solid var(--line);
}

.rasp2-search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rasp2-search-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
}

.rasp2-search-badge.is-teacher {
  background: #e4f0ff;
  color: #1574e8;
}

[data-theme="dark"] .rasp2-search-badge.is-teacher {
  background: #1a3460;
  color: #1574e8;
}

.rasp2-history {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
  max-height: 60px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, margin 0.35s ease;
}

.rasp2-history.is-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.rasp2-history-label {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 14px;
  color: var(--muted);
}

.rasp2-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-chip {
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--text);
  padding: 5px 10px;
  font-size: 14px;
  width: auto;
  height: auto;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 8px 0 0;
  transition: color 0.15s, background 0.15s;
}

.rasp2-clear-history-btn {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: stretch;
  margin-left: auto;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--text);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  width: auto;
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
}

.rasp2-clear-history-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.rasp2-clear-history-icon svg {
  display: block;
}

.history-chip:hover,
.rasp2-clear-history-btn:hover {
  color: #1574e8;
}

.history-chip.is-active {
  background: #e4f0ff;
  color: #1574e8;
}

#history {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  align-items: center;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-right: 4px;
}

#history::-webkit-scrollbar {
  display: none;
}

.rasp2-select-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rasp2-panel {
  border-radius: 7px;
  padding: 10px 10px 8px;
  min-width: 0;
  overflow: hidden;
}

.rasp2-panel-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rasp2-panel-head > span {
  font-size: 15px;
  font-weight: 600;
}

.rasp2-tabs {
  display: flex;
  gap: 6px;
  width: 100%;
}

.rasp2-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  min-height: 42px;
  background: var(--block-bg-2);
  color: var(--text);
  font-size: 13px;
  flex: 1;
  width: auto;
  height: auto;
  margin: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rasp2-tabs button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.rasp2-tabs button:not(.is-active):hover {
  color: #1574e8;
}

.rasp2-corpus-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
}

.rasp2-corpus-list .buttonCorpus {
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  min-height: 42px;
  background: var(--block-bg-2);
  width: 100%;
  height: auto;
  margin: 0;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rasp2-corpus-list .buttonCorpus.activeButton {
  background: var(--primary);
  color: #fff;
}

.rasp2-corpus-list .buttonCorpus:not(.activeButton):hover {
  color: #1574e8;
}

.rasp2-group-map {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.rasp2-group-map select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.rasp2-hidden-select {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rasp2-group-grid {
  display: grid;
  gap: 16px;
  min-height: 132px;
  align-content: start;
}

.rasp2-group-grid.is-flat {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.rasp2-group-row {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.rasp2-group-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.rasp2-group-prefix::before,
.rasp2-group-prefix::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rasp2-group-item {
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  margin: 0;
  width: auto;
  height: auto;
  font-size: 13px;
  background: #f5f5f5;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.rasp2-group-item:hover {
  color: #1574e8;
}

.rasp2-group-item.is-active {
  background: #e4f0ff;
  color: #1574e8;
  box-shadow: none;
}

.rasp2-show-more-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  min-height: 42px;
  background: var(--block-bg-2);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  margin: 0;
  text-align: center;
  transition: color 0.15s;
}

#groupGridMoreBtn {
  display: block;
  width: 100%;
  padding-top: 12px;
}

.rasp2-show-more-btn:hover {
  color: #1574e8;
}

#teacherAlphaBar {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.rasp2-alpha-chips {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 8px 0 4px;
}

.rasp2-alpha-chip {
  border: 0;
  border-radius: 8px;
  padding: 3px 4px;
  height: 32px;
  width: 100%;
  min-width: 0;
  background: var(--block-bg-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  text-align: center;
  transition: color 0.15s, background 0.15s;
}

.rasp2-alpha-chip:hover {
  color: #1574e8;
}

.rasp2-alpha-chip.is-active {
  background: #e4f0ff;
  color: #1574e8;
}

[data-theme="dark"] .rasp2-alpha-chip {
  background: #3a4458;
  color: #d9e4f7;
}

[data-theme="dark"] .rasp2-alpha-chip:hover {
  color: #1574e8;
}

[data-theme="dark"] .rasp2-group-prefix {
  color: var(--muted);
}

[data-theme="dark"] .rasp2-group-item {
  background: #3a4458;
  color: #d9e4f7;
}

[data-theme="dark"] .rasp2-group-item:hover {
  color: #1574e8;
}

[data-theme="dark"] .rasp2-group-item.is-active {
  background: #2f7fe6;
  color: #ffffff;
}

.rasp2-go {
  margin: 0;
  flex-shrink: 0;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  background: unset;
  border-radius: 8px;
  padding: 30px 60px;
  font-weight: 500;
  font-size: 15px;
  width: auto;
  height: auto;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rasp2-go:hover {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  transform: none;
  background: #A90000;
  color: #fff;
  border-color: #A90000;
}

.rasp2-warning {
  padding: 22px 26px;
  background: #fce4e4;
  border: unset;
  border-radius: 10px;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.rasp2-warning-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.rasp2-warning-icon {
  flex-shrink: 0;
  color: #d32f2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.rasp2-warning-icon svg {
  display: block;
}

.rasp2-warning h3 {
  margin: 0 0 8px;
  color: #d32f2f;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.rasp2-warning p {
  margin: 0;
  font-size: 14px;
  color: #d32f2f;
  line-height: 1.5;
}

.rasp2-warning-text {
  flex: 1;
  min-width: 0;
}

.rasp2-empty {
  padding: 48px 32px;
  text-align: center;
}

.rasp2-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rasp2-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rasp2-result {
  padding: 10px;
}

.rasp2-result-head {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 8px;
  position: relative;
  min-height: 44px;
}

.rasp2-result-actions {
  display: flex;
  gap: 8px;
}

#nameRasp {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.rasp2-result-title-main {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}

.rasp2-result-title-sub {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.rasp2-result-actions button {
  border: 0;
  border-radius: 6px;
  background: var(--surface-2);
  padding: 6px 14px;
  width: auto;
  height: 32px;
  margin: 0;
}

[data-theme="light"] .history-chip,
[data-theme="light"] .rasp2-clear-history-btn {
  background: #f5f5f5;
  color: var(--text);
}

[data-theme="light"] .history-chip:hover,
[data-theme="light"] .rasp2-clear-history-btn:hover {
  color: #1574e8;
}

[data-theme="light"] .history-chip.is-active {
  background: #e4f0ff;
  color: #1574e8;
}

[data-theme="dark"] .rasp2-tabs button {
  background: #3a4458;
  color: #d9e4f7;
}

[data-theme="dark"] .rasp2-tabs button.is-active {
  background: #2f7fe6;
  color: #ffffff;
}

[data-theme="dark"] .history-chip,
[data-theme="dark"] .rasp2-clear-history-btn {
  background: #3a4458;
  color: #d9e4f7;
}

[data-theme="dark"] .history-chip:hover,
[data-theme="dark"] .rasp2-clear-history-btn:hover {
  color: #1574e8;
}

[data-theme="dark"] .rasp2-warning {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  box-shadow: none;
}

[data-theme="dark"] .rasp2-go {
  background: unset;
  border-color: var(--danger-text);
  color: var(--danger-text);
}

[data-theme="dark"] .rasp2-go:hover {
  background: #A90000;
  color: #fff;
  border-color: #A90000;
}

[data-theme="dark"] .rasp2-warning h3,
[data-theme="dark"] .rasp2-warning p,
[data-theme="dark"] .rasp2-warning-icon {
  color: var(--danger-text);
}

[data-theme="dark"] .rasp2-clear-history-btn {
  background: #3a4458;
  color: #d9e4f7;
}

[data-theme="dark"] .history-chip.is-active {
  background: #2f7fe6;
  color: #ffffff;
}

#raspForTeacherAndStudent .table-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

#raspForTeacherAndStudent table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

#raspForTeacherAndStudent td {
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 12px 8px;
  background: var(--table-cell);
  color: var(--text-cell);
  font-size: 13px;
  line-height: 1.35;
  vertical-align: middle;
}

/* Zebra: чётные строки чуть темнее */
#raspForTeacherAndStudent tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.028);
}

/* ════ Desktop lesson cell structure ════ */
#raspForTeacherAndStudent td:nth-child(n+2) {
  text-align: center;
}
#raspForTeacherAndStudent .rasp2-dtc-room {
  font-size: 11px;
  font-weight: 600;
  color: #5a6680;
  margin-bottom: 3px;
  line-height: 1.2;
  text-align: center;
}
[data-theme="dark"] #raspForTeacherAndStudent .rasp2-dtc-room {
  color: #8a9ab8;
}

/* Corpus address badge — shown after room number, before subject name */
.rasp2-corpus-badge {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary, #1574e8);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.2;
  opacity: 0.9;
}
[data-theme="dark"] .rasp2-corpus-badge {
  color: #5ea4ff;
}
/* Mobile variant — shown after room row, before subject */
.rasp2-corpus-badge-mobile {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary, #1574e8);
  margin-top: 3px;
  margin-bottom: 4px;
  opacity: 0.9;
}
[data-theme="dark"] .rasp2-corpus-badge-mobile {
  color: #5ea4ff;
}
#raspForTeacherAndStudent .rasp2-dtc-subject {
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.35;
  text-align: center;
}
#raspForTeacherAndStudent .rasp2-dtc-type {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary, #1574e8);
  margin-bottom: 4px;
  line-height: 1.2;
  text-align: center;
}
/* Когда отображается значок корпуса, делаем тип пары приглушённо-серым,
   чтобы он не перетягивал внимание */
#raspForTeacherAndStudent td:has(.rasp2-corpus-badge) .rasp2-dtc-type {
  color: #98a2b3;
  opacity: 0.85;
}
[data-theme="dark"] #raspForTeacherAndStudent td:has(.rasp2-corpus-badge) .rasp2-dtc-type {
  color: #6d7785;
  opacity: 0.9;
}
#raspForTeacherAndStudent .rasp2-dtc-teachers {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  align-items: center;
}

#raspForTeacherAndStudent tr:first-child td {
  background: var(--table-head);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

#raspForTeacherAndStudent td:first-child {
  width: 76px;
  min-width: 76px;
  text-align: center;
  vertical-align: middle;
}

.rasp2-pair-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-cell);
}

.rasp2-pair-time-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
  font-weight: 500;
}

.rasp2-pair-time-sep {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.1;
  font-weight: 500;
}

.rasp2-mobile-pair-empty {
  justify-content: center;
  align-items: center;
  min-height: 48px;
  background: var(--card);
  opacity: 0.45;
}

.rasp2-mobile-pair-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 10px 0;
}

.rasp2-mobile-pair-empty-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-cell);
  line-height: 1.2;
}

.rasp2-mobile-pair-empty-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

#raspForTeacherAndStudent td:nth-child(n+2) {
  width: calc((100% - 76px) / 6);
}

#raspForTeacherAndStudent td.rasp2-current-day {
  background: #1574E8 !important;
  color: #fff !important;
}

#raspForTeacherAndStudent td.rasp2-current-col:not(.zzz) {
  background: rgba(21, 116, 232, 0.09);
}

[data-theme="dark"] #raspForTeacherAndStudent td {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.07);
}

/* Zebra тёмная тема */
[data-theme="dark"] #raspForTeacherAndStudent tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] #raspForTeacherAndStudent td.rasp2-current-col:not(.zzz) {
  background: rgba(96, 165, 250, 0.13);
}

/* ── Desktop current / past / next pair ─────────────────────────────── */
@keyframes rasp2-pair-pulse {
  0%, 100% { background: rgba(21, 116, 232, 0.07); }
  50%       { background: rgba(21, 116, 232, 0.22); }
}
@keyframes rasp2-pair-pulse-dark {
  0%, 100% { background: rgba(96, 165, 250, 0.08); }
  50%       { background: rgba(96, 165, 250, 0.24); }
}
@media (min-width: 768px) {
  /* Первая ячейка — relative для абсолютного бейджа */
  .rasp2-week-block td:first-child {
    position: relative;
  }
  /* Активная пара — пульсирующее свечение в ячейке сегодняшнего столбца */
  .rasp2-week-block tr.rasp2-current-pair > td.rasp2-current-col {
    animation: rasp2-pair-pulse 2.5s ease-in-out infinite;
  }
  [data-theme="dark"] .rasp2-week-block tr.rasp2-current-pair > td.rasp2-current-col {
    animation: rasp2-pair-pulse-dark 2.5s ease-in-out infinite;
  }
  /* Следующая пара — бледный акцентный inset */
  .rasp2-week-block tr.rasp2-next-pair > td:first-child {
    box-shadow: inset 4px 0 0 rgba(21, 116, 232, 0.35);
  }
  /* Таймер в углу ячейки — абсолютный, не растягивает столбец */
  .rasp2-desk-timer,
  .rasp2-desk-next-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
  }
  .rasp2-desk-timer {
    background: rgba(21, 116, 232, 0.15);
    color: #1574E8;
  }
  .rasp2-desk-next-badge {
    background: rgba(21, 116, 232, 0.08);
    color: rgba(21, 116, 232, 0.6);
  }
  /* Тёмная тема */
  [data-theme="dark"] .rasp2-desk-timer {
    background: rgba(96, 165, 250, 0.28);
    color: #93c5fd;
  }
  [data-theme="dark"] .rasp2-desk-next-badge {
    background: rgba(96, 165, 250, 0.12);
    color: rgba(96, 165, 250, 0.55);
  }
}
/* ──────────────────────────────────────────────────────────────────── */

.rasp2-week-title {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.rasp2-week-title::before,
.rasp2-week-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.rasp2-week-block {
  margin: 0;
}

.rasp2-mobile-week-cards {
  display: none;
}

.rasp2-mobile-day-card {
  border: none;
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.rasp2-past-week-toggle {
  display: none;
}

/* Past day card: header clickable, body collapsed */
.rasp2-mobile-day-card.is-past {
  overflow: hidden;
}

.rasp2-mobile-day-card.is-past .rasp2-mobile-day-head {
  cursor: pointer;
  user-select: none;
  opacity: 0.68;
  transition: opacity 0.2s;
  position: relative;
  padding-right: 40px;
}

.rasp2-mobile-day-card.is-past.is-open .rasp2-mobile-day-head {
  opacity: 1;
}

.rasp2-mobile-day-card.is-past .rasp2-mobile-day-head::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.28s ease;
}

.rasp2-mobile-day-card.is-past.is-open .rasp2-mobile-day-head::after {
  transform: translateY(-50%) rotate(180deg);
}

.rasp2-mobile-day-card.is-past .rasp2-mobile-day-body {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  gap: 0;
  transition: max-height 0.38s ease, gap 0.28s ease;
}

.rasp2-mobile-day-card.is-past.is-open .rasp2-mobile-day-body {
  max-height: 4000px;
  padding-top: 6px !important;
  padding-bottom: 8px !important;
  gap: 5px;
  transition: max-height 0.5s ease, gap 0.28s ease;
}

.rasp2-mobile-day-card.is-current {
  border-color: #1574E8;
}

.rasp2-mobile-day-head {
  padding: 13px 14px 12px;
  background: var(--table-head);
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.rasp2-mobile-day-card.is-current .rasp2-mobile-day-head {
  background: #1574E8;
}

.rasp2-mobile-day-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

.rasp2-mobile-day-date {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.rasp2-mobile-day-body {
  padding: 8px 12px 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rasp2-mobile-day-empty {
  margin: 0;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.rasp2-mobile-pair {
  padding: 18px 16px;
  border-top: none;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.rasp2-mobile-day-body .rasp2-mobile-pair:first-child {
  border-top: 0;
}

.rasp2-mobile-pair-head {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 4px;
}

.rasp2-mobile-pair-num {
  display: none;
}

.rasp2-mobile-pair-time {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.rasp2-mobile-pair-time .hrMin {
  display: none;
}

.rasp2-mobile-pair-content {
  padding: 0;
  font-size: 15px;
  line-height: 1.38;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.rasp2-mobile-pair-content p {
  margin: 0;
}

.rasp2-mobile-pair-content p:empty,
#raspForTeacherAndStudent td p:empty {
  display: none;
}

.rasp2-mobile-pair-content .rasp2-badge,
.rasp2-mobile-pair-content .rasp2-group-tag,
.rasp2-mobile-pair-content .rasp2-teacher-tag {
  margin: 1px 4px 3px 0;
}

.rasp2-mobile-pair-content .rasp2-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.2;
}

.rasp2-mobile-pair-content .rasp2-mobile-auditorium-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin: 2px 4px 3px 0;
}

.rasp2-mobile-pair-content .rasp2-group-tag,
.rasp2-mobile-pair-content .rasp2-teacher-tag {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.2;
}

/* ════════════ Structured mobile lesson content ════════════ */
.rasp2-mlc-room-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

/* Room shown at top (single-room case) — no bubble, just colored text */
.rasp2-mobile-pair-content .rasp2-mlc-room-badge {
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: transparent !important;
  color: #5a6680 !important;
  margin: 0 0 4px !important;
  display: block;
}
[data-theme="dark"] .rasp2-mobile-pair-content .rasp2-mlc-room-badge {
  background: transparent !important;
  color: #9aa4bc !important;
}

.rasp2-mobile-pair-content .rasp2-mlc-subject {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 4px;
}

.rasp2-mobile-pair-content .rasp2-mlc-type {
  font-size: 13px !important;
  font-weight: 500;
  color: var(--primary, #1574e8);
  margin: 2px 0 4px;
}
/* Когда у мобильной карточки пары есть значок корпуса — приглушаем тип */
.rasp2-mobile-pair-content:has(.rasp2-corpus-badge) .rasp2-mlc-type {
  color: #98a2b3;
  opacity: 0.85;
}
[data-theme="dark"] .rasp2-mobile-pair-content:has(.rasp2-corpus-badge) .rasp2-mlc-type {
  color: #6d7785;
  opacity: 0.9;
}

.rasp2-mlc-teachers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.rasp2-mlc-teacher-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* Room badge inside multi-teacher row — same size as teacher tag */
.rasp2-mlc-teacher-row .rasp2-mobile-auditorium-badge {
  padding: 4px 8px !important;
  font-size: 13px !important;
  border-radius: 5px !important;
  margin: 0 !important;
}

.rasp2-day-name {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.rasp2-day-date {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  opacity: .95;
  margin-top: 5px;
}

.rasp2-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #1f2d3d;
}

.rasp2-badge-c0 { background: #cfe0f6; }
.rasp2-badge-c1 { background: #cfeecf; }
.rasp2-badge-c2 { background: #efe2bf; }
.rasp2-badge-c3 { background: #e5d1f3; }
.rasp2-badge-c4 { background: #d6e9ff; }
.rasp2-badge-c5 { background: #d9f2e0; }
.rasp2-badge-c6 { background: #f6e7c9; }
.rasp2-badge-c7 { background: #e9daf7; }
.rasp2-badge-c8 { background: #d8e4f8; }
.rasp2-badge-c9 { background: #d5eed9; }

.rasp2-group-tag,
.rasp2-teacher-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  margin: 1px 1px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

[class*="rasp2-group-c"]   { background: #e4f0ff; color: #1574e8; }
[class*="rasp2-teacher-c"] { background: #edf2f8; color: #4a6a8a; }

@media (min-width: 768px) {
  .rasp2-group-tag:hover   { background: #cde3ff; color: #0f5cc2; }
  .rasp2-teacher-tag:hover { background: #dde8f4; color: #1574e8; }
}

[data-theme="dark"] .rasp2-badge {
  color: #eaf1ff;
}
[data-theme="dark"] .rasp2-badge-c0 { background: #4b6288; }
[data-theme="dark"] .rasp2-badge-c1 { background: #4b7f58; }
[data-theme="dark"] .rasp2-badge-c2 { background: #8b7850; }
[data-theme="dark"] .rasp2-badge-c3 { background: #6f5a89; }
[data-theme="dark"] .rasp2-badge-c4 { background: #466a96; }
[data-theme="dark"] .rasp2-badge-c5 { background: #4b7a66; }
[data-theme="dark"] .rasp2-badge-c6 { background: #8d6f4a; }
[data-theme="dark"] .rasp2-badge-c7 { background: #6c5987; }
[data-theme="dark"] .rasp2-badge-c8 { background: #496489; }
[data-theme="dark"] .rasp2-badge-c9 { background: #4c7b5c; }

[data-theme="dark"] [class*="rasp2-group-c"]   { background: #1e3558; color: #7bb0ec; }
[data-theme="dark"] [class*="rasp2-teacher-c"] { background: #263045; color: #8aa8c8; }

.rasp2-box {
  padding: 16px 20px;
}

.rasp2-box h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: .4px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rasp2-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rasp2-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.rasp2-cards-4 > *,
.rasp2-cards-2 > * {
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 10px;
  color: var(--text);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.25;
}

.rasp2-cards-4 a::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b4c5dd;
  display: inline-block;
  flex: 0 0 28px;
}

.rasp2-cards-4 a:nth-child(2)::before { background: #d0b3e8; }
.rasp2-cards-4 a:nth-child(3)::before { background: #9ec7ff; }
.rasp2-cards-4 a:nth-child(4)::before { background: #222; }

.rasp2-communities .rasp2-cards-4 {
  gap: 12px;
}

.rasp2-communities .rasp2-cards-4 a.rasp2-community-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: var(--block-bg-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  gap: 14px;
  min-height: 56px;
  align-items: center;
  flex-direction: row;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.15s;
}

.rasp2-communities .rasp2-cards-4 a.rasp2-community-card:hover .rasp2-community-name {
  color: #1574e8;
}

.rasp2-communities .rasp2-cards-4 a.rasp2-community-card::after {
  content: '';
  position: absolute;
  left: 5px;
  bottom: -22px;
  top: auto;
  transform: none;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,116,232,0.28) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.rasp2-communities .rasp2-cards-4 a.rasp2-community-card:hover::after {
  opacity: 1;
}

.rasp2-communities .rasp2-cards-4 a.rasp2-community-card::before {
  display: none;
}

.rasp2-communities .rasp2-cards-4 a.rasp2-community-card img {
  width: 53px;
  height: 53px;
  min-width: 53px;
  min-height: 53px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.rasp2-departments .rasp2-departments-grid {
  gap: 12px;
}

.rasp2-departments .rasp2-department-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: var(--block-bg-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  gap: 14px;
  min-height: 56px;
  align-items: center;
  flex-direction: row;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.15s;
}

.rasp2-departments .rasp2-department-card:hover .rasp2-department-name {
  color: #1574e8;
}

.rasp2-departments .rasp2-department-card::after {
  content: '';
  position: absolute;
  left: 5px;
  bottom: -22px;
  top: auto;
  transform: none;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,116,232,0.28) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.rasp2-departments .rasp2-department-card:hover::after {
  opacity: 1;
}

.rasp2-departments .rasp2-department-card::before {
  display: none;
}

.rasp2-departments .rasp2-department-card img {
  width: 53px;
  height: 53px;
  min-width: 53px;
  min-height: 53px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.rasp2-department-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rasp2-department-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.3s ease;
}

.rasp2-department-url {
  font-size: 12px;
  line-height: 1.2;
  color: var(--primary);
}

.rasp2-community-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rasp2-community-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.3s ease;
}

.rasp2-community-url {
  font-size: 12px;
  line-height: 1.2;
  color: var(--primary);
}

.rasp2-bottom-grid {
  padding: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rasp2-bells-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rasp2-bells-wrap.rasp2-box h3,
.rasp2-bells-wrap h3 {
  text-align: center !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 4px !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: .3px !important;
}

.rasp2-bells-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  text-align: center;
}

.rasp2-bells-card {
  background: transparent;
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.rasp2-communities h3,
.rasp2-addresses h3 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 12px !important;
}

.rasp2-bells {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
}

.rasp2-bells col:first-child {
  width: 35%;
}

.rasp2-bells col:last-child {
  width: 65%;
}

.rasp2-bells thead th {
  background: #EAEAEA;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid #D9D9D9;
  color: #111318 !important;
  font-size: 14px !important;
}

.rasp2-bells tbody td {
  border: 1px solid #D9D9D9;
  padding: 13px 16px;
  text-align: center !important;
  background: #F5F5F5;
  color: #111318 !important;
  font-size: 14px !important;
}

.rasp2-bells td,
.rasp2-bells th,
table.rasp2-bells td,
table.rasp2-bells th,
.rasp2-bells-wrap .rasp2-bells td,
.rasp2-bells-wrap .rasp2-bells th {
  color: #111318 !important;
}

.rasp2-bells tr.rasp2-bells-break td {
  background: #EAEAEA;
  font-weight: 600;
}

/* убираем внешние границы таблицы */
.rasp2-bells thead tr:first-child th { border-top: none; }
.rasp2-bells tbody tr:last-child td  { border-bottom: none; }
.rasp2-bells tr th:first-child,
.rasp2-bells tr td:first-child        { border-left: none; }
.rasp2-bells tr th:last-child,
.rasp2-bells tr td:last-child         { border-right: none; }

/* --- Тёмная тема: таблица звонков --- */
[data-theme="dark"] .rasp2-bells thead th {
  background: #252836;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text) !important;
}

[data-theme="dark"] .rasp2-bells tbody td {
  background: #1e2130;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text) !important;
}

[data-theme="dark"] .rasp2-bells td,
[data-theme="dark"] .rasp2-bells th,
[data-theme="dark"] table.rasp2-bells td,
[data-theme="dark"] table.rasp2-bells th {
  color: var(--text) !important;
}

[data-theme="dark"] .rasp2-bells tr.rasp2-bells-break td {
  background: #252836;
}

.rasp2-address-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rasp2-address-card {
  display: block;
  text-align: left;
  min-height: auto;
  padding: 0;
  background: var(--block-bg-2);
  border: none !important;
  overflow: hidden;
}

.rasp2-address-map-link {
  display: block;
  padding: 14px 14px 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.2s ease;
}

.rasp2-address-map-link:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
}

.rasp2-address-map-link:hover .rasp2-address-street,
.rasp2-address-map-link:hover .rasp2-address-city {
  color: var(--text) !important;
}

[data-theme="dark"] .rasp2-address-map-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rasp2-address-card .rasp2-address-corp {
  display: inline-block;
  background: #E4F0FF;
  color: #2A5FAE;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 11px;
  margin-bottom: 8px;
}

[data-theme="dark"] .rasp2-address-card .rasp2-address-corp {
  background: #1a3566;
  color: #7EB8FF;
}

.rasp2-address-card .rasp2-address-street,
.rasp2-address-card .rasp2-address-city {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.rasp2-address-specs {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rasp2-address-spec {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted) !important;
  text-decoration: none !important;
  margin: 0;
  transition: color 0.2s ease !important;
}

.rasp2-address-spec:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
}

.rasp2-footer {
  background: var(--footer);
  color: #fff;
  margin-top: 8px;
}

.rasp2-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  align-items: center;
}

.rasp2-socials {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.rasp2-socials a {
  color: #fff;
}

@media screen and (max-width: 980px) {
  .rasp2-hero-top,
  .rasp2-select-grid,
  .rasp2-bottom-grid,
  .rasp2-cards-4,
  .rasp2-cards-2,
  .rasp2-address-cards,
  .rasp2-footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media screen and (max-width: 500px) {
  .rasp {
    margin-left: 1%;
    margin-right: 0;
  }

  .overlay,
  #non,
  #back {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .rasp {
    margin-left: 0;
    margin-right: 0;
  }

  .rasp2-wrap {
    max-width: 100%;
    padding: 8px 10px 20px;
  }

  .rasp2-theme-row {
    margin-bottom: 10px;
  }

  .rasp2-theme-control {
    padding: 5px 9px;
  }

  .rasp2-theme-text {
    min-width: 52px;
    font-size: 11px;
  }

  .rasp2-history,
  .rasp2-select-grid,
  .rasp2-warning,
  .rasp2-empty,
  .rasp2-result,
  .rasp2-bottom-grid,
  .rasp2-box,
  .rasp2-hero-card {
    border-radius: 10px;
  }

  .rasp2-hero-back {
    padding-bottom: 0;
  }

  .rasp2-hero-top {
    display: block;
    text-align: center;
    padding: 14px 10px 0;
  }

  .rasp2-title {
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0.4px;
  }

  .rasp2-subtitle,
  .rasp2-today {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    margin-top: 8px;
  }

  .rasp2-today {
    margin-top: 4px;
  }

  /* ── Robot peeks from behind the search card (stays in normal flow) ── */
  .rasp2-robot {
    position: relative;  /* in flow, z-index active */
    top: auto;           /* reset desktop top: 60px */
    right: auto;         /* reset desktop right: -40px */
    z-index: 0;          /* behind the card (z-index: 2) */
    width: 100%;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 8px 0 4px;
    margin-top: 20px;
  }

  .rasp2-robot img {
    width: 165px;
    height: 200px;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
  }

  .rasp2-robot-text {
    padding: 8px 10px;
    margin-bottom: 78px; /* 18px gap above card top (card = 60px tall) */
    align-self: flex-end;
    text-align: left;   /* override parent text-align: center */
    width: fit-content; /* adaptive — only as wide as content needs */
    max-width: calc(100% - 183px); /* don't overlap image (165px + gap + padding) */
  }

  .rasp2-robot-text > p {
    font-size: 12px;
    line-height: 1.3;
  }

  .rasp2-hero-card {
    position: relative;
    z-index: 2;          /* in front of robot, covers its lower body */
    margin-top: -60px;   /* = card height → robot bottom aligns with card bottom */
    padding: 10px;
  }

  .rasp2-search-row {
    margin-top: 0;
    grid-template-columns: 1fr 104px;
    gap: 6px;
  }

  .rasp2-search-row input,
  .rasp2-search-row button {
    height: 40px;
    font-size: 14px;
  }

  .rasp2-search-row input {
    /* prevent iOS Safari auto-zoom (needs ≥16px) */
    font-size: max(14px, 16px);
  }

  .rasp2-history {
    padding: 12px;
  }

  .rasp2-history-head > span {
    font-size: 15px;
    font-weight: 600;
  }

  .rasp2-clear-history-btn {
    margin-left: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1;
    background: var(--block-bg-2);
  }

  #history {
    gap: 0px;
    row-gap: 0px;
  }

  .history-chip {
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.1;
    padding: 8px 14px;
  }

  .rasp2-select-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rasp2-panel {
    padding: 12px;
  }

  .rasp2-panel-head {
    align-items: center;
  }

  .rasp2-panel-head > span {
    font-size: 17px;
  }

  .rasp2-tabs {
    flex-wrap: wrap;
  }

  .rasp2-tabs button {
    font-size: 15px;
    min-height: 46px;
  }

  .rasp2-corpus-list,
  .rasp2-group-grid {
    min-height: auto;
  }

  .rasp2-corpus-list .buttonCorpus {
    font-size: 15px;
    min-height: 46px;
  }

  .rasp2-group-item {
    font-size: 15px;
    padding: 7px 12px;
  }

  .rasp2-warning {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px;
    text-align: center;
  }

  .rasp2-warning-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .rasp2-warning h3 {
    font-size: 23px;
    margin-bottom: 8px;
  }

  .rasp2-warning p {
    font-size: 15px;
    line-height: 1.45;
  }

  .rasp2-go {
    width: 100%;
    min-height: 44px;
    text-align: center;
    padding: 12px 16px;
  }

  .rasp2-result {
    padding: 10px;
  }

  .rasp2-result-head {
    position: static;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #nameRasp {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    text-align: center;
  }

  .rasp2-result-title-main {
    font-size: 30px;
  }

  .rasp2-result-title-sub {
    font-size: 15px;
  }

  .rasp2-result-actions {
    justify-content: stretch;
  }

  .rasp2-result-actions button {
    height: 46px;
    padding: 10px 16px;
    font-size: 15px;
    width: auto;
    flex: 1;
  }

  .rasp2-result-actions .rasp2-cal-btn,
  .rasp2-result-actions .rasp2-cal-btn-all {
    height: auto;
    padding: 20px 16px;
    font-size: 17px;
    flex: none;
    width: 100%;
  }

  /* notif button follows same stretch as download button */

  .rasp2-week-title {
    font-size: 18px;
    margin: 18px 0 10px;
  }

  #raspForTeacherAndStudent .table-wrapper {
    display: none;
  }

  #raspForTeacherAndStudent .rasp2-mobile-week-cards {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 8px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-head {
    padding: 15px 14px 13px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-name {
    font-size: 17px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-date {
    font-size: 14px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-card.is-past .rasp2-mobile-day-head {
    padding: 12px 12px 11px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-card.is-past .rasp2-mobile-day-name {
    font-size: 14px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-card.is-past .rasp2-mobile-day-date {
    font-size: 12px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-body {
    padding: 6px 8px 8px;
    gap: 6px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair {
    padding: 18px 16px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-head {
    gap: 7px;
    margin-bottom: 4px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-time {
    font-size: 18px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-content {
    font-size: 15px;
    line-height: 1.38;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-empty {
    font-size: 12px;
    padding: 9px 0;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-content .rasp2-badge,
  #raspForTeacherAndStudent .rasp2-mobile-pair-content .rasp2-group-tag,
  #raspForTeacherAndStudent .rasp2-mobile-pair-content .rasp2-teacher-tag {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #raspForTeacherAndStudent .table-wrapper {
    border-radius: 10px;
  }

  #raspForTeacherAndStudent .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable both-edges;
  }

  #raspForTeacherAndStudent table {
    width: max-content;
    min-width: 860px;
    table-layout: fixed;
  }

  #raspForTeacherAndStudent td {
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
  }

  #raspForTeacherAndStudent tr:first-child td {
    font-size: 12px;
    line-height: 1.25;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  #raspForTeacherAndStudent .rasp2-day-name {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #raspForTeacherAndStudent .rasp2-day-date {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  #raspForTeacherAndStudent td:first-child {
    width: 40px;
    min-width: 40px;
    text-align: center;
    vertical-align: middle;
  }

  #raspForTeacherAndStudent td:nth-child(2) {
    width: 92px;
    min-width: 92px;
    text-align: center;
    vertical-align: middle;
  }

  #raspForTeacherAndStudent td:nth-child(n+3) {
    width: 122px;
    min-width: 122px;
  }

  #raspForTeacherAndStudent .rasp2-badge,
  #raspForTeacherAndStudent .rasp2-group-tag,
  #raspForTeacherAndStudent .rasp2-teacher-tag {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
    margin: 2px 3px 4px 0;
  }

  #raspForTeacherAndStudent .rasp2-badge {
    font-size: 13px;
    line-height: 1.25;
    padding: 3px 8px;
    border-radius: 7px;
  }

  #raspForTeacherAndStudent .rasp2-group-tag,
  #raspForTeacherAndStudent .rasp2-teacher-tag {
    font-size: 13px;
    line-height: 1.25;
    padding: 4px 8px;
    border-radius: 7px;
  }

  .rasp2-cards-4,
  .rasp2-cards-2,
  .rasp2-address-cards,
  .rasp2-departments-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rasp2-communities .rasp2-cards-4 a.rasp2-community-card,
  .rasp2-departments .rasp2-department-card {
    min-height: 76px;
    padding: 16px 16px;
    gap: 14px;
    border-radius: 14px;
  }

  .rasp2-communities .rasp2-cards-4 a.rasp2-community-card img,
  .rasp2-departments .rasp2-department-card img {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
  }

  .rasp2-community-name,
  .rasp2-department-name {
    font-size: 16px;
  }

  .rasp2-community-url,
  .rasp2-department-url {
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rasp2-community-card-body,
  .rasp2-department-card-body {
    gap: 5px;
  }

  .rasp2-bells-wrap {
    gap: 10px;
  }

  .rasp2-bells-intro {
    font-size: 15px;
    line-height: 1.45;
  }

  .rasp2-bells thead th,
  .rasp2-bells tbody td {
    font-size: 19px;
    padding: 16px 16px;
  }

  .rasp2-address-card {
    text-align: center;
  }

  .rasp2-address-specs {
    align-items: center;
  }

  .rasp2-address-card .rasp2-address-corp {
    font-size: 15px;
  }

  .rasp2-address-map-link {
    padding: 14px 14px 10px;
  }

  .rasp2-address-specs {
    padding: 0 14px 14px;
  }

  .rasp2-address-card .rasp2-address-street,
  .rasp2-address-card .rasp2-address-city {
    font-size: 16px;
  }

  .rasp2-address-spec {
    font-size: 13px;
  }

  .rasp2-footer-inner {
    padding: 14px 12px;
    font-size: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media screen and (max-width: 600px) {
  .rasp2-search-btn-desktop {
    display: none !important;
  }
  .rasp2-search-row {
    grid-template-columns: 1fr;
  }
  .rasp2-clear-history-text {
    display: none;
  }
  .rasp2-clear-history-btn {
    padding: 0 10px;
    gap: 0;
  }
  .rasp2-go {
    background: #A90000 !important;
    color: #fff !important;
    border-color: #A90000 !important;
  }
}

@media screen and (max-width: 430px) {
  .rasp2-wrap {
    padding: 8px 8px 16px;
  }

  .rasp2-theme-label {
    display: none;
  }

  .rasp2-theme-control {
    padding: 5px 8px;
    gap: 6px;
  }

  .rasp2-title {
    font-size: 22px;
  }

  .rasp2-subtitle,
  .rasp2-today {
    font-size: 14px;
  }

  .rasp2-robot {
    gap: 8px;
  }

  .rasp2-robot img {
    width: 120px;
    height: 145px;
    object-fit: cover;
    object-position: center top;
  }

  .rasp2-robot-text {
    padding: 8px 9px;
    margin-bottom: 68px; /* 18px gap above card top (card = 50px on small screens) */
    max-width: calc(100% - 148px);
  }

  .rasp2-search-row {
    grid-template-columns: 1fr;
  }

  .rasp2-search-btn-desktop {
    display: none !important;
  }

  .rasp2-history-head > span {
    font-size: 14px;
  }

  .rasp2-clear-history-btn {
    font-size: 13px;
    padding: 7px 11px;
  }

  .history-chip {
    font-size: 13px;
    padding: 7px 12px;
  }

  .rasp2-tabs button {
    flex: 1 1 auto;
  }

  .rasp2-warning h3 {
    font-size: 20px;
  }

  .rasp2-result-title-main {
    font-size: 26px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-week-cards {
    gap: 8px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-head {
    padding: 11px 11px 9px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-name {
    font-size: 15px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-card.is-past .rasp2-mobile-day-head {
    padding: 7px 9px 6px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-card.is-past .rasp2-mobile-day-name {
    font-size: 12px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-head {
    gap: 6px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-time {
    font-size: 18px;
  }

  .rasp2-communities .rasp2-cards-4 a.rasp2-community-card,
  .rasp2-departments .rasp2-department-card {
    min-height: 72px;
    padding: 14px 14px;
    gap: 13px;
  }
}

@media screen and (max-width: 390px) {
  .rasp2-wrap {
    padding: 6px 6px 14px;
  }

  .rasp2-title {
    font-size: 20px;
  }

  .rasp2-subtitle,
  .rasp2-today {
    font-size: 13px;
  }

  .rasp2-search-row input,
  .rasp2-search-row button {
    height: 38px;
    font-size: 13px;
  }

  .rasp2-search-row input {
    font-size: max(13px, 16px);
  }

  .rasp2-warning {
    padding: 12px;
  }

  .rasp2-warning p {
    font-size: 12px;
  }

  .rasp2-result-title-main {
    font-size: 20px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-head {
    padding: 10px 10px 8px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-card.is-past .rasp2-mobile-day-head {
    padding: 7px 8px 6px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-body {
    padding: 0 8px 1px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-pair-content {
    font-size: 15px;
  }

  #raspForTeacherAndStudent .rasp2-mobile-day-empty {
    font-size: 11px;
    padding: 8px 0;
  }
}
/* ================= SECTION-6 SITE HEADER OVERRIDES ================= */

/* Always keep the site header white/light regardless of page theme */
/* Header logo: replace PNG with SVG (transparent bg) */
.logo,
.logo.w--current {
  background-image: url("/static/schedule/aa7468038770-sstulogo.svg") !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

/* Top-right SSTU logo in nav menu */
.rasp2-header-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background-color: transparent !important;
}
/* Kill white bg on all ancestors of the logo */
.div-block-20 .w-dropdown:has(.rasp2-header-logo),
.div-block-20 .w-dropdown-toggle:has(.rasp2-header-logo),
.div-block-20 .w-dropdown-list:has(.rasp2-header-logo),
.div-block-20 .dropdown_menu:has(.rasp2-header-logo),
.div-block-20 a:has(.rasp2-header-logo) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 4px !important;
}
.div-block-20 .w-dropdown-list:has(.rasp2-header-logo) {
  opacity: 1 !important;
  max-height: none !important;
  pointer-events: auto !important;
  transform: none !important;
  position: relative !important;
  left: auto !important;
  margin-top: 0 !important;
}
[data-theme="dark"] .rasp2-header-logo {
  background-color: #fff;
  border-radius: 6px;
  padding: 4px;
  box-sizing: border-box;
}

.section-6 {
  margin-bottom: 0 !important;
  background-color: #fff !important;
  box-shadow: 0 1px 16px -4px rgba(0, 0, 0, .22) !important;
  position: sticky !important;
  top: 0;
  z-index: 100;
  transition: transform 0.25s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.section-6.rasp2-header-hidden {
  transform: translateY(-100%);
}

[data-theme="dark"] .section-6 {
  background-color: #1e2230 !important;
  box-shadow: 0 1px 16px -4px rgba(0, 0, 0, .55) !important;
}
[data-theme="dark"] .section-6 .dropdown_menu,
[data-theme="dark"] .section-6 .dropdownlin,
[data-theme="dark"] .section-6 a {
  color: #e8eaf0 !important;
}
[data-theme="dark"] .section-6 .text-block-10 {
  color: #e8eaf0 !important;
}
[data-theme="dark"] .section-6 .w-icon-dropdown-toggle {
  color: #e8eaf0 !important;
}
[data-theme="dark"] .section-6 .dropdown-list-2.w--open {
  background-color: #1e2230 !important;
  box-shadow: 0 5px 20px -3px rgba(0, 0, 0, .6) !important;
}
[data-theme="dark"] .section-6 .menu_list {
  background: #1e2230 !important;
}
[data-theme="dark"] .section-6 .menu_list.w--open {
  background: #1e2230 !important;
}
[data-theme="dark"] .rasp2-mob-logo {
  background-color: #2a3a5c !important;
}
[data-theme="dark"] .section-6 .linkm {
  color: #e8eaf0 !important;
}

/* Mobile header logo */
.rasp2-mob-logo {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background-color: #1b2b4b;
  padding: 4px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .rasp2-mob-logo {
    display: block;
  }
  .section-6 .dropdown-toggle-10 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    cursor: pointer;
  }
  .section-6 .text-block-10 {
    flex: 1;
  }
  .rasp2-burger-icon {
    flex-shrink: 0;
    color: #4a6fa5;
    opacity: 0.75;
  }
}

/* Dropdown appears above everything */
.section-6 .w-dropdown {
  z-index: 1000;
}

/* ── Desktop dropdown: плавная анимация ── */
.section-6 .dropdown-list-2 {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s ease, transform 0.22s ease;
  border-radius: 12px !important;
  overflow: hidden;
  z-index: 1001;
}
.section-6 .dropdown-list-2.w--open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  border-radius: 12px !important;
  z-index: 1001;
}

/* Hover на светлой теме */
.section-6 .dropdownlin:hover,
.section-6 .dropdown-list-2 a:hover {
  background-color: #f0f2f5 !important;
  border-radius: 8px;
}

/* Hover на тёмной теме */
[data-theme="dark"] .section-6 .dropdownlin:hover,
[data-theme="dark"] .section-6 .dropdown-list-2 a:hover {
  background-color: #2e3550 !important;
  border-radius: 8px;
}

/* Тёмный фон у открытого дропдауна и ссылок внутри */
[data-theme="dark"] .section-6 .dropdown-list-2 {
  background-color: #1e2230 !important;
}
[data-theme="dark"] .section-6 .dropdown-list-2 a,
[data-theme="dark"] .section-6 .dropdown-list-2 .dropdownlin {
  background-color: transparent !important;
  color: #e8eaf0 !important;
}

/* Mobile Меню dropdown list — smooth slide */
.section-6 .menu_list {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #fff;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .25);
  z-index: 1001;
  box-sizing: border-box;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease;
}
.section-6 .menu_list.w--open {
  max-height: 700px !important;
  opacity: 1;
  pointer-events: auto;
}

/* Theme row: no Главная button → align toggle to the right */
.rasp2-theme-row {
  justify-content: flex-end;
}

/* ════════════════════════════════════════════════════════════════════════════
   SKELETON LOADING ANIMATION (mobile)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes rasp2-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.rasp2-skeleton-host {
  padding: 0 0 16px;
}
.rasp2-sk-week {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rasp2-sk-day {
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.rasp2-sk-day-head {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.rasp2-sk-pair {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rasp2-sk-pair:last-child { border-bottom: none; }

.rasp2-sk-row {
  border-radius: 5px;
  background: linear-gradient(90deg, var(--line) 25%, var(--block-bg) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: rasp2-shimmer 1.6s infinite linear;
}
.rasp2-sk-name  { width: 60px;  height: 14px; }
.rasp2-sk-date  { width: 40px;  height: 12px; margin-left: auto; }
.rasp2-sk-time  { width: 80px;  height: 13px; align-self: center; margin: 0 auto 2px; }
.rasp2-sk-line  { width: 100%;  height: 11px; }
.rasp2-sk-short { width: 65%;   margin: 0 auto; }

/* ════════════════════════════════════════════════════════════════════════════
   CURRENT PAIR HIGHLIGHT + TIMER BADGE (mobile)
   ════════════════════════════════════════════════════════════════════════════ */
.rasp2-mobile-pair {
  position: relative;
}

.rasp2-mobile-pair.is-active-pair {
  border-left: 3px solid var(--primary);
  padding-left: 13px; /* compensate 3px border */
}

/* Следующая пара — бледная акцентная полоска */
.rasp2-mobile-pair.is-next-pair {
  border-left: 3px solid rgba(21, 116, 232, 0.35);
  padding-left: 13px;
}

/* Прошедшие пары — приглушены */
.rasp2-mobile-pair.is-past-pair {
  opacity: 0.38;
}

.rasp2-pair-timer,
.rasp2-pair-next-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
  pointer-events: none;
}
.rasp2-pair-timer {
  color: var(--primary);
  background: var(--primary-soft);
}
[data-theme="dark"] .rasp2-pair-timer {
  background: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}
.rasp2-pair-next-badge {
  color: rgba(21, 116, 232, 0.6);
  background: rgba(21, 116, 232, 0.08);
}
[data-theme="dark"] .rasp2-pair-next-badge {
  color: rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.1);
}

/* Перемена между парами (мобильная версия) — только активная */
.rasp2-break-bar {
  display: none;
}
.rasp2-break-bar.is-active-break {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.04);
  text-align: center;
  white-space: nowrap;
}
[data-theme="dark"] .rasp2-break-bar.is-active-break {
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.rasp2-mobile-pair-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

/* ════════════════════════════════════════════════════════════════════════════
   ADD TO CALENDAR BOTTOM SHEET
   ════════════════════════════════════════════════════════════════════════════ */
#rasp2-cal-sheet {
  display: block;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  transition: visibility 0s 0.32s;
}
#rasp2-cal-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s;
}
.rasp2-cal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.28s ease;
}
#rasp2-cal-sheet.is-open .rasp2-cal-backdrop {
  opacity: 1;
}
.rasp2-cal-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg, #f4f6fb);
  border-radius: 20px 20px 0 0;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
#rasp2-cal-sheet.is-open .rasp2-cal-card {
  transform: translateY(0);
}
.rasp2-cal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 4px;
}
.rasp2-cal-drag {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.15);
}
[data-theme="dark"] .rasp2-cal-drag {
  background: rgba(255,255,255,0.2);
}
.rasp2-cal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--text, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
[data-theme="dark"] .rasp2-cal-close {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.rasp2-cal-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  padding: 0 4px;
}
.rasp2-cal-time {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary, rgba(0,0,0,0.45));
}
.rasp2-cal-subj {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.rasp2-cal-meta {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary, rgba(0,0,0,0.45));
}
.rasp2-cal-btn {
  width: 100%;
  height: auto;
  padding: 20px 16px;
  border-radius: 14px;
  border: none;
  background: var(--primary, #1574E8);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  margin: 0;
}
.rasp2-cal-btn-all {
  background: transparent;
  color: var(--primary, #1574E8);
  border: 1.5px solid var(--primary, #1574E8);
  font-size: 17px;
  height: auto;
  padding: 20px 16px;
  margin: -10px 0 0 0;
}
[data-theme="dark"] .rasp2-cal-time,
[data-theme="dark"] .rasp2-cal-meta {
  color: rgba(255,255,255,0.45);
}

/* ════════════════════════════════════════════════════════════════════════════
   NOTIFICATION BELL BUTTON
   ════════════════════════════════════════════════════════════════════════════ */
.rasp2-notif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.17s, color 0.17s, background 0.17s;
  flex-shrink: 0;
  white-space: nowrap;
}
.rasp2-notif-btn:hover,
.rasp2-notif-btn.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}
.rasp2-notif-btn.is-active svg {
  stroke: var(--primary);
}

[data-theme="dark"] .rasp2-notif-btn.is-active {
  background: var(--surface-2);
  border: 0;
  color: #2f7fe6;
}
[data-theme="dark"] .rasp2-notif-btn.is-active svg {
  stroke: #2f7fe6;
}

/* ════════════════════════════════════════════════════════════════════════════
   PUSH NOTIFICATIONS PANEL (bottom sheet on mobile, centered dialog on desktop)
   ════════════════════════════════════════════════════════════════════════════ */
.rasp2-notif-box {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
}
.rasp2-notif-intro {
  margin-bottom: 14px !important;
  text-align: center;
}
.rasp2-notif-box .rasp2-dl-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 6px;
}
.rasp2-notif-box .rasp2-dl-sub {
  text-align: center;
  font-size: 15px;
}
.rasp2-notif-search-wrap {
  position: relative;
  margin-bottom: 12px;
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.rasp2-notif-search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px 12px 40px;
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--block-bg-2);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none;
  display: block;
}
.rasp2-notif-search::placeholder { color: var(--muted); }
.rasp2-notif-search:focus { border-color: var(--primary); }
.rasp2-notif-search-wrap::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.rasp2-notif-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 60px;
  margin: 0 -4px;
  padding: 0 4px;
}
.rasp2-notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-bottom: none;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 10px;
  margin-bottom: 6px;
}
.rasp2-notif-item:last-child { margin-bottom: 0; }
.rasp2-notif-item:hover { background: var(--block-bg-2); }
.rasp2-notif-item.is-on {
  background: var(--primary-soft);
}
.rasp2-notif-item-name {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Toggle switch */
.rasp2-notif-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  background: var(--line);
  border-radius: 13px;
  transition: background 0.22s;
}
.rasp2-notif-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.rasp2-notif-toggle.is-on {
  background: var(--primary);
}
.rasp2-notif-toggle.is-on::after {
  transform: translateX(22px);
}
.rasp2-notif-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 18px 0;
  margin: 0;
}
.rasp2-notif-hint {
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 10px 0 0;
  flex-shrink: 0;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
}
.rasp2-notif-hint.is-success {
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}
.rasp2-notif-hint.is-error {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}
[data-theme="dark"] .rasp2-notif-hint.is-success { color: #4ade80; }
[data-theme="dark"] .rasp2-notif-hint.is-error   { color: #f87171; }

@media (max-width: 768px) {
  .rasp2-notif-box {
    max-height: 90vh;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 0 20px 40px !important;
    transform: translateY(100%) !important;
    overflow-x: hidden !important;
  }
  .rasp2-dl-backdrop.is-open .rasp2-notif-box {
    transform: translateY(0) !important;
  }
  .rasp2-notif-search-wrap {
    /* Force full width inside the padded flex column */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .rasp2-notif-search {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== Desktop collapse for past weeks ===== */
.rasp2-week-title--toggle {
  cursor: pointer;
  user-select: none;
}
.rasp2-week-title-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.rasp2-week-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  opacity: 0.6;
  position: relative;
  top: -2px;
}
.rasp2-week-title--toggle:hover .rasp2-week-chevron {
  opacity: 1;
}
.rasp2-table-collapse-wrap {
  overflow: hidden;
}
@media (min-width: 768px) {
  .rasp2-week-block[data-collapsed="true"] .rasp2-week-chevron {
    transform: rotate(-45deg);
    top: 1px;
  }
}
@media (max-width: 767px) {
  .rasp2-week-chevron {
    display: none;
  }
  .rasp2-week-title--toggle {
    cursor: default;
    pointer-events: none;
  }
}

/* ===== Smooth theme transition ===== */
.rasp2-theme-transition,
.rasp2-theme-transition *,
.rasp2-theme-transition *::before,
.rasp2-theme-transition *::after {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* ===== Fade header row when week is collapsed ===== */
.rasp2-week-block[data-collapsed="true"] table tr:first-child th {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.rasp2-week-block:not([data-collapsed]) table tr:first-child th {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ===== Fade-in when schedule first renders ===== */
@keyframes rasp2FadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rasp2-week-block {
  animation: rasp2FadeInUp 0.35s ease both;
}
.rasp2-week-block:nth-child(2) {
  animation-delay: 0.1s;
}

/* Hide Yandex Metrika debugger widget */
.__ymDebugger { display: none !important; }

/* ======= Merged multi-corpus teacher schedule ======= */
.rasp2-corp-block {
    position: relative;
}
.rasp2-corp-block + .rasp2-corp-block {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.07);
}
.rasp2-corp-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rasp2-accent, #1565c0);
    opacity: 0.75;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
}
/* Dim lesson type badge in corp blocks — gray, not accent blue */
.rasp2-corp-block .rasp2-dtc-type {
    opacity: 0.75;
    font-size: 10px;
    color: #98a2b3 !important;
}
[data-theme="dark"] .rasp2-corp-block .rasp2-dtc-type {
    color: #6b7280 !important;
}
[data-theme="dark"] .rasp2-corp-label {
    color: var(--rasp2-accent-light, #90caf9);
}
[data-theme="dark"] .rasp2-corp-block + .rasp2-corp-block {
    border-top-color: rgba(255,255,255,0.1);
}
/* Mobile multi-corpus sections */
.rasp2-mobile-corp-section + .rasp2-mobile-corp-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.10);
}
.rasp2-mobile-corp-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--rasp2-accent, #1565c0);
    opacity: 0.8;
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}
[data-theme="dark"] .rasp2-mobile-corp-label {
    color: var(--rasp2-accent-light, #90caf9);
}
[data-theme="dark"] .rasp2-mobile-corp-section + .rasp2-mobile-corp-section {
    border-top-color: rgba(255,255,255,0.1);
}
/* Dim lesson type in mobile corp sections */
.rasp2-mobile-corp-section .rasp2-mlc-type {
    color: #98a2b3 !important;
    font-size: 12px !important;
}
[data-theme="dark"] .rasp2-mobile-corp-section .rasp2-mlc-type {
    color: #6b7280 !important;
}
