:root {
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --ink: #f4f1ea;
  --ink-dim: #a9a49b;
  --ink-faint: #55524c;
  --accent: #e8b04b;
  --accent-soft: rgba(232, 176, 75, 0.14);
  --danger: #e5484d;
  --line: rgba(244, 241, 234, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(232, 176, 75, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #0a0a0b;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ==================== CAROUSEL (TV-first) ==================== */

.carousel {
  position: fixed;
  inset: 0;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
  will-change: opacity, transform;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.25) 38%,
    rgba(0, 0, 0, 0) 62%
  );
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  left: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(6rem, 14vh, 11rem);
  right: clamp(1.5rem, 5vw, 5rem);
  max-width: 62rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease) 0.35s, transform 0.9s var(--ease) 0.35s;
}

.slide.is-active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}

.slide-index {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 1rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.1rem;
}

.slide-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}

/* Progress bar */
.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 6;
  background: rgba(244, 241, 234, 0.14);
}

.progress__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

/* Dots */
.dots {
  position: absolute;
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
  pointer-events: auto;
  z-index: 5;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.34);
  transition: all 0.4s var(--ease);
}

.dot:hover {
  background: rgba(244, 241, 234, 0.7);
}

.dot.is-active {
  background: var(--accent);
  width: 30px;
  border-radius: 999px;
}

/* Empty state */
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2rem;
}

.empty__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 300;
}

.empty__text {
  color: var(--ink-dim);
  font-size: 0.95rem;
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== ADMIN LAYOUT ==================== */

body.admin {
  overflow: auto;
}

.admin-shell {
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.admin-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.admin-title span {
  color: var(--accent);
  font-style: italic;
}

.admin-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--ink-dim);
  background: rgba(244, 241, 234, 0.05);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
}

.btn--primary:hover {
  background: #f2c05f;
  border-color: #f2c05f;
}

.btn--danger {
  color: var(--danger);
  border-color: rgba(229, 72, 77, 0.35);
}

.btn--danger:hover {
  background: rgba(229, 72, 77, 0.12);
  border-color: var(--danger);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Icon buttons (card actions) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 241, 234, 0.03);
  color: var(--ink-dim);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 176, 75, 0.08);
  outline: none;
}

.icon-btn--danger:hover,
.icon-btn--danger:focus-visible {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(229, 72, 77, 0.1);
}

/* Manual upload */
.upload-status {
  margin: 0 0 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  display: grid;
  gap: 0.5rem;
}

.upload-status__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-status__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.upload-status__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

#userDashboard.is-file-over {
  outline: 2px dashed var(--accent);
  outline-offset: -12px;
  border-radius: 18px;
}

/* ==================== LOGIN ==================== */

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem 2.2rem;
  display: grid;
  gap: 1.4rem;
}

.login-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.login-header p {
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  background: #0e0e10;
  border-radius: 999px;
  padding: 0.35rem;
}

.login-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.login-tab:hover {
  color: var(--ink);
}

.login-tab.is-active {
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
}

.login-tab svg {
  width: 16px;
  height: 16px;
}

.login-panels {
  margin-top: 0.5rem;
}

.login-panel {
  display: none;
  animation: panel-in 0.3s var(--ease);
}

.login-panel.is-active {
  display: block;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field input,
.field textarea {
  width: 100%;
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.25s;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.error-text {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.1em;
}

/* ==================== SUPER-ADMIN GRID ==================== */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.image-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  cursor: grab;
}

.image-card:hover {
  border-color: rgba(244, 241, 234, 0.28);
}

.image-card.is-dragging {
  opacity: 0.4;
}

.image-card.is-drop-target {
  border-color: var(--accent);
}

.image-card__thumb-link {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.image-card__thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #1c1c20;
  transition: transform 0.45s var(--ease);
}

.image-card__thumb-link:hover .image-card__thumb {
  transform: scale(1.05);
}

.image-card__open {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 10, 11, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.image-card__thumb-link:hover .image-card__open {
  opacity: 1;
  transform: translateY(0);
}

.image-card__body {
  padding: 0.85rem 0.95rem 1rem;
  display: grid;
  gap: 0.55rem;
}

.image-card__alt {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card__url {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s;
}

.image-card__url:hover {
  color: var(--accent);
  text-decoration: underline;
}

.image-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.image-card__order {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
}

/* Drag handle (only for draggable image cards, not user cards) */
.image-card[draggable="true"]::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b04b' stroke-width='1.5'%3E%3Cpath d='M9 6h6M9 12h6M9 18h6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  cursor: grab;
  z-index: 10;
  pointer-events: none;
}

.image-card[draggable="true"]:hover::before {
  opacity: 0.6;
}

.image-card[draggable="true"]:active::before,
.image-card.is-dragging::before {
  opacity: 1;
  cursor: grabbing;
}

/* Responsive previews in image card */
.image-card__previews {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  background: rgba(10, 10, 11, 0.5);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.preview-item {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.3rem;
  min-width: 70px;
}

.preview-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* User card specific */
.user-card__preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.8rem 0.8rem 0;
}

.user-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e0e10;
}

.user-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-card__nophoto {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 0.6rem 0;
}

.user-card__name {
  font-weight: 600;
}

.user-card__email {
  word-break: break-all;
}

.user-card__id {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
}

.user-card__meta {
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* ==================== FORM FIELDS ==================== */

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field input,
.field textarea {
  width: 100%;
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.25s;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

/* ==================== MODAL ==================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem;
  display: grid;
  gap: 1.2rem;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.modal--wide {
  max-width: 640px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.modal__section {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.2rem;
}

.copy-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.copy-code {
  flex: 1;
  min-width: 0;
  margin: 0;
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-code--tall {
  max-height: 320px;
  overflow-y: auto;
  white-space: pre;
}

.hint code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
}

/* ==================== TOAST ==================== */

.toast-wrap {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 300;
  display: grid;
  gap: 0.6rem;
}

.toast {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  min-width: 240px;
  animation: toast-in 0.35s var(--ease);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.toast--error {
  border-left-color: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ==================== PREVIEWS IN IMAGE CARD ==================== */

.image-card__previews {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  background: rgba(10, 10, 11, 0.5);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.preview-item {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.3rem;
  min-width: 70px;
}

.preview-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* TV / Large Desktop (1440px+) - Primary */
@media (min-width: 1440px) {
  .slide-title {
    font-size: clamp(3rem, 4vw, 5rem);
  }
  .slide-index {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
  }
  .slide-caption {
    left: clamp(2rem, 6vw, 6rem);
    right: clamp(2rem, 6vw, 6rem);
    bottom: clamp(7rem, 16vh, 12rem);
  }
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .admin-shell {
    max-width: 1600px;
  }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .slide-caption {
    bottom: 5rem;
  }
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .slide-caption {
    bottom: 5rem;
    left: 1.2rem;
    right: 1.2rem;
  }
  .slide-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
  .slide-index {
    font-size: 0.65rem;
  }
  .dots {
    bottom: 1.2rem;
    gap: 0.5rem;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .dot.is-active {
    width: 24px;
  }
  .login-card {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  .login-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }
  .login-tab {
    justify-content: center;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-actions {
    width: 100%;
    justify-content: stretch;
  }
  .btn {
    flex: 1;
    text-align: center;
  }
  .admin-shell {
    padding: 1.5rem;
  }
  .image-card__previews {
    gap: 0.3rem;
    padding: 0.4rem;
  }
  .preview-item {
    flex: 0 0 65px;
    min-width: 60px;
  }
  .preview-label {
    font-size: 0.5rem;
  }
}

/* Ultra-wide (21:9) specific */
@media (min-aspect-ratio: 21/9) {
  .slide-caption {
    left: clamp(3rem, 8vw, 8rem);
    right: clamp(3rem, 8vw, 8rem);
    max-width: 50rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== HINTS & ERRORS ==================== */

.hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.error-text {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.skeleton {
  background: linear-gradient(
    100deg,
    var(--bg-elev) 30%,
    #1b1b20 50%,
    var(--bg-elev) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 14px;
  height: 210px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}