/* ==========================================================================
   PhilTech · Журнал успеваемости (gradebook.html)
   Фирменный слой поверх design-system.css: таблица уроков × учеников.
   ========================================================================== */

.gradebook-page .gb-wrap {
  padding-bottom: 40px;
}

/* --- Hero --- */
.gb-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.gb-kicker {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #FFD23C;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ys-ink, #0a1224);
}

.gb-title {
  margin: 14px 0 6px;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-display, sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.gb-subtitle {
  margin: 0;
  color: var(--ys-muted, #5b6b82);
  font-size: 0.95rem;
}

.gb-subtitle b {
  color: var(--ys-ink, #0a1224);
}

/* --- Toolbar --- */
.gb-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 4px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ys-ink, #0a1224);
}

.gb-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gb-field > span {
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gb-field select,
.gb-field input {
  min-height: 40px;
  padding: 7px 10px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 12px;
  font-weight: 700;
}

.gb-field--class select {
  min-width: 240px;
}

.gb-field select:focus,
.gb-field input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.5);
}

.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 13px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #FFD23C;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ys-ink, #0a1224);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.gb-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ys-ink, #0a1224);
}

.gb-btn--ghost {
  background: #fff;
}

.gb-btn--teal {
  background: var(--pt-teal, #43b5a0);
  color: #fff;
}

.gb-btn--coral {
  background: var(--pt-pink, #fa448c);
  color: #fff;
}

.gb-btn--sm {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 9.5px;
  box-shadow: 2px 2px 0 var(--ys-ink, #0a1224);
}

.gb-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gb-spacer {
  flex: 1 1 auto;
}

/* --- Tabs --- */
.gb-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.gb-tab {
  min-height: 38px;
  padding: 7px 13px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ys-ink, #0a1224);
  cursor: pointer;
}

.gb-tab--active {
  background: #FFD23C;
}

/* --- Легенда --- */
.gb-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gb-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gb-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ys-ink, #0a1224);
}

.gb-dot--5 { background: var(--pt-teal, #43b5a0); }
.gb-dot--4 { background: var(--pt-cyan, #5ce1e6); }
.gb-dot--3 { background: #FFD23C; }
.gb-dot--2 { background: var(--pt-pink, #fa448c); }
.gb-dot--absent { background: #fff; border-style: dashed; }

/* --- Скролл-контейнер --- */
.gb-scroll {
  max-height: min(68vh, 720px);
  overflow: auto;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 4px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--ys-ink, #0a1224);
}

.gb-scroll--works {
  max-height: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

/* --- Таблица журнала --- */
.gb-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.gb-table th,
.gb-table td {
  padding: 0;
  border-right: 2px solid #e3e9f1;
  border-bottom: 2px solid #e3e9f1;
  text-align: center;
  vertical-align: middle;
}

.gb-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f0e8;
}

.gb-table thead tr:nth-child(2) th {
  top: 44px;
  z-index: 2;
}

.gb-table thead th.gb-corner {
  left: 0;
  z-index: 5;
  min-width: 168px;
  max-width: 220px;
  padding: 8px 10px;
  border-right: 3px solid var(--ys-ink, #0a1224);
  border-bottom: 3px solid var(--ys-ink, #0a1224);
  background: var(--ys-ink, #0a1224);
  color: #fff;
  font-family: var(--ys-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.gb-table tbody th.gb-student {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 168px;
  max-width: 220px;
  padding: 7px 10px;
  border-right: 3px solid var(--ys-ink, #0a1224);
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb-table tbody tr:hover th.gb-student {
  background: #f7fafd;
}

.gb-student small {
  display: block;
  margin-top: 2px;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Заголовки уроков */
.gb-lesson {
  min-width: 74px;
  height: 44px;
  padding: 0;
}

.gb-lesson-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.gb-lesson-btn:hover {
  background: #FFD23C;
}

.gb-type {
  display: inline-block;
  padding: 1px 4px;
  border: 1.5px solid var(--ys-ink, #0a1224);
  border-radius: 2px;
  background: var(--pt-cyan, #5ce1e6);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gb-type--control { background: var(--pt-pink, #fa448c); color: #fff; }
.gb-type--test { background: #FFD23C; }
.gb-type--practice { background: var(--pt-teal, #43b5a0); color: #fff; }

.gb-topic-cell {
  min-width: 74px;
  max-width: 96px;
  height: 34px;
  padding: 3px 5px !important;
  background: #fdfbf7;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gb-hw-mark {
  display: inline-block;
  margin-left: 3px;
  color: var(--pt-violet, #8b5cf6);
  font-size: 9px;
}

/* Ячейки */
.gb-cell {
  width: 74px;
  height: 46px;
}

.gb-cell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 46px;
  min-height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--ys-display, sans-serif);
}

.gb-cell-btn:disabled {
  cursor: default;
}

.gb-cell-btn--editable:hover {
  background: #eef6ff;
  box-shadow: inset 0 0 0 2px var(--pt-cyan, #5ce1e6);
}

.gb-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  font-family: var(--ys-display, sans-serif);
  font-size: 15px;
  line-height: 1;
}

.gb-mark--5 { background: var(--pt-teal, #43b5a0); color: #fff; }
.gb-mark--4 { background: var(--pt-cyan, #5ce1e6); }
.gb-mark--3 { background: #FFD23C; }
.gb-mark--2 { background: var(--pt-pink, #fa448c); color: #fff; }

.gb-att {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px dashed var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 10px;
  font-weight: 800;
}

.gb-att--absent { border-color: var(--pt-pink, #fa448c); color: var(--pt-pink, #fa448c); border-style: solid; }
.gb-att--late { border-color: #d98f00; color: #a86a00; border-style: solid; background: #fff7e0; }
.gb-att--excused { border-color: var(--pt-cyan, #5ce1e6); color: #0b6e78; border-style: solid; background: #eafcfd; }

.gb-comment-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--pt-violet, #8b5cf6);
}

.gb-cell-empty {
  color: #b9c3d2;
  font-family: var(--ys-mono, monospace);
  font-size: 15px;
  opacity: 0;
}

.gb-cell-btn--editable:hover .gb-cell-empty {
  opacity: 1;
}

/* Сводные колонки */
.gb-sum-head {
  min-width: 78px;
  height: 44px;
  padding: 0 6px !important;
  border-left: 3px solid var(--ys-ink, #0a1224);
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.gb-sum {
  min-width: 78px;
  padding: 4px 6px !important;
  border-left: 3px solid var(--ys-ink, #0a1224);
  background: #fbfcfe;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 11.5px;
  font-weight: 800;
}

.gb-sum small {
  display: block;
  color: var(--ys-muted, #5b6b82);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gb-sum--avg {
  font-family: var(--ys-display, sans-serif);
  font-size: 15px;
}

.gb-sum--low { color: var(--pt-pink, #fa448c); }
.gb-sum--mid { color: #a86a00; }
.gb-sum--high { color: #147a68; }

/* Итоговая строка */
.gb-table tfoot th,
.gb-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 3px solid var(--ys-ink, #0a1224);
  background: #f5f0e8;
}

.gb-table tfoot th.gb-student {
  z-index: 3;
  background: var(--ys-ink, #0a1224);
  color: #fff;
  font-family: var(--ys-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gb-foot-avg {
  font-family: var(--ys-display, sans-serif);
  font-size: 14px;
}

/* --- Пустые состояния / алерты --- */
.gb-empty {
  padding: 34px 18px;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gb-empty b {
  color: var(--ys-ink, #0a1224);
}

.gb-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-left-width: 9px;
  border-left-color: var(--pt-pink, #fa448c);
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-size: 12.5px;
  font-weight: 600;
}

/* --- Модалки --- */
.gb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 18, 36, 0.55);
}

.gb-modal[hidden] {
  display: none;
}

.gb-modal-card {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 4px;
  background: #fff;
  box-shadow: 10px 10px 0 var(--ys-ink, #0a1224);
}

.gb-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.gb-modal-title {
  margin: 0;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-display, sans-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.gb-modal-sub {
  margin: 4px 0 0;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gb-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: var(--pt-pink, #fa448c);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ys-ink, #0a1224);
}

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

.gb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gb-form label {
  display: grid;
  gap: 4px;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gb-form input,
.gb-form select,
.gb-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 12px;
  font-weight: 600;
}

.gb-form textarea {
  min-height: 68px;
  resize: vertical;
  line-height: 1.4;
}

.gb-form input:focus,
.gb-form select:focus,
.gb-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.5);
}

.gb-grades {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gb-grade-btn {
  width: 46px;
  height: 46px;
  border: 3px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-display, sans-serif);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ys-ink, #0a1224);
}

.gb-grade-btn--5.gb-grade-btn--on { background: var(--pt-teal, #43b5a0); color: #fff; }
.gb-grade-btn--4.gb-grade-btn--on { background: var(--pt-cyan, #5ce1e6); }
.gb-grade-btn--3.gb-grade-btn--on { background: #FFD23C; }
.gb-grade-btn--2.gb-grade-btn--on { background: var(--pt-pink, #fa448c); color: #fff; }
.gb-grade-btn--clear.gb-grade-btn--on { background: #e6ebf2; }

.gb-att-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gb-att-btn {
  min-height: 40px;
  padding: 6px 10px;
  border: 2px solid var(--ys-ink, #0a1224);
  border-radius: 3px;
  background: #fff;
  color: var(--ys-ink, #0a1224);
  font-family: var(--ys-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.gb-att-btn--on {
  background: var(--pt-cyan, #5ce1e6);
  box-shadow: 2px 2px 0 var(--ys-ink, #0a1224);
}

.gb-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
}

.gb-modal-actions .gb-btn--danger {
  margin-right: auto;
  background: var(--pt-pink, #fa448c);
  color: #fff;
}

.gb-status {
  min-height: 16px;
  margin: 6px 0 0;
  color: var(--pt-pink, #fa448c);
  font-family: var(--ys-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.gb-note {
  margin: 12px 0 0;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- Встроенный режим (кабинет) --- */
.gb--embedded .gb-toolbar {
  margin-top: 0;
}

.gb-meta {
  margin: -4px 0 10px;
  color: var(--ys-muted, #5b6b82);
  font-family: var(--ys-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gb-meta b {
  color: var(--ys-ink, #0a1224);
}

/* --- Печать --- */
.gb-print-root {
  display: none;
}

@page {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  /* Белый фон печати для html/body */
  html,
  body,
  body.gb-printing {
    background: #fff !important;
  }

  body.gb-printing > *:not(#gb-print-root) {
    display: none !important;
  }

  body.gb-printing #gb-print-root,
  body.gb-printing #gb-print-root * {
    visibility: visible !important;
  }

  #gb-print-root {
    display: block !important;
    color: #000;
    font-family: "Space Grotesk", Arial, sans-serif;
  }

  .gb-print-head {
    margin: 0 0 6mm;
    padding-bottom: 3mm;
    border-bottom: 2px solid #000;
  }

  .gb-print-brand {
    color: #000;
    font-family: "JetBrains Mono", monospace;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .gb-print-title {
    margin: 1mm 0;
    color: #000;
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 16pt;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .gb-print-meta {
    color: #333;
    font-size: 8.5pt;
    line-height: 1.45;
  }

  .gb-table--print {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 8.5pt;
  }

  .gb-table--print th,
  .gb-table--print td {
    padding: 1.6mm 1.4mm;
    border: 0.6pt solid #000;
    text-align: center;
    vertical-align: middle;
  }

  .gb-table--print thead th {
    background: #eef1f5 !important;
    color: #000;
    font-size: 7.5pt;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .gb-table--print .gb-print-topic {
    width: 17mm;
    color: #333;
    font-size: 6.8pt;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  .gb-table--print .gb-print-student {
    width: 45mm;
    text-align: left !important;
    white-space: normal;
  }

  .gb-table--print .gb-print-lesson {
    width: 17mm;
  }

  .gb-table--print .gb-print-sum {
    width: 20mm;
  }

  .gb-print-mark {
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 10pt;
  }

  .gb-print-foot {
    margin-top: 3mm;
    color: #333;
    font-size: 7.5pt;
  }

  .gb-print-sign {
    display: flex;
    justify-content: space-between;
    gap: 10mm;
    margin-top: 8mm;
    color: #000;
    font-size: 8pt;
  }

  .gb-print-sign span {
    flex: 1 1 0;
  }

  tr,
  td,
  th {
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }
}

@media (max-width: 760px) {
  .gb-hero {
    align-items: flex-start;
  }

  .gb-toolbar {
    padding: 10px;
    box-shadow: 4px 4px 0 var(--ys-ink, #0a1224);
  }

  .gb-field--class,
  .gb-field--class select {
    width: 100%;
    min-width: 0;
  }

  .gb-spacer {
    display: none;
  }

  .gb-scroll {
    max-height: 66vh;
    box-shadow: 5px 5px 0 var(--ys-ink, #0a1224);
  }

  .gb-table thead th.gb-corner,
  .gb-table tbody th.gb-student {
    min-width: 132px;
    max-width: 150px;
    font-size: 11.5px;
  }

  .gb-lesson,
  .gb-cell {
    width: 62px;
    min-width: 62px;
  }

  .gb-sum,
  .gb-sum-head {
    min-width: 66px;
  }

  .gb-form-row {
    grid-template-columns: 1fr;
  }
}


/* --- Приоритет над глобальными правилами кнопок кабинетов --- */
.gb .gb-btn { background: #FFD23C !important; color: var(--ys-ink, #0a1224) !important; border: 3px solid var(--ys-ink, #0a1224) !important; border-radius: 3px !important; box-shadow: 3px 3px 0 var(--ys-ink, #0a1224) !important; }
.gb .gb-btn--ghost { background: #fff !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-btn--teal { background: var(--pt-teal, #43b5a0) !important; color: #fff !important; }
.gb .gb-btn--coral { background: var(--pt-pink, #fa448c) !important; color: #fff !important; }
.gb .gb-tab { background: #fff !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-tab--active { background: #FFD23C !important; }
.gb .gb-lesson-btn { background: transparent !important; color: var(--ys-ink, #0a1224) !important; text-transform: none !important; letter-spacing: 0 !important; }
.gb .gb-lesson-btn:hover { background: #FFD23C !important; }
.gb .gb-cell-btn { background: transparent !important; }
.gb .gb-lesson-btn .gb-type { text-transform: uppercase !important; }
.gb .gb-close { background: var(--pt-pink, #fa448c) !important; color: #fff !important; }
.gb .gb-grade-btn { background: #fff !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-grade-btn--5.gb-grade-btn--on { background: var(--pt-teal, #43b5a0) !important; color: #fff !important; }
.gb .gb-grade-btn--4.gb-grade-btn--on { background: var(--pt-cyan, #5ce1e6) !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-grade-btn--3.gb-grade-btn--on { background: #FFD23C !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-grade-btn--2.gb-grade-btn--on { background: var(--pt-pink, #fa448c) !important; color: #fff !important; }
.gb .gb-grade-btn--clear.gb-grade-btn--on { background: #e6ebf2 !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-att-btn { background: #fff !important; color: var(--ys-ink, #0a1224) !important; }
.gb .gb-att-btn--on { background: var(--pt-cyan, #5ce1e6) !important; }


/* --- Контраст оценок внутри клеток --- */
.gb .gb-cell-btn { color: var(--ys-ink, #0a1224) !important; }
.gb .gb-mark { color: var(--ys-ink, #0a1224) !important; }
.gb .gb-mark--5, .gb .gb-mark--2 { color: #fff !important; }
.gb .gb-att { color: var(--ys-ink, #0a1224) !important; }
.gb .gb-att--absent { color: var(--pt-pink, #fa448c) !important; }
.gb .gb-att--late { color: #8a5a00 !important; }
.gb .gb-att--excused { color: #0b6e78 !important; }
.gb .gb-lesson-btn { color: var(--ys-ink, #0a1224) !important; }
.gb .gb-student, .gb .gb-sum { color: var(--ys-ink, #0a1224) !important; }
.gb .gb-legend span { color: var(--ys-muted, #5b6b82) !important; }


/* --- Итоговая строка — белый текст на тёмной ячейке --- */
.gb-table tfoot th.gb-student,
.gb-table tfoot td.gb-student {
  color: #fff !important;
}
.gb-table tfoot th.gb-student * {
  color: #fff !important;
}
