:root {
  --bg: #07111a;
  --panel: rgba(10, 18, 29, 0.78);
  --panel-border: rgba(130, 175, 198, 0.16);
  --text: #eff6f9;
  --muted: #8ba2b3;
  --accent: #9ff07e;
  --warning: #ffc857;
  --danger: #ff7c72;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(107, 226, 63, 0.17), transparent 32%),
    radial-gradient(circle at bottom right, rgba(84, 187, 255, 0.16), transparent 28%),
    linear-gradient(145deg, #050b11, #07111a 42%, #091722 100%);
  color: var(--text);
}

body {
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.admin-body {
  padding: 28px;
}

.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 32px 0;
}

.auth-card {
  padding: 28px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tabs [data-active="true"] {
  border-color: rgba(159, 240, 126, 0.36);
  background: rgba(159, 240, 126, 0.12);
}

.studio-topbar {
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.studio-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.studio-topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.marketplace-panel,
.dashboard-card {
  padding: 28px;
}

.plans-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

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

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

.plan-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-card h3,
.dashboard-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.hero {
  padding: 34px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  color: var(--accent);
}

.hero h1,
.section-head h2,
.wall-card h3 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.hero-copy,
.section-head p,
.meta-line,
.field small,
.inline-feedback,
.player-overlay span {
  color: var(--muted);
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-metrics {
  display: grid;
  gap: 16px;
}

.metric {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.metric span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 700;
}

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

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.studio-device-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.form-panel,
.panel:not(.hero) {
  padding: 28px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.field,
.field-row {
  display: grid;
  gap: 10px;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field span,
.layout-head h3 {
  font-size: 0.92rem;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="url"],
textarea,
select,
input[type="file"],
.url-row input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(3, 9, 16, 0.6);
  color: var(--text);
  font: inherit;
}

input[type="file"] {
  padding: 12px 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(159, 240, 126, 0.3);
  border-color: rgba(159, 240, 126, 0.55);
}

.layout-box {
  margin: 20px 0 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.layout-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.layout-head h3 {
  margin: 0;
}

.layout-preview,
.mini-grid {
  display: grid;
  gap: 10px;
}

.wall-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.spec-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.spec-pill strong,
.spec-pill span {
  display: block;
}

.spec-pill span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.layout-cell,
.mini-cell {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(159, 240, 126, 0.22), rgba(159, 240, 126, 0.08)),
    rgba(7, 17, 26, 0.82);
  border: 1px solid rgba(159, 240, 126, 0.2);
  font-weight: 700;
}

.layout-cell-empty,
.mini-cell-empty {
  background: rgba(255, 255, 255, 0.025);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
}

.primary-button,
.secondary-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.primary-button {
  width: 100%;
  border: 0;
  color: #09110f;
  background: linear-gradient(135deg, var(--accent), #d5ff77);
}

.secondary-button,
.ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.danger-button {
  border-color: rgba(255, 124, 114, 0.22);
  color: #ffd3cf;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.inline-feedback {
  min-height: 1.2em;
  margin: 14px 0 0;
}

.inline-feedback[data-type="success"] {
  color: var(--accent);
}

.inline-feedback[data-type="error"] {
  color: var(--danger);
}

.wall-list {
  display: grid;
  gap: 18px;
}

.device-directory-panel,
.device-workspace-panel {
  min-height: 100%;
}

.device-directory-list,
.playlist-library-list,
.device-workspace {
  display: grid;
  gap: 12px;
}

.device-directory-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.device-directory-item:hover {
  transform: translateY(-1px);
  border-color: rgba(159, 240, 126, 0.24);
}

.device-directory-item strong {
  font-size: 1rem;
}

.device-directory-item small {
  color: var(--muted);
}

.device-directory-item-active {
  border-color: rgba(159, 240, 126, 0.34);
  background: rgba(159, 240, 126, 0.09);
  box-shadow: inset 0 0 0 1px rgba(159, 240, 126, 0.12);
}

.device-directory-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.device-card {
  display: grid;
  gap: 18px;
}

.wall-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.wall-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 24px;
  margin-bottom: 18px;
}

.wall-card h3 {
  font-size: 1.45rem;
}

.wall-subsection {
  margin-top: 18px;
}

.playlist-create-form,
.playlist-library-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-library-item-active {
  border-color: rgba(159, 240, 126, 0.34);
  background: rgba(159, 240, 126, 0.09);
}

.playlist-library-item small {
  color: var(--muted);
}

.playlist-name-input {
  width: 100%;
}

.wall-subsection-head {
  margin-bottom: 12px;
}

.wall-subsection-head h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.wall-subsection-head p {
  margin: 0;
  color: var(--muted);
}

.meta-line {
  margin: 8px 0 0;
}

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

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.toggle-row input {
  width: auto;
  margin: 0;
}

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.url-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.slide-list {
  display: grid;
  gap: 10px;
}

.slide-chip {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(4, 10, 17, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.slide-chip-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.slide-chip-active {
  border-color: rgba(159, 240, 126, 0.32);
  box-shadow: inset 0 0 0 1px rgba(159, 240, 126, 0.12);
}

.slide-chip strong,
.slide-chip small,
.slide-chip span {
  display: block;
}

.slide-chip small,
.slide-chip span {
  color: var(--muted);
}

.slide-chip-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  min-width: 120px;
}

.slide-form {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slide-edit-form {
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.screens-targets {
  margin-bottom: 16px;
}

.screen-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screen-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-check input {
  width: auto;
  margin: 0;
}

.compact-button {
  width: auto;
}

.compact {
  padding: 14px;
}

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(4, 10, 17, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.url-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.editor-body {
  padding: 22px;
}

.editor-shell {
  position: relative;
  z-index: 1;
  width: min(1680px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.editor-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding: 24px 28px;
}

.editor-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
}

.editor-topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.editor-sidebar,
.editor-workspace {
  padding: 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tool-grid .secondary-button {
  min-height: 42px;
}

.layer-list {
  display: grid;
  gap: 10px;
}

.layer-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(4, 10, 17, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.layer-item-active {
  border-color: rgba(159, 240, 126, 0.32);
  box-shadow: inset 0 0 0 1px rgba(159, 240, 126, 0.12);
}

.layer-item-main {
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.layer-item-main strong,
.layer-item-main small {
  display: block;
}

.layer-item-main small {
  margin-top: 4px;
  color: var(--muted);
}

.editor-workspace {
  min-height: 72vh;
}

.editor-viewport {
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-stage,
.design-canvas {
  position: relative;
}

.design-canvas {
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.editor-layer {
  position: absolute;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: move;
}

.editor-layer-active {
  outline: 2px solid rgba(159, 240, 126, 0.82);
  outline-offset: -2px;
}

.editor-layer-media,
.editor-layer-overlay,
.editor-layer-content {
  position: absolute;
  inset: 0;
}

.editor-layer-media {
  width: 100%;
  height: 100%;
}

.editor-layer-fit-cover {
  object-fit: cover;
}

.editor-layer-fit-contain {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

.editor-layer-text .editor-layer-content,
.editor-layer-widget .editor-layer-content {
  position: relative;
  inset: auto;
}

.editor-layer-media-box,
.editor-layer-widget,
.editor-layer-text {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.editor-layer-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.editor-resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  cursor: nwse-resize;
}

.editor-inspector {
  display: grid;
  gap: 16px;
}

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

.inspector-panel {
  display: grid;
  gap: 14px;
}

.layer-actions {
  margin-top: -4px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.slide-settings-form {
  display: grid;
  gap: 0;
}

.layer-anim-fade {
  animation: editor-fade-in 320ms ease;
}

.layer-anim-slide-up {
  animation: editor-slide-up 420ms ease;
}

.layer-anim-slide-left {
  animation: editor-slide-left 420ms ease;
}

.layer-anim-zoom-in {
  animation: editor-zoom-in 420ms ease;
}

.layer-anim-pulse {
  animation: editor-pulse 1.6s ease-in-out infinite;
}

@keyframes editor-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes editor-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes editor-slide-left {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes editor-zoom-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes editor-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.empty-state {
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.player-body {
  overflow: hidden;
  background: #000;
}

.player-app,
.media-stage {
  position: fixed;
  inset: 0;
}

.media-stage {
  overflow: hidden;
  background: #000;
}

.wall-media {
  position: absolute;
  display: block;
}

.wall-media-fade {
  animation: media-fade-in 320ms ease;
}

@keyframes media-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.player-status {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  max-width: min(60ch, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.player-status[data-tone="success"] {
  border-color: rgba(159, 240, 126, 0.34);
}

.player-status[data-tone="warning"] {
  border-color: rgba(255, 200, 87, 0.34);
}

.player-status[data-tone="error"] {
  border-color: rgba(255, 124, 114, 0.38);
}

.player-overlay {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  min-width: min(320px, calc(100vw - 40px));
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.player-overlay strong {
  font-size: 1.15rem;
}

.player-screen-tag {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(159, 240, 126, 0.34);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hidden {
  display: none;
}

.editor-body {
  --editor-bg: #f4f8fc;
  --editor-surface: #ffffff;
  --editor-surface-alt: #f8fbff;
  --editor-border: #d8e4f0;
  --editor-text: #15314d;
  --editor-muted: #67819a;
  --editor-blue: #1766e7;
  --editor-blue-soft: #eaf2ff;
  --editor-orange: #ff8a2a;
  --editor-orange-soft: #fff1e2;
  padding: 22px;
  color: var(--editor-text);
  background:
    radial-gradient(circle at top left, rgba(23, 102, 231, 0.11), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 138, 42, 0.14), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fc 55%, #eef4fb 100%);
}

.editor-body .noise {
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(17, 65, 128, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 65, 128, 0.08) 1px, transparent 1px);
}

.editor-body .panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--editor-border);
  box-shadow: 0 18px 48px rgba(22, 48, 82, 0.08);
  backdrop-filter: blur(10px);
}

.editor-body .eyebrow,
.editor-body .card-kicker {
  color: var(--editor-blue);
}

.editor-body .hero-copy,
.editor-body .section-head p,
.editor-body .meta-line,
.editor-body .field small,
.editor-body .inline-feedback {
  color: var(--editor-muted);
}

.editor-body .primary-button,
.editor-body .secondary-button,
.editor-body .ghost-link {
  min-height: 44px;
  font-weight: 700;
}

.editor-body .primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--editor-orange), #ffaf5f);
  box-shadow: 0 10px 26px rgba(255, 138, 42, 0.22);
}

.editor-body .secondary-button,
.editor-body .ghost-link {
  color: var(--editor-text);
  background: var(--editor-surface);
  border: 1px solid var(--editor-border);
}

.editor-body .secondary-button:hover,
.editor-body .ghost-link:hover,
.editor-body .primary-button:hover {
  transform: translateY(-1px);
}

.editor-body input[type="text"],
.editor-body input[type="number"],
.editor-body input[type="url"],
.editor-body textarea,
.editor-body select,
.editor-body input[type="file"] {
  border-color: var(--editor-border);
  background: var(--editor-surface);
  color: var(--editor-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.editor-body input:focus,
.editor-body textarea:focus,
.editor-body select:focus {
  outline: 2px solid rgba(23, 102, 231, 0.16);
  border-color: rgba(23, 102, 231, 0.5);
}

.editor-body .editor-shell {
  width: min(1800px, 100%);
  gap: 18px;
}

.editor-body .editor-topbar {
  padding: 30px 32px;
  background:
    linear-gradient(135deg, rgba(23, 102, 231, 0.08), rgba(255, 138, 42, 0.07)),
    rgba(255, 255, 255, 0.98);
}

.editor-body .editor-topbar h1 {
  color: var(--editor-text);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.editor-layout-rail {
  padding: 24px 28px;
}

.editor-layout-rail-head {
  margin-bottom: 16px;
}

.editor-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 102, 231, 0.16);
  background: var(--editor-blue-soft);
  color: var(--editor-blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.editor-badge-accent {
  border-color: rgba(255, 138, 42, 0.2);
  background: var(--editor-orange-soft);
  color: #bb5d09;
}

.layout-library {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 170px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.layout-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 164px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--editor-border);
  background: var(--editor-surface);
  color: var(--editor-text);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.layout-card:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 102, 231, 0.28);
  box-shadow: 0 12px 24px rgba(18, 80, 171, 0.08);
}

.layout-card-active {
  border-color: rgba(255, 138, 42, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.12);
}

.layout-card-custom {
  background:
    linear-gradient(135deg, rgba(23, 102, 231, 0.04), rgba(255, 138, 42, 0.05)),
    var(--editor-surface);
}

.layout-card strong {
  font-size: 0.95rem;
}

.layout-card small {
  color: var(--editor-muted);
  line-height: 1.35;
}

.layout-card-grid {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 6px;
  border-radius: 14px;
  background: #f5f9ff;
  border: 1px solid rgba(23, 102, 231, 0.08);
}

.layout-card-cell {
  min-height: 18px;
  border-radius: 8px;
  border: 1px solid #d3dfea;
  background: #fff;
}

.layout-card-cell-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--editor-blue), #5c9dff);
}

.editor-body .editor-layout {
  grid-template-columns: 320px minmax(0, 1fr) 390px;
  gap: 18px;
}

.editor-body .editor-sidebar,
.editor-body .editor-workspace {
  padding: 24px;
}

.editor-body .editor-sidebar,
.editor-body .editor-inspector {
  position: sticky;
  top: 14px;
}

.editor-body .tool-grid {
  gap: 12px;
}

.editor-body .tool-grid .secondary-button {
  min-height: 50px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
}

.editor-body .layer-list {
  gap: 12px;
}

.editor-body .layer-item {
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid var(--editor-border);
  box-shadow: 0 10px 18px rgba(15, 60, 124, 0.04);
}

.editor-body .layer-item-active {
  border-color: rgba(23, 102, 231, 0.42);
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  box-shadow: inset 0 0 0 1px rgba(23, 102, 231, 0.08);
}

.editor-body .editor-workspace {
  min-height: 78vh;
}

.editor-canvas-sidecopy {
  max-width: 260px;
  text-align: right;
}

.editor-canvas-sidecopy strong {
  display: block;
  color: var(--editor-blue);
}

.editor-canvas-sidecopy p {
  margin: 6px 0 0;
  color: var(--editor-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.editor-body .editor-viewport {
  min-height: 74vh;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--editor-border);
  background:
    linear-gradient(90deg, rgba(23, 102, 231, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 102, 231, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.editor-body .design-canvas {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(24, 54, 90, 0.14);
}

.editor-screen-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.editor-screen-guide {
  position: absolute;
  border: 1px dashed rgba(23, 102, 231, 0.24);
  background: rgba(23, 102, 231, 0.035);
}

.editor-screen-guide span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--editor-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.editor-body .editor-layer {
  border-radius: 18px;
}

.editor-body .editor-layer-active {
  outline: 2px solid rgba(255, 138, 42, 0.88);
  outline-offset: -2px;
  box-shadow: 0 0 0 5px rgba(255, 138, 42, 0.14);
}

.editor-body .editor-layer-background {
  border-radius: 0;
}

.editor-body .editor-layer-media-box,
.editor-body .editor-layer-widget,
.editor-body .editor-layer-text {
  border: 1px solid rgba(23, 102, 231, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 18px rgba(15, 79, 191, 0.08);
}

.editor-body .editor-layer-fit-contain {
  background: linear-gradient(180deg, #f5f8fc, #eef4fb);
}

.editor-body .editor-layer-placeholder {
  color: var(--editor-muted);
  background: linear-gradient(180deg, #f7fbff, #edf4fb);
}

.editor-body .editor-resize-handle {
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--editor-blue), var(--editor-orange));
  box-shadow: 0 6px 14px rgba(23, 102, 231, 0.18);
}

.editor-body .preset-row {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--editor-border);
}

.editor-body .screen-check {
  background: #fff;
  border-color: var(--editor-border);
}

.editor-body .screen-check:has(input:checked) {
  border-color: rgba(23, 102, 231, 0.36);
  background: var(--editor-blue-soft);
}

.editor-body .inspector-panel {
  padding-top: 4px;
}

.editor-body .layer-actions {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--editor-border);
}

.editor-body .empty-state {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-color: var(--editor-border);
  color: var(--editor-muted);
}

.editor-body .inline-feedback[data-type="success"] {
  color: var(--editor-blue);
}

.editor-body .inline-feedback[data-type="error"] {
  color: #c25a00;
}

.editor-body .inline-feedback[data-type="neutral"] {
  color: var(--editor-muted);
}

.site-public-body {
  --site-bg: #f6f9fd;
  --site-panel: rgba(255, 255, 255, 0.94);
  --site-border: #d8e5f4;
  --site-text: #17324d;
  --site-muted: #667f98;
  --site-blue: #1d5fd1;
  --site-blue-deep: #123b86;
  --site-orange: #ff8b2d;
  --site-orange-deep: #e86f00;
  padding: 20px;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(29, 95, 209, 0.1), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 139, 45, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfdff 0%, #f6f9fd 50%, #eef4fb 100%);
}

.site-public-body .noise {
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(17, 65, 128, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 65, 128, 0.08) 1px, transparent 1px);
}

.site-public-body .panel {
  background: var(--site-panel);
  border: 1px solid var(--site-border);
  box-shadow: 0 22px 52px rgba(17, 53, 102, 0.09);
  backdrop-filter: blur(10px);
}

.site-public-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  width: min(1380px, 100%);
  margin: 0 auto 22px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--site-text);
  text-decoration: none;
}

.site-brand img {
  width: 58px;
  height: 58px;
  padding: 6px;
  border-radius: 18px;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(29, 95, 209, 0.1), rgba(255, 139, 45, 0.12)),
    #fff;
  border: 1px solid rgba(29, 95, 209, 0.08);
}

.site-brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.site-brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-brand-copy small {
  color: var(--site-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--site-border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-blue-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--site-text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  background: rgba(29, 95, 209, 0.06);
  border-color: rgba(29, 95, 209, 0.1);
}

.site-nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), #ffab59);
  box-shadow: 0 10px 24px rgba(255, 139, 45, 0.22);
}

.site-nav-cta:hover {
  background: linear-gradient(135deg, var(--site-orange), #ffab59);
  border-color: transparent;
}

.site-hero,
.site-section,
.site-cta,
.site-footer {
  padding: 30px;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.site-kicker {
  margin: 0 0 12px;
  color: var(--site-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-hero-copy h1,
.site-section-head h2,
.site-cta h2 {
  margin: 0;
  line-height: 1.02;
}

.site-hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.site-hero-text,
.site-provider-line,
.site-section-head p,
.site-service-card p,
.site-flow-step p,
.site-footer p,
.site-cta-copy,
.site-wall-caption {
  color: var(--site-muted);
  line-height: 1.65;
}

.site-hero-text {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.04rem;
}

.site-provider-line {
  margin: 14px 0 0;
  font-size: 0.96rem;
}

.site-provider-line strong {
  color: var(--site-blue-deep);
}

.site-hero-badges,
.site-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-hero-badges {
  margin-top: 18px;
}

.site-badge,
.site-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--site-border);
  color: var(--site-blue-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-badge-accent,
.site-chip:nth-child(2n) {
  background: rgba(255, 139, 45, 0.1);
  border-color: rgba(255, 139, 45, 0.18);
  color: var(--site-orange-deep);
}

.site-hero-showcase {
  display: grid;
  gap: 18px;
}

.site-showcase-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(29, 95, 209, 0.05), rgba(255, 139, 45, 0.05)),
    #fff;
  border: 1px solid var(--site-border);
}

.site-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.site-showcase-head span {
  color: var(--site-orange-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-showcase-head strong {
  font-size: 1rem;
}

.site-showcase-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #fff;
  object-fit: cover;
}

.site-stat-grid,
.site-service-grid,
.site-media-grid,
.site-flow-grid {
  display: grid;
  gap: 14px;
}

.site-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-stat-card,
.site-service-card,
.site-media-card,
.site-flow-step {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--site-border);
}

.site-stat-card strong,
.site-service-card strong,
.site-media-card strong,
.site-flow-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.site-stat-card span {
  color: var(--site-muted);
  line-height: 1.55;
}

.site-section {
  display: grid;
  gap: 22px;
}

.site-section-head {
  max-width: 70ch;
}

.site-section-head p {
  margin: 12px 0 0;
}

.site-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.site-copy-block {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(29, 95, 209, 0.06), rgba(255, 139, 45, 0.06)),
    #fff;
  border: 1px solid var(--site-border);
}

.site-bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
  color: var(--site-text);
  line-height: 1.6;
}

.site-wall-preview {
  display: grid;
  gap: 16px;
}

.site-wall-grid {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid var(--site-border);
}

.site-wall-grid span {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--site-blue), #5e98ff);
}

.site-wall-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-wall-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-wall-grid-2x2 span:nth-child(3),
.site-wall-grid-2x2 span:nth-child(4) {
  background: linear-gradient(135deg, var(--site-orange), #ffb25f);
}

.site-service-grid,
.site-media-grid,
.site-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-media-card,
.site-flow-step {
  display: grid;
  gap: 12px;
}

.site-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(29, 95, 209, 0.1);
  color: var(--site-blue);
  font-weight: 800;
}

.site-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(29, 95, 209, 0.08), rgba(255, 139, 45, 0.08)),
    #fff;
}

.site-cta-copy {
  margin: 12px 0 0;
  max-width: 52ch;
}

.site-footer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.site-footer img {
  width: 100%;
  max-width: 180px;
  object-fit: contain;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer small {
  color: var(--site-muted);
}

@media (max-width: 980px) {
  .admin-body {
    padding: 18px;
  }

  .editor-body {
    padding: 16px;
  }

  .hero,
  .admin-grid,
  .studio-device-grid,
  .dashboard-grid,
  .plans-grid,
  .editor-layout,
  .editor-topbar,
  .studio-topbar,
  .wall-card-top,
  .url-row,
  .field-row,
  .slide-chip,
  .wall-specs,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .section-head-inline {
    flex-direction: column;
  }

  .editor-topbar {
    display: grid;
  }

  .url-row {
    align-items: stretch;
  }

  .slide-chip-header,
  .slide-chip-meta {
    display: grid;
    text-align: left;
    min-width: 0;
  }

  .site-public-body {
    padding: 16px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .site-menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--site-border);
    box-shadow: 0 18px 40px rgba(17, 53, 102, 0.08);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .site-hero,
  .site-two-column,
  .site-service-grid,
  .site-media-grid,
  .site-flow-grid,
  .site-cta,
  .site-footer,
  .site-stat-grid {
    grid-template-columns: 1fr;
  }

  .site-hero,
  .site-section,
  .site-cta,
  .site-footer {
    padding: 22px;
  }

  .site-brand-copy small {
    white-space: normal;
  }
}

@media (max-width: 1280px) {
  .editor-body .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-body .editor-sidebar,
  .editor-body .editor-inspector {
    position: static;
  }

  .editor-canvas-sidecopy {
    max-width: none;
    text-align: left;
  }
}
