:root,
[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-soft: #eef3f6;
  --bg-elevated: #ffffff;
  --border: #dce5eb;
  --border-strong: #c5d2db;
  --text: #5b6b76;
  --heading: #12202b;
  --accent: #0f9f8a;
  --accent-hover: #0b8573;
  --accent-soft: rgba(15, 159, 138, 0.12);
  --accent-softer: rgba(15, 159, 138, 0.06);
  --accent-contrast: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #1d3342;
  --btn-secondary-border: #d0d8e1;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --alert-ok-bg: #ecfdf8;
  --alert-ok-border: #a7f3df;
  --alert-err-bg: #fef2f2;
  --alert-err-border: #fecaca;
  --badge-on-bg: #dcfaf3;
  --badge-on-text: #0b7a69;
  --badge-off-bg: #eef2f5;
  --badge-off-text: #6b7c87;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 43, 0.04), 0 6px 18px rgba(18, 32, 43, 0.05);
  --shadow-md: 0 12px 32px rgba(18, 32, 43, 0.1);
  --header-blur: rgba(246, 248, 250, 0.88);
  --glow: radial-gradient(ellipse 70% 50% at 15% -10%, rgba(15, 159, 138, 0.16), transparent 55%),
          radial-gradient(ellipse 50% 40% at 90% 0%, rgba(15, 159, 138, 0.07), transparent 50%);
}

[data-theme="dark"] {
  --bg: #090d10;
  --bg-soft: #0f1418;
  --bg-elevated: #13191e;
  --border: #1c252c;
  --border-strong: #2a353e;
  --text: #7d8d98;
  --heading: #c5d0d7;
  --accent: #1f8f7e;
  --accent-hover: #27a794;
  --accent-soft: rgba(31, 143, 126, 0.16);
  --accent-softer: rgba(31, 143, 126, 0.08);
  --accent-contrast: #041512;
  --btn-secondary-bg: #161d23;
  --btn-secondary-text: #b7c4cc;
  --btn-secondary-border: #2a353e;
  --danger: #d97777;
  --danger-bg: #1c1214;
  --danger-border: #4a2a2e;
  --alert-ok-bg: #0e1c18;
  --alert-ok-border: #1a4036;
  --alert-err-bg: #1c1214;
  --alert-err-border: #4a2a2e;
  --badge-on-bg: #12302a;
  --badge-on-text: #5fafa0;
  --badge-off-bg: #1a2228;
  --badge-off-text: #7d8d98;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --header-blur: rgba(9, 13, 16, 0.9);
  --glow: radial-gradient(ellipse 60% 40% at 8% -8%, rgba(31, 143, 126, 0.08), transparent 55%);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  font-size: 15.5px;
}

body,
.app-body {
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  line-height: 1.6;
}

.app-body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--glow);
}

h1, h2, h3, h4, .brand {
  color: var(--heading);
  font-family: "Outfit", "Figtree", sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.55rem, 2.4vw, 1.9rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.08rem; }

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: color 0.18s ease, background-size 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
  background-size: 100% 2px;
}

.brand,
.menu-item,
.stat-box,
.button,
.sl-link,
.release-card,
.user-menu-trigger {
  background-image: none !important;
}

.brand:hover,
.menu-item:hover,
.stat-box:hover,
.button:hover,
.sl-link:hover {
  background-size: 0 !important;
}

.ui-icon,
.material-symbols-outlined.ui-icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

/* Sticky footer layout */
.main-content {
  flex: 1 0 auto;
  width: 100%;
  padding: 1.75rem 0 2.5rem;
}

.app-body.is-landing .main-content {
  padding-top: 0;
}

.app-body.is-landing .page-glow {
  display: none;
}

.app-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: none;
  padding: 0.85rem 0 1.1rem;
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-copy {
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--accent-softer);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 1.2;
  vertical-align: middle;
}

/* Buttons — fixed height for consistent alignment */
.button,
button.button,
input[type="submit"].button,
a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.55rem !important;
  min-height: 2.55rem !important;
  max-height: 2.55rem !important;
  padding: 0 1.15rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-family: inherit;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease !important;
  box-shadow: none;
  box-sizing: border-box !important;
}

.button:hover,
button.button:hover,
a.button:hover { transform: translateY(-1px); }

.button:active,
button.button:active,
a.button:active { transform: translateY(0); }

.button-primary,
.button:not(.button-outline):not(.button-secondary):not(.button-ghost):not(.button-danger):not(.theme-toggle):not(.user-menu-trigger):not(.menu-item-btn):not(.burger-btn) {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-contrast) !important;
  box-shadow: 0 6px 16px var(--accent-soft);
}

.button-primary:hover,
.button:not(.button-outline):not(.button-secondary):not(.button-ghost):not(.button-danger):not(.theme-toggle):not(.user-menu-trigger):not(.menu-item-btn):not(.burger-btn):hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: var(--accent-contrast) !important;
}

.button-secondary,
.button-outline {
  background: var(--btn-secondary-bg) !important;
  border-color: var(--btn-secondary-border) !important;
  color: var(--btn-secondary-text) !important;
  box-shadow: none;
}

.button-secondary:hover,
.button-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-softer) !important;
}

.button-ghost {
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.button-ghost:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-softer) !important;
}

.button-danger {
  background: transparent !important;
  color: var(--danger) !important;
  border-color: var(--danger-border) !important;
  box-shadow: none !important;
}

.button-danger:hover,
.button-outline.button-danger:hover,
.button-small.button-danger:hover {
  background: var(--danger-bg) !important;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}

.button-danger:hover .ui-icon,
.button-outline.button-danger:hover .ui-icon {
  color: var(--danger) !important;
}

.button-small {
  height: 2.2rem !important;
  min-height: 2.2rem !important;
  max-height: 2.2rem !important;
  padding: 0 0.9rem !important;
  font-size: 0.85rem !important;
}

.button-lg {
  height: 2.9rem !important;
  min-height: 2.9rem !important;
  max-height: 2.9rem !important;
  padding: 0 1.4rem !important;
  font-size: 0.98rem !important;
}

.button-with-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.button-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.55rem !important;
  min-width: 2.55rem !important;
  max-width: 2.55rem !important;
  height: 2.55rem !important;
  min-height: 2.55rem !important;
  max-height: 2.55rem !important;
  padding: 0 !important;
}

.button-small.button-icon {
  width: 2.2rem !important;
  min-width: 2.2rem !important;
  max-width: 2.2rem !important;
  height: 2.2rem !important;
  min-height: 2.2rem !important;
  max-height: 2.2rem !important;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="time"],
select {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--heading) !important;
  font-family: inherit;
  font-size: 0.95rem !important;
  height: 2.55rem !important;
  min-height: 2.55rem !important;
  max-height: 2.55rem !important;
  padding: 0 0.85rem !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="date"],
input[type="time"] {
  color-scheme: light;
  min-width: 0;
  width: 100%;
}

[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

textarea {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--heading) !important;
  font-family: inherit;
  font-size: 0.95rem !important;
  min-height: 6.5rem;
  padding: 0.75rem 0.85rem !important;
  margin-bottom: 0 !important;
  line-height: 1.45 !important;
  box-sizing: border-box !important;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="file"].file-drop-input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 2;
}

.file-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.file-field-caption {
  font-weight: 560;
  color: var(--heading);
  font-size: 0.9rem;
}

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-elevated) 88%, var(--accent-softer)),
    var(--bg-elevated)
  );
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--accent);
  background: var(--accent-softer);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.file-drop.has-file {
  border-style: solid;
}

.file-drop-thumb {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}

.file-drop-preview,
.file-drop-placeholder {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
}

.file-drop-preview[hidden],
.file-drop-placeholder[hidden] {
  display: none !important;
}

.file-drop-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

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

.file-drop-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--accent);
}

.file-drop-placeholder .ui-icon {
  font-size: 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
}

.file-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  pointer-events: none;
  z-index: 1;
}

.file-drop-title {
  font-weight: 650;
  color: var(--heading);
  font-size: 0.98rem;
}

.file-drop-hint {
  color: var(--text);
  font-size: 0.82rem;
}

.file-drop-name {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1em;
}

.file-drop-name:empty {
  display: none;
}

@media (max-width: 560px) {
  .file-drop {
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.65rem 0.75rem;
  }

  .file-drop-thumb {
    width: 4.5rem;
    height: 4.5rem;
  }
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 560;
  color: var(--heading);
  font-size: 0.9rem;
  margin-bottom: 0.95rem;
}

label.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
  padding-top: 0.35rem;
}

label.checkbox-label input {
  width: auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
}

.remove-image-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  margin: 0.15rem 0 0.95rem;
  padding: 0;
  cursor: pointer;
  user-select: none;
}

.remove-image-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

.remove-image-face {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0 0.9rem 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 560;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.remove-image-face .ui-icon {
  font-size: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--danger);
}

.remove-image-toggle:hover .remove-image-face {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  background: color-mix(in srgb, var(--danger) 8%, var(--bg-elevated));
  color: var(--danger);
}

.remove-image-input:checked + .remove-image-face {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, var(--bg-elevated));
  color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

.remove-image-input:checked + .remove-image-face .remove-image-text {
  text-decoration: line-through;
  opacity: 0.85;
}

.remove-image-input:focus-visible + .remove-image-face {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.publish-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  flex-direction: row;
  gap: 0;
}

.publish-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

.publish-toggle-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--btn-secondary-border);
  background: var(--btn-secondary-bg);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.publish-toggle:hover .publish-toggle-face {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-softer);
}

.publish-icon-on { display: none; }
.publish-icon-off { display: inline-flex; }

.publish-toggle-input:checked + .publish-toggle-face {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.publish-toggle-input:checked + .publish-toggle-face .publish-icon-on { display: inline-flex; }
.publish-toggle-input:checked + .publish-toggle-face .publish-icon-off { display: none; }

.publish-toggle-input:focus-visible + .publish-toggle-face {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

form {
  margin-bottom: 0;
}

.meta-form .button,
.block-item > form > .button {
  margin-top: 0.35rem;
}

/* Header */
.app-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--header-blur);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 3.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none !important;
  color: var(--heading) !important;
  font-weight: 700;
}

.brand:hover { color: var(--accent) !important; }
.brand-sm { font-size: 1.2rem; }

.brand-hero {
  display: inline-block;
  font-size: clamp(2.7rem, 7vw, 4rem);
  margin-bottom: 1.15rem;
  color: var(--heading) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.inline-form { display: inline; margin: 0; }

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-trigger,
.burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0 !important;
  padding: 0;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--heading);
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  vertical-align: middle;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.user-menu-trigger:hover,
.user-menu.is-open .user-menu-trigger,
.burger-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-softer);
}

.user-menu-trigger .ui-icon,
.burger-btn .ui-icon {
  font-size: 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  color: inherit;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 260px;
  padding: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 60;
}

.user-menu-dropdown[hidden] { display: none !important; }

.guest-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Desktop / mobile nav visibility — mobile-first, high specificity */
.is-desktop-nav { display: none !important; }
.is-mobile-nav { display: inline-flex !important; }

@media (min-width: 901px) {
  .is-desktop-nav { display: block !important; }
  .user-menu.is-desktop-nav { display: inline-flex !important; align-items: center; }
  .guest-actions.is-desktop-nav { display: flex !important; }
  .is-mobile-nav,
  button.is-mobile-nav.burger-btn { display: none !important; }
}

.menu-item,
.menu-item-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--heading) !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal;
  font-weight: 560;
  font-size: 1.02rem;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.menu-item:hover,
.menu-item-btn:hover {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.menu-item-danger { color: var(--danger) !important; }
.menu-item-danger:hover {
  background: var(--danger-bg);
  color: var(--danger) !important;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0.35rem;
}

/* Mobile drawer */
.mobile-drawer[hidden] { display: none !important; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 10, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: translateX(104%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
}

.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-size: 1.15rem;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}

.drawer-theme-form { margin: 0; }
body.drawer-open { overflow: hidden; }

.desktop-only { display: none; }
.mobile-only { display: none; }

.alert {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem;
  margin-bottom: 1.15rem;
  font-weight: 560;
  font-size: 1.02rem;
}

.alert-success {
  background: var(--alert-ok-bg);
  border-color: var(--alert-ok-border);
  color: var(--badge-on-text);
}

.alert-error {
  background: var(--alert-err-bg);
  border-color: var(--alert-err-border);
  color: var(--danger);
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  min-height: 2.55rem;
}

.panel-head > .button,
.panel-head > a.button {
  align-self: center;
}

.panel-head h1,
.panel-head h2 {
  margin: 0;
  line-height: 1.2;
}

.settings-oauth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.settings-oauth-manage {
  display: grid;
  gap: 0.65rem;
}

.settings-oauth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.settings-oauth-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  font-weight: 560;
}

.settings-oauth-badge {
  margin-left: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--accent-softer);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
}

.settings-oauth-item .platform-icon {
  font-size: 1.05rem;
}

.settings-danger {
  border-color: var(--danger-border);
  background:
    linear-gradient(180deg, var(--danger-bg), transparent 42%),
    var(--bg-elevated);
}

.settings-danger h2 {
  color: var(--danger);
}

.hero-dash {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background:
    linear-gradient(135deg, var(--accent-softer), transparent 55%),
    var(--bg-elevated);
}

/* —— Landing —— */
.landing {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: -0.5rem;
}

.landing-hero {
  position: relative;
  min-height: min(94vh, 54rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 55% at 78% 28%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%),
    radial-gradient(ellipse 45% 40% at 8% 85%, var(--accent-softer), transparent 55%),
    linear-gradient(165deg, var(--bg-soft) 0%, var(--bg) 55%, color-mix(in srgb, var(--bg) 88%, #000) 100%);
}

.landing-hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 38%, transparent 64%),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%);
  z-index: 1;
}

.landing-mock {
  position: absolute;
  right: max(3.5vw, calc((100vw - 920px) / 2 - 0.5rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  animation: landing-mock-float 8s ease-in-out infinite;
}

.landing-mock-page {
  width: min(19.5rem, 42vw);
  max-width: 380px;
}

.landing-mock-card {
  background: #0f0f0f;
  box-shadow: rgba(0, 0, 0, 0.7) 0 10px 25px -5px;
  padding: 0 0 1.35rem;
  text-align: center;
  color: #fff;
  font-family: Inter, "Helvetica Neue", system-ui, sans-serif;
  border-radius: 10px;
  overflow: hidden;
}

.landing-mock-photo-wrap {
  overflow: hidden;
  margin: 0 0 1.05rem;
  line-height: 0;
}

.landing-mock-photo {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background:
    radial-gradient(circle at 42% 32%, #5a5a5a 0%, transparent 42%),
    linear-gradient(165deg, #2c2c2c 0%, #141414 48%, #070707 100%);
  transition: transform 0.4s ease;
}

.landing-mock:hover .landing-mock-photo {
  transform: scale(1.02);
}

.landing-mock-name,
.landing-mock-sub,
.landing-mock-social,
.landing-mock-releases-label,
.landing-mock-releases,
.landing-mock-artists,
.landing-mock-gallery,
.landing-mock-concert,
.landing-mock-links {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.landing-mock-name {
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}

.landing-mock-sub {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
}

.landing-mock-social {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #fff;
}

.landing-mock-divider {
  width: 75%;
  height: 1px;
  margin: 0 auto 1rem;
  background: color-mix(in srgb, #888 35%, transparent);
}

.landing-mock-releases-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
}

.landing-mock-releases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.landing-mock-releases span {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, #2a2a2a, #141414 55%, #0a0a0a);
}

.landing-mock-releases span:nth-child(2) {
  background:
    linear-gradient(160deg, #333 0%, #1a1a1a 45%, #0d0d0d);
}

.landing-mock-releases span:nth-child(3) {
  background:
    linear-gradient(200deg, #262626, #101010);
}

.landing-mock-artists {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.landing-mock-artists span {
  display: block;
  height: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 55%, transparent 100%);
}

.landing-mock-artists span:nth-child(2) {
  width: 78%;
  opacity: 0.75;
}

.landing-mock-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.landing-mock-gallery span {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #1c1c1c;
  opacity: 0.55;
}

.landing-mock-gallery span.is-active {
  opacity: 1;
  background:
    radial-gradient(circle at 40% 35%, #4a4a4a 0%, transparent 45%),
    linear-gradient(160deg, #2e2e2e, #121212);
}

.landing-mock-concert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
  text-align: left;
}

.landing-mock-concert-date {
  flex: 0 0 auto;
  min-width: 2.6rem;
  padding: 0.35rem 0.3rem;
  border: 1px solid #333;
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ddd;
  text-align: center;
  line-height: 1.15;
}

.landing-mock-concert-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}

.landing-mock-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-mock-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 2.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-mock-link i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

.landing-mock-link em {
  font-style: normal;
}

.landing-mock-powered {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  font-weight: 500;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.landing-hero-copy {
  max-width: 32rem;
  animation: landing-copy-in 0.85s ease both;
}

.landing-brand {
  display: block;
  margin: 0 0 1rem;
  font-size: clamp(2.9rem, 8vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  animation: landing-brand-in 0.7s ease both;
}

.landing-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin: 0 0 0.75rem;
  max-width: 18ch;
  line-height: 1.2;
  font-weight: 650;
  color: var(--heading);
}

.landing-lead {
  font-size: 1.08rem;
  max-width: 34ch;
  margin: 0 0 1.55rem;
  line-height: 1.55;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.landing-section {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--border);
}

.landing-section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--accent-softer), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.landing-h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

.landing-section-lead {
  margin: 0 0 1.85rem;
  max-width: 40ch;
  font-size: 1.05rem;
}

.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.landing-step {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 1rem;
  align-items: start;
  animation: landing-rise 0.7s ease both;
}

.landing-step:nth-child(2) { animation-delay: 0.08s; }
.landing-step:nth-child(3) { animation-delay: 0.16s; }

.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 1.6rem;
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.landing-step strong,
.landing-features strong,
.landing-audience-list strong {
  display: block;
  color: var(--heading);
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.landing-step p,
.landing-features p {
  margin: 0;
  max-width: 46ch;
}

.landing-code {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: var(--accent-softer);
  color: var(--accent);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92em;
}

.landing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2rem;
}

.landing-features li {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.landing-audience {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.landing-audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.landing-audience-list li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  line-height: 1.45;
}

.landing-audience-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.landing-finale {
  text-align: left;
  border-bottom: none;
  padding-bottom: 4.25rem;
  background:
    radial-gradient(ellipse 55% 70% at 0% 100%, var(--accent-soft), transparent 50%),
    var(--bg);
}

.landing-finale-brand {
  margin: 0 0 0.65rem;
  color: var(--heading);
}

.landing-finale-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  max-width: 16ch;
}

.landing-finale .landing-section-lead {
  margin-bottom: 1.45rem;
}

@keyframes landing-brand-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes landing-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes landing-mock-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .landing-hero {
    min-height: auto;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .landing-hero-stage {
    position: relative;
    inset: auto;
    min-height: 0;
    height: auto;
    display: flex;
    justify-content: center;
    padding: 1.75rem 1rem 1.75rem;
  }

  .landing-hero-glow {
    background:
      linear-gradient(180deg, var(--bg) 0%, transparent 28%, transparent 70%, var(--bg) 100%);
  }

  .landing-mock {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 1;
    animation: landing-mock-float-mobile 8s ease-in-out infinite;
  }

  .landing-mock-page {
    width: min(19rem, 84vw);
    max-width: none;
  }

  .landing-hero-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .landing-hero-copy {
    max-width: none;
  }

  .landing-features,
  .landing-audience {
    grid-template-columns: 1fr;
  }

  .landing-brand {
    font-size: clamp(2.6rem, 14vw, 3.5rem);
  }
}

@keyframes landing-mock-float-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-brand,
  .landing-hero-copy,
  .landing-step,
  .landing-mock {
    animation: none !important;
  }

  .landing-mock:hover .landing-mock-photo {
    transform: none;
  }
}

.auth-panel {
  width: 100%;
  margin: 0;
}

.auth-head {
  margin-bottom: 1.35rem;
}

.auth-head h1 {
  margin: 0;
}

.auth-form .form-actions,
.auth-actions {
  margin-top: 0.35rem;
}

.auth-grid {
  margin-bottom: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.45rem 0 1.1rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 560;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  white-space: nowrap;
}

.auth-footer {
  margin: 1.35rem 0 0;
  font-size: 0.95rem;
}

.auth-footer a {
  font-weight: 650;
}

.muted { color: var(--text); }
.empty-hint { padding: 0.4rem 0; font-size: 0.95rem; }

.actions, .oauth-row, .form-actions, .row-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.1rem;
}

.oauth-row {
  margin-top: 0;
}

.oauth-row .button {
  flex: 1;
  min-width: 140px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin: 0 0 1.25rem;
}

.stat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  box-shadow: var(--shadow-sm);
}

.stat-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  color: var(--accent);
  margin-bottom: 0.65rem;
  display: inline-flex;
}

.stat-icon .ui-icon {
  font-size: 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
}

.stat-num {
  font-size: 2.35rem;
  color: var(--heading);
  line-height: 1;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.stat-label { margin: 0.55rem 0 0; font-weight: 560; font-size: 1.05rem; }

.dash-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dash-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.2rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-decoration: none !important;
  color: var(--heading) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-quick-item:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
}

.dash-quick-item .ui-icon {
  color: var(--accent);
  font-size: 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
}

.seo-fields {
  margin: 1.15rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.seo-fields-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.seo-fields-hint {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.analytics-stats {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.6rem;
  gap: 0.55rem;
  align-items: center;
}

.analytics-bar-day {
  font-size: 0.82rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.analytics-bar-track {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.analytics-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  min-width: 0;
}

.analytics-bar-val {
  font-size: 0.82rem;
  text-align: right;
  color: var(--muted, var(--text));
  font-variant-numeric: tabular-nums;
}

.analytics-click-count {
  font-size: 1.35rem !important;
}

@media (max-width: 700px) {
  .dash-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.entity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--bg);
}

.thumb, .preview-img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 0.85rem;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--accent);
}

.thumb-placeholder .ui-icon {
  font-size: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
}

.panel-sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.4rem 0 0.4rem;
}

.empty-state-icon {
  display: inline-flex;
  color: var(--accent);
}

.empty-state-icon .ui-icon {
  font-size: 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
}

.empty-state p {
  margin: 0;
  max-width: 32rem;
}

.media-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.media-row:last-child {
  border-bottom: none;
}

.media-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-soft);
}

.media-avatar-cover {
  border-radius: var(--radius-sm);
}

.media-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.media-avatar-placeholder .ui-icon {
  font-size: 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
}

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

.media-title {
  display: block;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.media-meta {
  margin-top: 0.2rem;
  font-size: 0.88rem;
}

.media-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.list-plain li:last-child { border-bottom: none; }

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.repeat-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr minmax(150px, 0.9fr) auto;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  align-items: end;
}

.form-grid label { margin-bottom: 0; }

.section-layout-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.section-layout-caption {
  font-weight: 560;
  color: var(--heading);
  font-size: 0.9rem;
}

.layout-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  width: fit-content;
  max-width: 100%;
}

.layout-switch-option {
  position: relative;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.layout-switch-option input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  pointer-events: none;
}

.layout-switch-option span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 560;
  transition: background 0.15s ease, color 0.15s ease;
}

.layout-switch-option input:checked + span {
  background: var(--bg-elevated);
  color: var(--heading);
  box-shadow: var(--shadow-sm);
}

.layout-switch-option:hover span {
  color: var(--heading);
}

.add-block-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
}

.add-block-form select {
  min-width: 9.5rem;
  width: auto;
}

.blocks-editor { display: flex; flex-direction: column; gap: 0.9rem; }

.divider-hint {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.divider-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0;
}

.divider-preview span {
  display: block;
  width: 75%;
  height: 1px;
  background: color-mix(in srgb, var(--border-strong) 45%, transparent);
}

.block-item { background: var(--bg-soft); }
.block-item.is-hidden {
  opacity: 0.58;
  border-style: dashed;
}

.block-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  min-height: 2.55rem;
}

.block-type-label {
  line-height: 1;
  font-size: 0.98rem;
}

.block-toolbar-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.block-toolbar-actions form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.drag-handle {
  cursor: grab;
  color: var(--text);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
}

.drag-handle:hover { background: var(--accent-soft); color: var(--accent); }

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 1.55rem;
}

.badge-on {
  background: var(--badge-on-bg);
  color: var(--badge-on-text);
}

.badge-off {
  background: var(--badge-off-bg);
  color: var(--badge-off-text);
}

.code-area { font-family: Consolas, Monaco, monospace; font-size: 0.95rem; }

.icon-picker {
  position: relative;
  min-width: 150px;
}

.icon-picker-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
  box-shadow: none;
  transition: none;
}

.icon-picker-trigger:hover,
.icon-picker-trigger:focus,
.icon-picker-trigger:active {
  border-color: var(--border) !important;
  background: var(--bg-elevated) !important;
  color: var(--heading) !important;
  box-shadow: none !important;
  outline: none;
  transform: none !important;
}

.icon-picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.icon-picker-grid {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  padding: 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 280px;
  overflow-y: auto;
}

.icon-picker-grid[hidden] { display: none !important; }

.icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--heading);
  cursor: pointer;
  padding: 0.4rem;
  transition: none;
}

.icon-option:hover,
.icon-option:focus {
  border-color: transparent;
  background: var(--bg-soft);
  color: var(--heading);
  outline: none;
}

.icon-option.is-selected,
.icon-option.is-selected:hover,
.icon-option.is-selected:focus {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.platform-icon {
  font-size: 1.15rem;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-picker-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
}

.platform-icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-option .platform-icon {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
}

.sl-link .platform-icon {
  font-size: 1.2rem;
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
}

/* —— Public smartlink (steveballer-like) —— */
.public-page {
  --sl-page-bg: #0b0b0b;
  --sl-bg: #0f0f0f;
  --sl-ink: #ffffff;
  --sl-muted: #888888;
  --sl-line: rgba(255, 255, 255, 0.22);
  --sl-hover: rgba(255, 255, 255, 0.06);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 1.75rem 1rem 1.1rem;
  position: relative;
  display: block;
  overflow-x: hidden;
  font-family: Inter, "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  color: var(--sl-ink);
  background: var(--sl-page-bg);
}

.public-page[data-theme="light"] {
  --sl-page-bg: #e6e6e6;
  --sl-bg: #f7f7f7;
  --sl-ink: #111111;
  --sl-muted: #777777;
  --sl-line: rgba(0, 0, 0, 0.18);
  --sl-hover: rgba(0, 0, 0, 0.04);
}

.public-page[data-theme="light"] .smartlink-page {
  box-shadow: rgba(0, 0, 0, 0.12) 0 10px 25px -5px;
}

.public-page[data-theme="dark"] {
  --sl-page-bg: #0b0b0b;
  --sl-bg: #0f0f0f;
  --sl-ink: #ffffff;
  --sl-muted: #888888;
  --sl-line: rgba(255, 255, 255, 0.22);
  --sl-hover: rgba(255, 255, 255, 0.06);
}

.sl-backdrop {
  display: none;
}

.public-page::before { display: none; }

.smartlink-page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 1.5rem;
  background: var(--sl-bg);
  box-shadow: rgba(0, 0, 0, 0.7) 0 10px 25px -5px;
}

.sl-block {
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 1.25rem;
}

.sl-card {
  text-align: center;
  padding: 0;
}

.sl-card-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 0 1.25rem;
  line-height: 0;
}

.sl-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  display: block;
  transition: transform 0.4s ease;
}

.sl-card-image-wrap:hover .sl-card-image {
  transform: scale(1.02);
}

.sl-card-title,
.sl-card-text {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.sl-card-title {
  margin: 0 0 0.4rem;
  font-family: Inter, "Helvetica Neue", system-ui, sans-serif;
  font-size: clamp(1.55rem, 5.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-ink);
  line-height: 1.2;
}

.sl-card-text {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--sl-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 0 0 0.95rem;
  font-family: Inter, "Helvetica Neue", system-ui, sans-serif;
  font-weight: 500;
  color: var(--sl-muted);
}

.sl-empty {
  text-align: center;
  color: var(--sl-muted);
  margin: 0;
  font-size: 0.98rem;
}

.sl-divider {
  display: flex;
  justify-content: center;
  padding: 0.1rem 0;
  margin-bottom: 1.5rem;
}

.sl-divider span {
  display: block;
  height: 1px;
  width: 75%;
  background: color-mix(in srgb, var(--sl-muted) 35%, transparent);
}

.concert-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.concert-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.85rem;
  align-items: center;
}

.concert-item.has-ticket {
  grid-template-columns: 3.4rem 1fr minmax(6.5rem, auto);
}

.concert-poster-wrap {
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
  width: 3.4rem;
  height: 3.4rem;
}

.concert-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.concert-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  border: 1px solid var(--sl-line);
  border-radius: 2px;
  text-align: center;
  line-height: 1.1;
}

.concert-day {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sl-ink);
}

.concert-month {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-muted);
}

.concert-title {
  display: block;
  color: var(--sl-ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.concert-meta {
  margin-top: 0.2rem;
  color: var(--sl-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.concert-ticket {
  min-height: 2.6rem !important;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
}

.concert-ticket .platform-icon {
  display: none;
}

.artist-links-section {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.artist-links-section h3 {
  margin: 0 0 0.25rem;
}

.artist-pick-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.artist-pick-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-weight: 560;
  cursor: pointer;
}

.artist-pick-item input {
  margin: 0;
  width: auto;
}

.gallery-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.gallery-edit-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.gallery-edit-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-edit-item .remove-image-toggle {
  display: flex;
  justify-content: center;
  margin: 0.35rem;
}

.artist-public-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.artist-public-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.95rem;
  align-items: start;
  text-align: left;
}

.artist-public-photo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.artist-public-photo-empty {
  background: #1a1a1a;
}

.public-page[data-theme="light"] .artist-public-photo-empty {
  background: #ddd;
}

.artist-public-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-ink);
}

.artist-public-bio {
  margin: 0 0 0.75rem;
  color: var(--sl-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.artist-public-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}

.gallery-slider {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  position: relative;
}

.gallery-slide {
  display: none;
  margin: 0;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--sl-line);
  background: color-mix(in srgb, var(--sl-bg) 80%, transparent);
  color: var(--sl-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.gallery-prev { left: 0.55rem; }
.gallery-next { right: 0.55rem; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--sl-muted) 55%, transparent);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--sl-ink);
}

@media (max-width: 420px) {
  .artist-public-card {
    grid-template-columns: 4.25rem 1fr;
    gap: 0.75rem;
  }

  .artist-public-photo {
    width: 4.25rem;
    height: 4.25rem;
  }
}

.sl-links,
.modal-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sl-links.is-icons {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.2rem 0 0.4rem;
}

.sl-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.8rem 3rem;
  border: 1px solid var(--sl-line);
  border-radius: 2px;
  background: transparent;
  backdrop-filter: none;
  color: var(--sl-ink) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sl-link .platform-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--sl-ink);
}

.sl-link-label {
  display: block;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-link.is-icon-only {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sl-link.is-icon-only .platform-icon {
  position: static;
  transform: none;
  font-size: 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.92;
}

.sl-link:hover {
  transform: none;
  background: var(--sl-hover);
  box-shadow: none;
  color: var(--sl-ink) !important;
  border-color: color-mix(in srgb, var(--sl-ink) 45%, transparent);
}

.sl-link.is-icon-only:hover {
  background: transparent;
  border-color: transparent;
  opacity: 0.75;
}

.sl-code {
  overflow: hidden;
  border-radius: 0;
}

.sl-code iframe,
.sl-code img,
.sl-code video {
  max-width: 100%;
  border-radius: 0;
}

.releases-slider {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.1rem 0 0.55rem;
  margin: 0;
  scrollbar-width: none;
}

.releases-slider::-webkit-scrollbar { display: none; }

.release-card {
  flex: 0 0 8.5rem;
  scroll-snap-align: start;
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.release-card:hover {
  transform: none;
  opacity: 1;
}

.release-cover-wrap {
  display: block;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 0.5rem;
}

.release-cover {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  margin: 0;
  transition: transform 0.4s ease;
}

.release-cover-wrap:hover .release-cover {
  transform: scale(1.02);
}

.release-cover-empty {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  background: #1a1a1a;
}

.public-page[data-theme="light"] .release-cover-empty {
  background: #ddd;
}

.release-name {
  display: block;
  color: var(--sl-ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.release-date {
  display: block;
  margin-top: 0.18rem;
  color: var(--sl-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.public-footer {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 1.75rem auto 0;
  padding: 0;
  text-align: center;
  background: transparent;
}

.public-footer-copy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-muted);
  font-weight: 500;
}

.public-footer-brand {
  color: var(--sl-muted);
  font-weight: 500;
  text-decoration: none;
  background: none !important;
  background-image: none !important;
  transition: color 0.15s ease;
}

.public-footer-brand:hover {
  color: var(--sl-ink);
}

.public-footer a {
  color: var(--sl-muted);
  font-weight: 500;
  text-decoration: none;
  background: none !important;
  background-image: none !important;
}

.public-footer a:hover {
  color: var(--sl-ink);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 90;
  backdrop-filter: none;
}

.modal[hidden] { display: none !important; }

.modal-content {
  width: min(400px, 100%);
  position: relative;
  text-align: center;
  padding: 1.6rem 1.15rem 1.35rem;
  border-radius: 0;
  border: 1px solid var(--sl-line);
  background: var(--sl-bg);
  backdrop-filter: none;
  box-shadow: none;
  color: var(--sl-ink);
}

.modal-close {
  position: absolute;
  right: 0.55rem;
  top: 0.35rem;
  border: none;
  background: transparent;
  color: var(--sl-muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
}

.modal-close:hover { color: var(--sl-ink); }

.modal-cover {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: 0;
  margin: 0.5rem auto 1rem;
  display: block;
  box-shadow: none;
  border: none;
}

.modal-title {
  color: var(--sl-ink);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  font-family: Inter, "Helvetica Neue", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-date {
  color: var(--sl-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.modal-links { text-align: left; }


.container {
  max-width: 920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 900px) {
  .repeat-row,
  .repeat-row.link-row {
    grid-template-columns: 1fr;
  }

  .icon-picker { min-width: 0; }
}

@media (max-width: 520px) {
  html { font-size: 16px; }
  .brand { font-size: 1.45rem; }
  .header-inner { min-height: 4.1rem; }
}
