.page--journal-editor {
  min-height: 100vh;
  padding-top: 0;
  background: var(--color-page-bg);
  color: var(--color-ink);
  font-family: var(--font-heading);
}

body.page--journal-editor .fixed-header {
  --header-primary-hover-fill: var(--popup-hover);
  border-bottom: 0 !important;
}

body.page--journal-editor.page--blog-header-static {
  padding-top: 0 !important;
}

body.page--journal-editor.journal-editor-header-menu-open::before {
  content: "";
  position: fixed;
  inset: 74px 0 0;
  z-index: 1190;
  background: rgba(35, 32, 48, 0.22);
  opacity: 0;
  pointer-events: auto;
  animation: journal-editor-backdrop-fade-in 0.22s ease both;
}

body.page--journal-editor.page--blog-header-static .fixed-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 74px !important;
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
  will-change: auto !important;
  overflow: visible !important;
  z-index: 1200 !important;
  isolation: isolate;
}

body.page--journal-editor.page--blog-header-static .fixed-header .header-desktop-shell,
body.page--journal-editor.page--blog-header-static .fixed-header .header-desktop-top,
body.page--journal-editor.page--blog-header-static .fixed-header .header-mobile-top,
body.page--journal-editor.page--blog-header-static .fixed-header .header-mobile-414,
body.page--journal-editor.page--blog-header-static .fixed-header .header-mobile-bottom-bar {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

body.page--journal-editor .fixed-header .header-desktop-divider,
body.page--journal-editor .fixed-header .header-mobile-divider {
  display: none !important;
}

body.page--journal-editor .fixed-header .header-desktop-surface-label,
body.page--journal-editor .fixed-header .header-mobile-surface-label,
body.page--journal-editor .fixed-header .header-editor-save-state {
  display: inline-flex;
  align-items: center;
  color: var(--color-ink);
  letter-spacing: 0;
  white-space: nowrap;
}

body.page--journal-editor .fixed-header .header-desktop-surface-label,
body.page--journal-editor .fixed-header .header-mobile-surface-label {
  font-family: var(--font-display) !important;
  font-weight: 580;
}

body.page--journal-editor .fixed-header .header-desktop-surface-label {
  margin-left: 6px;
  transform: translateY(-5px);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1;
}

body.page--journal-editor .fixed-header .header-editor-save-state {
  margin-left: 14px;
  color: var(--color-ink-muted);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  transform: none;
}

body.page--journal-editor .fixed-header .header-editor-save-state--mobile {
  display: none;
}

body.page--journal-editor .fixed-header .header-hitbox[aria-label="Categories"],
body.page--journal-editor .fixed-header .header-hitbox[aria-label="Search field"],
body.page--journal-editor .fixed-header .header-hitbox[aria-label="Search"],
body.page--journal-editor .fixed-header .header-hitbox[aria-label="Gift Room"],
body.page--journal-editor .fixed-header .header-hitbox[aria-label="Clear search"],
body.page--journal-editor .fixed-header .header-hitbox[aria-label="Voice search"],
body.page--journal-editor .fixed-header .header-search-input,
body.page--journal-editor .fixed-header .header-search-hints,
body.page--journal-editor .fixed-header .header-search-mask {
  display: none !important;
  pointer-events: none !important;
}

body.page--journal-editor .fixed-header .header-editor-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body.page--journal-editor .fixed-header .header-editor-icon-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

body.page--journal-editor .fixed-header .header-editor-icon-button:hover,
body.page--journal-editor .fixed-header .header-editor-icon-button:focus-visible,
body.page--journal-editor .fixed-header .header-editor-menu[aria-expanded="true"] .header-editor-icon-button {
  background: transparent;
  outline: 0;
}

body.page--journal-editor .fixed-header .journal-editor-header-icon:hover,
body.page--journal-editor .fixed-header .journal-editor-header-icon:focus-visible,
body.page--journal-editor .fixed-header .header-editor-menu[aria-expanded="true"] .journal-editor-header-icon {
  transform: none;
}

body.page--journal-editor .fixed-header .journal-editor-header-icon::before {
  background: var(--header-primary-hover-fill);
}

body.page--journal-editor .fixed-header .header-editor-submit {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-page-bg);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.page--journal-editor .fixed-header .header-editor-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-ink);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
  pointer-events: none;
}

body.page--journal-editor .fixed-header .header-editor-submit:hover:not(:disabled):not(.is-disabled):not([data-editor-publish-ready="false"])::before,
body.page--journal-editor .fixed-header .header-editor-submit:focus-visible:not(:disabled):not(.is-disabled):not([data-editor-publish-ready="false"])::before {
  transform: scale(1.018);
}

body.page--journal-editor .fixed-header .header-editor-submit:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-forest) 32%, transparent);
  outline-offset: 3px;
}

body.page--journal-editor .fixed-header .header-editor-submit:disabled,
body.page--journal-editor .fixed-header .header-editor-submit.is-disabled,
body.page--journal-editor .fixed-header .header-editor-submit[data-editor-publish-ready="false"] {
  color: var(--auth-disabled-text);
  cursor: not-allowed;
}

body.page--journal-editor .fixed-header .header-editor-submit:disabled::before,
body.page--journal-editor .fixed-header .header-editor-submit.is-disabled::before,
body.page--journal-editor .fixed-header .header-editor-submit[data-editor-publish-ready="false"]::before {
  background: var(--control-disabled-bg);
  transform: none;
}

body.page--journal-editor .fixed-header .header-editor-submit__icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/assets/blog/editor/publish.svg") center / contain no-repeat;
  mask: url("/assets/blog/editor/publish.svg") center / contain no-repeat;
}

@media (min-width: 721px) {
  body.page--journal-editor .fixed-header .header-desktop-home {
    width: clamp(240px, 28vw, 420px);
    gap: 0;
  }

  body.page--journal-editor .fixed-header .header-editor-submit {
    margin-left: auto !important;
  }

  body.page--journal-editor .fixed-header .header-desktop-bell {
    display: flex !important;
    margin-left: 0 !important;
  }

  body.page--journal-editor .fixed-header .header-desktop-signin,
  body.page--journal-editor .fixed-header .header-desktop-burger {
    margin-left: 0 !important;
  }

  body.page--journal-editor .fixed-header .header-desktop-categories,
  body.page--journal-editor .fixed-header .header-desktop-search-shell,
  body.page--journal-editor .fixed-header .header-desktop-wishlist {
    display: none !important;
    pointer-events: none !important;
  }

  body.page--journal-editor .fixed-header .header-floating-layer,
  body.page--journal-editor .fixed-header .header-burger-backdrop,
  body.page--journal-editor .fixed-header .header-burger-panel,
  body.page--journal-editor .fixed-header .header-cart-panel {
    z-index: 1400 !important;
  }

  body.page--journal-editor .fixed-header .header-account-panel,
  body.page--journal-editor .fixed-header .header-notifications-panel,
  body.page--journal-editor .fixed-header .header-categories-backdrop {
    z-index: 1410 !important;
  }
}

@media (min-width: 880px) and (max-width: 1200px) {
  body.page--journal-editor .fixed-header .header-desktop-signin {
    margin-left: 0 !important;
  }
}

@media (min-width: 721px) and (max-width: 879px) {
  body.page--journal-editor .fixed-header .header-desktop-burger {
    margin-left: 0 !important;
  }
}

@media (max-width: 720px) {
  body.page--journal-editor.page--blog-header-static .fixed-header {
    min-height: 68px !important;
  }

  body.page--journal-editor .fixed-header .header-mobile-logo {
    width: clamp(164px, 48vw, 184px);
    flex: 0 0 clamp(164px, 48vw, 184px);
    gap: 4px;
    min-width: 0;
  }

  body.page--journal-editor .fixed-header .header-mobile-logo-image {
    width: 78px;
    flex: 0 0 78px;
  }

  body.page--journal-editor .fixed-header .header-mobile-surface-label {
    flex: 0 0 auto;
    margin-left: 0;
    transform: translateY(-3px);
    font-size: 12px;
    font-family: var(--font-display) !important;
    line-height: 1;
  }

  body.page--journal-editor .fixed-header .header-editor-save-state {
    display: none;
  }

  body.page--journal-editor .fixed-header .header-editor-save-state--mobile {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 3px;
    max-width: none;
    overflow: visible;
    color: var(--color-ink-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    transform: translateY(-2px);
  }

  body.page--journal-editor .fixed-header .header-mobile-search,
  body.page--journal-editor .fixed-header .header-mobile-search-page,
  body.page--journal-editor .fixed-header .js-mobile-categories {
    display: none !important;
    pointer-events: none !important;
  }

  body.page--journal-editor .fixed-header .header-mobile-414 {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
  }

  body.page--journal-editor .fixed-header .header-mobile-top {
    position: relative !important;
    top: 0 !important;
    left: 16px !important;
    right: auto !important;
    width: calc(100% - 32px) !important;
    height: 68px !important;
    min-height: 68px !important;
    gap: 6px;
  }

  body.page--journal-editor .fixed-header .header-mobile-account-top {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  body.page--journal-editor .fixed-header .header-mobile-divider {
    display: block !important;
    left: 0 !important;
    top: 67px !important;
    width: 100% !important;
  }

  body.page--journal-editor .fixed-header .header-mobile-bottom-bar--journal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
  }

  body.page--journal-editor .fixed-header .header-hitboxes {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }

  body.page--journal-editor .fixed-header .header-editor-icon-button,
  body.page--journal-editor .fixed-header .header-editor-submit {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  body.page--journal-editor .fixed-header .header-editor-submit span:not(.header-editor-submit__icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.page--journal-editor .fixed-header .journal-editor-menu__popup {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow: auto;
  }

  body.page--journal-editor .fixed-header .journal-editor-menu__popup::before {
    display: none;
  }

  body.page--journal-editor .fixed-header .header-burger-backdrop.is-open {
    display: block !important;
    position: fixed !important;
    inset: 0 0 calc(74px + env(safe-area-inset-bottom, 0px)) 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 9990 !important;
  }

  body.page--journal-editor .fixed-header .header-burger-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    width: min(86vw, 330px) !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    z-index: 10000 !important;
  }
}

@media (max-width: 360px) {
  body.page--journal-editor .fixed-header .header-mobile-logo {
    gap: 3px;
  }

  body.page--journal-editor .fixed-header .header-mobile-logo-image {
    width: 70px;
    flex-basis: 70px;
    margin-left: 8px;
  }

  body.page--journal-editor .fixed-header .header-editor-save-state--mobile {
    margin-left: 2px;
    font-size: 10.5px;
  }
}

.journal-editor-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 74px;
  min-height: 74px;
  box-sizing: border-box;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  background: color-mix(in srgb, var(--color-page-bg) 94%, var(--color-white));
}

.journal-editor-topbar__brand,
.journal-editor-topbar__actions,
.journal-editor-menu,
.journal-editor-account,
.journal-editor-burger {
  display: inline-flex;
  align-items: center;
}

.journal-editor-topbar__brand {
  gap: 16px;
  min-width: 0;
}

.journal-editor-logo {
  width: 104px;
  height: auto;
}

.journal-editor-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 34px;
  margin: 0 0 14px;
  padding: 8px 14px 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.16s ease;
}

.journal-editor-back:hover,
.journal-editor-back:focus-visible {
  outline: 0;
}

.journal-editor-back__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 0.2s ease;
}

.journal-editor-back:hover .journal-editor-back__icon,
.journal-editor-back:focus-visible .journal-editor-back__icon {
  transform: translateX(-3px);
}

.journal-editor-status {
  display: inline-grid;
  gap: 4px;
  min-width: 0;
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.journal-editor-status strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
}

.journal-editor-status [data-editor-save-state] {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-forest) 11%, var(--color-page-bg));
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.journal-editor-topbar__actions {
  justify-content: flex-end;
  gap: 12px;
}

@keyframes journal-editor-header-bounce {
  0% { transform: scale(0.92); }
  34% { transform: scale(1.056); }
  62% { transform: scale(0.988); }
  82% { transform: scale(1.014); }
  100% { transform: scale(1); }
}

@keyframes journal-editor-panel-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes journal-editor-backdrop-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.journal-editor-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-page-bg);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.journal-editor-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-ink);
  transform: scale(1);
  transition: transform 0.18s ease;
}

.journal-editor-button:hover::before,
.journal-editor-button:focus-visible::before {
  transform: scale(1.035);
}

.journal-editor-button:focus-visible,
.journal-editor-icon-button:focus-visible,
.journal-editor-account-button:focus-visible,
.journal-editor-pill-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-forest) 26%, transparent);
  outline-offset: 3px;
}

.journal-editor-button__icon,
.journal-editor-tool__icon,
.journal-editor-menu-item__icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--journal-editor-icon) center / contain no-repeat;
  mask: var(--journal-editor-icon) center / contain no-repeat;
}

.journal-editor-button__icon {
  --journal-editor-icon: url("/assets/blog/editor/publish.svg");
}

.journal-editor-icon-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.journal-editor-icon-button:hover {
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
}

.journal-editor-header-icon::before,
.journal-editor-account-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--popup-hover);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.journal-editor-header-icon:hover,
.journal-editor-header-icon:focus-visible,
.journal-editor-menu[aria-expanded="true"] .journal-editor-header-icon,
.journal-editor-burger[aria-expanded="true"] .journal-editor-header-icon,
.journal-editor-account-button:hover,
.journal-editor-account-button:focus-visible,
.journal-editor-account[aria-expanded="true"] .journal-editor-account-button {
  transform: translateY(-1px);
}

.journal-editor-header-icon:hover::before,
.journal-editor-header-icon:focus-visible::before,
.journal-editor-menu[aria-expanded="true"] .journal-editor-header-icon::before,
.journal-editor-burger[aria-expanded="true"] .journal-editor-header-icon::before,
.journal-editor-account-button:hover::before,
.journal-editor-account-button:focus-visible::before,
.journal-editor-account[aria-expanded="true"] .journal-editor-account-button::before {
  opacity: 1;
  transform: scale(1);
  animation: journal-editor-header-bounce 0.44s cubic-bezier(0.22, 1, 0.28, 1) both;
}

.journal-editor-header-icon:hover {
  background: transparent;
}

.journal-editor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-forest) 18%, var(--color-white));
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 750;
  line-height: 42px;
  text-align: center;
  text-decoration: none;
}

.journal-editor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-editor-menu {
  position: relative;
}

.journal-editor-account,
.journal-editor-burger {
  position: relative;
}

.journal-editor-account-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 62px;
  height: 48px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.journal-editor-account-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/assets/header-icons/chevron-account.svg") center / contain no-repeat;
  mask: url("/assets/header-icons/chevron-account.svg") center / contain no-repeat;
  transition: transform 0.16s ease;
}

.journal-editor-account[aria-expanded="true"] .journal-editor-account-chevron {
  transform: rotate(180deg);
}

.journal-editor-menu__popup,
.journal-editor-account-panel,
.journal-editor-burger-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(276px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--popup-border);
  border-radius: 13px;
  background: var(--popup-bg);
  box-shadow: 0 10px 20px rgba(35, 32, 48, 0.12);
  overflow: visible;
  z-index: 30;
}

.journal-editor-menu[aria-expanded="true"] .journal-editor-menu__popup,
.journal-editor-account[aria-expanded="true"] .journal-editor-account-panel,
.journal-editor-burger[aria-expanded="true"] .journal-editor-burger-panel {
  animation: journal-editor-panel-fade-in 0.22s ease both;
}

.journal-editor-menu__popup::before,
.journal-editor-account-panel::before,
.journal-editor-burger-panel::before {
  display: none;
}

.journal-editor-menu[aria-expanded="false"] .journal-editor-menu__popup,
.journal-editor-account[aria-expanded="false"] .journal-editor-account-panel,
.journal-editor-burger[aria-expanded="false"] .journal-editor-burger-panel,
.journal-editor-modal[hidden],
.journal-editor-toast[hidden],
.journal-editor-block-menu[hidden],
.journal-editor-image-tools[hidden] {
  display: none !important;
}

.journal-editor-menu__section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--popup-bg);
}

.journal-editor-menu__section:first-child {
  border-radius: 13px 13px 0 0;
}

.journal-editor-menu__section:last-child {
  border-radius: 0 0 13px 13px;
}

.journal-editor-menu__section + .journal-editor-menu__section {
  border-top: 1px solid var(--popup-border-strong);
}

.journal-editor-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  text-align: left;
  transition: background-color 0.22s ease;
}

.journal-editor-menu-item:hover,
.journal-editor-menu-item:focus-visible {
  background: var(--popup-hover);
}

.journal-editor-menu-item:focus-visible {
  outline: 2px solid var(--popup-border-strong);
  outline-offset: -2px;
}

.journal-editor-menu-item__icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  transform: scale(0.75);
}

.journal-editor-menu-item__icon--link { --journal-editor-icon: url("/assets/blog/editor/add-embed.svg"); }
.journal-editor-menu-item__icon--image { --journal-editor-icon: url("/assets/blog/editor/add-image.svg"); }
.journal-editor-menu-item__icon--settings { --journal-editor-icon: url("/assets/blog/editor/more.svg"); }
.journal-editor-menu-toggle-icon { --journal-editor-icon: url("/assets/blog/editor/more.svg"); }
.journal-editor-burger-icon { --journal-editor-icon: url("/assets/header-icons/burger.svg"); }

.journal-editor-panel-profile,
.journal-editor-panel-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border-radius: 12px;
  color: var(--color-ink);
  text-decoration: none;
}

.journal-editor-panel-profile {
  gap: 10px;
  padding: 9px 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 12px 12px 6px 6px;
  margin-bottom: 6px;
}

.journal-editor-panel-avatar {
  flex: 0 0 42px;
}

.journal-editor-panel-profile strong,
.journal-editor-panel-profile small {
  display: block;
  min-width: 0;
}

.journal-editor-panel-profile strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.journal-editor-panel-profile small {
  margin-top: 3px;
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.journal-editor-panel-item {
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 850;
}

.journal-editor-panel-item--strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
}

.journal-editor-panel-profile:hover,
.journal-editor-panel-profile:focus-visible,
.journal-editor-panel-item:hover,
.journal-editor-panel-item:focus-visible {
  background: var(--popup-hover);
  outline: 0;
}

.journal-editor-shell {
  width: var(--jp-page-shell-width, min(calc(100% - 68px), 1372px));
  max-width: var(--jp-page-shell-max, 1372px);
  margin: 0 auto;
  padding: 21px var(--homepage-shell-inset, 6px) 96px;
  box-sizing: border-box;
}

.journal-editor-canvas {
  --journal-editor-insert-y: 104px;
  --journal-editor-side-column: 72px;
  --journal-editor-content-column: 820px;
  --journal-editor-column-gap: 28px;
  position: relative;
  display: grid;
  grid-template-columns: var(--journal-editor-side-column) 1px minmax(0, var(--journal-editor-content-column));
  justify-content: center;
  column-gap: var(--journal-editor-column-gap);
  row-gap: 0;
  overflow: visible;
}

.journal-editor-insert-rail {
  --journal-editor-insert-divider-top: -3px;
  --journal-editor-insert-divider-height: 54px;
  --journal-editor-toggle-x: 36px;
  position: absolute;
  left: var(--journal-editor-insert-rail-left, 0);
  top: 0;
  z-index: 12;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: var(--journal-editor-side-column);
  min-height: 54px;
  padding-top: 0;
  overflow: visible;
  transform: translateY(var(--journal-editor-insert-y));
  transition: transform 0.14s ease, opacity 0.12s ease;
}

.journal-editor-insert-rail::before {
  content: "";
  position: absolute;
  left: calc(var(--journal-editor-side-column) + var(--journal-editor-column-gap));
  top: var(--journal-editor-insert-divider-top);
  width: 1px;
  height: var(--journal-editor-insert-divider-height);
  background: color-mix(in srgb, var(--color-ink) 18%, transparent);
  display: none;
  pointer-events: none;
}

.journal-editor-insert-rail.is-title-target {
  --journal-editor-insert-divider-top: -10px;
  --journal-editor-insert-divider-height: 68px;
  --journal-editor-toggle-x: 16px;
}

.journal-editor-insert-rail.is-title-target::before {
  display: none;
}

.journal-editor-insert-rail.is-title-line {
  opacity: 0;
  pointer-events: none;
}

.journal-editor-insert-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--color-ink) 46%, transparent);
  border-radius: 999px;
  background: var(--color-page-bg);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: none;
  transform: translateX(var(--journal-editor-toggle-x));
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.18s ease;
}

.journal-editor-insert-toggle:hover,
.journal-editor-insert-toggle:focus-visible,
.journal-editor-insert-toggle[aria-expanded="true"] {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
}

.journal-editor-insert-toggle:focus-visible {
  outline: 0;
}

.journal-editor-insert-toggle__icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
}

.journal-editor-insert-toggle__asset {
  display: block;
  grid-area: 1 / 1;
  width: 23px;
  height: 23px;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.journal-editor-insert-toggle__asset--add {
  opacity: 0.46;
  transform: translate(-0.55px, 0.55px);
}

.journal-editor-insert-toggle:hover .journal-editor-insert-toggle__asset--add,
.journal-editor-insert-toggle:focus-visible .journal-editor-insert-toggle__asset--add {
  opacity: 1;
}

.journal-editor-insert-toggle__asset--close {
  width: 17px;
  height: 17px;
}

.journal-editor-insert-toggle__asset--close,
.journal-editor-insert-toggle[aria-expanded="true"] .journal-editor-insert-toggle__asset--add {
  opacity: 0;
  transform: scale(0.78) rotate(-18deg);
}

.journal-editor-insert-toggle[aria-expanded="true"] .journal-editor-insert-toggle__asset--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.journal-editor-block-menu {
  position: absolute;
  left: calc(var(--journal-editor-side-column) + var(--journal-editor-column-gap));
  top: -3px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 10px;
  border-left: 0;
  background: var(--color-page-bg);
}

.journal-editor-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--color-forest);
  border-radius: 999px;
  background: var(--color-page-bg);
  color: var(--color-forest);
  cursor: pointer;
}

.journal-editor-tool:hover,
.journal-editor-tool:focus-visible {
  z-index: 3;
  box-shadow: var(--shadow-card-hover);
  outline: 0;
}

.journal-editor-tool::after {
  content: attr(data-tooltip);
  position: absolute;
  top: auto;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  min-width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--color-ink);
  color: var(--color-page-bg);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.journal-editor-tool:hover::after,
.journal-editor-tool:focus-visible::after {
  opacity: 1;
}

.journal-editor-tool--image .journal-editor-tool__icon { --journal-editor-icon: url("/assets/blog/editor/add-image.svg"); }
.journal-editor-tool--product .journal-editor-tool__icon { --journal-editor-icon: url("/assets/blog/editor/add-product.svg"); }
.journal-editor-tool--quote .journal-editor-tool__icon { --journal-editor-icon: url("/assets/blog/editor/add-quote.svg"); }
.journal-editor-tool--code .journal-editor-tool__icon { --journal-editor-icon: url("/assets/blog/editor/add-code.svg"); }
.journal-editor-tool--embed .journal-editor-tool__icon { --journal-editor-icon: url("/assets/blog/editor/add-embed.svg"); }
.journal-editor-tool--divider .journal-editor-tool__icon { --journal-editor-icon: url("/assets/blog/editor/add-divider.svg"); }

.journal-editor-form {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--journal-editor-side-column) 1px minmax(0, var(--journal-editor-content-column));
  column-gap: var(--journal-editor-column-gap);
  min-width: 0;
}

.journal-editor-selection-toolbar {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 1700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 45px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-ink) 92%, transparent);
  color: var(--color-page-bg);
  box-shadow: var(--shadow-card-hover);
  transform: translate(-50%, -100%);
}

.journal-editor-selection-toolbar[hidden] {
  display: none !important;
}

.journal-editor-selection-toolbar::after {
  display: none;
}

.journal-editor-selection-toolbar button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.journal-editor-selection-toolbar button:hover,
.journal-editor-selection-toolbar button:focus-visible {
  background: color-mix(in srgb, var(--color-page-bg) 12%, transparent);
  outline: 0;
}

.journal-editor-selection-toolbar__icon-button {
  font-size: 0;
}

.journal-editor-selection-toolbar__icon {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--journal-editor-toolbar-icon) center / contain no-repeat;
  mask: var(--journal-editor-toolbar-icon) center / contain no-repeat;
}

.journal-editor-selection-toolbar__icon-button--link {
  --journal-editor-toolbar-icon: url("/assets/blog/editor/format-link.svg");
}

.journal-editor-selection-toolbar__icon-button--note {
  --journal-editor-toolbar-icon: url("/assets/blog/editor/format-private-note.svg");
}

.journal-editor-selection-toolbar__divider {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 35px;
  margin: 0 3px;
  background: color-mix(in srgb, var(--color-page-bg) 28%, transparent);
}

.journal-editor-inline-popover {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 1800;
  width: min(520px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-page-bg) 84%, var(--color-white));
  color: var(--color-ink);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(-50%);
}

.journal-editor-inline-popover[hidden] {
  display: none !important;
}

.journal-editor-link-popover,
.journal-editor-alt-popover {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.journal-editor-inline-popover__field {
  display: grid;
  gap: 10px;
  color: var(--color-ink-muted);
  font-size: 15px;
  font-weight: 800;
}

.journal-editor-inline-popover__field input,
.journal-editor-note-popover__textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--color-forest) 24%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-page-bg) 68%, var(--color-white));
  color: var(--color-ink);
  font: inherit;
  outline: 0;
}

.journal-editor-inline-popover__field input {
  min-height: 44px;
  padding: 0 14px;
}

.journal-editor-inline-popover__field input:focus,
.journal-editor-note-popover__textarea:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-forest) 16%, transparent);
}

.journal-editor-inline-popover__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.journal-editor-inline-popover__ghost,
.journal-editor-inline-popover__primary {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.journal-editor-inline-popover__ghost {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  color: var(--color-ink-muted);
}

.journal-editor-inline-popover__ghost:hover,
.journal-editor-inline-popover__ghost:focus-visible {
  background: color-mix(in srgb, var(--color-forest) 14%, transparent);
  color: var(--color-ink);
  outline: 0;
}

.journal-editor-inline-popover__primary {
  min-height: 40px;
  padding: 0 18px;
  background: var(--color-ink);
  color: var(--color-page-bg);
}

.journal-editor-inline-popover__primary:hover,
.journal-editor-inline-popover__primary:focus-visible {
  background: var(--color-forest);
  outline: 0;
}

.journal-editor-note-popover {
  width: min(496px, calc(100vw - 36px));
  border-radius: 18px;
}

.journal-editor-note-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: color-mix(in srgb, var(--color-ink) 7%, transparent);
  color: var(--color-ink-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.journal-editor-note-popover__title,
.journal-editor-note-popover__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.journal-editor-note-popover__lock {
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("/assets/header-icons/collection-lock.svg") center / contain no-repeat;
  mask: url("/assets/header-icons/collection-lock.svg") center / contain no-repeat;
}

.journal-editor-note-popover__body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.journal-editor-note-popover__author {
  color: var(--color-ink);
  font-weight: 850;
}

.journal-editor-note-popover__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-forest);
  color: var(--color-page-bg);
  font-family: var(--font-heading);
  font-weight: 900;
}

.journal-editor-note-popover__textarea {
  min-height: 76px;
  padding: 12px;
  resize: vertical;
}

.journal-editor-note-popover__actions {
  justify-content: flex-start;
}

.journal-editor-note-popover .journal-editor-inline-popover__ghost {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
}

.journal-editor-note-popover .journal-editor-inline-popover__primary {
  min-height: 34px;
  padding: 0 15px;
  font-size: 13px;
}

.journal-editor-note-popover__spacer {
  flex: 1;
}

.journal-editor-title-row {
  --journal-editor-title-line-height: 53px;
  --journal-editor-title-label-size: clamp(20px, 2vw, 30px);
  --journal-editor-title-divider-min-height: 68px;
  --journal-editor-title-divider-height: var(--journal-editor-title-divider-min-height);
  --journal-editor-title-divider-top: calc((var(--journal-editor-title-line-height) - var(--journal-editor-title-divider-height)) / 2);
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--journal-editor-side-column) 1px minmax(0, var(--journal-editor-content-column));
  align-items: start;
  column-gap: var(--journal-editor-column-gap);
  min-height: 96px;
  cursor: text;
}

.journal-editor-title-label {
  align-self: start;
  justify-self: center;
  color: color-mix(in srgb, var(--color-ink-soft) 64%, transparent);
  font-family: var(--font-heading);
  font-size: var(--journal-editor-title-label-size);
  font-weight: 500;
  line-height: 1;
  margin-top: calc((var(--journal-editor-title-line-height) - var(--journal-editor-title-label-size)) / 2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.journal-editor-title-divider {
  align-self: start;
  width: 1px;
  height: var(--journal-editor-title-divider-height);
  margin-top: var(--journal-editor-title-divider-top);
  background: color-mix(in srgb, var(--color-ink) 18%, transparent);
  opacity: 0;
  transition: opacity 0.12s ease, background-color 0.12s ease;
}

.journal-editor-title-row.is-title-active .journal-editor-title-divider {
  opacity: 1;
}

.journal-editor-title-row.is-title-active.has-title .journal-editor-title-label {
  opacity: 1;
}

.journal-editor-title-row:focus-within .journal-editor-title-divider {
  background: color-mix(in srgb, var(--color-ink) 28%, transparent);
}

.journal-editor-title {
  align-self: start;
  display: block;
  width: 100%;
  min-height: 84px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  overflow: hidden;
  padding: 0.08em 0 0.2em;
}

.journal-editor-title::placeholder,
.journal-editor-paragraph:empty::before,
.journal-editor-quote:empty::before,
.journal-editor-embed__input::placeholder,
.journal-editor-code__textarea::placeholder,
.journal-editor-image__caption:empty::before,
.journal-editor-modal input::placeholder,
.journal-editor-modal textarea::placeholder {
  color: color-mix(in srgb, var(--color-ink-soft) 46%, transparent);
}

.journal-editor-blocks {
  grid-column: 3;
  display: block;
  margin-top: 16px;
  cursor: text;
}

.journal-editor-blocks::after {
  content: "";
  display: block;
  clear: both;
}

.journal-editor-line-zones {
  grid-column: 3;
  display: grid;
  min-height: 216px;
  cursor: text;
}

.journal-editor-line-zone {
  display: block;
  min-height: 72px;
}

.journal-editor-block {
  position: relative;
}

.journal-editor-block + .journal-editor-block {
  margin-top: 22px;
}

.journal-editor-block:focus-within {
  z-index: 2;
}

.journal-editor-paragraph,
.journal-editor-heading,
.journal-editor-quote {
  position: relative;
  display: block;
  max-width: 100%;
  min-height: 32px;
  outline: 0;
  color: var(--color-ink-soft);
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.journal-editor-paragraph:empty::before {
  content: "";
}

.journal-editor-paragraph a,
.journal-editor-heading a,
.journal-editor-quote a {
  color: var(--color-forest);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.journal-editor-blocks.is-editor-body-empty .journal-editor-block:first-child .journal-editor-paragraph:empty::before {
  content: attr(data-placeholder);
}

.journal-editor-heading {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.16;
}

.journal-editor-quote {
  padding-left: 22px;
  border-left: 5px solid var(--color-forest);
  border-radius: 4px 0 0 4px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 34px);
}

.journal-editor-private-note {
  border-radius: 5px;
  background: color-mix(in srgb, var(--color-forest) 10%, transparent);
  box-shadow: inset 0 -0.12em 0 color-mix(in srgb, var(--color-forest) 30%, transparent);
}

.journal-editor-private-note-marker {
  position: absolute;
  top: 0.24em;
  left: calc(100% + 20px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--color-ink-muted) 82%, transparent);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transform: none;
}

.journal-editor-private-note-marker::before {
  content: "*";
  color: var(--color-forest);
  font-size: 15px;
  font-weight: 900;
  line-height: 0;
}

.journal-editor-private-note-marker:hover,
.journal-editor-private-note-marker:focus-visible {
  color: var(--color-forest);
  outline: 0;
}

.journal-editor-code {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-page-bg) 74%, var(--color-white));
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.journal-editor-code:focus-within,
.journal-editor-code.is-language-menu-open {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-forest) 38%, transparent);
}

.journal-editor-code::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 14px;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(135deg, transparent 0 58%, color-mix(in srgb, var(--color-ink-soft) 48%, transparent) 59% 64%, transparent 65%),
    linear-gradient(135deg, transparent 0 74%, color-mix(in srgb, var(--color-ink-soft) 48%, transparent) 75% 80%, transparent 81%);
  pointer-events: none;
}

.journal-editor-code__language {
  position: relative;
  z-index: 8;
  width: fit-content;
}

.journal-editor-code__language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.journal-editor-code__language-trigger:hover,
.journal-editor-code__language-trigger:focus-visible,
.journal-editor-code__language.is-open .journal-editor-code__language-trigger {
  background: color-mix(in srgb, var(--color-forest) 12%, transparent);
  color: var(--color-forest);
  outline: 0;
}

.journal-editor-code__language-trigger:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-forest) 18%, transparent);
}

.journal-editor-code__language-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.journal-editor-code__language.is-open .journal-editor-code__language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.journal-editor-code__language-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: min(230px, calc(100vw - 48px));
  max-height: 312px;
  overflow: auto;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-page-bg) 90%, var(--color-white));
  box-shadow: 0 18px 42px color-mix(in srgb, var(--color-ink) 16%, transparent);
  scrollbar-color: color-mix(in srgb, var(--color-ink-soft) 36%, transparent) transparent;
}

.journal-editor-code__language-menu[hidden] {
  display: none !important;
}

.journal-editor-code__language-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-left: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  background: inherit;
  transform: rotate(45deg);
}

.journal-editor-code__language-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-ink-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.journal-editor-code__language-option:hover,
.journal-editor-code__language-option:focus-visible {
  background: color-mix(in srgb, var(--color-forest) 13%, transparent);
  color: var(--color-forest);
  outline: 0;
}

.journal-editor-code__language-option[aria-selected="true"] {
  color: var(--color-ink);
}

.journal-editor-code__language-option[aria-selected="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-forest);
}

.journal-editor-code__textarea {
  width: 100%;
  min-height: 154px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
  scrollbar-color: color-mix(in srgb, var(--color-ink-soft) 42%, transparent) transparent;
}

.journal-editor-code__textarea::-webkit-resizer {
  background: transparent;
}

.journal-editor-embed {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  padding: 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.journal-editor-embed::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    linear-gradient(color-mix(in srgb, var(--color-forest) 18%, transparent), color-mix(in srgb, var(--color-forest) 18%, transparent)),
    var(--color-page-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-forest) 34%, transparent);
}

.journal-editor-embed::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
  width: 18px;
  height: 18px;
  background: var(--color-forest);
  -webkit-mask: url("/assets/blog/editor/add-embed.svg") center / contain no-repeat;
  mask: url("/assets/blog/editor/add-embed.svg") center / contain no-repeat;
}

.journal-editor-embed__input {
  grid-column: 2;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  outline: 0 !important;
  background: transparent;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--color-ink) 14%, transparent);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 650;
  padding: 0 0 6px;
  transition: box-shadow 0.16s ease, color 0.16s ease;
}

.journal-editor-embed__input:focus,
.journal-editor-embed__input:focus-visible {
  outline: 0 !important;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--color-forest) 62%, transparent);
}

.journal-editor-embed__hint {
  grid-column: 2;
  color: var(--color-ink-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.journal-editor-product {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-page-bg) 82%, var(--color-white));
}

.journal-editor-product__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}

.journal-editor-product__link {
  display: grid;
  gap: 7px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.journal-editor-product__link input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: 999px;
  background: var(--color-page-bg);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 0 18px;
  outline: 0;
}

.journal-editor-product__link input:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-forest) 13%, transparent);
}

.journal-editor-product__add,
.journal-editor-product__layouts button,
.journal-editor-product-card__remove {
  border: 0;
  border-radius: 999px;
  background: var(--color-page-bg);
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 850;
  transition: box-shadow 0.16s ease;
}

.journal-editor-product__add {
  min-height: 48px;
  padding: 0 18px;
  background: var(--color-ink);
  color: var(--color-page-bg);
}

.journal-editor-product__add:disabled {
  cursor: wait;
  opacity: 0.68;
}

.journal-editor-product__layouts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
}

.journal-editor-product__layouts button {
  min-height: 38px;
  padding: 0 12px;
}

.journal-editor-product__layouts button[aria-pressed="true"] {
  background: var(--color-ink);
  color: var(--color-page-bg);
}

.journal-editor-product__add:hover,
.journal-editor-product__add:focus-visible,
.journal-editor-product__layouts button:hover,
.journal-editor-product__layouts button:focus-visible,
.journal-editor-product-card:hover,
.journal-editor-product-card:focus-within {
  box-shadow: var(--shadow-card-hover);
  outline: 0;
}

.journal-editor-product-grid {
  display: grid;
  gap: 12px;
}

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

.journal-editor-product[data-product-layout="4"] .journal-editor-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journal-editor-product-card {
  overflow: hidden;
  display: grid;
  min-width: 0;
  border-radius: 20px;
  background: var(--color-page-bg);
  transition: box-shadow 0.16s ease;
}

.journal-editor-product[data-product-layout="1"] .journal-editor-product-card {
  grid-template-columns: minmax(164px, 38%) minmax(0, 1fr);
  min-height: 176px;
}

.journal-editor-product-card__media {
  display: block;
  min-height: 170px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
}

.journal-editor-product-card__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.journal-editor-product-card:hover .journal-editor-product-card__media img,
.journal-editor-product-card:focus-within .journal-editor-product-card__media img {
  transform: scale(1.025);
}

.journal-editor-product-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
}

.journal-editor-product-card__shop {
  margin: 0;
  color: var(--color-forest);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.journal-editor-product-card__title {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.18;
  text-decoration: none;
}

.journal-editor-product-card:hover .journal-editor-product-card__title,
.journal-editor-product-card:focus-within .journal-editor-product-card__title {
  text-decoration: underline;
}

.journal-editor-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--color-forest);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
}

.journal-editor-product-card__price span {
  color: var(--color-ink-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
  text-decoration: line-through;
}

.journal-editor-product-card__remove {
  width: max-content;
  min-height: 32px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
}

.journal-editor-product-empty {
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed color-mix(in srgb, var(--color-ink) 18%, transparent);
  border-radius: 18px;
  color: var(--color-ink-muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.journal-editor-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding: 28px 0 34px;
}

.journal-editor-divider::before {
  content: "...";
  color: color-mix(in srgb, var(--color-ink) 72%, transparent);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 16px;
  line-height: 1;
  transform: translateX(8px);
}

.journal-editor-image {
  --journal-image-pos-x: 50%;
  --journal-image-pos-y: 50%;
  --journal-image-zoom: 1;
  --journal-image-frame-width: 100%;
  --journal-image-frame-height: 360px;
  clear: both;
  display: grid;
  gap: 12px;
  margin: 0;
  width: 100%;
}

.journal-editor-image[data-image-layout="full"] {
  left: 50%;
  width: min(980px, calc(100vw - 96px));
  transform: translateX(-50%);
}

.journal-editor-image[data-image-layout="text"] {
  width: min(100%, 560px);
  margin-right: auto;
}

.journal-editor-image[data-image-layout="left"],
.journal-editor-image[data-image-layout="right"] {
  clear: none;
  width: clamp(220px, var(--journal-image-frame-width), 470px);
  min-width: 240px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.journal-editor-image[data-image-layout="left"] {
  float: left;
  margin-right: 28px;
}

.journal-editor-image[data-image-layout="right"] {
  float: right;
  margin-left: 28px;
}

.journal-editor-image[data-image-layout="left"] + .journal-editor-block,
.journal-editor-image[data-image-layout="right"] + .journal-editor-block {
  margin-top: 0;
}

.journal-editor-image__frame {
  position: relative;
  overflow: hidden;
  width: min(100%, var(--journal-image-frame-width));
  height: var(--journal-image-frame-height);
  justify-self: center;
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  cursor: pointer;
  touch-action: none;
}

.journal-editor-image[data-image-layout="left"] .journal-editor-image__frame,
.journal-editor-image[data-image-layout="right"] .journal-editor-image__frame {
  width: 100%;
}

.journal-editor-image__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--journal-image-pos-x) var(--journal-image-pos-y);
  transform: scale(var(--journal-image-zoom));
  transform-origin: var(--journal-image-pos-x) var(--journal-image-pos-y);
  user-select: none;
  transition: transform 0.16s ease, object-position 0.16s ease;
}

.journal-editor-image.is-selected .journal-editor-image__frame {
  cursor: grab;
}

.journal-editor-image.is-dragging-crop .journal-editor-image__frame,
.journal-editor-image.is-resizing-image .journal-editor-image__frame {
  cursor: grabbing;
}

.journal-editor-image.is-dragging-crop .journal-editor-image__frame img {
  transition: none;
}

.journal-editor-image.is-selected .journal-editor-image__frame {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-forest) 38%, transparent);
}

.journal-editor-image__caption {
  min-height: 28px;
  outline: 0;
  color: var(--color-ink-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.journal-editor-image__caption:empty::before {
  content: "Type caption for image (optional)";
}

.journal-editor-image-tools {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 7;
  display: inline-flex;
  max-width: min(calc(100vw - 40px), 520px);
  min-height: 45px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-ink) 92%, transparent);
  color: var(--color-page-bg);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(-50%);
}

.journal-editor-image-tools::after {
  display: none;
}

.journal-editor-image-tools__row {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.journal-editor-image-tools__row::-webkit-scrollbar {
  display: none;
}

.journal-editor-image-tools button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  min-height: 30px;
  padding: 0 9px;
}

.journal-editor-image-tools button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--color-page-bg) 18%, transparent);
}

.journal-editor-image-tools button:hover,
.journal-editor-image-tools button:focus-visible {
  background: color-mix(in srgb, var(--color-page-bg) 15%, transparent);
  outline: 0;
}

.journal-editor-image__handle {
  position: absolute;
  z-index: 5;
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-page-bg);
  border-radius: 999px;
  background: var(--color-forest);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-ink) 18%, transparent);
}

.journal-editor-image.is-selected .journal-editor-image__handle {
  display: block;
}

.journal-editor-image__handle--n {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.journal-editor-image__handle--e {
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.journal-editor-image__handle--s {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.journal-editor-image__handle--w {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.journal-editor-image__handle--ne {
  top: 6px;
  right: 6px;
  cursor: nesw-resize;
}

.journal-editor-image__handle--se {
  right: 6px;
  bottom: 6px;
  cursor: nwse-resize;
}

.journal-editor-image__handle--sw {
  bottom: 6px;
  left: 6px;
  cursor: nesw-resize;
}

.journal-editor-image__handle--nw {
  top: 6px;
  left: 6px;
  cursor: nwse-resize;
}

.journal-editor-block-actions {
  position: absolute;
  right: auto;
  left: calc(100% + 12px);
  top: 2px;
  display: inline-flex;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.journal-editor-block:hover .journal-editor-block-actions,
.journal-editor-block:focus-within .journal-editor-block-actions {
  opacity: 1;
}

.journal-editor-block[data-block-type="divider"] .journal-editor-block-actions {
  right: auto;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
}

.journal-editor-block-remove {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.journal-editor-block-remove img {
  display: block;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.journal-editor-block-remove:hover,
.journal-editor-block-remove:focus-visible {
  background: var(--popup-hover);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--color-ink) 10%, transparent);
  outline: 0;
}

@media (max-width: 980px) {
  .journal-editor-block-actions,
  .journal-editor-block[data-block-type="divider"] .journal-editor-block-actions {
    right: 0;
    left: auto;
  }
}

.journal-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  background: var(--color-page-bg);
}

.journal-editor-modal__inner {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px);
}

.journal-editor-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3;
  background: var(--color-page-bg);
}

.journal-editor-submit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: start;
  padding-top: 54px;
}

.journal-editor-preview {
  display: grid;
  gap: 18px;
}

.journal-editor-preview__label,
.journal-editor-modal__label {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
}

.journal-editor-preview__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  border: 1.5px dashed color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--color-page-bg) 82%, var(--color-white)) 0%,
      color-mix(in srgb, var(--color-sand) 72%, var(--color-page-bg)) 100%);
}

.journal-editor-preview__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.journal-editor-preview__image img[hidden],
.journal-editor-preview__image.has-cover .journal-editor-preview__empty {
  display: none;
}

.journal-editor-preview__image.has-cover {
  border-style: solid;
  border-color: color-mix(in srgb, var(--color-ink) 5%, transparent);
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
}

.journal-editor-preview__empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  width: min(78%, 520px);
  color: var(--color-ink-muted);
  pointer-events: none;
}

.journal-editor-preview__image .journal-editor-preview__empty-asset {
  position: relative;
  inset: auto;
  display: block;
  width: min(72%, 340px);
  height: auto;
  min-height: 0;
  max-height: 190px;
  object-fit: contain;
}

.journal-editor-preview__empty-text {
  color: color-mix(in srgb, var(--color-ink-muted) 82%, transparent);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.journal-editor-preview__change {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  opacity: 0;
  background: var(--color-ink);
  color: var(--color-page-bg);
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.journal-editor-preview__image.has-cover .journal-editor-preview__change {
  inset: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--color-ink) 38%, transparent);
}

.journal-editor-preview__image.is-empty .journal-editor-preview__change {
  z-index: 1;
  isolation: isolate;
  left: 50%;
  bottom: 24px;
  opacity: 1;
  background: transparent;
  transform: translateX(-50%);
}

.journal-editor-preview__image.is-empty .journal-editor-preview__change::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-ink);
  transform: scale(1);
  transform-origin: center;
  transition: background-color 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.journal-editor-preview__image.is-empty .journal-editor-preview__change:hover::before,
.journal-editor-preview__image.is-empty .journal-editor-preview__change:focus-within::before {
  background: var(--color-forest);
  transform: scale(1.045);
}

.journal-editor-preview__image:hover .journal-editor-preview__change,
.journal-editor-preview__change:focus-within {
  opacity: 1;
}

.journal-editor-preview__change input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.journal-editor-preview__field,
.journal-editor-modal__field {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent);
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  padding: 10px 0;
}

textarea.journal-editor-preview__field {
  resize: none;
  overflow-y: auto;
}

.journal-editor-preview__field--title {
  font-size: 26px;
  font-weight: 900;
}

.journal-editor-modal__side {
  display: grid;
  gap: 28px;
}

.journal-editor-modal__section {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
}

.journal-editor-modal__copy {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.journal-editor-topic-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 12%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-page-bg) 72%, var(--color-white));
}

.journal-editor-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-forest) 14%, var(--color-page-bg));
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 900;
}

.journal-editor-topic-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.journal-editor-topic-chip__remove-icon {
  display: block;
  width: 9px;
  height: 9px;
  background: currentColor;
  -webkit-mask: url("/assets/blog/editor/close.svg") center / contain no-repeat;
  mask: url("/assets/blog/editor/close.svg") center / contain no-repeat;
  pointer-events: none;
}

.journal-editor-topic-input input {
  flex: 1 1 180px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-weight: 800;
}

.journal-editor-topic-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journal-editor-pill-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--color-page-bg);
  color: var(--color-ink);
  box-shadow: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  transition: box-shadow 0.16s ease, background-color 0.16s ease;
}

.journal-editor-pill-button:hover,
.journal-editor-pill-button:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: none;
}

.journal-editor-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.journal-editor-modal__actions .journal-editor-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.journal-editor-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: min(248px, calc(100vw - 40px));
  max-width: min(493px, calc(100vw - 40px));
  min-height: 46px;
  padding: 11px 32px;
  border-radius: 999px;
  background: var(--color-forest);
  color: var(--color-cream);
  outline: 1px solid var(--color-forest-dark);
  outline-offset: -1px;
  box-shadow:
    0 24px 56px color-mix(in srgb, var(--color-forest-dark) 52%, transparent),
    0 4px 16px color-mix(in srgb, var(--color-ink) 16%, transparent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  filter: blur(4px);
  transform: translate(-50%, 20px) scale(0.94);
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), filter 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.journal-editor-toast.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, 0) scale(1);
}

.journal-editor-toast--error {
  background: var(--color-forest);
  color: var(--color-cream);
  outline: 1px solid var(--color-forest-dark);
  outline-offset: -1px;
}

.journal-editor-file-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .journal-editor-toast {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 15px;
  }

  .journal-editor-topbar {
    grid-template-columns: minmax(124px, auto) minmax(0, 1fr);
    height: 74px;
    min-height: 74px;
    gap: 8px;
    padding: 0 12px;
  }

  .journal-editor-topbar__brand {
    gap: 8px;
    overflow: hidden;
  }

  .journal-editor-logo {
    width: 86px;
  }

  .journal-editor-status [data-editor-save-state] {
    display: none;
  }

  .journal-editor-status strong {
    font-size: 14px;
  }

  .journal-editor-topbar__actions {
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .journal-editor-topbar__actions::-webkit-scrollbar {
    display: none;
  }

  .journal-editor-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 14px;
  }

  .journal-editor-button span:not(.journal-editor-button__icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .journal-editor-modal__actions {
    align-items: stretch;
  }

  .journal-editor-modal__actions .journal-editor-button,
  .journal-editor-modal__actions .journal-editor-pill-button {
    width: auto;
    min-height: 46px;
    padding: 0 20px;
    flex: 1 1 180px;
    font-size: 15px;
  }

  .journal-editor-modal__actions .journal-editor-button span:not(.journal-editor-button__icon) {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .journal-editor-account-button {
    min-width: 58px;
  }

  .journal-editor-menu__popup,
  .journal-editor-account-panel,
  .journal-editor-burger-panel {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow: auto;
  }

  .journal-editor-menu__popup::before,
  .journal-editor-account-panel::before,
  .journal-editor-burger-panel::before {
    display: none;
  }

  .journal-editor-shell {
    padding: 30px 16px 72px;
  }

  .journal-editor-canvas {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journal-editor-form {
    grid-column: 1;
    display: block;
  }

  .journal-editor-title-row {
    --journal-editor-title-label-size: 18px;
    --journal-editor-title-divider-min-height: 56px;
    --journal-editor-title-divider-height: var(--journal-editor-title-divider-min-height);
    grid-template-columns: 70px 1px minmax(0, 1fr);
    column-gap: 14px;
    min-height: 82px;
  }

  .journal-editor-title-label {
    font-size: var(--journal-editor-title-label-size);
  }

  .journal-editor-title-divider {
    height: var(--journal-editor-title-divider-height);
  }

  .journal-editor-insert-rail {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    justify-items: start;
    padding-top: 0;
    transform: none;
  }

  .journal-editor-block-menu {
    position: static;
    display: inline-flex;
    flex-wrap: wrap;
    border-left: 0;
    padding-left: 0;
  }

  .journal-editor-product {
    padding: 12px;
    border-radius: 18px;
  }

  .journal-editor-product__toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .journal-editor-product__add,
  .journal-editor-product__layouts {
    width: 100%;
  }

  .journal-editor-product__layouts {
    justify-content: space-between;
  }

  .journal-editor-product__layouts button {
    flex: 1 1 0;
  }

  .journal-editor-product[data-product-layout] .journal-editor-product-grid {
    grid-template-columns: 1fr;
  }

  .journal-editor-product[data-product-layout="1"] .journal-editor-product-card,
  .journal-editor-product-card {
    grid-template-columns: 1fr;
  }

  .journal-editor-title {
    min-height: 84px;
    font-size: clamp(34px, 11vw, 52px);
  }

  .journal-editor-paragraph {
    font-size: 19px;
  }

  .journal-editor-private-note-marker {
    position: static;
    margin-left: 6px;
    font-size: 11px;
    vertical-align: baseline;
  }

  .journal-editor-image,
  .journal-editor-image[data-image-layout="full"],
  .journal-editor-image[data-image-layout="text"],
  .journal-editor-image[data-image-layout="left"],
  .journal-editor-image[data-image-layout="right"] {
    left: auto;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
  }

  .journal-editor-image__frame {
    width: 100%;
    height: min(var(--journal-image-frame-height), 420px);
  }

  .journal-editor-image-tools {
    top: auto;
    right: auto;
    bottom: calc(100% + 12px);
    left: 50%;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
  }

  .journal-editor-image-tools__row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .journal-editor-image-tools__row::-webkit-scrollbar {
    display: none;
  }

  .journal-editor-block-actions {
    left: auto;
    right: 0;
    top: -34px;
    transform: none;
  }

  .journal-editor-block[data-block-type="divider"] .journal-editor-block-actions {
    left: auto;
    right: 0;
    top: -34px;
    transform: none;
  }

  .journal-editor-submit-grid {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
}
