:root{
  --ht-accent:#6d5dfc;
  --ht-accent-2:#22c7a9;
  --ht-dark:#101428;
  --ht-text:#172033;
  --ht-muted:#667085;
  --ht-soft:#f6f7fb;
  --ht-card:#ffffff;
  --ht-line:#e7eaf3;
  --ht-danger:#b42318;
  --ht-warning:#a15c07;
  --ht-ok:#027a48;
  --ht-shadow:0 24px 80px rgba(16,20,40,.12);
  --ht-radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ht-text);background:#fff;line-height:1.6}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
.ht-skip{position:absolute;left:-999px;top:auto}.ht-skip:focus{left:16px;top:16px;background:#fff;padding:12px 16px;border-radius:12px;z-index:50}
.ht-container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.ht-site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid var(--ht-line)}
.ht-nav-wrap{display:flex;align-items:center;gap:20px;min-height:74px}
.ht-brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:var(--ht-dark);letter-spacing:-.02em}.ht-brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:linear-gradient(135deg,var(--ht-accent),#8d7cff);color:#fff;box-shadow:0 12px 28px rgba(109,93,252,.28)}
.ht-nav{display:flex;gap:18px;margin-left:auto;align-items:center}.ht-nav a{font-size:14px;color:#344054}.ht-nav a:hover{color:var(--ht-accent)}.ht-nav-cta{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:999px;background:var(--ht-dark);color:#fff;font-weight:700;font-size:14px}
.ht-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 20% 10%,rgba(109,93,252,.22),transparent 34%),radial-gradient(circle at 80% 5%,rgba(34,199,169,.18),transparent 28%),linear-gradient(180deg,#fbfcff 0%,#fff 90%);padding:92px 0 56px}
.ht-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:44px;align-items:center}.ht-hero-copy h1{font-size:clamp(42px,6vw,74px);line-height:.98;letter-spacing:-.06em;margin:12px 0 22px;color:var(--ht-dark)}.ht-hero-copy p{font-size:20px;color:#4b5565;max-width:720px}.ht-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--ht-accent);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.ht-hero-actions,.ht-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.ht-hero-actions{margin-top:28px}.ht-btn{border:1px solid var(--ht-line);background:#fff;border-radius:14px;padding:11px 16px;font-weight:800;color:#232b3b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease;box-shadow:0 8px 20px rgba(16,20,40,.05)}.ht-btn:hover{transform:translateY(-1px);border-color:#cfd4e5}.ht-btn:disabled{opacity:.48;cursor:not-allowed;transform:none}.ht-btn-primary{background:linear-gradient(135deg,var(--ht-accent),#8575ff);color:#fff;border-color:transparent}.ht-btn-soft{background:#eef0ff;color:#443bd2;border-color:#dadcff}.ht-btn-ghost{background:transparent;box-shadow:none}.ht-trust-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.ht-trust-row span{padding:8px 11px;border:1px solid var(--ht-line);border-radius:999px;background:rgba(255,255,255,.78);font-size:13px;font-weight:700;color:#475467}
.ht-hero-card{background:#111827;border:1px solid rgba(255,255,255,.1);border-radius:32px;padding:20px;box-shadow:var(--ht-shadow);color:#e5e7eb}.ht-code-window{background:#0b1020;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}.ht-code-dots{display:flex;gap:7px;padding:16px;border-bottom:1px solid rgba(255,255,255,.08)}.ht-code-dots i{width:11px;height:11px;border-radius:999px;background:#9ca3af}.ht-code-window pre{margin:0;padding:22px;overflow:auto;font-size:14px;line-height:1.75}.ht-preview-mini{margin-top:16px;border-radius:22px;background:linear-gradient(135deg,#fff,#e9edff);color:#101428;padding:24px;display:grid;gap:6px}.ht-preview-mini strong{font-size:22px}.ht-preview-mini span{color:#667085}
.ht-section{padding:72px 0}.ht-section-alt{background:var(--ht-soft)}.ht-section-head{max-width:760px;text-align:center;margin-bottom:34px}.ht-section-head h2,.ht-two-col h2,.ht-page-hero h1{font-size:clamp(30px,4vw,48px);line-height:1.08;letter-spacing:-.04em;margin:10px 0 12px;color:var(--ht-dark)}.ht-section-head p,.ht-page-hero p{color:var(--ht-muted);font-size:18px}.ht-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ht-tool-card,.ht-feature-card,.ht-blog-card,.ht-template-card,.ht-faq-card,.ht-contact-card{border:1px solid var(--ht-line);border-radius:var(--ht-radius);padding:24px;background:#fff;box-shadow:0 12px 38px rgba(16,20,40,.05)}.ht-tool-card{transition:.18s ease}.ht-tool-card:hover{transform:translateY(-4px);box-shadow:var(--ht-shadow);border-color:#d5d8ff}.ht-tool-icon{width:44px;height:44px;border-radius:16px;background:#f0f1ff;display:grid;place-items:center;font-size:22px}.ht-tool-card h3,.ht-feature-card h3,.ht-blog-card h3,.ht-template-card h2{margin:16px 0 8px;color:var(--ht-dark);line-height:1.2}.ht-tool-card p,.ht-feature-card p,.ht-blog-card p,.ht-template-card p{color:var(--ht-muted);margin:0}.ht-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ht-feature-card a,.ht-blog-card a{display:inline-flex;margin-top:18px;color:var(--ht-accent);font-weight:800}.ht-two-col{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}.ht-check-list{display:grid;gap:12px}.ht-check-list span{padding:16px 18px;border-radius:16px;background:#f8f9ff;border:1px solid var(--ht-line);font-weight:700}.ht-check-list span::before{content:"✓";color:var(--ht-ok);font-weight:900;margin-right:10px}.ht-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ht-faq-card summary{cursor:pointer;font-weight:900;color:var(--ht-dark)}.ht-faq-card p{color:var(--ht-muted)}
.ht-page-hero{padding:68px 0 32px;background:linear-gradient(180deg,#f8f9ff,#fff)}.ht-page-pad{padding:36px 0 80px}.ht-editor-shell{border:1px solid var(--ht-line);border-radius:32px;background:#fff;box-shadow:var(--ht-shadow);padding:18px}.ht-editor-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 8px 18px}.ht-editor-topbar h1{font-size:clamp(28px,4vw,44px);letter-spacing:-.04em;line-height:1.05;margin:8px 0;color:var(--ht-dark)}.ht-editor-topbar p{margin:0;color:var(--ht-muted)}.ht-security-note{border:1px solid #fde68a;background:#fffbeb;border-radius:18px;padding:14px;max-width:360px}.ht-security-note strong,.ht-security-note span{display:block}.ht-security-note span{font-size:13px;color:#854d0e}.ht-toolbar{padding:10px 0 16px}.ht-mobile-tabs{display:none;gap:8px;margin:8px 0}.ht-mobile-tabs button{flex:1;border:1px solid var(--ht-line);background:#fff;border-radius:14px;padding:10px;font-weight:800}.ht-mobile-tabs .is-active{background:var(--ht-dark);color:#fff}.ht-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ht-pane{min-width:0;border:1px solid var(--ht-line);border-radius:22px;overflow:hidden;background:#fff}.ht-pane-head{min-height:48px;padding:12px 15px;border-bottom:1px solid var(--ht-line);display:flex;align-items:center;justify-content:space-between;color:#344054}.ht-pane-head span{font-size:13px;color:var(--ht-muted)}#htmlInput{display:block;width:100%;min-height:560px;border:0;resize:vertical;outline:none;padding:18px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:14px;line-height:1.65;background:#0b1020;color:#e5e7eb}#htmlPreview{width:100%;min-height:560px;border:0;background:#fff;display:block}.ht-stats,.ht-warning-inline{padding:10px 14px;border-top:1px solid var(--ht-line);font-size:13px;color:var(--ht-muted)}.ht-warning-inline{background:#fff7ed;color:#9a3412}.ht-quality-panel{margin-top:16px;border:1px solid var(--ht-line);border-radius:22px;padding:18px;background:#fbfcff;display:grid;grid-template-columns:320px 1fr;gap:18px}.ht-quality-panel h2{margin:0 0 4px;color:var(--ht-dark)}.ht-quality-panel p{margin:0;color:var(--ht-muted)}#htmlWarnings{margin:0;padding-left:22px}#htmlWarnings li{margin:5px 0}.ht-warning-danger{color:var(--ht-danger)}.ht-warning-soft{color:var(--ht-warning)}.ht-warning-ok{color:var(--ht-ok)}
.ht-simple-tool,.ht-generator{padding:38px 0 76px;display:grid;gap:14px}.ht-simple-tool textarea,.ht-generator textarea,.ht-generator input,.ht-generator select,.ht-public-form input,.ht-public-form textarea,.ht-public-form select{width:100%;border:1px solid var(--ht-line);border-radius:16px;padding:13px 14px;outline:none;background:#fff}.ht-simple-tool textarea,.ht-generator textarea{min-height:190px;font-family:"SFMono-Regular",Consolas,monospace}.ht-generator{max-width:860px}.ht-generator label,.ht-public-form label{display:grid;gap:7px;font-weight:800;color:#344054}.ht-template-card pre{max-height:220px;overflow:auto;border-radius:16px;background:#0b1020;color:#e5e7eb;padding:14px;font-size:12px}.ht-form-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}.ht-public-form{display:grid;gap:14px;border:1px solid var(--ht-line);border-radius:var(--ht-radius);padding:24px;background:#fff;box-shadow:0 12px 38px rgba(16,20,40,.05)}.ht-consent{display:flex!important;grid-template-columns:none!important;align-items:center;gap:10px!important;font-weight:600!important}.ht-consent input{width:auto!important}.ht-form-status{font-weight:800;margin:0}.ht-contact-card{display:grid;gap:10px}.ht-contact-card h2{margin:0}.ht-contact-card a{color:var(--ht-accent);font-weight:800}.ht-site-footer{background:#0b1020;color:#d7dce8;padding:52px 0 24px}.ht-footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:30px}.ht-site-footer h3{color:#fff;margin:0 0 12px}.ht-site-footer a{display:block;margin:8px 0;color:#d7dce8}.ht-footer-brand{color:#fff}.ht-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:32px;padding-top:20px;color:#aab2c5;font-size:14px}
.ht-editor-shell.is-fullscreen{position:fixed;inset:12px;z-index:100;background:#fff;overflow:auto;padding:18px}.ht-editor-shell.is-fullscreen #htmlInput,.ht-editor-shell.is-fullscreen #htmlPreview{min-height:calc(100vh - 280px)}
@media(max-width:960px){.ht-hero-grid,.ht-two-col,.ht-form-grid,.ht-quality-panel{grid-template-columns:1fr}.ht-card-grid,.ht-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-editor-topbar{display:grid}.ht-security-note{max-width:none}.ht-nav{display:none}.ht-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.ht-hero{padding:64px 0 36px}.ht-card-grid,.ht-feature-grid,.ht-faq-grid,.ht-editor-grid,.ht-footer-grid{grid-template-columns:1fr}.ht-mobile-tabs{display:flex}.ht-preview-pane{display:none}.ht-editor-shell[data-mobile-tab="preview"] .ht-editor-pane{display:none}.ht-editor-shell[data-mobile-tab="preview"] .ht-preview-pane{display:block}.ht-editor-shell[data-mobile-tab="editor"] .ht-preview-pane{display:none}.ht-nav-cta{display:none}#htmlInput,#htmlPreview{min-height:460px}.ht-toolbar .ht-btn{flex:1}.ht-editor-shell{padding:12px;border-radius:22px}.ht-hero-copy h1{font-size:42px}}


/* Frontend Studio v2 */
.fs-studio-shell{border:1px solid var(--ht-line);border-radius:32px;background:#fff;box-shadow:var(--ht-shadow);padding:18px;--fs-device-width:100%}.fs-studio-topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:12px 8px 18px}.fs-studio-topbar h1{font-size:clamp(30px,5vw,54px);line-height:1.02;letter-spacing:-.05em;margin:8px 0;color:var(--ht-dark)}.fs-studio-topbar p{margin:0;color:var(--ht-muted);max-width:860px}.fs-studio-security{max-width:380px;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:18px;padding:14px}.fs-studio-security strong,.fs-studio-security span{display:block}.fs-studio-security span{font-size:13px}.fs-toolbar,.fs-modebar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:10px 0}.fs-modebar{justify-content:space-between}.fs-segmented{display:flex;gap:6px;background:#f4f6fb;border:1px solid var(--ht-line);padding:6px;border-radius:16px}.fs-segmented button{border:0;background:transparent;padding:9px 12px;border-radius:12px;font-weight:800;color:#475467;cursor:pointer}.fs-segmented button.is-active{background:#fff;color:var(--ht-dark);box-shadow:0 8px 20px rgba(16,20,40,.08)}.fs-segmented button:disabled{opacity:.45;cursor:not-allowed}.fs-workbench{display:grid;grid-template-columns:230px minmax(320px,.88fr) minmax(380px,1.2fr) 260px;gap:14px;align-items:stretch}.fs-library-panel,.fs-code-panel,.fs-stage-panel,.fs-inspector-panel,.fs-console-panel,.fs-warning-panel{border:1px solid var(--ht-line);border-radius:22px;background:#fff;overflow:hidden;min-width:0}.fs-panel-head,.fs-stage-head{min-height:48px;padding:12px 14px;border-bottom:1px solid var(--ht-line);display:flex;align-items:center;justify-content:space-between;gap:10px}.fs-panel-head span,.fs-stage-head span{font-size:12px;color:var(--ht-muted)}.fs-panel-head button{border:0;background:#f3f4ff;color:#4338ca;border-radius:10px;padding:7px 10px;font-weight:800;cursor:pointer}.fs-panel-head-spaced{border-top:1px solid var(--ht-line);margin-top:8px}.fs-library-list{display:grid;gap:8px;padding:12px;max-height:310px;overflow:auto}.fs-library-list button{text-align:left;border:1px solid var(--ht-line);background:#fbfcff;border-radius:15px;padding:12px;cursor:pointer}.fs-library-list button:hover{border-color:#cfd4ff;background:#f7f8ff}.fs-library-list span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ht-accent);font-weight:900}.fs-library-list strong{display:block;margin-top:4px;color:var(--ht-dark)}.fs-editor-tabs{display:flex;gap:8px;padding:10px;border-bottom:1px solid var(--ht-line);background:#f8f9ff}.fs-editor-tabs button{flex:1;border:1px solid transparent;background:transparent;border-radius:12px;padding:9px;font-weight:900;color:#667085;cursor:pointer}.fs-editor-tabs button.is-active{background:#111827;color:#fff}.fs-editor-tabs button:disabled{opacity:.45;cursor:not-allowed}.fs-editor-stack{position:relative}.fs-code-editor{display:none}.fs-code-editor.is-active{display:block}.fs-code-editor span{position:absolute;right:16px;top:66px;z-index:2;font-size:11px;color:#94a3b8;font-weight:900}.fs-code-editor textarea{display:block;width:100%;min-height:610px;border:0;resize:vertical;outline:none;padding:18px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.65;background:#0b1020;color:#e5e7eb}.fs-statusbar{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--ht-line);font-size:12px;color:var(--ht-muted)}.fs-stage-panel{background:#f5f7fb}.fs-stage-wrap{height:612px;padding:16px;display:grid;place-items:start center;overflow:auto}.fs-stage-wrap iframe{width:var(--fs-device-width);max-width:100%;height:100%;min-height:560px;border:1px solid #dde2ee;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(16,20,40,.08)}#studioDesign{display:none}.fs-stage-note{border-top:1px solid var(--ht-line);padding:10px 14px;font-size:12px;color:#9a3412;background:#fff7ed}.fs-inspector-fields{display:grid;gap:10px;padding:12px;max-height:610px;overflow:auto}.fs-inspector-fields label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#344054}.fs-inspector-fields input,.fs-inspector-fields textarea{width:100%;border:1px solid var(--ht-line);border-radius:12px;padding:9px 10px;outline:none}.fs-inspector-fields input[type=color]{height:40px;padding:4px}.fs-bottom-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.fs-console-list{min-height:150px;max-height:220px;overflow:auto;background:#0b1020;color:#dbeafe;padding:12px;font-family:"SFMono-Regular",Consolas,monospace;font-size:12px}.fs-console-empty{color:#94a3b8}.fs-console-row{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.06)}.fs-console-row strong{text-transform:uppercase}.fs-console-error strong{color:#fca5a5}.fs-console-warn strong{color:#fde68a}.fs-console-log strong{color:#93c5fd}.fs-warning-panel ul{margin:0;padding:16px 16px 16px 36px;min-height:150px}.fs-studio-shell[data-mode=code] .fs-library-panel,.fs-studio-shell[data-mode=code] .fs-stage-panel,.fs-studio-shell[data-mode=code] .fs-inspector-panel{display:none}.fs-studio-shell[data-mode=code] .fs-workbench{grid-template-columns:1fr}.fs-studio-shell[data-mode=code] .fs-code-editor textarea{min-height:720px}.fs-studio-shell[data-mode=preview] .fs-library-panel,.fs-studio-shell[data-mode=preview] .fs-code-panel,.fs-studio-shell[data-mode=preview] .fs-inspector-panel{display:none}.fs-studio-shell[data-mode=preview] .fs-workbench{grid-template-columns:1fr}.fs-studio-shell[data-mode=preview] .fs-stage-wrap{height:760px}.fs-studio-shell[data-mode=design] .fs-library-panel,.fs-studio-shell[data-mode=design] .fs-code-panel{display:none}.fs-studio-shell[data-mode=design] .fs-workbench{grid-template-columns:minmax(0,1fr) 300px}.fs-studio-shell[data-mode=design] #studioPreview{display:none}.fs-studio-shell[data-mode=design] #studioDesign{display:block}.fs-studio-shell[data-mode=split] #studioPreview{display:block}.fs-studio-shell.is-fullscreen{position:fixed;inset:12px;z-index:100;background:#fff;overflow:auto;padding:18px}.fs-studio-shell.is-fullscreen .fs-stage-wrap{height:calc(100vh - 310px)}.fs-studio-shell.is-fullscreen .fs-code-editor textarea{min-height:calc(100vh - 312px)}.ht-code-utility-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ht-code-utility-grid textarea{min-height:360px}.ht-tool-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:1240px){.fs-workbench{grid-template-columns:220px minmax(300px,1fr) minmax(360px,1fr)}.fs-inspector-panel{grid-column:1/-1}.fs-inspector-fields{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none}.fs-inspector-fields label:first-child{grid-column:span 2}}
@media(max-width:960px){.fs-studio-topbar{display:grid}.fs-studio-security{max-width:none}.fs-workbench{grid-template-columns:1fr}.fs-library-list{max-height:230px}.fs-bottom-panels{grid-template-columns:1fr}.fs-inspector-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fs-modebar{display:grid}.fs-segmented{overflow:auto}.ht-code-utility-grid{grid-template-columns:1fr}}
@media(max-width:640px){.fs-studio-shell{padding:12px;border-radius:22px}.fs-toolbar .ht-btn{flex:1}.fs-inspector-fields{grid-template-columns:1fr}.fs-stage-wrap{height:520px;padding:10px}.fs-stage-wrap iframe{min-height:480px}.fs-code-editor textarea{min-height:460px}.fs-bottom-panels{display:grid}}

/* Frontend Studio v2 */
.dw-page-hero{background:radial-gradient(circle at 18% 8%,rgba(109,93,252,.22),transparent 30%),linear-gradient(180deg,#f7f8ff,#fff)}
.dw-hero-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dw-hero-preview div{border:1px solid var(--ht-line);border-radius:24px;background:#fff;padding:22px;box-shadow:0 12px 38px rgba(16,20,40,.06)}
.dw-hero-preview strong{display:block;font-size:24px;color:var(--ht-dark)}
.dw-hero-preview span{color:var(--ht-muted)}
.dw-studio-shell{border:1px solid var(--ht-line);border-radius:32px;background:#fff;box-shadow:var(--ht-shadow);padding:16px;overflow:hidden}
.dw-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:12px 8px 18px}
.dw-topbar h2{font-size:clamp(28px,4vw,46px);line-height:1.05;letter-spacing:-.04em;margin:8px 0;color:var(--ht-dark)}
.dw-topbar p{margin:0;color:var(--ht-muted)}
.dw-status-card{max-width:420px;border:1px solid #fde68a;background:#fffbeb;border-radius:18px;padding:14px;color:#854d0e}
.dw-status-card strong,.dw-status-card span{display:block}.dw-status-card span{font-size:13px}
.dw-modebar,.dw-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--ht-line);padding:12px 0}
.dw-modebar button,.dw-file-tabs button{border:1px solid var(--ht-line);background:#fff;border-radius:13px;padding:9px 12px;font-weight:800;cursor:pointer;color:#344054}
.dw-modebar button.is-active,.dw-file-tabs button.is-active{background:var(--ht-dark);color:#fff;border-color:var(--ht-dark)}
.dw-mode-spacer{flex:1}.dw-toggle{display:inline-flex;align-items:center;gap:7px;font-weight:800;color:#344054;margin-left:auto}
.dw-workspace{display:grid;grid-template-columns:210px minmax(280px,.85fr) minmax(360px,1.15fr) 260px;gap:12px;min-height:700px}
.dw-left-panel,.dw-right-panel,.dw-code-panel,.dw-canvas-panel{border:1px solid var(--ht-line);border-radius:22px;background:#fbfcff;min-width:0;overflow:hidden}
.dw-left-panel,.dw-right-panel{padding:14px;overflow:auto}.dw-left-panel h3,.dw-right-panel h3{margin:0 0 10px;color:var(--ht-dark)}
.dw-component-list,.dw-template-list{display:grid;gap:8px;margin-bottom:18px}.dw-component,.dw-template{width:100%;text-align:left;border:1px solid var(--ht-line);border-radius:16px;background:#fff;padding:12px;cursor:pointer;display:grid;gap:2px;box-shadow:0 8px 20px rgba(16,20,40,.04)}
.dw-component span{font-size:20px}.dw-component strong,.dw-template strong{color:#1d2739}.dw-component small,.dw-template small{color:var(--ht-muted);line-height:1.35}
.dw-file-tabs{display:flex;gap:8px;border-bottom:1px solid var(--ht-line);padding:10px;background:#fff;overflow:auto}.dw-editor-stack{height:600px;position:relative}.dw-editor,.dw-console{display:none;height:100%}.dw-editor.is-active,.dw-console.is-active{display:grid}.dw-editor span{padding:9px 12px;border-bottom:1px solid var(--ht-line);font-weight:900;color:#344054;background:#fbfcff}.dw-editor textarea{width:100%;height:100%;min-height:0;border:0;outline:none;resize:none;background:#0b1020;color:#e5e7eb;padding:16px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.6}.dw-code-stats{border-top:1px solid var(--ht-line);padding:10px 12px;color:var(--ht-muted);font-size:13px;background:#fff}.dw-console{background:#0b1020;color:#e5e7eb}.dw-console-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.1);padding:10px 12px}.dw-console-head button{border:1px solid rgba(255,255,255,.18);border-radius:10px;background:transparent;color:#fff;padding:6px 9px}.dw-console ul{list-style:none;margin:0;padding:10px;overflow:auto;font-family:"SFMono-Regular",Consolas,monospace;font-size:12px;line-height:1.55}.dw-console li{border-bottom:1px solid rgba(255,255,255,.06);padding:5px 0}.dw-console .muted{color:#94a3b8}.dw-log-error,.dw-log-runtime{color:#fca5a5}.dw-log-warn{color:#fde68a}.dw-log-info{color:#93c5fd}
.dw-canvas-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--ht-line);background:#fff}.dw-canvas-head span{font-size:12px;color:var(--ht-muted)}.dw-canvas-wrap{height:650px;padding:14px;background:linear-gradient(45deg,#f3f4f6 25%,transparent 25%),linear-gradient(-45deg,#f3f4f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f3f4f6 75%),linear-gradient(-45deg,transparent 75%,#f3f4f6 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.dw-canvas-wrap iframe{display:block;width:100%;height:100%;margin:auto;border:1px solid #d7dce8;border-radius:18px;background:#fff;box-shadow:0 18px 50px rgba(16,20,40,.12)}#dwDesignFrame{display:none}.dw-studio-shell[data-view="design"] #dwDesignFrame,.dw-studio-shell[data-view="split"] #dwDesignFrame{display:block}.dw-studio-shell[data-view="design"] #dwPreviewFrame,.dw-studio-shell[data-view="split"] #dwPreviewFrame{display:none}.dw-studio-shell[data-view="preview"] #dwDesignFrame{display:none}.dw-studio-shell[data-view="preview"] #dwPreviewFrame{display:block}.dw-studio-shell[data-device="tablet"] .dw-canvas-wrap iframe{max-width:768px}.dw-studio-shell[data-device="mobile"] .dw-canvas-wrap iframe{max-width:390px}
.dw-right-panel label{display:grid;gap:6px;font-size:13px;font-weight:800;color:#344054;margin-bottom:10px}.dw-right-panel input,.dw-right-panel textarea,.dw-right-panel select{width:100%;border:1px solid var(--ht-line);border-radius:12px;padding:9px 10px;background:#fff}.dw-right-panel textarea{min-height:74px;resize:vertical}.dw-prop-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dw-right-panel hr{border:0;border-top:1px solid var(--ht-line);margin:16px 0}.dw-warning-list{margin:0;padding-left:18px;font-size:13px}.dw-warning-danger{color:var(--ht-danger)}.dw-warning-soft{color:var(--ht-warning)}.dw-warning-ok{color:var(--ht-ok)}
.dw-studio-shell[data-view="code"] .dw-left-panel,.dw-studio-shell[data-view="code"] .dw-canvas-panel,.dw-studio-shell[data-view="code"] .dw-right-panel{display:none}.dw-studio-shell[data-view="code"] .dw-workspace{grid-template-columns:1fr}.dw-studio-shell[data-view="code"] .dw-editor-stack{height:720px}.dw-studio-shell[data-view="design"] .dw-code-panel{display:none}.dw-studio-shell[data-view="design"] .dw-workspace{grid-template-columns:220px minmax(420px,1fr) 280px}.dw-studio-shell[data-view="preview"] .dw-left-panel,.dw-studio-shell[data-view="preview"] .dw-code-panel,.dw-studio-shell[data-view="preview"] .dw-right-panel{display:none}.dw-studio-shell[data-view="preview"] .dw-workspace{grid-template-columns:1fr}.dw-studio-shell[data-view="preview"] .dw-canvas-wrap{height:760px}
@media(max-width:1180px){.dw-workspace{grid-template-columns:190px 1fr 1fr}.dw-right-panel{grid-column:1/-1}.dw-topbar{display:grid}.dw-status-card{max-width:none}}
@media(max-width:900px){.dw-workspace,.dw-studio-shell[data-view="design"] .dw-workspace{grid-template-columns:1fr}.dw-left-panel{max-height:260px}.dw-editor-stack,.dw-canvas-wrap{height:520px}.dw-mode-spacer{display:none}.dw-toggle{margin-left:0}.dw-topbar{padding-inline:0}.dw-status-card{font-size:14px}}
@media(max-width:620px){.dw-hero-preview{grid-template-columns:1fr}.dw-toolbar .ht-btn,.dw-modebar button{flex:1}.dw-studio-shell{padding:10px;border-radius:22px}.dw-canvas-wrap{padding:8px;height:480px}.dw-right-panel{padding:12px}.dw-prop-grid{grid-template-columns:1fr}}
