.paid-editor-redesign-mode {
  --paid-radius: 3px;
  --builder-accent: #333e28;
  --builder-muted: #626457;
  --paid-ink: #fafce0;
  --paid-control: #fffef9;
  --paid-raised: #f4f4e9;
  --paid-tint: rgba(51, 62, 40, .055);
}
.paid-editor-redesign-mode .app-shell { width: min(1380px, 100%); max-width: 1380px; padding-top: 32px; }
.paid-editor-redesign-mode .paid-editor-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 450px); align-items: start; gap: 24px; max-width: 1300px; margin: 0 auto; }
.paid-editor-redesign-mode #generator { grid-column: 1; grid-row: 1; gap: 18px; max-width: none; }
.paid-editor-redesign-mode #finished-preview { display: grid; grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: var(--paid-header-offset, 88px); padding: 0; border: 0; background-color: transparent; max-width: none; }
.paid-editor-redesign-mode .section-card,
.paid-editor-redesign-mode .style-group,
.paid-editor-redesign-mode input,
.paid-editor-redesign-mode select,
.paid-editor-redesign-mode button,
.paid-editor-redesign-mode .paid-edit-facts { border-radius: var(--paid-radius); box-shadow: none; }
.paid-editor-redesign-mode .section-card:not(details) { padding: 24px; gap: 16px; }
.paid-editor-redesign-mode details.section-card > summary { min-height: 60px; padding: 22px 24px; }
.paid-editor-redesign-mode details.section-card > .advanced-note { padding: 0 24px; }
.paid-editor-redesign-mode details.section-card > .advanced-grid { padding: 0 24px 24px; }
.paid-editor-redesign-mode h1,
.paid-editor-redesign-mode h2,
.paid-editor-redesign-mode h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; letter-spacing: .015em; }
.paid-editor-redesign-mode .paid-edit-summary-title { font-size: clamp(2rem, 4vw, 2.7rem); }
.paid-editor-redesign-mode .section-heading h2,
.paid-editor-redesign-mode .summary-copy h2 { font-size: 1.8rem; }
.paid-editor-redesign-mode .section-note { font-size: 14px; line-height: 1.45; font-weight: 400; }
.paid-editor-redesign-mode .paid-edit-summary > .section-heading .section-note { display: block; }
.paid-editor-redesign-mode .paid-edit-facts { grid-template-columns: minmax(0, 1fr); }
.paid-editor-redesign-mode .paid-edit-facts > div { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; background-color: var(--paid-tint); }
.paid-editor-redesign-mode .paid-edit-facts > div:last-child { border-bottom: 0; }
.paid-editor-redesign-mode .paid-edit-facts dt { color: var(--builder-muted); font: 600 10px ui-monospace, monospace; letter-spacing: .08em; }
.paid-editor-redesign-mode .paid-edit-facts dd { font-size: 15px; font-weight: 600; line-height: 1.45; }
.paid-editor-redesign-mode .paid-edit-window { border-left-color: var(--builder-accent); background-color: var(--paid-tint); font-size: 13px; line-height: 1.5; }
.paid-editor-redesign-mode label { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.paid-editor-redesign-mode input,
.paid-editor-redesign-mode select { font-size: 16px; min-height: 52px; padding: 12px 14px; background-color: var(--paid-control); }
.paid-editor-redesign-mode input[type=number] { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.paid-editor-redesign-mode input[type=color] { min-height: 44px; padding: 4px; }
.paid-editor-redesign-mode input[type=checkbox] { min-height: 0; }
.paid-editor-redesign-mode input:focus-visible,
.paid-editor-redesign-mode select:focus-visible,
.paid-editor-redesign-mode button:focus-visible,
.paid-editor-redesign-mode a:focus-visible,
.paid-editor-redesign-mode summary:focus-visible,
.paid-editor-redesign-mode [tabindex]:focus-visible { outline: 3px solid var(--builder-accent); outline-offset: 3px; }
.paid-editor-redesign-mode input,
.paid-editor-redesign-mode select,
.paid-editor-redesign-mode button,
.paid-editor-redesign-mode h1 { scroll-margin-top: var(--paid-header-offset, 88px); scroll-margin-bottom: 16px; }
.paid-editor-redesign-mode .helper { color: var(--builder-muted); font-weight: 400; }
.paid-editor-redesign-mode .advanced-grid,
.paid-editor-redesign-mode .paid-edit-quick-grid,
.paid-editor-redesign-mode .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paid-editor-redesign-mode .style-customization { grid-template-columns: minmax(0, 1fr); }
.paid-editor-redesign-mode .style-layout-row,
.paid-editor-redesign-mode .style-marks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paid-editor-redesign-mode .style-group { border-color: var(--border); padding: 16px; }
.paid-editor-redesign-mode .style-group > legend { font-size: 1.15rem; }
.paid-editor-redesign-mode .style-presets { display: grid; align-items: stretch; gap: 8px; margin: 0 24px 20px; }
.paid-editor-redesign-mode .style-presets-label,
.paid-editor-control-label { color: var(--builder-muted); font: 600 11px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.paid-editor-redesign-mode .style-presets-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.paid-editor-redesign-mode .preset-btn { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; justify-content: stretch; gap: 8px; width: 100%; min-width: 0; min-height: 88px; padding: 8px 8px 10px; border: 2px solid var(--border); background-color: var(--paid-control); color: inherit; font: inherit; text-transform: none; }
.paid-editor-redesign-mode .preset-btn[aria-pressed=true] { border-color: var(--builder-accent); background-color: var(--paid-tint); }
.paid-editor-preset-swatch { display: block; position: relative; width: 100%; height: 44px; overflow: hidden; border: 1px solid rgba(128, 128, 128, .25); border-radius: 7px; }
.paid-editor-preset-number { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font: 600 25px "Barlow Condensed", "Arial Narrow", sans-serif; line-height: 1; }
.paid-editor-preset-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background-image: repeating-linear-gradient(90deg, var(--paid-preset-minor) 0 1px, transparent 1px 6px); }
.paid-editor-preset-tick { position: absolute; left: calc(50% - 1px); bottom: 0; width: 2px; height: 14px; }
.paid-editor-preset-name { font-size: 15px; font-weight: 600; }
.paid-editor-layout-choices { display: grid; gap: 22px; margin: 0 24px 24px; }
.paid-editor-choice-group { display: grid; gap: 8px; min-width: 0; }
.paid-editor-choice-group .helper { margin: 0; font-size: 12px; line-height: 1.45; }
.paid-editor-choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.paid-editor-height-group .paid-editor-choice-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.paid-editor-redesign-mode .paid-editor-choice { display: grid; justify-content: center; align-content: center; gap: 4px; min-height: 46px; min-width: 0; padding: 9px 4px; color: inherit; border: 1px solid var(--border); background-color: var(--paid-control); font: inherit; font-size: 15px; font-weight: 600; text-transform: none; }
.paid-editor-redesign-mode .paid-editor-wrap-group .paid-editor-choice { min-height: 60px; }
.paid-editor-redesign-mode .paid-editor-choice[aria-pressed=true] { color: var(--paid-ink); background-color: var(--builder-accent); border-color: var(--builder-accent); }
.paid-editor-choice-reach { font: 10px ui-monospace, monospace; white-space: nowrap; }
.paid-editor-height-group .paid-editor-choice-name { font-size: 13px; white-space: nowrap; }
.paid-editor-redesign-mode #humidity { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background-color: transparent; cursor: pointer; }
.paid-editor-redesign-mode #humidity::-webkit-slider-runnable-track { height: 8px; border: 1px solid var(--builder-muted); border-radius: 999px; background: linear-gradient(to right, var(--builder-accent) 0 var(--paid-humidity-fill, 78%), var(--paid-raised) var(--paid-humidity-fill, 78%) 100%); }
.paid-editor-redesign-mode #humidity::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 0; border-radius: 50%; background-color: var(--builder-accent); }
.paid-editor-redesign-mode #humidity::-moz-range-track { height: 6px; border: 1px solid var(--builder-muted); border-radius: 999px; background-color: var(--paid-raised); }
.paid-editor-redesign-mode #humidity::-moz-range-progress { height: 6px; border-radius: 999px; background-color: var(--builder-accent); }
.paid-editor-redesign-mode #humidity::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background-color: var(--builder-accent); }
.paid-editor-humidity-value { align-self: end; justify-self: end; color: var(--builder-accent); font: 600 22px "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: 0; }
.paid-editor-conditions-callout { margin: 0 24px 24px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background-color: var(--paid-tint); font-size: 14px; font-weight: 400; line-height: 1.5; }
.paid-editor-redesign-mode .energy-reference-card { margin: 0 24px 20px; }
.paid-editor-redesign-mode .paid-editor-preview-card { padding: 18px; }
.paid-editor-redesign-mode .builder-tape-row { height: max(calc(45px + var(--tape-height, 5) * 2px), var(--label-row-height, 45px)); }
.paid-editor-preview-note,
.paid-editor-preview-status { margin: 10px 0 0; color: var(--builder-muted); font-size: 12px; line-height: 1.5; }
.paid-editor-preview-status[data-state=error] { color: var(--error-text); }
.paid-editor-dial-actions,
.paid-editor-dial-chips { display: flex; gap: 8px; margin-top: 12px; }
.paid-editor-redesign-mode .paid-editor-button { min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); background-color: var(--paid-control); color: inherit; text-transform: none; }
.paid-editor-dial-actions button,
.paid-editor-dial-chips button { flex: 1; min-width: 0; }
.paid-editor-dial-chips button { font: 12px ui-monospace, monospace; padding: 8px 4px; }
.paid-editor-redesign-mode #edit-box { position: static; margin-top: 0; padding: 20px; border-radius: 12px; background-color: var(--paid-tint); }
.paid-editor-redesign-mode #save-edit-btn { background-color: var(--builder-accent); color: var(--paid-ink); min-height: 52px; font-size: 16px; font-weight: 600; text-transform: none; }
.paid-editor-redesign-mode #paid-chart-btn { min-height: 44px; border: 1px solid var(--border); background-color: var(--paid-control); color: inherit; text-transform: none; }
.paid-editor-redesign-mode .app-footer .footer-tagline { flex-basis: 100%; margin: 0; text-align: center; }
.paid-editor-topbar { display: flex; min-height: 44px; align-items: center; }
.paid-editor-redesign-mode .paid-editor-topbar #edit-box-back { margin: 0; padding: 8px 0; }
.paid-editor-redesign-mode .paid-editor-saved-details > summary { font-weight: 600; }
.paid-editor-redesign-mode .paid-editor-saved-details .paid-edit-facts { margin: 0 16px 16px; }
.paid-editor-redesign-mode details.section-card > summary .summary-indicator { display: none; }
.paid-editor-redesign-mode details.section-card > summary { display: flex; align-items: center; gap: 16px; list-style: none; }
.paid-editor-redesign-mode details.section-card > summary::-webkit-details-marker { display: none; }
.paid-editor-redesign-mode details.section-card > summary::after { content: "+"; margin-left: auto; font: 24px/1 ui-monospace, monospace; }
.paid-editor-redesign-mode details.section-card[open] > summary::after { content: "−"; }
.paid-editor-field-error { display: block; color: var(--error-text); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.paid-editor-redesign-mode input[aria-invalid=true],
.paid-editor-redesign-mode select[aria-invalid=true],
.paid-editor-redesign-mode textarea[aria-invalid=true] { border: 2px solid var(--error-text); }
.paid-editor-save-bar { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 780px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--border); background-color: var(--page-bg); box-shadow: 0 -5px 20px rgb(0 0 0 / .12); }
.paid-editor-save-bar > span { font-size: 13px; line-height: 1.4; }
.paid-editor-redesign-mode #paid-editor-save-sticky { flex: 0 0 auto; min-height: 48px; background-color: var(--builder-accent); border-color: var(--builder-accent); color: var(--paid-ink); font-size: 16px; font-weight: 600; }
.paid-editor-has-changes .app-shell { padding-bottom: 150px; }
.paid-editor-has-changes input,
.paid-editor-has-changes select,
.paid-editor-has-changes button { scroll-margin-bottom: 140px; }
@media (prefers-color-scheme: dark) {
  .paid-editor-redesign-mode { --builder-accent: #bce82a; --builder-muted: #b9bca8; --paid-ink: #141711; --paid-control: #22251d; --paid-raised: #292d21; --paid-tint: rgba(188, 232, 42, .055); }
  .paid-editor-redesign-mode .paid-edit-summary-title,
  .paid-editor-redesign-mode .paid-edit-facts dd { color: #eef0e3; }
  .paid-editor-redesign-mode .paid-edit-window { color: #eef0e3; }
  .paid-editor-redesign-mode .style-contrast-warning { border-color: #b68a47; background-color: #35291a; color: #f3ce88; }
}
@media (max-width: 1000px) and (min-width: 768px) {
  .paid-editor-redesign-mode .paid-editor-workspace { grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); gap: 18px; }
  .paid-editor-redesign-mode .section-card:not(details) { padding: 18px; }
  .paid-editor-redesign-mode .paid-edit-quick-grid,
  .paid-editor-redesign-mode .advanced-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .paid-editor-redesign-mode .app-shell { padding: 16px 12px 40px; }
  .paid-editor-redesign-mode .paid-editor-workspace { display: flex; flex-direction: column; gap: 16px; }
  .paid-editor-redesign-mode #finished-preview { position: sticky; top: 0; z-index: 8; order: -1; width: 100%; background-color: var(--page-bg); }
  .paid-editor-redesign-mode #generator { width: 100%; }
  .paid-editor-redesign-mode .paid-editor-preview-card { padding: 8px 10px; max-height: 200px; overflow-y: auto; background-color: var(--page-bg); }
  .paid-editor-redesign-mode .paid-editor-preview-card:has(.builder-dial-window[data-rendered-rows="3"]) { max-height: none; overflow-y: visible; }
  .paid-editor-redesign-mode .builder-preview-header { margin-bottom: 6px; font-size: 10px; }
  .paid-editor-redesign-mode .builder-dial-window { max-height: 143px; overflow-y: auto; }
  .paid-editor-redesign-mode .builder-dial-window[data-rendered-rows="3"] { max-height: none; overflow-y: visible; }
  .paid-editor-redesign-mode .builder-tape-row { height: max(calc(36px + var(--tape-height, 5) * 1px), var(--label-row-height, 45px)); }
  .paid-editor-redesign-mode .builder-reading { margin-top: 6px; }
  .paid-editor-redesign-mode .builder-readout { font-size: 12px; }
  .paid-editor-redesign-mode .builder-turn-readout { font-size: 9px; }
  .paid-editor-redesign-mode .paid-editor-dial-actions,
  .paid-editor-redesign-mode .paid-editor-dial-chips,
  .paid-editor-redesign-mode #paid-editor-dial-instructions,
  .paid-editor-redesign-mode .paid-editor-preview-note,
  .paid-editor-redesign-mode .paid-editor-preview-status[data-state=ready],
  .paid-editor-redesign-mode .paid-editor-preview-status[data-state=working] { display: none; }
  .paid-editor-redesign-mode .paid-editor-preview-status[data-state=error] { display: block; }
  .paid-editor-redesign-mode #paid-editor-retry-preview { min-height: 44px; }
  .paid-editor-redesign-mode #paid-editor-retry-preview:not([hidden]) { display: block; width: 100%; }
  .paid-editor-redesign-mode.paid-editor-field-focused .builder-tape-row.is-inactive { display: none; }
  .paid-editor-redesign-mode.paid-editor-field-focused .builder-preview-header { display: none; }
  .paid-editor-redesign-mode.paid-editor-field-focused .paid-editor-preview-card { padding-top: 6px; padding-bottom: 6px; }
  .paid-editor-redesign-mode input,
  .paid-editor-redesign-mode select,
  .paid-editor-redesign-mode button,
  .paid-editor-redesign-mode h1 { scroll-margin-top: var(--paid-preview-offset, 150px); }
  .paid-editor-redesign-mode .section-card:not(details) { padding: 18px 14px; }
  .paid-editor-redesign-mode details.section-card > summary { padding: 18px 14px; }
  .paid-editor-redesign-mode details.section-card > .advanced-note { padding: 0 14px; }
  .paid-editor-redesign-mode details.section-card > .advanced-grid { padding: 0 14px 18px; }
  .paid-editor-redesign-mode .advanced-grid,
  .paid-editor-redesign-mode .paid-edit-quick-grid,
  .paid-editor-redesign-mode .grid { grid-template-columns: minmax(0, 1fr); }
  .paid-editor-redesign-mode input[type=number] { font-size: 16px; }
  .paid-editor-redesign-mode .style-layout-row,
  .paid-editor-redesign-mode .style-marks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paid-editor-redesign-mode .style-presets,
  .paid-editor-layout-choices { margin-left: 14px; margin-right: 14px; }
  .paid-editor-conditions-callout,
  .paid-editor-redesign-mode .energy-reference-card { margin-left: 14px; margin-right: 14px; }
  .paid-editor-redesign-mode #edit-box { padding: 16px; }
  .paid-editor-redesign-mode #save-edit-btn { flex-basis: 100%; width: 100%; }
}
@media (max-width: 360px) {
  .paid-editor-height-group .paid-editor-choice-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .paid-editor-redesign-mode *,
  .paid-editor-redesign-mode *::before,
  .paid-editor-redesign-mode *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
