:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#eef2f7}*{box-sizing:border-box}body{margin:0}.app-topbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;background:#111827;color:#fff;position:sticky;top:0;z-index:50}.app-topbar strong{font-size:16px}.muted{opacity:.68}.small{font-size:12px}.top-actions,.row{display:flex;gap:8px}.app-shell{display:grid;grid-template-columns:390px 1fr;min-height:calc(100vh - 58px)}.editor-panel{background:#fff;border-right:1px solid #dbe2ea;overflow:auto;height:calc(100vh - 58px);padding:10px 12px}.panel-section{padding:11px 0;border-bottom:1px solid #e5e7eb}.panel-section h2{font-size:14px;margin:0 0 9px}.panel-section label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;margin-bottom:8px}.panel-section input,.panel-section textarea,.panel-section select{width:100%;padding:8px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}.panel-section textarea{min-height:64px;resize:vertical}.panel-section .content-html-field textarea{min-height:230px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.45}.row.two>*{flex:1;min-width:0}.row.three>*{flex:1;min-width:0}.primary,.secondary,.segmented button{border:0;border-radius:8px;padding:9px 12px;font-weight:750;cursor:pointer}.primary{background:#f59e0b;color:#111827}.secondary{background:#e5e7eb;color:#111827}.wide{width:100%}.compact-action{font-size:11px;white-space:nowrap}.preview-panel{min-width:0;display:flex;flex-direction:column}.preview-toolbar{min-height:52px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;background:#f8fafc;border-bottom:1px solid #dbe2ea;flex-wrap:wrap}.preview-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.segmented{display:flex;gap:3px;padding:3px;background:#e5e7eb;border-radius:9px}.segmented button{padding:6px 9px;background:transparent;font-size:12px}.segmented button.active{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}.preview-stage{flex:1;display:flex;justify-content:center;align-items:flex-start;padding:10px;overflow:auto}.preview-stage iframe{width:100%;height:calc(100vh - 132px);border:1px solid #cbd5e1;border-radius:10px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.06);transition:width .2s;min-width:0}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.check-item{display:flex;align-items:center;gap:6px;padding:7px;border:1px solid #e5e7eb;border-radius:7px;font-size:12px}.check-item input{width:auto;margin:0}.results{display:grid;gap:6px;margin-top:8px}.result{padding:7px 9px;border-radius:7px;background:#f8fafc;font-size:12px}.result.pass{border-left:4px solid #16a34a}.result.warn{border-left:4px solid #f59e0b}.result.fail{border-left:4px solid #dc2626}.mini-card{padding:9px;border:1px solid #e5e7eb;border-radius:8px;margin-top:7px}.mini-card input,.mini-card textarea{margin-top:5px}.lock{color:#b91c1c;font-weight:700}.full-preview-overlay[hidden]{display:none}.full-preview-overlay{position:fixed;inset:0;z-index:1000;background:#0f172a;display:flex;flex-direction:column}.full-preview-bar{height:54px;flex:0 0 54px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#111827;color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}.full-preview-canvas{flex:1;min-height:0;display:flex;justify-content:center;align-items:stretch;overflow:auto;background:#dfe4ea;padding:0}.full-preview-canvas iframe{display:block;height:100%;width:100%;border:0;background:#fff}.full-preview-canvas.amp-mobile{padding:0 12px}.full-preview-canvas.amp-mobile iframe{width:min(390px,100%);max-width:390px;box-shadow:0 0 0 1px rgba(15,23,42,.18)}body.preview-open{overflow:hidden}@media(max-width:1100px){.app-shell{grid-template-columns:360px 1fr}}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.editor-panel{height:auto;border-right:0}.preview-panel{min-height:70vh}.preview-stage iframe{height:72vh}.app-topbar{height:auto;gap:8px;flex-wrap:wrap}.preview-toolbar{align-items:flex-start}.preview-toolbar-actions{justify-content:flex-start}}@media(max-width:560px){.editor-panel{padding:8px}.row.two,.row.three{flex-direction:column}.check-grid{grid-template-columns:1fr}.top-actions{width:100%}.top-actions button{flex:1}.preview-stage{padding:5px}.preview-toolbar{padding:6px}.preview-toolbar-actions{width:100%}.compact-action{flex:1}.full-preview-bar strong{font-size:13px}.full-preview-bar .primary{padding:8px 10px;font-size:12px}}
