/* RnD Studio: то, чего нет в style.css из hf-studio. style.css держим копией, чтобы разделы переезжали без правок. */

.auth-actions { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; text-align: left; }

/* новая версия студии */
.update-bar {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--shadow);
  font-size: 13.5px;
}
.update-bar .icon { flex: none; color: var(--accent); }

/* выбор игры */
.project-switch { display: grid; gap: 6px; padding: 0 6px; }
.project-switch span { color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.project-switch select { width: 100%; }

/* нет игры */
.lobby-projects { display: grid; gap: 8px; }
.lobby-projects a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}
.lobby-projects a:hover { border-color: var(--accent); }
.lobby-projects small { color: var(--muted); font-weight: 500; }

/* обзор игры */
.page > .card + .card { margin-top: 18px; }
.home-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.section-tile {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input);
}
.section-tile b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.section-tile b .icon { color: var(--accent); }
.section-tile small { color: var(--muted); }
a.section-tile { color: inherit; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
a.section-tile:hover { border-color: var(--accent); }
a.section-tile small { color: var(--accent); font-weight: 600; }
.home-perms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* участники */
.member-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto; align-items: end; gap: 12px; }
.member-form select { height: 42px; border-radius: 12px; }
.granted small { display: block; color: var(--muted); }

/* студия: игры */
.studio-games { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.studio-games li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.studio-games a { color: var(--text); font-weight: 700; text-decoration: none; }
.studio-games a:hover { color: var(--accent); }
.studio-games code { color: var(--muted); font: 12px var(--mono); }
.game-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px); gap: 12px; align-items: end; }
.game-sections { grid-column: 1 / -1; display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.game-sections legend { margin-bottom: 8px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.game-sections div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.game-form > .btn { justify-self: start; }

@media (max-width: 760px) {
  .member-form, .game-form { grid-template-columns: 1fr; }
}

/* кривая: колонка картинки уровня пуста, пока не выделен один уровень (генерация ещё не переехала), — места не занимает */
.side-cols > #level-side:not(:has(> .card:not([hidden]))) { display: none; }
