.cf-editor {
  --cf-editor-ink: #fff7ee;
  --cf-editor-muted: #c7b8d1;
  --cf-editor-plum: #24162f;
  --cf-editor-panel: #302039;
  --cf-editor-lavender: #dac1ff;
  --cf-editor-mint: #b9ead6;
  box-sizing: border-box;
  width: min(760px, calc(100vw - 40px));
  max-width: none;
  max-height: min(860px, calc(var(--cf-viewport-height, 100dvh) - 48px));
  margin: auto;
  padding: 0;
  border: 1px solid #ffffff25;
  border-radius: 24px;
  background: var(--cf-editor-plum);
  color: var(--cf-editor-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  box-shadow: 0 30px 100px #0d061e9c;
  overflow: hidden;
  color-scheme: dark;
}
.cf-editor:not([open]) { display: none; }
.cf-editor[open] { display: flex; flex-direction: column; }
.cf-editor *, .cf-editor *::before, .cf-editor *::after { box-sizing: border-box; }
.cf-editor::backdrop { background: #10091dcc; backdrop-filter: blur(9px); }
.cf-editor [hidden] { display: none !important; }
.cf-editor h2, .cf-editor h3, .cf-editor h4, .cf-editor p { margin: 0; }
.cf-editor button, .cf-editor input, .cf-editor a { font: inherit; }
.cf-editor button, .cf-editor a { -webkit-tap-highlight-color: transparent; }
.cf-editor-header { display: flex; gap: 20px; padding: 29px 30px 24px; flex-shrink: 0; border-bottom: 1px solid #ffffff12; }
.cf-editor-heading { flex: 1; min-width: 0; }
.cf-editor-eyebrow { color: var(--cf-editor-mint); font-size: 10px; font-weight: 800; letter-spacing: .15em; line-height: 1.5; }
.cf-editor .cf-editor-title { margin: 6px 0 8px; color: var(--cf-editor-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 36px); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; }
.cf-editor-title:focus { outline: none; }
.cf-editor-description { max-width: 47ch; color: var(--cf-editor-muted); font-size: 14px; line-height: 1.6; }
.cf-editor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--cf-editor-ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .16s ease, border-color .16s ease, opacity .16s ease, transform .16s ease;
}
.cf-editor-button:hover:not(:disabled) { background: #ffffff0b; color: var(--cf-editor-ink); }
.cf-editor-button:active:not(:disabled) { transform: translateY(1px); }
.cf-editor .cf-editor-primary { background: var(--cf-editor-lavender); color: #2a1636; box-shadow: 0 3px 0 #00000016; }
.cf-editor-primary:hover:not(:disabled) { background: #e7d7ff; color: #261332; }
.cf-editor-secondary { background: #b9ead612; color: var(--cf-editor-mint); border-color: #b9ead638; }
.cf-editor-secondary:hover:not(:disabled) { background: #b9ead622; color: #d0f8e7; }
.cf-editor-quiet { color: #d7c8e2; border-color: #ffffff20; }
.cf-editor-quiet:hover:not(:disabled) { background: #ffffff0c; border-color: #ffffff40; }
.cf-editor-button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.cf-editor-button:focus-visible, .cf-editor-input:focus-visible, .cf-editor a:focus-visible { outline: 3px solid var(--cf-editor-mint); outline-offset: 3px; }
.cf-editor .cf-editor-close { flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border-color: #ffffff24; border-radius: 50%; font-size: 27px; font-weight: 400; line-height: 1; }
.cf-editor-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 25px 30px 30px; scrollbar-width: thin; scrollbar-color: #8b6da455 transparent; }
.cf-editor-content { min-width: 0; }
.cf-editor-feedback { margin-bottom: 20px !important; padding: 13px 15px; border: 1px solid #ffb29f50; border-radius: 14px; background: #ffb29f0b; color: #ffcebd; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.cf-editor-footer { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 30px 22px; border-top: 1px solid #ffffff16; background: #20142b; }
.cf-editor-footer-note { width: 100%; color: var(--cf-editor-muted); font-size: 12px; line-height: 1.5; }
.cf-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cf-editor-footer > .cf-editor-actions { width: 100%; }
.cf-editor-footnote { flex: 1; min-width: 180px; color: var(--cf-editor-muted); font-size: 13px; }
.cf-editor-empty { max-width: 460px; margin: 14px auto 24px; text-align: center; }
.cf-editor-empty h3 { font-size: 22px; font-weight: 650; margin: 16px 0 10px; letter-spacing: -.025em; }
.cf-editor-empty p { color: var(--cf-editor-muted); line-height: 1.7; }
.cf-editor-orbit { display: inline-grid; place-items: center; width: 88px; height: 88px; border: 1px solid #d8baff35; border-radius: 30px; background: radial-gradient(circle at 50% 30%, #c493ff25, #a4f1c805); color: var(--cf-editor-lavender); font-size: 43px; }
.cf-editor-draft-note { margin-top: 14px !important; color: var(--cf-editor-mint) !important; font-size: 13px; }
.cf-editor-unlock { padding: 6px 12px 5px; text-align: center; }
.cf-editor-unlock-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 24px; border: 1px solid #ffffff2a; background: radial-gradient(circle at 10% 80%, #9ee8d448, transparent 60%), radial-gradient(circle at 90% 20%, #f5b5d757, #aa82e51f); color: #f5e7ff; font-size: 41px; transform: rotate(-7deg); }
.cf-editor-unlock h3 { margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 5vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.cf-editor-unlock-copy { max-width: 43ch; margin: 0 auto !important; color: var(--cf-editor-muted); font-size: 15px; line-height: 1.7; }
.cf-editor-perks { display: inline-flex; flex-direction: column; gap: 10px; list-style: none; text-align: left; padding: 0; margin: 24px auto 20px; color: #ece0f2; font-size: 14px; }
.cf-editor-perks li { position: relative; padding-left: 24px; }
.cf-editor-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cf-editor-mint); font-weight: 800; }
.cf-editor-free-note { color: var(--cf-editor-mint); font-size: 12px; line-height: 1.6; }
.cf-editor-price { display: flex; flex-direction: column; gap: 2px; align-items: center; margin: 24px 0 12px; }
.cf-editor-price strong { color: var(--cf-editor-ink); font-size: 25px; font-weight: 700; letter-spacing: -.035em; }
.cf-editor-price span { font-size: 12px; color: var(--cf-editor-muted); }
.cf-editor-membership-note { max-width: 45ch; margin: 12px auto 0 !important; color: var(--cf-editor-muted); font-size: 12px; }
.cf-editor-pending { margin-top: 24px; padding: 18px; border: 1px solid #dbc0ff32; border-radius: 18px; background: #dbc0ff08; }
.cf-editor-pending h4 { font-size: 15px; font-weight: 700; }
.cf-editor-pending p { margin: 6px 0 15px; color: var(--cf-editor-muted); font-size: 13px; line-height: 1.65; }
.cf-editor-collection-top { margin-bottom: 20px; }
.cf-editor-badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 10px; border: 1px solid #b9ead62b; border-radius: 9px; background: #b9ead60a; color: var(--cf-editor-mint); font-size: 11px; font-weight: 750; line-height: 1.5; }
.cf-editor-badge::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.cf-editor-help { margin-top: 13px !important; color: var(--cf-editor-muted); font-size: 13px; line-height: 1.7; }
.cf-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 16px; margin: 0 0 13px; }
.cf-editor-summary { color: #e0d2eb; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-editor-limit-note { color: var(--cf-editor-muted); font-size: 11px; }
.cf-editor-list { display: flex; flex-direction: column; gap: 11px; }
.cf-editor-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 52px 44px; align-items: start; column-gap: 10px; padding: 13px 12px 8px; border: 1px solid #ffffff14; border-radius: 18px; background: #302039; }
.cf-editor-row-number { align-self: start; padding-top: 15px; color: #bda9cb; text-align: center; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cf-editor-field { min-width: 0; }
.cf-editor-input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #ffffff26; border-radius: 11px; background: #20152b; color: #fff7ee; font-size: 15px; font-weight: 450; line-height: 1.5; box-shadow: none; -webkit-appearance: none; appearance: none; }
.cf-editor-input::placeholder { color: #a58db5; font-weight: 400; }
.cf-editor-input:hover { border-color: #dac1ff65; }
.cf-editor-input:focus { border-color: var(--cf-editor-lavender); }
.cf-editor-input[aria-invalid="true"] { border-color: #ffb4a0; }
.cf-editor-input:disabled { opacity: .6; }
.cf-editor-field-meta { display: flex; justify-content: space-between; gap: 10px; min-height: 19px; padding: 3px 1px 0; font-size: 10px; line-height: 1.5; }
.cf-editor-char-count { flex-shrink: 0; margin-left: auto; color: #bda9cb; font-variant-numeric: tabular-nums; }
.cf-editor-field-error, .cf-editor-over-limit { color: #ffc1ae; }
.cf-editor .cf-editor-toggle { display: inline-flex; flex-direction: column; gap: 4px; min-height: 58px; min-width: 52px; padding: 9px 4px 2px; border-radius: 11px; }
.cf-editor-toggle-track { position: relative; display: block; flex-shrink: 0; width: 37px; height: 22px; border: 1px solid #ad98bc70; border-radius: 14px; background: #54445e; transition: background .16s ease; }
.cf-editor-toggle-track::after { content: ""; position: absolute; left: 3px; top: 3px; height: 14px; width: 14px; background: #e9dfef; border-radius: 50%; box-shadow: 0 1px 3px #0004; transition: transform .16s ease, background .16s ease; }
.cf-editor-toggle[aria-checked="true"] .cf-editor-toggle-track { background: var(--cf-editor-mint); border-color: transparent; }
.cf-editor-toggle[aria-checked="true"] .cf-editor-toggle-track::after { transform: translateX(15px); background: #234738; }
.cf-editor-toggle-label { color: #cdbfd8; font-size: 10px; line-height: 1.3; }
.cf-editor-toggle[aria-checked="true"] .cf-editor-toggle-label { color: var(--cf-editor-mint); }
.cf-editor .cf-editor-remove { min-width: 44px; min-height: 46px; padding: 0; color: #c5b3cf; font-size: 24px; font-weight: 400; border-radius: 11px; }
.cf-editor-remove:hover:not(:disabled) { background: #ffc2b018; color: #ffd1c1; }
.cf-editor-row-off { background: #291c32; border-style: dashed; }
.cf-editor-row-off .cf-editor-input { color: #c2b1ce; }
.cf-editor .cf-editor-add { width: 100%; margin-top: 14px; min-height: 48px; border: 1px dashed #dcc4ff50; border-radius: 14px; background: #dac1ff06; color: var(--cf-editor-lavender); }
.cf-editor-add:hover:not(:disabled) { background: #dac1ff12; border-color: #dcc4ff90; color: #eddfff; }
.cf-editor-list-empty { padding: 26px 18px 28px; border: 1px dashed #ffffff25; border-radius: 18px; text-align: center; }
.cf-editor-list-empty h3 { margin-bottom: 9px; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.cf-editor-list-empty p { max-width: 38ch; margin: 0 auto; color: var(--cf-editor-muted); font-size: 13px; line-height: 1.7; }
.cf-editor-list-empty .cf-editor-button { margin-top: 18px; }
.cf-editor-conflict { margin: 0 0 22px; padding: 16px; border: 1px solid #f4d09e66; border-radius: 16px; background: #f4d09e0a; }
.cf-editor-conflict h3 { color: #ffe0b8; font-size: 15px; font-weight: 700; }
.cf-editor-conflict p { margin: 6px 0 14px; color: #dfc8b7; font-size: 13px; line-height: 1.6; }
.cf-editor-conflict .cf-editor-actions { justify-content: flex-start; }
.cf-editor-confirm { flex-shrink: 0; padding: 18px 30px; border-top: 1px solid #f6ceab55; background: #3f2b37; }
.cf-editor-confirm p { margin: 0 0 12px; color: #ffe1c2; font-size: 14px; }
.cf-editor-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 600px) {
  .cf-editor { width: 100%; height: var(--cf-viewport-height, 100dvh); max-height: var(--cf-viewport-height, 100dvh); margin: 0; border-radius: 0; border: 0; }
  .cf-editor-header { padding: max(24px, env(safe-area-inset-top)) 20px 20px; gap: 12px; }
  .cf-editor .cf-editor-title { font-size: 31px; }
  .cf-editor-description { max-width: 34ch; font-size: 13px; }
  .cf-editor-body { padding: 22px 16px 26px; }
  .cf-editor-footer { padding: 15px 16px max(18px, env(safe-area-inset-bottom)); gap: 10px; }
  .cf-editor-footer > .cf-editor-button { flex: 1 1 100%; }
  .cf-editor-footer > .cf-editor-actions { gap: 8px; }
  .cf-editor-footer > .cf-editor-actions > .cf-editor-button { flex: 1 1 130px; padding-right: 11px; padding-left: 11px; font-size: 12px; }
  .cf-editor-footer-note { font-size: 11px; }
  .cf-editor-row { grid-template-columns: 16px minmax(0, 1fr) 46px 44px; column-gap: 5px; padding: 10px 7px 6px; border-radius: 16px; }
  .cf-editor .cf-editor-toggle { min-width: 46px; }
  .cf-editor-row-number { font-size: 9px; }
  .cf-editor-input { padding: 11px 8px; font-size: 16px; }
  .cf-editor-field-meta { gap: 4px; font-size: 9px; }
  .cf-editor-unlock { padding-right: 6px; padding-left: 6px; }
  .cf-editor-unlock-copy { font-size: 14px; }
  .cf-editor-perks { font-size: 13px; }
  .cf-editor-confirm { padding: 16px; }
}
@media (max-width: 360px) {
  .cf-editor-body { padding-right: 10px; padding-left: 10px; }
  .cf-editor-row { grid-template-columns: minmax(0, 1fr) 46px 44px; }
  .cf-editor-row-number { display: none; }
  .cf-editor-header { padding-right: 16px; padding-left: 16px; }
  .cf-editor .cf-editor-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-editor *, .cf-editor *::before, .cf-editor *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Keep the collection controls reachable in a short landscape viewport. */
@media (max-height: 520px) {
  .cf-editor { max-height: calc(var(--cf-viewport-height, 100dvh) - 16px); }
  .cf-editor-header { align-items: center; padding: 10px 18px; gap: 12px; }
  .cf-editor-header .cf-editor-eyebrow, .cf-editor-description { display: none; }
  .cf-editor .cf-editor-title { margin: 0; font-size: 23px; }
  .cf-editor-body { padding: 12px 18px; }
  .cf-editor-footer { padding: 10px 18px; gap: 8px; }
  .cf-editor-footer-note { display: none; }
  .cf-editor-confirm { padding: 10px 18px; }
  .cf-editor-confirm p { margin-bottom: 6px; }
}
