:root {
  --black: #0b1517;
  --mist: #cddcde;
  --cyan: #52b2cd;
  --blue: #16749d;
  --gray: #8c8c8e;
  --white: #f2fbff;
  --line: rgba(82, 178, 205, 0.24);
  --panel: rgba(11, 21, 23, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background:
    radial-gradient(circle at 82% 8%, rgba(82, 178, 205, 0.22), transparent 28%),
    radial-gradient(circle at 18% 38%, rgba(22, 116, 157, 0.14), transparent 32%),
    linear-gradient(180deg, #e7eef0 0%, var(--mist) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(205, 220, 222, 0.76);
  border-bottom: 1px solid rgba(11, 21, 23, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.quick-actions,
.stats,
.panel-split {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--black);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--black);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 21, 23, 0.12);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(82, 178, 205, 0.65);
}

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

.topbar nav {
  justify-content: center;
  gap: 24px;
  color: rgba(11, 21, 23, 0.7);
  font-size: 15px;
  font-weight: 800;
}

.topbar nav a:hover {
  color: var(--blue);
}

main {
  padding: clamp(22px, 4vw, 52px);
}

.hero-home {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 128px);
  margin-bottom: 20px;
  padding: clamp(18px, 3vw, 30px);
  color: var(--white);
  border: 1px solid rgba(82, 178, 205, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(82, 178, 205, 0.1), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(82, 178, 205, 0.12), transparent 24%),
    var(--black);
  box-shadow: 0 30px 90px rgba(11, 21, 23, 0.32);
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  border: clamp(14px, 1.6vw, 24px) solid rgba(82, 178, 205, 0.92);
  border-radius: 50%;
  filter: blur(1px) drop-shadow(0 0 22px rgba(82, 178, 205, 0.9));
  pointer-events: none;
}

.hero-home::before {
  top: -34%;
  right: -18%;
}

.hero-home::after {
  bottom: -42%;
  left: -20%;
}

.hero-nav,
.hero-status,
.hero-tags,
.hero-choice-grid,
.hero-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-nav {
  justify-content: space-between;
  gap: 16px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.hero-status {
  gap: 14px;
  color: rgba(242, 251, 255, 0.72);
  font-size: 14px;
}

.hero-status strong {
  color: var(--cyan);
}

.hero-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 920px;
  margin: clamp(72px, 10vw, 130px) auto 0;
  text-align: center;
}

.hero-tags {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0 0 24px;
  color: #b5d58a;
  font-size: 14px;
  font-weight: 900;
}

.hero-tags span::before {
  content: "⌁";
  margin-right: 8px;
  color: var(--cyan);
}

.hero-brand-emblem {
  display: grid;
  width: clamp(92px, 12vw, 148px);
  height: clamp(92px, 12vw, 148px);
  margin-bottom: 18px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(242, 251, 255, 0.22);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 8px rgba(242, 251, 255, 0.05),
    0 0 44px rgba(82, 178, 205, 0.32);
}

.hero-brand-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-core h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
}

.hero-subtitle {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(242, 251, 255, 0.76);
  line-height: 1.75;
}

.launch-picker {
  display: grid;
  width: min(860px, 100%);
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(82, 178, 205, 0.28);
  border-radius: 8px;
  background: rgba(242, 251, 255, 0.055);
  text-align: left;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(242, 251, 255, 0.72);
  font-size: 13px;
}

.picker-head strong {
  color: var(--white);
}

.picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picker-options button {
  position: relative;
  min-height: 38px;
  padding: 0 13px;
  color: var(--white);
  border: 1px solid rgba(82, 178, 205, 0.3);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.07);
  font-weight: 900;
}

.picker-options button.active,
.picker-options button:hover {
  color: var(--black);
  background: var(--cyan);
  border-color: var(--cyan);
}

.picker-options button.active {
  box-shadow: 0 0 0 3px rgba(242, 251, 255, 0.16), 0 0 22px rgba(82, 178, 205, 0.28);
}

.picker-options button.active::after {
  content: "✓";
  margin-left: 6px;
}

.picker-options .more-picker {
  color: var(--cyan);
  border-style: dashed;
  background: rgba(82, 178, 205, 0.08);
}

.picker-options .more-picker:hover {
  color: var(--black);
}

.style-options,
.site-style-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-style-options {
  margin-bottom: 16px;
}

.site-style-card,
.color-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 12px;
  color: var(--white);
  text-align: left;
  border: 1px solid rgba(82, 178, 205, 0.28);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
}

.site-style-card span {
  width: max-content;
  padding: 3px 8px;
  color: var(--black);
  border-radius: 8px;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.site-style-card small,
.site-style-card em {
  color: rgba(242, 251, 255, 0.65);
  line-height: 1.45;
}

.site-style-card em {
  font-style: normal;
  font-size: 12px;
}

.site-style-card.active,
.site-style-card:hover,
.color-card.active,
.color-card:hover {
  color: var(--black);
  background: var(--cyan);
  border-color: var(--cyan);
}

.site-style-card.active,
.color-card.active {
  box-shadow: 0 0 0 3px rgba(242, 251, 255, 0.16), 0 0 30px rgba(82, 178, 205, 0.32);
}

.site-style-card.active::after,
.color-card.active::after {
  content: "已选";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  color: var(--black);
  border: 1px solid rgba(11, 21, 23, 0.2);
  border-radius: 999px;
  background: rgba(242, 251, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.site-style-card.active small,
.site-style-card:hover small,
.site-style-card.active em,
.site-style-card:hover em {
  color: rgba(11, 21, 23, 0.72);
}

.color-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.color-card {
  min-height: 78px;
}

.color-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  height: 20px;
  border-radius: 8px;
}

.color-strip i {
  display: block;
}

.hero-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  color: var(--black);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(82, 178, 205, 0.42);
  font-size: 18px;
  font-weight: 900;
}

.hero-start-btn:hover {
  background: #6bd4f0;
}

.hero-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hero-choice-grid a {
  min-height: 108px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(82, 178, 205, 0.28);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
}

.hero-choice-grid a:hover {
  color: var(--black);
  background: var(--cyan);
  box-shadow: 0 0 34px rgba(82, 178, 205, 0.32);
}

.hero-choice-grid strong,
.hero-choice-grid span {
  display: block;
}

.hero-choice-grid strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-choice-grid span {
  color: rgba(242, 251, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.hero-choice-grid a:hover span {
  color: rgba(11, 21, 23, 0.78);
}

.template-switcher {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 18px;
}

.admin-template-switcher {
  margin: 0 0 18px;
}

.template-switcher p {
  margin-bottom: 10px;
  color: rgba(242, 251, 255, 0.72);
  font-weight: 900;
}

.template-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.template-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 12px;
  color: var(--white);
  text-align: left;
  border: 1px solid rgba(82, 178, 205, 0.28);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
}

.template-card.active,
.template-card:hover {
  color: var(--black);
  background: var(--cyan);
  box-shadow: 0 0 34px rgba(82, 178, 205, 0.34);
}

.template-card small {
  color: rgba(242, 251, 255, 0.62);
  line-height: 1.45;
}

.template-card.active small,
.template-card:hover small {
  color: rgba(11, 21, 23, 0.72);
}

.swatch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 251, 255, 0.36);
  border-radius: 8px;
}

.swatch-tech {
  background: linear-gradient(135deg, #0b1517, #52b2cd);
}

.swatch-photo {
  background: linear-gradient(135deg, #111111, #f6f1e8 48%, #b68b5f);
}

.swatch-consult {
  background: linear-gradient(135deg, #123a58, #f5f7f8);
}

.swatch-coach {
  background: linear-gradient(135deg, #f7c6a3, #7d4f38);
}

.swatch-minimal {
  background: linear-gradient(135deg, #ffffff, #111111);
}

.swatch-retro {
  background: linear-gradient(135deg, #ffca3a, #1b998b 55%, #2d3047);
}

.swatch-spa {
  background: linear-gradient(135deg, #f4b7c8, #5d8f73);
}

.swatch-teacher {
  background: linear-gradient(135deg, #f7f3d4, #3b6ea8);
}

.swatch-clinic {
  background: linear-gradient(135deg, #e8fff7, #1d9a8a);
}

.swatch-food {
  background: linear-gradient(135deg, #7a2d16, #f2a23a);
}

.swatch-craft {
  background: linear-gradient(135deg, #ecd8b1, #855f3f);
}

.swatch-fitness {
  background: linear-gradient(135deg, #101820, #ff5c35);
}

.hero-metrics {
  position: relative;
  z-index: 1;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 80px);
}

.hero-metrics div {
  min-width: 124px;
  padding: 12px 18px;
  border-left: 1px solid rgba(82, 178, 205, 0.26);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--white);
  font-size: 26px;
}

.hero-metrics span {
  color: rgba(242, 251, 255, 0.58);
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.phone-preview,
.admin-panel,
.module {
  position: relative;
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid rgba(82, 178, 205, 0.22);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(11, 21, 23, 0.25);
}

.phone-preview {
  display: grid;
  order: 3;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.admin-panel {
  order: 1;
}

.preview-intro {
  order: 2;
  color: var(--black);
  text-align: center;
}

.preview-intro h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 34px);
}

.phone-preview::before,
.module::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 18px solid rgba(82, 178, 205, 0.9);
  border-radius: 50%;
  filter: blur(1px) drop-shadow(0 0 18px rgba(82, 178, 205, 0.85));
  pointer-events: none;
}

.phone-preview::before {
  right: -160px;
  top: -170px;
}

.module::before {
  left: -220px;
  bottom: -220px;
  opacity: 0.35;
}

.cover {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(82, 178, 205, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  background-size: cover;
  background-position: center;
}

.cover.has-cover {
  min-height: 260px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(11, 21, 23, 0.86), rgba(11, 21, 23, 0.34)),
    linear-gradient(180deg, rgba(11, 21, 23, 0.12), rgba(11, 21, 23, 0.9)),
    var(--cover-photo);
  background-size: cover;
  background-position: center;
}

.cover::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 180px;
  height: 120px;
  border: 1px solid rgba(242, 251, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 178, 205, 0.18), transparent),
    rgba(242, 251, 255, 0.04);
  pointer-events: none;
}

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

.avatar {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: var(--black);
  background: var(--cyan);
  border-radius: 8px;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(82, 178, 205, 0.56);
  background-size: cover;
  background-position: center;
}

.avatar.has-photo {
  color: transparent;
}

.kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--cyan);
}

.cover p:last-child,
.preview-section p,
.quote p {
  margin-bottom: 0;
  color: rgba(242, 251, 255, 0.78);
  line-height: 1.7;
}

.site-meta {
  margin: -4px 0 12px;
  color: rgba(242, 251, 255, 0.68);
  font-size: 14px;
  font-weight: 900;
}

.quick-actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.quick-actions a,
.quick-actions button,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
}

.quick-actions a,
.primary-btn {
  color: var(--black);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 24px rgba(82, 178, 205, 0.32);
}

.quick-actions button,
.ghost-btn {
  color: var(--white);
  background: rgba(242, 251, 255, 0.04);
  border: 1px solid rgba(82, 178, 205, 0.34);
}

.quick-actions a:hover,
.primary-btn:hover {
  background: #6bd4f0;
}

.preview-section {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.preview-section h2 {
  font-size: 25px;
}

.service-list,
.portfolio-grid,
.video-grid,
.product-grid,
.tier-grid,
.editor-list,
.lead-list,
.chat-box {
  display: grid;
  gap: 10px;
}

.service-card,
.portfolio-card,
.lead-item,
.chat-message,
.service-editor,
.contact-card {
  padding: 14px;
  border: 1px solid rgba(82, 178, 205, 0.22);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
}

.service-card {
  display: grid;
  gap: 8px;
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card strong {
  color: var(--cyan);
}

.contact-card span {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  word-break: break-all;
}

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

.product-grid,
.tier-grid,
.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-card {
  display: grid;
  gap: 10px;
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(11, 21, 23, 0.8);
}

.work-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  color: var(--black);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 178, 205, 0.92), rgba(22, 116, 157, 0.72)),
    var(--cyan);
  font-weight: 900;
}

.portfolio-card strong {
  color: var(--cyan);
}

.portfolio-card span {
  color: rgba(242, 251, 255, 0.72);
  line-height: 1.55;
}

.section-note {
  margin-top: -6px;
  color: rgba(242, 251, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
}

.module-locked {
  border-style: dashed;
  background: rgba(242, 251, 255, 0.035);
}

.setup-window {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.compact-form {
  margin-bottom: 10px;
}

.month-board {
  display: grid;
  gap: 10px;
}

.month-title {
  color: var(--white);
  font-weight: 900;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.month-cell {
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(82, 178, 205, 0.2);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.055);
  white-space: nowrap;
}

.month-cell strong,
.month-cell span {
  display: block;
}

.month-cell strong {
  color: var(--white);
}

.month-cell span {
  margin-top: 4px;
  color: rgba(242, 251, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.month-cell.has-booking {
  background: rgba(82, 178, 205, 0.18);
}

.month-cell.busy {
  background: linear-gradient(180deg, rgba(242, 124, 12, 0.44), rgba(98, 37, 8, 0.62));
  border-color: rgba(242, 124, 12, 0.94);
  box-shadow: inset 0 0 0 1px rgba(242, 251, 255, 0.12), 0 0 18px rgba(242, 124, 12, 0.22);
}

.month-cell.busy strong,
.month-cell.busy span {
  color: var(--white);
}

.month-cell.busy span::before {
  content: "× ";
  font-weight: 900;
}

.month-board-large .month-cell {
  min-height: 70px;
}

.creator-windows {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.business-config {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.creator-window {
  padding: 14px;
  border: 1px solid rgba(82, 178, 205, 0.22);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
}

.builder-roadmap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.builder-roadmap li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  color: rgba(242, 251, 255, 0.82);
  border: 1px solid rgba(82, 178, 205, 0.24);
  border-radius: 8px;
  background: rgba(11, 21, 23, 0.38);
}

.builder-roadmap strong {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--black);
  border-radius: 999px;
  background: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.builder-roadmap span {
  font-size: 13px;
  font-weight: 900;
}

.profile-step,
.template-switcher.creator-window,
.color-step,
.account-step {
  margin-bottom: 18px;
}

.window-head h3 {
  margin-bottom: 12px;
}

.upload-drop {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgba(82, 178, 205, 0.46);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.05);
  text-align: center;
}

.upload-drop.compact {
  min-height: 96px;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-drop span {
  display: grid;
  width: 100%;
  min-height: 112px;
  place-items: center;
  color: rgba(242, 251, 255, 0.76);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.upload-drop.compact span {
  min-height: 72px;
}

.upload-drop.has-image span {
  color: transparent;
}

.busy-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.busy-date-pill {
  min-height: 34px;
  padding: 0 10px;
  color: var(--white);
  border: 1px solid rgba(242, 124, 12, 0.7);
  border-radius: 8px;
  background: rgba(242, 124, 12, 0.18);
  font-weight: 900;
}

.storage-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--white);
}

.storage-row progress {
  width: 100%;
  height: 12px;
  accent-color: var(--cyan);
}

.tier-editor {
  display: grid;
  gap: 8px;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr 86px 26px;
  gap: 8px;
  align-items: center;
  color: var(--white);
}

.helper-text {
  margin: 10px 0 0;
  color: rgba(242, 251, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.addon-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.addon-list span {
  padding: 9px 10px;
  color: rgba(242, 251, 255, 0.78);
  border: 1px solid rgba(82, 178, 205, 0.2);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.05);
  font-size: 13px;
}

.service-card strong {
  color: var(--cyan);
}

.service-card span,
.lead-item span,
.chat-message,
.service-editor {
  color: rgba(242, 251, 255, 0.78);
}

.price {
  color: var(--white);
  font-weight: 900;
}

.quote {
  padding: 16px;
  border-left: 5px solid var(--cyan);
  background: rgba(82, 178, 205, 0.08);
}

.quote span {
  display: block;
  margin-top: 8px;
  color: var(--gray);
  font-size: 14px;
}

.admin-panel,
.module {
  padding: 24px;
}

.panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.form-grid,
.booking-form,
.message-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.wide-field {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--white);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  color: var(--white);
  border: 1px solid rgba(82, 178, 205, 0.28);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.08);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(82, 178, 205, 0.16);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

select option {
  color: var(--black);
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

::placeholder {
  color: rgba(242, 251, 255, 0.42);
}

.panel-split {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  gap: 18px;
  margin-top: 18px;
}

.panel-split > div {
  flex: 1;
}

.service-editor {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.service-editor input {
  min-height: 38px;
}

.switch-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(82, 178, 205, 0.22);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.date-status {
  margin: -4px 0 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.date-status.blocked {
  color: #ffb066;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(82, 178, 205, 0.22);
  border-radius: 8px;
}

legend {
  color: var(--white);
  font-weight: 900;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.time-grid button {
  min-height: 38px;
  color: var(--white);
  border: 1px solid rgba(82, 178, 205, 0.32);
  border-radius: 8px;
  background: rgba(205, 220, 222, 0.06);
  font-weight: 800;
}

.time-grid button.active {
  color: var(--black);
  background: var(--cyan);
  border-color: var(--cyan);
}

.time-grid button:disabled {
  cursor: not-allowed;
  color: rgba(242, 251, 255, 0.38);
  border-color: rgba(140, 140, 142, 0.28);
  background: rgba(140, 140, 142, 0.16);
  text-decoration: line-through;
}

.stats {
  position: relative;
  z-index: 1;
  gap: 10px;
  margin-bottom: 14px;
}

.stats div {
  flex: 1;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(82, 178, 205, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(82, 178, 205, 0.18), rgba(22, 116, 157, 0.08));
}

.stats strong,
.stats span {
  display: block;
  color: var(--white);
}

.stats strong {
  font-size: 30px;
}

.lead-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.lead-item strong {
  color: var(--cyan);
}

.chat-box {
  max-height: 280px;
  overflow: auto;
  margin-top: 14px;
}

.chat-message {
  position: relative;
  z-index: 1;
  line-height: 1.55;
}

.chat-message strong {
  color: var(--cyan);
}

.chat-message.owner {
  color: var(--black);
  background: var(--cyan);
}

.chat-message.owner strong,
.chat-message.owner div {
  color: var(--black);
}

.full {
  width: 100%;
  margin-top: 14px;
}

#exportBox {
  position: relative;
  z-index: 1;
  min-height: 120px;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

#publicLinkBox {
  min-height: 76px;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

body[data-public-view="true"] .hero-home,
body[data-public-view="true"] .admin-panel,
body[data-public-view="true"] .preview-intro,
body[data-public-view="true"] .topbar #resetDemo,
body[data-public-view="true"] .topbar nav a[href="#admin"],
body[data-public-view="true"] .conversion-grid .module:nth-child(3) {
  display: none;
}

body[data-public-view="true"] .workspace {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

body[data-public-view="true"] .phone-preview {
  min-height: auto;
}

body[data-public-view="true"] .conversion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--black);
  background: var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(82, 178, 205, 0.48);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

body[data-template="photo"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(182, 139, 95, 0.22), transparent 30%),
    linear-gradient(180deg, #f4eee5 0%, #d8c7b4 100%);
}

body[data-template="photo"] .phone-preview,
body[data-template="photo"] .admin-panel,
body[data-template="photo"] .module {
  background: rgba(18, 18, 18, 0.94);
  border-color: rgba(246, 241, 232, 0.22);
}

body[data-template="photo"] .cover {
  min-height: 360px;
  align-items: end;
  background:
    linear-gradient(180deg, transparent 0%, rgba(18, 18, 18, 0.86) 72%),
    radial-gradient(circle at 72% 24%, rgba(246, 241, 232, 0.28), transparent 30%),
    linear-gradient(135deg, #31251c, #111);
}

body[data-template="photo"] .phone-preview {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

body[data-template="photo"] .cover,
body[data-template="photo"] .quick-actions,
body[data-template="photo"] .works-section {
  grid-column: 1 / -1;
}

body[data-template="photo"] .works-section {
  order: -1;
}

body[data-template="photo"] .portfolio-grid {
  grid-template-columns: 1.4fr 1fr;
}

body[data-template="photo"] .portfolio-card:first-child {
  grid-row: span 2;
}

body[data-template="photo"] .portfolio-card:first-child .work-placeholder,
body[data-template="photo"] .portfolio-card:first-child img {
  aspect-ratio: 16 / 9;
}

body[data-template="photo"] .avatar,
body[data-template="photo"] .brand-mark,
body[data-template="photo"] .primary-btn,
body[data-template="photo"] .quick-actions a,
body[data-template="photo"] .chat-message.owner {
  background: #d3a36f;
  color: #111;
}

body[data-template="photo"] .kicker,
body[data-template="photo"] h3,
body[data-template="photo"] .service-card strong,
body[data-template="photo"] .lead-item strong,
body[data-template="photo"] .chat-message strong {
  color: #d3a36f;
}

body[data-template="consult"] {
  background: linear-gradient(180deg, #eef5f8 0%, #d7e5ec 100%);
}

body[data-template="consult"] .phone-preview,
body[data-template="consult"] .admin-panel,
body[data-template="consult"] .module {
  background: rgba(9, 45, 67, 0.94);
}

body[data-template="consult"] .cover {
  background:
    linear-gradient(90deg, rgba(82, 178, 205, 0.2), transparent),
    #123a58;
}

body[data-template="consult"] .phone-preview {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

body[data-template="consult"] .cover,
body[data-template="consult"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-template="consult"] .services-section,
body[data-template="consult"] .products-section {
  grid-column: 2;
}

body[data-template="consult"] .about-section,
body[data-template="consult"] .quote-section {
  grid-column: 1;
}

body[data-template="consult"] .avatar,
body[data-template="consult"] .brand-mark,
body[data-template="consult"] .primary-btn,
body[data-template="consult"] .quick-actions a,
body[data-template="consult"] .chat-message.owner {
  background: #eef5f8;
  color: #123a58;
}

body[data-template="consult"] .kicker,
body[data-template="consult"] h3,
body[data-template="consult"] .service-card strong,
body[data-template="consult"] .lead-item strong,
body[data-template="consult"] .chat-message strong {
  color: #86d8ee;
}

body[data-template="coach"] {
  background:
    radial-gradient(circle at 75% 20%, rgba(247, 198, 163, 0.36), transparent 28%),
    linear-gradient(180deg, #f8efe9, #e9d4c4);
}

body[data-template="coach"] .phone-preview,
body[data-template="coach"] .admin-panel,
body[data-template="coach"] .module {
  background: rgba(54, 39, 34, 0.94);
  border-color: rgba(247, 198, 163, 0.28);
}

body[data-template="coach"] .cover {
  background:
    radial-gradient(circle at 78% 18%, rgba(247, 198, 163, 0.38), transparent 32%),
    #4d352f;
}

body[data-template="coach"] .avatar,
body[data-template="coach"] .brand-mark,
body[data-template="coach"] .primary-btn,
body[data-template="coach"] .quick-actions a,
body[data-template="coach"] .chat-message.owner {
  background: #f7c6a3;
  color: #3c2822;
}

body[data-template="coach"] .kicker,
body[data-template="coach"] h3,
body[data-template="coach"] .service-card strong,
body[data-template="coach"] .lead-item strong,
body[data-template="coach"] .chat-message strong {
  color: #f7c6a3;
}

body[data-template="minimal"] {
  background: #eef2f3;
}

body[data-template="minimal"] .phone-preview,
body[data-template="minimal"] .admin-panel,
body[data-template="minimal"] .module {
  color: #111;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 21, 23, 0.12);
  box-shadow: 0 24px 70px rgba(11, 21, 23, 0.12);
}

body[data-template="minimal"] .phone-preview::before,
body[data-template="minimal"] .module::before {
  display: none;
}

body[data-template="minimal"] .cover {
  color: #111;
  background: #fff;
}

body[data-template="minimal"] .cover::after,
body[data-template="minimal"] .quick-actions {
  display: none;
}

body[data-template="minimal"] .cover {
  grid-template-columns: 1fr;
  min-height: 300px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

body[data-template="minimal"] .avatar {
  width: 64px;
  height: 64px;
  font-size: 30px;
}

body[data-template="minimal"] .preview-section {
  border-top-color: rgba(17, 17, 17, 0.1);
}

body[data-template="minimal"] h1,
body[data-template="minimal"] h2,
body[data-template="minimal"] label,
body[data-template="minimal"] .site-meta,
body[data-template="minimal"] .cover p:last-child,
body[data-template="minimal"] .preview-section p,
body[data-template="minimal"] .quote p,
body[data-template="minimal"] .service-card span,
body[data-template="minimal"] .portfolio-card span,
body[data-template="minimal"] .lead-item span,
body[data-template="minimal"] .chat-message,
body[data-template="minimal"] .service-editor {
  color: #111;
}

body[data-template="minimal"] .avatar,
body[data-template="minimal"] .brand-mark,
body[data-template="minimal"] .primary-btn,
body[data-template="minimal"] .quick-actions a,
body[data-template="minimal"] .chat-message.owner {
  background: #111;
  color: #fff;
}

body[data-template="minimal"] input,
body[data-template="minimal"] select,
body[data-template="minimal"] textarea,
body[data-template="minimal"] .service-card,
body[data-template="minimal"] .portfolio-card,
body[data-template="minimal"] .lead-item,
body[data-template="minimal"] .chat-message,
body[data-template="minimal"] .service-editor,
body[data-template="minimal"] .switch-row,
body[data-template="minimal"] .creator-window {
  color: #111;
  background: #f7f7f7;
  border-color: rgba(11, 21, 23, 0.12);
}

body[data-template="minimal"] .upload-drop span {
  color: #111;
}

body[data-template="retro"] {
  background:
    linear-gradient(90deg, rgba(27, 153, 139, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, #f7d168, #f2a65a);
  background-size: 38px 38px, auto;
}

body[data-template="retro"] .phone-preview,
body[data-template="retro"] .admin-panel,
body[data-template="retro"] .module {
  background: rgba(45, 48, 71, 0.96);
  border: 2px solid #0b1517;
  box-shadow: 10px 10px 0 #0b1517;
}

body[data-template="retro"] .cover {
  background:
    linear-gradient(135deg, rgba(255, 202, 58, 0.28), transparent),
    #2d3047;
}

body[data-template="retro"] .cover {
  min-height: 340px;
  transform: rotate(-0.3deg);
}

body[data-template="retro"] .preview-section:nth-of-type(even) {
  transform: rotate(0.25deg);
}

body[data-template="retro"] .avatar,
body[data-template="retro"] .brand-mark,
body[data-template="retro"] .primary-btn,
body[data-template="retro"] .quick-actions a,
body[data-template="retro"] .chat-message.owner {
  background: #ffca3a;
  color: #0b1517;
}

body[data-template="retro"] .kicker,
body[data-template="retro"] h3,
body[data-template="retro"] .service-card strong,
body[data-template="retro"] .lead-item strong,
body[data-template="retro"] .chat-message strong {
  color: #ffca3a;
}

body[data-template="spa"] .phone-preview,
body[data-template="spa"] .admin-panel,
body[data-template="spa"] .module {
  background: rgba(46, 65, 52, 0.94);
}

body[data-template="spa"] .cover {
  min-height: 340px;
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 183, 200, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(93, 143, 115, 0.38), transparent),
    rgba(46, 65, 52, 0.94);
}

body[data-template="spa"] .service-list,
body[data-template="spa"] .product-grid {
  grid-template-columns: 1fr;
}

body[data-template="spa"] .avatar,
body[data-template="spa"] .brand-mark,
body[data-template="spa"] .primary-btn,
body[data-template="spa"] .quick-actions a,
body[data-template="spa"] .chat-message.owner {
  background: #f4b7c8;
  color: #173a2d;
}

body[data-template="teacher"] .phone-preview,
body[data-template="teacher"] .admin-panel,
body[data-template="teacher"] .module {
  background: rgba(20, 48, 82, 0.94);
}

body[data-template="teacher"] .phone-preview {
  grid-template-columns: 1fr 1fr;
}

body[data-template="teacher"] .cover,
body[data-template="teacher"] .quick-actions,
body[data-template="teacher"] .products-section {
  grid-column: 1 / -1;
}

body[data-template="teacher"] .products-section {
  order: -1;
}

body[data-template="teacher"] .avatar,
body[data-template="teacher"] .brand-mark,
body[data-template="teacher"] .primary-btn,
body[data-template="teacher"] .quick-actions a,
body[data-template="teacher"] .chat-message.owner {
  background: #f7f3d4;
  color: #143052;
}

body[data-template="clinic"] .phone-preview,
body[data-template="clinic"] .admin-panel,
body[data-template="clinic"] .module {
  background: rgba(12, 64, 58, 0.94);
}

body[data-template="clinic"] .avatar,
body[data-template="clinic"] .brand-mark,
body[data-template="clinic"] .primary-btn,
body[data-template="clinic"] .quick-actions a,
body[data-template="clinic"] .chat-message.owner {
  background: #9ff5df;
  color: #0c403a;
}

body[data-template="food"] .phone-preview,
body[data-template="food"] .admin-panel,
body[data-template="food"] .module {
  background: rgba(72, 30, 18, 0.94);
}

body[data-template="food"] .cover {
  min-height: 380px;
  background:
    radial-gradient(circle at 74% 22%, rgba(242, 162, 58, 0.4), transparent 30%),
    linear-gradient(135deg, #7a2d16, #2a0e07);
}

body[data-template="food"] .product-grid,
body[data-template="food"] .service-list {
  grid-template-columns: 1fr;
}

body[data-template="food"] .avatar,
body[data-template="food"] .brand-mark,
body[data-template="food"] .primary-btn,
body[data-template="food"] .quick-actions a,
body[data-template="food"] .chat-message.owner {
  background: #f2a23a;
  color: #271006;
}

body[data-template="craft"] .phone-preview,
body[data-template="craft"] .admin-panel,
body[data-template="craft"] .module {
  background: rgba(70, 52, 38, 0.94);
}

body[data-template="craft"] .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-template="craft"] .cover {
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(236, 216, 177, 0.22), transparent 50%),
    rgba(70, 52, 38, 0.94);
}

body[data-template="craft"] .avatar,
body[data-template="craft"] .brand-mark,
body[data-template="craft"] .primary-btn,
body[data-template="craft"] .quick-actions a,
body[data-template="craft"] .chat-message.owner {
  background: #ecd8b1;
  color: #463426;
}

body[data-template="fitness"] .phone-preview,
body[data-template="fitness"] .admin-panel,
body[data-template="fitness"] .module {
  background: rgba(16, 24, 32, 0.96);
}

body[data-template="fitness"] .cover {
  min-height: 360px;
  background:
    linear-gradient(120deg, rgba(255, 92, 53, 0.38), transparent 42%),
    #101820;
}

body[data-template="fitness"] .quick-actions {
  justify-content: center;
}

body[data-template="fitness"] .service-card,
body[data-template="fitness"] .portfolio-card {
  border-radius: 2px;
}

body[data-template="fitness"] .avatar,
body[data-template="fitness"] .brand-mark,
body[data-template="fitness"] .primary-btn,
body[data-template="fitness"] .quick-actions a,
body[data-template="fitness"] .chat-message.owner {
  background: #ff5c35;
  color: #101820;
}

.phone-preview .cover {
  order: -8;
}

.phone-preview .quick-actions {
  order: -7;
}

body[data-template="tech"] .phone-preview {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

body[data-template="tech"] .cover,
body[data-template="tech"] .quick-actions,
body[data-template="tech"] .plan-section {
  grid-column: 1 / -1;
}

body[data-template="tech"] .services-section,
body[data-template="tech"] .products-section {
  grid-column: 1;
}

body[data-template="tech"] .works-section,
body[data-template="tech"] .video-section,
body[data-template="tech"] .tiers-section,
body[data-template="tech"] .quote-section {
  grid-column: 2;
}

body[data-template="tech"] .cover {
  min-height: 420px;
}

body[data-template="photo"] .cover {
  order: -8;
  grid-column: 1 / -1;
  min-height: 500px;
}

body[data-template="photo"] .quick-actions {
  order: -7;
}

body[data-template="photo"] .works-section {
  order: -6;
}

body[data-template="photo"] .about-section,
body[data-template="photo"] .quote-section {
  grid-column: 1;
}

body[data-template="photo"] .services-section,
body[data-template="photo"] .products-section,
body[data-template="photo"] .video-section,
body[data-template="photo"] .tiers-section,
body[data-template="photo"] .plan-section {
  grid-column: 2;
}

body[data-template="photo"] .works-section .portfolio-card {
  padding: 0;
  overflow: hidden;
  background: rgba(246, 241, 232, 0.08);
}

body[data-template="photo"] .works-section .portfolio-card strong,
body[data-template="photo"] .works-section .portfolio-card span {
  padding: 0 14px;
}

body[data-template="photo"] .works-section .portfolio-card span {
  padding-bottom: 14px;
}

body[data-template="consult"] .cover {
  min-height: 300px;
  padding-right: min(160px, 18vw);
}

body[data-template="consult"] .quick-actions {
  justify-content: flex-end;
}

body[data-template="consult"] .services-section {
  order: -5;
}

body[data-template="consult"] .products-section {
  order: -4;
}

body[data-template="consult"] .about-section {
  order: -3;
}

body[data-template="consult"] .service-list,
body[data-template="consult"] .product-grid {
  grid-template-columns: 1fr;
}

body[data-template="coach"] .phone-preview {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

body[data-template="coach"] .cover {
  grid-row: span 3;
  min-height: 680px;
  align-content: end;
}

body[data-template="coach"] .quick-actions,
body[data-template="coach"] .about-section,
body[data-template="coach"] .quote-section {
  grid-column: 2;
}

body[data-template="coach"] .services-section,
body[data-template="coach"] .products-section,
body[data-template="coach"] .tiers-section,
body[data-template="coach"] .plan-section,
body[data-template="coach"] .video-section,
body[data-template="coach"] .works-section {
  grid-column: 1 / -1;
}

body[data-template="coach"] .service-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-template="minimal"] .phone-preview {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0 26px;
  padding: 28px;
}

body[data-template="minimal"] .cover {
  grid-row: span 3;
  align-content: start;
  align-self: start;
  min-height: 620px;
  padding: 0 24px 0 0;
  border-right: 1px solid rgba(17, 17, 17, 0.12);
  border-bottom: 0;
}

body[data-template="minimal"] .about-section,
body[data-template="minimal"] .services-section,
body[data-template="minimal"] .works-section,
body[data-template="minimal"] .video-section,
body[data-template="minimal"] .products-section,
body[data-template="minimal"] .tiers-section,
body[data-template="minimal"] .plan-section,
body[data-template="minimal"] .quote-section {
  grid-column: 2;
  padding: 18px 0;
}

body[data-template="minimal"] .portfolio-grid,
body[data-template="minimal"] .service-list,
body[data-template="minimal"] .product-grid,
body[data-template="minimal"] .tier-grid {
  grid-template-columns: 1fr;
}

body[data-template="retro"] .phone-preview {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

body[data-template="retro"] .cover,
body[data-template="retro"] .quick-actions,
body[data-template="retro"] .video-section,
body[data-template="retro"] .works-section {
  grid-column: 1 / -1;
}

body[data-template="retro"] .preview-section {
  border: 2px solid #0b1517;
  background: rgba(255, 202, 58, 0.06);
  box-shadow: 5px 5px 0 #0b1517;
}

body[data-template="retro"] .works-section {
  order: -6;
}

body[data-template="retro"] .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-template="spa"] {
  background:
    radial-gradient(circle at 20% 22%, rgba(244, 183, 200, 0.34), transparent 28%),
    linear-gradient(180deg, #eef4ef, #dce8df);
}

body[data-template="spa"] .phone-preview {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

body[data-template="spa"] .cover,
body[data-template="spa"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-template="spa"] .cover {
  align-items: end;
  min-height: 440px;
}

body[data-template="spa"] .services-section,
body[data-template="spa"] .tiers-section {
  order: -5;
}

body[data-template="spa"] .works-section,
body[data-template="spa"] .video-section,
body[data-template="spa"] .quote-section {
  grid-column: 1;
}

body[data-template="spa"] .services-section,
body[data-template="spa"] .products-section,
body[data-template="spa"] .tiers-section,
body[data-template="spa"] .plan-section {
  grid-column: 2;
}

body[data-template="teacher"] .cover {
  min-height: 320px;
  background:
    radial-gradient(circle at 84% 22%, rgba(247, 243, 212, 0.36), transparent 28%),
    linear-gradient(135deg, rgba(82, 178, 205, 0.22), transparent),
    #143052;
}

body[data-template="teacher"] .products-section {
  order: -6;
}

body[data-template="teacher"] .services-section {
  order: -5;
}

body[data-template="teacher"] .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-template="clinic"] .phone-preview {
  grid-template-columns: minmax(0, 1fr) 300px;
}

body[data-template="clinic"] .cover,
body[data-template="clinic"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-template="clinic"] .services-section {
  order: -6;
  grid-column: 1;
}

body[data-template="clinic"] .about-section,
body[data-template="clinic"] .tiers-section,
body[data-template="clinic"] .quote-section {
  grid-column: 2;
}

body[data-template="clinic"] .works-section,
body[data-template="clinic"] .video-section,
body[data-template="clinic"] .products-section,
body[data-template="clinic"] .plan-section {
  grid-column: 1;
}

body[data-template="clinic"] .service-list,
body[data-template="clinic"] .product-grid {
  grid-template-columns: 1fr;
}

body[data-template="food"] .phone-preview {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

body[data-template="food"] .cover {
  grid-column: 1;
  grid-row: span 4;
  min-height: 760px;
  align-content: end;
}

body[data-template="food"] .quick-actions,
body[data-template="food"] .products-section,
body[data-template="food"] .services-section,
body[data-template="food"] .tiers-section {
  grid-column: 2;
}

body[data-template="food"] .products-section {
  order: -6;
}

body[data-template="food"] .works-section,
body[data-template="food"] .video-section,
body[data-template="food"] .plan-section,
body[data-template="food"] .quote-section {
  grid-column: 1 / -1;
}

body[data-template="craft"] .phone-preview {
  grid-template-columns: 1fr 1fr;
}

body[data-template="craft"] .cover,
body[data-template="craft"] .quick-actions,
body[data-template="craft"] .video-section,
body[data-template="craft"] .works-section {
  grid-column: 1 / -1;
}

body[data-template="craft"] .works-section {
  order: -6;
}

body[data-template="craft"] .portfolio-card:nth-child(1) {
  grid-column: span 2;
}

body[data-template="craft"] .portfolio-card:nth-child(1) .work-placeholder,
body[data-template="craft"] .portfolio-card:nth-child(1) img {
  aspect-ratio: 16 / 8;
}

body[data-template="craft"] .preview-section {
  background:
    linear-gradient(135deg, rgba(236, 216, 177, 0.08), transparent),
    rgba(205, 220, 222, 0.04);
}

body[data-template="fitness"] .phone-preview {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

body[data-template="fitness"] .cover,
body[data-template="fitness"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-template="fitness"] .services-section,
body[data-template="fitness"] .products-section {
  order: -6;
  grid-column: 1;
}

body[data-template="fitness"] .tiers-section,
body[data-template="fitness"] .quote-section,
body[data-template="fitness"] .about-section {
  grid-column: 2;
}

body[data-template="fitness"] .works-section,
body[data-template="fitness"] .video-section,
body[data-template="fitness"] .plan-section {
  grid-column: 1 / -1;
}

body[data-template="fitness"] .service-list {
  grid-template-columns: 1fr;
}

body[data-color-style="klein"] {
  --cyan: #52b2cd;
  --blue: #002fa7;
  --mist: #f7e6c4;
}

body[data-color-style="silver"] {
  --cyan: #cddcde;
  --blue: #8c8c8e;
  --mist: #e7eef0;
}

body[data-color-style="orange"] {
  --cyan: #f27c0c;
  --blue: #16749d;
  --mist: #f7e6c4;
}

body[data-color-style="rose"] {
  --cyan: #f4b7c8;
  --blue: #5d8f73;
  --mist: #f7e6c4;
}

body[data-color-style="ink"] {
  --cyan: #f2fbff;
  --blue: #111111;
  --mist: #cddcde;
}

body[data-site-style] .phone-preview {
  gap: 0;
}

body[data-site-style] .cover,
body[data-site-style] .quick-actions,
body[data-site-style] .preview-section {
  grid-column: auto;
  grid-row: auto;
  order: 0;
}

body[data-site-style="card"] .phone-preview {
  grid-template-columns: 260px minmax(0, 1fr);
  padding: 22px;
  background: #f7f7f7;
}

body[data-site-style="card"] .cover {
  grid-row: span 7;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 620px;
  padding: 0 22px 0 0;
  color: #111;
  background: transparent;
  border-right: 1px solid rgba(17, 17, 17, 0.12);
}

body[data-site-style="card"] .cover::after,
body[data-site-style="card"] .quick-actions {
  display: none;
}

body[data-site-style="card"] .preview-section {
  padding: 18px 0 18px 24px;
  color: #111;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

body[data-site-style="card"] h1,
body[data-site-style="card"] h2,
body[data-site-style="card"] .site-meta,
body[data-site-style="card"] .cover p:last-child,
body[data-site-style="card"] .preview-section p,
body[data-site-style="card"] .service-card span,
body[data-site-style="card"] .portfolio-card span {
  color: #111;
}

body[data-site-style="card"] .service-list,
body[data-site-style="card"] .portfolio-grid,
body[data-site-style="card"] .product-grid,
body[data-site-style="card"] .tier-grid {
  grid-template-columns: 1fr;
}

body[data-site-style="gallery"] .phone-preview {
  grid-template-columns: 1fr 340px;
}

body[data-site-style="gallery"] .cover,
body[data-site-style="gallery"] .quick-actions,
body[data-site-style="gallery"] .works-section {
  grid-column: 1 / -1;
}

body[data-site-style="gallery"] .cover {
  min-height: 520px;
  align-items: end;
}

body[data-site-style="gallery"] .works-section {
  order: -5;
}

body[data-site-style="gallery"] .portfolio-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
}

body[data-site-style="gallery"] .portfolio-card:first-child {
  grid-row: span 2;
}

body[data-site-style="gallery"] .services-section,
body[data-site-style="gallery"] .products-section,
body[data-site-style="gallery"] .schedule-section {
  grid-column: 1;
}

body[data-site-style="gallery"] .about-section,
body[data-site-style="gallery"] .video-section,
body[data-site-style="gallery"] .tiers-section,
body[data-site-style="gallery"] .plan-section,
body[data-site-style="gallery"] .quote-section {
  grid-column: 2;
}

body[data-site-style="booking"] .phone-preview {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

body[data-site-style="booking"] .products-section,
body[data-site-style="booking"] .schedule-section {
  order: -7;
  grid-column: 2;
}

body[data-site-style="booking"] .cover,
body[data-site-style="booking"] .quick-actions {
  grid-column: 1;
}

body[data-site-style="booking"] .cover {
  min-height: 560px;
  align-content: end;
}

body[data-site-style="booking"] .service-list,
body[data-site-style="booking"] .product-grid {
  grid-template-columns: 1fr;
}

body[data-site-style="booking"] .services-section,
body[data-site-style="booking"] .about-section,
body[data-site-style="booking"] .quote-section {
  grid-column: 1;
}

body[data-site-style="resume"] .phone-preview {
  grid-template-columns: 300px minmax(0, 1fr);
}

body[data-site-style="resume"] .cover {
  grid-row: 1;
  grid-template-columns: 1fr;
  align-content: start;
  align-self: start;
  min-height: 860px;
  background: rgba(242, 251, 255, 0.06);
}

body[data-site-style="resume"] .quick-actions,
body[data-site-style="resume"] .about-section,
body[data-site-style="resume"] .services-section,
body[data-site-style="resume"] .products-section,
body[data-site-style="resume"] .schedule-section,
body[data-site-style="resume"] .works-section,
body[data-site-style="resume"] .video-section,
body[data-site-style="resume"] .tiers-section,
body[data-site-style="resume"] .plan-section,
body[data-site-style="resume"] .quote-section {
  grid-column: 2;
}

body[data-site-style="resume"] .about-section {
  order: -4;
}

body[data-site-style="beauty"] .phone-preview {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: rgba(46, 65, 52, 0.94);
}

body[data-site-style="beauty"] .cover,
body[data-site-style="beauty"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-site-style="beauty"] .cover {
  min-height: 440px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(244, 183, 200, 0.36), transparent 34%),
    rgba(46, 65, 52, 0.94);
}

body[data-site-style="beauty"] .services-section,
body[data-site-style="beauty"] .products-section,
body[data-site-style="beauty"] .tiers-section {
  order: -3;
}

body[data-site-style="tech"] .phone-preview {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  background: #070b10;
}

body[data-site-style="tech"] .cover,
body[data-site-style="tech"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-site-style="tech"] .cover {
  min-height: 430px;
  background:
    linear-gradient(120deg, rgba(82, 178, 205, 0.22), transparent 42%),
    #070b10;
}

body[data-site-style="tech"] .services-section,
body[data-site-style="tech"] .products-section,
body[data-site-style="tech"] .schedule-section {
  grid-column: 1;
}

body[data-site-style="tech"] .about-section,
body[data-site-style="tech"] .works-section,
body[data-site-style="tech"] .video-section,
body[data-site-style="tech"] .quote-section {
  grid-column: 2;
}

body[data-site-style="mystic"] .phone-preview {
  grid-template-columns: 1fr 1fr;
  background:
    linear-gradient(90deg, rgba(255, 202, 58, 0.12) 1px, transparent 1px),
    #261d34;
  background-size: 34px 34px;
}

body[data-site-style="mystic"] .cover,
body[data-site-style="mystic"] .quick-actions,
body[data-site-style="mystic"] .products-section {
  grid-column: 1 / -1;
}

body[data-site-style="mystic"] .cover {
  min-height: 460px;
  justify-items: center;
  text-align: center;
  border: 2px solid rgba(255, 202, 58, 0.42);
}

body[data-site-style="mystic"] .products-section {
  order: -4;
}

body[data-site-style="mystic"] .preview-section {
  border: 1px solid rgba(255, 202, 58, 0.28);
}

body[data-site-style="local"] .phone-preview {
  grid-template-columns: 330px minmax(0, 1fr);
}

body[data-site-style="local"] .cover {
  grid-row: span 5;
  min-height: 760px;
  align-content: end;
}

body[data-site-style="local"] .quick-actions,
body[data-site-style="local"] .products-section,
body[data-site-style="local"] .schedule-section,
body[data-site-style="local"] .quote-section {
  grid-column: 2;
}

body[data-site-style="local"] .products-section,
body[data-site-style="local"] .schedule-section {
  order: -5;
}

body[data-site-style="local"] .service-list,
body[data-site-style="local"] .product-grid {
  grid-template-columns: 1fr;
}

body[data-site-style="magazine"] .phone-preview {
  grid-template-columns: 1fr 1fr;
  background: #f7f2ea;
}

body[data-site-style="magazine"] .cover,
body[data-site-style="magazine"] .quick-actions,
body[data-site-style="magazine"] .about-section,
body[data-site-style="magazine"] .works-section {
  grid-column: 1 / -1;
}

body[data-site-style="magazine"] .cover {
  min-height: 500px;
  color: #111;
  background: #f7f2ea;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

body[data-site-style="magazine"] h1,
body[data-site-style="magazine"] h2,
body[data-site-style="magazine"] .site-meta,
body[data-site-style="magazine"] .cover p:last-child,
body[data-site-style="magazine"] .preview-section p,
body[data-site-style="magazine"] .service-card span,
body[data-site-style="magazine"] .portfolio-card span {
  color: #111;
}

body[data-site-style="magazine"] .preview-section,
body[data-site-style="magazine"] .service-card,
body[data-site-style="magazine"] .portfolio-card {
  color: #111;
  background: transparent;
  border-color: rgba(17, 17, 17, 0.12);
}

body[data-site-style="magazine"] .works-section {
  order: -4;
}

body[data-site-style="magazine"] .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-site-style="report"] .phone-preview {
  grid-template-columns: minmax(0, 1fr) 330px;
  background: #eef5f8;
}

body[data-site-style="report"] .cover,
body[data-site-style="report"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-site-style="report"] .cover {
  min-height: 340px;
  background: #123a58;
}

body[data-site-style="report"] .services-section,
body[data-site-style="report"] .products-section,
body[data-site-style="report"] .schedule-section,
body[data-site-style="report"] .plan-section {
  grid-column: 1;
}

body[data-site-style="report"] .about-section,
body[data-site-style="report"] .works-section,
body[data-site-style="report"] .video-section,
body[data-site-style="report"] .tiers-section,
body[data-site-style="report"] .quote-section {
  grid-column: 2;
}

body[data-site-style="report"] .preview-section,
body[data-site-style="report"] .service-card,
body[data-site-style="report"] .portfolio-card {
  color: #123a58;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(18, 58, 88, 0.14);
}

body[data-site-style="report"] h2,
body[data-site-style="report"] .preview-section p,
body[data-site-style="report"] .service-card span,
body[data-site-style="report"] .portfolio-card span {
  color: #123a58;
}

body[data-site-style="whitespace"] .phone-preview {
  grid-template-columns: 1fr 330px;
  background: #fbfbf8;
}

body[data-site-style="whitespace"] .cover,
body[data-site-style="whitespace"] .quick-actions,
body[data-site-style="whitespace"] .works-section {
  grid-column: 1 / -1;
}

body[data-site-style="whitespace"] .cover {
  min-height: 540px;
  align-items: end;
  color: #111;
  background:
    linear-gradient(180deg, rgba(251, 251, 248, 0.08), rgba(251, 251, 248, 0.94)),
    rgba(17, 17, 17, 0.04);
}

body[data-site-style="whitespace"] .cover::after {
  width: 42%;
  height: 62%;
  background:
    linear-gradient(135deg, rgba(82, 178, 205, 0.18), rgba(17, 17, 17, 0.04)),
    #efefea;
}

body[data-site-style="whitespace"] .works-section {
  order: -5;
}

body[data-site-style="whitespace"] .portfolio-grid {
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

body[data-site-style="whitespace"] .portfolio-card {
  padding: 0;
  overflow: hidden;
  color: #111;
  background: #fff;
  border-color: rgba(17, 17, 17, 0.1);
}

body[data-site-style="whitespace"] .preview-section,
body[data-site-style="whitespace"] .service-card {
  color: #111;
  background: transparent;
  border-color: rgba(17, 17, 17, 0.1);
}

body[data-site-style="whitespace"] h1,
body[data-site-style="whitespace"] h2,
body[data-site-style="whitespace"] .site-meta,
body[data-site-style="whitespace"] .cover p:last-child,
body[data-site-style="whitespace"] .preview-section p,
body[data-site-style="whitespace"] .service-card span,
body[data-site-style="whitespace"] .portfolio-card span {
  color: #111;
}

body[data-site-style="collage"] .phone-preview {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 202, 58, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #2d3047, #191625);
  background-size: 32px 32px, auto;
}

body[data-site-style="collage"] .cover,
body[data-site-style="collage"] .quick-actions,
body[data-site-style="collage"] .works-section {
  grid-column: 1 / -1;
}

body[data-site-style="collage"] .cover {
  min-height: 430px;
  transform: rotate(-0.4deg);
  border: 2px solid rgba(255, 202, 58, 0.55);
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 202, 58, 0.2), transparent 28%),
    #2d3047;
}

body[data-site-style="collage"] .preview-section {
  border: 2px solid rgba(11, 21, 23, 0.72);
  background: rgba(255, 202, 58, 0.07);
  box-shadow: 6px 6px 0 rgba(11, 21, 23, 0.8);
}

body[data-site-style="collage"] .preview-section:nth-of-type(odd) {
  transform: rotate(0.35deg);
}

body[data-site-style="collage"] .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-site-style="collage"] .portfolio-card:nth-child(1) {
  grid-column: span 2;
}

body[data-site-style="collage"] .portfolio-card:nth-child(2) {
  transform: rotate(-1.2deg);
}

body[data-site-style="collage"] .portfolio-card:nth-child(3) {
  transform: rotate(1deg);
}

body[data-site-style="collage"] .work-placeholder,
body[data-site-style="collage"] .portfolio-card img {
  filter: sepia(0.4) contrast(1.08) saturate(0.84);
}

body[data-site-style="cards"] .phone-preview {
  grid-template-columns: 0.86fr 1.14fr;
  background: #10222a;
}

body[data-site-style="cards"] .cover,
body[data-site-style="cards"] .quick-actions {
  grid-column: 1;
}

body[data-site-style="cards"] .cover {
  min-height: 540px;
  align-content: end;
}

body[data-site-style="cards"] .services-section,
body[data-site-style="cards"] .products-section {
  order: -6;
  grid-column: 2;
}

body[data-site-style="cards"] .schedule-section,
body[data-site-style="cards"] .quote-section {
  grid-column: 2;
}

body[data-site-style="cards"] .service-list,
body[data-site-style="cards"] .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-site-style="cards"] .service-card {
  min-height: 170px;
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(82, 178, 205, 0.24), rgba(242, 124, 12, 0.16)),
    rgba(242, 251, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body[data-site-style="cards"] .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body[data-site-style="motion"] .phone-preview {
  grid-template-columns: 1fr 1fr;
  background: #173a2d;
}

body[data-site-style="motion"] .cover,
body[data-site-style="motion"] .quick-actions {
  grid-column: 1 / -1;
}

body[data-site-style="motion"] .cover {
  min-height: 440px;
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 183, 200, 0.4), transparent 28%),
    #173a2d;
}

body[data-site-style="motion"] .services-section,
body[data-site-style="motion"] .products-section {
  order: -4;
}

body[data-site-style="motion"] .service-card,
body[data-site-style="motion"] .portfolio-card {
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

body[data-site-style="motion"] .service-card::after,
body[data-site-style="motion"] .portfolio-card::after {
  content: "过程图";
  display: grid;
  min-height: 84px;
  margin-top: 8px;
  place-items: center;
  color: var(--black);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), rgba(244, 183, 200, 0.82));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body[data-site-style="motion"] .service-card:hover,
body[data-site-style="motion"] .portfolio-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(244, 183, 200, 0.64);
}

body[data-site-style="motion"] .service-card:hover::after,
body[data-site-style="motion"] .portfolio-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

body[data-site-style="timeline"] .phone-preview {
  grid-template-columns: 320px minmax(0, 1fr);
  background: #101820;
}

body[data-site-style="timeline"] .cover {
  grid-row: span 2;
  align-self: start;
  min-height: 720px;
  align-content: end;
}

body[data-site-style="timeline"] .quick-actions,
body[data-site-style="timeline"] .services-section,
body[data-site-style="timeline"] .products-section,
body[data-site-style="timeline"] .schedule-section,
body[data-site-style="timeline"] .about-section,
body[data-site-style="timeline"] .quote-section,
body[data-site-style="timeline"] .works-section,
body[data-site-style="timeline"] .video-section,
body[data-site-style="timeline"] .tiers-section,
body[data-site-style="timeline"] .plan-section {
  grid-column: 2;
}

body[data-site-style="timeline"] .services-section {
  order: -6;
}

body[data-site-style="timeline"] .products-section {
  order: -5;
}

body[data-site-style="timeline"] .schedule-section {
  order: -4;
}

body[data-site-style="timeline"] .preview-section {
  position: relative;
  padding-left: 46px;
}

body[data-site-style="timeline"] .preview-section::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(82, 178, 205, 0.46);
}

body[data-site-style="timeline"] .preview-section::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(82, 178, 205, 0.18);
}

body[data-site-style="magazine"] .phone-preview {
  grid-template-columns: 1fr 1fr;
  background: #f7f2ea;
}

body[data-site-style="magazine"] .cover,
body[data-site-style="magazine"] .quick-actions,
body[data-site-style="magazine"] .about-section,
body[data-site-style="magazine"] .works-section {
  grid-column: 1 / -1;
}

body[data-site-style="magazine"] .cover {
  grid-template-columns: 180px 1fr;
  min-height: 500px;
  color: #111;
  background: #f7f2ea;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

body[data-site-style="magazine"] h1 {
  max-width: 780px;
  color: #111;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 0.9;
}

body[data-site-style="magazine"] h2,
body[data-site-style="magazine"] .site-meta,
body[data-site-style="magazine"] .cover p:last-child,
body[data-site-style="magazine"] .preview-section p,
body[data-site-style="magazine"] .service-card span,
body[data-site-style="magazine"] .portfolio-card span {
  color: #111;
}

body[data-site-style="magazine"] .preview-section,
body[data-site-style="magazine"] .service-card,
body[data-site-style="magazine"] .portfolio-card {
  color: #111;
  background: transparent;
  border-color: rgba(17, 17, 17, 0.12);
}

body[data-site-style="magazine"] .about-section p {
  columns: 2;
  column-gap: 28px;
}

body[data-site-style="magazine"] .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .hero-core h1 {
  color: var(--white);
}

@media (max-width: 1080px) {
  .workspace,
  .conversion-grid {
    grid-template-columns: 1fr;
  }

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

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

  .panel-split {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .topbar nav {
    display: none;
  }

  main {
    padding: 14px;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-nav,
  .hero-status,
  .hero-metrics {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-core {
    margin-top: 58px;
  }

  .hero-choice-grid {
    grid-template-columns: 1fr;
  }

  .template-options {
    grid-template-columns: 1fr;
  }

  .style-options,
  .site-style-options,
  .color-options {
    grid-template-columns: 1fr;
  }

  .cover {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .quick-actions a,
  .quick-actions button,
  .hero-start-btn,
  .ghost-btn,
  .primary-btn {
    width: 100%;
  }

  .service-editor,
  .creator-windows,
  .business-config,
  .phone-preview,
  .portfolio-grid,
  .video-grid,
  .product-grid,
  .tier-grid,
  .plan-grid,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .phone-preview .cover,
  .phone-preview .quick-actions,
  .phone-preview .preview-section {
    grid-column: auto;
    grid-row: auto;
    order: initial;
    min-height: auto;
  }

  body[data-template] .cover {
    min-height: 300px;
  }

  body[data-site-style] .phone-preview {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body[data-site-style] .cover,
  body[data-site-style] .quick-actions,
  body[data-site-style] .preview-section {
    grid-column: auto;
    grid-row: auto;
    order: initial;
    min-height: auto;
    padding: 22px;
    border-right: 0;
  }

  body[data-template="minimal"] .phone-preview {
    padding: 0;
  }

  body[data-template="minimal"] .cover {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  }

  body[data-template="minimal"] .about-section,
  body[data-template="minimal"] .services-section,
  body[data-template="minimal"] .works-section,
  body[data-template="minimal"] .video-section,
  body[data-template="minimal"] .products-section,
  body[data-template="minimal"] .tiers-section,
  body[data-template="minimal"] .plan-section,
  body[data-template="minimal"] .quote-section {
    padding: 22px;
  }

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