:root {
  --bg: #09111d;
  --bg-soft: #101b2d;
  --card: rgba(15, 24, 39, 0.86);
  --card-strong: rgba(11, 18, 30, 0.96);
  --muted: #9eb2c9;
  --text: #edf4ff;
  --line: rgba(158, 178, 201, 0.16);
  --accent: #7df9c1;
  --accent-strong: #2ed39a;
  --warn: #ffc857;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(125, 249, 193, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(75, 146, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #09111d 0%, #0b1322 45%, #111c2f 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  padding: 24px;
}

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

.shell {
  max-width: 1480px;
  margin: 0 auto;
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 120;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 14, 25, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.toast strong,
.toast p {
  margin: 0;
}

.toast p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.toast-success {
  border-color: rgba(125, 249, 193, 0.36);
}

.toast-error {
  border-color: rgba(255, 110, 110, 0.42);
}

.toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.toolbar,
.panel,
.card,
.empty,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 14, 25, 0.82);
  box-shadow: var(--shadow);
}

.toolbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  gap: 18px;
  padding: 18px;
  margin-bottom: 20px;
  backdrop-filter: blur(18px);
}

.auth-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
}

.auth-copy {
  margin: 10px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.brand h1,
.auth-card h1,
.panel h2,
.empty h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.panel h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.pills,
.actions,
.session-bar,
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.9rem;
}

.pill strong {
  color: var(--text);
}

.pill-wide {
  justify-content: flex-start;
  min-width: min(460px, 100%);
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters,
.control-grid,
.user-card-grid,
.catalog-grid {
  display: grid;
  gap: 14px;
}

.filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 20px;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 20px;
}

.field,
.stack {
  display: grid;
  gap: 10px;
}

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.search,
.select,
.reply-edit {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-strong);
  color: var(--text);
}

.search,
.select {
  min-height: 48px;
  padding: 0 14px;
}

.reply-edit {
  min-height: 136px;
  margin-top: 12px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

.reply-edit-compact {
  min-height: 96px;
}

.btn,
.approve {
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn {
  min-height: 46px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn.primary,
.approve {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #072417;
  font-weight: 700;
}

.btn.active {
  border-color: rgba(125, 249, 193, 0.38);
  box-shadow: inset 0 0 0 1px rgba(125, 249, 193, 0.18);
}

.btn-block,
.approve {
  width: 100%;
}

.approve {
  min-height: 46px;
  margin-top: 12px;
}

.approve.outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn:hover,
.approve:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.approve:disabled,
.select:disabled,
.search:disabled,
.reply-edit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.status,
.hint,
.user-card p,
.empty p {
  margin: 0;
  color: var(--muted);
}

.status-auth {
  margin-top: 18px;
}

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

.panel,
.card,
.empty {
  padding: 18px;
  margin-bottom: 20px;
}

.card-header,
.user-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.id {
  color: var(--muted);
  font-size: 0.8rem;
}

.stars {
  margin-top: 4px;
  font-size: 0.95rem;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(158, 178, 201, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
}

.badge.risky {
  background: rgba(255, 200, 87, 0.12);
  color: var(--warn);
}

.comment {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  white-space: pre-wrap;
  line-height: 1.5;
}

.user-list {
  display: grid;
  gap: 12px;
}

.hero {
  margin-bottom: 20px;
}

.hero-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.location-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.location-card:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 193, 0.26);
}

.location-card strong {
  font-size: 1rem;
}

.location-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.location-card.selected {
  border-color: rgba(125, 249, 193, 0.46);
  background: rgba(125, 249, 193, 0.08);
}

.user-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.review-shell {
  display: grid;
  gap: 18px;
}

.review-header {
  display: grid;
  gap: 18px;
}

.user-card h3 {
  margin: 0 0 4px;
}

.empty {
  display: grid;
  gap: 10px;
  min-height: 220px;
  place-content: center;
  text-align: center;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 20, 0.74);
  backdrop-filter: blur(10px);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading.show {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

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

@media (max-width: 980px) {
  body {
    padding: 16px;
  }

  .toast-stack {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .toolbar {
    top: 10px;
    padding: 16px;
  }

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

  .pill-wide {
    min-width: 0;
  }
}
