:root {
  --bg: #ffffff;
  --ink: #14161c;
  --muted: #8b919a;
  --orange: #ff5a00;
  --line: #ece7e2;
  --max: 1180px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
section { scroll-margin-top: 88px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(14px);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(20, 16, 12, 0.05); }
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: #2a2d33;
}
.nav a:hover { color: var(--orange); }
.nav a.is-current { position: relative; color: #111; }
.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.nav-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-line { background: #fff; color: #1c1c1c; border-color: #ffb088; }
.btn-line:hover { border-color: var(--orange); color: var(--orange); }
.btn-quiet { background: #fff; color: #1c1c1c; border-color: #dedede; }
.btn-quiet:hover { border-color: #bbb; }
.header-cta { min-height: 40px; padding: 0 16px; font-size: 13.5px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.hero-watermark { display: none; }
.hero-copy {
  position: absolute;
  z-index: 1;
  left: max(24px, calc((100% - var(--max)) / 2));
  top: 48%;
  transform: translateY(-50%);
  width: min(500px, 42vw);
  padding: 0;
}
.kicker {
  margin: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(52px, 5.6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--orange); }
.lede {
  max-width: 460px;
  margin: 18px 0 0;
  color: #6d737c;
  font-size: 16.5px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-desk {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: unset;
}

.band { padding: 72px 0 28px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.split-head {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(220px, 1fr) auto;
  gap: 18px 32px;
  align-items: center;
}
.split-head h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.split-copy {
  margin: 8px 0 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.service-card {
  min-height: 210px;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid #efeae6;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(28, 20, 12, 0.04);
}
.service-card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 800; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.project-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: #111;
}
a.project-card:hover img { transform: scale(1.04); }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}
.project-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}
.project-meta strong,
.project-meta em { display: block; font-style: normal; }
.project-meta strong { font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.project-meta em { margin-top: 2px; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }

.about {
  position: relative;
  padding-bottom: 64px;
  background:
    radial-gradient(420px 180px at 0% 100%, rgba(255, 90, 0, 0.14), transparent 70%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr auto;
  gap: 28px 36px;
  align-items: start;
}
.about h2 {
  margin: 0;
  max-width: 360px;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.about-copy {
  margin: 28px 0 0;
  color: #6f757e;
  font-size: 15px;
  line-height: 1.6;
}
.stats {
  display: flex;
  gap: 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.stats li { min-width: 92px; }
.stats svg {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stats strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.stats span { display: block; margin-top: 2px; max-width: 110px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.contact {
  padding: 28px 0 72px;
  background: radial-gradient(480px 160px at 80% 40%, rgba(255, 90, 0, 0.1), transparent 70%);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 24px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid #f1ece8;
}
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.contact-inner p { margin: 8px 0 0; color: var(--muted); }
.contact-mail { font-weight: 700; }
.contact-mail:hover { color: var(--orange); }

.site-footer { border-top: 1px solid #f1ece8; padding: 18px 0 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer .brand img { height: 36px; }

body.project-page {
  background: #fff;
  color: var(--ink);
}
.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 1.14fr);
  gap: 28px 40px;
  align-items: center;
  padding: 118px 0 28px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #8b919a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.back-link span { color: var(--orange); }
.back-link:hover { color: var(--orange); }
.case-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.case-title::before,
.slash-label::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 4px;
  flex: none;
  background: linear-gradient(90deg, #ff4e00, #ffb03a);
  transform: rotate(-16deg);
}
.case-kicker {
  margin: 8px 0 0;
  color: #9aa0a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case-intro h2 {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.case-intro .lede {
  max-width: 460px;
  margin: 16px 0 0;
  color: #6d737c;
  font-size: 16px;
  line-height: 1.55;
}
.case-intro .btn { margin-top: 22px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.case-actions .btn { margin-top: 0; }
.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-devices { position: relative; margin: 0; }
.case-devices::before {
  content: "";
  position: absolute;
  inset: 6% -4% 8% 10%;
  background: radial-gradient(closest-side, rgba(255, 186, 150, 0.45), rgba(255, 255, 255, 0) 74%);
  z-index: 0;
}
.case-devices .stage { position: relative; z-index: 1; height: 500px; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border-top: 1px solid #f0ebe6;
  border-bottom: 1px solid #f0ebe6;
}
.pillar { padding: 26px 28px 26px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid #f0ebe6; }
.pillar-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pillar h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pillar p,
.story-block p,
.result p {
  margin: 0;
  color: #6d737c;
  font-size: 14.5px;
  line-height: 1.55;
}
.icon-bubble {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff1e8;
  flex: none;
}
.icon-bubble svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slash-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-story { padding: 56px 0 20px; }
.case-story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 36px 48px;
  align-items: center;
}
.story-block + .story-block { margin-top: 32px; }
.story-shot {
  width: 100%;
  height: min(460px, 52vw);
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  background: #111;
}
.story-shot.center { object-position: center; }
.story-shot.contain { object-fit: contain; object-position: center; }
.story-shot.full { height: auto; object-fit: unset; }
.case-gallery { padding: 36px 0 20px; }
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.gallery-head .slash-label { margin: 0; }
.gallery-count {
  color: #9aa0a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.gallery-row.few { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.gallery-row img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #111;
}
.gallery-row img.logo { object-fit: contain; padding: 18px; background: #111; }
.gallery-row img.top { object-position: top center; }
.gallery-row img.contain { object-fit: contain; }
.gallery-row.few:has(> img:only-child) { grid-template-columns: minmax(0, 560px); }
.icon-bubble svg [fill="currentColor"] { fill: var(--orange); stroke: none; }
.case-results { padding: 36px 0 72px; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.result {
  padding: 22px 20px 24px;
  background: #f7f5f3;
  border-radius: 16px;
}
.result h3 { margin: 12px 0 6px; font-size: 16px; font-weight: 800; }
.showcase { margin: 0; }
.showcase-single { width: min(680px, 100%); margin: 0 auto; }
.stage { position: relative; height: 460px; }
.laptop { position: absolute; left: 0; bottom: 0; width: 86%; }
.laptop-lid {
  background: #1c1c1c;
  border: 2px solid #4d4d4d;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding: 9px 9px 0;
  box-shadow: 0 18px 40px rgba(20, 16, 12, 0.12);
}
.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10.2;
  background: #050505;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
}
.laptop-base {
  height: 14px;
  margin: 0 -7%;
  background: linear-gradient(#cfcfcf, #8d8d8d 42%, #b5b5b5);
  border-radius: 0 0 10px 10px;
  position: relative;
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16%;
  height: 7px;
  background: #6d6d6d;
  border-radius: 0 0 6px 6px;
}
.phone {
  position: absolute;
  right: 1%;
  bottom: 46px;
  width: 28%;
  height: 372px;
  background: #0c0c0c;
  border: 3px solid #3a3a3a;
  border-radius: 26px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(20, 16, 12, 0.16);
  z-index: 2;
}
.phone-screen { height: 100%; border-radius: 18px; overflow: hidden; background: #0e0e0e; position: relative; }
.phone:has(.fit-screen) { height: auto; }
.phone-screen:has(.fit-screen) { height: auto; }
.screen-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-screen .fit-screen { width: 100%; height: auto; object-fit: contain; object-position: center; }
.menu-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: unset;
}
.sheep-mobile { background: #0b0b0b url("black-sheep-mobile.png") top center / 100% auto no-repeat; }
.showcase.menu-only .laptop { left: 50%; transform: translateX(-50%); }
.showcase figcaption { text-align: center; margin-top: 22px; }
.client-logo { width: 92px; height: 92px; margin: 0 auto 12px; object-fit: contain; background: #111; border-radius: 12px; }
.client-logo.color { background: transparent; }
.showcase figcaption strong { display: block; font-size: 18px; font-weight: 700; }
.showcase figcaption span {
  display: block;
  margin-top: 3px;
  color: #8b919a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.project-page .site-footer { background: #fff; border-top-color: #f1ece8; color: var(--ink); }
.project-page .site-footer p { color: var(--muted); }

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid, .contact-inner, .split-head { grid-template-columns: 1fr; }
  .split-head .btn, .contact-inner .btn { justify-self: start; }
  .about-copy, .stats { margin-top: 0; }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 18px 16px;
    background: #fff;
    border-bottom: 1px solid #f0eeeb;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 2px; }
  .nav a.is-current::after { bottom: 6px; width: 28px; }
  .nav-cta {
    display: inline-flex;
    margin-top: 6px;
    color: var(--orange);
  }
  .menu-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .hero {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 0;
    padding-top: var(--header);
  }
  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    padding: 22px 22px 8px;
  }
  .hero-desk {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    height: auto;
    transform: none;
  }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .case-hero-grid,
  .case-story-grid,
  .pillar-grid,
  .result-grid { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid #f0ebe6; }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-row.few:has(> img:only-child) { grid-template-columns: 1fr; }
  .case-devices .stage,
  .stage { height: 400px; }
  .phone { height: 320px; }
}

@media (max-width: 640px) {
  .shell, .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .brand img { height: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .project-row { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .stage,
  .case-devices .stage { height: 340px; }
  .phone { height: 280px; width: 34%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .block-tools, .edit-fab, .edit-bar { width: calc(100% - 24px); }
}

.case-text { padding: 12px 0 36px; }
.case-text p {
  margin: 0;
  max-width: 680px;
  color: #6d737c;
  font-size: 16px;
  line-height: 1.55;
}
.gallery-tile { margin: 0; }
.gallery-tile img { width: 100%; }
.story-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed #e4d5cb;
  border-radius: 18px;
  color: #9aa0a8;
  text-align: center;
  padding: 20px;
}
body.has-editor { padding-bottom: 88px; }
.edit-fab, .edit-bar button, .edit-tool {
  font: inherit;
  cursor: pointer;
}
.edit-fab {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 90, 0, 0.28);
}
.edit-bar[hidden],
.edit-menu[hidden],
.edit-fab[hidden],
.manage-panel[hidden],
.preview-error[hidden],
#preview-result[hidden],
#preview-gate[hidden],
#dash-setup[hidden],
#dash-login[hidden],
#dash-app[hidden] { display: none !important; }

.dashboard-wrap { max-width: 880px; }
.dash-head, .page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dash-head { margin-bottom: 8px; }
.dash-block { margin-top: 36px; }
.dash-block h2, .dash-head h1 { margin: 0; }
.dash-block h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.page-row { padding: 14px 0; border-bottom: 1px solid #f1ece8; }
.dash-lock input {
  display: block;
  width: min(100%, 420px);
  min-height: 48px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1.5px solid #eadfd6;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
}
.dash-lock .btn { margin-top: 18px; }

.preview-home { padding-bottom: 0; }
.preview-page { padding: 118px 0 80px; }
.preview-wrap { max-width: 760px; }
.preview-page h1,
.preview-result h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.preview-lead,
.preview-note {
  max-width: 560px;
  margin: 14px 0 0;
  color: #6d737c;
  font-size: 17px;
  line-height: 1.55;
}
.preview-label {
  display: block;
  margin-top: 26px;
  color: #8b919a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.preview-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.preview-row input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid #eadfd6;
  border-radius: 999px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.preview-error { margin: 12px 0 0; color: #b42318; font-weight: 700; }
.preview-open { margin-top: 22px; }
.preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.preview-gallery img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f7f5f3;
  border-radius: 16px;
}
.preview-again {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: #8b919a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.preview-again:hover { color: var(--orange); }
.manage-panel { margin-top: 56px; padding-top: 28px; border-top: 1px solid #f1ece8; }
.manage-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.manage-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.manage-head p:not(.eyebrow) { margin: 8px 0 0; color: #6d737c; }
.manage-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; }
.demo-card {
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 18px;
}
.demo-code {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.preview-link-line { margin: 6px 0 0; color: #6d737c; font-size: 13px; word-break: break-all; }
.demo-card-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.manage-field { display: grid; gap: 6px; margin-top: 12px; }
.manage-field span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8b919a; }
.manage-field .edit-field { margin-top: 0; }
.manage-field textarea.edit-field { min-height: 96px; resize: vertical; }
.manage-shot { margin: 0; }
.manage-shots { margin-top: 14px; }
.demo-card > .edit-upload { margin-top: 12px; }
.edit-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  padding-left: 16px;
  background: #14161c;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.edit-status { font-size: 13px; font-weight: 700; margin-right: 6px; }
.edit-bar button, .edit-tool {
  border: 0;
  border-radius: 999px;
  background: #2a2d33;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.edit-save { background: var(--orange) !important; }
.edit-add { position: relative; }
.edit-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(20, 16, 12, 0.16);
}
.edit-menu button {
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.edit-menu button:hover { background: #fff4ee; }
.block-tools, .item-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.block-tools {
  width: min(var(--max), calc(100% - 48px));
  margin: 18px auto 0;
  justify-content: flex-end;
}
.item-tools { margin-top: 10px; }
.edit-tool {
  background: #fff;
  color: #5c6370;
  border: 1px solid #eadfd6;
}
.edit-field {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #eadfd6;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}
.device-files {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
}
.device-files span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8b919a; }
.file-picker { position: fixed; left: -9999px; top: 0; }
.image-slots { display: grid; gap: 10px; margin-top: 14px; }
.image-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 14px;
}
.image-slot-preview {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4efe9;
  flex: none;
}
.image-slot-preview.is-empty { object-fit: none; }
.image-slot-meta { display: grid; gap: 6px; justify-items: start; }
.image-slot-meta span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8b919a; }
.edit-upload {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gallery-tile .edit-upload,
.case-story-grid > .edit-upload {
  width: 100%;
  min-height: 148px;
  border: 1px dashed #e4d5cb;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
}
.gallery-frame, .story-frame { position: relative; }
.image-replace {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
body.is-editing .editable-image { cursor: pointer; }
body.is-editing [data-edit] {
  outline: 1px dashed rgba(255, 90, 0, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}
.edit-action { display: grid; }
body.is-editing [data-edit] {
  outline: 1px dashed rgba(255, 90, 0, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
  min-width: 1.5ch;
  min-height: 1em;
}
body.is-editing [data-edit]:empty::before {
  content: attr(data-placeholder);
  color: #b0b4ba;
}
.gallery-tile figcaption {
  margin-top: 6px;
  color: #6d737c;
  font-size: 13px;
}
