/* ── style-worldview.css ──────────────────────────────────────────────────────
   Worldview management page. Depends on style.css for :root variables.
*/

/* ── Top bar ── */
#wv-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(9, 9, 13, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

#wv-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
#wv-back:hover {
  color: var(--text);
  border-color: var(--accent2);
}

#wv-title-area {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#wv-title-display {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#wv-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  padding: 6px 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
#wv-back:hover {
  color: var(--accent2);
  border-color: var(--accent2);
}

/* ── Tabs ── */
/* ── Tabs ── */
#wv-tabs-row {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
}
#wv-tabs-row::-webkit-scrollbar {
  height: 0;
}

.wv-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
  margin-bottom: -1px;
}
.wv-tab:hover {
  color: var(--text);
}
.wv-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}

/* ── Main content area ── */
#wv-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 100px;
}

.wv-panel {
  animation: wvFadeIn 0.2s ease;
}
@keyframes wvFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── World settings panel ── */
.wv-world-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.wv-world-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wv-field-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wv-field-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.wv-field-value.empty {
  color: var(--muted);
  font-style: italic;
}

.wv-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wv-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(77, 184, 176, 0.15);
  border: 1px solid rgba(77, 184, 176, 0.3);
  color: var(--accent2);
}

.wv-outline-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 20px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.wv-outline-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

.wv-delete-world-btn {
  margin-top: 10px;
}

/* ── Worldview inject switch (in topbar) ── */
.wv-switch-btn {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(60, 60, 80, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.wv-switch-btn::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--muted);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition:
    transform 0.25s ease,
    background 0.2s;
}
.wv-switch-btn[aria-pressed="true"] {
  background: rgba(77, 184, 176, 0.35);
  border-color: var(--accent2);
}
.wv-switch-btn[aria-pressed="true"]::after {
  transform: translateX(16px);
  background: var(--accent2);
}
.wv-inject-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
}

/* ── Entry grid ── */
.wv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.wv-entry-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.wv-entry-toolbar-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
}

.wv-entry-toolbar-hint {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.wv-entry-toolbar-count {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--accent2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

.wv-entry-add-row {
  margin-top: 14px;
}

.wv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.wv-page-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
}

.wv-page-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent2);
}

.wv-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wv-page-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Entry card */
.wv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.wv-card:hover {
  border-color: rgba(77, 184, 176, 0.4);
}

.wv-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wv-card-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wv-card-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wv-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wv-inject-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.wv-inject-chip:hover:not(:disabled) {
  color: var(--accent2);
  border-color: var(--accent2);
}

.wv-inject-chip.is-active {
  color: var(--accent2);
  border-color: rgba(77, 184, 176, 0.45);
  background: rgba(77, 184, 176, 0.12);
}

.wv-inject-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wv-icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition:
    color 0.15s,
    background 0.15s;
  line-height: 1;
}
.wv-icon-btn:hover {
  color: var(--text);
  background: var(--surface2);
}
.wv-icon-btn--danger:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.wv-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.77rem;
  color: var(--accent2);
  opacity: 0.85;
}

.wv-card-preview {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Add card */
.wv-add-card {
  background: none;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  min-height: 100px;
  text-align: center;
}
.wv-add-card:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(34, 211, 238, 0.04);
}
.wv-add-icon {
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
}

/* Empty state */
.wv-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 32px 0;
  opacity: 0.6;
}

/* Loading placeholder */
.wv-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 32px 0;
  animation: wvPulse 1.4s ease infinite;
}
@keyframes wvPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ── FAB ── */
#wv-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  z-index: 200;
}
#wv-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.6);
}

/* ── Modals ── */
.wv-fab-menu {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 210;
  width: 190px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.wv-fab-menu[hidden] {
  display: none;
}

.wv-fab-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}

.wv-fab-menu-item:hover:not(:disabled) {
  background: var(--surface2);
}

.wv-fab-menu-item--danger {
  color: #f87171;
}

.wv-fab-menu-item:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.wv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.wv-overlay[hidden] {
  display: none !important;
}
.wv-overlay.open {
  opacity: 1;
}

.wv-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wv-modal::-webkit-scrollbar {
  width: 4px;
}
.wv-modal::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.wv-modal--sm {
  width: min(340px, 100%);
  padding: 28px 24px;
}

.wv-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.wv-modal-close:hover {
  color: var(--text);
}

.wv-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  padding-right: 24px;
}

/* ── Forms ── */
.wv-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wv-form-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.wv-form-label:first-child {
  margin-top: 0;
}

.wv-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.wv-input::placeholder {
  color: var(--muted);
}
.wv-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

select.wv-input {
  cursor: pointer;
  font-family: var(--font-body);
}
select.wv-input option {
  background: var(--surface2);
}

.wv-textarea {
  resize: vertical;
  line-height: 1.7;
}

.wv-form-error {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #f87171;
  min-height: 0;
  display: none;
}
.wv-form-error.visible {
  display: block;
}

/* ── Buttons ── */
.wv-primary-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--glow);
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.wv-primary-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.wv-primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wv-btn-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.wv-cancel-btn {
  padding: 10px 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.wv-cancel-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.wv-danger-btn {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  color: #f87171;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.wv-danger-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

.wv-delete-msg {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Toast ── */
.wv-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #134e26;
  color: #86efac;
  border: 1px solid #166534;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  white-space: nowrap;
}
.wv-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wv-toast--error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #7f1d1d;
}

/* Hide number-input spinner arrows */
.wv-input[type="number"]::-webkit-inner-spin-button,
.wv-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wv-input[type="number"] {
  -moz-appearance: textfield;
}

/* ── Create-worldview hero panel ── */
.wv-create-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 20px;
  gap: 16px;
}
.wv-create-icon {
  font-size: 3.2rem;
  line-height: 1;
}
.wv-create-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.04em;
}
.wv-create-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 380px;
  margin: 0;
}
.wv-create-btn {
  max-width: 200px;
  margin-top: 8px;
}

/* ── Chapter / Outline tab ── */
.wv-ch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition:
    border-color 0.2s,
    opacity 0.15s;
  margin-bottom: 6px;
  cursor: default;
}
.wv-ch-card:hover {
  border-color: rgba(77, 184, 176, 0.35);
}
.wv-ch-card[draggable="true"] {
  cursor: grab;
}
.wv-ch-card[draggable="true"]:active {
  cursor: grabbing;
  opacity: 0.75;
}
.wv-ch-card.wv-ch-locked {
  cursor: default;
}
.wv-ch-card.wv-ch-locked .wv-ch-drag {
  cursor: default;
  opacity: 0.35;
  visibility: hidden;
}

.wv-ch-add-card {
  width: 100%;
  min-height: 48px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border-width: 1px;
  border-radius: 10px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}
.wv-ch-add-card .wv-add-icon {
  width: 16px;
  flex-shrink: 0;
  font-size: 0.9rem;
  text-align: center;
}

.wv-ch-drag {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  cursor: grab;
  flex-shrink: 0;
  padding-top: 1px;
  user-select: none;
}

.wv-ch-icon {
  font-size: 0.9rem;
  line-height: 1.6;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.wv-ch-body {
  flex: 1;
  min-width: 0;
}

.wv-ch-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wv-ch-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wv-ch-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wv-ch-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 7px;
  line-height: 1.6;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.wv-ch-btn:hover {
  color: var(--text);
  background: var(--surface2);
  border-color: rgba(77, 184, 176, 0.4);
}

.wv-ch-done {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}
.wv-ch-done:hover {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.6);
}

.wv-ch-setcur {
  color: var(--accent);
  border-color: rgba(77, 184, 176, 0.4);
}
.wv-ch-setcur:hover {
  color: var(--accent);
  background: rgba(77, 184, 176, 0.1);
}

.wv-ch-del:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
}

/* ── Chapter drag hint ── */
.wv-ch-drag-hint {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 4px 10px;
  margin: 0;
}

/* ── Chapter example block ── */
.wv-ch-example-block {
  margin-top: 20px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.wv-ch-example-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.6;
}
.wv-ch-example {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  margin-bottom: 5px;
}

/* ── Responsive ── */
/* -- Chapter generations modal -- */
.wv-modal--lg {
  width: min(700px, 100%);
}

.wv-generations-content {
  min-height: 180px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 12px;
  background: var(--surface2);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.wv-generations-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.wv-generations-open-btn {
  background: rgba(77, 184, 176, 0.15);
  border: 1px solid rgba(77, 184, 176, 0.4);
  border-radius: 8px;
  color: var(--accent2);
  font-family: var(--font-body);
  font-size: 0.83rem;
  padding: 7px 18px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}

.wv-generations-open-btn:hover:not(:disabled) {
  background: rgba(77, 184, 176, 0.28);
  border-color: rgba(77, 184, 176, 0.65);
}

.wv-generations-open-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wv-btn-row--right {
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 480px) {
  #wv-main {
    padding: 20px 14px 100px;
  }
  .wv-grid {
    grid-template-columns: 1fr;
  }
  .wv-entry-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .wv-entry-toolbar-count {
    align-self: flex-start;
  }
  .wv-modal {
    padding: 22px 16px 20px;
  }
  .wv-ch-title {
    white-space: normal;
  }
  .wv-generations-content {
    max-height: 40vh;
  }
}
