:root {
  --preview-accent: #354c3b;
  --preview-paper: #f3f0e9;
  --preview-quiet: #e6e9e1;
  --preview-photo-sat: 1;
}

body {
  background: var(--preview-paper);
}
.site-header,
.menu-panel,
.consult-sheet,
.detail-bottom {
  background: var(--preview-paper);
}
.opening {
  background: var(--preview-paper);
}
.featured,
.method,
.detail-highlights,
.service {
  background: var(--preview-quiet);
}
.filter-wrap,
.detail-anchor {
  background: var(--preview-paper);
}
.submit-button,
.detail-bottom button {
  background: var(--preview-accent);
}
.closing-cta,
.detail-tail {
  background: var(--preview-accent);
}
.view img {
  filter: saturate(var(--preview-photo-sat));
  width: 100% !important;
  height: 100% !important;
}
.manifesto img,
.detail-hero img,
.about-hero img,
.about-quote img {
  filter: saturate(var(--preview-photo-sat)) brightness(.68);
}

body.preview-sans .view h1,
body.preview-sans .view h2,
body.preview-sans .view h3,
body.preview-sans .wordmark b,
body.preview-sans .feature-meta h3,
body.preview-sans .journey-card h2,
body.preview-sans .detail-bottom b {
  font-family: 'Noto Sans CJK SC', 'PingFang SC', Arial, sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: -.02em;
}

.edit-launch {
  position: fixed;
  z-index: 35;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  border: 0;
  background: #202922;
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 4px 18px #1115;
  border-radius: 50px;
  font-size: 13px;
  line-height: 1.4;
}
.edit-launch:hover {
  background: #354c3b;
}
.editing .edit-launch {
  background: #fff;
  color: #253b29;
  border: 1px solid #bcc9bc;
}
.editing .detail-bottom {
  bottom: 0;
}

.editor-panel {
  position: fixed;
  z-index: 45;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 100vw);
  background: #f7f6f1;
  border-left: 1px solid #b9c3b7;
  box-shadow: -10px 0 28px #0c1b1029;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .25s, visibility .25s;
  display: flex;
  flex-direction: column;
  font-family: Arial, 'PingFang SC', sans-serif;
  color: #26382b;
}
.editor-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.editor-header {
  padding: 18px 20px 16px;
  border-bottom: 1px solid #d5ddd1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-header strong {
  font-size: 16px;
  font-weight: 600;
}
.editor-header small {
  display: block;
  color: #728476;
  font-size: 11px;
  margin-top: 2px;
}
.editor-header button {
  border: 0;
  background: none;
  font-size: 25px;
  line-height: 1;
  padding: 4px 8px;
}

.editor-tabs {
  display: flex;
  border-bottom: 1px solid #d5ddd1;
}
.editor-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 13px 0;
  color: #758479;
  font-size: 13px;
}
.editor-tabs button.active {
  color: #24442b;
  border-bottom: 2px solid #24442b;
}

.editor-scroll {
  overflow: auto;
  padding: 20px 20px 60px;
  flex: 1;
}
.editor-tab {
  display: none;
}
.editor-tab.active {
  display: block;
}

.editor-tip {
  font-size: 12px;
  line-height: 1.7;
  color: #607364;
  background: #e8eee6;
  padding: 12px;
  margin: 0 0 18px;
}
.editor-field-label {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 9px;
}
.editor-empty {
  font-size: 13px;
  color: #738276;
  line-height: 1.7;
  border: 1px dashed #bdc8bc;
  padding: 20px;
}
.editor-selected {
  font-size: 12px;
  color: #697b6c;
  margin: 14px 0 8px;
}
.editor-textarea {
  width: 100%;
  height: 118px;
  resize: vertical;
  border: 1px solid #bdcabb;
  background: #fff;
  color: #273a2c;
  font-size: 14px;
  line-height: 1.7;
  padding: 12px;
  outline-color: #55735b;
}
.editor-panel button {
  cursor: pointer;
}
.editor-small-button {
  border: 1px solid #aebcac;
  background: transparent;
  color: #263c2b;
  padding: 9px 13px;
  font-size: 12px;
}
.editor-photo-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.editor-photo-actions button {
  flex: 1;
}
.editor-selected-preview {
  height: 128px;
  object-fit: cover;
  margin: 12px 0;
  border: 1px solid #d7ded4;
}
.editor-panel input[type=file] {
  display: none;
}
.editor-note {
  color: #718071;
  font-size: 11px;
  line-height: 1.7;
}

.editor-palettes {
  display: grid;
  gap: 9px;
}
.editor-palette {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid #d0d9cd;
  background: #fff;
  padding: 10px;
  font-size: 13px;
}
.editor-palette.active {
  border-color: #385642;
}
.editor-swatches {
  display: flex;
  gap: 3px;
}
.editor-swatches i {
  width: 19px;
  height: 19px;
  border: 1px solid #0002;
}

.editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px;
  font-size: 12px;
}
.editor-row select {
  border: 1px solid #b4c2b3;
  background: white;
  padding: 8px;
  color: #25392a;
}
.editor-row input[type=range] {
  width: 50%;
  accent-color: #405b45;
}

.editor-section {
  display: grid;
  grid-template-columns: 1fr 30px 30px 38px;
  gap: 4px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #d6dfd4;
  font-size: 12px;
}
.editor-section button {
  border: 1px solid #c3cfc3;
  background: #fff;
  height: 30px;
}
.editor-section .visibility-button {
  width: auto;
  font-size: 10px;
}
.editor-section.is-hidden {
  opacity: .5;
}

.editor-actions {
  border-top: 1px solid #d3ded2;
  padding: 15px 20px calc(16px + env(safe-area-inset-bottom));
  background: #f7f6f1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.editor-actions button {
  border: 1px solid #415b47;
  background: none;
  padding: 11px 8px;
  font-size: 12px;
  color: #314936;
}
.editor-actions .primary {
  background: #344c3a;
  color: #fff;
}
.editor-actions .full {
  grid-column: 1/-1;
  border-color: #d5ddd3;
  color: #728172;
}

.editing [data-edit-key] {
  cursor: text;
  outline: 1px dashed transparent;
  outline-offset: 4px;
}
.editing [data-edit-key]:hover {
  outline-color: #7aa17b;
}
.editing [data-edit-key].edit-selected {
  outline: 2px solid #4e7957;
  outline-offset: 5px;
}
.editing img[data-image-key] {
  cursor: pointer;
  outline: 1px dashed transparent;
  outline-offset: 4px;
}
.editing img[data-image-key]:hover {
  outline-color: #7aa17b;
}
.editing img[data-image-key].edit-selected {
  outline: 2px solid #4e7957;
  outline-offset: 4px;
}
.editing [contenteditable] {
  min-width: 16px;
  white-space: pre-line;
}
.editing [contenteditable]:focus {
  outline: 2px solid #4e7957 !important;
  outline-offset: 4px;
}

.editor-toast {
  position: fixed;
  z-index: 60;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #24392a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  max-width: 85vw;
  text-align: center;
}

@media(min-width:950px) {
  body.editor-open {
    padding-right: 390px;
  }
  .editor-open .site-header,
  .editor-open main,
  .editor-open .site-footer {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .editor-open .editor-panel {
    width: 390px;
  }
  .editor-open .edit-launch {
    left: auto;
    right: 408px;
  }
  .editor-open .detail-bottom {
    position: sticky;
    right: auto;
    bottom: 0;
    width: auto;
  }
}

@media(max-width:949px) {
  .editor-panel {
    top: auto;
    height: min(72svh,720px);
    width: 100%;
    border-left: 0;
    border-top: 1px solid #b9c3b7;
    border-radius: 15px 15px 0 0;
    transform: translateY(105%);
  }
  .editor-panel.open {
    transform: translateY(0);
  }
  .editor-open .edit-launch {
    z-index: 46;
    bottom: calc(min(72svh,720px) + 10px);
    left: 12px;
  }
  .editor-open .detail-bottom {
    bottom: 0;
  }
  .editing .hero {
    min-height: 520px;
  }
}