.ed-shell { --ed-ink:#292c2d; --ed-muted:#777b7a; --ed-line:#e0e3e0; --ed-accent:#4c5c4f; min-height:100vh; background:#f4f5f2; color:var(--ed-ink); font-family:Arial,Helvetica,sans-serif; font-size:13px; }
.ed-shell *, .ed-shell *::before, .ed-shell *::after { box-sizing:border-box; }
.ed-shell button, .ed-shell input, .ed-shell textarea, .ed-shell select { font:inherit; }
.ed-shell button { border:1px solid var(--ed-line); border-radius:7px; padding:8px 11px; background:#fff; color:inherit; cursor:pointer; }
.ed-shell button:hover:not(:disabled) { background:#eef1eb; border-color:#aeb7aa; }
.ed-shell button:disabled { opacity:.32; cursor:default; }
.ed-shell button:focus-visible, .ed-shell a:focus-visible, .ed-shell input:focus-visible, .ed-shell textarea:focus-visible, .ed-shell select:focus-visible { outline:2px solid var(--ed-accent); outline-offset:3px; }
.ed-shell a { color:inherit; }
.ed-shell .ed-primary { background:var(--ed-accent); color:white; border-color:var(--ed-accent); }
.ed-shell .ed-primary:hover { background:#3b493f; color:white; }
.ed-toolbar { position:relative; z-index:3; display:flex; align-items:center; gap:7px; padding:15px 22px; background:#fff; border-bottom:1px solid var(--ed-line); }
.ed-back { display:flex; align-items:center; gap:8px; text-decoration:none; font-size:13px; white-space:nowrap; margin-right:4px; }
.ed-toolbar-divider { height:22px; width:1px; background:var(--ed-line); margin:0 8px; }
.ed-toolbar-spacer { flex:1; }
.ed-page-label select { max-width:190px; padding:9px 30px 9px 10px; background:#f4f5f2; border:1px solid var(--ed-line); border-radius:7px; color:inherit; cursor:pointer; }
.ed-workspace { display:grid; grid-template-columns:214px minmax(300px,1fr) 246px; min-height:calc(100vh - 69px); }
.ed-panel { padding:24px 17px; background:#fff; }
.ed-library { border-right:1px solid var(--ed-line); }
.ed-layers { border-left:1px solid var(--ed-line); }
.ed-panel-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ed-panel-heading h2 { font-size:15px; font-weight:600; margin:0; letter-spacing:-.2px; }
.ed-panel-heading>span { color:var(--ed-muted); font-size:12px; background:#f2f3f0; border-radius:12px; min-width:23px; text-align:center; padding:3px 7px; }
.ed-panel-caption { font-size:11px; line-height:1.6; color:var(--ed-muted); margin:0 0 17px; }
.ed-shell .ed-upload { width:100%; padding:11px 7px; border-style:dashed; background:#f8f9f6; }
.ed-file-note { font-size:10px; line-height:1.5; color:var(--ed-muted); margin:8px 0 22px; }
.ed-assets-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 9px; }
.ed-shell .ed-asset { padding:0; border:0; background:transparent; border-radius:0; min-width:0; text-align:left; }
.ed-asset-image { display:flex; align-items:center; justify-content:center; height:83px; padding:7px; border:1px solid var(--ed-line); border-radius:6px; background-color:#fdfdfb; background-image:linear-gradient(45deg,#ebeeea 25%,transparent 25%),linear-gradient(-45deg,#ebeeea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ebeeea 75%),linear-gradient(-45deg,transparent 75%,#ebeeea 75%); background-size:12px 12px; background-position:0 0,0 6px,6px -6px,-6px 0; }
.ed-asset-image img { max-width:100%; max-height:100%; object-fit:contain; }
.ed-asset-name { display:block; margin-top:6px; font-size:10px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ed-shell .ed-add-text { margin-top:22px; width:100%; }
.ed-library-empty { grid-column:1/-1; color:var(--ed-muted); font-size:12px; line-height:1.7; }
.ed-main { padding:31px 32px 25px; min-width:0; display:flex; flex-direction:column; }
.ed-canvas-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
.ed-eyebrow { display:block; font-size:9px; letter-spacing:1.8px; color:var(--ed-muted); margin-bottom:7px; }
.ed-canvas-heading h1 { font-size:20px; letter-spacing:-.7px; font-weight:500; margin:0; line-height:1.3; }
.ed-page-kind { font-size:10px; color:var(--ed-muted); white-space:nowrap; border:1px solid var(--ed-line); border-radius:20px; padding:5px 9px; }
.ed-canvas-area { flex:1; min-height:270px; display:flex; align-items:center; justify-content:center; padding:22px 8px 35px; }
.ed-stage { position:relative; width:100%; max-width:1200px; container-type:inline-size; background:#fff; overflow:hidden; isolation:isolate; box-shadow:0 8px 36px #303e2810,0 0 0 1px #dfe2dd; touch-action:none; }
.ed-stage[data-canvas] { user-select:none; }
.ed-stage[data-canvas]:focus { outline:none; box-shadow:0 8px 36px #303e2810,0 0 0 2px #ccd4c8; }
.ed-element { position:absolute; transform-origin:center center; display:flex; align-items:center; justify-content:center; }
.ed-element img { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; user-select:none; }
.ed-element[data-element-id] { cursor:move; }
.ed-element.ed-locked { cursor:default; pointer-events:none; }
.ed-text-content { width:100%; text-align:center; line-height:1.25; white-space:pre-wrap; overflow-wrap:break-word; font-family:Georgia,serif; pointer-events:none; }
.ed-selection-border { position:absolute; inset:0; border:1.5px solid var(--ed-accent,#4c5c4f); pointer-events:none; }
.ed-element[data-selected="false"] .ed-selection-border, .ed-element[data-selected="false"] .ed-resize-handle, .ed-element[data-selected="false"] .ed-rotate-handle, .ed-element.ed-locked .ed-resize-handle, .ed-element.ed-locked .ed-rotate-handle { display:none; }
.ed-shell .ed-resize-handle, .ed-shell .ed-rotate-handle { position:absolute; width:15px; height:15px; min-height:0; padding:0; border:2px solid var(--ed-accent); border-radius:2px; background:#fff; box-shadow:0 1px 4px #0002; touch-action:none; z-index:4; }
.ed-shell .ed-resize-handle { bottom:-7px; right:-7px; cursor:nwse-resize; }
.ed-shell .ed-rotate-handle { top:-30px; left:calc(50% - 7.5px); border-radius:50%; cursor:grab; }
.ed-rotate-handle::after { content:''; position:absolute; left:5px; top:13px; height:15px; width:1px; background:var(--ed-accent); pointer-events:none; }
.ed-gesturing .ed-rotate-handle { cursor:grabbing; }
.ed-canvas-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:20px; color:#9da59c; text-align:center; pointer-events:none; }
.ed-canvas-empty span { font-family:Georgia,serif; font-size:clamp(15px,2.4cqw,28px); }
.ed-canvas-empty small { font-size:clamp(9px,1.3cqw,12px); }
.ed-canvas-footer { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; padding-top:16px; border-top:1px solid var(--ed-line); font-size:10px; color:var(--ed-muted); line-height:1.5; }
.ed-status { text-align:right; }
.ed-layer-list { list-style:none; padding:0; margin:0; }
.ed-layer { position:relative; border:1px solid transparent; border-bottom-color:#edefeb; border-radius:5px; padding:5px; margin-bottom:5px; background:#fff; }
.ed-layer.ed-is-selected { background:#f0f3ed; border-color:#b9c5b4; }
.ed-layer.ed-is-hidden .ed-layer-select { opacity:.45; }
.ed-shell .ed-layer-select { border:0; background:transparent; display:flex; align-items:center; gap:9px; text-align:left; padding:4px 0; width:100%; min-width:0; }
.ed-layer-select>span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; }
.ed-layer-thumb { display:flex; align-items:center; justify-content:center; width:31px; height:31px; flex:none; background:#f3f4f0; border:1px solid var(--ed-line); border-radius:3px; font-family:Georgia,serif; font-size:18px; }
.ed-layer-thumb img { max-width:100%; max-height:100%; object-fit:contain; }
.ed-layer-controls { display:flex; justify-content:flex-end; gap:3px; padding:0 0 1px; }
.ed-shell .ed-layer-controls button { font-size:12px; border:0; background:transparent; width:26px; height:23px; min-width:0; padding:0; border-radius:3px; color:#667061; }
.ed-shell .ed-layer-controls button[aria-pressed="true"] { background:#e1e6dc; }
.ed-layer-controls svg { display:block; width:14px; height:14px; margin:auto; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ed-layer-empty { color:var(--ed-muted); font-size:12px; line-height:1.6; padding:12px 0; }
.ed-layer.ed-dragging-layer { opacity:.4; }
.ed-layer.ed-drop-before::before, .ed-layer.ed-drop-after::after { content:''; position:absolute; left:0; right:0; height:2px; background:var(--ed-accent); }
.ed-layer.ed-drop-before::before { top:-4px; }
.ed-layer.ed-drop-after::after { bottom:-4px; }
.ed-inspector { margin-top:25px; padding-top:20px; border-top:1px solid var(--ed-line); }
.ed-inspector h3 { font-size:11px; font-weight:600; margin:0 0 15px; }
.ed-inspector label, .ed-dialog label { display:block; font-size:10px; color:var(--ed-muted); margin-bottom:13px; }
.ed-inspector input, .ed-inspector textarea, .ed-dialog input { display:block; width:100%; margin-top:6px; padding:9px; border:1px solid var(--ed-line); background:#fafbf8; border-radius:5px; color:var(--ed-ink); resize:vertical; }
.ed-inspector textarea { line-height:1.5; }
.ed-shell .ed-delete { color:#85534e; font-size:11px; width:100%; border-color:#eadad6; }
.ed-inspector p, .ed-inspector-empty { font-size:10px; color:var(--ed-muted); line-height:1.6; }
.ed-inspector-empty { padding-top:22px; margin-top:24px; border-top:1px solid var(--ed-line); }
.ed-missing { font-size:10px; color:#888; }
.ed-mobile-tabs { display:none; }
.ed-hidden-input { display:none; }
.ed-modal-overlay { position:fixed; inset:0; z-index:50; background:#20272080; display:flex; align-items:center; justify-content:center; padding:30px; overflow:auto; }
.ed-dialog { width:370px; max-width:100%; background:#fff; border-radius:12px; padding:28px; box-shadow:0 30px 90px #0003; }
.ed-dialog h2 { font-size:20px; font-weight:500; margin:0 0 23px; letter-spacing:-.6px; }
.ed-dialog p { font-size:12px; line-height:1.7; color:var(--ed-muted); margin:0 0 24px; }
.ed-dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
.ed-preview-dialog { width:min(1100px,95vw); max-height:94vh; overflow:auto; background:#f4f5f2; border-radius:10px; padding:22px; }
.ed-preview-dialog header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.ed-preview-dialog header>div:last-child { display:flex; align-items:center; gap:15px; }
.ed-preview-dialog header button { font-size:24px; padding:0; width:34px; height:34px; }
.ed-preview-dialog h2 { font-weight:500; font-size:18px; margin:0; }
.ed-preview-story { font-size:11px; text-decoration:none; }
.ed-preview-dialog>p { margin:19px 0 0; font-size:11px; color:var(--ed-muted); }
.ed-preview-stage { box-shadow:none; max-width:none; touch-action:pan-y; }
.ed-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1450px) { .ed-workspace { grid-template-columns:240px minmax(300px,1fr) 270px; } .ed-main { padding:38px 45px 30px; } .ed-asset-image { height:100px; } }
@media(max-width:1120px) { .ed-toolbar { padding:12px 15px; gap:5px; flex-wrap:wrap; } .ed-toolbar button { padding:8px; } .ed-optional { display:none; } .ed-workspace { grid-template-columns:175px minmax(240px,1fr) 205px; } .ed-panel { padding:21px 12px; } .ed-main { padding:24px 20px 20px; } .ed-asset-image { height:68px; } .ed-page-kind { display:none; } .ed-toolbar-divider { margin:0 3px; } }
@media(max-width:850px) { .ed-toolbar { padding:12px; } .ed-back { flex-basis:100%; margin-bottom:7px; font-size:12px; } .ed-toolbar-divider { display:none; } .ed-page-label { flex:1; } .ed-page-label select { width:100%; max-width:none; } .ed-toolbar-spacer { display:none; } .ed-toolbar [data-action="rename-page"] { margin-right:auto; } .ed-toolbar [data-action="preview"] { margin-left:auto; } .ed-mobile-tabs { display:flex; gap:5px; background:#fff; padding:9px 12px; border-bottom:1px solid var(--ed-line); } .ed-mobile-tabs button { flex:1; border:0; background:#f2f4ef; color:var(--ed-muted); font-size:12px; } .ed-mobile-tabs button[aria-pressed="true"] { background:#dfe6d9; color:var(--ed-ink); } .ed-workspace { grid-template-columns:1fr; min-height:0; } .ed-main { grid-row:1; min-height:400px; padding:24px 20px 18px; } .ed-canvas-area { min-height:0; padding:10px 0 25px; } .ed-canvas-heading { margin-bottom:12px; } .ed-canvas-heading h1 { font-size:19px; } .ed-canvas-footer { font-size:10px; flex-direction:column; gap:6px; } .ed-status { text-align:left; } .ed-library,.ed-layers { display:none; border:0; border-top:1px solid var(--ed-line); padding:22px 20px; } .ed-shell[data-mobile-panel="assets"] .ed-library,.ed-shell[data-mobile-panel="layers"] .ed-layers { display:block; } .ed-assets-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .ed-asset-image { height:85px; } .ed-layer-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .ed-inspector { max-width:450px; } .ed-modal-overlay { padding:15px; } .ed-preview-dialog { padding:17px; } .ed-preview-dialog header { gap:10px; } .ed-preview-dialog header>div:last-child { gap:9px; } .ed-preview-story { font-size:9px; max-width:95px; line-height:1.6; } }
@media(max-width:480px) { .ed-toolbar [data-action="new-page"] { font-size:11px; } .ed-toolbar [data-action="rename-page"] { font-size:11px; } .ed-toolbar button { padding:7px 9px; } .ed-main { padding:20px 15px 18px; min-height:330px; } .ed-assets-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .ed-layer-list { grid-template-columns:1fr; } .ed-layer { padding:6px 8px; } .ed-layer-controls { position:absolute; right:5px; bottom:10px; } .ed-layer-select>span:last-child { max-width:calc(100% - 143px); } .ed-layer-select { min-height:38px; } .ed-shell .ed-resize-handle, .ed-shell .ed-rotate-handle { width:20px; height:20px; } .ed-shell .ed-resize-handle { right:-10px; bottom:-10px; } .ed-shell .ed-rotate-handle { left:calc(50% - 10px); top:-34px; } .ed-rotate-handle::after { left:7px; top:17px; } }
@media(prefers-reduced-motion:reduce) { .ed-shell * { scroll-behavior:auto; } }
