:root {
  color-scheme: light;
  --border: #d7dde8;
  --header: #f4f7fb;
  --accent: #1f5eff;
  --text: #182230;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 32px;
  background: #fbfcff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-shell {
  padding: 14px 18px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c7d7fe;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-tab:hover {
  background: #eef4ff;
  border-color: #98b2ff;
  color: var(--accent);
}

.nav-tab-active {
  background: #eef4ff;
  border-color: #98b2ff;
  color: var(--accent);
}

.top-nav-side {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 14px;
  white-space: nowrap;
}

.server-time-label {
  font-weight: 700;
}

.server-time {
  font-variant-numeric: tabular-nums;
  color: #344054;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

h2 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 24px;
}

section {
  margin: 0 0 34px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.meta {
  margin: 0 0 28px;
  color: #667085;
}

.page-meta-list {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-meta-label {
  color: #344054;
  font-weight: 700;
}

.page-meta-value {
  color: #667085;
  overflow-wrap: anywhere;
}

.page-register-info {
  margin-top: 12px;
  margin-bottom: 0;
}

.page-related-shell {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.page-related-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbff;
}

.game-secrets-shell {
  display: grid;
  gap: 14px;
}

.game-secrets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-secrets-alerts:empty {
  display: none;
}

.game-secrets-progress {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.game-secrets-progress-note {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.game-secrets-progress-row {
  display: grid;
  gap: 8px;
}

.game-secrets-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.game-secrets-progress-label {
  color: #344054;
  font-weight: 700;
}

.game-secrets-progress-count {
  color: #667085;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.game-secrets-progress-bar {
  width: 100%;
  height: 12px;
}

.game-secrets-content[hidden] {
  display: none !important;
}

.page-team-statuses {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.page-team-status {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfcfd;
}

.page-team-status-registered {
  border-color: #a6f4c5;
  background: #ecfdf3;
}

.page-team-status-scheduled {
  border-color: #b2ddff;
  background: #eff8ff;
}

.page-team-status-title {
  margin-bottom: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.page-team-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-team-status-item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #344054;
  font-size: 13px;
  line-height: 1.25;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
}

.cache-count {
  color: #667085;
  font-weight: 700;
}

.city-links-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.city-links-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.city-links-title-wrap {
  min-width: 0;
}

.city-links-title {
  margin: 0;
  font-size: 18px;
}

.city-links-list {
  display: grid;
  gap: 10px;
}

.city-links-list:empty {
  display: none;
}

.city-draft-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d5e1ff;
  border-radius: 14px;
  background: #fff;
}

.city-draft-title {
  color: #1649c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.city-draft-notes {
  min-height: 52px;
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.city-draft-notes-empty {
  color: #98a2b3;
  font-style: italic;
}

.city-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d5e1ff;
  border-radius: 14px;
  background: #fff;
  color: #101828;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.city-link-item:hover {
  border-color: #9db8ff;
  box-shadow: 0 10px 24px rgba(31, 94, 255, 0.12);
  transform: translateY(-1px);
}

.city-link-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.city-link-label {
  color: #1649c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.city-link-url {
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 14px;
}

.city-link-open-icon,
.city-link-icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.city-link-open-icon {
  background: #eef4ff;
  color: #1f5eff;
}

.city-link-icon-button {
  border: 1px solid #c7d7fe;
  background: #eef4ff;
  color: #1f5eff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.city-link-icon-button:hover {
  background: #dfeaff;
  border-color: #9db8ff;
  transform: translateY(-1px);
}

.city-link-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.city-links-feedback:empty {
  display: none;
}

.route-map-section {
  display: grid;
  gap: 14px;
}

.route-map-note {
  margin-bottom: 0;
}

.route-map-russia-shell {
  display: grid;
  gap: 10px;
}

.route-map-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.route-map-zoom-button,
.route-map-zoom-reset {
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.route-map-zoom-button {
  width: 34px;
  height: 34px;
}

.route-map-zoom-reset {
  min-height: 34px;
  padding: 0 12px;
}

.route-map-line-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
}

.route-map-line-mode-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.route-map-line-mode-button:hover {
  color: #1649c7;
}

.route-map-line-mode-button-active {
  background: #1f5eff;
  color: #fff;
  box-shadow: 0 8px 16px rgba(31, 94, 255, 0.22);
}

.route-map-line-mode-button-active:hover {
  color: #fff;
}

.route-map-zoom-button:hover,
.route-map-zoom-reset:hover {
  border-color: #98b2ff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.route-map-zoom-label {
  min-width: 52px;
  color: #344054;
  font-weight: 800;
  text-align: center;
}

.route-map-attribution {
  margin: 0;
  font-size: 12px;
}

.route-map-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.route-map-russia-scroll {
  position: relative;
}

.route-map-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  border-radius: 18px;
  background: #dceff7;
}

.route-map-water {
  fill: #dceff7;
}

.route-map-russia-svg {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.route-map-russia-svg.is-dragging {
  cursor: grabbing;
}

.route-map-russia-region-layer .route-map-russia-region {
  fill: rgba(52, 64, 84, 0.08);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.route-map-russia-region-layer .route-map-russia-region:hover,
.route-map-russia-region-layer .route-map-russia-region:focus {
  fill: #0180ef;
  outline: none;
  filter: drop-shadow(0 6px 12px rgba(1, 128, 239, 0.28));
}

.route-map-russia-region-layer .route-map-russia-region-active {
  fill: var(--route-map-region-fill, rgba(31, 94, 255, 0.58));
}

.route-map-russia-region-layer .route-map-russia-region-current {
  fill: var(--route-map-region-current-fill, #1f5eff);
}

.route-map-russia-region-layer .route-map-russia-region-active:hover,
.route-map-russia-region-layer .route-map-russia-region-current:hover,
.route-map-russia-region-layer .route-map-russia-region-active:focus,
.route-map-russia-region-layer .route-map-russia-region-current:focus {
  fill: var(--route-map-region-hover-fill, #0180ef);
}

.route-map-russia-region-layer .route-map-russia-region-active.route-map-russia-region-highlight,
.route-map-russia-region-layer .route-map-russia-region-current.route-map-russia-region-highlight {
  fill: var(--route-map-region-hover-fill, #0180ef);
  filter: drop-shadow(0 6px 12px rgba(1, 128, 239, 0.28));
}

.route-map-russia-arrow {
  fill: none;
  stroke: var(--route-map-arrow-color, #1f5eff);
  stroke-width: var(--route-map-arrow-width, 1.7);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.16));
  pointer-events: none;
}

.route-map-arrow-head {
  fill: var(--route-map-arrow-color, #1f5eff);
}

.route-map-russia-index {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(270px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.route-map-russia-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #182230;
  font-size: 12px;
  font-weight: 900;
}

.route-map-russia-index-toggle {
  border: 1px solid rgba(31, 94, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #1649c7;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  padding: 4px 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.route-map-russia-index-toggle:hover {
  border-color: rgba(31, 94, 255, 0.58);
  background: #fff;
  transform: translateY(-1px);
}

.route-map-russia-index-list {
  display: grid;
  gap: 6px;
  max-height: min(330px, calc(100vh - 260px));
  overflow-y: auto;
  padding-right: 2px;
}

.route-map-russia-index-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 7px 8px;
  border: 1px solid color-mix(in srgb, var(--route-map-index-color, #1f5eff) 30%, transparent);
  border-radius: 13px;
  background: linear-gradient(90deg, var(--route-map-index-bg, rgba(31, 94, 255, 0.12)), rgba(255, 255, 255, 0.64));
  color: #182230;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.route-map-russia-index-item:hover,
.route-map-russia-index-item:focus {
  border-color: var(--route-map-index-color, #1f5eff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.route-map-russia-index-item-current {
  background: linear-gradient(90deg, var(--route-map-index-color, #1f5eff), rgba(255, 255, 255, 0.78));
}

.route-map-russia-index-order {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--route-map-index-color, #1f5eff);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.route-map-russia-index-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-map-russia-index-date,
.route-map-russia-index-city {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-map-russia-index-date {
  color: #475467;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.route-map-russia-index-city {
  color: #182230;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.route-map-russia-index-collapsed {
  width: auto;
}

.route-map-russia-index-collapsed .route-map-russia-index-list {
  display: none;
}

.route-map-russia-badge {
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.route-map-russia-badge-visible,
.route-map-russia-badge-pinned {
  opacity: 1;
  pointer-events: auto;
}

.route-map-russia-marker {
  cursor: pointer;
}

.route-map-russia-marker-dot {
  fill: var(--route-map-marker-fill, #fff);
  stroke: var(--route-map-marker-stroke, #1f5eff);
  stroke-width: 3.2;
  filter: drop-shadow(0 8px 14px rgba(31, 94, 255, 0.26));
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.route-map-russia-marker-current .route-map-russia-marker-dot,
.route-map-russia-marker-highlight .route-map-russia-marker-dot,
.route-map-russia-marker:hover .route-map-russia-marker-dot,
.route-map-russia-marker:focus .route-map-russia-marker-dot {
  fill: var(--route-map-marker-active-fill, #1f5eff);
  stroke: var(--route-map-marker-active-fill, #1f5eff);
}

.route-map-russia-marker-label {
  fill: var(--route-map-marker-text, #1f5eff);
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.route-map-russia-marker-current .route-map-russia-marker-label,
.route-map-russia-marker-highlight .route-map-russia-marker-label,
.route-map-russia-marker:hover .route-map-russia-marker-label,
.route-map-russia-marker:focus .route-map-russia-marker-label {
  fill: #fff;
}

.route-map-russia-data {
  display: none;
}

.route-map-land-shape {
  fill: #d7e7d1;
  stroke: rgba(45, 93, 68, 0.22);
  stroke-width: 1.4;
}

.route-map-region {
  fill: rgba(31, 94, 255, 0.16);
  stroke: rgba(31, 94, 255, 0.58);
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 16px rgba(31, 94, 255, 0.14));
}

.route-map-region-label {
  fill: #1649c7;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 4;
}

.route-map-grid {
  fill: none;
  stroke: rgba(31, 94, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 6 8;
}

.route-map-line {
  fill: none;
  stroke: url(#route-map-line-gradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 0;
}

.route-map-stop-connector {
  stroke: rgba(31, 94, 255, 0.42);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  pointer-events: none;
}

.route-map-stop-card {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(31, 94, 255, 0.24);
  stroke-width: 1.5;
  filter: drop-shadow(0 10px 20px rgba(16, 24, 40, 0.16));
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.route-map-stop-card-current {
  fill: #eef4ff;
  stroke: rgba(31, 94, 255, 0.72);
}

.route-map-svg a:hover .route-map-stop-card {
  fill: #fff;
  stroke: rgba(31, 94, 255, 0.82);
}

.route-map-russia-badge:hover .route-map-stop-card {
  fill: #fff;
  stroke: rgba(31, 94, 255, 0.82);
}

.route-map-stop-row-hitbox {
  fill: rgba(31, 94, 255, 0.001);
  transition: fill 0.2s ease;
}

.route-map-stop-row-link:hover .route-map-stop-row-hitbox,
.route-map-stop-row-link:focus .route-map-stop-row-hitbox {
  fill: rgba(31, 94, 255, 0.08);
}

.route-map-stop-region {
  fill: #1649c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-transform: uppercase;
}

.route-map-stop {
  fill: #fff;
  stroke: #98b2ff;
  stroke-width: 4;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.route-map-stop-current {
  fill: #1f5eff;
  stroke: #1f5eff;
}

.route-map-svg a:hover .route-map-stop {
  stroke: #1f5eff;
}

.route-map-stop-order {
  fill: #344054;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.route-map-stop-current + .route-map-stop-order,
.route-map-svg a .route-map-stop-current ~ .route-map-stop-order {
  fill: #fff;
}

.route-map-stop-city {
  fill: #182230;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.route-map-stop-date {
  fill: #667085;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.route-map-stop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-map-stop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.route-map-stop-chip:hover {
  border-color: #98b2ff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.route-map-stop-chip-current {
  border-color: #98b2ff;
  background: #eef4ff;
}

.route-map-stop-chip-order {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1f5eff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.route-map-stop-chip-city {
  font-weight: 700;
}

.route-map-stop-chip-date {
  color: #667085;
  font-size: 13px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

.usage-page,
.login-page {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.usage-card,
.login-card {
  max-width: 520px;
}

.login-card {
  width: 100%;
}

code {
  background: #f2f4f7;
  padding: 2px 6px;
  border-radius: 4px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.field span {
  color: #344054;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(31, 94, 255, 0.12);
  outline-offset: 1px;
}

.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(31, 94, 255, 0.12);
  outline-offset: 1px;
}

.field select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(31, 94, 255, 0.12);
  outline-offset: 1px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 700;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: #184ed5;
}

.btn:disabled {
  background: #d0d5dd;
  color: #fff;
  cursor: not-allowed;
}

.btn-loading {
  min-width: 160px;
}

.btn-secondary {
  background: #eef4ff;
  color: var(--accent);
  border: 1px solid #c7d7fe;
}

.btn-secondary:hover {
  background: #dfeaff;
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-link {
  text-decoration: none;
}

.inline-form {
  margin: 0;
}

.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 8px;
}

.alert-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.alert-warning {
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #027a48;
}

.table-wrap {
  overflow-x: auto;
}

.modal {
  width: min(100%, 520px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.18);
}

.modal::backdrop {
  background: rgba(16, 24, 40, 0.35);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-head h2 {
  margin: 0;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal form[data-city-links-form] {
  display: grid;
  gap: 16px;
}

.modal-feedback:empty {
  display: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 999px;
  animation: btn-spin 0.8s linear infinite;
}

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

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cached-games-empty-state {
  margin-top: 16px;
}

.home-secrets-jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.home-secrets-job-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #c7d7fe;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: #f8fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-secrets-job-card:hover {
  border-color: #98b2ff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.home-secrets-job-title {
  font-size: 17px;
  font-weight: 700;
  color: #182230;
}

.home-secrets-job-status {
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.home-secrets-job-progress {
  width: 100%;
  height: 12px;
}

.country-groups {
  display: grid;
  gap: 22px;
}

.country-group {
  display: grid;
  gap: 12px;
}

.country-title {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #f5f8ff;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.city-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.city-search {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.city-search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.city-search-input:focus {
  border-color: rgba(31, 94, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.1);
}

.city-show-all {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.city-show-all:hover {
  border-color: #98b2ff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.city-card {
  position: relative;
  display: grid;
  min-height: 158px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.city-card:hover {
  border-color: rgba(31, 94, 255, 0.35);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.city-card-favorite {
  border-color: rgba(247, 144, 9, 0.48);
  box-shadow: 0 0 0 1px rgba(247, 144, 9, 0.14);
}

.city-card-link {
  display: grid;
  gap: 7px;
  min-height: 100%;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.city-favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #98a2b3;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.city-favorite-button:hover,
.city-favorite-button:focus {
  border-color: rgba(247, 144, 9, 0.64);
  color: #f79009;
  outline: none;
  transform: translateY(-1px);
}

.city-favorite-button-active {
  border-color: rgba(247, 144, 9, 0.72);
  background: #fffaeb;
  color: #f79009;
}

.city-favorite-button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.city-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 32px;
  font-size: 16px;
  font-weight: 800;
}

.city-card-country {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.city-card-id {
  color: #98a2b3;
  font-size: 12px;
}

.city-card-id b {
  margin-left: 4px;
  color: #344054;
  font-weight: 800;
}

.city-card-stats {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.city-card-stats span {
  min-width: 0;
}

.city-stat-label {
  color: #475467;
  font-weight: 400;
}

.city-stat-value {
  font-weight: 600;
}

.city-stat-value-upcoming {
  color: #039855;
}

.city-stat-value-played {
  color: #d92d20;
}

.city-stat-value-teams {
  color: #175cd3;
}

.city-stat-value-cached {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1649c7;
  font-weight: 600;
}

.game-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
  border-color: rgba(31, 94, 255, 0.35);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.game-card-live {
  border-color: #12b76a;
  box-shadow: 0 0 0 1px rgba(18, 183, 106, 0.25), 0 12px 24px rgba(16, 24, 40, 0.08);
}

.game-card-finished {
  opacity: 0.5;
}

.game-card-finished:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.game-card-title {
  font-size: 18px;
  font-weight: 700;
}

.game-card-id {
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.game-card-meta {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.game-date {
  font-weight: 400;
}

.game-date-success {
  color: #05603a;
}

.game-date-danger {
  color: #b42318;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fcfcfd;
}

.empty-state p {
  margin: 0;
}

.empty-state p + p {
  margin-top: 8px;
}

.qa-cell {
  display: grid;
  gap: 8px;
}

.qa-image-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.qa-image {
  display: block;
  max-width: min(100%, 180px);
  max-height: 110px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  object-fit: contain;
}

.qa-audio {
  display: block;
  width: min(100%, 180px);
  height: 34px;
}

.qa-video {
  display: block;
  width: min(100%, 200px);
  max-height: 120px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101828;
}

.modal-media-preview {
  width: min(96vw, 1100px);
  padding: 18px;
}

.media-preview-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-preview-image {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 110px);
  border-radius: 12px;
  object-fit: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.teams-table {
  width: 100%;
  table-layout: auto;
}

.accounts-table {
  min-width: 0;
  table-layout: fixed;
}

.stored-teams-table {
  min-width: 0;
  table-layout: fixed;
}

.tasks-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.city-rating-table {
  min-width: 760px;
  table-layout: fixed;
}

.teams-table th,
.teams-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accounts-table th,
.stored-teams-table th {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tasks-table th,
.tasks-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.city-rating-table th,
.city-rating-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.city-rating-table th:first-child,
.city-rating-table td:first-child {
  width: 64px;
  text-align: left;
}

.city-rating-table th:nth-child(2),
.city-rating-table td:nth-child(2) {
  width: 34%;
}

.tasks-table th:first-child,
.tasks-table td:first-child {
  width: 13%;
  text-align: left;
}

.tasks-table th:nth-child(2),
.tasks-table td:nth-child(2) {
  width: 18%;
}

.tasks-table th:nth-child(3),
.tasks-table td:nth-child(3) {
  width: 24%;
}

.tasks-table th:nth-child(4),
.tasks-table td:nth-child(4) {
  width: 13%;
}

.tasks-table th:nth-child(5),
.tasks-table td:nth-child(5) {
  width: 22%;
}

.tasks-table th:nth-child(6),
.tasks-table td:nth-child(6) {
  width: 10%;
}

.accounts-table th:first-child,
.accounts-table td:first-child {
  width: 5%;
  text-align: left;
}

.accounts-table th:nth-child(2),
.accounts-table td:nth-child(2) {
  width: 18%;
}

.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3) {
  width: 8%;
}

.accounts-table th:nth-child(4),
.accounts-table td:nth-child(4) {
  width: 13%;
}

.accounts-table th:nth-child(5),
.accounts-table td:nth-child(5) {
  width: 14%;
}

.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6) {
  width: 16%;
}

.accounts-table th:nth-child(7),
.accounts-table td:nth-child(7) {
  width: 18%;
}

.accounts-table th:nth-child(8),
.accounts-table td:nth-child(8) {
  width: 8%;
}

.accounts-table td:first-child,
.accounts-table td:nth-child(6),
.accounts-table td:nth-child(7),
.accounts-table td:nth-child(3),
.accounts-table td:nth-child(8) {
  white-space: nowrap;
}

.stored-teams-table th:first-child,
.stored-teams-table td:first-child {
  width: 5%;
}

.stored-teams-table th:nth-child(2),
.stored-teams-table td:nth-child(2) {
  width: 15%;
}

.stored-teams-table th:nth-child(3),
.stored-teams-table td:nth-child(3) {
  width: 10%;
}

.stored-teams-table th:nth-child(4),
.stored-teams-table td:nth-child(4) {
  width: 21%;
}

.stored-teams-table th:nth-child(5),
.stored-teams-table td:nth-child(5) {
  width: 12%;
}

.stored-teams-table th:nth-child(6),
.stored-teams-table td:nth-child(6) {
  width: 8%;
}

.stored-teams-table th:nth-child(7),
.stored-teams-table td:nth-child(7) {
  width: 16%;
}

.stored-teams-table th:nth-child(8),
.stored-teams-table td:nth-child(8) {
  width: 13%;
}

.accounts-table th,
.accounts-table td,
.stored-teams-table th,
.stored-teams-table td {
  padding: 10px 10px;
}

.accounts-table td,
.stored-teams-table td {
  overflow-wrap: break-word;
  word-break: normal;
}

.stored-teams-table td:first-child,
.stored-teams-table td:nth-child(2),
.stored-teams-table td:nth-child(3),
.stored-teams-table td:nth-child(5),
.stored-teams-table td:nth-child(6),
.accounts-table td:nth-child(7),
.accounts-table td:nth-child(8),
.stored-teams-table td:nth-child(8) {
  white-space: nowrap;
}

.cell-nowrap {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

th,
td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  vertical-align: top;
}

th {
  background: var(--header);
  text-align: left;
  font-weight: 700;
}

th:first-child,
td:first-child {
  width: 70px;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
  width: 60%;
}

strong {
  font-weight: 800;
  background: #fff2b8;
  padding: 0 2px;
  border-radius: 3px;
}

.task-title {
  color: #101828;
  font-weight: 700;
}

.task-subline {
  color: #667085;
  font-size: 13px;
}

.task-status-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.task-cancel-form {
  margin-top: 10px;
}

.task-game-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.task-game-link:hover {
  text-decoration: underline;
}

.status-success {
  color: #027a48;
  font-weight: 700;
}

.status-danger {
  color: #b42318;
  font-weight: 700;
}

.status-warning {
  color: #175cd3;
  font-weight: 700;
}

.status-muted {
  color: #667085;
  font-weight: 700;
}

.ratings-page {
  display: grid;
  gap: 16px;
}

.ratings-filters {
  display: grid;
  gap: 16px;
}

.ratings-filter-block {
  display: grid;
  gap: 8px;
}

.ratings-filter-title {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.ratings-city-select {
  width: min(460px, 100%);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #c7d7fe;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ratings-city-select:focus {
  border-color: #98b2ff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.1);
}

.ratings-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ratings-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c7d7fe;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ratings-switch-btn:hover {
  background: #eef4ff;
  border-color: #98b2ff;
  color: var(--accent);
}

.ratings-switch-btn-active {
  background: #eef4ff;
  border-color: #98b2ff;
  color: var(--accent);
}

.ratings-inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-weight: 700;
}

.ratings-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(31, 94, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: btn-spin 0.8s linear infinite;
}

.ratings-feedback:empty {
  display: none;
}

.ratings-chart-shell {
  position: relative;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
  overflow: hidden;
}

.ratings-chart {
  display: block;
  width: 100%;
  height: 360px;
}

.ratings-grid-line {
  stroke: #eaecf0;
  stroke-width: 1;
}

.ratings-axis-text {
  fill: #667085;
  font-size: 12px;
}

.ratings-x-text {
  text-anchor: middle;
}

.ratings-series-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}

.ratings-series-point {
  stroke: #fff;
  stroke-width: 1.5;
}

.ratings-hover-line {
  stroke: #98a2b3;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.ratings-tooltip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.ratings-tooltip-title {
  margin-bottom: 8px;
  color: #101828;
  font-size: 13px;
  font-weight: 700;
}

.ratings-tooltip-list {
  display: grid;
  gap: 6px;
}

.ratings-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
}

.ratings-tooltip-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ratings-tooltip-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ratings-tooltip-value {
  flex: 0 0 auto;
  color: #101828;
  font-weight: 700;
  white-space: nowrap;
}

.ratings-table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ratings-table-actions-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ratings-table {
  width: 100%;
  table-layout: fixed;
}

.ratings-table th,
.ratings-table td {
  padding: 10px 12px;
}

.ratings-col-position {
  width: 4.5ch;
  min-width: 4.5ch;
  max-width: 4.5ch;
  text-align: center;
  white-space: nowrap;
}

.ratings-col-select {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  text-align: center;
}

.ratings-col-team {
  width: 40%;
}

.ratings-col-value {
  width: 11ch;
  white-space: nowrap;
}

.ratings-col-extra {
  width: 10ch;
  white-space: nowrap;
}

.ratings-col-delta {
  width: 8ch;
  white-space: nowrap;
}

.ratings-table th:nth-child(1),
.ratings-table td:nth-child(1) {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
}

.ratings-table th:nth-child(2),
.ratings-table td:nth-child(2) {
  width: 4.5ch !important;
  min-width: 4.5ch !important;
  max-width: 4.5ch !important;
}

.ratings-table th:nth-child(3),
.ratings-table td:nth-child(3) {
  width: 40% !important;
}

.ratings-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ratings-color-chip {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.ratings-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ratings-delta {
  font-weight: 700;
}

.ratings-team-toggle {
  width: 16px;
  height: 16px;
  margin: 0;
}

.ratings-row-inactive {
  opacity: 0.58;
}

@media (max-width: 760px) {
  body {
    padding: 14px;
    background: #f7f9fd;
  }

  h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  h2 {
    font-size: 20px;
    line-height: 1.25;
  }

  .meta {
    margin-bottom: 18px;
    font-size: 14px;
  }

  section {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav-side {
    margin-left: 0;
  }

  .btn {
    width: 100%;
  }

  .ratings-switch-btn {
    width: 100%;
  }

  .ratings-table-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ratings-chart-shell {
    min-height: 280px;
  }

  .ratings-chart {
    height: 280px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100% !important;
  }

  thead {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }

  td {
    position: relative;
    min-height: 44px;
    padding: 12px 14px 12px 118px;
    border: 0;
    border-bottom: 1px solid var(--border);
    text-align: left !important;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    position: absolute;
    left: 14px;
    top: 12px;
    width: 88px;
    color: #667085;
    font-weight: 700;
  }

  td:nth-child(1)::before {
    content: "№";
  }

  td:nth-child(2)::before {
    content: "Вопрос";
  }

  td:nth-child(3)::before {
    content: "Ответ";
  }

  td:first-child {
    background: var(--header);
    font-weight: 700;
  }

  .accounts-table td,
  .stored-teams-table td {
    padding-left: 132px;
  }

  .accounts-table td:first-child,
  .stored-teams-table td:first-child {
    background: #fff;
    font-weight: 400;
  }

  .accounts-table td:nth-child(1)::before {
    content: "ID";
  }

  .accounts-table td:nth-child(2)::before {
    content: "Логин";
  }

  .accounts-table td:nth-child(3)::before {
    content: "ID игрока";
  }

  .accounts-table td:nth-child(4)::before {
    content: "Имя";
  }

  .accounts-table td:nth-child(5)::before {
    content: "Телефон";
  }

  .accounts-table td:nth-child(6)::before {
    content: "Последний логин";
  }

  .accounts-table td:nth-child(7)::before {
    content: "Куки обновлены";
  }

  .accounts-table td:nth-child(8)::before {
    content: "Команд";
  }

  .stored-teams-table td:nth-child(1)::before {
    content: "ID";
  }

  .stored-teams-table td:nth-child(2)::before {
    content: "Аккаунт";
  }

  .stored-teams-table td:nth-child(3)::before {
    content: "Внешний ID";
  }

  .stored-teams-table td:nth-child(4)::before {
    content: "Команда";
  }

  .stored-teams-table td:nth-child(5)::before {
    content: "Город";
  }

  .stored-teams-table td:nth-child(6)::before {
    content: "Статус";
  }

  .stored-teams-table td:nth-child(7)::before {
    content: "Капитан";
  }

  .stored-teams-table td:nth-child(8)::before {
    content: "Обновлена";
  }

  .tasks-table td {
    padding-left: 132px;
  }

  .tasks-table td:first-child {
    background: #fff;
    font-weight: 400;
  }

  .tasks-table td:nth-child(1)::before {
    content: "Создана";
  }

  .tasks-table td:nth-child(2)::before {
    content: "Команда";
  }

  .tasks-table td:nth-child(3)::before {
    content: "Игра";
  }

  .tasks-table td:nth-child(4)::before {
    content: "Регистрация";
  }

  .tasks-table td:nth-child(5)::before {
    content: "Статус";
  }

  .tasks-table td:nth-child(6)::before {
    content: "За сколько";
  }

  .ratings-table td {
    padding-left: 132px;
  }

  .ratings-table td:first-child {
    background: #fff;
    font-weight: 400;
  }

  .ratings-table td::before {
    content: attr(data-label);
  }

  .ratings-col-select::before {
    content: none;
  }
}

@media (max-width: 430px) {
  body {
    padding: 10px;
  }

  section {
    padding: 12px;
  }

  td {
    padding: 10px 12px;
  }

  td::before {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 4px;
  }
}
