/* ---------- База ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #f2f2ff;
  --text-dim: #9b9bb8;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --radius: 18px;
  --pulse-duration: 3s;
}

html, body { min-height: 100vh; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a1a;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem 4rem;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}
body::before {
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -20vw; left: -20vw;
  animation: float1 22s ease-in-out infinite;
}
body::after {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -18vw; right: -18vw;
  animation: float2 26s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6vw, 5vh) scale(1.1); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-5vw, -4vh) scale(1.15); }
}

/* ---------- Контейнер ---------- */
.app {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.2rem 0;
}

/* ---------- Карточка с таймером ---------- */
.status {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.timer-circle {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 76vw;
  max-height: 76vw;
}
.timer-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 14;
}

.timer-ring {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 596.9;      /* 2π·95 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s linear, stroke 0.25s ease;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

/* Синхронный пульс кольца с активным блоком */
.timer-circle.running .timer-ring {
  animation: syncPulseRing var(--pulse-duration) ease-in-out infinite;
}
@keyframes syncPulseRing {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4)); }
  50%      { filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.6)); }
}

/* Овертайм */
.timer-circle.overtime .timer-ring {
  stroke: url(#ringOverGradient);
  animation: overPulse 1s ease-in-out infinite;
}
@keyframes overPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.55)); }
  50%      { filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.85)); }
}

.timer-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

#timerDisplay {
  font-size: 3.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
#timerDisplay.overtime {
  color: #fb7185;
  text-shadow: 0 0 24px rgba(244, 63, 94, 0.65);
}

#currentBlockName {
  margin-top: 0.55rem;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--text-dim);
  max-width: 100%;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Подпись таймера: сдержанный движущийся блик в фирменных цветах. */
#currentBlockName {
  position: relative;
  padding-bottom: 9px;
}
#currentBlockName::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 15%;
  width: 70%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #8b5cf6 35%, #ec4899 55%, transparent 100%);
  background-size: 220% 100%;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.timer-circle.task-in-progress #currentBlockName::after {
  opacity: .78;
  animation: task-underline-glide 5s linear infinite;
}
@keyframes task-underline-glide {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .timer-circle.task-in-progress #currentBlockName::after {
    animation: none;
    opacity: .5;
  }
}

/* ---------- Кнопки (общие) ---------- */
button {
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: var(--text);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}
button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
button:active:not(:disabled) { transform: translateY(0) scale(0.97); }
button:disabled { opacity: 0.35; cursor: not-allowed; }

button.primary {
  background: var(--grad);
  border: none;
  color: #fff;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.45);
}
button.primary:hover:not(:disabled) {
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.55);
  background: linear-gradient(135deg, #9d6ff8 0%, #f45aa4 100%);
}

button.danger {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}
button.danger:hover:not(:disabled) {
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

/* ---------- Круглые кнопки-иконки ---------- */
.controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 60px;
  height: 60px;
  min-width: 60px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.icon-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
}

/* ---------- Список блоков ---------- */
.blocks-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.blocks-list:empty::after {
  content: 'Пока пусто — добавьте первый блок внизу';
  color: var(--text-dim);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.block-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}
.block-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Текущий блок — статичная подсветка */
.block-item.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.22),
    0 6px 20px rgba(139, 92, 246, 0.12);
}

/* Синхронный пульс с кольцом — только когда таймер идёт */
.block-item.active.is-running {
  animation: syncPulseBlock var(--pulse-duration) ease-in-out infinite;
}
@keyframes syncPulseBlock {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22),
                0 6px 20px rgba(139, 92, 246, 0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35),
                0 6px 24px rgba(236, 72, 153, 0.22);
  }
}

/* Тонкая линия прогресса у активного блока */
.block-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  opacity: 0.7;
  transition: width 0.5s linear;
}

/* Drag & drop */
.blocks-list.can-drag .block-item:not(.done) { cursor: grab; }
.blocks-list.can-drag .block-item:not(.done):active { cursor: grabbing; }
.block-item.dragging { opacity: 0.35; }
.block-item.drag-over {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.1);
}

/* Мягкое появление нового блока */
.block-item.just-added {
  animation: fadeSlideIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Анимация перехода в завершённые */
.block-item.just-completed {
  animation: completeToDone 1s cubic-bezier(0.25, 0.9, 0.3, 1) forwards;
}
@keyframes completeToDone {
  0% {
    opacity: 1;
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.28),
                0 6px 22px rgba(139, 92, 246, 0.18);
    filter: saturate(1);
    transform: scale(1.015);
  }
  40% {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.22),
                0 4px 16px rgba(236, 72, 153, 0.14);
    transform: scale(1.005);
  }
  100% {
    opacity: 0.42;
    background: var(--glass);
    border-color: var(--border);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    filter: saturate(0.5);
    transform: scale(1);
  }
}

/* Завершённые блоки */
.block-item.done {
  opacity: 0.42;
  filter: saturate(0.5);
  cursor: default;
}
.block-item.done:hover {
  background: var(--glass);
  border-color: var(--border);
}

.block-item .name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-item.active .name { color: #e0d5ff; }

.block-item .duration {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  white-space: nowrap;
}

.block-item .remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.3rem 0.6rem;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 10px;
  min-width: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.block-item .remove-btn:hover:not(:disabled) {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.15);
  transform: none;
}
.block-item .remove-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* ---------- Форма добавления ---------- */
.add-block {
  display: flex;
  gap: 0.55rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.add-block input {
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.add-block input::placeholder { color: var(--text-dim); }
.add-block input:focus {
  background: var(--glass-strong);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
#blockName { flex: 1; min-width: 0; }
#blockDuration { width: 90px; text-align: center; }
#blockDuration::-webkit-outer-spin-button,
#blockDuration::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#blockDuration { -moz-appearance: textfield; }

/* ---------- Настройки: только горизонтальная линия ---------- */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.setting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
}
.setting input {
  width: 70px;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.setting input:focus {
  background: var(--glass-strong);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.setting input::-webkit-outer-spin-button,
.setting input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.setting input { -moz-appearance: textfield; }

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 480px) {
  body { padding: 1.25rem 0.75rem 3rem; }
  h1 { font-size: 1.4rem; }
  #timerDisplay { font-size: 2.6rem; }
  .status { padding: 1.5rem 1rem; }
  .controls { gap: 0.5rem; }
  .icon-btn { width: 52px; height: 52px; min-width: 52px; }
  .icon-btn svg { width: 22px; height: 22px; }
  .add-block { flex-wrap: wrap; }
  .add-block input,
  .add-block button { flex: 1 1 100%; }
  #blockDuration { width: 100%; }
  .settings-row { justify-content: center; }
}
/* Управление конфигурациями */
.settings-actions { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.settings-actions button[hidden] { display: none; }
.settings-actions button { white-space: nowrap; }
#shareBtn { background: var(--grad); border: none; color: #fff; }
#shareBtn:disabled { opacity: 0.55; }
@media (max-width: 480px) {
  .settings-actions { width: 100%; justify-content: center; }
}

/* Плавное завершение в фирменных фиолетово-розовых цветах */
.block-item.completion-moving { position: relative; z-index: 2; pointer-events: none; }
.block-item.completion-moving::before {
  content: '✓'; position: absolute; right: 3.5rem; top: 50%;
  color: #ec4899; font-size: 1.3rem; font-weight: 800;
  text-shadow: 0 0 14px rgba(236,72,153,.6);
  animation: completionCheck 850ms ease-out both;
}
@keyframes completionCheck {
  0%, 15% { opacity: 0; transform: translateY(-35%) scale(.6); }
  40%, 65% { opacity: 1; transform: translateY(-50%) scale(1.15); }
  100% { opacity: 0; transform: translateY(-50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .block-item.just-completed, .block-item.just-added,
  .block-item.completion-moving::before { animation: none !important; }
}

/* Диалоги и уведомления Хроноблока */
.cb-dialog { position: fixed; margin: auto; inset: 0; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; border: 1px solid rgba(196,181,253,.22); border-radius: 24px; padding: 28px 24px 24px; color: #f2f2ff; background: #171529; box-shadow: 0 24px 90px rgba(0,0,0,.6), 0 0 40px rgba(139,92,246,.12); text-align: center; animation: cb-dialog-in .23s ease-out; }
.cb-dialog::backdrop { background: rgba(4,4,14,.72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.cb-dialog-icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #c4b5fd; font-size: 27px; background: rgba(139,92,246,.16); }
.cb-dialog h2 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 10px; }
.cb-dialog p { color: #aaa6c3; font-size: .9rem; line-height: 1.55; margin: 0 0 22px; }
.cb-dialog-actions { display: flex; gap: 10px; }
.cb-dialog-actions button { flex: 1; min-width: 0; padding: 12px 8px; }
.cb-dialog-confirm { border: 0; color: #fff; background: linear-gradient(135deg,#8b5cf6,#ec4899); }
.cb-dialog-confirm:hover:not(:disabled) { background: linear-gradient(135deg,#8b5cf6,#ec4899); box-shadow: 0 6px 20px rgba(139,92,246,.25); }
.cb-dialog-cancel { background: rgba(255,255,255,.07); }
.cb-dialog-cancel:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); }
.cb-dialog-field { display: block; width: 100%; margin: 0 0 18px; padding: 12px; resize: vertical; border: 1px solid rgba(196,181,253,.3); border-radius: 12px; background: #0a0a1a; color: #e0d5ff; font: 12px/1.5 monospace; overflow-wrap: anywhere; }
.cb-toast-region { position: fixed; z-index: 10010; bottom: max(20px, env(safe-area-inset-bottom)); left: 16px; right: 16px; display: flex; justify-content: center; pointer-events: none; }
.cb-toast { max-width: 410px; width: max-content; display: flex; align-items: center; gap: 12px; padding: 13px 17px; color: #f2f2ff; font-size: .9rem; line-height: 1.4; border: 1px solid rgba(139,92,246,.4); border-radius: 16px; background: #211b36; box-shadow: 0 12px 36px rgba(0,0,0,.4); animation: cb-toast-in .25s ease-out; }
.cb-toast-icon { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(139,92,246,.2); color: #c4b5fd; font-weight: 800; }
.cb-toast-error { border-color: rgba(236,72,153,.5); }
.cb-toast-error .cb-toast-icon { color: #f9a8d4; background: rgba(236,72,153,.15); }
.cb-toast-out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes cb-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cb-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cb-dialog, .cb-toast { animation: none; } .cb-toast-out { transition: none; } }

/* Равномерный отступ между значком и подписью, без изменения hover-эффектов. */
#addBtn,
.settings-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Компактные подписи только у кнопок основного интерфейса.
   Цвета, hover и анимации модальных окон не затрагиваются. */
@media (max-width: 560px) {
  #addBtn .compact-btn-label,
  .settings-actions .compact-btn-label { display: none; }

  #addBtn,
  .settings-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    flex: 0 0 44px;
    font-size: 1.35rem;
    line-height: 1;
  }

  .settings-actions button[hidden] { display: none; }
  .add-block { min-width: 0; }
  .add-block input { min-width: 0; }
}

/* В мобильной вертикальной форме кнопка добавления остаётся удобной. */
@media (max-width: 480px) {
  #addBtn { flex: 0 0 44px; width: 44px; }
}


/* v3.1 — компактный прогресс в заголовке списка; стили кнопок не затронуты */
.meeting-progress { min-width: 0; margin-bottom: -.55rem; }
.meeting-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.meeting-progress-title { margin: 0; min-width: 0; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.meeting-progress-summary { flex: none; display: flex; align-items: baseline; gap: .7rem; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meeting-progress-time { color: var(--text-dim); }
.meeting-progress-percent { color: #c4b5fd; font-weight: 600; }
.meeting-progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(139,92,246,.16); }
.meeting-progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .35s ease; }
@media (max-width: 420px) {
  .meeting-progress-time { display: none; }
  .meeting-progress-title { font-size: .88rem; }
}
.block-item.next-up:not(.done):not(.active) { border-color: rgba(167,139,250,.4); background: rgba(139,92,246,.065); }
.block-item.next-up:not(.done) .name::after { content: 'ДАЛЕЕ'; display: block; margin-top: .3rem; color: #c4b5fd; font-size: .65rem; font-weight: 700; letter-spacing: .09em; }
.keyboard-help-row { display: flex; justify-content: flex-end; margin-top: -.75rem; }
.keyboard-help-btn { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; padding: .5rem .85rem; color: var(--text-dim); }
.keyboard-help-btn svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 560px) { .keyboard-help-btn span { display: none; } .keyboard-help-btn { width: 44px; height: 44px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .meeting-progress-fill { transition: none; } }

/* v3.1 — прогресс внутри карточки таймера; круг и его содержимое не изменены */
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-width: 0; }
.app-header h1 { min-width: 0; }
.status .meeting-progress { width: min(270px, 100%); margin: .9rem 0 0; flex: none; }
.status .meeting-progress-head { justify-content: flex-end; margin-bottom: .4rem; }
.status .meeting-progress-summary { width: 100%; justify-content: space-between; font-size: .75rem; }
.status .meeting-progress-track { height: 3px; }
@media (max-width: 420px) { .status .meeting-progress-time { display: inline; } }
.keyboard-help-btn { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; }
.cb-dialog-icon svg { width: 26px; height: 26px; display: block; }
.cb-shortcuts-table { width: 100%; border-collapse: collapse; margin: .65rem 0 1.2rem; text-align: left; }
.cb-shortcuts-table tr + tr { border-top: 1px solid rgba(255,255,255,.08); }
.cb-shortcuts-table th, .cb-shortcuts-table td { padding: .7rem .4rem; font-size: .86rem; }
.cb-shortcuts-table th { width: 36%; font-weight: 500; }
.cb-shortcuts-table td { color: var(--text-dim); }
.cb-shortcuts-table kbd { display: inline-block; min-width: 2rem; padding: .28rem .55rem; border: 1px solid rgba(196,181,253,.25); border-radius: 7px; background: rgba(139,92,246,.13); color: #e9d5ff; text-align: center; font: inherit; font-weight: 600; }
