/* —— sidebar —— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.sidebar-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.sidebar-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.shell.is-sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.shell.is-sidebar-collapsed .brand-text,
.shell.is-sidebar-collapsed .nav-label,
.shell.is-sidebar-collapsed .chip-text {
  display: none;
}

.shell.is-sidebar-collapsed .sidebar-top {
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.shell.is-sidebar-collapsed .brand {
  justify-content: center;
}

.shell.is-sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 10px;
}

.shell.is-sidebar-collapsed .sidebar-foot {
  display: flex;
  justify-content: center;
  padding: 0;
}

.shell.is-sidebar-collapsed .chip {
  padding: 8px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-group {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-group-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 28px;
}

.nav-group-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-group-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-group-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.18s var(--ease);
}

.nav-group.is-open .nav-group-chevron {
  transform: rotate(0deg);
}

.nav-group:not(.is-open) .nav-group-chevron {
  transform: rotate(-90deg);
}

.nav-group-items {
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.nav-group:not(.is-open) .nav-group-items {
  display: none;
}

.nav-group.has-active .nav-group-toggle {
  color: var(--accent);
}

.nav-item--nested {
  padding-left: 14px;
}

.shell.is-sidebar-collapsed .nav-group {
  margin-top: 4px;
  padding-top: 6px;
}

.shell.is-sidebar-collapsed .nav-group-toggle {
  display: none;
}

.shell.is-sidebar-collapsed .nav-group-items {
  display: grid !important;
}

.shell.is-sidebar-collapsed .nav-item--nested {
  padding-left: 10px;
  justify-content: center;
}

.nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  min-height: var(--tap);
  border-radius: 9px;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-item.active .nav-ico {
  opacity: 1;
}

.sidebar-foot {
  margin-top: auto;
  padding: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-family: var(--mono);
  font-weight: 500;
  border: 1px solid var(--border);
  letter-spacing: 0;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.chip.ok {
  background: var(--ok-dim);
  color: var(--ok);
  border-color: rgba(62, 207, 142, 0.22);
}

.chip.err {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(240, 113, 120, 0.22);
}

.chip.busy {
  background: var(--busy-dim);
  color: var(--busy);
  border-color: rgba(230, 184, 77, 0.22);
}

.chip.busy .chip-dot {
  animation: chipPulse 1.2s ease-out infinite;
}

@keyframes chipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 184, 77, 0.4);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(230, 184, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 184, 77, 0);
  }
}

.main {
  padding: 28px clamp(18px, 2.5vw, 40px) 48px;
  min-width: 0;
  max-width: 1120px;
}

.topbar {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.tracker-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tracker-filters-bar.hidden,
.tracker-filters-bar[hidden] {
  display: none !important;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card-hint {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.setup-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.setup-right {
  display: flex;
  flex: 1 1 280px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
  transition:
    border-color 0.14s var(--ease),
    box-shadow 0.14s var(--ease);
}

.input-group:focus-within {
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.input-group input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.input-group input::placeholder {
  color: var(--muted);
}

.search-group {
  flex: 1 1 240px;
  max-width: 380px;
}

.search-group input {
  padding-left: 6px;
  padding-right: 6px;
}

.addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.addon.start {
  padding-left: 11px;
}

.addon.end {
  padding-right: 6px;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.amount-group {
  flex: 1 1 88px;
  min-width: 84px;
}

.combo {
  flex: 1 1 116px;
  min-width: 104px;
}

.combo--block {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.combo input[readonly] {
  cursor: pointer;
}

.combo-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  max-height: 240px;
  overflow: auto;
}

.combo-menu--rich {
  max-height: none;
  padding: 6px;
}

.combo-menu--rich li {
  display: grid;
  gap: 1px;
  padding: 10px 11px;
}

.combo-menu--rich strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.combo-menu--rich small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.combo-menu--rich li:hover strong,
.combo-menu--rich li.active strong {
  color: var(--accent);
}

.combo-menu li {
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.combo-menu li:hover,
.combo-menu li.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.check-field {
  align-content: end;
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
}

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

.girl-caption-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.girl-caption-row .text-input {
  flex: 1 1 220px;
  min-width: 0;
}

.girl-caption-row.is-off .text-input {
  opacity: 0.45;
}

.field--full {
  grid-column: 1 / -1;
}

.text-input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  letter-spacing: -0.01em;
  transition:
    border-color 0.14s var(--ease),
    box-shadow 0.14s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.text-input:focus,
.field textarea:focus {
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  min-height: var(--tap);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  text-decoration: none;
}

.btn--wide {
  width: 100%;
  max-width: 320px;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn.ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn.sm {
  padding: 7px 11px;
  font-size: 12.5px;
  min-height: 34px;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn.is-loading {
  cursor: wait;
  pointer-events: none;
}

.btn.is-loading .btn-label {
  opacity: 0;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.65s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
  position: absolute;
}

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

.error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hashtag-packs {
  display: grid;
  gap: 8px;
}

.hashtag-pack {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.hashtag-pack-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hashtag-pack-name {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 5px;
  border-radius: 6px;
}

.hashtag-pack-name:hover,
.hashtag-pack-name:focus {
  border-color: var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.hashtag-copy-all {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 28px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hashtag-copy-all:hover:not(:disabled) {
  border-color: rgba(91, 140, 255, 0.35);
  color: var(--accent);
}

.hashtag-copy-all.is-copied {
  border-color: rgba(62, 207, 142, 0.35);
  background: var(--ok-dim);
  color: var(--ok);
}

.hashtag-pack-delete {
  appearance: none;
  border: 1px solid rgba(240, 113, 120, 0.35);
  background: transparent;
  color: #ff9aa0;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 28px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hashtag-pack-delete:hover {
  border-color: var(--red);
  background: var(--red-dim);
  color: #fff;
}

.hashtag-pack-empty {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
}

.card-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hashtag-pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hashtag-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 9px;
  min-height: 30px;
  border-radius: 999px;
  cursor: pointer;
}

.hashtag-chip:hover {
  border-color: rgba(91, 140, 255, 0.35);
  background: var(--accent-dim);
}

.hashtag-chip.is-copied {
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--ok);
}

.hashtag-chip--delete {
  border-color: rgba(240, 113, 120, 0.35);
  color: #ff9aa0;
}

.hashtag-chip--delete:hover {
  border-color: var(--red);
  background: var(--red-dim);
}

.hashtag-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hashtag-add-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px !important;
  font-size: 12.5px !important;
  height: 34px;
}

.hashtag-add-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.hashtag-add-btn:hover {
  background: var(--accent-hover);
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 42px;
  min-height: 34px;
}

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

.lang-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.danger,
#hashtagDeleteMode.danger {
  color: #fff;
  border-color: transparent;
  background: var(--red);
}

.btn.danger:hover,
#hashtagDeleteMode.danger:hover {
  background: #e05a62;
  border-color: transparent;
  color: #fff;
}

.hashtag-packs.is-delete-mode .hashtag-pack {
  border-color: rgba(240, 113, 120, 0.22);
}

.meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  word-break: break-all;
}

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

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(91, 140, 255, 0.18);
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.badge.error {
  color: var(--red);
}

.badge.queued,
.badge.running,
.badge.waiting_agent,
.badge.agent_running {
  color: var(--busy);
}

.badge.done {
  color: var(--ok);
}

.empty {
  color: var(--muted);
  padding: 6px 0;
  font-size: 13px;
}

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

@media (min-width: 700px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.game-card {
  position: relative;
  width: 100%;
  aspect-ratio: 252 / 344;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #090a0d;
}

.game-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.game-card.selected {
  border-color: rgba(91, 140, 255, 0.7);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.game-card:hover img {
  transform: scale(1.04);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 10px 14px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
}

.game-card:hover .game-card-overlay,
.game-card.selected .game-card-overlay {
  opacity: 1;
}

.game-card-overlay h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.game-card.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.mobile-dock {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(8px + var(--safe-b));
  z-index: 50;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(15, 17, 21, 0.94);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dock-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 3px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.dock-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.toast {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  animation: toastIn 0.22s var(--ease);
}

.toast.ok {
  border-color: rgba(62, 207, 142, 0.3);
  background: #12201a;
  color: #c9f5df;
}

.toast.err {
  border-color: rgba(240, 113, 120, 0.3);
  background: #241416;
  color: #ffd0d3;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .shell,
  .shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar .nav,
  .sidebar-foot,
  .sidebar-toggle {
    display: none !important;
  }

  .sidebar-top {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-text small {
    display: none;
  }

  .mobile-dock {
    display: grid;
  }

  .main {
    padding: 16px 12px calc(20px + var(--dock-h) + var(--safe-b));
    max-width: none;
  }

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

  .setup-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-group {
    max-width: none;
  }

  .setup-right {
    flex-wrap: wrap;
  }

  .btn--wide {
    max-width: none;
  }

  .card--launch .form-actions {
    position: sticky;
    bottom: calc(var(--dock-h) + var(--safe-b) + 6px);
    z-index: 15;
    padding-top: 8px;
    background: linear-gradient(180deg, transparent, var(--bg) 30%);
  }

  .toast-host {
    bottom: calc(84px + var(--safe-b));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


