:root {
  --bg: #08060f;
  --bg-deep: #050409;
  --panel: rgba(22, 17, 34, 0.92);
  --panel-solid: #151021;
  --raised: rgba(38, 29, 58, 0.72);
  --line: rgba(173, 140, 255, 0.16);
  --line-soft: rgba(173, 140, 255, 0.09);
  --line-strong: rgba(173, 140, 255, 0.34);
  --sheen: rgba(255, 255, 255, 0.07);
  --text: #f4effc;
  --text-dim: #bcb0d0;
  --text-muted: #8b7fa3;
  --accent: #a855f7;
  --accent-bright: #cba6ff;
  --accent-deep: #6d28d9;
  --accent-wash: rgba(168, 85, 247, 0.13);
  --ok: #4ade80;
  --danger: #e2506f;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sidebar: 17.5rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(48rem 30rem at 82% -10%, rgba(124, 58, 237, 0.2), transparent 68%),
    radial-gradient(38rem 26rem at -8% 108%, rgba(168, 85, 247, 0.1), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}

button:not(:disabled) {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-deep);
  color: #fff;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  height: 100dvh;
  padding: 1.25rem 0.875rem;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(14, 10, 22, 0.86), rgba(8, 6, 14, 0.92));
  backdrop-filter: blur(0.75rem);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0.375rem;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.sidebar__brand b {
  font-weight: 700;
}

.sidebar__logo {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(140deg, #b06bff, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0.5rem 1.5rem rgba(109, 40, 217, 0.4);
  color: #fff;
}

.sidebar__logo svg {
  width: 1.125rem;
  height: 1.125rem;
}

.sidebar__new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  border: 1px solid rgba(203, 166, 255, 0.4);
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, #b06bff, var(--accent) 45%, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0.5rem 1.5rem rgba(109, 40, 217, 0.32);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.sidebar__new svg {
  width: 1rem;
  height: 1rem;
}

.sidebar__new:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0.75rem 2rem rgba(109, 40, 217, 0.45);
}

.sidebar__nav {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar__empty {
  padding: 0.75rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.nav-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-item:hover {
  background: var(--raised);
}

.nav-item--active {
  border-color: rgba(203, 166, 255, 0.45);
  background: var(--accent-wash);
  box-shadow: 0 0 1.5rem rgba(124, 58, 237, 0.22);
}

.nav-item__mark {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--raised);
}

.nav-item__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-item__letter {
  color: var(--accent-bright);
  font-weight: 700;
}

.nav-item__text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.nav-item__text b {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item__text small {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--text-muted);
}

.dot--live {
  background: var(--ok);
  box-shadow: 0 0 0.5rem rgba(74, 222, 128, 0.7);
}

.sidebar__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.sidebar__link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.8125rem;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.sidebar__link svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.sidebar__link:hover {
  background: var(--raised);
  color: var(--text);
}

.sidebar__logout {
  display: flex;
}

.scrim {
  display: none;
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 6, 15, 0.82);
  backdrop-filter: blur(0.75rem);
}

.topbar h1 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  gap: 0.5rem;
}

.burger {
  display: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--raised);
  cursor: pointer;
}

.burger svg {
  width: 1.125rem;
  height: 1.125rem;
}

.main {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.editor {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--sheen);
}

.editor__columns {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.editor__stack {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1280px) {
  .editor__columns {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}

.panel__head .panel__title {
  margin-bottom: 0;
}

.preview-panel {
  scroll-margin-top: 5rem;
}

.preview-panel__hint {
  margin: 1rem 0 0;
}

.lp-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: #101014;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.45);
}

.lp {
  --logo-scale: 1;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 84px 1fr;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  color: #f6f3fb;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  pointer-events: none;
  user-select: none;
}

.lp-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-right: 1px solid rgba(225, 214, 255, 0.065);
  background: #0e0e12;
}

.lp-rail__brand {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.lp-rail__divider {
  width: 28px;
  height: 1px;
  background: rgba(225, 214, 255, 0.12);
}

.lp-rail__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(225, 214, 255, 0.065);
  border-radius: 15px;
  background: #1b1921;
  color: #b2a8c5;
  font-size: 18px;
}

.lp-rail__item img {
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: inherit;
  object-fit: contain;
}

.lp-rail__item--active {
  border-color: #ae83ec88;
  background: linear-gradient(145deg, #413052, #282032);
  color: #eee0ff;
}

.lp-rail__item--active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #d2b6ff;
}

.lp-rail__bottom {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 214, 255, 0.065);
}

.lp-rail__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #918b9f;
}

.lp-rail__icon svg {
  width: 20px;
  height: 20px;
}

.lp-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.lp-stage__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-stage__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, #a476dc18, transparent 62%),
    linear-gradient(180deg, #10101455, #10101470 30%, #101014e8 88%);
}

.lp-titlebar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  height: 56px;
  padding: 0 22px;
  align-items: center;
}

.lp-titlebar i {
  width: 12px;
  height: 12px;
  border: 1.5px solid #b8b3c5;
  border-radius: 3px;
  opacity: 0.7;
}

.lp-stage__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 64px 32px;
  text-align: center;
}

.lp-logo {
  width: calc(448px * var(--logo-scale));
  height: calc(128px * var(--logo-scale));
  max-width: 90%;
  object-fit: contain;
  flex-shrink: 0;
  transition: width 120ms linear, height 120ms linear;
}

.lp-name {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ecdaff 0%, #c39bf5 55%, #a779ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-description {
  max-width: 512px;
  max-height: 170px;
  overflow: hidden;
  padding: 10px 18px;
  border: 1px solid rgba(225, 214, 255, 0.065);
  border-radius: 12px;
  background: rgba(12, 10, 18, 0.6);
  color: #f3eefb;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

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

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 192px;
  min-height: 52px;
  padding: 14px 32px;
  border: 1px solid #d1acff66;
  border-radius: 12px;
  background: linear-gradient(120deg, #b48aea, #986bd2);
  color: #17101f;
  font-size: 14px;
  font-weight: 650;
}

.lp-button svg {
  width: 18px;
  height: 18px;
}

.lp-price {
  padding: 6px 15px;
  border: 1px solid #a779ef55;
  border-radius: 999px;
  background: linear-gradient(145deg, #b184dc26, #b184dc0d);
  color: #ead9ff;
  font-size: 15px;
  font-weight: 650;
}

.lp-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 22px 28px 26px;
  border-top: 1px solid rgba(225, 214, 255, 0.065);
  background: #0d0d12b3;
}

.lp-strip__slot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(225, 214, 255, 0.12);
  border-radius: 12px;
  background: #19171f;
}

.lp-strip__slot img,
.lp-strip__slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.lp-strip__slot--empty {
  border-color: rgba(225, 214, 255, 0.065);
  background: linear-gradient(145deg, #a283c308, #a283c302);
}

.scale-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.scale-form__field {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 22rem;
  min-width: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.scale-form__field span {
  white-space: nowrap;
}

.scale-form__field input[type="range"] {
  flex: 1;
  min-width: 6rem;
  accent-color: var(--accent);
}

.scale-form__value {
  min-width: 3.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.scale-form__actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 560px) {
  .scale-form__field {
    flex-wrap: wrap;
  }
  .scale-form__actions {
    width: 100%;
  }
  .scale-form__actions .button {
    flex: 1;
  }
}

.panel--narrow {
  max-width: 34rem;
}

.panel--danger {
  border-color: rgba(226, 80, 111, 0.28);
}

.panel__title {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel__text {
  margin-bottom: 0.75rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.rule {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.flash {
  margin: 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 0.875rem;
}

.flash--ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: #d6ffe6;
}

.flash--warn {
  border-color: rgba(251, 191, 36, 0.35);
  color: #ffe9bd;
}

.flash--error {
  border-color: rgba(226, 80, 111, 0.45);
  color: #ffc5d1;
}

.flash + .flash {
  margin-top: 0.5rem;
}

.form {
  display: grid;
  gap: 0.875rem;
}

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

.field > span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.field__hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.875rem;
}

.input,
input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(6, 5, 12, 0.6);
  box-shadow: inset 0 1px 0.25rem rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcb0d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  cursor: pointer;
}

select option {
  background: #151021;
  color: var(--text);
}

.field__warn {
  color: #ffb4c2;
  font-weight: 600;
}

.levels-refresh {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

.input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0.25rem rgba(0, 0, 0, 0.35), 0 0 0 0.1875rem rgba(168, 85, 247, 0.18);
  outline: none;
}

input[type="file"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(6, 5, 12, 0.45);
  color: var(--text-dim);
  font-size: 0.8125rem;
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4375rem;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form__stamp {
  margin-right: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease),
    border-color 160ms var(--ease), background 160ms var(--ease);
}

.button svg {
  width: 1rem;
  height: 1rem;
}

.button:disabled {
  opacity: 0.5;
}

.button--primary {
  border: 1px solid rgba(203, 166, 255, 0.45);
  background: linear-gradient(140deg, #b06bff, var(--accent) 45%, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0.5rem 1.5rem rgba(109, 40, 217, 0.35);
  color: #fff;
}

.button--primary:not(:disabled):hover {
  transform: translateY(-1px);
}

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

.button--ghost:not(:disabled):hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.button--danger {
  border: 1px solid rgba(226, 80, 111, 0.45);
  background: rgba(226, 80, 111, 0.12);
  color: #ffc5d1;
}

.button--danger:not(:disabled):hover {
  background: rgba(226, 80, 111, 0.22);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--raised);
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}

.icon-button svg {
  width: 1rem;
  height: 1rem;
}

.icon-button:not(:disabled):hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.icon-button:disabled {
  opacity: 0.35;
}

.icon-button--danger:not(:disabled):hover {
  border-color: rgba(226, 80, 111, 0.5);
  color: #ffc5d1;
}

.switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.switch__track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(6, 5, 12, 0.6);
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.switch input:checked + .switch__track {
  border-color: rgba(203, 166, 255, 0.6);
  background: linear-gradient(140deg, #b06bff, var(--accent-deep));
}

.switch input:checked + .switch__track::after {
  background: #fff;
  transform: translateX(1.1875rem);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.switch__text {
  display: grid;
  line-height: 1.35;
}

.switch__text small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.upload {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.875rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.875rem;
}

.card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--raised);
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(6, 5, 12, 0.6);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__blank {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(139, 127, 163, 0.5);
}

.card__blank svg {
  width: 2rem;
  height: 2rem;
}

.card__body {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem;
}

.card__body b {
  font-size: 0.9375rem;
}

.card__body small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.tag {
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.tag--live {
  border-color: rgba(74, 222, 128, 0.35);
  color: #a9f5c6;
}

.slot {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.slot__preview {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(6, 5, 12, 0.6);
  object-fit: contain;
}

.slot__file {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: rgba(139, 127, 163, 0.6);
}

.slot__file svg {
  width: 2rem;
  height: 2rem;
}

.slot__side {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.slot__meta {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

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

.media__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(6, 5, 12, 0.35);
}

.media__thumb {
  display: block;
  width: 6rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.4375rem;
  background: rgba(6, 5, 12, 0.6);
}

.media__thumb img,
.media__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__info {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.media__info b {
  font-size: 0.875rem;
}

.media__info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.media__tools {
  display: flex;
  gap: 0.375rem;
}

.rows {
  display: grid;
  gap: 0.375rem;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(6, 5, 12, 0.35);
}

.row__main {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.row__main b {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__main small,
.row__side {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.row__side {
  text-align: right;
  white-space: nowrap;
}

.body--login {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  display: grid;
  justify-items: stretch;
  gap: 0.875rem;
  width: min(100%, 23rem);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(124, 58, 237, 0.22), transparent 62%),
    linear-gradient(170deg, rgba(32, 25, 48, 0.96), rgba(17, 13, 26, 0.97));
  box-shadow: var(--shadow), inset 0 1px 0 var(--sheen);
  text-align: center;
}

.login-card__logo {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(203, 166, 255, 0.45);
  border-radius: 1rem;
  background: linear-gradient(140deg, #b06bff, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 2.5rem rgba(124, 58, 237, 0.4);
  color: #fff;
}

.login-card__logo svg {
  width: 1.75rem;
  height: 1.75rem;
}

.login-card h1 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-card__hint {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.login-card form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  text-align: left;
}

.login-card .flash {
  margin: 0;
}

.button--small {
  min-height: 2.25rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

.tag--level {
  border-color: rgba(203, 166, 255, 0.4);
  color: var(--accent-bright);
}

.youtube-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.youtube-form__field {
  flex: 1 1 20rem;
  min-width: 0;
}

.media__thumb {
  position: relative;
}

.media__badge {
  position: absolute;
  left: 0.25rem;
  bottom: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
  background: #e0242bee;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.media__info small a {
  color: var(--accent-bright);
  overflow-wrap: anywhere;
}

.lp-strip__slot {
  position: relative;
}

.lp-strip__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.lp-strip__play svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: #14111dbb;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: min(var(--sidebar), 84vw);
    transform: translateX(-102%);
    transition: transform 240ms var(--ease);
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: block;
    background: rgba(4, 3, 8, 0.6);
    backdrop-filter: blur(0.25rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease);
  }

  .nav-toggle:checked ~ .shell .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .shell .scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: grid;
  }

  .main,
  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .flash {
    margin: 0 1rem;
  }

  .slot {
    grid-template-columns: minmax(0, 1fr);
  }

  .slot__side {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .main {
    gap: 0.75rem;
    padding: 1rem 0.75rem;
  }

  .panel {
    padding: 1rem;
  }

  .topbar {
    padding: 0.75rem;
  }

  .flash {
    margin: 0 0.75rem;
  }

  .copy-row,
  .option__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .media__item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "thumb info" "tools tools";
  }

  .media__thumb {
    grid-area: thumb;
  }

  .media__info {
    grid-area: info;
  }

  .media__tools {
    grid-area: tools;
    justify-content: flex-end;
  }

  .slot__side {
    grid-auto-flow: row;
    justify-items: stretch;
  }

  .slot__side .button {
    width: 100%;
  }

  .form__actions {
    justify-content: stretch;
  }

  .form__actions .button {
    flex: 1;
  }

  .upload {
    flex-direction: column;
    align-items: stretch;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .row__side {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
