:root {
  --primary: #2f6bff;
  --primary-2: #745cff;
  --cyan: #12c8ff;
  --surface: #ffffff;
  --page: #f4f7fd;
  --text: #14213d;
  --text-2: #40506b;
  --muted: #75839b;
  --line: #dce6f5;
  --line-soft: #eaf0f8;
  --soft-blue: #eaf1ff;
  --success: #42cda3;
  --danger: #ff6478;
  --shadow-card: 0 12px 36px rgba(41, 83, 163, 0.09);
  --shadow-floating: 0 24px 60px rgba(47, 107, 255, 0.17);
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(83, 143, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 4%, rgba(116, 92, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fd 45%, #f4f8fe 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  border: 0;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

svg {
  flex: 0 0 auto;
}

::selection {
  color: #fff;
  background: rgba(47, 107, 255, 0.86);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(117, 131, 155, 0.25);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--text-2);
}

.app-loading span {
  width: 42px;
  height: 42px;
  border: 3px solid #dce7fb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.app-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.page-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("../../assets/background-aurora.webp") top center / cover no-repeat;
  opacity: 0.72;
}

.page-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(248, 251, 255, 0.15), rgba(244, 247, 253, 0.76));
}

.app-container {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 16px 30px 28px;
}

/* Hero */
.hero-shell {
  position: relative;
  height: 218px;
  display: grid;
  grid-template-columns: minmax(680px, 1.3fr) minmax(430px, 0.9fr);
  align-items: start;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 7px 0 0 32px;
}

.hero-title-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-title-line h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(108deg, #2874f4 0%, #235dd9 48%, #744fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(36px, 3vw, 48px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -2.5px;
  text-shadow: 0 11px 28px rgba(47, 107, 255, 0.12);
}

.hero-sparkle {
  transform: translateY(-5px);
  font-size: 34px;
  color: #6d58ff;
  filter: drop-shadow(0 6px 10px rgba(104, 82, 255, 0.2));
}

.hero-copy h2 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #101c34;
}

.hero-copy > p {
  max-width: 770px;
  margin: 9px 0 0;
  color: #6b7890;
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
}

.step-guide {
  display: flex;
  align-items: center;
  width: min(100%, 760px);
  margin-top: 15px;
}

.step-card {
  min-width: 0;
  width: 226px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid rgba(205, 219, 243, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 9px 24px rgba(56, 96, 172, 0.08);
  backdrop-filter: blur(10px);
}

.step-number {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(145deg, #69a9ff 0%, #2f6bff 55%, #735cff 100%);
  box-shadow: 0 8px 15px rgba(47, 107, 255, 0.26), inset 0 1px rgba(255, 255, 255, 0.5);
}

.step-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.step-copy strong {
  font-size: 13px;
  color: #17243f;
  white-space: nowrap;
}

.step-copy small {
  overflow: hidden;
  color: #8590a4;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-arrow {
  width: 28px;
  display: grid;
  place-items: center;
  color: #c2d5f9;
}

.hero-art {
  position: relative;
  height: 100%;
  min-width: 0;
}

.hero-art > img {
  position: absolute;
  z-index: 2;
  top: -74px;
  right: 103px;
  width: 520px;
  max-width: none;
  filter: drop-shadow(0 26px 32px rgba(47, 107, 255, 0.14));
}

.hero-art-glow {
  position: absolute;
  top: -78px;
  right: 38px;
  width: 560px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 146, 255, 0.19), rgba(127, 99, 255, 0.07) 45%, transparent 72%);
  filter: blur(8px);
}

.hero-check-list {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 119px;
  display: grid;
  gap: 8px;
}

.hero-check-list span {
  width: 124px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #33435e;
  border: 1px solid rgba(215, 225, 244, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 18px rgba(58, 90, 147, 0.09);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-check-list i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #66e4bc, #23bf92);
  box-shadow: 0 5px 10px rgba(34, 190, 144, 0.24);
}

.hero-handwriting {
  position: absolute;
  z-index: 4;
  top: 66px;
  right: 8px;
  color: #375ba5;
  font-family: "KaiTi", "STKaiti", cursive;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  transform: rotate(-7deg);
}

.hero-handwriting::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -9px;
  width: 96px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #4c78e3 20%, #4c78e3 80%, transparent);
  transform: rotate(-6deg);
}

/* Main workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.12fr) minmax(238px, 0.78fr) minmax(330px, 1.12fr) minmax(322px, 1.03fr);
  gap: 12px;
  align-items: stretch;
}

.workspace-card {
  position: relative;
  min-width: 0;
  height: 687px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(214, 225, 243, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.panel-heading {
  min-height: 43px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-heading.compact {
  min-height: 36px;
  margin-bottom: 0;
}

.panel-number {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.panel-heading h3 {
  margin: 0;
  color: #15213a;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.panel-heading p {
  margin: 4px 0 0;
  color: #8a96a9;
  font-size: 9.5px;
  line-height: 1.3;
}

.form-field {
  position: relative;
  margin-top: 11px;
}

.form-field > label,
.settings-group > label {
  display: block;
  margin-bottom: 6px;
  color: #34425a;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
}

.form-field label em,
.label-row label em {
  margin-left: 2px;
  color: #ff5368;
  font-style: normal;
}

.text-control {
  width: 100%;
  min-height: 34px;
  padding: 8px 11px;
  color: #263650;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  outline: none;
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
  box-shadow: inset 0 1px 2px rgba(52, 80, 132, 0.025);
  font-size: 11px;
  transition: 0.18s ease;
}

.text-control::placeholder {
  color: #a0acc0;
}

.text-control:focus {
  border-color: #74a0ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.field-tip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 5px 1px 0;
  color: #98a3b6;
  font-size: 9px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.label-row > label {
  color: #34425a;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
}

.detail-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  color: #6087db;
  background: transparent;
  font-size: 9px;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.industry-chip {
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  color: #526078;
  border: 1px solid #e1e8f4;
  border-radius: 7px;
  background: #f8faff;
  font-size: 9.5px;
  font-weight: 600;
  transition: 0.18s ease;
}

.industry-chip:hover {
  color: var(--primary);
  border-color: #b7ceff;
  background: #f3f7ff;
}

.industry-chip.active {
  color: #2c67ed;
  border-color: #6a98ff;
  background: linear-gradient(135deg, #eef4ff, #f6f3ff);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.08);
}

.industry-current {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  color: #8a95a8;
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
}

.industry-current strong {
  overflow: hidden;
  color: #5f6e86;
  font-weight: 600;
  text-overflow: ellipsis;
}

.industry-popover {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, calc(100vw - 42px));
  overflow: hidden;
  border: 1px solid #dce5f4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(31, 62, 118, 0.18);
  backdrop-filter: blur(18px);
}

.industry-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #7d8ca4;
  border-bottom: 1px solid #edf1f7;
  background: #fbfdff;
}

.industry-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #2c3b54;
  background: transparent;
  font-size: 11px;
}

.industry-search button {
  display: grid;
  place-items: center;
  color: #8492a7;
  background: transparent;
}

.industry-list {
  max-height: 360px;
  overflow: auto;
  padding: 9px;
}

.industry-group + .industry-group {
  margin-top: 10px;
}

.industry-group-name {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #2f6bff;
  border-radius: 6px;
  background: #f2f6ff;
  font-size: 10px;
  font-weight: 800;
}

.industry-group-name small {
  color: #99a7bb;
  font-weight: 500;
}

.industry-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 3px 0;
}

.industry-detail-list button {
  padding: 6px 8px;
  color: #56647a;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fafbfe;
  font-size: 9px;
}

.industry-detail-list button:hover,
.industry-detail-list button.selected {
  color: var(--primary);
  border-color: #c6d8ff;
  background: #f1f6ff;
}

.industry-empty {
  padding: 42px 10px;
  color: #9aa6b8;
  text-align: center;
  font-size: 11px;
}

.intro-field textarea {
  height: 78px;
  min-height: 78px;
  resize: none;
  line-height: 1.65;
}

.char-count,
.inline-count {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: #9aa7ba;
  font-size: 9px;
}

.ai-polish-row {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding: 6px 7px 6px 10px;
  border: 1px solid #e4e2ff;
  border-radius: 9px;
  background: linear-gradient(105deg, #f6f3ff 0%, #f6f9ff 55%, #ecf8ff 100%);
}

.ai-polish-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(145deg, #7760ff, #3e78ff 58%, #23c9ef);
  box-shadow: 0 6px 12px rgba(84, 95, 255, 0.2);
}

.ai-polish-label div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ai-polish-label strong {
  color: #263450;
  font-size: 11px;
}

.ai-polish-label small {
  color: #8b72e8;
  font-size: 8.5px;
}

.ai-polish-button {
  height: 30px;
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  color: #fff;
  border-radius: 7px;
  background: linear-gradient(100deg, #3a70ff, #6e58ff 62%, #8f5eff);
  box-shadow: 0 6px 15px rgba(82, 89, 255, 0.22);
  font-size: 9.5px;
  font-weight: 700;
}

.button-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(47, 107, 255, 0.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.button-spinner.light {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

.upload-field {
  margin-top: 12px;
}

.upload-dropzone {
  width: 100%;
  height: 83px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #71809a;
  border: 1px dashed #c8d8f2;
  border-radius: 9px;
  background: linear-gradient(135deg, #fbfdff, #f5f9ff);
  transition: 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragging {
  border-color: #6f9bff;
  background: #f1f6ff;
  box-shadow: inset 0 0 0 2px rgba(47, 107, 255, 0.05);
}

.upload-dropzone img {
  width: 34px;
  height: 26px;
  object-fit: contain;
  object-position: center 35%;
}

.upload-dropzone strong {
  color: #596982;
  font-size: 9.5px;
}

.upload-dropzone span {
  color: #99a5b8;
  font-size: 8.5px;
}

.upload-preview {
  height: 83px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid #dbe5f4;
  border-radius: 9px;
  background: #fafcff;
}

.upload-preview > img {
  width: 78px;
  height: 67px;
  object-fit: cover;
  border-radius: 7px;
}

.upload-preview-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.upload-preview-meta strong {
  overflow: hidden;
  color: #34435b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-meta span {
  color: #96a2b5;
  font-size: 8.5px;
}

.upload-preview > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ff6578;
  border-radius: 7px;
  background: #fff0f2;
}

.primary-action {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(100deg, #2f6bff 0%, #476cff 40%, #765cff 66%, #12c8ff 100%);
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.22), inset 0 1px rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.primary-action:not(:disabled):hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.secondary-actions button {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #3c70e4;
  border-radius: 7px;
  background: #f1f5ff;
  font-size: 9.5px;
  font-weight: 700;
}

.secondary-actions button:hover {
  background: #e9f0ff;
}

.panel-footnote {
  margin: 7px 2px 0;
  color: #8996aa;
  font-size: 8px;
  line-height: 1.55;
}

/* Design panel */
.design-tabs {
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: #f4f7fb;
}

.design-tabs button {
  color: #6c7890;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 9.5px;
  font-weight: 700;
}

.design-tabs button.active {
  color: #2f69ed;
  border-color: #6b98ff;
  background: #fff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.09);
}

.module-editor-summary {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  color: #68768d;
  font-size: 8.5px;
}

.module-editor-summary small {
  color: #9aa6b9;
}

.module-list {
  display: grid;
  gap: 7px;
}

.module-item {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 9px;
  border: 1px solid #e6ecf5;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: 0 3px 9px rgba(47, 77, 129, 0.035);
  transition: 0.18s ease;
}

.module-item:hover {
  border-color: #cfddf3;
  box-shadow: 0 6px 14px rgba(47, 77, 129, 0.07);
  transform: translateY(-1px);
}

.module-item.disabled {
  opacity: 0.52;
  filter: grayscale(0.45);
}

.module-item.dragging {
  opacity: 0.38;
  transform: scale(0.98);
}

.module-item.drag-over {
  border-color: #6694ff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.1);
}

.module-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}

.tone-blue { color: #3b78ff; background: #edf4ff; }
.tone-cyan { color: #20b9cc; background: #eafcff; }
.tone-violet { color: #7a61ee; background: #f2efff; }
.tone-green { color: #2db68b; background: #ebfbf5; }
.tone-orange { color: #f2a13f; background: #fff6e8; }
.tone-purple { color: #7d65f6; background: #f2efff; }
.tone-pink { color: #ff6788; background: #fff0f5; }

.module-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.module-copy strong {
  overflow: hidden;
  color: #344159;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-copy small {
  overflow: hidden;
  color: #98a3b5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.module-actions button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #9aa7b9;
  border-radius: 5px;
  background: transparent;
}

.module-actions button:hover:not(:disabled) {
  color: #4979eb;
  background: #edf3ff;
}

.module-actions button.active {
  color: #2f73ef;
}

.drag-handle {
  width: 18px;
  display: grid;
  place-items: center;
  color: #a6b1c1;
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.style-editor,
.advanced-editor {
  padding-top: 10px;
}

.settings-group {
  position: relative;
  margin-bottom: 14px;
}

.settings-group .text-control {
  height: 36px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: #f2f5fa;
}

.segmented-control button {
  height: 30px;
  color: #6d7890;
  border-radius: 6px;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.segmented-control button.active {
  color: #fff;
  background: linear-gradient(135deg, #2f6bff, #735cff);
  box-shadow: 0 6px 12px rgba(47, 107, 255, 0.2);
}

.style-preview-chip {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #dde6f4;
  border-radius: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--chip-color) 8%, white), color-mix(in srgb, var(--chip-second) 9%, white));
}

.style-preview-chip > span {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--chip-color), var(--chip-second));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--chip-color) 28%, transparent);
}

.style-preview-chip div {
  display: grid;
  gap: 4px;
}

.style-preview-chip strong {
  color: #34415a;
  font-size: 10px;
}

.style-preview-chip small {
  color: #8f9bae;
  font-size: 8px;
}

.toggle-row {
  position: relative;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 2px;
  border-bottom: 1px solid #edf1f6;
  cursor: pointer;
}

.toggle-row > span {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.toggle-row strong {
  color: #3a465c;
  font-size: 10px;
}

.toggle-row small {
  color: #98a3b5;
  font-size: 8px;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle-row i {
  position: relative;
  width: 33px;
  height: 19px;
  flex: 0 0 33px;
  border-radius: 999px;
  background: #d8e0ed;
  transition: 0.2s ease;
}

.toggle-row i::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(32, 54, 92, 0.18);
  transition: 0.2s ease;
}

.toggle-row input:checked + i {
  background: linear-gradient(90deg, #477bff, #765cff);
}

.toggle-row input:checked + i::after {
  transform: translateX(13px);
}

.lead-field-editor {
  margin-top: 13px;
  transition: 0.2s ease;
}

.lead-field-editor.muted {
  opacity: 0.4;
  pointer-events: none;
}

.lead-field-editor > label {
  color: #3b475d;
  font-size: 10px;
  font-weight: 700;
}

.field-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.field-checkboxes label {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #69758b;
  border: 1px solid #e3e9f3;
  border-radius: 7px;
  background: #fafcff;
  font-size: 9px;
}

.field-checkboxes input {
  accent-color: var(--primary);
}

/* Live preview */
.preview-panel:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 20px;
  border-radius: 0;
  background: #f5f8fe;
}

.preview-panel:fullscreen .preview-stage {
  height: calc(100vh - 80px);
}

.preview-heading {
  align-items: center;
}

.preview-heading > div:nth-child(2) {
  min-width: 90px;
}

.preview-toolbar {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.preview-toolbar button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  color: #77849a;
  border: 1px solid #e2e8f3;
  border-radius: 7px;
  background: #f8faff;
  font-size: 8.5px;
  font-weight: 700;
}

.preview-toolbar button.active {
  color: #2f6bff;
  border-color: #6e99ff;
  background: #fff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.1);
}

.preview-toolbar button.preview-expand {
  width: 28px;
  padding: 0;
}

.preview-stage {
  position: relative;
  height: 618px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e8f4;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 150, 255, 0.15), transparent 34%),
    linear-gradient(145deg, #f6f9ff, #f1f5fb);
}

.desktop-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.browser-bar {
  height: 28px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 9px;
  color: #9aa7b9;
  border-bottom: 1px solid #e9eef6;
  background: #fbfcfe;
  font-size: 8px;
  text-align: center;
}

.browser-bar > div {
  display: flex;
  gap: 4px;
}

.browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9e1ed;
}

.browser-bar i:first-child { background: #ff8d9a; }
.browser-bar i:nth-child(2) { background: #ffc76e; }
.browser-bar i:nth-child(3) { background: #63d3ae; }

.browser-bar small {
  width: 24px;
  height: 4px;
  justify-self: end;
  border-radius: 999px;
  background: #e5ebf4;
}

.preview-scroll-area {
  width: 100%;
  height: calc(100% - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.phone-shell {
  position: relative;
  width: 262px;
  height: 594px;
  overflow: hidden;
  border: 6px solid #17213a;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 20px 35px rgba(29, 55, 104, 0.2), inset 0 0 0 2px #8792a3;
}

.phone-shell::before {
  content: "";
  position: absolute;
  z-index: 9;
  top: 4px;
  left: 50%;
  width: 78px;
  height: 20px;
  border-radius: 999px;
  background: #080c16;
  transform: translateX(-50%);
}

.phone-top {
  position: absolute;
  z-index: 10;
  inset: 4px 11px auto;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 7px;
  pointer-events: none;
}

.phone-top i {
  width: 70px;
}

.phone-shell .preview-scroll-area {
  height: 100%;
  padding-top: 0;
}

.phone-home {
  position: absolute;
  z-index: 10;
  bottom: 5px;
  left: 50%;
  width: 78px;
  height: 4px;
  border-radius: 99px;
  background: rgba(14, 22, 39, 0.8);
  transform: translateX(-50%);
}

/* Templates */
.template-panel {
  padding-left: 13px;
  padding-right: 13px;
}

.template-panel-heading {
  min-height: 43px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.template-heading-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: #416fea;
  border-radius: 6px;
  background: #edf3ff;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  color: #3975f1;
  background: transparent;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.template-category-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.template-category-tabs::-webkit-scrollbar {
  display: none;
}

.template-category-tabs button {
  height: 26px;
  flex: 0 0 auto;
  padding: 0 10px;
  color: #6c7890;
  border-radius: 7px;
  background: #f5f7fb;
  font-size: 8.5px;
  font-weight: 700;
}

.template-category-tabs button.active {
  color: #fff;
  background: linear-gradient(100deg, #2f6bff, #4f7dff);
  box-shadow: 0 5px 12px rgba(47, 107, 255, 0.22);
}

.template-grid {
  height: 344px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 9px 7px;
  overflow: auto;
  padding: 4px 2px 8px;
}

.template-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 0;
  color: #43516a;
  background: transparent;
  text-align: left;
}

.template-card-visual {
  position: relative;
  aspect-ratio: 0.76;
  overflow: hidden;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #f5f8ff;
  box-shadow: 0 5px 12px rgba(40, 68, 119, 0.08);
  transition: 0.18s ease;
}

.template-card:hover .template-card-visual {
  border-color: #8eafff;
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(47, 91, 173, 0.13);
}

.template-card.selected .template-card-visual {
  border: 2px solid #2f6bff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.1), 0 10px 20px rgba(47, 107, 255, 0.16);
}

.template-card-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 42%);
}

.template-card-overlay small {
  padding: 2px 5px;
  color: var(--card-primary);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 5.5px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.template-card-overlay strong {
  max-width: 74px;
  margin-top: 6px;
  color: #253652;
  font-size: 9.5px;
  line-height: 1.2;
}

.template-card-overlay em {
  max-width: 78px;
  margin-top: 3px;
  color: #6f7b8f;
  font-size: 5.5px;
  font-style: normal;
  line-height: 1.4;
}

.template-card-overlay i {
  margin-top: 7px;
  padding: 3px 7px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-primary), var(--card-secondary));
  box-shadow: 0 4px 8px color-mix(in srgb, var(--card-primary) 22%, transparent);
  font-size: 5.5px;
  font-style: normal;
  font-weight: 700;
}

.template-selected-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2f6bff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.template-card-name {
  overflow: hidden;
  padding: 0 2px;
  color: #495870;
  font-size: 8.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-divider {
  height: 1px;
  margin: 8px 0 9px;
  background: #edf1f6;
}

.style-block h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #344158;
  font-size: 10.5px;
}

.style-block h4 svg {
  color: #3f73e7;
}

.palette-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 4px;
}

.palette-swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d7e0ed;
  transition: 0.16s ease;
}

.palette-swatch:hover {
  transform: scale(1.08);
}

.palette-swatch.active {
  box-shadow: 0 0 0 2px #2f6bff, 0 6px 12px rgba(47, 107, 255, 0.2);
}

.custom-palette {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ff5f6d, #ffce54, #4dd6a8, #2f9bff, #8f5cff, #ff5f6d);
}

.custom-palette span {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.material-block {
  margin-top: 13px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.material-grid button {
  min-width: 0;
  height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  color: #7b879a;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f8faff;
  font-size: 6.5px;
}

.material-grid button.active {
  border-color: #5c8dff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.08);
}

.material-grid img {
  width: 100%;
  height: 48px;
  object-fit: cover;
}

.material-grid button span {
  overflow: hidden;
  max-width: 100%;
  padding: 0 3px 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-grid .material-more {
  color: #536278;
  background: #fbfcfe;
}

/* Records */
.records-panel {
  min-height: 103px;
  margin-top: 13px;
  padding: 10px 13px;
  border: 1px solid rgba(214, 225, 243, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(41, 83, 163, 0.07);
  backdrop-filter: blur(14px);
}

.records-heading {
  height: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.records-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.records-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #2f6bff;
  border: 1.5px solid #2f6bff;
  border-radius: 50%;
}

.records-heading h3 {
  margin: 0;
  color: #1b2942;
  font-size: 11.5px;
}

.records-heading p {
  margin: 1px 0 0 3px;
  color: #98a3b5;
  font-size: 8px;
}

.records-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 7px;
}

.record-card {
  position: relative;
  min-width: 0;
  height: 51px;
  display: flex;
  align-items: center;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  transition: 0.18s ease;
}

.record-card:hover {
  border-color: #cbdaf2;
  box-shadow: 0 6px 14px rgba(38, 72, 133, 0.08);
}

.record-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  background: transparent;
  text-align: left;
}

.record-thumbnail {
  position: relative;
  width: 46px;
  height: 39px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--record-primary), var(--record-secondary));
}

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

.record-thumbnail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
}

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

.record-copy strong {
  overflow: hidden;
  color: #334059;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-copy small {
  color: #98a4b7;
  font-size: 7px;
  white-space: nowrap;
}

.record-actions {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 5px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e2e9f4;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 12px rgba(38, 67, 119, 0.12);
  opacity: 0;
  transform: translateY(-50%) translateX(5px);
  transition: 0.16s ease;
}

.record-card:hover .record-actions,
.record-actions:focus-within {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.record-actions button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #70809a;
  border-radius: 5px;
  background: #f5f8fd;
}

.record-actions button:last-child:hover {
  color: #e5576d;
  background: #fff0f2;
}

.records-empty {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #94a0b3;
  font-size: 9px;
}

.records-empty img {
  width: 56px;
  height: 42px;
  object-fit: contain;
}

/* Generated landing page */
.landing-page {
  --landing-radius: 12px;
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  color: #17243e;
  background: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.landing-page.rounding-compact { --landing-radius: 5px; }
.landing-page.rounding-soft { --landing-radius: 12px; }
.landing-page.rounding-round { --landing-radius: 22px; }
.landing-page.font-compact { --landing-scale: 0.92; }
.landing-page.font-standard { --landing-scale: 1; }
.landing-page.font-large { --landing-scale: 1.08; }

.landing-hero {
  position: relative;
  min-height: 284px;
  overflow: hidden;
  padding: 15px 17px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 19%, color-mix(in srgb, var(--landing-secondary) 54%, transparent), transparent 31%),
    linear-gradient(142deg, color-mix(in srgb, var(--landing-primary) 90%, #16368b) 0%, var(--landing-primary) 45%, color-mix(in srgb, var(--landing-secondary) 88%, #2f57c9) 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 12% 9%, rgba(255, 255, 255, 0.16), transparent 12%);
  pointer-events: none;
}

.landing-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.landing-hero-orb.orb-one {
  top: -80px;
  right: -55px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.landing-hero-orb.orb-two {
  bottom: -95px;
  left: -30px;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.landing-material {
  position: absolute;
  z-index: 0;
  inset: auto -10% -25% auto;
  width: 76%;
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
}

.landing-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.landing-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.95);
  font-size: calc(7px * var(--landing-scale, 1));
}

.landing-brand-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.landing-brand b {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-industry {
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: calc(5.5px * var(--landing-scale, 1));
  backdrop-filter: blur(8px);
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  min-height: 225px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(112px, 0.84fr);
  align-items: center;
  gap: 4px;
}

.landing-hero-copy {
  min-width: 0;
  padding-top: 12px;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(6px * var(--landing-scale, 1));
  letter-spacing: 0.08em;
}

.landing-eyebrow::before {
  content: "";
  width: 13px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.landing-hero h1 {
  margin: 0;
  font-size: calc(25px * var(--landing-scale, 1));
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1.2px;
  text-shadow: 0 8px 20px rgba(17, 43, 110, 0.18);
}

.landing-hero h1 span {
  display: block;
}

.landing-hero-copy > p {
  display: -webkit-box;
  max-width: 185px;
  margin: 9px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: calc(6.5px * var(--landing-scale, 1));
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.landing-cta {
  height: 32px;
  min-width: 105px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 13px;
  padding: 0 15px;
  color: var(--landing-primary);
  border-radius: calc(var(--landing-radius) * 0.75);
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 48, 120, 0.24);
  font-size: calc(8.5px * var(--landing-scale, 1));
  font-weight: 800;
}

.landing-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.landing-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.73);
  font-size: calc(5.5px * var(--landing-scale, 1));
}

.landing-trust-line svg {
  padding: 2px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.landing-hero-visual {
  position: relative;
  min-width: 0;
  height: 195px;
  display: grid;
  place-items: center;
}

.landing-visual-glow {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52), rgba(121, 220, 255, 0.22) 42%, transparent 72%);
  filter: blur(5px);
}

.landing-hero-visual img {
  position: relative;
  z-index: 2;
  width: 155px;
  height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(19, 42, 105, 0.22));
}

.landing-section {
  position: relative;
  padding: 24px 17px;
  background: #fff;
}

.landing-section:nth-of-type(even) {
  background: color-mix(in srgb, var(--landing-surface) 78%, #fff);
}

.landing-section-heading {
  margin-bottom: 16px;
  text-align: center;
}

.landing-section-heading span {
  display: block;
  color: #16243f;
  font-size: calc(14px * var(--landing-scale, 1));
  font-weight: 900;
}

.landing-section-heading p {
  margin: 5px 0 0;
  color: #8793a7;
  font-size: calc(6.5px * var(--landing-scale, 1));
}

.landing-advantages {
  padding-top: 17px;
  padding-bottom: 19px;
}

.compact-heading {
  margin-bottom: 13px;
}

.landing-advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.landing-advantage-grid article {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: start;
  gap: 5px;
  padding: 8px 3px;
  text-align: center;
  border: 1px solid #edf1f7;
  border-radius: calc(var(--landing-radius) * 0.75);
  background: #fff;
  box-shadow: 0 5px 12px rgba(41, 74, 132, 0.04);
}

.landing-advantage-grid article > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--landing-primary);
  border-radius: 8px;
  background: color-mix(in srgb, var(--landing-primary) 10%, white);
}

.landing-advantage-grid strong {
  color: #25334b;
  font-size: calc(7px * var(--landing-scale, 1));
}

.landing-advantage-grid small {
  display: -webkit-box;
  overflow: hidden;
  color: #8d98aa;
  font-size: calc(4.8px * var(--landing-scale, 1));
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.landing-feature-list {
  display: grid;
  gap: 8px;
}

.landing-feature-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e8eef7;
  border-radius: var(--landing-radius);
  background: #fff;
  box-shadow: 0 5px 15px rgba(37, 71, 128, 0.045);
}

.feature-index {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  color: var(--landing-primary);
  border-radius: 9px;
  background: color-mix(in srgb, var(--landing-primary) 10%, white);
  font-size: 8px;
  font-weight: 900;
}

.landing-feature-list article > div {
  min-width: 0;
  flex: 1;
}

.landing-feature-list strong {
  display: block;
  color: #26354e;
  font-size: calc(8px * var(--landing-scale, 1));
}

.landing-feature-list p {
  margin: 3px 0 0;
  color: #8d98aa;
  font-size: calc(5.5px * var(--landing-scale, 1));
  line-height: 1.5;
}

.landing-feature-list article > svg {
  color: #9babbd;
}

.landing-stats {
  padding-top: 18px;
  padding-bottom: 18px;
  color: #fff;
  background: linear-gradient(120deg, var(--landing-primary), var(--landing-secondary)) !important;
}

.landing-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.landing-stat-grid article {
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.landing-stat-grid article:last-child {
  border-right: 0;
}

.landing-stat-grid strong {
  font-size: calc(13px * var(--landing-scale, 1));
  font-weight: 900;
}

.landing-stat-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: calc(5.5px * var(--landing-scale, 1));
}

.landing-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.landing-review-grid article {
  padding: 11px;
  border: 1px solid #e8eef7;
  border-radius: var(--landing-radius);
  background: #fff;
}

.review-stars {
  color: #ffad3f;
  font-size: 7px;
  letter-spacing: 1px;
}

.landing-review-grid article > p {
  min-height: 36px;
  margin: 6px 0 9px;
  color: #667389;
  font-size: calc(6px * var(--landing-scale, 1));
  line-height: 1.6;
}

.landing-review-grid article > div:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-review-grid article > div:last-child > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-secondary));
  font-size: 7px;
}

.landing-review-grid article > div:last-child strong {
  display: grid;
  gap: 2px;
  color: #3b485f;
  font-size: 6.5px;
}

.landing-review-grid article > div:last-child small {
  color: #9aa5b6;
  font-size: 5px;
  font-weight: 400;
}

.landing-process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.landing-process-list article {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 7px;
  border: 1px solid #e7edf6;
  border-radius: var(--landing-radius);
  background: #fff;
}

.landing-process-list article > span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-secondary));
  font-size: 7px;
  font-weight: 800;
}

.landing-process-list article > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.landing-process-list strong {
  color: #34415a;
  font-size: 6.5px;
}

.landing-process-list small {
  overflow: hidden;
  color: #96a1b3;
  font-size: 4.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-process-list article > svg {
  position: absolute;
  right: -12px;
  z-index: 2;
  color: #aabbd9;
}

.landing-faq-list {
  display: grid;
  gap: 7px;
}

.landing-faq-list article {
  overflow: hidden;
  border: 1px solid #e5ebf5;
  border-radius: calc(var(--landing-radius) * 0.78);
  background: #fff;
}

.landing-faq-list button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  color: #3d4a61;
  background: #fff;
  text-align: left;
}

.landing-faq-list button strong {
  font-size: 6.5px;
}

.landing-faq-list button svg {
  color: #8b99ad;
}

.landing-faq-list article > p {
  margin: 0;
  padding: 0 11px 10px;
  color: #818da0;
  font-size: 5.5px;
  line-height: 1.6;
}

.landing-lead {
  padding: 19px 17px 24px;
  background: linear-gradient(145deg, #f5f8ff, #f7f4ff) !important;
}

.landing-lead-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: calc(var(--landing-radius) * 1.15);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(44, 78, 138, 0.09);
}

.landing-lead-copy > span {
  color: var(--landing-primary);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.landing-lead-copy h2 {
  margin: 5px 0 0;
  color: #1b2a45;
  font-size: calc(14px * var(--landing-scale, 1));
}

.landing-lead-copy > p {
  margin: 5px 0 0;
  color: #8995a8;
  font-size: 5.5px;
  line-height: 1.6;
}

.landing-lead-copy > div {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: #8896aa;
  font-size: 4.6px;
}

.landing-lead-copy > div svg {
  color: #45bc96;
}

.landing-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.landing-form label {
  display: grid;
  gap: 3px;
}

.landing-form label.full,
.landing-form button.full {
  grid-column: 1 / -1;
}

.landing-form label > span {
  color: #6f7b8e;
  font-size: 5px;
  font-weight: 700;
}

.landing-form input,
.landing-form textarea {
  width: 100%;
  min-height: 28px;
  padding: 6px 8px;
  color: #344159;
  border: 1px solid #dfe6f2;
  border-radius: calc(var(--landing-radius) * 0.58);
  outline: none;
  background: #fafcff;
  font-size: 5.5px;
}

.landing-form textarea {
  min-height: 48px;
  resize: vertical;
}

.landing-form input:focus,
.landing-form textarea:focus {
  border-color: var(--landing-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--landing-primary) 12%, transparent);
}

.landing-form > button {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  border-radius: calc(var(--landing-radius) * 0.65);
  background: linear-gradient(95deg, var(--landing-primary), var(--landing-secondary));
  box-shadow: 0 7px 15px color-mix(in srgb, var(--landing-primary) 20%, transparent);
  font-size: 6.5px;
  font-weight: 800;
}

.landing-submit-success,
.landing-form-disabled {
  min-height: 105px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #8290a4;
  text-align: center;
  font-size: 6px;
}

.landing-submit-success > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #45d1a4, #20b789);
}

.landing-submit-success strong {
  color: #2b3a52;
  font-size: 9px;
}

.landing-submit-success p {
  margin: 0;
}

.landing-footer {
  padding: 12px 17px 16px;
  color: #9aa5b6;
  border-top: 1px solid #edf1f6;
  background: #fff;
  text-align: center;
}

.landing-footer strong {
  display: block;
  color: #69758a;
  font-size: 6px;
}

.landing-footer p {
  margin: 3px 0 0;
  font-size: 4.8px;
  line-height: 1.5;
}

/* Published/full-size rendering */
.published-document,
.published-document body {
  background: #edf3fb;
}

.published-shell {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 107, 255, 0.1), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(116, 92, 255, 0.1), transparent 30%),
    #edf3fb;
}

.landing-page.is-published {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(33, 68, 127, 0.16);
}

.landing-page.is-published .landing-hero {
  min-height: 560px;
  padding: 34px 58px 56px;
}

.landing-page.is-published .landing-brand {
  font-size: calc(13px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.landing-page.is-published .landing-brand b {
  max-width: 360px;
}

.landing-page.is-published .landing-industry {
  padding: 7px 14px;
  font-size: calc(11px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-hero-content {
  min-height: 470px;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
}

.landing-page.is-published .landing-hero-copy {
  padding-top: 28px;
}

.landing-page.is-published .landing-eyebrow {
  margin-bottom: 18px;
  font-size: calc(12px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-eyebrow::before {
  width: 28px;
}

.landing-page.is-published .landing-hero h1 {
  font-size: calc(56px * var(--landing-scale, 1));
  line-height: 1.12;
  letter-spacing: -3px;
}

.landing-page.is-published .landing-hero-copy > p {
  max-width: 470px;
  margin-top: 22px;
  font-size: calc(15px * var(--landing-scale, 1));
  line-height: 1.85;
  -webkit-line-clamp: 4;
}

.landing-page.is-published .landing-cta {
  min-width: 190px;
  height: 52px;
  gap: 8px;
  margin-top: 28px;
  padding: 0 28px;
  font-size: calc(15px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-trust-line {
  gap: 18px;
  margin-top: 24px;
}

.landing-page.is-published .landing-trust-line span {
  gap: 6px;
  font-size: calc(11px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-hero-visual {
  height: 420px;
}

.landing-page.is-published .landing-visual-glow {
  width: 330px;
  height: 330px;
}

.landing-page.is-published .landing-hero-visual img {
  width: 420px;
  height: 430px;
}

.landing-page.is-published .landing-material {
  width: 58%;
  opacity: 0.24;
}

.landing-page.is-published .landing-section {
  padding: 76px 64px;
}

.landing-page.is-published .landing-section-heading {
  margin-bottom: 38px;
}

.landing-page.is-published .landing-section-heading span {
  font-size: calc(32px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-section-heading p {
  margin-top: 10px;
  font-size: calc(14px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-advantage-grid {
  gap: 18px;
}

.landing-page.is-published .landing-advantage-grid article {
  min-height: 190px;
  gap: 12px;
  padding: 28px 18px;
}

.landing-page.is-published .landing-advantage-grid article > span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.landing-page.is-published .landing-advantage-grid article > span svg {
  width: 28px;
  height: 28px;
}

.landing-page.is-published .landing-advantage-grid strong {
  font-size: calc(17px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-advantage-grid small {
  font-size: calc(12px * var(--landing-scale, 1));
  line-height: 1.7;
  -webkit-line-clamp: 3;
}

.landing-page.is-published .landing-feature-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.landing-page.is-published .landing-feature-list article {
  min-height: 170px;
  align-items: flex-start;
  padding: 26px;
}

.landing-page.is-published .feature-index {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 12px;
}

.landing-page.is-published .landing-feature-list strong {
  font-size: calc(17px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-feature-list p {
  margin-top: 10px;
  font-size: calc(13px * var(--landing-scale, 1));
  line-height: 1.8;
}

.landing-page.is-published .landing-stats {
  padding-top: 54px;
  padding-bottom: 54px;
}

.landing-page.is-published .landing-stat-grid strong {
  font-size: calc(38px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-stat-grid span {
  font-size: calc(13px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-review-grid {
  gap: 20px;
}

.landing-page.is-published .landing-review-grid article {
  padding: 28px;
}

.landing-page.is-published .review-stars {
  font-size: 15px;
}

.landing-page.is-published .landing-review-grid article > p {
  min-height: 80px;
  margin: 18px 0 22px;
  font-size: calc(14px * var(--landing-scale, 1));
  line-height: 1.9;
}

.landing-page.is-published .landing-review-grid article > div:last-child > span {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.landing-page.is-published .landing-review-grid article > div:last-child strong {
  font-size: 14px;
}

.landing-page.is-published .landing-review-grid article > div:last-child small {
  font-size: 11px;
}

.landing-page.is-published .landing-process-list {
  gap: 18px;
}

.landing-page.is-published .landing-process-list article {
  min-height: 112px;
  gap: 14px;
  padding: 20px;
}

.landing-page.is-published .landing-process-list article > span {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 14px;
}

.landing-page.is-published .landing-process-list strong {
  font-size: 16px;
}

.landing-page.is-published .landing-process-list small {
  margin-top: 5px;
  font-size: 12px;
}

.landing-page.is-published .landing-process-list article > svg {
  right: -20px;
  width: 25px;
  height: 25px;
}

.landing-page.is-published .landing-faq-list {
  max-width: 820px;
  gap: 12px;
  margin: 0 auto;
}

.landing-page.is-published .landing-faq-list button {
  min-height: 64px;
  padding: 0 22px;
}

.landing-page.is-published .landing-faq-list button strong {
  font-size: 15px;
}

.landing-page.is-published .landing-faq-list article > p {
  padding: 0 22px 20px;
  font-size: 13px;
}

.landing-page.is-published .landing-lead {
  padding: 68px 64px 76px;
}

.landing-page.is-published .landing-lead-card {
  gap: 52px;
  padding: 44px;
}

.landing-page.is-published .landing-lead-copy > span {
  font-size: 10px;
}

.landing-page.is-published .landing-lead-copy h2 {
  margin-top: 10px;
  font-size: calc(34px * var(--landing-scale, 1));
}

.landing-page.is-published .landing-lead-copy > p {
  margin-top: 13px;
  font-size: 14px;
}

.landing-page.is-published .landing-lead-copy > div {
  margin-top: 26px;
  font-size: 11px;
}

.landing-page.is-published .landing-form {
  gap: 14px;
}

.landing-page.is-published .landing-form label {
  gap: 7px;
}

.landing-page.is-published .landing-form label > span {
  font-size: 12px;
}

.landing-page.is-published .landing-form input,
.landing-page.is-published .landing-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 13px;
}

.landing-page.is-published .landing-form textarea {
  min-height: 88px;
}

.landing-page.is-published .landing-form > button {
  height: 50px;
  font-size: 14px;
}

.landing-page.is-published .landing-submit-success,
.landing-page.is-published .landing-form-disabled {
  min-height: 190px;
  font-size: 13px;
}

.landing-page.is-published .landing-submit-success > span {
  width: 64px;
  height: 64px;
}

.landing-page.is-published .landing-submit-success strong {
  font-size: 20px;
}

.landing-page.is-published .landing-footer {
  padding: 24px 40px 30px;
}

.landing-page.is-published .landing-footer strong {
  font-size: 13px;
}

.landing-page.is-published .landing-footer p {
  margin-top: 6px;
  font-size: 11px;
}

/* Dialogs and feedback */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 39, 69, 0.35);
  backdrop-filter: blur(9px);
}

.result-modal,
.material-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(31, 59, 110, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7e8aa0;
  border-radius: 9px;
  background: #f4f7fb;
}

.modal-close.static {
  position: static;
  flex: 0 0 auto;
}

.result-success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #4bd7ab, #20b98b);
  box-shadow: 0 14px 28px rgba(34, 188, 143, 0.26);
}

.result-modal h3 {
  margin: 18px 0 0;
  color: #1b2942;
  font-size: 22px;
  text-align: center;
}

.result-modal > p {
  max-width: 390px;
  margin: 8px auto 0;
  color: #7a879d;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.result-url-row {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 5px;
  border: 1px solid #dce5f3;
  border-radius: 11px;
  background: #f7f9fd;
}

.result-url-row input {
  min-width: 0;
  flex: 1;
  padding: 0 8px;
  color: #51617b;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.result-url-row button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(100deg, #2f6bff, #735cff);
  font-size: 11px;
  font-weight: 700;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.result-actions button {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.result-actions .ghost {
  color: #436bd1;
  background: #edf3ff;
}

.result-actions .solid {
  color: #fff;
  background: linear-gradient(100deg, #2f6bff, #12c8ff);
  box-shadow: 0 10px 20px rgba(47, 107, 255, 0.2);
}

.material-modal {
  width: min(100%, 760px);
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-title-row h3 {
  margin: 0;
  color: #1c2a43;
  font-size: 20px;
}

.modal-title-row p {
  margin: 6px 0 0;
  color: #8894a8;
  font-size: 12px;
}

.material-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.material-modal-grid button {
  overflow: hidden;
  padding: 0 0 14px;
  color: #4f5d74;
  border: 1px solid #e0e7f2;
  border-radius: 13px;
  background: #fafcff;
  text-align: left;
  transition: 0.18s ease;
}

.material-modal-grid button:hover,
.material-modal-grid button.active {
  border-color: #6c98ff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.12);
  transform: translateY(-2px);
}

.material-modal-grid img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.material-modal-grid strong,
.material-modal-grid span {
  display: block;
  padding: 0 14px;
}

.material-modal-grid strong {
  margin-top: 12px;
  color: #334159;
  font-size: 13px;
}

.material-modal-grid span {
  margin-top: 4px;
  color: #8d98aa;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: 28px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(24, 36, 61, 0.94);
  box-shadow: 0 14px 38px rgba(25, 42, 78, 0.28);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 0.22s ease;
  backdrop-filter: blur(14px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #31c798;
}

.mobile-sticky-action {
  display: none;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Large desktop tuning */
@media (min-width: 1450px) {
  .app-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .workspace-grid {
    grid-template-columns: 360px 252px 360px minmax(330px, 1fr);
  }
}

/* Medium desktop / laptop */
@media (max-width: 1279px) {
  .app-container {
    max-width: 1120px;
    padding: 18px 20px 30px;
  }

  .hero-shell {
    height: auto;
    min-height: 210px;
    grid-template-columns: 1fr 380px;
  }

  .hero-copy {
    padding-left: 10px;
  }

  .hero-copy > p {
    max-width: 650px;
    white-space: normal;
  }

  .hero-art > img {
    right: 25px;
    width: 430px;
  }

  .hero-check-list {
    right: 58px;
  }

  .hero-handwriting {
    display: none;
  }

  .step-card {
    width: 190px;
  }

  .workspace-grid {
    grid-template-columns: minmax(330px, 1fr) minmax(250px, 0.78fr) minmax(340px, 1fr);
  }

  .template-panel {
    grid-column: 1 / -1;
    height: auto;
    min-height: 430px;
  }

  .template-grid {
    height: auto;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
  }

  .template-card-visual {
    aspect-ratio: 0.78;
  }

  .template-divider {
    margin-top: 14px;
  }

  .template-panel .style-block {
    display: inline-block;
    width: 48%;
    vertical-align: top;
  }

  .template-panel .material-block {
    margin-top: 0;
    margin-left: 3%;
  }

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

  .record-card:nth-child(n + 4) {
    display: none;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr 300px;
  }

  .hero-title-line h1 {
    font-size: 38px;
  }

  .hero-copy h2 {
    font-size: 21px;
  }

  .hero-art > img {
    top: -35px;
    right: -38px;
    width: 365px;
  }

  .hero-check-list {
    display: none;
  }

  .step-guide {
    max-width: 650px;
  }

  .step-card {
    width: 175px;
  }

  .step-copy small {
    display: none;
  }

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

  .workspace-card {
    height: 700px;
  }

  .preview-panel,
  .template-panel {
    grid-column: auto;
  }

  .template-panel {
    min-height: 700px;
  }

  .template-grid {
    height: 430px;
    grid-template-columns: repeat(3, 1fr);
    overflow: auto;
  }

  .template-panel .style-block {
    display: block;
    width: auto;
  }

  .template-panel .material-block {
    margin-top: 14px;
    margin-left: 0;
  }

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

  .record-card:nth-child(3) {
    display: none;
  }

  .landing-page.is-published .landing-hero {
    min-height: 500px;
    padding: 30px 42px 48px;
  }

  .landing-page.is-published .landing-hero h1 {
    font-size: calc(48px * var(--landing-scale, 1));
  }

  .landing-page.is-published .landing-section {
    padding: 60px 42px;
  }
}

/* Mobile editor */
@media (max-width: 720px) {
  body {
    background: #f4f7fd;
  }

  .app-container {
    padding: 12px 12px 96px;
  }

  .hero-shell {
    min-height: 322px;
    display: block;
    overflow: visible;
  }

  .hero-copy {
    padding: 10px 4px 0;
  }

  .hero-title-line h1 {
    font-size: 34px;
    letter-spacing: -1.8px;
  }

  .hero-sparkle {
    font-size: 26px;
  }

  .hero-copy h2 {
    max-width: 92%;
    margin-top: 10px;
    font-size: 19px;
    line-height: 1.38;
  }

  .hero-copy > p {
    max-width: 100%;
    margin-top: 9px;
    font-size: 11px;
  }

  .hero-art {
    position: absolute;
    top: 106px;
    right: -18px;
    width: 205px;
    height: 145px;
    opacity: 0.72;
    pointer-events: none;
  }

  .hero-art > img {
    top: -15px;
    right: -22px;
    width: 230px;
  }

  .hero-art-glow {
    display: none;
  }

  .step-guide {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    width: 100%;
    overflow-x: auto;
    gap: 7px;
    padding: 2px 1px 8px;
    scrollbar-width: none;
  }

  .step-guide::-webkit-scrollbar {
    display: none;
  }

  .step-card {
    width: 195px;
    flex: 0 0 195px;
    height: 58px;
  }

  .step-arrow {
    display: none;
  }

  .step-copy small {
    display: block;
  }

  .workspace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workspace-card,
  .template-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 15px;
    border-radius: 15px;
  }

  .basic-panel {
    min-height: 680px;
  }

  .design-panel {
    min-height: 650px;
  }

  .preview-panel {
    min-height: 704px;
  }

  .template-panel {
    min-height: 650px;
  }

  .preview-stage {
    height: 625px;
  }

  .template-grid {
    height: 410px;
    grid-template-columns: repeat(3, 1fr);
  }

  .template-category-tabs {
    flex-wrap: nowrap;
  }

  .template-panel .style-block {
    display: block;
    width: 100%;
  }

  .template-panel .material-block {
    margin-left: 0;
  }

  .records-panel {
    padding: 12px;
  }

  .records-heading p {
    display: none;
  }

  .records-track {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .record-card,
  .record-card:nth-child(n) {
    width: 260px;
    flex: 0 0 260px;
    display: flex;
  }

  .record-actions {
    opacity: 1;
    transform: translateY(-50%);
  }

  .basic-panel .primary-action {
    display: none;
  }

  .mobile-sticky-action {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(216, 226, 241, 0.9);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 -10px 30px rgba(35, 62, 110, 0.1);
    backdrop-filter: blur(16px);
  }

  .mobile-sticky-action button {
    width: 100%;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(100deg, #2f6bff, #735cff 62%, #12c8ff);
    box-shadow: 0 10px 22px rgba(47, 107, 255, 0.22);
    font-size: 14px;
    font-weight: 800;
  }

  .toast {
    bottom: 78px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }

  .material-modal-grid {
    grid-template-columns: 1fr;
  }

  .material-modal-grid img {
    height: 120px;
  }

  .result-modal,
  .material-modal {
    padding: 24px 18px;
    border-radius: 17px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }
}

/* Published mobile */
@media (max-width: 680px) {
  .published-shell {
    padding: 0;
  }

  .landing-page.is-published {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .landing-page.is-published .landing-hero {
    min-height: 610px;
    padding: 24px 20px 42px;
  }

  .landing-page.is-published .landing-brand {
    font-size: 11px;
  }

  .landing-page.is-published .landing-brand-mark {
    width: 30px;
    height: 30px;
  }

  .landing-page.is-published .landing-brand b {
    max-width: 220px;
  }

  .landing-page.is-published .landing-industry {
    display: none;
  }

  .landing-page.is-published .landing-hero-content {
    min-height: 530px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
  }

  .landing-page.is-published .landing-hero-copy {
    position: relative;
    z-index: 3;
    padding-top: 38px;
    text-align: center;
  }

  .landing-page.is-published .landing-eyebrow {
    justify-content: center;
    font-size: 10px;
  }

  .landing-page.is-published .landing-hero h1 {
    font-size: calc(42px * var(--landing-scale, 1));
    letter-spacing: -2px;
  }

  .landing-page.is-published .landing-hero-copy > p {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 13px;
    line-height: 1.8;
  }

  .landing-page.is-published .landing-cta {
    width: 190px;
    height: 48px;
    margin-top: 22px;
    font-size: 14px;
  }

  .landing-page.is-published .landing-trust-line {
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
  }

  .landing-page.is-published .landing-trust-line span {
    font-size: 10px;
  }

  .landing-page.is-published .landing-hero-visual {
    position: absolute;
    right: 0;
    bottom: -42px;
    left: 0;
    height: 250px;
    opacity: 0.42;
  }

  .landing-page.is-published .landing-hero-visual img {
    width: 280px;
    height: 280px;
  }

  .landing-page.is-published .landing-section {
    padding: 54px 20px;
  }

  .landing-page.is-published .landing-section-heading {
    margin-bottom: 28px;
  }

  .landing-page.is-published .landing-section-heading span {
    font-size: 26px;
  }

  .landing-page.is-published .landing-section-heading p {
    font-size: 12px;
  }

  .landing-page.is-published .landing-advantage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .landing-page.is-published .landing-advantage-grid article {
    min-height: 170px;
    padding: 22px 14px;
  }

  .landing-page.is-published .landing-feature-list {
    grid-template-columns: 1fr;
  }

  .landing-page.is-published .landing-feature-list article {
    min-height: 140px;
  }

  .landing-page.is-published .landing-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 0;
  }

  .landing-page.is-published .landing-stat-grid article:nth-child(2) {
    border-right: 0;
  }

  .landing-page.is-published .landing-stat-grid strong {
    font-size: 32px;
  }

  .landing-page.is-published .landing-review-grid {
    grid-template-columns: 1fr;
  }

  .landing-page.is-published .landing-process-list {
    grid-template-columns: 1fr;
  }

  .landing-page.is-published .landing-process-list article > svg {
    display: none;
  }

  .landing-page.is-published .landing-lead {
    padding: 48px 16px 60px;
  }

  .landing-page.is-published .landing-lead-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .landing-page.is-published .landing-lead-copy {
    text-align: center;
  }

  .landing-page.is-published .landing-lead-copy h2 {
    font-size: 28px;
  }

  .landing-page.is-published .landing-lead-copy > div {
    justify-content: center;
  }

  .landing-page.is-published .landing-form {
    grid-template-columns: 1fr;
  }

  .landing-page.is-published .landing-form label.full,
  .landing-page.is-published .landing-form button.full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
