/* v50: one visual workspace for the existing controls. No fields are removed. */
.editor-main{background:#fbfaf6;border-radius:25px}
.editor-heading{border-bottom-color:#d6ddd5}
.editor-heading h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-.055em}
.editor-shortcuts button{transition:background .16s,transform .16s}
.editor-shortcuts button:hover{transform:translateX(3px)}
.editor-shortcuts button[aria-selected=true]{box-shadow:inset 3px 0 currentColor}
.save-bar{position:sticky;bottom:0;display:flex;align-items:center;gap:18px;justify-content:space-between;padding:13px 16px;background:color-mix(in srgb,var(--admin-paper,#f7f4ec) 91%,white);box-shadow:0 -12px 32px #1a372020}
.save-bar p{display:flex;gap:9px;align-items:center;font-size:.82rem;font-weight:700}
.save-bar p::before{content:'';width:8px;height:8px;flex:none;border-radius:50%;background:#668a6d;box-shadow:0 0 0 4px #668a6d22}
.save-bar button{border:0;border-radius:100px;padding:13px 25px;box-shadow:0 7px 18px #1634282b;transition:transform .15s,box-shadow .15s}
.save-bar button:hover{transform:translateY(-2px);box-shadow:0 10px 25px #16342838}
.save-bar button:disabled{opacity:.5;transform:none}

.design-intro{align-items:center;border:0;padding:16px 0 9px}
.design-intro h2,.copy-studio-head h2{font:400 clamp(2rem,3.2vw,3.25rem)/1 Georgia,serif;letter-spacing:-.055em}
.design-intro p{max-width:68ch;line-height:1.5}
.design-reset button{border:1px solid #c9d5c9;border-radius:100px;background:#f3f7f1;padding:9px 15px;min-height:40px}
.design-reset button:hover{background:#e8eee7}
.auto-palette{position:relative;display:grid;grid-template-columns:minmax(210px,.9fr) minmax(330px,1.1fr);align-items:stretch;gap:22px;margin:12px 0 20px;padding:24px;border:0;border-radius:22px;background:radial-gradient(circle at 95% 10%,#49736c 0,transparent 34%),linear-gradient(125deg,#152b2b,#254a46 67%,#162e31);color:#fffdf4;box-shadow:0 20px 35px #1e3c3629}
.auto-palette .eyebrow{color:#b7d5c5}
.auto-palette h3{font:400 clamp(1.7rem,2.4vw,2.55rem)/1.05 Georgia,serif;letter-spacing:-.05em;margin:10px 0}
.auto-palette p{color:#e0e9df;line-height:1.5;max-width:46ch}
.auto-palette-control{display:grid;grid-template-columns:1fr;min-width:0;gap:12px;justify-content:stretch;align-content:center}
.auto-palette-control .master-pick{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.auto-palette-control label{display:grid;gap:6px;color:#f5f7ef;font-size:.75rem;letter-spacing:.03em}
.auto-palette-control input[type=color]{width:92px;height:58px;border:2px solid #eaf4e8;border-radius:12px;padding:3px;box-shadow:0 6px 13px #1024223d}
.auto-palette-control input[type=text]{width:112px;height:52px;border:1px solid #a8c1b7;border-radius:11px;background:#fffdf7;padding:9px;text-align:center;color:#18352f;font:700 .88rem monospace}
.master-presets{display:flex;flex-wrap:wrap;gap:7px}
.auto-palette-control .master-presets button{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe9df55;border-radius:100px;padding:8px 11px;background:#ffffff16;color:#f7fbf3;font-size:.72rem;font-weight:700}
.master-presets button::before{content:'';display:block;width:16px;height:16px;border-radius:50%;background:var(--preset);border:1px solid #ffffff80}
.auto-palette-control .master-presets button[aria-pressed=true]{background:#fffdf2;color:#17382e;border-color:#fffdf2}
.master-result{display:flex;align-items:center;gap:13px;color:#e6f1e5;font-size:.7rem;font-weight:700}
.master-result .master-swatches{box-shadow:0 5px 14px #0f201f4d}
.master-result .master-swatches i{width:30px;height:28px}
.auto-palette-control #master-color-status{max-width:none;text-align:left;color:#e9f2e7;font-size:.75rem;line-height:1.35}
.auto-palette-control #master-undo{justify-self:start;border:0;border-bottom:1px solid #e7f1e7;color:#fff;font-size:.76rem;padding:4px 0}
.auto-palette-control :is(input,button):focus-visible{outline:3px solid #fff!important;outline-offset:3px}

.design-zone-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:17px 0;padding:5px;border-radius:15px;background:#e9efe9}
.design-zone-tabs button{min-height:42px;border:1px solid transparent;border-radius:11px;padding:8px 13px;background:transparent;color:#38564b;font-size:.8rem;transition:background .15s,box-shadow .15s,transform .15s}
.design-zone-tabs button:hover{background:#ffffffb5;transform:none}
.design-zone-tabs button[aria-selected=true]{background:#fffdf8;color:#173c32;border-color:#d1dfd3;box-shadow:0 3px 10px #2e58401a}
.design-zone-tabs strong{font-size:.78rem;margin:0}
.design-group-heading{margin:12px 0 15px}
.design-group-heading h3{font:400 clamp(1.5rem,2.2vw,2.1rem)/1.12 Georgia,serif;letter-spacing:-.04em}
.design-group-heading p{font-size:.81rem;max-width:67ch}
.design-live{border-radius:20px;background:#f0f3ee;box-shadow:0 14px 32px #1a38251d}
.design-live::before{content:'VISTA REAL  ·  CAMBIOS EN DIRECTO';display:block;padding:10px 15px;border-bottom:1px solid #d6e1d6;background:#f8fbf6;color:#557264;font-size:.62rem;font-weight:800;letter-spacing:.13em}
.design-live .element-toolbar{background:#f8fbf6;border-bottom:1px solid #dae4d9;padding:12px 15px}
.design-live #element-frame{height:clamp(365px,55vh,690px);background:#f6f4ee}
.design-live .element-editor{background:#fffefb;border:0;border-bottom:1px solid #e2e9df;padding:18px}
.element-editor-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.element-editor-controls .element-tool{border:1px solid #dde8dd;border-radius:14px;padding:14px;background:#fbfcf9}
.element-editor-controls .element-tool:only-child{grid-column:1/-1}
.element-tool h4{font:400 1.1rem/1.2 Georgia,serif;letter-spacing:-.025em}
.element-editor .element-chosen{padding-bottom:14px;border-bottom-color:#dbe5db}
.element-target-choices button{transition:transform .15s,background .15s}
.element-target-choices button:hover{transform:translateY(-2px)}
.element-size-main{grid-template-columns:1fr 1fr}
.element-number input[type=range]{accent-color:var(--admin-button,#315b48)}
.element-palette{gap:5px}
.element-saved{border:1px solid #d9e3d8;border-radius:14px;background:#fffdfa;padding:13px 15px;margin:15px 0}
.element-saved-row{background:#f9fbf7;border-color:#e3ebe1}
.design-color-list{gap:9px}
.design-color-row{min-height:76px;border:1px solid #d9e3d9;border-radius:13px;background:#fffefa;padding:12px 14px;box-shadow:0 3px 12px #203f2e0a}
.design-color-row:focus-within{border-color:#315947;box-shadow:0 0 0 3px #3159471c}
.design-color-controls input[type=color]{width:57px;height:49px;border-radius:10px;border:2px solid #d7e4d8;background:#fff;padding:2px}
.design-color-controls .design-hex-input{border-radius:8px;width:95px}
.design-header-choice{padding:5px;border-radius:13px;background:#edf2eb;gap:4px}
.design-header-choice button{border:0;border-radius:9px;background:transparent;padding:8px 12px;min-height:38px}
.design-header-choice button[aria-pressed=true]{background:#fff;border:1px solid #d3dfd4;color:#173d31;box-shadow:0 3px 9px #21402d1b}
.design-control-footer{color:#617767}

.cover-studio-controls{border:1px solid #d9e5da;border-radius:18px;overflow:hidden;background:#fffefa;box-shadow:0 12px 28px #24442b12}
.studio-top{background:#f6f9f4}
.studio-groups{background:#fbfdf9}
.studio-groups button,.studio-viewports button,.studio-history button{border-radius:100px}
.studio-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px;gap:6px;background:#f7f9f5}
.studio-list button{border-radius:9px;background:#fff;border-color:#e5ece3}
.studio-list button[aria-pressed=true]{background:#e8f0e8;border-color:#8cb29a;box-shadow:inset 3px 0 var(--admin-button,#315b48)}
.studio-inspector{padding:19px}
.studio-inspector h3{font:400 1.9rem/1.08 Georgia,serif}
.studio-control-section{padding:16px 0;border-top-color:#e1e9df}
.studio-control{border:1px solid #e5ece4;border-radius:10px;padding:10px;background:#fcfdfa}
.studio-control input,.studio-control select,.studio-control textarea{border-radius:7px}
.studio-color-row input[type=color]{width:65px;height:50px;padding:3px;border:1px solid #c8d9cb;border-radius:8px;background:white}
.studio-action{border-radius:100px}

.copy-module .copy-studio-head{border-bottom:0;padding:16px 0 12px}
.copy-studio-head p{max-width:62ch}
.copy-section-tabs{padding:13px 0 17px;gap:6px}
.copy-section-tabs button{border-radius:100px;padding:9px 15px}
.copy-list-panel,.copy-stage{border-radius:19px;box-shadow:0 12px 28px #17372810}
.copy-workbench{padding:24px;background:linear-gradient(160deg,#fffefb,#f5f9f3)}
.copy-module #copy-text-input{border:1px solid #b4cbb9;border-radius:13px;min-height:110px;font-size:1.05rem}
.copy-live-sample{background:#eaf3e9;padding:14px 19px}
.copy-live-sample p{font:italic 1.28rem/1.3 Georgia,serif}
.copy-entry-button{padding-top:15px;padding-bottom:15px}
.copy-entry-button[aria-pressed=true]{box-shadow:inset 4px 0 var(--admin-button,#315b48)}

/* Other content modules retain their structure and actions. */
.admin-module:not(.design-module):not(.copy-module) .editor-section{border-bottom-color:#d8e1d6}
.package-edit-card,.record-card,.project-edit-card{border:1px solid #dbe4db;border-radius:15px;background:#fffefa;box-shadow:0 5px 17px #213b2b0b}
.project-edit-card summary{border-radius:15px}
.editor-section :is(input,textarea,select):focus-visible{outline:3px solid #6f9b7a;outline-offset:2px}
.editor-section .section-title h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em}

@media(max-width:1100px){.auto-palette{grid-template-columns:1fr}.auto-palette-control{grid-template-columns:1fr}.element-editor-controls{grid-template-columns:1fr}}
@media(max-width:750px){.auto-palette{padding:19px}.design-zone-tabs{overflow:auto;flex-wrap:nowrap;scrollbar-width:thin}.design-zone-tabs button{flex:none}.design-live #element-frame{height:510px}.save-bar{padding:11px}.save-bar button{padding:11px 16px}.master-result{flex-wrap:wrap}}
@media(max-width:520px){.master-pick{width:100%}.element-size-main{grid-template-columns:1fr}.save-bar p{font-size:.7rem}.save-bar button{font-size:.77rem}}
@media(prefers-reduced-motion:reduce){.editor-shortcuts button,.design-zone-tabs button,.save-bar button,.element-target-choices button{transition:none}}
