html, body {
  margin: 0;
  background: #fff;
}

.lnl-pres [hidden] {
  display: none !important;
}

.lnl-pres-note {
  max-width: 640px;
  margin: 10px 0 0;
  font-family: Nunito, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.lnl-pres-note a {
  color: #0784c8;
}

.lnl-pres-library {
  background:
    radial-gradient(900px 420px at 100% -10%, #fff 0%, transparent 60%),
    #d3eeff;
  color: #111;
}

.lnl-pres-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.lnl-pres-eyebrow {
  margin: 0 0 12px;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.lnl-pres-library h1 {
  margin: 0;
  font-family: Anton, sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lnl-pres-lead {
  max-width: 640px;
  margin: 18px 0 0;
  font-family: Nunito, sans-serif;
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 650;
}

.lnl-pres-library h2 {
  margin: 42px 0 16px;
  font-family: Anton, sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lnl-pres-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lnl-pres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.deck-card {
  display: flex;
  flex-direction: column;
  background: #fff9ec;
  border: 4px solid #111;
  box-shadow: 8px 8px 0 #111;
  min-width: 0;
}

.deck-card .thumb-clip {
  width: 100%;
  overflow: hidden;
  background: #10233f;
  border-bottom: 4px solid #111;
  pointer-events: none;
}

.deck-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  font-family: Nunito, sans-serif;
}

.deck-card h3 {
  margin: 0;
  font-family: Anton, sans-serif;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
}

.deck-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.deck-card .meta {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.62;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.lnl-pres-btn,
.lnl-pres-fields button,
.lnl-pres-slide-tools button,
.stage-nav button {
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1.2;
}

.lnl-pres-btn:hover,
.lnl-pres-fields button:hover,
.lnl-pres-slide-tools button:hover,
.stage-nav button:hover {
  background: #111;
  color: #fff;
}

.lnl-pres-btn--solid,
.lnl-pres-studio .lnl-pres-btn--solid {
  background: #f6c33c;
  color: #111;
}

.lnl-pres-btn--solid:hover {
  background: #111;
  color: #f6c33c;
}

.lnl-pres-btn:disabled,
.lnl-pres-slide-tools button:disabled,
.stage-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.lnl-pres-studio {
  height: 100dvh;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 320px;
  grid-template-rows: 60px minmax(0, 1fr);
  grid-template-areas:
    "bar bar bar"
    "film stage fields";
  background: #101114;
  color: #fff;
}

.lnl-pres-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #0c1220;
  border-bottom: 1px solid #24324a;
  position: relative;
  z-index: 4;
}

.lnl-pres-title {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 8px;
}

.lnl-pres-title:focus {
  outline: 2px solid #f6c33c;
  border-radius: 8px;
}

.lnl-pres-status {
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #9eb0cc;
  white-space: nowrap;
}

.lnl-pres-add {
  position: absolute;
  top: 54px;
  left: 250px;
  z-index: 6;
  background: #fff9ec;
  color: #111;
  border: 3px solid #111;
  box-shadow: 8px 8px 0 #111;
  border-radius: 16px;
  padding: 8px;
  display: grid;
  gap: 6px;
  width: min(240px, calc(100vw - 24px));
}

.lnl-pres-add button {
  text-align: left;
  border-radius: 10px;
  background: #fff;
}

.lnl-pres-film {
  grid-area: film;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0c0e12;
}

.thumb {
  width: 176px;
  height: 99px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #1b2433;
  cursor: pointer;
  appearance: none;
}

.thumb.is-current {
  border-color: #f6c33c;
}

.thumb-scale {
  width: 1280px;
  height: 720px;
  transform: scale(0.1375);
  transform-origin: top left;
  pointer-events: none;
}

.stage-frame {
  grid-area: stage;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px 16px 68px;
  background:
    radial-gradient(700px 380px at 70% 20%, rgba(246, 195, 60, 0.16), transparent 60%),
    #171b22;
}

.stage-sizer {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.stage-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: top left;
}

.stage-nav {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stage-nav button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  border-color: transparent;
  font-size: 18px;
}

.stage-nav button:hover:not(:disabled) {
  background: #f6c33c;
  color: #111;
}

.stage-nav span {
  min-width: 72px;
  text-align: center;
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lnl-pres-fields {
  grid-area: fields;
  overflow: auto;
  padding: 16px 16px 28px;
  background: #121820;
  border-left: 1px solid #24324a;
  font-family: Nunito, sans-serif;
}

.lnl-pres-fields-head p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9eb0cc;
}

.lnl-pres-slide-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.lnl-pres-slide-tools button,
.lnl-pres-fields .lnl-pres-btn {
  background: #1c2636;
  color: #fff;
  border-color: #31445f;
}

.lnl-pres-slide-tools button:hover,
.lnl-pres-fields .lnl-pres-btn:hover {
  background: #f6c33c;
  color: #111;
  border-color: #f6c33c;
}

.lnl-pres-themes {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}

.lnl-pres-themes button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #31445f;
}

.lnl-pres-themes button[aria-checked="true"] {
  box-shadow: 0 0 0 2px #f6c33c;
}

.lnl-pres-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c5d2e4;
}

.lnl-pres-field input,
.lnl-pres-field textarea,
.lnl-pres-field select,
.item-editor input,
.item-editor textarea {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #142033;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}

.lnl-pres-field textarea,
.item-editor textarea {
  resize: vertical;
  min-height: 72px;
}

.item-editor {
  background: #1c2636;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
  display: grid;
  gap: 6px;
}

.item-editor .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9eb0cc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lnl-pres-photo-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.lnl-pres-notes textarea {
  min-height: 96px;
}

.slide {
  width: 1280px;
  height: 720px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px 56px 34px;
  background: #fff9ec;
  color: #172033;
  font-family: Nunito, sans-serif;
}

.slide > * {
  position: relative;
  z-index: 1;
}

.slide .blob,
.slide .star,
.slide .photo-slot {
  position: absolute;
  z-index: 0;
}

.blob {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  right: -120px;
  top: -140px;
  background: #d3eeff;
}

.star {
  right: 78px;
  top: 78px;
  z-index: 2;
  font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 54px;
  line-height: 1;
  color: #f6c33c;
}

.slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.stamp,
.label,
.kicker,
.pill,
.by,
.check-no {
  font-weight: 800;
}

.stamp {
  display: inline-block;
  background: #111;
  color: #f6c33c;
  border-radius: 999px;
  padding: 8px 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

.label,
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  opacity: 0.72;
}

.copy {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
}

.copy.center {
  margin: auto 0;
  max-width: 980px;
}

.display {
  margin: 0;
  font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.layout-statement .display {
  font-size: 92px;
}

.layout-close .display,
.layout-stats .display,
.layout-cards .display,
.layout-checklist .display {
  font-size: 64px;
}

.accent-line {
  margin: 14px 0 0;
  font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  font-size: 34px;
  line-height: 1.05;
}

.accent-line [data-bind] {
  background: #f6c33c;
  color: #111;
  padding: 0 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 750;
}

.pill {
  margin: 22px 0 0;
  display: inline-block;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 16px;
}

.slide-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.slide-foot .rule {
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: 0.25;
  margin-bottom: 6px;
  font-style: normal;
}

.slide-foot .no {
  font-family: "Lilita One", sans-serif;
  font-size: 28px;
  font-weight: 400;
  opacity: 1;
}

.photo-slot {
  overflow: hidden;
  background: rgba(16, 35, 63, 0.08);
  border: 3px dashed rgba(16, 35, 63, 0.35);
  color: inherit;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.photo-slot.is-empty {
  display: grid;
  place-items: center;
}

.photo-hint {
  font-weight: 800;
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
  padding: 12px;
}

.photo-slot.is-dropping {
  outline: 6px solid #f6c33c;
}

.layout-cover .copy {
  max-width: 690px;
  position: relative;
  z-index: 2;
}

.layout-cover .photo-slot {
  width: 430px;
  height: 500px;
  right: 58px;
  bottom: 58px;
  border-radius: 42px;
  border: 8px solid #fff;
  transform: rotate(-7deg);
  box-shadow: 16px 18px 0 rgba(7, 30, 88, 0.16);
  z-index: 1;
}

.layout-cover .slide-foot,
.layout-quote .slide-foot {
  z-index: 3;
  max-width: 58%;
}

.layout-split .copy {
  max-width: 560px;
  margin: auto 0;
  z-index: 2;
}

.layout-split .slide-foot {
  z-index: 3;
  max-width: 50%;
}

.layout-split .photo-slot {
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.layout-quote {
  display: block;
}

.layout-quote .copy {
  max-width: 760px;
  margin-top: 24px;
}

.layout-quote .quote {
  margin: 0;
  font-size: 58px;
}

.layout-quote .quote::before {
  content: "“";
  display: block;
  font-family: "Lilita One", sans-serif;
  font-size: 92px;
  line-height: 0.7;
  color: #0784c8;
}

.layout-quote .by {
  margin: 18px 0 0;
  font-size: 20px;
}

.layout-quote .photo-slot {
  width: 280px;
  height: 360px;
  right: 72px;
  bottom: 92px;
  border-radius: 36px;
  border: 8px solid #fff;
  transform: rotate(5deg);
  box-shadow: 14px 16px 0 rgba(7, 30, 88, 0.16);
}

.stat-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.slide .stat,
.slide .card,
.slide .check {
  flex: none;
  position: static;
  border: 0;
  box-shadow: none;
  background: #fff;
  color: #172033;
  border-radius: 24px;
  max-width: none;
}

.slide .card p,
.slide .stat span,
.slide .check span {
  color: inherit;
  max-width: none;
}

.stat,
.card {
  padding: 22px 22px 20px;
  min-height: 230px;
}

.stat b,
.card strong,
.check strong {
  display: block;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
}

.stat b {
  font-size: 72px;
  line-height: 0.95;
}

.stat span,
.card p,
.check span {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.card .tag {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0784c8;
}

.card strong {
  margin-top: 12px;
  font-size: 36px;
  line-height: 1.02;
}

.checks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 980px;
}

.check {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
}

.check-no {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f6c33c;
  color: #111;
  font-family: "Lilita One", sans-serif;
  font-size: 22px;
  font-weight: 400;
}

.theme-paper { background: #fff9ec; color: #172033; }
.theme-sky { background: #d3eeff; color: #10233f; }
.theme-yellow { background: #f6c33c; color: #172033; }
.theme-mint { background: #d9f6ee; color: #10233f; }
.theme-blue { background: #0784c8; color: #fff; }
.theme-ink { background: #10233f; color: #fff9ec; }

.theme-sky .stamp { background: #0784c8; color: #fff; }
.theme-yellow .stamp { background: #111; color: #f6c33c; }
.theme-blue .stamp,
.theme-ink .stamp { background: #f6c33c; color: #111; }
.theme-yellow .accent-line [data-bind] { background: #111; color: #f6c33c; }
.theme-ink .accent-line [data-bind],
.theme-blue .accent-line [data-bind] { background: #f6c33c; color: #111; }
.theme-yellow .pill { background: #111; color: #f6c33c; }
.theme-blue .pill,
.theme-ink .pill { background: #f6c33c; color: #111; }
.theme-sky .blob { background: #fff; }
.theme-yellow .blob { background: #fff6d4; }
.theme-mint .blob { background: #f6c33c; }
.theme-blue .blob { background: #49a7e4; }
.theme-ink .blob { background: #0784c8; }
.theme-blue .star,
.theme-yellow .star { color: #fff; }
.theme-ink .star { color: #f6c33c; }
.theme-blue .label,
.theme-ink .label,
.theme-blue .kicker,
.theme-ink .kicker { opacity: 0.8; }

.layout-stats .blob,
.layout-cards .blob,
.layout-checklist .blob,
.layout-split .blob { display: none; }

.layout-cards .card:nth-child(2) { background: #f6c33c; }
.layout-cards .card:nth-child(3) { background: #0784c8; color: #fff; }
.layout-cards .card:nth-child(3) .tag { color: #f6c33c; }
.theme-yellow .card,
.theme-yellow .stat,
.theme-yellow .check { background: #fff9ec; }
.theme-ink .stat,
.theme-blue .stat,
.theme-ink .card,
.theme-blue .check { background: #fff9ec; color: #172033; }
.theme-ink .card:nth-child(3),
.theme-blue .card:nth-child(3) { background: #f6c33c; color: #172033; }
.theme-ink .card:nth-child(3) .tag,
.theme-blue .card:nth-child(3) .tag { color: #0784c8; }

.stage-scale [data-bind] {
  white-space: pre-line;
}

body.lnl-deck-editing .stage-scale [data-bind] {
  cursor: text;
  outline: none;
}

body.lnl-deck-editing .stage-scale [data-bind]:empty {
  display: inline-block;
  min-width: 4.5ch;
  min-height: 0.9em;
  border-radius: 8px;
  outline: 2px dashed currentColor;
  outline-offset: 5px;
  opacity: 0.45;
}

body.lnl-deck-editing .stage-scale [data-bind]:focus {
  opacity: 1;
  outline: 3px solid #0784c8;
  outline-offset: 4px;
  border-radius: 8px;
}

body.lnl-deck-live [data-bind] {
  pointer-events: none;
  white-space: pre-line;
}

body.lnl-deck-live .photo-slot {
  pointer-events: none;
}

body.lnl-deck-live .photo-slot.is-empty {
  visibility: hidden;
}

body.lnl-deck-live .kicker:has(> [data-bind]:empty),
body.lnl-deck-live .lead:has(> [data-bind]:empty),
body.lnl-deck-live .accent-line:has(> [data-bind]:empty),
body.lnl-deck-live .pill:has(> [data-bind]:empty),
body.lnl-deck-live .by:has(> [data-bind]:empty),
body.lnl-deck-live .label:has(> [data-bind]:empty) {
  display: none;
}

body.lnl-deck-editing .navbar,
body.lnl-deck-editing .footer-main,
body.lnl-deck-live .navbar,
body.lnl-deck-live .footer-main {
  display: none !important;
}

body.lnl-deck-editing,
body.lnl-deck-live {
  overflow: hidden;
  background: #101114;
}

body.lnl-deck-live .lnl-pres-studio {
  grid-template-columns: 1fr;
  grid-template-areas:
    "bar"
    "stage";
}

body.lnl-deck-live .lnl-pres-film,
body.lnl-deck-live .lnl-pres-fields,
body.lnl-deck-live [data-edit-only] {
  display: none !important;
}

body.lnl-deck-live .stage-scale {
  border-radius: 12px;
}

:fullscreen .stage-frame {
  background: #070b14;
}

.print-deck {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.lnl-deck-live .layout-cover .photo-slot,
  body.lnl-deck-live .layout-quote .photo-slot {
    animation: presDrift 8s ease-in-out infinite;
  }
}

@keyframes presDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (max-width: 980px) {
  .lnl-pres-studio {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 118px minmax(240px, 54vw) auto;
    grid-template-areas:
      "bar"
      "film"
      "stage"
      "fields";
  }

  .lnl-pres-film {
    flex-direction: row;
    align-items: center;
  }

  .lnl-pres-status {
    display: none;
  }

  .lnl-pres-bar {
    flex-wrap: wrap;
    padding: 8px;
    height: auto;
  }

  body.lnl-deck-live .lnl-pres-studio {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "bar"
      "stage";
  }
}

@media print {
  @page {
    size: 13.333in 7.5in;
    margin: 0;
  }

  body.lnl-deck-editing,
  body.lnl-deck-live {
    overflow: visible;
    background: #fff;
  }

  .navbar,
  .footer-main,
  .lnl-pres-library,
  .lnl-pres-bar,
  .lnl-pres-film,
  .lnl-pres-fields,
  .stage-frame {
    display: none !important;
  }

  .lnl-pres-studio {
    display: block;
    height: auto;
    background: #fff;
  }

  .print-deck {
    display: block !important;
  }

  .print-page {
    width: 13.333in;
    height: 7.5in;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .print-page .slide {
    transform: scale(1);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
