@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0e1a24;
  --bg-2: #1a2a3a;
  --card: #0f2230;
  --accent: #ffb347;
  --accent-2: #7dd3fc;
  --text: #e6f0ff;
  --muted: #9bb0c3;
  --border: rgba(255, 255, 255, 0.08);
  --na: #ff9aa2;
  --skeleton-a: rgba(255, 255, 255, 0.06);
  --skeleton-b: rgba(255, 255, 255, 0.12);
  --skeleton-shine: rgba(255, 255, 255, 0.18);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e7e1d8;
  --bg-2: #d4cdc2;
  --card: rgba(243, 238, 231, 0.92);
  --accent: #c88b3c;
  --accent-2: #4a728d;
  --text: #25221d;
  --muted: #686157;
  --border: rgba(56, 48, 38, 0.18);
  --na: #b45322;
  --skeleton-a: rgba(56, 48, 38, 0.07);
  --skeleton-b: rgba(56, 48, 38, 0.12);
  --skeleton-shine: rgba(56, 48, 38, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, #213549, var(--bg)) fixed;
  color: var(--text);
}

:root[data-theme="light"] body {
  background: radial-gradient(1200px 600px at 10% 0%, rgba(146, 135, 117, 0.20), var(--bg)) fixed;
}

:root[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(235, 228, 218, 0.32));
}

.wrap {
  max-width: 980px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.page-models .wrap {
  max-width: none;
  width: 70vw;
}

.page-model-detail .wrap {
  max-width: none;
  width: min(1360px, 92vw);
}

@media (max-width: 720px) {
  .page-models .wrap {
    width: 100%;
  }

  .page-model-detail .wrap {
    width: 100%;
  }
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: 0.5px;
}

.editable-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.editable-title input {
  display: none;
  min-width: 240px;
  max-width: 520px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 6px 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.editable-title.is-editing {
  cursor: default;
}

.editable-title.is-editing span {
  display: none;
}

.editable-title.is-editing input {
  display: inline-block;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 120;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

:root[data-theme="light"] .theme-toggle {
  background: rgba(241, 235, 226, 0.86);
}

.theme-toggle:hover {
  border-color: rgba(91, 215, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.12);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle [data-icon="sun"] {
  display: none;
}

.theme-settings-toggle {
  position: fixed;
  top: 16px;
  right: 68px;
  z-index: 120;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

:root[data-theme="light"] .theme-settings-toggle {
  background: rgba(241, 235, 226, 0.86);
}

.theme-settings-toggle:hover {
  border-color: rgba(91, 215, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.12);
}

.theme-settings-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="light"] .theme-toggle [data-icon="sun"] {
  display: block;
}

:root[data-theme="light"] .theme-toggle [data-icon="moon"] {
  display: none;
}

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

.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
  opacity: 0;
  animation: nbnl-toast-in 200ms cubic-bezier(.2, .8, .2, 1) forwards;
}

:root[data-theme="light"] .toast {
  background: rgba(241, 235, 226, 0.92);
}

.toast.is-leaving {
  animation: nbnl-toast-out 160ms ease forwards;
}

.toast-info {
  border-color: rgba(91, 215, 255, 0.22);
}

.toast-success {
  border-color: rgba(104, 255, 180, 0.35);
}

.toast-error {
  border-color: rgba(255, 96, 96, 0.35);
}

.controls {
  display: flex;
  /* Align buttons with the bottom edge of the select (label sits above). */
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.controls > button {
  /* Ensure buttons always align with the select bottom even if browser baseline differs. */
  align-self: flex-end;
}

.control-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.control-select label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.control-select select {
  appearance: none;
  background: rgba(15, 34, 48, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.controls button.primary,
.controls button.ghost {
.image-meta [data-meta-size].is-size-large {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.3);
  font-weight: 700;
}
  min-height: 40px;
}

.controls .message {
  /* Keep status text from jumping baseline when wrapping. */
  align-self: center;
}

.control-select select:focus {
  outline: none;
  border-color: rgba(255, 179, 71, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.15);
  background: rgba(15, 34, 48, 0.78);
}

.control-select {
  position: relative;
}

.control-select.has-tick::after {
  content: "✓";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(183, 247, 199, 0.95);
  opacity: 0;
  transform: scale(0.92);
  animation: nbnl-tick 600ms cubic-bezier(.2, .8, .2, 1) 1;
  pointer-events: none;
}

button {
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.primary,
button.ghost,
.ghost-link,
.filter-pill,
.label-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), #ffd45c);
  color: #1b1b1b;
  box-shadow: 0 6px 20px rgba(255, 179, 71, 0.25);
}

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

button:active {
  transform: translateY(1px);
}

.message {
  color: var(--muted);
  font-size: 14px;
}

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

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.link-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.home-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-card-title {
  font-size: 14px;
  font-weight: 700;
}

.home-card-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.home-card-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(9, 20, 32, 0.92), rgba(6, 16, 28, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 10px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-card-media-placeholder {
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-card-status {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.home-card-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.home-scraper-preview {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.home-scraper-preview img {
  width: 100%;
  height: 120px;
  display: block;
  object-fit: cover;
}

.home-scraper-preview-title {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
}

.home-scraper-preview-title-only {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.home-scraper-stats {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.home-scraper-stats div + div {
  margin-top: 2px;
}

.home-rss-preview {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(9, 20, 32, 0.92), rgba(6, 16, 28, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 10px);
}

.home-rss-date {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 10px;
}

.home-rss-title {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 0;
}

.home-rss-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-rss-meta {
  margin-top: 12px;
}

.home-rss-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.home-rss-badge-toedlich {
  color: #fcd34d;
  border-color: rgba(250, 204, 21, 0.48);
  background: rgba(250, 204, 21, 0.12);
}

.home-rss-badge-schwerverletzte {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.12);
}

.home-rss-badge-leichtverletzte {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(147, 197, 253, 0.12);
}

.home-rss-badge-sachschaden,
.home-rss-badge-unbekannt {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.link-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}

.card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-btn {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: none;
  cursor: pointer;
}

.label-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.32);
}

.label-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.18);
}

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

.label-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.label-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  color: #ffe2b3;
  border: 1px solid rgba(255, 179, 71, 0.6);
  background: rgba(255, 179, 71, 0.15);
}

.hero-status {
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.hero-status:empty {
  display: none;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] .hero-status {
  background: rgba(255, 255, 255, 0.72);
}

.hero-status.is-saving {
  color: #ffe2b3;
  border-color: rgba(255, 179, 71, 0.6);
  background: rgba(255, 179, 71, 0.12);
  animation: nbnl-pulse 1.15s ease-in-out infinite;
}

.hero-status.is-saved {
  color: #b7f7c7;
  border-color: rgba(104, 255, 180, 0.5);
  background: rgba(104, 255, 180, 0.10);
  animation: nbnl-pop 240ms cubic-bezier(.2, .8, .2, 1) 1;
}

.hero-status.is-error {
  color: #ffb3b3;
  border-color: rgba(255, 96, 96, 0.6);
  background: rgba(255, 96, 96, 0.12);
  animation: nbnl-shake 220ms ease-in-out 2;
}
.card .value {
  font-size: 22px;
  margin-top: 6px;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.pipeline-highlight {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  letter-spacing: 0.2px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pipeline-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.pipeline-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pipeline-rows {
  display: grid;
  gap: 6px;
}

.pipeline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.pipeline-label {
  text-transform: capitalize;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pipeline-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

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

.status-running {
  color: #ffe2b3;
  border-color: rgba(255, 179, 71, 0.6);
  background: rgba(255, 179, 71, 0.15);
}

.status-running {
  position: relative;
  overflow: hidden;
}

.status-running::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 60%;
  left: -80%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(0);
  animation: nbnl-sweep 2.4s ease-in-out infinite;
}

.pipeline-badge.anim-pop {
  animation: nbnl-pop 240ms cubic-bezier(.2, .8, .2, 1) 1;
}

.pipeline-badge.anim-shake {
  animation: nbnl-shake 220ms ease-in-out 2;
}

.status-done {
  color: #b7f7c7;
  border-color: rgba(104, 255, 180, 0.5);
  background: rgba(104, 255, 180, 0.1);
}

.status-error {
  color: #ffb3b3;
  border-color: rgba(255, 96, 96, 0.6);
  background: rgba(255, 96, 96, 0.15);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.card.wide {
  min-height: 140px;
}

pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: var(--accent-2);
}

.report-block {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.report-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.report-pill {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  color: var(--muted);
}

.report-pill strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
}

.report-brands {
  display: grid;
  gap: 10px;
}

.report-brand {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
}

.report-brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--muted);
}

.report-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 10px;
}

.report-metric {
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}

.report-metric strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.field input {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

.auth-error {
  color: #ffb3b3;
  font-size: 12px;
  margin: 4px 0 10px;
}
.console pre {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 12px;
  min-height: 220px;
  max-height: 320px;
  overflow: auto;
  color: #b7e4ff;
  font-family: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, monospace;
}

:root[data-theme="light"] .console pre {
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 26, 36, 0.92);
  border: 1px solid var(--border);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-status {
  font-size: 12px;
  white-space: nowrap;
}

.ghost-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-appearance: none;
  appearance: none;
}

.settings-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-link:hover {
  border-color: rgba(91, 215, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.12);
}

:root[data-theme="light"] .ghost-link {
  background: rgba(255, 255, 255, 0.72);
}

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

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

.setup-tile {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(91, 215, 255, 0.08), rgba(0, 0, 0, 0.2));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), box-shadow 160ms ease, border-color 160ms ease;
}

.setup-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 215, 255, 0.35);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.setup-tile-title {
  font-size: 18px;
  font-weight: 700;
}

.setup-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-tile-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.setup-tile-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-2);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-tile-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.setup-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 160;
}

.setup-drawer.is-open {
  pointer-events: auto;
}

.setup-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.65);
  opacity: 0;
  transition: opacity 180ms ease;
}

.setup-drawer.is-open .setup-drawer-overlay {
  opacity: 1;
}

.setup-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 75vw;
  max-width: 1400px;
  background: linear-gradient(180deg, rgba(12, 25, 35, 0.98), rgba(8, 16, 24, 0.98));
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.setup-drawer.is-open .setup-drawer-panel {
  transform: translateX(0);
}

.setup-drawer-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.setup-drawer-title {
  font-size: 18px;
  font-weight: 700;
}

.setup-drawer-body {
  padding: 20px;
  overflow: auto;
  display: grid;
  gap: 18px;
}

.setup-panel {
  display: none;
}

.setup-panel .label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.setup-panel-body {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.setup-section {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.setup-section-head {
  display: grid;
  gap: 6px;
}

.setup-section-title {
  font-size: 14px;
  font-weight: 600;
}

.setup-section-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.8;
}

.setup-section-body {
  display: grid;
  gap: 12px;
}

.setup-section-body .setup-actions,
.setup-section-body .setup-actions-stack {
  margin-top: 0;
}

.setup-section-body .setup-actions-stack {
  gap: 10px;
}

.setup-section-body .setup-backups {
  margin-top: 6px;
}

.setup-note {
  font-size: 13px;
  line-height: 1.5;
}

.setup-helper {
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.8;
}

.setup-stats {
  font-size: 12px;
  line-height: 1.4;
  margin-top: -2px;
}

.setup-actions-stack {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .setup-drawer-panel {
    width: 100vw;
    max-width: none;
  }

  .setup-section {
    grid-template-columns: 1fr;
  }
}

.setup-add {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 10px;
  align-items: center;
}

.setup-add input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
}

:root[data-theme="light"] .setup-add input {
  background: rgba(255, 255, 255, 0.82);
}

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

.setup-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 12px;
}

.setup-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.setup-name {
  flex: 1;
  min-width: 180px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 14px;
}

.setup-desc {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
  min-height: 70px;
}

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

.setup-actions .muted {
  font-size: 12px;
}

.setup-compare {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.setup-compare-head {
  display: grid;
  gap: 4px;
}

.setup-compare-title {
  font-size: 14px;
  font-weight: 600;
}

.setup-compare-meta {
  font-size: 12px;
  opacity: 0.7;
}

.setup-compare-grid {
  display: grid;
  gap: 12px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.setup-compare-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
  scroll-snap-align: start;
}

.setup-compare-card-title {
  font-weight: 600;
}

.setup-compare-card-meta {
  font-size: 12px;
  opacity: 0.7;
}

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

.setup-compare-scores {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.setup-compare-score-row {
  display: grid;
  grid-template-columns: 110px 32px 1fr;
  gap: 6px;
}

.setup-compare-score-label {
  opacity: 0.75;
}

.setup-compare-score-value {
  font-weight: 600;
}

.setup-compare-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.15);
}

.setup-compare-block-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.setup-compare-block-text {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin-top: 6px;
}

.setup-compare-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 14, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.setup-compare-overlay.is-open {
  display: flex;
}

.setup-compare-overlay-panel {
  width: 75vw;
  height: 75vh;
  background: rgba(8, 12, 16, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.setup-compare-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.setup-compare-overlay-title {
  font-weight: 600;
}

.setup-compare-overlay-body {
  padding: 16px;
  overflow: auto;
}

.setup-hero-bg-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 10px;
}

.setup-hero-bg-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.setup-hero-bg-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-hero-bg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.setup-backups {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.tour-series-block {
  display: grid;
  gap: 8px;
  padding: 6px 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.setup-backup-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  row-gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.setup-backup-row.is-series {
  position: relative;
}

.setup-backup-row.is-series::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -8px;
  bottom: -8px;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.65), rgba(91, 215, 255, 0.65));
  box-shadow: 0 0 8px rgba(91, 215, 255, 0.25);
  border-radius: 999px;
}

.setup-backup-row.is-series-first::before {
  top: 22px;
}

.setup-backup-row.is-series-last::before {
  bottom: 22px;
}

.setup-backup-meta {
  flex: 1 1 420px;
  min-width: 0;
}

.setup-backup-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.setup-tour-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setup-tour-thumb {
  width: 96px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.setup-tour-thumb.is-empty {
  background: rgba(0, 0, 0, 0.2);
}

.setup-tour-info {
  min-width: 0;
}

.tour-group-header {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.tour-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tour-expand-panel {
  grid-column: 1 / -1;
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.tour-expand-panel.is-open {
  display: block;
}

.tour-expand-loading {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.tour-expand-loading.is-visible {
  display: inline-flex;
}

.tour-expand-content {
  margin-top: 10px;
}

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

.expand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.expand-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.expand-summary {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.expand-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

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

.expand-tag-groups {
  display: grid;
  gap: 12px;
}

.expand-tag-group {
  display: grid;
  gap: 6px;
}

.expand-tag-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.expand-tag-add {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.series-editor {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.expand-tags .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  gap: 6px;
}

.tag-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
}

.tag-remove:hover {
  opacity: 1;
}

.expand-tags .tag-countries {
  border-color: rgba(255, 179, 71, 0.5);
  color: #ffe2b3;
}

.expand-tags .tag-character {
  border-color: rgba(104, 255, 180, 0.35);
  color: rgba(183, 247, 199, 0.95);
}

.expand-tags .tag-route {
  border-color: rgba(91, 215, 255, 0.35);
  color: rgba(183, 233, 255, 0.95);
}

.expand-tags .tag-stations {
  border-color: rgba(255, 127, 169, 0.35);
  color: rgba(255, 205, 219, 0.95);
}

.expand-tags .tag-extra {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

.expand-tags .tag-highlight {
  border-color: rgba(255, 214, 102, 0.35);
  color: rgba(255, 233, 179, 0.95);
}

.expand-tags .tag-motorcycle {
  border-color: rgba(99, 102, 241, 0.35);
  color: rgba(199, 210, 254, 0.95);
}

.expand-tags .tag.is-selected {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.expand-tags .tag-countries.is-selected {
  background: rgba(255, 179, 71, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.5);
  color: #ffe2b3;
}

.tour-video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.tour-video-modal.is-open {
  display: flex;
}

.tour-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
}

.tour-video-card {
  position: relative;
  z-index: 2;
  width: min(960px, 92vw);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(7, 12, 20, 0.95);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.tour-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
}

.tour-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #ffd166;
  font-size: 12px;
  letter-spacing: 1px;
}

.rating-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 179, 71, 0.25);
  border-top-color: rgba(255, 179, 71, 0.9);
  animation: spin 0.7s linear infinite;
}

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

.detail-section {
  margin-top: 16px;
}

.small-input {
  max-width: 140px;
}

a.ghost,
a.ghost:hover,
a.ghost:visited {
  text-decoration: none;
  color: inherit;
}

a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.filter-pill.is-editable {
  cursor: pointer;
  position: relative;
}

.filter-pill.is-editable::after {
  content: "×";
  font-weight: 700;
  opacity: 0.6;
  margin-left: 6px;
}

.controls.compact {
  margin: 12px 0 0;
  align-items: center;
}

.controls.compact input.small-input {
  max-width: 220px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.mini-gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.mini-gallery-item img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.json-box {
  max-height: 260px;
  overflow: auto;
  white-space: pre;
}

.scroll-text {
  max-height: 220px;
  overflow: auto;
  line-height: 1.5;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(180, 180, 180, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.status-dot-ok {
  background: #1dc26b;
  box-shadow: 0 0 0 2px rgba(29, 194, 107, 0.22);
}

.status-dot-down {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.setup-backup-actions .badge {
  font-size: 11px;
  padding: 3px 9px;
  opacity: 1;
  transform: none;
}

.setup-backup-actions .badge-ok {
  color: #c7f9dd;
  border-color: rgba(29, 194, 107, 0.55);
  background: rgba(29, 194, 107, 0.15);
}

.setup-backup-actions .badge-down {
  color: #ffd2d2;
  border-color: rgba(239, 68, 68, 0.58);
  background: rgba(239, 68, 68, 0.14);
}

.setup-backup-actions .badge-unknown {
  color: #d6d6d6;
  border-color: rgba(180, 180, 180, 0.45);
  background: rgba(180, 180, 180, 0.12);
}

.setup-scraper {
  display: grid;
  gap: 10px;
  margin: 10px 0 6px;
}

.scraper-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 200px) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.scraper-row select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}

.scraper-row .muted {
  font-size: 12px;
}

@media (max-width: 720px) {
  .scraper-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.setup-backup-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.setup-backup-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 720px) {
  .setup-backup-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .setup-backup-name {
    max-width: 100%;
  }
}

.ghost.small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.mode-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-toggle .ghost.small.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.ghost.danger {
  border-color: rgba(255, 96, 96, 0.35);
  color: #ffb3b3;
}

.setup-example {
  display: flex;
  gap: 12px;
  align-items: center;
}

.setup-example-media {
  width: 140px;
  height: 90px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
}

.setup-example-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.setup-example-title {
  font-weight: 600;
}

.setup-example-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.setup-search {
  flex: 1;
  min-width: 200px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.setup-key-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.setup-key-input-wrap .setup-search {
  min-width: 0;
}

.key-toggle-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.key-toggle-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.key-toggle-btn:active {
  transform: translateY(0);
}

.key-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(120, 190, 255, 0.35);
}

.key-toggle-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(120, 190, 255, 0.55);
  background: rgba(120, 190, 255, 0.16);
}

.key-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.key-toggle-btn path,
.key-toggle-btn circle,
.key-toggle-btn line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-search-results {
  display: grid;
  gap: 8px;
}

.setup-search-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.setup-search-thumb {
  width: 48px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.setup-search-title {
  font-size: 13px;
  line-height: 1.3;
}

.setup-status {
  font-size: 12px;
}

@media (max-width: 720px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-add {
    grid-template-columns: 1fr;
  }
  .setup-example {
    flex-direction: column;
    align-items: flex-start;
  }
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.models-bulk {
  margin: 12px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.models-bulk-left,
.models-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.models-grid > * {
  min-width: 0;
}

.model-card.is-selected {
  border-color: rgba(120, 210, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(120, 210, 255, 0.15) inset, 0 14px 30px rgba(0, 0, 0, 0.24);
}

.model-card.is-processing {
  border-color: rgba(255, 210, 120, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 210, 120, 0.18) inset, 0 12px 24px rgba(0, 0, 0, 0.22);
}

.model-card.is-processing .model-media {
  opacity: 0.7;
}

.model-card.is-processing .model-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 210, 120, 0.18) 45%, transparent 85%);
  animation: nbnl-shimmer 1.2s linear infinite;
  pointer-events: none;
}

.brand-portrait {
  margin: 18px 0 10px;
  padding: 0;
}

.brand-portrait-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.brand-portrait-content {
  display: grid;
  gap: 12px;
}

.brand-portrait[open] .brand-portrait-content {
  max-height: 72vh;
  overflow: auto;
  padding-right: 6px;
}
.portrait-heading:first-of-type {
  display: none;
}

.portrait-preview {
  display: none;
}

.brand-portrait strong {
  color: var(--accent-2);
  font-weight: 700;
}

.brand-portrait p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: var(--text);
}

.brand-portrait ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.brand-portrait li {
  margin: 4px 0;
}

.portrait-heading {
  margin: 8px 0 6px;
  font-weight: 700;
  color: var(--text);
}

.brand-portrait .description-body blockquote,
.brand-portrait blockquote.desc-quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(125, 211, 252, 0.55);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.brand-portrait .description-body blockquote > :first-child {
  margin-top: 0;
}

.brand-portrait .description-body blockquote > :last-child {
  margin-bottom: 0;
}

.brand-portrait .description-body blockquote cite,
.brand-portrait blockquote.desc-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}


.load-more-row {
  display: flex;
  justify-content: center;
  margin: 18px 0 6px;
}

.load-more {
  min-width: 180px;
  text-align: center;
}

.load-more.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.85);
  display: inline-block;
  animation: nbnl-spin 900ms linear infinite;
}

:root[data-theme="light"] .load-more.is-loading::before {
  border-color: rgba(15, 26, 36, 0.28);
  border-top-color: rgba(15, 26, 36, 0.68);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}

.filter-bar-details {
  margin: 10px 0 2px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
}

.anim-details .details-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: max-height 220ms cubic-bezier(.2, .8, .2, 1),
    opacity 180ms ease,
    transform 180ms ease;
  will-change: max-height, opacity, transform;
}

.anim-details[open] .details-content {
  opacity: 1;
  transform: translateY(0);
}

.filter-bar-summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-bar-details[open] .filter-bar-summary {
  color: var(--text);
}

.filter-bar-details .filter-bar {
  margin: 10px 0 2px;
}

.filter-controls {
  margin-top: 12px;
  max-height: 400px; /* Updated max-height */
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, 1fr);
}

.filter-field {
  display: grid;
  gap: 6px;
  grid-column: span 3;
  position: relative;
}

.filter-search {
  grid-column: span 4;
}

.filter-actions {
  grid-column: span 2;
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

@media (min-width: 1400px) {
  .filter-field {
    grid-column: span 2;
  }
  .filter-search {
    grid-column: span 3;
  }
  .filter-actions {
    grid-column: span 1;
  }
}

.filter-field label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.filter-field select,
.filter-field input[type="search"] {
  height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.filter-field input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.filter-field select:focus-visible,
.filter-field input[type="search"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(91, 215, 255, 0.35);
}

.filter-field.has-tick::after {
  content: "✓";
  position: absolute;
  bottom: 11px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(183, 247, 199, 0.95);
  opacity: 0;
  transform: scale(0.92);
  animation: nbnl-tick 600ms cubic-bezier(.2, .8, .2, 1) 1;
  pointer-events: none;
}

.filter-field.tick-select.has-tick::after {
  right: 34px;
}

.filter-field.tick-input.has-tick::after {
  right: 12px;
}

.filter-reset {
  font-size: 12px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.filter-pill {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filter-pill:hover {
  border-color: rgba(91, 215, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.10);
}

:root[data-theme="light"] .filter-pill {
  background: rgba(255, 255, 255, 0.72);
}

.filter-pill.active {
  background: rgba(255, 179, 71, 0.2);
  border-color: rgba(255, 179, 71, 0.6);
  color: #ffe2b3;
}

@media (max-width: 980px) {
  .filter-field {
    grid-column: span 6;
  }
  .filter-search {
    grid-column: span 12;
  }
  .filter-actions {
    grid-column: span 12;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .filter-controls {
    grid-template-columns: repeat(6, 1fr);
  }
  .filter-field {
    grid-column: span 6;
  }
  .filter-actions {
    grid-column: span 6;
  }
}

.model-card {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.model-card:hover,
.model-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.model-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 12px;
}

.model-link-overlay:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.18) inset;
}

.model-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.model-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.model-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model-select span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.model-select input:checked + span {
  background: rgba(120, 210, 255, 0.9);
  border-color: rgba(120, 210, 255, 0.95);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.model-select:focus-within {
  box-shadow: 0 0 0 2px rgba(120, 210, 255, 0.2);
}

.model-action-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.model-action-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
}

.model-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.25);
}

.model-action-delete:hover {
  border-color: rgba(255, 100, 100, 0.38);
  color: rgba(255, 145, 145, 0.95);
}

.model-action-lock-toggle {
  border-color: rgba(255, 179, 71, 0.35);
  color: rgba(255, 220, 170, 0.92);
}

.model-action-lock-toggle:hover {
  border-color: rgba(255, 179, 71, 0.6);
  color: #ffe2b3;
}

.model-action-lock-toggle.is-active {
  cursor: pointer;
  border-color: rgba(255, 179, 71, 0.55);
  background: rgba(255, 179, 71, 0.15);
  color: var(--accent);
}

.model-action-lock-toggle.is-active:hover {
  border-color: rgba(255, 179, 71, 0.55);
  background: rgba(255, 179, 71, 0.15);
}

.model-action-btn.is-loading {
  opacity: 0.68;
  cursor: wait;
}

.model-media {
  position: relative;
  z-index: 2;
}

.image-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.88;
  transform: translateX(0);
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), opacity 160ms ease;
}

.model-card:hover .badge,
.model-card:focus-within .badge {
  opacity: 1;
  transform: translateX(6px);
}

.badge-origin {
  color: #c7f0ff;
  border-color: rgba(126, 220, 255, 0.5);
}

.badge-media {
  color: #ffe2b3;
  border-color: rgba(255, 179, 71, 0.6);
}

.model-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  transform: scale(1);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.model-card:hover .model-media img,
.model-card:focus-within .model-media img {
  transform: scale(1.02);
}

.model-info {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.model-info > * {
  pointer-events: none;
}

.model-media.is-loading {
  border-radius: 10px;
}

.model-media.is-loading img {
  opacity: 0;
}

.model-media.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(110deg, var(--skeleton-a), var(--skeleton-b), var(--skeleton-a));
  background-size: 200% 100%;
  animation: nbnl-shimmer 2.8s ease-in-out infinite;
}

.model-skeleton {
  pointer-events: none;
}

.skeleton-line {
  display: inline-block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--skeleton-a), var(--skeleton-b), var(--skeleton-a));
  background-size: 200% 100%;
  animation: nbnl-shimmer 2.8s ease-in-out infinite;
}

.model-skeleton .model-title.skeleton-line {
  height: 16px;
  width: 72%;
}

.model-skeleton .model-meta .skeleton-line {
  height: 12px;
  width: 44%;
}

.model-placeholder {
  height: 160px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.model-title {
  font-size: 16px;
  font-weight: 600;
}

.model-category {
  margin-top: 0;
  margin-bottom: 3px;
  width: 100%;
  text-align: right;
  position: relative;
  z-index: 4;
  pointer-events: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.model-category-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}

.model-category-btn:hover {
  color: var(--text);
}

.model-category-btn:focus-visible {
  outline: 1px solid rgba(125, 211, 252, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

.model-category-btn.is-saving {
  opacity: 0.7;
  cursor: wait;
}

.model-quality-indices {
  margin-top: 4px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quality-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
}

.quality-chip.is-green {
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
}

.worker-brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
  vertical-align: middle;
}

.quality-chip.is-yellow {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

.quality-chip.is-red {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
}

:root[data-theme="dark"] .quality-chip.is-green {
  color: #4ade80;
}

:root[data-theme="dark"] .quality-chip.is-yellow {
  color: #fbbf24;
}

:root[data-theme="dark"] .quality-chip.is-red {
  color: #f87171;
}

.model-meta {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.hero .hero-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 12px 0 4px;
  will-change: opacity, transform;
  transition: opacity 160ms ease, transform 160ms ease;
  position: relative;
  z-index: 2;
}

.hero .hero-main.is-swap-out {
  opacity: 0;
  transform: scale(0.992);
}

.hero .hero-main.is-swap-in {
  opacity: 1;
  transform: scale(1);
}

.hero {
  position: relative;
  margin-bottom: 10px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(140deg, rgba(6, 12, 18, 0.35), rgba(8, 16, 24, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.35);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.02);
}

.hero-text {
  display: none;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 30% 30%, rgba(91, 215, 255, 0.18), rgba(0, 0, 0, 0.55));
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-prev {
  left: 10px;
}

.hero-next {
  right: 10px;
}

.hero-nav:hover {
  border-color: rgba(91, 215, 255, 0.55);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36), 0 0 0 2px rgba(91, 215, 255, 0.18);
  transform: translateY(-50%) scale(1.03);
}

.hero-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.hero-nav:focus-visible {
  outline: 2px solid rgba(91, 215, 255, 0.75);
  outline-offset: 2px;
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}

.kv.kv-single-column {
  grid-template-columns: 1fr;
  gap: 10px;
}

.kv span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.kv strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

.kv strong.na {
  color: var(--na);
}

.inline-select {
  appearance: none;
  background: rgba(15, 34, 48, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  width: 100%;
}

.inline-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.inline-edit select {
  display: none;
}

.inline-edit input {
  display: none;
  min-width: 180px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.inline-edit.is-editing {
  cursor: default;
}

.inline-edit.is-editing .inline-edit-value {
  display: none;
}

.inline-edit.is-editing select {
  display: inline-block;
  width: auto;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 13px;
}

.inline-edit.is-editing input {
  display: inline-block;
}

.inline-edit-value {
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

.inline-edit-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.model-description .description-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.desc-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.desc-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.desc-section {
  margin-top: 14px;
}

.desc-kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.desc-quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(125, 211, 252, 0.55);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.desc-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.model-description .description-body strong {
  color: var(--accent-2);
  font-weight: 700;
}

.collapse-block {
  padding: 0;
  overflow: hidden;
}

.collapse-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.section-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--muted);
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.section-status.is-green::before {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}

.section-status.is-yellow::before {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.45);
}

.section-status.is-red::before {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.45);
}

.collapse-summary::-webkit-details-marker {
  display: none;
}

.collapse-summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 140ms ease;
  opacity: 0.9;
}

.collapse-block[open] .collapse-summary {
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.collapse-block[open] .collapse-summary::after {
  transform: rotate(225deg);
}

.collapse-content {
  padding: 14px 16px 16px;
}

.model-description[open] > .collapse-content {
  max-height: min(72vh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.collapse-block:not([open]) > .collapse-content {
  display: none;
}

.collapse-content > .spec-grid:first-child {
  margin-top: 0;
}

.description-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.description-status {
  font-size: 12px;
  color: var(--muted);
}

.description-status.is-busy,
.ai-compare-status.is-busy {
  color: #ffe2b3;
  position: relative;
  padding-left: 16px;
  animation: nbnl-pulse 1.05s ease-in-out infinite;
}

.description-status.is-busy::before,
.ai-compare-status.is-busy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.95);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.45);
  animation: nbnl-dot-ping 1s ease-out infinite;
}

@keyframes nbnl-dot-ping {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.45);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 179, 71, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0);
  }
}

.description-sources {
  margin-top: 10px;
}

.description-sources.is-hidden {
  display: none;
}

.desc-section.is-hidden {
  display: none;
}

.description-sources summary {
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.source-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.source-item {
  font-size: 12px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.model-minimum-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.model-minimum-table th,
.model-minimum-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.model-minimum-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 700;
}

.model-minimum-table td {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.model-minimum-table .na {
  color: var(--na);
}

.model-minimum-table .na-soft {
  color: var(--accent-2);
}

.model-minimum-table .scraper-diff {
  color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255, 107, 107, 0.55);
}

.model-minimum-table .inline-edit {
  width: 100%;
}

.model-minimum-table .inline-edit input {
  min-width: 120px;
  width: min(220px, 100%);
}

.model-minimum-table .inline-edit-status {
  margin-top: 2px;
}

.model-minimum-layout-3 {
  grid-template-columns: minmax(260px, 1fr) minmax(380px, 1.15fr) minmax(320px, 1fr);
}

.model-minimum-layout-2 {
  grid-template-columns: minmax(260px, 1fr) minmax(700px, 1.8fr);
}

@media (max-width: 1380px) {
  .model-minimum-layout-3 {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }

  .model-minimum-layout-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .model-minimum-layout-3 {
    grid-template-columns: 1fr;
  }
}

.ai-compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ai-compare-status {
  margin-top: 8px;
  font-size: 12px;
}

.ai-compare-table .ai-source {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.ai-compare-table .ai-field-label {
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ai-compare-table-compact th,
.ai-compare-table-compact td {
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: top;
}

.ai-compare-table-compact .ai-col-field {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--muted);
  width: 34%;
}

.ai-compare-table-compact td:first-child {
  width: 26%;
}

.ai-compare-table-compact td:nth-child(2),
.ai-compare-table-compact td:nth-child(3) {
  white-space: nowrap;
}

.ai-compare-table-compact td:nth-child(2) {
  width: 18%;
}

.ai-compare-table-compact td:nth-child(3) {
  width: 36%;
}

.ai-compare-table-compact td:nth-child(4) {
  width: 20%;
}

.ai-compare-table-compact .ai-source {
  white-space: normal;
  line-height: 1.25;
}

.ai-compare-table-compact .ai-apply-btn {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 12px;
}

.ai-apply-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.specs {
  color: #d4f0ff;
  font-size: 12px;
  max-height: 360px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 12px;
}

:root[data-theme="light"] .specs {
  color: rgba(15, 26, 36, 0.92);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.upload-wrap {
  margin-top: 10px;
  margin-bottom: 8px;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  user-select: none;
}

.upload-dropzone.is-dragover {
  border-color: rgba(255, 179, 71, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.14);
}

.upload-dropzone input[type="file"] {
  display: none;
}

.upload-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.upload-sub {
  font-size: 12px;
  margin-top: 3px;
}

.upload-cta {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.upload-status {
  margin-top: 6px;
  font-size: 12px;
}

.image-bulk-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.image-bulk-tools .ghost.small {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.image-bulk-tools .ghost.small.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.image-bulk-tools .ghost.small svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-sort-tools {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-sort-tools .crop-select {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
  max-width: 340px;
}

.image-cell img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.image-cell {
  cursor: pointer;
  position: relative;
}

.image-cell.is-selected img {
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.28), 0 10px 26px rgba(0, 0, 0, 0.28);
}

.image-select-toggle {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
}

.image-cell.is-selected .image-select-toggle {
  border-color: rgba(125, 211, 252, 0.9);
  background: rgba(19, 44, 64, 0.95);
  color: #dff3ff;
}

.image-cell.is-hero img {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(91, 215, 255, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.image-actions {
  position: absolute;
  right: 10px;
  top: 48px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.image-actions {
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.2, .8, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .image-actions {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
  }

  .image-cell:hover .image-actions,
  .image-cell:focus-within .image-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.image-crop:hover {
  border-color: rgba(255, 179, 71, 0.45);
  color: rgba(255, 225, 175, 0.95);
}

.image-action {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.image-action svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-action:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
}

.image-action:active {
  transform: translateY(1px);
}

.image-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 215, 255, 0.25);
}

.image-action.is-loading {
  cursor: wait;
}

.image-action.is-loading svg {
  opacity: 0.2;
}

.image-action.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.85);
  position: absolute;
  animation: nbnl-spin 900ms linear infinite;
}

:root[data-theme="light"] .image-action.is-loading::before {
  border-color: rgba(15, 26, 36, 0.28);
  border-top-color: rgba(15, 26, 36, 0.68);
}

.image-delete:hover {
  border-color: rgba(255, 100, 100, 0.38);
  color: rgba(255, 145, 145, 0.95);
}

.image-cutout:hover {
  border-color: rgba(125, 211, 252, 0.45);
  color: rgba(189, 229, 255, 0.95);
}

@media (hover: hover) and (pointer: fine) {
  .image-cell {
    transition: transform 160ms cubic-bezier(.2, .8, .2, 1);
  }
  .image-cell:hover {
    transform: translateY(-1px);
  }
  .image-cell img {
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }
  .image-cell:hover img {
    border-color: rgba(91, 215, 255, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }
  .image-cell.is-hero:hover img {
    border-color: var(--accent);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal {
  width: min(1000px, 96vw);
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  padding: 14px;
  overflow: auto;
}

.crop-stage {
  min-height: 360px;
  height: min(70vh, 720px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  padding: 10px;
}

.crop-stage img {
  max-width: 100%;
  display: block;
}

.crop-controls {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
  height: fit-content;
}

.crop-row {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.crop-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.crop-select {
  appearance: none;
  background: rgba(15, 34, 48, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
}

.crop-checks {
  gap: 8px;
}

.crop-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.crop-res-list {
  display: grid;
  gap: 6px;
}

.crop-res-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.crop-res-hint {
  font-size: 12px;
}

.crop-status {
  font-size: 12px;
  min-height: 16px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.category-picker-overlay {
  z-index: 180;
}

.category-picker-modal {
  width: min(560px, 94vw);
  max-height: min(72vh, 520px);
}

.category-picker-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

@media (max-width: 860px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.image-meta {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px 10px;
  font-size: 11px;
  color: var(--muted);
}

.image-meta span {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.image-meta span:empty {
  display: none;
}

:root[data-theme="light"] .image-meta span {
  background: rgba(255, 255, 255, 0.78);
}

.hero .image-meta {
  margin-top: 2px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.image-cell .model-placeholder {
  min-height: 180px;
  display: grid;
  gap: 6px;
  place-content: center;
  padding: 12px;
  text-align: center;
}

.image-cell .model-placeholder small {
  color: var(--muted);
  font-size: 10px;
  word-break: break-word;
}

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

.compare-col h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--muted);
}

.evidence-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.evidence-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.apply-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes nbnl-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}

@keyframes nbnl-sweep {
  0% { left: -80%; opacity: 0; }
  15% { opacity: 1; }
  55% { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@keyframes nbnl-pop {
  0% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes nbnl-shake {
  0% { transform: translateX(0); }
  30% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes nbnl-pulse {
  0% { opacity: 0.72; }
  50% { opacity: 1; }
  100% { opacity: 0.72; }
}

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

@keyframes nbnl-tick {
  0% { opacity: 0; transform: scale(0.90); }
  20% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}

@keyframes nbnl-toast-in {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes nbnl-toast-out {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.rss-card {
  display: grid;
  gap: 12px;
}

.rss-header-groups {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin: 18px 0 14px;
}

.rss-header-card {
  display: grid;
  gap: 10px;
  margin: 0;
}

.rss-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

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

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

.rss-actions-row > button,
.rss-batch-buttons-row > button {
  min-height: 40px;
}

.rss-stats-card {
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.rss-stats-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.rss-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.rss-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.rss-table th,
.rss-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.rss-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.rss-table th:first-child,
.rss-table td:first-child {
  width: 92px;
  text-align: right;
  white-space: nowrap;
}

.rss-table tbody tr {
  cursor: pointer;
}

.rss-table {
  font-size: 0.85rem;
}

.rss-table tbody tr:hover,
.rss-table tbody tr.is-active {
  background: rgba(125, 211, 252, 0.08);
}

.rss-table tbody tr.is-past {
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.6);
}

.rss-inline-detail-row {
  cursor: default !important;
}

.rss-inline-detail-row:hover {
  background: transparent !important;
}

.rss-inline-detail-host {
  padding: 10px 2px 4px;
}

.rss-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.rss-form-parking {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.rss-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rss-status-done {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.rss-status-pending {
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde68a;
}

.rss-status-error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.rss-status-error-text,
.rss-status-error-analyse {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.rss-status-blocked {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.rss-form {
  display: grid;
  gap: 12px;
}

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

.rss-grid label,
.rss-form > label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.rss-form textarea,
.rss-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 34, 48, 0.9);
  color: var(--text);
  padding: 10px 12px;
}

.rss-source-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.rss-source-url-row .ghost {
  white-space: nowrap;
}

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

.rss-stats-grid .muted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rss-stat-delta {
  display: inline-block;
  margin-left: 6px;
  color: #86efac;
  font-weight: 700;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  animation: rss-stat-delta-pop 1.4s ease forwards;
}

@keyframes rss-stat-delta-pop {
  0% { opacity: 0; transform: translateY(4px) scale(0.96); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  75% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-2px) scale(1); }
}

.rss-batch-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.inline-control .small-input {
  width: 84px;
}

#rss-message {
  margin: 6px 0 14px;
}

#rss-auto-toggle.primary {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45), 0 0 18px rgba(250, 204, 21, 0.18);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .rss-header-groups {
    grid-template-columns: 1fr;
  }

  .rss-filter-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  .model-media.is-loading::before,
  .skeleton-line,
  .status-running::after,
  .hero-status.is-saving,
  .pipeline-badge.anim-pop,
  .pipeline-badge.anim-shake,
  .load-more.is-loading::before {
    animation: none !important;
  }
  .hero img {
    transition: none !important;
  }
  .toast {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
