.pdv3-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pdv3-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 60, 40, 0.1);
  border: 1px solid rgba(255, 60, 40, 0.3);
  border-radius: 999px;
  color: var(--accent-light, #ffa600);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pdv3-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #ffa600 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}

.pdv3-core-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  color: #fdba74;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pdv3-core-banner:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.55);
}
.pdv3-core-banner.is-core {
  background: rgba(255, 60, 40, 0.08);
  border-color: rgba(255, 60, 40, 0.35);
  color: var(--accent-light, #ffa600);
}
.pdv3-core-banner-icon {
  font-size: 1rem;
}

.pdv3-card {
  position: relative;
  overflow: hidden;
  display: grid;
  /* Description card now holds image + info only (buy moved to sidebar). */
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr);
  gap: clamp(18px, 2vw, 24px);
  padding: clamp(18px, 2vw, 24px);
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 24px);
  align-items: stretch;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.85);
}
@media (max-width: 767px) {
  .pdv3-card { grid-template-columns: 1fr; }
}
/* Brand hairline along the card's top edge (CSS-only, no markup). */
.pdv3-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--accent-gradient, linear-gradient(135deg, #ff003c, #ff5e00));
  opacity: 0.4;
  pointer-events: none;
}

.pdv3-image {
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  overflow: hidden;
  background: #0a0a14;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  box-shadow: inset 0 -50px 50px -40px rgba(0, 0, 0, 0.7);
}
.pdv3-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0a14;
  display: block;
}

.pdv3-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.pdv3-summary {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-dim, #cbd5e1);
  margin: 0;
}

.pdv3-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdv3-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 60, 40, 0.05);
  border: 1px solid rgba(255, 60, 40, 0.16);
  border-radius: var(--radius-sm, 10px);
  font-size: 0.88rem;
  color: var(--fg);
}

.pdv3-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 60, 40, 0.18);
  color: var(--accent-light, #ffa600);
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pdv3-buy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
  border-radius: var(--radius-md, 14px);
}
.pdv3-buy .buy-block,
.pdv3-buy .buy-block-glass {
  margin: 0;
}

.pdv3-downloads {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
  padding: 12px 14px;
}
.pdv3-downloads h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 8px;
}
.pdv3-downloads .artifact {
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 10px);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s var(--ease-out, ease);
}
.pdv3-downloads .artifact:hover { border-color: rgba(255, 255, 255, 0.16); }
.pdv3-downloads .artifact:last-child { margin-bottom: 0; }

.pdv3-install {
  background: linear-gradient(135deg, rgba(255, 60, 40, 0.04), rgba(10, 12, 18, 0.5));
  border: 1px solid rgba(255, 60, 40, 0.22);
  border-radius: var(--radius-md, 16px);
  padding: 16px clamp(16px, 3vw, 24px);
}

.pdv3-install-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pdv3-install-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.pdv3-install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pdv3-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 10px);
}
.pdv3-step > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pdv3-step strong {
  font-size: 0.88rem;
  color: var(--fg);
  font-weight: 600;
}
.pdv3-step span {
  font-size: 0.76rem;
  color: var(--fg-dim, #cbd5e1);
  line-height: 1.4;
}
.pdv3-step code {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--accent-light, #ffa600);
}

.pdv3-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ffa600, #ff5e00);
  color: #04040a;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Light theme — keep the detail surfaces readable under the Champagner
   palette (onepage.css isn't owned here, so the minimal overrides live with
   the .pdv3-* rules they refine). */
html[data-theme="light"] .pdv3-card {
  background: rgba(255, 255, 255, 0.62);
}
html[data-theme="light"] .pdv3-card::before {
  opacity: 0.28;
}
html[data-theme="light"] .pdv3-buy {
  background: rgba(255, 252, 242, 0.7);
}

/* Larger redesigned cards: 2 cols on tablet, 1 on phones for real presence. */
@media (max-width: 1023px) and (min-width: 560px) {
  .plugins-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .plugins-mini-grid { grid-template-columns: 1fr; }
}

.admin-edit-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #ff5e00, #ff2d2d);
  color: #04040a;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(255, 60, 40, 0.55), 0 4px 12px -4px rgba(0,0,0,0.5);
  z-index: 60;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  outline-offset: 4px;
}
.admin-edit-fab:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.05); }
.admin-edit-fab:focus-visible { outline: 2px solid #ffa600; }
.admin-edit-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(4,4,10,0.18);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .admin-edit-fab { right: 14px; bottom: 14px; padding: 10px 14px 10px 12px; font-size: 0.78rem; }
  .admin-edit-fab-label { display: none; }
  .admin-edit-fab { gap: 0; padding: 10px; }
}

.admin-target-flash {
  animation: admin-flash 1.5s ease-out 1;
}
@keyframes admin-flash {
  0%   { box-shadow: 0 0 0 0 rgba(255, 166, 0, 0.7); }
  40%  { box-shadow: 0 0 0 14px rgba(255, 166, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 166, 0, 0); }
}

.admin-stat-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
.admin-stat-card {
  position: relative;
  padding: 22px 22px 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 60, 40, 0.12), transparent 62%),
    rgba(10, 12, 18, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease);
}
.admin-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 166, 0, 0.35), transparent);
  pointer-events: none;
}
.admin-stat-card:hover {
  border-color: rgba(255, 60, 40, 0.32);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.admin-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  font-weight: 600;
}
.admin-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f3f5f9;
}
.admin-stat-delta {
  font-size: 0.78rem;
  color: var(--accent-soft);
  font-weight: 500;
}
@media (min-width: 640px) {
  .admin-stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .admin-stat-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
}

.admin-sidebar .admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}
.admin-sidebar .admin-nav-group + .admin-nav-group {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
}
.admin-sidebar .admin-nav-group-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  font-weight: 600;
  padding: 0 6px 6px;
  display: block;
}
.admin-sidebar nav a {
  position: relative;
  padding-left: 14px;
}
.admin-sidebar nav a .admin-nav-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-sidebar nav a .admin-nav-label {
  flex: 1;
}
.admin-sidebar nav a.active {
  background: rgba(255, 60, 40, 0.12);
  border-color: rgba(255, 60, 40, 0.32);
  box-shadow: inset 2px 0 0 var(--accent-light);
}
@media (max-width: 1023px) {

  .admin-sidebar .admin-nav-group {
    flex-direction: row;
    gap: 6px;
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 6px;
  }
  .admin-sidebar .admin-nav-group-label { display: none; }
  .admin-sidebar nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-sidebar nav a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.84rem;
  }
  .admin-sidebar nav a.active {
    box-shadow: none;
    background: rgba(255, 60, 40, 0.16);
    border-color: rgba(255, 60, 40, 0.45);
  }
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.admin-section-head-text { min-width: 0; flex: 1; }
.admin-section-head-text .eyebrow {
  display: block;
  margin: 0 0 4px;
}
.admin-section-head-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: #e6e9ef;
  line-height: 1.15;
}
.admin-section-head-text p {
  color: var(--fg-dim);
  font-size: 0.92rem;
  margin: 6px 0 0;
  max-width: 640px;
}
.admin-section-head-action { flex-shrink: 0; }

.admin-section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px 10px;
  background: rgba(10, 12, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-section-nav a {
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.admin-section-nav a:hover {
  color: var(--accent-soft);
  border-color: rgba(255, 60, 40, 0.28);
  background: rgba(255, 60, 40, 0.06);
}

.admin-collapsible-card {
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 0 0 16px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.admin-collapsible-card:hover { border-color: var(--border-strong); }
.admin-collapsible-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.admin-collapsible-card > summary::-webkit-details-marker { display: none; }
.admin-collapsible-card > summary::after {
  content: '+';
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 60, 40, 0.12);
  border: 1px solid rgba(255, 60, 40, 0.32);
  border-radius: 8px;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.admin-collapsible-card[open] > summary::after {
  transform: rotate(45deg);
  background: rgba(255, 60, 40, 0.2);
}
.admin-collapsible-card > summary:hover { background: rgba(255, 255, 255, 0.02); }
.admin-collapsible-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.admin-collapsible-summary-left strong {
  font-size: 1rem;
  color: #e6e9ef;
  font-weight: 600;
}
.admin-collapsible-count {
  font-size: 0.74rem;
  font-family: ui-monospace, monospace;
  color: var(--accent-soft);
  background: rgba(255, 60, 40, 0.1);
  border: 1px solid rgba(255, 60, 40, 0.25);
  padding: 2px 10px;
  border-radius: 999px;
}
.admin-collapsible-body {
  padding: 4px 18px 20px;
}

.admin-editor-collapsible > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-editor-collapsible > summary::-webkit-details-marker { display: none; }
.admin-editor-collapsible > summary::after {
  content: '+';
  display: inline-flex;
  margin-left: auto;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 60, 40, 0.12);
  border: 1px solid rgba(255, 60, 40, 0.32);
  border-radius: 7px;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.admin-editor-collapsible[open] > summary::after { transform: rotate(45deg); }
.admin-editor-collapsible .admin-editor-actions button {
  position: relative;
  z-index: 2;
}

.admin-shell { gap: 32px; }
@media (min-width: 1024px) {
  .admin-shell {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
}

.admin-shell {
  align-items: start;
}
.admin-content {
  gap: 30px;
}
.admin-collapsible-card {
  background:
    linear-gradient(180deg, rgba(9, 12, 20, 0.78), rgba(5, 8, 14, 0.66)),
    rgba(255, 255, 255, 0.015);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
.admin-section-head {
  padding: 2px 2px 0;
  margin-bottom: 20px;
}
.admin-section-head h1 {
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.admin-section-head-text { position: relative; }
.admin-section-head-text .eyebrow { color: var(--accent-soft); }

@media (min-width: 1180px) {
  .admin-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }
}
.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(12, 16, 26, 0.92), rgba(5, 8, 14, 0.84)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}
.admin-sidebar nav a {
  min-height: 40px;
}
.admin-sidebar nav a .admin-nav-icon {
  opacity: 0.86;
}
.admin-content {
  max-width: 1180px;
}
.admin-collapsible-card {
  border-radius: var(--radius-md);
}
.admin-collapsible-card > summary {
  min-height: 58px;
  padding: 16px 22px;
  border-bottom: 1px solid transparent;
}
.admin-collapsible-card[open] > summary {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}
.admin-collapsible-body {
  padding: 22px;
}
#card-uploads-jars .admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 16px;
}
.jar-plugin-block {
  margin-bottom: 0;
  height: 100%;
}
.jar-plugin-block-head {
  min-height: 44px;
  align-items: start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.jar-plugin-block-head .eyebrow {
  font-size: 0.66rem;
  line-height: 1.2;
}
.jar-rows {
  justify-content: flex-start;
}
.jar-row {
  min-height: 112px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}
.jar-row-meta strong,
.jar-row-stats {
  line-height: 1.25;
}
.jar-row-file-label {
  display: grid;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0;
}
.jar-row-file-label::before {
  content: "↑";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent-light);
}
.jar-row > button {
  min-width: 106px;
  min-height: 40px;
  justify-content: center;
}

#plugin-manager {
  display: grid;
  gap: 14px;
}
.pm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(15, 19, 29, 0.9), rgba(7, 10, 16, 0.78)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
}
.pm-toolbar-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pm-toolbar-copy strong {
  font-size: 0.95rem;
  color: #e6e9ef;
}
.pm-toolbar-copy span,
.pm-status {
  color: var(--fg-mute);
  font-size: 0.84rem;
}
.pm-toolbar-actions,
.pm-summary-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pm-list {
  display: grid;
  gap: 10px;
}
#plugin-manager .pm-plugin {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(11, 15, 24, 0.88), rgba(4, 7, 13, 0.78)),
    rgba(255, 255, 255, 0.015);
  border-color: rgba(148, 163, 184, 0.16);
}
#plugin-manager .pm-plugin[open] {
  border-color: rgba(255, 60, 40, 0.28);
}
.pm-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 24px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
}
.pm-summary::after {
  margin-left: 0;
  grid-column: 4;
}
.pm-summary-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pm-summary-index {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255, 60, 40, 0.10);
  border: 1px solid rgba(255, 60, 40, 0.24);
  color: var(--accent-light);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}
.pm-summary-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pm-summary-title h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}
.pm-summary-title span {
  color: var(--fg-mute);
  font-size: 0.78rem;
}
.pm-summary-title code {
  color: var(--accent-soft);
  font-family: ui-monospace, monospace;
}
.pm-summary-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pm-summary-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--fg-dim);
  font-size: 0.74rem;
  white-space: nowrap;
}
#plugin-manager .pm-plugin > .pricing-editor-grid {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
#plugin-manager .pricing-editor-row {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
@media (max-width: 860px) {
  .pm-toolbar,
  .pm-summary {
    grid-template-columns: 1fr;
  }
  .pm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-summary-meta,
  .pm-summary-actions {
    justify-content: flex-start;
  }
  .pm-summary::after {
    position: absolute;
    right: 14px;
    top: 14px;
  }
}
@media (max-width: 760px) {
  #card-uploads-jars .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-collapsible-body {
    padding: 14px;
  }
  .jar-row {
    min-height: 0;
  }
}

@media (max-width: 1023px) {

  .admin-collapsible-card > .admin-collapsible-body {

  }
  .admin-stat-strip { margin-bottom: 18px; }
  .admin-section-head { margin-bottom: 10px; }
  .admin-section-nav { margin-bottom: 12px; }
}

[data-inline-field] {
  outline: 1px dashed transparent;
  outline-offset: 4px;
  border-radius: 4px;
  transition: outline-color .2s ease, background .2s ease;
  cursor: text;
}
[data-inline-field]:hover,
[data-inline-field]:focus-visible {
  outline-color: rgba(255, 166, 0, 0.55);
  background: rgba(255, 60, 40, 0.06);
}
[data-inline-field]:focus { outline-style: solid; outline-color: rgba(255, 166, 0, 0.85); }
.inline-edit-hint {
  position: fixed;
  right: 22px;
  bottom: 100px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 60, 40, 0.95), rgba(255, 60, 40, 0.95));
  color: #04040a;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(255, 60, 40, 0.55);
  z-index: 70;
  pointer-events: none;
  animation: inline-hint-pop .25s ease-out;
}
.inline-edit-hint.inline-edit-hint-error {
  background: linear-gradient(135deg, rgba(252, 165, 165, 0.95), rgba(239, 68, 68, 0.95));
  color: #1a0808;
  box-shadow: 0 8px 20px -8px rgba(239, 68, 68, 0.55);
}
@keyframes inline-hint-pop {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.input-with-toggle {
  position: relative;
  display: flex;
  align-items: stretch;
}
.input-with-toggle > input {
  flex: 1;
  padding-right: 44px;
}
.input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fg-dim);
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.input-toggle:hover,
.input-toggle:focus-visible {
  background: rgba(255, 166, 0, 0.1);
  border-color: rgba(255, 166, 0, 0.35);
  color: var(--accent-light, #ffa600);
  outline: none;
}
/* Eye / eye-off icon swap: show "eye" while hidden (default), "eye-off"
   while the password is revealed. Driven by [data-shown] on the button. */
.input-toggle .pw-ico { display: block; }
.input-toggle .pw-ico-hide { display: none; }
.input-toggle[data-shown="1"] .pw-ico-show { display: none; }
.input-toggle[data-shown="1"] .pw-ico-hide { display: block; }
.field-hint[data-state="ok"] {
  color: var(--accent-light, #ffa600);
}
.field-hint[data-state="warn"] {
  color: #fcd34d;
}
.field-hint[data-state="error"] {
  color: #fca5a5;
}
.field-hint:not([data-state]):empty {
  display: none;
}

.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease,
              background 0.22s ease,
              color 0.22s ease,
              filter 0.18s ease;
  will-change: transform;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 40%, transparent 70%);
  transform: translateX(-110%) skewX(-12deg);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after {
  animation: btn-sheen 0.65s ease-out;
}
.btn > * { position: relative; z-index: 2; }
@keyframes btn-sheen {
  to { transform: translateX(120%) skewX(-12deg); }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px -10px rgba(255, 60, 40, 0.55),
    0 0 0 1px rgba(255, 166, 0, 0.35) inset;
  filter: saturate(1.08);
}
.btn-primary:active {
  transform: translateY(0);
  filter: saturate(1.05) brightness(0.96);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 166, 0, 0.55);
  background: rgba(255, 60, 40, 0.07);
  color: var(--accent-light, #ffa600);
}
.btn-ghost:active { transform: translateY(0); }

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(239, 68, 68, 0.5);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 166, 0, 0.7);
  outline-offset: 3px;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.3);
  transform: none !important;
  box-shadow: none !important;
}
.btn:disabled::after,
.btn[disabled]::after { display: none; }

@media (max-width: 720px) {
  .glass .field input,
  .glass .field textarea,
  .glass .field select,
  .form-card-glass .field input,
  .form-card-glass .field textarea,
  .form-card-glass .field select {
    font-size: 16px;
    padding: 14px 14px;
    min-height: 48px;
  }

  .support-channel .btn-sm,
  .support-channel .btn {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .support-grid { gap: 16px; }

  .support-side { padding: 22px; }

  .support-grid > article.glass { padding: 22px !important; }
}

@media (max-width: 1023px) {
  .admin-section-nav {
    padding: 6px 8px;
    margin-bottom: 14px;
  }
  .admin-section-nav a {
    padding: 8px 12px;
    font-size: 0.82rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

.admin-section-nav:has(> a:only-child) {
  background: transparent;
  border-color: transparent;
  padding: 0 0 6px;
}
.admin-section-nav:has(> a:only-child) a {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  padding: 0 0 0 2px;
  background: transparent;
  border: 0;
}

@media (min-width: 1024px) {
  body:not(.plugins-fit) .plugins-mini-grid > .plugin-mini-link:last-child:nth-child(4n + 1) {

    grid-column: auto;
    max-width: calc(25% - 11px);
  }
  body:not(.plugins-fit) .plugins-mini-grid > .plugin-mini-link:last-child:nth-child(3n + 1) {

    max-width: calc(33.333% - 10px);
  }
}

body.home-fit > footer,
body.plugins-fit > footer,
body.pricing-fit > footer,
body.plugin-fit > footer {
  margin-top: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pdv3-card {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.9fr);
    grid-template-areas:
      "image buy"
      "info  buy";
  }

  .pdv3-image { grid-area: image; min-height: 180px; }
  .pdv3-info  { grid-area: info; }
  .pdv3-buy   { grid-area: buy; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .pdv3-install-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-stat-delta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plugin-mini-media:has(.plugin-mini-placeholder) {
  background: linear-gradient(135deg, rgba(255, 60, 40, 0.05), rgba(10, 12, 18, 0.7));
}

.admin-collapsible-body:empty::before {
  content: 'Keine Einträge — alles ruhig.';
  display: block;
  text-align: center;
  padding: 28px 20px;
  color: var(--fg-mute);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 540px) {
  .hero-pro-live {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .footer-cols a {
    padding: 8px 0;
    min-height: 36px;
  }
  .footer-cols { gap: 18px; }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 14px;
  background: var(--accent);
  color: #04040a;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  transition: top .2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.editor-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.editor-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 30, 30, 0.65), rgba(8, 14, 14, 0.7));
  border: 1px solid rgba(255, 166, 0, 0.18);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.editor-tool-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: radial-gradient(600px 220px at var(--mx, 50%) var(--my, 0%), rgba(255, 166, 0, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.editor-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 166, 0, 0.45);
  box-shadow: 0 18px 50px -20px rgba(255, 60, 40, 0.45);
}
.editor-tool-card:hover::before { opacity: 1; }
.editor-tool-card-soon {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.5), rgba(6, 10, 12, 0.6));
}
.editor-tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.editor-tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 166, 0, 0.18), rgba(255, 60, 40, 0.06));
  border: 1px solid rgba(255, 166, 0, 0.25);
  color: var(--accent-light, #ffa600);
}
.editor-tool-icon svg { width: 22px; height: 22px; }
.editor-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.editor-tool-chip-live {
  background: rgba(255, 166, 0, 0.16);
  border: 1px solid rgba(255, 166, 0, 0.4);
  color: var(--accent-light, #ffa600);
}
.editor-tool-chip-soon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg-mute, #8a93a4);
}
.editor-tool-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--fg, #e6f1f0);
}
.editor-tool-sum {
  margin: 0;
  color: var(--fg-dim, #b5c0c5);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.editor-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 600;
  color: var(--accent-light, #ffa600);
  font-size: 0.92rem;
}
.editor-tool-card-soon .editor-tool-cta { color: var(--fg-mute, #8a93a4); }

.editor-intro-note {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 166, 0, 0.05);
  border: 1px dashed rgba(255, 166, 0, 0.3);
  color: var(--fg-dim, #b5c0c5);
  font-size: 0.92rem;
  line-height: 1.6;
}
.editor-intro-note code {
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86em;
}
.editor-login-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 22, 24, 0.78), rgba(8, 12, 14, 0.84));
  border: 1px solid rgba(255, 166, 0, 0.2);
  box-shadow: 0 24px 70px -42px rgba(0, 0, 0, 0.8);
}
.editor-login-preview {
  position: relative;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 166, 0, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(10, 18, 22, 0.92), rgba(4, 7, 10, 0.96));
  border: 1px solid rgba(255, 166, 0, 0.18);
}
.editor-login-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  background: linear-gradient(90deg, rgba(4, 4, 10, 0.08), rgba(4, 4, 10, 0.34));
}
.editor-login-preview-top {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.editor-login-preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 166, 0, 0.5);
}
.editor-login-preview-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
}
.editor-login-preview-body aside,
.editor-login-preview-body main {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
}
.editor-login-preview-body b {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-light, #ffa600);
}
.editor-login-preview-body i,
.editor-login-preview-line,
.editor-login-preview-actions span,
.editor-login-preview-actions strong {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}
.editor-login-preview-body i:nth-child(3) { width: 78%; background: rgba(255, 166, 0, 0.18); }
.editor-login-preview-body i:nth-child(4) { width: 62%; }
.editor-login-preview-chip {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 166, 0, 0.12);
  border: 1px solid rgba(255, 166, 0, 0.25);
  color: var(--accent-light, #ffa600);
  font-size: 0.78rem;
  font-weight: 700;
}
.editor-login-preview-line.wide { width: 92%; }
.editor-login-preview-line { width: 72%; }
.editor-login-preview-line.short { width: 45%; }
.editor-login-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.editor-login-preview-actions span,
.editor-login-preview-actions strong {
  width: 112px;
  height: 36px;
  margin: 0;
}
.editor-login-preview-actions strong {
  background: linear-gradient(135deg, #ffa600, #ff2d2d);
}
.editor-login-preview-lock {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(4, 7, 10, 0.86);
  border: 1px solid rgba(255, 166, 0, 0.32);
  color: var(--fg, #e6f1f0);
  font-weight: 800;
  box-shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.8);
}
.editor-login-copy h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: 0;
}
.editor-login-copy p {
  margin: 0;
  color: var(--fg-dim, #b5c0c5);
  line-height: 1.6;
  max-width: 520px;
}
.editor-login-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.editor-gate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(8, 12, 14, 0.78);
  border: 1px solid rgba(255, 166, 0, 0.22);
  color: var(--fg-dim, #b5c0c5);
  font-size: 0.9rem;
}
.editor-gate strong {
  color: var(--accent-light, #ffa600);
}
.editor-gate-demo {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.editor-gate-demo strong {
  color: #fbbf24;
}
.editor-gate .btn {
  margin-left: auto;
}

.editor-page { padding: 32px 0 96px; }
.editor-page-wrap { max-width: 1280px; margin: 0 auto; }

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(10, 16, 18, 0.72);
  border: 1px solid rgba(255, 166, 0, 0.16);
  backdrop-filter: blur(14px);
}
.editor-toolbar-top { position: sticky; top: 14px; z-index: 30; margin-bottom: 18px; }
.editor-toolbar-bottom { margin-top: 18px; position: sticky; bottom: 14px; z-index: 30; }
.editor-toolbar-left,
.editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.editor-back {
  color: var(--fg-dim, #b5c0c5);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.editor-back:hover {
  background: rgba(255, 166, 0, 0.08);
  color: var(--accent-light, #ffa600);
  border-color: rgba(255, 166, 0, 0.25);
}
.editor-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.editor-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(255, 166, 0, 0.14);
  border: 1px solid rgba(255, 166, 0, 0.35);
  color: var(--accent-light, #ffa600);
}
.editor-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg-dim, #b5c0c5);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.editor-status-pill.is-flash {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: var(--success-soft, #4ade80);
}
.editor-rank-count { color: var(--fg-mute, #8a93a4); font-size: 0.82rem; }

.editor-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}
.editor-sidebar {
  position: sticky;
  top: 84px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 22, 24, 0.75), rgba(8, 12, 14, 0.78));
  border: 1px solid rgba(255, 166, 0, 0.16);
  backdrop-filter: blur(14px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.editor-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.editor-sidebar-head h2 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--fg, #e6f1f0);
  letter-spacing: 0.01em;
}
.editor-rank-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.editor-rank-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: grab;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  user-select: none;
}
.editor-rank-item:hover {
  background: rgba(255, 166, 0, 0.06);
  border-color: rgba(255, 166, 0, 0.22);
}

/* ============================================================
   RKX — Visual Rank Style Builder (high-end editor)
   ============================================================ */
.rkx { display: flex; flex-direction: column; gap: 16px; }

/* Animated live preview stage */
.rkx-stage {
  position: relative; border-radius: 16px; padding: 18px 20px 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 166, 0,0.10), transparent 60%),
    linear-gradient(180deg, rgba(20,28,26,0.92), rgba(10,12,16,0.94));
  border: 1px solid rgba(255, 166, 0,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -28px rgba(0,0,0,0.8);
  overflow: hidden;
}
.rkx-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 75%);
}
.rkx-stage-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-light); opacity: 0.8; margin-bottom: 12px; }
.rkx-stage-line { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.45rem; line-height: 1.3; }
/* Chip weight must NOT be forced to 700 here — that masked the Bold toggle
   (everything looked bold). Weight now comes from the <strong> the preview emits. */
.rkx-chip { font-weight: 400; }
.rkx-chip strong, .rkx-chip b { font-weight: 800; }
.rkx-suffix { margin-left: 2px; }
.rkx-player { color: #e8eef0; font-weight: 600; }
.rkx-msg { color: var(--fg-mute); }

/* Live-Ränge button + connection hint in the sidebar */
.editor-live-btn { width: 100%; margin-top: 10px; justify-content: center; }
.editor-live-hint { margin: 8px 2px 0; font-size: 0.78rem; line-height: 1.4; color: var(--fg-mute); }
.editor-live-hint.is-ok { color: var(--accent-light); }
.editor-live-hint.is-warn { color: #ffb37a; }

/* Gradient text shimmer (also used by .mm-grad previews) */
.mm-grad { background-size: 220% 100%; animation: rkxGradFlow 4.5s linear infinite; }
@keyframes rkxGradFlow { to { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) { .mm-grad { animation: none; } }

/* Cards */
.rkx-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px; background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.18)); }
.rkx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rkx-card-title { font-weight: 700; font-size: 0.96rem; color: var(--fg); display: inline-flex; align-items: center; gap: 9px; }
.rkx-card-ico, .rkx-card-ico svg { display: inline-flex; color: var(--accent-light); }

/* Segment toggle (Einfarbig / Verlauf) */
.rkx-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); }
.rkx-seg-btn { appearance: none; border: 0; background: transparent; color: var(--fg-dim); padding: 6px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.rkx-seg-btn.is-active { background: linear-gradient(180deg, rgba(255, 166, 0,0.22), rgba(255, 166, 0,0.12)); color: var(--accent-light); box-shadow: inset 0 0 0 1px rgba(255, 166, 0,0.35); }

/* Only one color mode (solid / gradient) is visible at a time — the [hidden]
   attribute must win over the panel's display:flex (it didn't, so the gradient
   panel leaked into solid mode and doubled the swatch rows). */
.rkx [hidden] { display: none !important; }

/* Color palette — compact, fixed-size swatches (was flex:1 → ~80px giants). */
.rkx-solid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.rkx-palette { display: grid; grid-template-columns: repeat(auto-fill, 30px); gap: 8px; justify-content: start; flex: 1 1 auto; }
.rkx-palette-sm { grid-template-columns: repeat(auto-fill, 26px); gap: 7px; }
.rkx-sw { width: 30px; height: 30px; border-radius: 8px; cursor: pointer; background: var(--sw); border: 2px solid rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35); transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease; }
.rkx-palette-sm .rkx-sw { width: 26px; height: 26px; border-radius: 7px; }
.rkx-sw:hover { transform: translateY(-2px) scale(1.08); border-color: rgba(255,255,255,0.45); }
.rkx-sw.is-active { border-color: var(--accent-light); box-shadow: 0 0 0 2px rgba(255, 166, 0,0.55), inset 0 0 0 1px rgba(0,0,0,0.35), 0 6px 16px -6px rgba(255, 166, 0,0.6); transform: translateY(-1px) scale(1.05); }
.rkx-custom { display: inline-flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--fg-dim); white-space: nowrap; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,0.22); }
.rkx-custom input[type="color"] { width: 34px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: transparent; cursor: pointer; }

/* Gradient builder */
.rkx-gradient { display: flex; flex-direction: column; gap: 14px; }
.rkx-grad-stops { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.rkx-grad-stop { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.rkx-grad-stop-label { font-size: 0.74rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--fg-mute); }
.rkx-grad-stop input[type="color"] { width: 100%; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; }
.rkx-grad-arrow { align-self: center; color: var(--fg-mute); font-size: 1.4rem; padding-top: 20px; }
.rkx-grad-bar { height: 16px; border-radius: 10px; border: 1px solid var(--border); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3); background-size: 200% 100%; animation: rkxGradFlow 4.5s linear infinite; }

/* Format toggles */
.rkx-fmts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rkx-fmt { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--fg-dim); font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.rkx-fmt:hover { border-color: rgba(255,255,255,0.25); color: var(--fg); transform: translateY(-1px); }
.rkx-fmt.is-active { background: linear-gradient(180deg, rgba(255, 166, 0,0.22), rgba(255, 166, 0,0.1)); color: var(--accent-light); border-color: rgba(255, 166, 0,0.5); box-shadow: 0 6px 16px -8px rgba(255, 166, 0,0.6); }
.rkx-fmt-sep { width: 1px; height: 26px; background: var(--border); margin: 0 4px; }
.rkx-fmt-hint { font-size: 0.78rem; color: var(--fg-mute); margin-left: auto; max-width: 320px; }

/* Advanced collapsible — smooth */
.rkx-adv { border: 1px solid var(--border); border-radius: 14px; background: rgba(0,0,0,0.16); overflow: hidden; }
.rkx-adv-sum { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 0.9rem; color: var(--fg-dim); display: flex; align-items: center; gap: 10px; user-select: none; transition: color 0.15s ease, background 0.15s ease; }
.rkx-adv-sum::-webkit-details-marker { display: none; }
.rkx-adv-sum:hover { color: var(--fg); background: rgba(255,255,255,0.02); }
.rkx-adv-chevron { display: inline-block; transition: transform 0.25s ease; color: var(--accent-light); font-size: 1.1rem; }
.rkx-adv[open] .rkx-adv-chevron { transform: rotate(90deg); }
.rkx-adv-body { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 14px; animation: rkxReveal 0.28s ease; }
@keyframes rkxReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.rkx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .rkx-grid2 { grid-template-columns: 1fr; } .rkx-fmt-hint { display: none; } }

/* Empty-state SVG icon (replaces emoji glyphs across all editors) */
.editor-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; color: var(--accent-light); background: radial-gradient(circle at 30% 25%, rgba(255, 166, 0,0.16), rgba(0,0,0,0.18)); border: 1px solid rgba(255, 166, 0,0.22); box-shadow: 0 10px 30px -16px rgba(255, 166, 0,0.6); }
.editor-empty-icon svg { width: 26px; height: 26px; }

/* Shared toast system for copy/publish feedback (all editors) */
.editor-toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.editor-toast { display: inline-flex; align-items: center; gap: 8px; background: rgba(10,14,20,0.96); border: 1px solid rgba(255, 166, 0,0.42); color: var(--fg); padding: 10px 18px; border-radius: 11px; font-size: 0.88rem; font-weight: 600; box-shadow: 0 14px 38px -14px rgba(0,0,0,0.85); opacity: 0; transform: translateY(12px); transition: opacity 0.26s ease, transform 0.26s ease; }
.editor-toast.show { opacity: 1; transform: none; }
.editor-toast.is-error { border-color: rgba(248,113,113,0.55); }
.editor-toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 8px var(--accent-light); }
.editor-toast.is-error .editor-toast-dot { background: #f87171; box-shadow: 0 0 8px #f87171; }

/* FLIP drag-reorder smoothing (low-risk transform transition on list items) */
.editor-rank-list > li.is-flipping { transition: transform 0.22s cubic-bezier(.2,.7,.3,1); }
