/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #040a3a;
  --bg-soft: #081252;
  --surface: rgba(11, 22, 85, 0.88);
  --surface-alt: rgba(9, 18, 75, 0.92);
  --text: #ebf8ff;
  --muted: #a9bfe0;
  --primary: #12deff;
  --primary-hover: #00c6e8;
  --accent: #ff18d3;
  --accent-soft: rgba(255, 24, 211, 0.2);
  --danger: #ff4f8f;
  --success: #24d89a;
  --border: rgba(18, 222, 255, 0.3);
  --shadow: 0 20px 48px rgba(2, 6, 27, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(18, 222, 255, 0.16) 0%, transparent 60%),
    radial-gradient(900px 520px at 110% -10%, rgba(255, 24, 211, 0.16) 0%, transparent 62%),
    radial-gradient(1400px 800px at 50% -35%, rgba(21, 64, 221, 0.3) 0%, transparent 65%),
    linear-gradient(160deg, #020733 0%, #040c43 45%, #040a39 100%);
}

body.admin-viewport {
  background:
    radial-gradient(900px 460px at 50% -15%, rgba(255, 255, 255, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #010101 0%, #020202 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

main.page {
  max-width: min(98vw, 1840px);
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

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

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

input,
select,
textarea,
button {
  font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(6, 14, 63, 0.85);
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
  color: #8ca9d2;
}

button {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    filter 0.16s ease;
  will-change: transform;
}

button:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px) scale(0.965);
  box-shadow: none;
  filter: brightness(0.94);
}

button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

button.secondary {
  background: var(--accent);
}

button.secondary:hover {
  background: #df00b2;
}

button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

button.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: #b1363e;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.status-line {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, 0);
  min-width: min(92vw, 420px);
  max-width: min(92vw, 700px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(18, 222, 255, 0.35);
  box-shadow: 0 16px 42px rgba(2, 6, 27, 0.5);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 2200;
  animation: toast-enter 0.28s ease forwards;
}

.app-toast.ok {
  color: #76f2c8;
  background: rgba(13, 72, 57, 0.92);
  border-color: rgba(118, 242, 200, 0.42);
}

.app-toast.error {
  color: #ffc2dc;
  background: rgba(95, 18, 48, 0.93);
  border-color: rgba(255, 155, 195, 0.45);
}

.app-toast.leave {
  animation: toast-leave 0.28s ease forwards;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -18px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toast-leave {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
}

.status-line.ok {
  border-color: rgba(36, 216, 154, 0.45);
  background: rgba(13, 72, 57, 0.34);
  color: #74f2c5;
}

.status-line.error {
  border-color: rgba(255, 79, 143, 0.5);
  background: rgba(95, 18, 48, 0.36);
  color: #ff9bc3;
}

.list-scroll {
  max-height: 260px;
  overflow: auto;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-alt);
}

.app-admin {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}

.admin-aside {
  position: static;
  align-self: start;
}

.admin-sidebar {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  background:
    radial-gradient(220px 120px at 0% 0%, rgba(18, 222, 255, 0.2) 0%, transparent 70%),
    linear-gradient(170deg, #050e44 0%, #091761 100%);
  border-color: rgba(18, 222, 255, 0.35);
  color: #e6f7ff;
}

.admin-theme {
  --admin-workspace-height: calc(100vh - 48px);
  --surface: rgba(10, 10, 10, 0.92);
  --surface-alt: rgba(17, 17, 17, 0.95);
  --text: #e8e8e8;
  --muted: #9ba3ad;
  --primary: #465563;
  --primary-hover: #58697b;
  --accent: #333f4b;
  --accent-soft: rgba(86, 99, 112, 0.24);
  --danger: #8e4b59;
  --success: #3f7b65;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.admin-theme.theme-neutral {
  --primary: #465563;
  --primary-hover: #5a6f85;
  --accent: #3c4652;
}

.admin-theme.theme-sber {
  --primary: #2f5a46;
  --primary-hover: #3c6f57;
  --accent: #2b4136;
}

.admin-theme.theme-ozon {
  --primary: #34436e;
  --primary-hover: #46578b;
  --accent: #31385c;
}

.admin-theme.theme-wildberries {
  --primary: #5a355f;
  --primary-hover: #6f4475;
  --accent: #4a314f;
}

.admin-theme .card {
  background: rgba(12, 12, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-theme .hero {
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 62%),
    radial-gradient(620px 220px at 100% -10%, rgba(70, 85, 99, 0.16) 0%, transparent 64%),
    rgba(12, 12, 12, 0.92);
}

.admin-theme .status-line {
  background: rgba(13, 13, 13, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-theme .question-video-link,
.admin-theme .question-thumb-empty,
.admin-theme .question-thumb-loading,
.admin-theme .question-form-preview {
  background: rgba(8, 8, 8, 0.95);
}

.admin-theme .admin-sidebar {
  background: rgba(8, 8, 8, 0.94);
  color: #ececec;
}

.admin-theme .admin-sidebar .muted {
  color: #a7adb7;
}

.admin-theme .admin-menu button {
  background: rgba(16, 16, 16, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-theme .admin-menu button:hover {
  background: rgba(26, 26, 26, 0.96);
}

.admin-theme .round-chip,
.admin-theme .question-row {
  background: rgba(13, 13, 13, 0.95);
}

.admin-theme .round-chip:hover,
.admin-theme .question-row:hover {
  background: rgba(22, 22, 22, 0.98);
}

.admin-theme .list-scroll,
.admin-theme .round-checklist,
.admin-theme .question-list {
  background: rgba(8, 8, 8, 0.95);
}

.admin-theme input:not([type="checkbox"]):not([type="radio"]),
.admin-theme select,
.admin-theme textarea {
  background: rgba(6, 6, 6, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.admin-theme .modal-card {
  background: rgba(9, 9, 9, 0.98);
}

.admin-theme .modal-inner-card {
  background: rgba(13, 13, 13, 0.98);
}

.admin-sidebar .muted {
  color: #b9cef1;
}

.admin-status-inline {
  font-size: 0.88rem;
  line-height: 1.3;
  margin-top: -2px;
}

.admin-status-inline strong {
  color: var(--text);
}

.admin-menu {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.admin-menu-divider {
  height: 1px;
  margin: 8px 6px 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(177, 100, 255, 0.28) 50%, rgba(255, 255, 255, 0.06) 100%);
}

.admin-menu button {
  width: 100%;
  text-align: left;
  background: rgba(8, 19, 79, 0.9);
  border: 1px solid rgba(18, 222, 255, 0.24);
}

.admin-menu button:hover {
  background: rgba(11, 30, 110, 0.95);
}

.admin-menu button.active {
  background: var(--accent);
  border-color: var(--accent);
}

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

.compact-button {
  width: auto;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
}

.games-board {
  gap: 12px;
  align-content: start;
  min-height: var(--admin-workspace-height);
  height: var(--admin-workspace-height);
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.games-question-list {
  max-height: none;
  min-height: 0;
  height: 100%;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-content: start;
}

.games-list-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(220px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  max-width: 100%;
}

.games-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto;
  grid-gap: 3px 12px;
  gap: 3px 12px;
  align-content: start;
  min-height: 0;
  padding: 10px 12px 10px;
  text-align: left;
  position: relative;
  background: rgba(58, 71, 83, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.16s ease,
    box-shadow 0.18s ease;
}

.games-item:hover {
  background: rgba(71, 84, 99, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.games-item.active,
.games-item.active:hover {
  background: rgba(140, 46, 150, 0.88);
  border-color: rgba(220, 113, 255, 0.8);
  color: #fff;
}

.games-item-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.games-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1 / -1;
}

.games-item-edit-button {
  grid-column: 2 / 3;
  grid-row: 2 / 5;
  align-self: end;
  justify-self: end;
  min-width: 60px;
  width: 60px;
  height: 60px;
  margin-left: 0;
  border-radius: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 3.4rem;
  line-height: 1;
  flex: 0 0 auto;
  z-index: 1;
}

.games-item-edit-button:hover {
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(255, 255, 255, 0.22);
}

.games-item.active .games-item-edit-button {
  background: rgba(0, 0, 0, 0.18);
}

.games-item.active .games-item-status-button {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.16);
}

.games-item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 88px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

.games-item-status-button {
  gap: 6px;
  cursor: pointer;
  box-shadow: none;
  font-size: 0.74rem;
  font-weight: 700;
}

.games-item-status-button:hover {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
  transform: none;
}

.games-item-status-button.is-modal {
  min-width: 108px;
}

.game-status-control {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 3;
}

.game-status-control--card {
  z-index: 12;
}

.game-status-control--modal {
  align-items: flex-end;
  z-index: 8;
}

.game-status-chevron {
  font-size: 0.62rem;
  opacity: 0.72;
}

.game-status-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 32;
  width: min(214px, 72vw);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 9, 11, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.game-status-menu--card {
  right: -8px;
}

.game-status-menu--modal {
  right: 0;
}

.game-status-menu-list {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.game-status-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: none;
  font-size: 0.82rem;
  line-height: 1.2;
}

.game-status-menu-item:hover:enabled {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
}

.game-status-menu-item.active,
.game-status-menu-item:disabled {
  opacity: 1;
  cursor: default;
  background: rgba(177, 100, 255, 0.12);
  border-color: rgba(177, 100, 255, 0.24);
}

.game-status-menu-mark {
  color: var(--muted);
  font-size: 0.7rem;
}

.game-status-menu-note {
  margin-top: 8px;
  font-size: 0.74rem;
  line-height: 1.35;
}

.games-item-title {
  grid-column: 1 / 2;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-item-customer {
  grid-column: 1 / 2;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.2;
  min-height: 1.15em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
}

.games-item-meta {
  grid-column: 1 / 2;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 1px;
  align-items: flex-end;
}

.games-item-meta-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
  padding-right: 0;
}

.games-item-meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  line-height: 1;
}

.games-board .games-item {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px;
  align-content: start;
  min-height: 126px;
  padding: 11px 14px;
  border-radius: 18px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(64, 78, 91, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.14);
}

.games-board .games-item.game-status-menu-open {
  z-index: 18;
}

.games-board .games-item-head {
  grid-column: 1 / -1;
}

.games-board .games-item-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 0;
  gap: 0;
  align-items: center;
  grid-column: 1 / -1;
}

.games-board .games-item-content {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding-right: 94px;
  transform: translateY(-5px);
}

.games-board .games-item-title {
  grid-column: auto;
  line-height: 1.24;
  -webkit-line-clamp: 2;
  min-height: calc(1.24em * 2);
  max-width: 45ch;
  padding-right: 0;
}

.games-board .games-item-customer {
  grid-column: auto;
  line-height: 1.25;
  min-height: 1.25em;
  max-width: 28ch;
  padding-right: 0;
}

.games-board .games-item:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(70, 85, 100, 0.97);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.games-board .games-item-status {
  min-height: 24px;
  min-width: 104px;
  padding: 0 10px;
  background: rgba(17, 24, 32, 0.42);
  border-color: rgba(255, 255, 255, 0.08);
}

.games-board .games-item.active,
.games-board .games-item.active:hover {
  background:
    linear-gradient(180deg, rgba(162, 64, 184, 0.22), rgba(113, 34, 139, 0.08)),
    rgba(88, 56, 107, 0.96);
  border-color: rgba(191, 107, 219, 0.62);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(55, 16, 73, 0.28);
}

.games-board .games-item-meta {
  grid-column: 1 / -1;
  padding: 0;
  padding-right: 94px;
  border-top: none;
  justify-content: flex-start;
  gap: 8px;
  margin-top: -4px;
}

.games-board .games-item-meta-pills {
  align-items: flex-end;
}

.games-board .games-item-meta-pills span {
  min-height: 24px;
  padding: 0 10px;
  background: rgba(17, 24, 32, 0.34);
  border-color: rgba(255, 255, 255, 0.08);
}

.games-board .games-item-edit-button {
  position: absolute;
  right: 26px;
  bottom: 11px;
  min-width: 80px;
  width: 80px;
  height: 80px;
  margin-left: 0;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border-color: rgba(255, 255, 255, 0.1);
  color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 6px 14px rgba(0, 0, 0, 0.12);
}

.games-board .games-item-edit-button::before {
  content: "✎";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.9rem;
  line-height: 1;
  transform: translate(-1px, -1px);
}

.games-board .games-item-edit-button:hover {
  transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.14);
}

.games-board .games-item.active .games-item-edit-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(228, 174, 255, 0.32);
}

.game-delete-section {
  display: flex;
  justify-content: flex-start;
}

.game-delete-section--inline {
  justify-content: flex-end;
  margin-top: 0;
}

.game-modal-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-modal-actions-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-modal-actions-row button,
.game-delete-section--inline button {
  opacity: 1;
  filter: none;
}

.game-delete-warning {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid rgba(255, 79, 143, 0.42);
  border-radius: 12px;
  background: rgba(95, 18, 48, 0.32);
  padding: 12px;
}

.game-delete-warning-final {
  background: rgba(111, 23, 31, 0.38);
}

.hero {
  padding: 22px;
  background:
    radial-gradient(640px 230px at 0% 0%, rgba(18, 222, 255, 0.19) 0%, transparent 60%),
    radial-gradient(640px 220px at 100% -10%, rgba(255, 24, 211, 0.18) 0%, transparent 60%),
    var(--surface);
}

.round-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 8px 12px;
  gap: 8px 12px;
  max-height: 320px;
  overflow: auto;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-alt);
}

.round-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.round-check-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.rounds-workspace {
  width: 100%;
  gap: 12px;
}

.admin-workspace-card {
  min-height: var(--admin-workspace-height);
  height: var(--admin-workspace-height);
  align-content: start;
}

.admin-workspace-card .locked-workspace {
  min-height: 0;
  height: 100%;
}

.workspace-empty {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.workspace-empty > .locked-workspace {
  min-height: 100%;
  height: 100%;
  align-self: stretch;
  grid-row: 2;
}

.rounds-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.rounds-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.rounds-create-row input::placeholder {
  color: rgba(140, 169, 210, 0.88);
}

.rounds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
}

.round-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  padding: 10px 16px;
  text-align: left;
  border: 1px solid rgba(18, 222, 255, 0.2);
  background: rgba(4, 15, 69, 0.9);
  border-radius: 12px;
  line-height: 1.25;
}

.round-chip:hover {
  background: rgba(89, 9, 101, 0.45);
  border-color: var(--accent);
}

.round-chip.active {
  background: rgba(89, 9, 101, 0.45);
  border-color: var(--accent);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(2, 5, 23, 0.62);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(940px, 96vw);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: rgba(9, 20, 80, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  box-shadow: 0 28px 52px rgba(2, 6, 27, 0.55);
}

.question-modal {
  width: min(1560px, 98vw);
  max-height: min(96vh, 1040px);
}

.question-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(560px, 0.94fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
}

.modal-inner-card {
  padding: 12px;
  background: rgba(7, 18, 75, 0.96);
  box-shadow: none;
  min-height: 0;
}

.question-editor-card {
  align-content: start;
  gap: 8px;
  max-height: calc(min(96vh, 1040px) - 118px);
  overflow: auto;
  overflow-x: hidden;
}

.question-modal-actions {
  margin-top: 12px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.question-modal-actions-row {
  display: grid;
  width: 100%;
  grid-gap: 10px;
  gap: 10px;
}

.question-modal-actions-row:first-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-modal-actions-row:last-child {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.question-modal-actions-row.question-modal-actions-row--library {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.question-modal-actions-row.question-modal-actions-row--library > button {
  width: 100%;
}

.question-modal-actions-row > * {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.modal-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.modal-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(17, 42, 131, 0.95);
}

.modal-close:hover {
  background: rgba(29, 56, 156, 0.95);
}

.confirm-dialog-overlay {
  z-index: 1800;
}

.confirm-dialog-card {
  width: min(520px, 96vw);
  max-height: min(80vh, 560px);
  background: rgba(8, 14, 42, 0.98);
}

.confirm-dialog-copy {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.confirm-dialog-actions > button {
  min-width: 132px;
}

.modal-question-list {
  max-height: 180px;
}

.round-modal-question-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 8px 10px;
  margin: 0 0 6px 0;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.round-modal-question-row:last-child {
  margin-bottom: 0;
}

.round-modal-question-row:hover {
  background: rgba(29, 29, 29, 0.98);
  border-color: rgba(255, 255, 255, 0.16);
}

.round-modal-question-row.active,
.round-modal-question-row.active:hover {
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(93, 60, 126, 0.22) 0%, transparent 74%),
    rgba(38, 38, 38, 0.98);
  border-color: var(--accent);
}

.round-modal-question-index {
  font-family: Consolas, "Courier New", monospace;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.round-modal-question-text {
  min-width: 0;
  line-height: 1.35;
}

.round-delete-warning {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border: 1px solid rgba(255, 79, 143, 0.42);
  border-radius: 12px;
  background: rgba(95, 18, 48, 0.38);
  padding: 12px;
}

.round-position-control {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-gap: 4px;
  gap: 4px;
  align-items: start;
  width: 100%;
}

.round-edit-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
}

.round-position-field,
.round-title-field {
  gap: 6px;
  align-content: start;
}

.round-position-field > span,
.round-title-field > span {
  display: block;
  line-height: 1.2;
}

.round-position-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 24px;
  align-self: start;
}

.round-position-button {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(32, 37, 44, 0.95);
  color: rgba(255, 255, 255, 0.82);
  transition:
    transform 0.14s ease,
    opacity 0.14s ease;
  outline: none;
}

.round-position-button:hover:enabled {
  background: rgba(32, 37, 44, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: inherit !important;
  box-shadow: none !important;
  filter: none !important;
}

.round-position-button:focus,
.round-position-button:active {
  background: rgba(32, 37, 44, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: inherit !important;
  outline: none;
  box-shadow: none !important;
  filter: none !important;
}

.round-position-button:focus-visible {
  outline: none;
  box-shadow: none !important;
}

.round-position-button:active:enabled {
  transform: scale(0.9);
  opacity: 0.9;
}

.round-position-button:disabled {
  background: rgba(28, 31, 36, 0.86);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}

.round-position-input {
  text-align: center;
  font-weight: 700;
  margin: 0;
}

.round-position-note {
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .round-edit-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.question-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-height: none;
  min-height: 0;
  height: 100%;
  overflow: auto;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-alt);
}

.questions-board {
  gap: 12px;
}

.workspace-title {
  margin: 0;
  font-size: clamp(2rem, 1.55rem + 0.85vw, 2.45rem);
  line-height: 1.02;
}

.locked-workspace {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.76) 0%, rgba(8, 8, 8, 0.92) 100%);
}

.locked-workspace-inner {
  width: min(560px, 100%);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.86);
}

.game-modal {
  width: min(920px, 96vw);
  max-height: min(90vh, 920px);
  position: relative;
}

.game-modal-form {
  gap: 12px;
}

.game-modal-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
}

.game-modal-inline-grid--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-modal-inline-actions {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.game-modal-customer-block {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(360px 120px at 0% 0%, rgba(32, 63, 149, 0.16) 0%, transparent 72%),
    rgba(255, 255, 255, 0.03);
}

.game-modal-customer-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
}

.question-toolbar-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
}

.question-toolbar-row--library {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.question-filter-control {
  min-width: 0;
}

.question-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.question-found-inline {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.question-create-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.question-action-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.question-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.question-preview-toggle-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.question-preview-mode-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(242, 242, 242, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.question-preview-mode-button.active {
  border-color: rgba(127, 60, 136, 0.75);
  background: rgba(127, 60, 136, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.question-create-dropdown-wrap {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0s linear 0.32s;
}

.question-create-dropdown-wrap.open {
  max-height: 1400px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition:
    max-height 0.36s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

.question-create-dropdown {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(380px 120px at 0% 0%, rgba(32, 63, 149, 0.15) 0%, transparent 72%),
    rgba(255, 255, 255, 0.025);
}

.question-row {
  display: grid;
  grid-gap: 0;
  gap: 0;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(38, 70, 164, 0.12) 0%, transparent 74%),
    rgba(18, 18, 18, 0.96);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.16s ease,
    box-shadow 0.18s ease;
}

.question-row.is-loading {
  cursor: progress;
  opacity: 0.68;
}

.question-row:hover {
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(45, 79, 176, 0.16) 0%, transparent 74%),
    rgba(24, 24, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.question-row.active {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(93, 60, 126, 0.22) 0%, transparent 74%),
    rgba(38, 38, 38, 0.98);
}

.question-row-main {
  font-weight: 700;
}

.question-row-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
}

.question-row-layout--compact {
  grid-template-columns: minmax(0, 1fr) 108px;
}

.question-row-layout--question-list {
  grid-template-columns: minmax(0, 1fr) 272px 180px;
}

.question-row-layout--question-list.question-row-layout--compact {
  grid-template-columns: minmax(0, 1fr) 108px 180px;
}

.question-row-layout--library {
  grid-template-columns: minmax(0, 1fr) 272px 180px;
}

.question-row-layout--library.question-row-layout--compact {
  grid-template-columns: minmax(0, 1fr) 108px 180px;
}

.question-row-layout.no-preview {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.question-row-content {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
}

.question-row-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.question-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.question-row-badge {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 242, 242, 0.82);
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}

.question-row-text {
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.question-row-media,
.question-row-answer {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: start;
}

.question-row-media-slot {
  min-width: 0;
}

.question-row-side-panel {
  display: grid;
  align-content: start;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}

.question-row-layout--compact .question-row-media {
  gap: 4px;
}

.question-row-answer-inline {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding-top: 2px;
}

.question-answer-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.question-media-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: center;
}

.question-media-placeholder.is-large {
  max-height: 360px;
}

.question-row-layout--compact .question-media-placeholder {
  width: 100%;
  max-width: 112px;
  aspect-ratio: 16 / 9;
}

.library-task-row {
  cursor: pointer;
}

.library-task-row:hover {
  transform: translateY(-1px);
}

.question-row-side-meta {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  color: rgba(242, 242, 242, 0.52);
  font-size: 0.82rem;
  line-height: 1.35;
}

.library-task-id {
  color: rgba(242, 242, 242, 0.5);
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-all;
}

.question-media-hint {
  line-height: 1.3;
}

.question-form-preview {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.question-form-preview-large {
  gap: 10px;
  min-height: 0;
}

.question-form-preview-link {
  color: rgba(242, 242, 242, 0.54);
  font-size: 0.84rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.question-form-preview-link:hover {
  color: rgba(242, 242, 242, 0.78);
}

.question-media-source {
  font-size: 0.84rem;
  line-height: 1.3;
  word-break: break-word;
  color: rgba(242, 242, 242, 0.52);
}

.question-cell-title {
  font-size: 0.82rem;
  color: var(--muted);
}

.question-thumb-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.question-thumb-image.is-large {
  max-height: 360px;
}

.question-media-preview-shell {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.question-media-preview-shell.is-large {
  max-height: 360px;
}

.question-media-preview-shell .question-thumb-image {
  border: none;
  border-radius: 0;
}

.question-row-layout--compact .question-thumb-image,
.question-row-layout--compact .question-media-preview-shell,
.question-row-layout--compact .question-video-inline-preview-shell,
.question-row-layout--compact .question-video-link,
.question-row-layout--compact .question-thumb-empty,
.question-row-layout--compact .question-thumb-loading {
  width: 100%;
  max-width: 112px;
  aspect-ratio: 16 / 9;
}

.question-media-trigger {
  display: block;
  border-radius: 8px;
  cursor: pointer;
}

.question-media-trigger.is-large {
  width: 100%;
}

.question-media-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.question-thumb-empty {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 700;
}

.question-thumb-empty.is-large,
.question-thumb-loading.is-large,
.question-video-link.is-large {
  max-height: 360px;
}

.question-thumb-loading {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.question-video-link {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(10, 10, 10, 0.96);
  display: grid;
  place-items: center;
  color: rgba(242, 242, 242, 0.48);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.question-media-preview-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 242, 242, 0.72);
  font-size: 0.74rem;
  line-height: 1;
  pointer-events: none;
}

.question-row-layout--compact .question-media-preview-badge {
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  font-size: 0.66rem;
}

.question-video-link:hover {
  color: rgba(242, 242, 242, 0.68);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 18, 0.94);
}

.question-video-thumb-link {
  display: block;
  overflow: hidden;
}

.question-video-inline-preview-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.question-video-inline-preview-shell.is-large {
  max-height: 360px;
}

.question-row-layout--compact .question-video-inline-badge {
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  font-size: 0.66rem;
}

.question-video-inline-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.question-video-inline-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 242, 242, 0.72);
  font-size: 0.74rem;
  line-height: 1;
}

.question-inspect-card {
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

.question-inspect-meta {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.question-inspect-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 4px;
  gap: 4px;
  align-items: start;
}

.question-inspect-game {
  font-size: 0.92rem;
}

.question-inspect-round {
  font-size: 0.98rem;
}

.question-inspect-meta-compact {
  gap: 2px;
}

.question-inspect-id {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  word-break: break-all;
}

.question-inspect-usage-head {
  padding-top: 2px;
}

.question-usage-list {
  max-height: 140px;
}

.question-inspect-usage-head,
.question-usage-list {
  display: none;
}

.question-inspect-usage-panel {
  position: relative;
  gap: 6px;
  justify-items: start;
}

.question-usage-trigger {
  display: inline-flex;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.question-usage-trigger:hover:enabled {
  background: transparent;
  color: #ff7de0;
  box-shadow: none;
  transform: none;
}

.question-usage-trigger:disabled {
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.question-usage-caption {
  font-size: 0.84rem;
  line-height: 1.3;
}

.question-usage-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(460px, calc(100vw - 96px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 9, 11, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.question-usage-popover-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.question-usage-popover-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.question-usage-popover-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: none;
}

.question-usage-popover-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
}

.question-usage-popover-list {
  max-height: 220px;
}

.question-usage-popover-game {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.question-usage-popover-game:first-child {
  padding-top: 0;
  border-top: 0;
}

.question-usage-popover-game.is-current {
  padding: 0 0 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-usage-popover-game.is-current + .question-usage-popover-game {
  border-top: 0;
  padding-top: 0;
}

.question-usage-popover-game-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.question-usage-popover-game-title {
  font-weight: 700;
}

.question-usage-current-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(177, 100, 255, 0.16);
  border: 1px solid rgba(177, 100, 255, 0.32);
  color: #d8b9ff;
  font-size: 0.72rem;
  line-height: 1.1;
}

.question-usage-popover-game-list {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.question-usage-popover-item {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.question-open-answer-editor {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.question-open-answer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-open-answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.question-open-answer-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
}

.question-open-answer-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
}

.question-open-answers-legacy {
  display: none;
}

.question-answer-preview {
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.question-answer-preview--inline {
  display: block;
  -webkit-line-clamp: 1;
  white-space: nowrap;
}

.question-answer-comment {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.25;
}

.question-options {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.question-option-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 86px;
  grid-gap: 6px;
  gap: 6px;
  align-items: center;
}

.question-option-correct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text);
}

.question-option-correct input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.media-modal-overlay {
  z-index: 1900;
}

.media-modal {
  width: min(1660px, 97vw);
  max-height: min(96vh, 1040px);
  padding: 14px;
}

.media-modal-body {
  display: grid;
  grid-gap: 0;
  gap: 0;
  justify-items: stretch;
}

.media-modal-image {
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.media-modal-video-shell {
  width: 100%;
  display: block;
}

.media-modal-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(84vh, 860px);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.media-modal-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-modal-native-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.media-library-modal {
  width: min(1480px, 98vw);
  max-height: min(94vh, 980px);
}

.media-library-layout {
  display: grid;
  grid-template-columns: minmax(380px, 430px) minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.media-library-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.media-library-upload-panel {
  min-height: 0;
}

.media-library-upload-panel .media-upload-card {
  flex: 1 1;
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.media-import-card,
.media-upload-card {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(34, 62, 152, 0.12) 0%, transparent 72%),
    rgba(255, 255, 255, 0.025);
}

.media-subtle-field {
  min-width: 0;
}

.media-subtle-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(242, 242, 242, 0.58);
  letter-spacing: 0.01em;
}

.media-import-input {
  color: rgba(170, 176, 186, 0.74);
  caret-color: rgba(220, 224, 231, 0.9);
}

.media-import-input::placeholder {
  color: rgba(150, 157, 168, 0.6);
}

.media-import-input:placeholder-shown {
  color: rgba(160, 166, 176, 0.74);
}

.media-import-input:not(:placeholder-shown) {
  color: rgba(242, 242, 242, 0.82);
}

.media-library-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
}

.media-library-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.media-library-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(242, 242, 242, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.media-library-panel-intro {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
}

.media-library-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding: 2px 6px 2px 2px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 6, 0.58);
  transition: opacity 0.16s ease;
}

.media-library-list.is-refreshing {
  opacity: 0.88;
}

.media-library-item {
  position: relative;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
  text-align: left;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px 14px 14px;
}

.media-library-item-actions {
  padding-top: 2px;
  align-items: center;
}

.media-delete-button {
  min-width: 118px;
}

.media-library-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: center;
  justify-self: end;
  grid-gap: 10px;
  gap: 10px;
  width: min(100%, 540px);
}

.media-library-toolbar select {
  width: 100%;
  min-width: 0;
}

.list-auto-load-sentinel {
  min-height: 28px;
  display: grid;
  place-items: center;
  color: rgba(242, 242, 242, 0.52);
  font-size: 0.82rem;
  line-height: 1.2;
}

.refresh-icon-button {
  font-size: 1.28rem;
  font-weight: 700;
}

.media-section-board {
  gap: 14px;
  min-height: var(--admin-workspace-height);
  height: var(--admin-workspace-height);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.media-upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.media-dropzone {
  min-height: clamp(280px, 42vh, 520px);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(520px 140px at 50% 0%, rgba(70, 85, 99, 0.2) 0%, transparent 70%),
    rgba(8, 8, 8, 0.92);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 18px;
  flex: 1 1;
  height: 100%;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.media-dropzone:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(520px 160px at 50% 0%, rgba(86, 99, 112, 0.24) 0%, transparent 72%),
    rgba(10, 10, 10, 0.96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.media-dropzone.is-active {
  border-color: rgba(18, 222, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(18, 222, 255, 0.15), 0 16px 36px rgba(0, 0, 0, 0.35);
  transform: scale(1.01);
}

.media-dropzone.is-uploading {
  cursor: progress;
  opacity: 0.94;
}

.media-dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  max-width: 320px;
}

.media-dropzone-subtitle {
  color: rgba(242, 242, 242, 0.5);
  font-size: 0.84rem;
  max-width: 320px;
  margin-top: -2px;
}

.media-upload-progress {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.media-upload-progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-upload-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(18, 222, 255, 0.9) 0%, rgba(255, 24, 211, 0.9) 100%);
  transition: width 0.16s linear;
}

.media-upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-library-item:hover {
  background: rgba(7, 28, 108, 0.95);
}

.media-library-item-preview {
  min-width: 0;
}

.media-library-item-preview-column {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.media-library-item-content {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  min-width: 0;
}

.media-library-item-header {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
  padding-right: 12px;
}

.media-library-item-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.media-library-item-usage-block {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding-top: 0;
  padding-right: 54px;
}

.media-library-item-usage-title {
  color: rgba(242, 242, 242, 0.74);
  font-size: 0.82rem;
  font-weight: 600;
}

.media-library-item-usage-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: start;
  width: calc(100% - 2px);
}

.media-library-item-usage-link {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 242, 242, 0.84);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.media-library-item-usage-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.media-library-item-usage-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 242, 242, 0.56);
  font-size: 0.8rem;
  font-weight: 600;
}

.media-library-item-usage-toggle:hover {
  color: rgba(242, 242, 242, 0.84);
}

.media-library-item-usage-empty {
  color: rgba(242, 242, 242, 0.46);
  font-size: 0.8rem;
  line-height: 1.35;
}

.media-library-item-title {
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  font-size: 0.96rem;
}

.media-library-item-meta,
.media-library-item-source {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  word-break: break-word;
  opacity: 0.62;
}

.media-library-item-source {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
}

.media-library-item-source:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.media-library-item-delete-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(120, 30, 49, 0.88);
  border: 1px solid rgba(255, 145, 169, 0.2);
  color: #ffd5de;
  font-size: 1.4rem;
  line-height: 0.85;
  padding-bottom: 2px;
}

.media-library-item-delete-button:hover {
  background: rgba(146, 39, 61, 0.96);
  border-color: rgba(255, 176, 193, 0.28);
}

.media-library-item-source a,
.question-form-preview-link,
.question-media-source a {
  color: rgba(242, 242, 242, 0.48);
}

.media-library-item-source a:hover,
.question-form-preview-link:hover,
.question-media-source a:hover {
  color: rgba(242, 242, 242, 0.72);
}

.teams-board {
  gap: 12px;
  min-height: var(--admin-workspace-height);
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.teams-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  grid-gap: 12px;
  gap: 12px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  align-items: stretch;
}

.teams-table-card,
.teams-detail-card {
  display: grid;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.teams-table-scroll {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(420px 140px at 0% 0%, rgba(28, 62, 150, 0.14) 0%, transparent 72%),
    rgba(255, 255, 255, 0.025);
}

.teams-table-scroll.is-breakdown-visible {
  background:
    radial-gradient(360px 120px at 0% 0%, rgba(28, 62, 150, 0.12) 0%, transparent 72%),
    rgba(255, 255, 255, 0.02);
}

.teams-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.teams-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.62);
  background: rgba(9, 15, 34, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  vertical-align: top;
}

.teams-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.teams-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.teams-table tbody tr.active {
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(95, 61, 128, 0.22) 0%, transparent 74%),
    rgba(255, 255, 255, 0.045);
}

.teams-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.teams-table tbody tr:last-child td {
  border-bottom: none;
}

.teams-table-rank {
  width: 78px;
  white-space: nowrap;
  font-family: Consolas, "Courier New", monospace;
  color: rgba(255, 255, 255, 0.8);
}

.teams-table-col--rank {
  width: 92px;
}

.teams-table-col--team {
  width: 420px;
}

.teams-table-col--score,
.teams-table-col--time {
  width: 120px;
}

.teams-table-col--round {
  width: 116px;
}

.teams-table-team {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 260px;
}

.teams-team-head {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.teams-team-name {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.teams-team-name-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  padding: 4px 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
}

.teams-team-delete {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 150, 150, 0.14);
  background: rgba(113, 27, 36, 0.56);
  color: #ffd9de;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
}

.teams-team-delete:hover {
  background: rgba(136, 34, 46, 0.82);
  border-color: rgba(255, 174, 174, 0.24);
  transform: none;
}

.teams-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.teams-table-score {
  white-space: nowrap;
}

.teams-members-trigger-wrap {
  position: relative;
}

.teams-members-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(160, 194, 255, 0.92);
  font: inherit;
  line-height: 1.2;
  box-shadow: none;
  text-decoration: underline;
  -webkit-text-decoration-color: rgba(160, 194, 255, 0.35);
          text-decoration-color: rgba(160, 194, 255, 0.35);
  text-underline-offset: 3px;
}

.teams-members-trigger:hover,
.teams-members-trigger.is-open {
  color: rgba(212, 227, 255, 0.98);
  -webkit-text-decoration-color: rgba(212, 227, 255, 0.56);
          text-decoration-color: rgba(212, 227, 255, 0.56);
  transform: none;
  box-shadow: none;
}

.teams-round-cell {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
  align-content: start;
}

.teams-round-column {
  white-space: nowrap;
}

.teams-round-cell-main {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.teams-round-cell-main strong {
  min-width: 12px;
}

.teams-round-heading {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.teams-round-heading strong {
  font-size: 0.76rem;
}

.teams-round-heading span {
  display: -webkit-box;
  color: rgba(242, 242, 242, 0.42);
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.teams-round-cell-meta {
  color: rgba(242, 242, 242, 0.45);
  font-size: 0.74rem;
}

.teams-empty-state {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.teams-empty-workspace {
  min-height: 0;
  height: 100%;
  border-radius: 18px;
}

.teams-empty-state-card {
  width: min(560px, 100%);
}

.teams-empty-state-card--fixed {
  width: min(720px, 100%);
  align-items: stretch;
  text-align: left;
  justify-items: stretch;
}

.teams-empty-state-head {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.teams-fixed-builder {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.teams-fixed-builder-list {
  max-height: min(44vh, 420px);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding-right: 4px;
}

.teams-fixed-builder-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.teams-fixed-builder-index {
  color: rgba(242, 242, 242, 0.52);
  font-family: Consolas, "Courier New", monospace;
}

.teams-fixed-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.teams-fixed-builder-stepper {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.teams-fixed-builder-stepper .compact-button {
  min-width: 52px;
  padding-left: 0;
  padding-right: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.teams-detail-card {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.teams-detail-head {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.teams-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.teams-detail-stat {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.teams-detail-stat-label {
  color: rgba(242, 242, 242, 0.58);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teams-detail-section {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-height: 0;
}

.teams-detail-section--fill {
  min-height: 0;
}

.teams-detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.teams-round-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.teams-round-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(280px 100px at 0% 0%, rgba(30, 62, 142, 0.12) 0%, transparent 74%),
    rgba(255, 255, 255, 0.025);
}

.teams-round-card.is-open {
  border-color: rgba(132, 171, 255, 0.18);
  background:
    radial-gradient(280px 120px at 0% 0%, rgba(56, 89, 177, 0.18) 0%, transparent 74%),
    rgba(255, 255, 255, 0.03);
}

.teams-round-toggle {
  width: 100%;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.teams-round-toggle:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.02);
}

.teams-round-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.teams-round-card-title {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.teams-round-toggle-icon {
  min-width: 26px;
  text-align: right;
  color: rgba(242, 242, 242, 0.56);
  font-size: 1.1rem;
  line-height: 1;
}

.teams-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 242, 242, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

.teams-member-badge--captain {
  background: rgba(127, 60, 136, 0.24);
  color: rgba(255, 240, 255, 0.96);
}

.teams-round-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 4px 10px;
  gap: 4px 10px;
  color: rgba(242, 242, 242, 0.72);
  font-size: 0.88rem;
}

.teams-question-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 0 12px 12px 24px;
}

.teams-question-item {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.teams-question-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.teams-question-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teams-question-points {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(94, 156, 90, 0.16);
  color: #b8f0b6;
  font-size: 0.78rem;
  font-weight: 700;
}

.teams-question-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teams-question-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
}

.teams-question-status--correct {
  background: rgba(72, 148, 78, 0.18);
  color: #baf0c0;
}

.teams-question-status--incorrect {
  background: rgba(173, 76, 76, 0.18);
  color: #ffb4b4;
}

.teams-question-status--not_answered {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 242, 242, 0.72);
}

.teams-question-time {
  color: rgba(242, 242, 242, 0.62);
}

.teams-question-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-gap: 6px 10px;
  gap: 6px 10px;
  color: rgba(242, 242, 242, 0.84);
  font-size: 0.9rem;
}

.teams-question-label {
  color: rgba(242, 242, 242, 0.48);
}

.team-members-popover {
  width: min(420px, calc(100vw - 96px));
}

.team-members-popover--floating {
  position: fixed;
  z-index: 60;
}

.team-members-popover-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.teams-members-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teams-members-trigger-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.teams-members-trigger-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.team-members-popover-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-members-popover-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.team-members-popover-item-main {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
}

.team-members-popover-item-email {
  color: rgba(242, 242, 242, 0.5);
  font-size: 0.8rem;
  word-break: break-all;
}

.team-members-popover-empty {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 0;
  text-align: left;
}

@media (max-width: 1280px) {
  .teams-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .teams-detail-stats,
  .teams-round-card-stats,
  .teams-question-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .teams-question-list {
    padding-left: 12px;
  }
}

.customers-board {
  gap: 12px;
  min-height: var(--admin-workspace-height);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.customers-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-gap: 12px;
  gap: 12px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  align-items: stretch;
}

.customer-editor-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.customer-editor-head {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.customer-editor-scroll {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.customer-brand-assets-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.customer-logo-card-head {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.customer-brand-assets-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.customer-asset-panel {
  display: block;
  min-height: 0;
}

.customer-upload-dropzone {
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.customer-upload-dropzone:hover,
.customer-upload-dropzone:focus-visible {
  border-color: rgba(143, 52, 168, 0.5);
  box-shadow: 0 0 0 1px rgba(143, 52, 168, 0.22);
}

.customer-upload-dropzone.drop-active {
  border-color: rgba(143, 52, 168, 0.72);
  box-shadow: 0 0 0 1px rgba(143, 52, 168, 0.34);
}

.customer-logo-preview {
  min-height: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top, rgba(20, 32, 92, 0.34), transparent 58%),
    rgba(8, 10, 18, 0.92);
}

.customer-logo-preview--compact {
  min-height: 180px;
  height: 180px;
}

.customer-logo-image {
  max-width: 100%;
  max-height: 148px;
  object-fit: contain;
}

.customer-logo-empty-state {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  width: 100%;
  padding: 0 8px;
  justify-items: center;
  text-align: center;
}

.customer-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
}

.customer-theme-card {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
}

.customer-theme-card--classic {
  background:
    radial-gradient(circle at top left, rgba(88, 58, 144, 0.18), transparent 48%),
    rgba(255, 255, 255, 0.03);
}

.customer-theme-card--active {
  border-color: rgba(143, 52, 168, 0.72);
  background:
    linear-gradient(180deg, rgba(129, 41, 155, 0.34), rgba(92, 28, 112, 0.28)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 1px rgba(143, 52, 168, 0.28);
}

.customer-theme-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-theme-card-button {
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.customer-theme-card-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.customer-theme-card-button.customer-theme-card--active:hover {
  border-color: rgba(143, 52, 168, 0.78);
  background:
    linear-gradient(180deg, rgba(129, 41, 155, 0.38), rgba(92, 28, 112, 0.32)),
    rgba(255, 255, 255, 0.04);
}

.customer-theme-card-button:focus-visible {
  outline: 2px solid rgba(143, 52, 168, 0.75);
  outline-offset: 2px;
}

.customer-theme-source-preview {
  min-height: 180px;
  height: 180px;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top, rgba(32, 46, 120, 0.28), transparent 56%),
    rgba(8, 10, 18, 0.82);
}

.customer-theme-source-preview--wide {
  min-height: 180px;
  height: 180px;
}

.customer-theme-source-image {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
}

.customer-theme-source-empty-state {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  width: 100%;
  min-height: 0;
  height: 100%;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.customer-theme-source-empty-state--inline {
  height: auto;
  align-content: start;
  justify-items: start;
  text-align: left;
}

.customer-theme-source-preview-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  grid-gap: 12px;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: start;
  align-content: start;
}

.customer-theme-source-preview-layout > * {
  min-width: 0;
}

.customer-asset-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 11, 11, 0.78);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.customer-asset-remove:hover {
  background: rgba(120, 28, 52, 0.88);
  border-color: rgba(255, 120, 150, 0.42);
}

.customer-asset-remove--inline {
  position: static;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  font-size: 1rem;
}

.customer-theme-source-files {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  align-content: start;
}

.customer-theme-source-files--inside {
  width: 100%;
  align-self: start;
  min-height: 0;
  align-content: start;
  grid-auto-rows: min-content;
  max-height: 100%;
  overflow: auto;
  padding-right: 2px;
}

.customer-theme-source-file {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.customer-theme-source-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-theme-swatches {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.customer-theme-field {
  position: relative;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(5, 7, 12, 0.44);
}

.customer-theme-card-button .customer-theme-field {
  cursor: pointer;
}

.customer-theme-field--readonly {
  background: rgba(5, 7, 12, 0.28);
}

.customer-theme-field-label {
  color: rgba(242, 242, 242, 0.72);
  font-size: 0.82rem;
}

.customer-theme-field-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-height: 36px;
}

.customer-theme-swatch-chip {
  display: block;
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.customer-theme-color-trigger {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  cursor: pointer;
}

.customer-theme-color-trigger--static {
  cursor: default;
}

.customer-theme-color-trigger:focus-within {
  outline: none;
}

.customer-theme-color-trigger:focus-within .customer-theme-swatch-chip--fill {
  box-shadow:
    0 0 0 2px rgba(143, 52, 168, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.customer-theme-color-native-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.customer-theme-swatch-chip--fill {
  width: 100%;
  height: 100%;
}

.customer-theme-hex-input,
.customer-theme-hex-value {
  min-width: 0;
}

.customer-theme-hex-input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  line-height: 1.2;
}

.customer-theme-hex-input:focus {
  outline: none;
  border-color: rgba(143, 52, 168, 0.72);
  box-shadow: 0 0 0 1px rgba(143, 52, 168, 0.22);
}

.customer-theme-hex-input--readonly {
  cursor: default;
}

.customer-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.customer-editor-actions > button {
  flex: 1 1;
  min-width: 0;
}

.customer-color-picker-overlay {
  z-index: 5000;
}

.customer-color-picker-modal {
  position: relative;
  z-index: 5001;
  width: min(720px, calc(100vw - 32px));
}

.customer-native-color-input {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.customer-color-picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-gap: 16px;
  gap: 16px;
}

.customer-color-picker-surface {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: crosshair;
  background-image:
    linear-gradient(to top, black, transparent),
    linear-gradient(to right, white, transparent);
}

.customer-color-picker-surface-marker,
.customer-color-picker-hue-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.customer-color-picker-hue {
  position: relative;
  height: 18px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
}

.customer-color-picker-hue-marker {
  top: 50%;
}

.customer-color-picker-preview {
  min-height: 96px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-color-picker-actions {
  justify-content: flex-start;
}

.customers-list {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

.customer-list-item {
  min-height: 132px;
  width: 100%;
  min-width: 0;
}

.customer-list-item-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
}

.customer-list-item-logo {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(10, 12, 18, 0.92);
}

.customer-list-item-logo:hover,
.customer-list-item-logo:focus-visible {
  border-color: rgba(143, 52, 168, 0.5);
  box-shadow: 0 0 0 1px rgba(143, 52, 168, 0.24);
}

.customer-list-item-logo-image {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.customer-list-item-logo-empty {
  color: rgba(242, 242, 242, 0.55);
  font-size: 0.8rem;
  text-align: center;
}

.customer-list-item-content {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-width: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .app-admin {
    grid-template-columns: 1fr;
  }

  .admin-aside {
    position: static;
  }

  .admin-menu {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .rounds-title-row {
    grid-template-columns: 1fr;
  }

  .rounds-create-row {
    grid-template-columns: 1fr;
  }

  .games-list-filters {
    grid-template-columns: 1fr 1fr;
  }

  .game-modal-inline-grid,
  .game-modal-inline-grid--double,
  .game-modal-customer-create-row,
  .customers-workspace,
  .customer-brand-assets-grid,
  .customer-theme-grid {
    grid-template-columns: 1fr;
  }

  .question-option-row {
    grid-template-columns: 1fr;
  }

  .question-modal {
    width: min(980px, 98vw);
  }

  .question-modal-layout {
    grid-template-columns: 1fr;
  }

  .media-library-layout {
    grid-template-columns: 1fr;
  }

  .media-library-header-row {
    grid-template-columns: 1fr;
  }

  .media-library-toolbar {
    grid-template-columns: 1fr;
    width: 100%;
    justify-self: stretch;
  }

  .media-library-item {
    padding-right: 14px;
  }

  .media-library-item-main {
    grid-template-columns: 1fr;
  }

  .question-toolbar-row {
    grid-template-columns: 1fr 1fr;
  }

  .question-search-row {
    grid-template-columns: 1fr;
  }

  .question-row-layout {
    grid-template-columns: 1fr;
  }

  .question-row-layout.no-preview {
    grid-template-columns: 1fr;
  }

  .customer-list-item-body {
    grid-template-columns: 1fr;
  }
}

