/* Базовые настройки TMA */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--tg-theme-bg-color, #ffffff);
  color: var(--tg-theme-text-color, #222222);
  margin: 0;
  padding: 0;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  /* Запрет выделения для нативности */
  overflow-x: hidden;
}

/* Header Styles */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--tg-theme-bg-color, #ffffff);
  border-bottom: 1px solid var(--tg-theme-secondary-bg-color, #f0f0f0);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  position: relative;
  background: var(--tg-theme-secondary-bg-color);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.icon-btn:active {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(0.96);
}

.container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.screen {
  display: none;
  min-height: 100vh;
  padding-bottom: 80px;
  /* Место под нижнюю навигацию */
  box-sizing: border-box;
}

.screen.active {
  display: block;
}

.has-header .screen.active {
  padding-top: calc(44px + env(safe-area-inset-top, 0px));
}

/* Отступ для экранов с нижней кнопкой */
#screen-detail,
#screen-survey {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.hidden {
  display: none !important;
}

/* Заголовки */
h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.subtitle {
  color: var(--tg-theme-hint-color);
  margin-bottom: 25px;
  font-size: 15px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--tg-theme-hint-color);
  text-transform: uppercase;
  margin: 16px 0 8px 4px;
  letter-spacing: 0.5px;
}

/* Кнопки */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--tg-theme-button-color);
  color: var(--tg-theme-button-text-color);
}

.btn-secondary {
  background: var(--tg-theme-secondary-bg-color);
  color: var(--tg-theme-button-color);
}

.btn-full {
  width: 100%;
  box-sizing: border-box;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

/* Карточки типов заявок */
.type-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--tg-theme-secondary-bg-color);
  border: none;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  color: var(--tg-theme-text-color);
  cursor: pointer;
}

.type-card .icon {
  font-size: 32px;
}

.type-card .title {
  font-weight: 700;
  font-size: 16px;
  display: block;
}

.type-card .desc {
  font-size: 13px;
  color: var(--tg-theme-hint-color);
}

/* Карточки заявок */
.app-card {
  background: var(--tg-theme-bg-color);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.1s ease;
  border-left: 4px solid transparent;
  /* Базовая линия для светофора */
}

.app-card:active {
  transform: scale(0.98);
}

/* Светофор (Traffic Light) */
.card-status-completed {
  border-left-color: #34c759 !important;
}

.card-status-rejected {
  border-left-color: #ff3b30 !important;
}

.card-status-new,
.card-status-review,
.card-status-in_progress {
  border-left-color: #ff9500 !important;
}

/* Подсветка старых заявок */
.stale-warning {
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.05) 0%, var(--tg-theme-bg-color) 100%);
}

/* Тёмная тема для границ */
@media (prefers-color-scheme: dark) {
  .app-card {
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.app-card-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--tg-theme-hint-color);
  text-transform: uppercase;
}

.app-card-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.app-card-id {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.app-card-info {
  font-size: 11px;
  color: var(--tg-theme-hint-color);
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.app-card-user {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tg-theme-text-color);
}

.app-card-meta {
  font-size: 10px;
  color: var(--tg-theme-hint-color);
  margin-top: 4px;
}

/* Цвета статусов */
.status-new {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
}

.status-review {
  color: #5856d6;
  background: rgba(88, 86, 214, 0.1);
}

.status-in_progress {
  color: #ff9500;
  background: rgba(255, 149, 0, 0.1);
}

.status-completed {
  color: #34c759;
  background: rgba(52, 199, 89, 0.1);
}

.status-rejected {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
}

/* Нижняя навигация */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--tg-theme-secondary-bg-color);
  display: flex;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--tg-theme-hint-color);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-item.active .icon {
  transform: translateY(-2px);
}

.nav-item.active .label {
  font-weight: 800;
}

.nav-item.active {
  color: var(--tg-theme-button-color);
}

.nav-item .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.nav-item .label {
  font-size: 10px;
  font-weight: 600;
}

/* Поля ввода */
.input-field,
textarea {
  width: 100%;
  background: var(--tg-theme-secondary-bg-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--tg-theme-text-color);
  font-size: 15px;
  box-sizing: border-box;
  font-family: inherit;
  height: 42px;
}

textarea {
  min-height: 100px;
  resize: none;
}

/* Модальные окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
}

.modal-content {
  width: 100%;
  background: var(--tg-theme-bg-color);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Опрос и прогресс */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--tg-theme-secondary-bg-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--tg-theme-button-color);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--tg-theme-hint-color);
  min-width: 40px;
}

.question {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.question-hint {
  font-size: 14px;
  color: var(--tg-theme-hint-color);
  margin-bottom: 24px;
}

/* Draft Banner */
.draft-banner {
  background: var(--tg-theme-secondary-bg-color);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.draft-text {
  font-size: 13px;
  font-weight: 500;
}

.draft-actions {
  display: flex;
  gap: 8px;
}

/* Admin & Tabs */
.admin-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.admin-sticky-header {
  position: sticky;
  top: calc(44px + env(safe-area-inset-top, 0px));
  background: var(--tg-theme-bg-color);
  z-index: 100;
  margin: 0 -16px 12px -16px;
  padding: 0 16px 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tabs {
  display: flex;
  background: var(--tg-theme-secondary-bg-color);
  padding: 4px;
  border-radius: 12px;
}

.tab {
  flex: 1;
  border: none;
  background: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-theme-hint-color);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--tg-theme-bg-color);
  color: var(--tg-theme-text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Search & Filters */
.search-bar {
  margin-bottom: 12px;
}

.status-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.status-filters::-webkit-scrollbar {
  display: none;
}

.status-filters .tab {
  flex: 0 0 auto;
  min-width: 40px;
}

/* Export */
.export-bar {
  margin-bottom: 16px;
}

/* Staff List */
.staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tg-theme-bg-color);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.1s ease;
  cursor: pointer;
}

.staff-item:active {
  background-color: var(--tg-theme-secondary-bg-color);
}

.staff-avatar {
  width: 40px;
  height: 40px;
  background: var(--tg-theme-secondary-bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--tg-theme-hint-color);
  font-size: 14px;
}

.staff-info {
  flex: 1;
  min-width: 0;
}

.staff-info .name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-info .role {
  font-size: 12px;
  color: var(--tg-theme-hint-color);
}

.staff-actions {
  display: flex;
  align-items: center;
}

/* Grid View for Admin Users */
#user-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

#user-list .staff-item {
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 16px;
  justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  background: var(--tg-theme-bg-color);
  /* Ensure bg is set */
  height: 100%;
  box-sizing: border-box;
}

#user-list .staff-avatar {
  width: 60px;
  height: 60px;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#user-list .staff-info {
  width: 100%;
  margin-bottom: 12px;
}

#user-list .staff-info .name {
  font-size: 15px;
  margin-bottom: 6px;
  white-space: normal;
  line-height: 1.3;
}

#user-list .staff-actions {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

#user-list .role-select {
  width: 100%;
  text-align: center;
  padding: 8px;
}

/* Roles */
.role-select {
  background: var(--tg-theme-secondary-bg-color);
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--tg-theme-text-color);
}

.role-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--tg-theme-secondary-bg-color);
  color: var(--tg-theme-hint-color);
  font-weight: 600;
}

.role-superadmin {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
}

.role-admin {
  color: #ff9500;
  background: rgba(255, 149, 0, 0.1);
}

.role-staff {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
}

/* User Detail Popup */
.detail-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--tg-theme-secondary-bg-color);
  padding: 16px;
  border-radius: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.info-item span {
  color: var(--tg-theme-hint-color);
}

.info-item b {
  color: var(--tg-theme-text-color);
}

/* Detail Screen */
.detail-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--tg-theme-bg-color, #ffffff);
  z-index: 900;
  border-bottom: 1px solid var(--tg-theme-secondary-bg-color, #f0f0f0);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}

#screen-detail .container {
  padding-top: 160px;
  /* Базовый отступ для контента под тулбаром */
}

/* Если тулбар скрыт (для обычных юзеров), уменьшаем отступ */
#screen-detail:not(.admin-view) .container {
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}

.detail-header {
  margin-bottom: 8px;
}

.back-link {
  background: none;
  border: none;
  color: var(--tg-theme-link-color, #007aff);
  font-size: 15px;
  padding: 0;
  cursor: pointer;
}

.detail-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.status-btn {
  border: none;
  background: var(--tg-theme-secondary-bg-color);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0.7;
}

.status-btn.selected {
  opacity: 1;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.toolbar-actions .btn {
  flex: 1;
  font-size: 12px;
  padding: 8px;
}

.detail-card {
  background: var(--tg-theme-secondary-bg-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.detail-card-id {
  font-size: 20px;
  font-weight: 800;
}

.detail-card-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.detail-card-type {
  color: var(--tg-theme-hint-color);
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.detail-card-user {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.detail-card-assignee {
  font-size: 13px;
  color: var(--tg-theme-text-color);
  background: rgba(0, 0, 0, 0.03);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.detail-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tg-theme-hint-color);
}

.answer-item {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

.answer-item:last-child {
  border-bottom: none;
}

.answer-question {
  font-size: 13px;
  color: var(--tg-theme-hint-color);
  margin-bottom: 4px;
}

.answer-text {
  font-size: 15px;
  white-space: pre-wrap;
}

/* Фиксированная нижняя панель для кнопок Назад */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tg-theme-bg-color, #ffffff);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--tg-theme-secondary-bg-color, #f0f0f0);
  z-index: 1000;
}

/* Survey */
.survey-content {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.choice-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-option {
  background: var(--tg-theme-secondary-bg-color);
  border: 2px solid transparent;
  padding: 14px;
  border-radius: 12px;
  text-align: left;
  font-size: 15px;
  color: var(--tg-theme-text-color);
  cursor: pointer;
  transition: all 0.2s;
}

.choice-option.selected {
  border-color: var(--tg-theme-button-color);
  background: rgba(var(--tg-theme-button-color-rgb), 0.05);
  color: var(--tg-theme-button-color);
  font-weight: 600;
}

.multi-hint {
  text-align: center;
  color: var(--tg-theme-hint-color);
  font-size: 13px;
  margin-bottom: 12px;
}

/* Success Screen */
.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 20px;
  text-align: center;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--tg-theme-button-color);
  margin: 10px 0;
}

.success-queue {
  font-size: 15px;
  color: var(--tg-theme-hint-color);
  margin-bottom: 24px;
}

.success-hint {
  font-size: 13px;
  color: var(--tg-theme-hint-color);
  margin-bottom: 32px;
  max-width: 250px;
}

/* User Link */
.user-link {
  color: var(--tg-theme-link-color, #007aff);
  text-decoration: none;
}

.user-id {
  opacity: 0.5;
  font-size: 0.8em;
  margin-left: 4px;
}

/* Onboarding Overlay */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--tg-theme-bg-color, #ffffff);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-slide {
  width: 100%;
  max-width: 400px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboarding-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.onboarding-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.onboarding-text {
  font-size: 16px;
  color: var(--tg-theme-hint-color);
  margin-bottom: 30px;
  line-height: 1.5;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--tg-theme-secondary-bg-color);
  border-radius: 50%;
}

.dot.active {
  background: var(--tg-theme-button-color);
  width: 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* On-screen Navigation Buttons */
.nav-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tg-theme-bg-color, #ffffff);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--tg-theme-secondary-bg-color, #f0f0f0);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.nav-buttons .btn {
  flex: 1;
}

.btn-menu {
  background: none;
  border: 1px solid var(--tg-theme-secondary-bg-color);
  color: var(--tg-theme-hint-color);
  font-size: 13px;
  padding: 10px;
}

.filter-wrapper {
  position: relative;
  flex-shrink: 0;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--tg-theme-bg-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
  min-width: 180px;
  backdrop-filter: blur(15px);
}

.filter-wrapper:hover .filter-dropdown,
.filter-wrapper.active .filter-dropdown {
  display: block;
  animation: slideIn 0.2s ease;
}

.filter-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 12px 0 0;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.filter-item span:not(.filter-count) {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  font-weight: 500;
  color: var(--tg-theme-text-color);
}

.filter-count {
  text-align: right;
  font-size: 12px;
  color: var(--tg-theme-hint-color);
  font-weight: 600;
  margin-left: 12px;
  min-width: 20px;
}

.filter-item:hover {
  background: var(--tg-theme-secondary-bg-color);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading {
  animation: rotate 1s linear infinite;
  display: inline-block !important;
  opacity: 0.7;
  pointer-events: none;
}

/* User Detail Modal */
.user-modal .modal-content {
  padding-top: 30px;
}

.user-detail-popup {
  padding: 0;
}

.user-detail-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tg-theme-text-color);
  letter-spacing: -0.02em;
}

.detail-info-grid {
  background: var(--tg-theme-secondary-bg-color);
  border-radius: 12px;
  padding: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item span {
  font-size: 12px;
  color: var(--tg-theme-hint-color);
  font-weight: 500;
}

.info-item b,
.info-item input {
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-theme-text-color);
}

.info-item input {
  background: none;
  border: none;
  text-align: right;
  padding: 0;
  width: 60%;
  color: var(--tg-theme-button-color);
  outline: none;
}

.info-item input:focus {
  text-decoration: underline;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}