:root {
  --bg-main: #000000;
  --bg-card: #0F0F0F;
  --bg-card-hover: #1A1A1A;
  --color-primary: #FF9F00;
  --color-purple: #B233FF;
  --color-green: #00C853;
  --text-main: #FFFFFF;
  --text-muted: #AAAAAA;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-week: #888888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 400px;
}
.shift-loc-info-without-first-child {
 color: #888; font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.last-update-info {
    text-align: center;
    color: #8e8e93; /* Цвет как на скриншоте */
    font-size: 11px;
    margin-top: 24px; /* Отступ от расписания */
    margin-bottom: 8px;
    font-weight: 400;
}

.last-update-info span {
    display: inline-block;
}
.shift-loc-info, 
.shift-motiv-info {
    display: flex;
    align-items: center; /* Центрируем иконку и текст по вертикали */
    gap: 8px;            /* Расстояние от иконки до текста */
    margin-bottom: 4px;
}

/* Фиксированная ширина для зоны иконки */
.shift-loc-info span:first-child,
#ui-motivation-icon {
    width: 16px;         /* Фиксированная ширина колонки иконок */
    display: flex;
    justify-content: center; /* Центрируем иконку внутри этих 24px */
    flex-shrink: 0;      /* Запрещаем сжиматься */
}

/* Чтобы текст не прыгал, если он многострочный */
#ui-shift-branch, 
#ui-motivation-text {
    flex: 1;
    line-height: 1.2;
    /* white-space: nowrap; */
}
.auth-content {
  width: 100%;
  padding: 69px 16px 20px 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Важно для позиционирования свечения */
}
.auth-logo::before {
  content: "";
  position: absolute;
  width: 100px; /* Размер самого пятна свечения */
  height: 100px;
  background: rgba(255, 159, 0, 0.5);
  border-radius: 50%;
  filter: blur(30px); /* Размываем только фон */
  z-index: 1; /* Уводим назад, чтобы лого было сверху */
}
.auth-logo img,
.auth-logo svg {
  z-index: 2;
  height: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-title {
  color: #FF9F00;
  font-size: 24px;
  font-weight: 800;
  line-height: 29px;
  text-align: inherit;
}

.auth-subtitle {
  color: #FFF;
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.32px;
  text-align: inherit;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-input-wrapper {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-input-wrapper:focus-within {
  border-color: rgba(255, 159, 0, 0.5);
}

.auth-input-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(170, 170, 170, 1);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.auth-phone-input:focus ~ .auth-input-label,
.auth-phone-input:not(:placeholder-shown) ~ .auth-input-label {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  color: #AAA;
  letter-spacing: 0.22px;
}

.auth-input-label.error-active {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  color: #FF4444;
  letter-spacing: 0.22px;
}

.auth-phone-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  caret-color: #FF9F00;
  padding-top: 14px;
  text-align: left;
  padding-right: 30px;
}

.auth-phone-input::placeholder {
  color: transparent;
}

.auth-input-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s ease;
  z-index: 2;
}

.auth-input-clear:hover {
  color: #FFF;
}

.auth-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input-wrapper.auth-input-error {
  border-color: rgba(255, 63, 66, 0.5);;
  background: rgba(255, 68, 68, 0.08);
}

.auth-input-wrapper.auth-input-error:focus-within {
  border-color: #FF4444;
}

.login-error {
  color: #D94444;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}

.auth-button {
  width: 100%;
  height: 60px;
  background: #FF9F00;
  border: none;
  border-radius: 12px;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-button:hover {
  background: #FFB033;
}

.auth-button:active {
  background: #E68F00;
}

.auth-button:disabled {
  background: #734700;
  color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
  pointer-events: none;
}

.back-button {
  align-self: flex-start;
  margin-bottom: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.back-button:hover {
  opacity: 0.7;
}

.verify-code-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify-code-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.verify-code-input {
  width: 100%;
  max-width: 76px;
  height: 60px;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 12px;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}
.verify-code-input.verify-input-error {
  border-color: #D94444;
  background: rgba(255, 68, 68, 0.08);
}
.verify-code-input:focus:not(.verify-input-error),
.verify-code-input.filled:not(.verify-input-error) {
  border-color: rgba(255, 159, 0, 0.5); /* Сделали чуть ярче */
  background: rgba(255, 159, 0, 0.05); /* Легкий оттенок фона при заполнении */
  box-shadow: 0 0 8px rgba(255, 159, 0, 0.2); /* Эффект свечения */
}




.verify-error {
  color: #D94444;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  margin: 0;
  padding-left: 4px;
}

#verify-btn:disabled {
  background: #B37100;
  color: #000;
  cursor: not-allowed;
  pointer-events: none;
}

.verify-change-link {
  color: #FF9F00;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.verify-change-link:hover {
  text-decoration: underline;
}

.verify-resend-wrapper {
  text-align: center;
}

#resend-timer {
  color: rgba(255, 255, 255, 1);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  display: block;
}

.verify-resend-active {
  color: #FF9F00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.verify-resend-active:hover {
  text-decoration: underline;
}

.verify-header {
  gap: 16px;
}

.verify-subtitle {
  font-size: 14px;
  line-height: 20px;
}

.verify-phone {
  font-weight: 700;
  color: #FFF;
  margin-right: 8px;
}

#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000; /* Основной черный фон */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 9999;
  overflow: hidden; /* Чтобы размытие не создавало скролл */
}
#loading-screen::before {
  content: "";
  position: absolute;
  width: 185px;
  height: 160px;
  background: rgba(255, 159, 0, 0.3);
  border-radius: 50%;
  filter: blur(80px);
  transform: translate(0%, -20%);
}

.loading-logo-glow::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  /* Рисуем сплошное полупрозрачное кольцо */
  border: 3px solid rgba(255, 159, 0, 0.4); 
  box-sizing: border-box;
}
.loading-logo-glow {
  width: 90px;
  height: 90px;
  background: #FF9F00; /* Тот самый оранжевый фон из примера */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.loading-logo-glow img {
  width: 90px;
  height: 90px;
  z-index: 2;
  position: relative;
  /* Мягкое свечение самого лого */
  filter: drop-shadow(0 0 20px rgba(255, 159, 0, 0.4));
}
@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loading-logo-glow::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  /* Делаем все границы прозрачными, кроме одной */
  border: 3px solid transparent;
  border-top: 3px solid #FF9F00; /* Цвет змейки */
  box-sizing: border-box;
  
  /* Добавляем небольшое свечение самой змейке */
  filter: drop-shadow(0 0 5px rgba(255, 159, 0, 0.8));
  
  animation: logo-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
}
/* Текст под логотипом */
.loading-text {
  color: #AAA;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
}


#instruction-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.onboarding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.onboarding-content {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding-top: 60px; /* Немного увеличил отступ сверху для крестика */
  padding-bottom: 40px;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column; /* Добавлено */
}


.onboarding-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.onboarding-close:hover {
  opacity: 1;
}

.onboarding-btn {
  max-height: 60px;
}

.onboarding-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
  width: 100%;
  color: #FFF;
}
.os-toggle-wrapper-admin {
  display: flex;
  background: #1A1A1A; /* Темный фон подложки */
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Легкая рамка */
}
.os-toggle-wrapper {
  display: flex;
  background: #1A1A1A; /* Темный фон подложки */
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  gap: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Легкая рамка */
}
.os-tab {
  flex: 1;
  height: 35px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.os-tab.active {
  background: #FF9F00;
  color: #000;
}

.os-content {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column; /* Добавлено */
  margin-top: 24px; /* Отступ от переключателя iOS/Android */
}

.os-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.os-list {
  color: #FFF;
  font-size: 15px; /* Сделали шрифт чуть крупнее */
  line-height: 1.5;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Увеличили расстояние между пунктами */
}

.os-list li {
  padding-left: 6px; /* Отступ текста от цифры */
}

.os-list li::marker {
  font-variant-numeric: tabular-nums;
}

.os-list b {
  font-weight: 700;
}

.inline-step-icon {
  height: auto; /* Оптимальный размер иконки под текст */
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-left: 6px;
  margin-top: -3px; /* Выравнивание по центру строки */
}

.inline-icon {
  color: #FF9F00;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 4px;
}

.app-container {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.main-content {
  padding: 16px 6px 0px 6px;
  max-width: 100vw;
}
#ui-share-history .share-row {
  /* 40px — это примерная сумма ширины стрелочки (24px) + отступа (16px) */
  padding-right: 32px; 
}
.calendar-grid-error {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* На всякий случай сбросим отступ у самого контейнера, если он есть */
#ui-share-history {
  padding-right: 0;
  gap: 12px;
}
.bottom-nav-spacer {
  height: 90px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px 4px 4px 4px;
  position: relative;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

section {
  margin-bottom: 24px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  background-color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: var(--color-primary);
  font-size: 10px;
  letter-spacing: 1px;
}
.header-update-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    cursor: pointer; /* Указатель пальца */
    padding: 6px 10px; /* Увеличиваем область нажатия */
    border-radius: 12px; /* Скругляем края для эффекта при нажатии */
    transition: background 0.2s ease, transform 0.1s ease; /* Плавность */
    -webkit-tap-highlight-color: transparent; /* Убираем стандартную синюю вспышку на смартфонах */
    user-select: none; /* Запрещаем выделение текста при клике */
}
/* Эффект при нажатии (Micro-interaction) */
.header-update-area:active {
    transform: scale(0.95); /* Слегка уменьшается */
    background: rgba(255, 255, 255, 0.05); /* Едва заметный фон */
}

/* Вращение иконки при наведении/нажатии */
.header-update-area:active .update-icon-btn img {
    transform: rotate(180deg);
}

.update-icon-btn img {
    transition: transform 0.4s ease;
    display: block;
}

.header-update-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-date {
    font-size: 15px;
    color: #FFFFFF;
    line-height: 1.2;
}

.update-time {
    color: var(--text-week);
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}

.update-icon-btn {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.update-icon-btn:active {
    transform: rotate(180deg);
}

.update-icon-btn img {
    width: 24px;
    height: 24px;
}
.header-date {
  text-align: right;
}

.date-day {
  font-weight: 700;
  font-size: 14px;
}

.date-weekday {
  color: var(--text-muted);
  font-size: 11px;
}

.notification-banner {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 159, 0, 0.15); 
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  animation: notifySlideIn 0.5s ease-out;
}

.notification-banner.hiding {
  animation: notifySlideOut 0.45s ease forwards;
  position: relative; /* Важно: чтобы линия позиционировалась относительно баннера */
  overflow: hidden;   /* Важно: чтобы линия не вылезала за закругленные углы */
  border: 1px solid rgba(255, 159, 0, 0.2); /* Тонкая базовая обводка */
}
.notification-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px; /* Толщина линии */
  background: linear-gradient(
    to right, 
    rgba(255, 159, 0, 0) 0%, 
    rgba(255, 159, 0, 0.3) 50%, /* Сделал чуть ярче, чтобы было заметно */
    rgba(255, 159, 0, 0) 100%
  );
  z-index: 1;
}
@keyframes notifySlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notifySlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
    margin-bottom: 32px;
  }
  60% {
    opacity: 0;
    transform: translateY(-16px);
    max-height: 80px;
    margin-bottom: 32px;
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    overflow: hidden;
  }
}

.notify-icon-wrapper {
  position: relative;
  font-size: 24px;
  background: rgba(255, 159, 0, 0.1);
  padding: 8px 0px 8px 12px;
  border-radius: 35%;
  width: 48px;
  height: 48px;
}

.notify-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.notify-text {
  flex-grow: 1;
}

.notify-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.notify-desc {
  color: var(--text-week);
  font-size: 11px;
  line-height: 1.3;
}

.notify-btn {
  background-color: var(--color-primary);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* Чтобы блик не вылетал за края кнопки */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

/* Создаем сам блик */
.notify-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%; /* Начальное положение далеко слева */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%, /* Яркость самого блика */
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg); /* Наклон блика */
  animation: shine-cycle 5s infinite; 
}

/* Анимация движения блика */
@keyframes shine-cycle {
  0% {
    left: -150%;
  }
  /* Блик пролетает за 1.5 секунды (это 15% от 10-секундного цикла) */
  50% {
    left: 150%;
  }
  /* Остальные 85% времени (8.5 секунд) он просто ждет */
  100% {
    left: 150%;
  }
}

/* Небольшой эффект при нажатии */
.notify-btn:active {
  transform: scale(0.95);
}

.notify-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  margin-left: -4px;
}

.greeting-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 25px;
  margin-top: 35px;
}
/* Контейнер текста в кнопке календаря */
.dropdown-text {
    flex: 1; /* Занимает всё пространство между иконкой и стрелочкой */
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирует содержимое внутри */
    font-size: 16px;
    font-weight: 700;
}

/* Стили для CSS-точки */
.date-separator {
    display: inline-block;
    width: 4px;      /* Ширина точки */
    height: 4px;     /* Высота точки */
    background-color: #FFFFFF; /* Цвет точки */
    border-radius: 50%;        /* Делаем её круглой */
    margin: 0 10px;            /* Отступы слева и справа */
    vertical-align: middle;
    opacity: 0.8;              /* Небольшая прозрачность, чтобы не спорила с текстом */
}


.section-label {
  color: var(--text-week);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.icon-calendar { margin-right: 12px; font-size: 18px; }

.calendar-accordion-container {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  margin-top: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.calendar-header-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 12px;
}

.calendar-header-btn .accordion-chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
    margin-right: 0; /* Убираем жесткий отступ, так как используем центровку */
    width: 24px;     /* Фиксируем ширину иконки */
}

.calendar-accordion-container.expanded .calendar-header-btn .accordion-chevron {
  transform: rotate(180deg);
    width: 24px;     /* Фиксируем ширину зоны стрелочки для симметрии */
    display: flex;
    justify-content: flex-end;
}

.calendar-body-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
  padding: 0 16px;
}

.calendar-body-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calendar-accordion-container.expanded .calendar-body-content {
  grid-template-rows: 1fr;
  padding: 0 16px 16px 16px;
}

.calendar-accordion-container.expanded .calendar-body-inner {
  opacity: 1;
}

.calendar-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 16px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: #FF9F00;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.calendar-month-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-week);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--text-week);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  background: transparent;
  border: 1px solid #222222;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-day.empty {
  border-color: transparent;
  cursor: default;
}

.cal-day.has-data {
  color: #FF9F00;
}

.cal-day.selected {
  background: #FF9F00;
  border-color: #FF9F00;
  color: #000000;
}

.cal-amount {
  font-size: 9px;
  font-weight: 500;
  margin-top: 4px;
}

.cal-day.selected .cal-amount {
  color: #000000;
}

.cal-day.has-data:not(.selected) .cal-amount {
  color: #FF9F00;
}

.shift-card {
  background: #121212;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #2A2A2A;
}

.shift-info-top {
  display: flex;
  justify-content: space-between;
  /* 1. Меняем center на stretch, чтобы блоки тянулись по высоте */
  align-items: stretch; 
  margin-bottom: 16px;
}

.shift-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.shift-number {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.shift-location {
  font-size: 13px;
  color: var(--text-week);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shift-motivation {
  font-size: 13px;
  color: var(--text-week);
  display: flex;
  align-items: center;
  gap: 8px;
}
.shift-visits {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.21);;
  padding-left: 16px;
  margin-left: 12px;
  min-width: 65px;
  
  /* 2. Добавляем отрицательные отступы сверху и снизу, 
     чтобы линия доходила до краев карточки (если нужно) */
  margin-top: 4px; 
  margin-bottom: 4px;
}

.visits-count {
  font-size: 26px;
  font-weight: 800;
  color: #FF9F00;
  line-height: 1;
  margin-bottom: 4px;
}

.visits-label {
  font-size: 10px;
  color: var(--text-week);
  text-transform: lowercase;
  font-weight: 500;
}

.shift-progress-pills {
  display: flex;
  gap: 4px;
  width: 100%;
}

.shift-progress-pills .pill {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #333333;
}

.shift-progress-pills .pill.active {
  background: #FF9F00;
}

.vat-toggle-container {
  display: inline-flex;
  background: #18181A;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #2A2A2A;
}

.vat-btn {
  background: transparent;
  border: none;
  color: var(--text-week);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vat-btn.active {
  background: #FF9F00;
  color: #000000;
}

.financial-wrapper {
  transition: opacity 0.3s ease;
}

.accordion-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.accordion-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.accordion-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.accordion-chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
  display: flex;
  color: #888;
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.accordion-content {
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: opacity 0.3s ease, padding 0.3s ease;
}

.accordion-card.expanded .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-card.expanded .accordion-content {
  padding: 0 16px 20px 16px;
  opacity: 1;
}

.accordion-card.expanded .accordion-chevron {
  transform: rotate(180deg);
}

.center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 16px;
}

.header-text-group {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-label-small {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-week);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
        .cal-error-wrapper {
            grid-column: 1 / -1; /* Растягиваем на все 7 колонок */
            min-height: 240px;   /* Примерная высота стандартного календаря */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 14px;
            gap: 12px;
            text-align: center;
        }
        .cal-error-icon {
            font-size: 32px;
            margin-bottom: 4px;
        }
.accordion-value-huge {
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.accordion-card.earnings-card {
  /* Новый градиент под углом 55 градусов */
  background: linear-gradient(
    55deg, 
    rgba(0, 200, 83, 0.12) 0%, 
    rgba(0, 200, 83, 0.04) 100%
  ) !important;
  
  border: 1px solid rgba(0, 200, 83, 0.2);
  position: relative;
  box-shadow: none;
}
.earnings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right, 
    rgba(0, 200, 83, 0) 0%,     
    rgba(0, 200, 83, 0.5) 50%,    
    rgba(0, 200, 83, 0) 100%    
  );
  z-index: 2;
}
.earnings-card .accordion-label-small,
.earnings-card .accordion-chevron {
  color: #00C853 !important;
}

.earnings-card .accordion-content {
  padding-top: 16px;
}

.earnings-card .breakdown-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.earnings-card .breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.earnings-card .total-green-row .breakdown-row-left {
  color: var(--text-week);
}
.note-center {
  text-align: center;
  color: #8f8f8f;
  font-size: 10px;
  margin-top: 15px;
  margin-bottom: auto;
}
.gray {
  color: var(--text-week);
}
.earnings-card .total-green-row .breakdown-row-right {
  color: #00C853;
  font-size: 16px;
  font-weight: 800;
}
.breakdown-list2 {
  display: flex;
  flex-direction: column;
  gap: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);
  
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);

}
.revenue-card-orange {
    position: relative; /* Чтобы линия прилипла к верху */
    overflow: hidden;    /* Чтобы линия не вылезала за скругления углов */
}
.orange{
  color: #FF9F00;
}
.revenue-card-orange::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        rgba(255, 159, 0, 0) 0%, 
        rgba(255, 159, 0, 1) 50%, 
        rgba(255, 159, 0, 0) 100%
    );
    z-index: 2;
    /* Опционально: можно добавить легкое свечение под линией */
    box-shadow: 0 1px 4px rgba(255, 159, 0, 0.3);
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  /* Увеличиваем высоту строки и добавляем линию снизу */
  padding: 14px 0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.breakdown-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  /* Увеличиваем высоту строки и добавляем линию снизу */
  padding: 14px 0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.breakdown-row2:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
/* Убираем линию у последнего элемента, чтобы не двоилась рамка карточки */
.breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breakdown-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.breakdown-row-right {
  font-weight: 700;
  color: var(--text-main);
  font-size: 18px;
}

.breakdown-subtext {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.breakdown-icon {
  font-size: 16px;
}

.share-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.breakdown-list .share-row:last-child {
  margin-bottom: 0;
}

.share-date {
  width: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-week);
}

.share-row.header-row .share-date {
  color: #FFFFFF;
}

.share-track {
  flex: 1;
  height: 22px;
  background: #1C1C1E;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
}

.share-fill {
  height: 100%;
  background: linear-gradient(to right, rgba(156, 81, 182, 0.5) 0%, #B855D6 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 0.4s ease;
  min-width: 4px;
}

.share-text {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  padding-right: 8px;
}

.share-text.outside {
  position: absolute;
  padding-right: 0;
  margin-left: 6px;
}

.bonus-card {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bonus-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonus-amount {
  font-size: 22px;
  font-weight: 800;
}

.color-yellow { color: var(--color-primary); }
.color-purple { color: var(--color-purple); }
.color-blue { color: #00A3FF; }

.bonus-desc {
  font-size: 12px;
  color: var(--text-week);
  line-height: 1.4;
  margin-bottom: 36px;
}

.bonus-desc b {
  color: var(--text-muted);
}

.bonus-bar-container {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}
.bonus-track {
    height: 8px;
    background: transparent;
    position: relative;
    overflow: visible; /* Оставляем видимым, чтобы белая риска могла торчать сверху и снизу */
}




.bonus-bg-empty {
    position: absolute;
    top: 0;
    right: 0; /* Всегда прижат к правому краю */
    bottom: 0;
    background: linear-gradient(90deg, rgba(102, 102, 102, 0.4) 0%, #666 100%);
    border-radius: 2px;
    z-index: 0; /* Самый нижний слой */
    transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}


.bonus-target-line {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: #FFFFFF;
  z-index: 5;
  transform: translateX(-50%);
}

.bonus-label {
  position: absolute;
  bottom: 32px;
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%); /* Центрируем текст относительно его left */
  white-space: nowrap;
  /* Плавный сдвиг влево-вправо, убираем прыжки вверх-вниз */
  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1); 
  z-index: 10;
}
.bonus-track {
    height: 8px;
    background: transparent;
    position: relative;
    overflow: visible;
}

/* Обертка-маска: скругляет концы всей полоски */
.bonus-bar-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 2px;
    overflow: hidden;
    background: #1a1a1a; /* Базовый темный фон под всем */
}

/* 1. Ваш градиент от X до 100% */
.bonus-gradient-track {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    /* left будет задаваться через JS */
    background: linear-gradient(90deg, rgba(102, 102, 102, 0.4) 0%, #666 100%);
    z-index: 1;
    transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. Темная зона от 0 до 10% */
.bonus-target-bar {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    /* Полупрозрачный черный цвет делает градиент под ним темнее */
    background: rgba(0, 0, 0, 0.35); 
    z-index: 2;
}

/* 3. Цветная линия от 0 до X */
.bonus-fill {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    z-index: 1;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}


.bonus-sold-lbl-yellow, .bonus-sold-lbl-purple {
  position: absolute;
  transform: translateX(-50%);
  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}s

.bonus-label.target {
  bottom: 32px;
  color: #FFFFFF;
  opacity: 0.8;
}
.bonus-label.offset-up {
  font-size: 12px; /* Можно чуть увеличить для акцента */
}

.bonus-footer-labels {
  display: flex;
  justify-content: end;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  position: relative;
}

.next-shift-card {
  background: #121212;
  border: 1px solid rgba(255, 159, 0, 0.2);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.next-shift-label {
  color: #FF9F00;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.next-shift-date-text {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.next-shift-watermark {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 70px;
  font-weight: 900;
  color: rgba(255, 159, 0, 0.1);
  line-height: 1;
  pointer-events: none;
}

.schedule-day {
  background: transparent;
  border: 1px solid #222222;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
}

.schedule-day.shift {
  background: rgba(255, 159, 0, 0.15);
  border-color: rgba(255, 159, 0, 0.3);
  color: #FF9F00;
}

.schedule-day.shift.highlight {
  background: #FF9F00;
  color: #000000;
}

.schedule-subtext {
  font-size: 8px;
  font-weight: 600;
  margin-top: 2px;
}

.schedule-day.shift.highlight .schedule-subtext {
  color: #000000;
}

.schedule-footer {
  text-align: center;
  color: #666666;
  font-size: 11px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #222222;
}

.footer-update-text {
  text-align: center;
  color: #666666;
  font-size: 11px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0F0F0F;
  border-top: 1px solid #1a1a1a;
  display: flex; /* Кнопки будут стоять в ряд */
  padding: 6px 6px; /* Небольшой общий отступ */
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 8px 0;
  text-decoration: none;
  color: #FFFFFF;
  flex: 1;
  margin: 0 6px; /* Чуть увеличили отступ для красоты анимации */
  border-radius: 24px;
  
  /* Плавный переход для всех свойств */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  
  /* Начальное состояние для анимации */
  transform: scale(1);
}

/* ЭФФЕКТ ПРИ НАЖАТИИ (Тактильный отклик) 
   Когда пользователь зажимает пальцем кнопку, она слегка уменьшается */
.nav-item:active {
  transform: scale(0.9);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ЭФФЕКТ ПРИ АКТИВАЦИИ
   Когда вкладка становится активной, она плавно "вырастает" */
.nav-item.active {
  background-color: rgba(255, 159, 0, 0.18);
  color: #FF9F00;
  /* Анимация "упругого хлопка" */
  animation: navItemPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Мягкое свечение вокруг активной кнопки */
.nav-item.active::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(255, 159, 0, 0.1);
  pointer-events: none;
}
.nav-indicator {
  position: absolute;
  left: 0;    /* Важно: точка отсчета для translateX */
  top: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  background-color: rgba(255, 159, 0, 0.15);
  border-radius: 18px; /* Сделаем чуть менее круглым, как на фото */
  z-index: 0;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
              width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* Убираем жесткий фон у активной кнопки (его теперь заменяет плавающий индикатор) */
.nav-item.active {
  background-color: transparent !important;
}


/* --- АНИМАЦИЯ ПЕРЕЛИСТЫВАНИЯ ЭКРАНОВ --- */
.page-slide-left {
  animation: slideLeft 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.page-slide-right {
  animation: slideRight 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
.inline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inline-header h2 {
  margin: 0;
  font-size: 18px;
}
.ui-sal-bonus{
  color: var(--text-muted);
}
.icon-box {
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.cal-day.future-shift {
  cursor: default;
  background: transparent;
}

.cal-day.future-shift .cal-amount {
  display: none;
}

.cal-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
  color: #FF9F00;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255, 159, 0, 0.3);
  border-radius: 50%;
  border-top-color: #FF9F00;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.fullscreen-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 20px 0 16px 0;
  color: #FFF;
}

.dark-nav-btn {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFF;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.chart-card {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 16px 16px;
}

.css-chart {
  display: flex;
  align-items: stretch;
  height: 220px;
  position: relative;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 12px;
  font-size: 10px;
  color: #FFF;
  position: sticky;
  left: 0;
  background: var(--bg-card);
  z-index: 10;
}

.chart-bars {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-right: 16px;
  align-items: flex-end;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chart-bars::-webkit-scrollbar {
  display: none;
}

.chart-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 44px;
}

.bars-container {
  display: flex;
  gap: 6px;
  height: 100%;
  align-items: flex-end;
  position: relative;
  width: 100%;
  justify-content: center;
}

.bar {
  width: 16px;
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
}

.bar-gray { background: #444; }
.bar-green { background: #00C853; }

.bar-val {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.val-inside {
  top: 8px;
}

.val-outside {
  bottom: calc(100% + 6px);
}

.bar-gray .val-inside, .bar-gray .val-outside { color: #FFF; }
.bar-green .val-inside { color: #000; }
.bar-green .val-outside { color: #00E676; }

.bar-topup {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  color: #B855D6;
  white-space: nowrap;
}
.expected-income-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right, 
    rgba(0, 200, 83, 0) 0%,     
    rgba(0, 200, 83, 0.8) 50%,   /* Яркость линии по центру */
    rgba(0, 200, 83, 0) 100%    
  );
  z-index: 2;
}
.x-axis-label { font-size: 10px; color: #888; font-weight: 600; }

.chart-legend {
  border-top: 1px solid #222;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 10px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.legend-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px;
}

.expected-income-card {
  border: 1px solid rgba(0, 200, 83, 0.3);
  background: linear-gradient(
    135deg, 
    rgba(0, 200, 83, 0.12) 0%, 
    rgba(0, 200, 83, 0.04) 100%
  );
  position: relative; /* Обязательно для позиционирования линии */
  overflow: hidden; 
}
.income-green { 
    color: #00E676; 
    font-size: 18px; 
    white-space: nowrap; /* Добавь эту строку */
}
.income-header-title { color: #00C853; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; text-align: center; }
.income-total { 
    font-size: 36px; 
    font-weight: 700; 
    text-align: center; 
    margin-bottom: 20px; 
    white-space: nowrap; /* Добавь эту строку */
}

.income-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; font-weight: 500;}
.income-row:last-child { border-bottom: none; }
.income-val { 
    font-weight: 800; 
    font-size: 18px; 
    white-space: nowrap; /* Добавь эту строку */
}
.sub-val { font-size: 11px; color: #888; display: block; margin-top: 4px; font-weight: 500;}

.rules-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.rules-header {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.rules-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-purple { background: rgba(178, 51, 255, 0.2); color: #B233FF; }
.badge-blue { background: rgba(0, 163, 255, 0.2); color: #00A3FF; }

.rules-bar-container {
  display: flex;
  width: 100%;
  height: 12px;
  margin-top: 16px;
  background: transparent;
}
.rule-segment {
  flex: 1;
  background: #222;
  border-radius: 6px; /* Базовое скругление */
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

/* Стили для заполнения внутри ячейки */
.rule-segment-fill {
  height: 100%;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fill-purple { background: #B233FF; }
.fill-blue { background: #00A3FF; }
.rules-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.rules-bar-purple { background: #B233FF; }
.rules-bar-blue { background: #00A3FF; }

.rules-scale-labels {
  display: flex;
  margin-top: 10px;
  padding: 0; /* Убираем боковые отступы */
}

/* Каждая цифра занимает ту же ширину, что и блок над ней */
.rules-scale-labels span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #888;
  /* Добавляем небольшой сдвиг, чтобы цифра была по центру блока, 
     учитывая margin-right: 6px у блоков */
  padding-right: 6px; 
}

/* Убираем лишний отступ у последней цифры */
.rules-scale-labels span:last-child {
  padding-right: 0;
}

.rules-chevron {
  display: flex;
  justify-content: center;
  color: #666;
  margin-top: 12px;
  transition: transform 0.3s ease;
}

.rules-card.expanded .rules-chevron {
  transform: rotate(180deg);
}

.rules-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
  padding: 0 16px;
}

.rules-content {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rules-card.expanded .rules-body {
  grid-template-rows: 1fr;
  padding: 0 16px 16px 16px;
}

.rules-card.expanded .rules-content {
  opacity: 1;
}

.rules-detail-text {
  font-size: 13px;
  color: #AAA;
  margin-top: 8px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Было 3, стало 2 */
  gap: 12px 24px; /* Увеличим горизонтальный отступ между колонками для читаемости */
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

.rule-item {
  font-size: 12px;
  color: #AAA;
  white-space: nowrap;
}

.rule-item b {
  color: #FFF;
  font-weight: 600;
}

.summary-card-dark {
  border: 1px solid rgba(255, 159, 0, 0.2);
  background: linear-gradient(
    135deg, 
    rgba(255, 159, 0, 0.12) 0%, 
    rgba(255, 159, 0, 0.04) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 159, 0, 0.05);
}

.visits-list-card {
  background: #111111 !important; /* Тот самый цвет */
  border-radius: 16px;
  padding: 20px 12px; /* Внутренние отступы всей карточки */
  border: 1px solid #222222; /* Тонкая рамка, чтобы отделить от фона */
  margin-bottom: 24px;
}

.visit-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.visit-row:last-child {
  margin-bottom: 0;
}

.visit-time {
  width: 42px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-align: right;
  padding-top: 2px;
}

.visit-time.is-goods {
  color: #FF9F00;
}

.visit-icon {
  width: 20px;
  display: flex;
  justify-content: center;
}

.visit-content {
  flex: 1;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visit-row:last-child .visit-content {
  border-bottom: none;
  padding-bottom: 0;
}

.visit-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
  line-height: 1.2;
}

.visit-calc {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 500;
}

.visit-calc b {
  color: #888;
}

.visit-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.visit-tag.gold { color: #FFD700; }
.visit-tag.gray { color: #AAA; }

.visit-total-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.visit-total-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00E676;
  margin-bottom: 2px;
}

.visit-total-val {
  font-size: 14px;
  font-weight: 800;
  color: #FFF;
}

.cal-day-sub {
  font-size: 8px;
  color: #FF9F00;
  font-weight: 700;
  margin-top: 2px;
}
.bonus-current-line {
    position: absolute;
    top: -6px;      /* Выступает чуть вверх к цифре */
    bottom: -6px;   /* Выступает чуть вниз */
    width: 2px;
    z-index: 6;     /* Поверх полоски прогресса */
    transform: translateX(-50%);
    transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1); /* Такая же плавная анимация, как у цифр */
}
.shift-card-ongoing {
  background: linear-gradient(
    to bottom right, 
    rgba(255, 159, 0, 0.44) 0%, 
    rgba(255, 159, 0, 0.15) 100%
  ); 
  border: 1px solid rgba(255, 159, 0, 0.5) !important;
}
.shift-card-ongoing .shift-visits {
  border-left: 1px solid rgba(255, 159, 0, 0.2);
}

/* Делаем текст статуса белым (как на макете) */
.shift-card-ongoing .shift-motiv-info {
  color: #FFFFFF;
}

/* Неактивные "пилюли" делаем с оранжевым оттенком */
.shift-card-ongoing .shift-progress-pills .pill {
  background: rgba(255, 159, 0, 0.15);
}

/* Активные "пилюли" делаем объёмными и яркими */
.shift-card-ongoing .shift-progress-pills .pill.active {
  background: linear-gradient(180deg, #FFC066 0%, #FF9F00 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
/* Переопределяем карточку визитов, убираем рамки для стиля таймлайна */
/* Строка таймлайна */
.tl-row {
  display: flex;
  position: relative;
}

/* ЛЕВАЯ КОЛОНКА: Время / Метка Товар */
.tl-time {
  width: 50px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  padding-right: 12px;
}
.tl-goods-lbl {
  color: #FF9F00;
  font-weight: 700;
}

/* ЦЕНТРАЛЬНАЯ КОЛОНКА: Линия и Иконки */
.tl-divider {
  position: relative;
  width: 20px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
/* Сама вертикальная линия */
.tl-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}
/* У последнего элемента обрываем линию на уровне иконки */
.tl-row:last-child .tl-divider::before {
  bottom: 50%; 
}

.tl-icon {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 2px;
  background: var(--bg-main); /* Перекрывает линию фоном */
}
.tl-icon img {
  width: 14px;
  height: 14px;
}
.tl-icon-goods { font-size: 12px; background: transparent; }
.tl-icon-own { background: rgba(178, 51, 255, 0.2); }
.tl-icon-rep { background: transparent; }

/* ПРАВАЯ КОЛОНКА: Контент */
.tl-content {
  flex: 1;
  padding-left: 12px;
  padding-bottom: 32px; /* Отступ между визитами */
}

.tl-client-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
  line-height: 1.2;
}

.tl-item {
  margin-bottom: 12px;
}
.tl-item-title {
  font-size: 13px;
  color: #AAA;
  line-height: 1.3;
  margin-bottom: 4px;
}
.tl-item-calc {
  text-align: right;
  font-size: 13px;
}
.tl-calc-gray {
  color: #888;
  margin-right: 4px;
}
.tl-calc-white2 {
  color: #FFF;
}
.tl-calc-white {
  color: #FFF;
  font-weight: 700;
}

/* Теги: допуслуги, ТОВАР */
.tl-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
  margin-bottom: 4px;
  color: #FF9F00; /* Оранжевый цвет как на макете */
}

/* Итоговый блок */
.tl-total-box {
  margin-top: 12px;
  text-align: right;
}
.tl-total-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00E676;
  margin-bottom: 2px;
}
.tl-total-val {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
}
.nav-text {
  font-size: 11px;
  font-weight: 700;
}
/* =========================================
   1. ТАКТИЛЬНЫЙ ОТКЛИК (Micro-interactions) 
   ========================================= */
/* Добавляем плавность при возврате в исходное положение */
.card, .bonus-card, .next-shift-card, .visits-list-card, 
.nav-item, .vat-btn, .calendar-header-btn {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), filter 0.15s ease !important;
  /* Для iOS Safari, чтобы элементы понимали нажатие */
  cursor: pointer; 
  -webkit-tap-highlight-color: transparent;
}

/* Эффект "проваливания" внутрь при нажатии */
.card:active, .bonus-card:active, .next-shift-card:active, .visits-list-card:active,
.nav-item:active, .vat-btn:active, .calendar-header-btn:active {
  transform: scale(0.99) !important;
  filter: brightness(1.1); /* Слегка подсвечиваем элемент */
}


/* =========================================
   2. КАСКАДНОЕ ПОЯВЛЕНИЕ (Staggered Fade-in)
   ========================================= */
.reveal-card, .section-title,.vat-toggle-container {
  opacity: 0;
  transform: translateY(20px);
  /* Сама анимация появления */
  animation: cardEntrance 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  
  /* Магия здесь: currentColor автоматически берет цвет у .nav-item */
  /* Если кнопка не активна - будет белый, если .active - будет #FF9F00 */
  background-color: currentColor; 
  
  /* Настройки трафарета */
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
/* --- КРАСИВЫЕ УВЕДОМЛЕНИЯ (ТОСТЫ) --- */
        .custom-toast {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: max-content;
            min-width: 280px;
            max-width: 92%;
            background: #121212; /* Тёмный фон как на макете */
            border-radius: 16px; /* Закруглённые углы */
            padding: 8px 16px 8px 8px; /* Слева отступ меньше, т.к. там иконка */
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 10000;
            transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,0.8);
            opacity: 0;
            pointer-events: auto; /* Разрешаем кликать на крестик */
        }
        
        .custom-toast.show {
            top: 24px;
            opacity: 1;
        }

        /* Обёртка для иконки (квадратик с фоном) */
      .toast-icon-wrapper {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        /* Текст уведомления */
        .toast-text {
            flex-grow: 1;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.3px;
        }

        /* Кнопка закрытия (крестик) */
        .toast-close {
            color: #888;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            line-height: 1;
            padding: 4px;
            transition: color 0.2s;
        }
        .toast-close:hover {
            color: #FFF;
        }

        /* --- ЦВЕТА ДЛЯ УСПЕХА (Зеленый) --- */
        .custom-toast.success {
            border: 1px solid rgba(0, 230, 118, 0.15); /* Едва заметная зеленая рамка */
        }
        .custom-toast.success .toast-icon-wrapper {
            background: rgba(0, 230, 118, 0.1); /* Темно-зеленый фон иконки */
            color: #00E676;
        }
        .custom-toast.success .toast-text {
            color: #00E676;
        }

        /* --- ЦВЕТА ДЛЯ ОШИБКИ (Красный) --- */
        .custom-toast.error {
            border: 1px solid rgba(229, 57, 53, 0.15);
        }
        .custom-toast.error .toast-icon-wrapper {
            background: rgba(229, 57, 53, 0.1);
            color: #E53935;
        }
        .custom-toast.error .toast-text {
            color: #E53935;
        }
        /* Если приложение запущено как PWA (с домашнего экрана) — скрываем подсказку установки */
        @media (display-mode: standalone) {
            .install-hint {
                display: none !important;
            }
        }
        
                #view-main, #view-salary, #view-clients {
            min-height: calc(100vh - 160px); /* 100vh минус высота шапки и нижнего меню */
        }
        /* Фикс ширины основного контента */
.main-content {
    width: 100% !important;
    max-width: 100vw; /* Ограничиваем шириной экрана */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Гарантируем, что контейнер приложения не сжимает вложенные блоки */
.app-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Растягиваем контент на всю ширину */
}

/* На всякий случай фиксируем ширину самих карточек во всех вкладках */
#view-main, #view-salary, #view-clients {
    width: 100%;
    box-sizing: border-box;
}
.privilege-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.priv-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Стиль для разрешенного действия */
.priv-yes {
    background: rgba(0, 230, 118, 0.1);
    color: #00E676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}
/* Стиль для запрещенного действия */
.priv-no {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: line-through;
}
.admin-branches {
    font-size: 11px;
    color: var(--color-primary);
    margin-top: 6px;
    font-weight: 600;
    opacity: 0.8;
}
a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* =========================================
   EXTRACTED FROM HTML <STYLE> & INLINE STYLES
   ========================================= */

.logo-icon { background: none; border: none; padding: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.notify-icon-wrapper img { width: 24px; height: 24px; vertical-align: middle; }
.icon-box.purple { display: flex; align-items: center; justify-content: center; }
.icon-box img { width: 18px; height: 18px; object-fit: contain; }
.icon-calendar { display: flex; align-items: center; margin-right: 6px; }
.shift-loc-info { color: #888; font-size: 13px; gap: 6px; }
.shift-motiv-info { color: #888; font-size: 12px; gap: 6px; }
.row-flex-center { display: flex; justify-content: space-between; align-items: center; }
.row-flex-center.mb-8 { margin-bottom: 8px; }
.title-flex { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.desc-muted { font-size: 12px; color: #AAA; line-height: 1.4; }
.income-left { display: flex; gap: 12px; align-items: center; color: var(--text-muted); font-size: 14px; }
.bonus-sold-lbl-yellow { color: #FF9F00; }
.bonus-sold-lbl-purple { color: #AB47BC; }
.install-hint { text-align: center; margin-top: 24px; font-size: 13px; color: #FFF; line-height: 1.6; }
.install-link { color: #FF9F00; font-weight: 700; cursor: pointer; letter-spacing: 0.5px; display: inline-block; margin-top: 4px; }
.icon-box-sm { width: 20px; height: 20px; }
.icon-box-sm-font { width: 20px; height: 20px; font-size: 12px; }
.icon-box-sm-font-green { width: 20px; height: 20px; font-size: 12px; }
.income-total-right { text-align: right; }
.salary-section-title { font-size: 14px; text-transform: uppercase; color: #AAA; letter-spacing: 1px; }

.nav-icon {
  -webkit-mask-image: var(--mask-icon);
  mask-image: var(--mask-icon);
}

.admin-back-link { text-decoration: none; display: block; margin-top: 30px;}
.admin-back-bar { background: #FF9F00; text-align: center; padding: 10px; cursor: pointer; border-radius: 10px;}
.admin-back-text { color: #000; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.icon-calendar-img { width: 24px; height: 24px; margin-right: 8px; }

.earnings-card-mt { margin-top: 12px; }

.sal-bonus-sub { color: var(--text-muted); }
.sal-bonus-val { font-size: 11px; font-weight: 500; }
.breakdown-row-right-ta { text-align: right; }

.inline-header-mb-sm { margin-bottom: 12px; }
.icon-box-mr { margin-right: 12px; }

.share-accordion-header { padding: 16px; align-items: center; display: flex; }
.share-header-content { flex: 1; padding-right: 8px; }
.accordion-content-pt0 { padding-top: 0; }

.next-shift-inner { position: relative; z-index: 2; }
.dropdown-text-lg { font-size: 16px; }

.salary-nav { display: flex; justify-content: space-between; align-items: center; background: #121212; border-radius: 12px; padding: 8px; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.08); }
.salary-nav-btn { background: none; border: none; color: #FF9F00; font-size: 16px; cursor: pointer; padding: 4px 10px; font-weight: bold; transition: color 0.2s; }
.salary-nav-btn:disabled { color: #444; cursor: default; }
.salary-nav-title { font-weight: 700; font-size: 14px; color: #FFF; }

.vat-toggle-mb-lg { margin-bottom: 20px; }

.legend-dot-gray { background: #555; }
.legend-dot-green { background: #00E676; }
.legend-dot-purple { background: #B233FF; }

.expected-income-mb { margin-bottom: 24px; }

.income-accordion-header { display: flex; align-items: center; padding: 16px; }
.income-center-col { flex: 1; display: flex; flex-direction: column; align-items: center; padding-left: 24px; }
.income-total-nomb { margin-bottom: 0; }
.income-chevron-green { color: #00E676; margin-left: 0; }

.income-row-compact { border-bottom: none; padding: 4px 0; }
.income-label-muted { color: #AAA; font-size: 14px; }
.income-value-white { font-weight: 700; font-size: 14px; color: #FFF; }
.income-row-total { padding: 4px 0; border-bottom: none; }
.income-label-total { font-weight: 800; font-size: 18px; color: #FFF; }
.income-value-total { font-weight: 800; font-size: 18px; color: #00E676; }
.income-row-mt { margin-top: 16px; }
.emoji-16 { font-size: 16px; }

.summary-card-mt { margin-top: 16px; margin-bottom: 24px; }
.accordion-label-white { color: #FFF; }
.accordion-value-orange { color: #FF9F00; }

.rules-bar-initial { width: 0%; }
.desc-muted-sm { margin-top: 16px; font-size: 13px; }

#instruction-screen { background-color: #000; }
.onboarding-content-inner { width: 100%; max-width: 400px; }
.onboarding-close-btn { background: none; border: none; cursor: pointer; }

.flex-grow-1 { flex-grow: 1; }

.android-auto-install { display: none; flex-direction: column; flex-grow: 1; }
.android-auto-install-inner { flex-grow: 1; display: flex; flex-direction: column; }
.install-pwa-btn { width: 100%; cursor: pointer; }
.later-btn { background: #2A2A2A; color: #FFF; margin-top: 24px; }
.android-manual-install { display: flex; flex-direction: column; flex-grow: 1; }

#error-screen { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 9999; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; box-sizing: border-box; }
.error-icon { font-size: 64px; margin-bottom: 24px; }
.error-title { color: #FFF; font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.error-text { color: #AAA; font-size: 14px; line-height: 1.5; margin-bottom: 32px; }
.error-btn { width: 100%; max-width: 300px; cursor: pointer; }

.view-initial-hidden { display: none; }

.tl-icon-img { width: 14px; height: 14px; object-fit: contain; }
.inline-icon-sm { vertical-align: middle; margin: 0 2px; }
.text-purple-bold { color: #AB47BC; font-weight: 700; }
.text-blue-bold { color: #29B6F6; font-weight: 700; }
.text-white-bold { color: #FFF; font-weight: 700; }
.tl-calc-strikethrough { text-decoration: line-through; margin-right: 6px; }
.empty-visits-msg { text-align: center; color: #888; font-size: 14px; padding: 20px 0; }
.cal-error-msg { text-align: center; padding: 20px; color: #888; }
.toast-icon-img { width: 24px; height: 24px; }
.rules-badge-sm { padding: 2px 8px; font-size: 13px; margin: 0; }
.rules-stats-block { display: flex; flex-direction: column; gap: 8px; }
.rules-stats-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; }
.chart-x-label { margin-top: 10px; color: #888; font-size: 11px; font-weight: 500; }