

/* Кураторы во всех подтренингах: кнопка справа от строки «Показать: …» у «Дополнительные преподаватели» + окно.
   Префикс классов gcp-cts-: в поле CSS аккаунта лежат стили всех скриптов сразу */

/* ---------- кнопка на странице настроек ---------- */

/* блок «Дополнительные преподаватели»: от него скрипт позиционирует кнопку */
.gcp-cts-host {
  position: relative;
}

.gcp-cts-open {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  white-space: nowrap;
  padding: 0 16px 0 13px;
  border: 0;
  border-radius: 999px;
  background: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
  color: #fff;
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.gcp-cts-open svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.gcp-cts-open:hover {
  background: #0062c4;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.36);
}

.gcp-cts-open:active {
  transform: scale(0.97);
}

.gcp-cts-open:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25);
}

/* ---------- окно ---------- */

.gcp-cts-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gcp-cts-modal {
  width: 600px;
  max-width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1d1d1f;
  animation: gcp-cts-in 0.18s ease-out;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .gcp-cts-modal {
    background: rgba(252, 252, 253, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
  }
}

@keyframes gcp-cts-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.gcp-cts-head {
  flex: 0 0 auto;
  padding: 22px 26px 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gcp-cts-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 26px 8px;
  overflow-y: auto;
}

.gcp-cts-label {
  margin: 0 0 10px;
  color: #6e6e73;
  font-size: 13px;
}

.gcp-cts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gcp-cts-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: #0062c4;
  font-weight: 500;
}

.gcp-cts-label-gap {
  margin-top: 18px;
}

/* «Добавим» — зелёные, «Снимем» — красные: снятие самое опасное, видно сразу */
.gcp-cts-chip-add {
  background: rgba(29, 122, 53, 0.1);
  color: #1d7a35;
}

.gcp-cts-chip-remove {
  background: rgba(217, 48, 37, 0.09);
  color: #c0392b;
}

.gcp-cts-status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(120, 120, 128, 0.07);
  font-weight: 500;
}

.gcp-cts-status-fail {
  background: rgba(217, 48, 37, 0.07);
  color: #c0392b;
}

.gcp-cts-note {
  margin-top: 14px;
  color: #86868b;
  font-size: 13px;
  line-height: 1.5;
}

.gcp-cts-note-fail {
  color: #c0392b;
}

/* ---------- переключатель «Сохранить изменения в текущем тренинге» (iOS) ---------- */

.gcp-cts-switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(120, 120, 128, 0.07);
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.gcp-cts-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gcp-cts-switch-ui {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.32);
  transition: background 0.2s;
}

.gcp-cts-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.gcp-cts-switch input:checked + .gcp-cts-switch-ui {
  background: #34c759;
}

.gcp-cts-switch input:checked + .gcp-cts-switch-ui::after {
  transform: translateX(18px);
}

.gcp-cts-switch input:focus-visible + .gcp-cts-switch-ui {
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.gcp-cts-switch input:disabled + .gcp-cts-switch-ui {
  opacity: 0.55;
}

.gcp-cts-switch-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
  color: #1d1d1f;
}

.gcp-cts-switch-text small {
  color: #86868b;
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- лог выполнения ---------- */

.gcp-cts-log {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gcp-cts-log:empty {
  display: none;
}

.gcp-cts-line {
  position: relative;
  padding: 4px 0 4px 24px;
  line-height: 1.45;
}

.gcp-cts-line::before {
  position: absolute;
  left: 2px;
  top: 4px;
  font-size: 13px;
}

.gcp-cts-line-run { color: #86868b; }
.gcp-cts-line-run::before { content: '○'; }
.gcp-cts-line-ok { color: #1d7a35; }
.gcp-cts-line-ok::before { content: '✓'; }
.gcp-cts-line-skip { color: #6e6e73; }
.gcp-cts-line-skip::before { content: '–'; }
.gcp-cts-line-fail { color: #c0392b; }
.gcp-cts-line-fail::before { content: '✕'; }

/* ---------- подвал ---------- */

.gcp-cts-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px 22px;
}

.gcp-cts-btn {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.gcp-cts-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.gcp-cts-btn-plain {
  background: rgba(120, 120, 128, 0.14);
  color: #1d1d1f;
}

.gcp-cts-btn-plain:not(:disabled):hover {
  background: rgba(120, 120, 128, 0.22);
}

.gcp-cts-btn-main {
  background: #0071e3;
  color: #fff;
}

.gcp-cts-btn-main:not(:disabled):hover {
  background: #0062c4;
}

