/* ════════════════════════════════════════
   onHTML.com v2.0 — Main Stylesheet
   ════════════════════════════════════════ */

:root {
  --bg-0:    #0d0d10;
  --bg-1:    #141417;
  --bg-2:    #1c1c22;
  --bg-3:    #242432;
  --bg-4:    #2e2e3e;
  --bg-5:    #383850;
  --border:  #30304a;
  --border2: #3e3e58;
  --text-1:  #e4e4f2;
  --text-2:  #8888aa;
  --text-3:  #4e4e6e;
  --accent:  #7c6af7;
  --accent-h:#9882ff;
  --green:   #3ecf8e;
  --red:     #ff5f6d;
  --yellow:  #f7c948;
  --blue:    #38bdf8;
  --header-h:   52px;
  --statusbar-h: 22px;
  --sidebar-w:   48px;
  --tool-w:      290px;
  --radius:   6px;
  --radius-lg: 10px;
  --font-ui:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:'Cascadia Code','Fira Code','Consolas','Courier New',monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,.5);
}

/* ── LIGHT MODE ── */
body.light {
  --bg-0:   #f0f0f6;
  --bg-1:   #ffffff;
  --bg-2:   #f5f5fb;
  --bg-3:   #eaeaf4;
  --bg-4:   #e0e0ee;
  --bg-5:   #d4d4e8;
  --border: #d0d0e8;
  --border2:#c0c0d8;
  --text-1: #1a1a30;
  --text-2: #5a5a7a;
  --text-3: #9898b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; font-family: var(--font-ui); background: var(--bg-0); color: var(--text-1); font-size: 13px; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ════ ACCENT LINE ════ */
#accent-line {
  height: 2px;
  background: linear-gradient(90deg, #7c6af7, #3ecf8e, #f7c948, #ff5f6d, #38bdf8, #7c6af7);
  background-size: 400% 100%;
  animation: accentShift 8s linear infinite;
  flex-shrink: 0;
}
@keyframes accentShift {
  0%   { background-position: 0% 0; }
  100% { background-position: -400% 0; }
}

/* ════ HEADER ════ */
#header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
  padding: 0 10px 0 12px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
  user-select: none;
}

.hd-left  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.hd-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* Logo */
.logo { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; cursor: default; }
.lo-angle { color: var(--text-3); font-size: 15px; font-weight: 400; }
.lo-on    { color: var(--accent); }
.lo-html  { color: var(--text-1); }

/* Editor Tabs */
.editor-tabs { display: flex; gap: 2px; background: var(--bg-2); border-radius: var(--radius); padding: 3px; border: 1px solid var(--border); }
.tab-btn {
  background: transparent; border: none; color: var(--text-2);
  padding: 4px 14px; border-radius: 4px; cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all .15s;
  font-family: var(--font-mono); letter-spacing: .3px;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { background: var(--bg-4); color: var(--text-1); box-shadow: var(--shadow-sm); }
.tab-btn[data-tab="html"].active { color: #f28c7a; }
.tab-btn[data-tab="css"].active  { color: #56c2c2; }
.tab-btn[data-tab="js"].active   { color: var(--yellow); }

/* Header Buttons */
.hd-actions { display: flex; gap: 5px; }
.hd-btn {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-1); padding: 5px 11px; border-radius: var(--radius);
  cursor: pointer; font-size: 11.5px; font-weight: 600;
  transition: all .15s; white-space: nowrap; font-family: var(--font-ui);
}
.hd-btn:hover { background: var(--bg-4); border-color: var(--border2); }
.hd-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hd-btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.hd-btn.danger  { background: var(--red); border-color: var(--red); color: #fff; }
.hd-btn.danger:hover { opacity: .85; }
.icon-btn { padding: 5px 9px; }

/* Language select */
#lang-switcher {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-1); padding: 5px 8px; border-radius: var(--radius);
  cursor: pointer; font-size: 11.5px; outline: none;
}

/* Auto-run toggle (custom checkbox) */
.autorun-label {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 11px; color: var(--text-2); user-select: none;
}
.autorun-label input { display: none; }
.autorun-track {
  width: 28px; height: 15px; background: var(--bg-4); border-radius: 8px;
  position: relative; transition: background .2s; border: 1px solid var(--border);
}
.autorun-thumb {
  position: absolute; top: 1px; left: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text-3); transition: all .2s;
}
.autorun-label input:checked ~ .autorun-track { background: var(--accent); border-color: var(--accent); }
.autorun-label input:checked ~ .autorun-track .autorun-thumb { transform: translateX(13px); background: #fff; }

/* ── 728×90 Ad ── */
.ad-728 {
  flex: 1; max-width: 728px; height: 44px;
  background: var(--bg-2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 1;
}
.ad-placeholder {
  display: flex; align-items: center; gap: 10px;
  pointer-events: none; user-select: none;
}
.ad-tag {
  background: var(--bg-4); border: 1px solid var(--border2);
  font-size: 8px; font-weight: 800; letter-spacing: 1.5px;
  padding: 2px 5px; border-radius: 3px; color: var(--text-3);
}
.ad-size { font-size: 13px; font-weight: 700; color: var(--text-2); }
.ad-sep  { color: var(--text-3); }
.ad-cta  { font-size: 11px; color: var(--text-3); }

/* ── Tagline ── */
.tagline {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  pointer-events: none; overflow: hidden;
}
.tl-main {
  font-size: 13.5px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; letter-spacing: -.1px;
}
.tl-hl {
  background: linear-gradient(90deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tl-sub {
  font-size: 10.5px; color: var(--text-3);
  white-space: nowrap; letter-spacing: .1px;
}
@media (max-width: 1100px) { .tl-sub { display: none; } }
@media (max-width: 860px)  { .tagline { display: none; } }

/* ── Legacy ad-728 (unused but kept for future sponsor) ── */
.ad-728 { flex:1; max-width:728px; display:flex; align-items:center; justify-content:center; }

/* ════ APP LAYOUT ════ */
#app {
  display: flex;
  height: calc(100vh - var(--header-h) - var(--statusbar-h) - 2px);
  overflow: hidden;
}

/* ════ SIDEBAR ════ */
#sidebar {
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0; gap: 3px; flex-shrink: 0; z-index: 10;
}

.sb-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; color: var(--text-2);
  position: relative;
}
.sb-btn:hover  { background: var(--bg-3); border-color: var(--border); color: var(--text-1); }
.sb-btn.active { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 0 12px rgba(124,106,247,.4); }

/* CSS tooltip on hover */
.sb-btn::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  background: var(--bg-4); border: 1px solid var(--border2);
  color: var(--text-1); font-size: 11px; white-space: nowrap;
  padding: 4px 9px; border-radius: var(--radius);
  opacity: 0; pointer-events: none; transition: opacity .15s;
  z-index: 200; box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
}
.sb-btn:hover::after { opacity: 1; }

/* ════ TOOL PANEL ════ */
#tool-panel {
  width: var(--tool-w); background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden; flex-shrink: 0;
  transition: width .22s cubic-bezier(.4,0,.2,1);
}
#tool-panel.closed { width: 0; }

#tool-panel-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--bg-1);
}
#tool-panel-title { font-size: 13px; font-weight: 700; color: var(--text-1); }
#tool-close {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; font-size: 14px; padding: 2px 6px;
  border-radius: 4px; transition: all .15s; line-height: 1;
}
#tool-close:hover { background: var(--bg-4); color: var(--red); }

#tool-content {
  padding: 14px; overflow-y: auto; flex: 1; font-size: 12.5px;
}

/* ─ Tool internals ─ */
.tool-title { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.tool-row   { margin-bottom: 11px; }
.tool-row label { display: block; font-size: 10.5px; color: var(--text-2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.tool-row input[type=range]  { width: 100%; accent-color: var(--accent); height: 4px; cursor: pointer; }
.tool-row input[type=color]  { width: 48px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: none; padding: 2px; }
.tool-row input[type=text],
.tool-row input[type=number],
.tool-row textarea,
.tool-row select {
  width: 100%; padding: 6px 9px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-1); font-size: 12px; font-family: var(--font-mono);
  outline: none; transition: border-color .15s;
}
.tool-row input:focus, .tool-row textarea:focus { border-color: var(--accent); }
.tool-row textarea { min-height: 80px; resize: vertical; font-family: var(--font-mono); }
.tool-row select { font-family: var(--font-ui); }

.tool-preview-box {
  width: 100%; height: 80px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  transition: background .2s;
}

.code-output {
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--green);
  word-break: break-all; margin-bottom: 8px;
  min-height: 36px; max-height: 100px; overflow-y: auto; line-height: 1.5;
}

.copy-btn {
  width: 100%; padding: 8px; background: var(--accent);
  border: none; border-radius: var(--radius); color: #fff;
  cursor: pointer; font-size: 12px; font-weight: 700;
  transition: all .15s; font-family: var(--font-ui);
}
.copy-btn:hover   { background: var(--accent-h); }
.copy-btn.success { background: var(--green) !important; }

/* Snippets */
.snippet-btn {
  display: block; width: 100%; text-align: left;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-1); padding: 9px 11px; border-radius: var(--radius);
  cursor: pointer; font-size: 12px; margin-bottom: 6px;
  transition: all .15s; font-family: var(--font-ui);
}
.snippet-btn:hover { background: var(--bg-4); border-color: var(--accent); }
.snippet-btn strong { display: block; margin-bottom: 2px; }
.snippet-sub { font-size: 10.5px; color: var(--text-3); }

/* Gradient presets */
.grad-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 12px; }
.grad-preset {
  height: 30px; border-radius: 5px; border: 1px solid transparent;
  cursor: pointer; font-size: 9.5px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); transition: all .15s;
}
.grad-preset:hover { transform: scale(1.05); border-color: var(--border2); }

/* Shadow demo box */
#shadow-demo-wrap { display: flex; justify-content: center; align-items: center; height: 120px; margin-bottom: 14px; background: var(--bg-0); border-radius: var(--radius); border: 1px solid var(--border); }
#shadow-demo { width: 70px; height: 70px; border-radius: var(--radius); background: var(--accent); transition: box-shadow .1s; }

/* PX converter */
.conv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.conv-result-box { background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; text-align: center; }
.conv-result-box .val { font-size: 18px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.conv-result-box .unit { font-size: 10px; color: var(--text-3); display: block; margin-top: 2px; }

/* ════ EDITOR ════ */
#editor-wrap { flex: 1; min-width: 0; position: relative; overflow: hidden; }
.editor-pane { display: none; height: 100%; }
.editor-pane.active { display: block; }

.CodeMirror {
  height: 100% !important;
  font-family: var(--font-mono) !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

/* ════ RESIZER ════ */
#resizer {
  width: 4px; background: var(--border); cursor: col-resize; flex-shrink: 0;
  transition: background .15s; position: relative;
}
#resizer:hover, #resizer.active { background: var(--accent); }
#resizer::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 2px; height: 40px; background: var(--border2);
  border-radius: 2px;
}

/* ════ PREVIEW AREA ════ */
#preview-wrap {
  width: 45%; min-width: 220px; display: flex;
  flex-direction: column; background: #fff; flex-shrink: 0;
}
body.light #preview-wrap { background: #fafafa; }

#preview-bar {
  height: 34px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; flex-shrink: 0;
}
.pb-left, .pb-right { display: flex; align-items: center; gap: 8px; }
.pb-dots { display: flex; gap: 5px; }
.pb-dots span { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
#preview-label { font-size: 11.5px; color: var(--text-2); }

.pb-btn {
  background: none; border: none; color: var(--text-2);
  cursor: pointer; font-size: 11px; padding: 3px 9px;
  border-radius: 4px; transition: all .15s; display: flex; align-items: center; gap: 5px;
  font-family: var(--font-ui);
}
.pb-btn:hover { background: var(--bg-3); color: var(--text-1); }
.pb-btn.active { color: var(--accent); }

/* Preview loading bar */
#preview-loader {
  width: 60px; height: 2px; background: var(--accent);
  border-radius: 1px; opacity: 0; transition: opacity .2s;
  overflow: hidden;
}
#preview-loader.running {
  opacity: 1;
  animation: loaderPulse .8s ease infinite alternate;
}
@keyframes loaderPulse { from { opacity: .3; } to { opacity: 1; } }

#preview-frame { flex: 1; border: none; width: 100%; display: block; }

/* Console badge */
.badge {
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800;
  border-radius: 9px; padding: 1px 5px;
  min-width: 16px; text-align: center;
}
.badge.hidden { display: none; }
.badge.warn { background: var(--yellow); color: #000; }

/* ── Console Panel ── */
#console-panel {
  background: var(--bg-0); border-top: 1px solid var(--border);
  height: 170px; display: flex; flex-direction: column; flex-shrink: 0;
  overflow: hidden; transition: height .22s cubic-bezier(.4,0,.2,1);
}
#console-panel.closed { height: 0; }
#console-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px; border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--text-2); flex-shrink: 0;
  background: var(--bg-1);
}
#console-hdr button {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-size: 11px; padding: 2px 6px; border-radius: 4px; transition: all .15s;
  font-family: var(--font-ui);
}
#console-hdr button:hover { background: var(--bg-3); color: var(--text-1); }
#console-output { flex: 1; overflow-y: auto; padding: 4px 0; }
.console-entry {
  display: flex; align-items: baseline; gap: 8px; padding: 3px 12px;
  border-bottom: 1px solid var(--border); font-size: 11.5px; font-family: var(--font-mono);
  transition: background .1s;
}
.console-entry:hover { background: var(--bg-1); }
.console-entry.log   { color: var(--text-1); }
.console-entry.warn  { color: var(--yellow); background: rgba(247,201,72,.04); }
.console-entry.error { color: var(--red);    background: rgba(255,95,109,.06); }
.console-entry.info  { color: var(--blue); }
.con-time  { font-size: 9.5px; color: var(--text-3); flex-shrink: 0; min-width: 60px; }
.con-level {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}
.log   .con-level { background: var(--bg-3);              color: var(--text-2); }
.warn  .con-level { background: rgba(247,201,72,.15);     color: var(--yellow); }
.error .con-level { background: rgba(255,95,109,.15);     color: var(--red); }
.info  .con-level { background: rgba(56,189,248,.15);     color: var(--blue); }
.con-msg { flex: 1; word-break: break-word; }
.console-empty { padding: 14px 12px; font-size: 11px; color: var(--text-3); font-style: italic; }

/* ── 300×250 Ad ── */
.ad-300 {
  min-height: 90px; background: var(--bg-2);
  border-top: 1px dashed var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ad-v { flex-direction: column; gap: 4px; }

/* ════ STATUS BAR ════ */
#status-bar {
  height: var(--statusbar-h); background: var(--accent);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; flex-shrink: 0; user-select: none;
}
.stb-left, .stb-right { display: flex; align-items: center; gap: 6px; }
.stb-item { font-size: 11px; color: rgba(255,255,255,.75); cursor: default; }
.stb-mode { font-weight: 800; color: #fff; }
.stb-sep  { color: rgba(255,255,255,.25); font-size: 10px; }
.st-save  { color: rgba(255,255,255,.65); }
.st-save.dirty { color: #ffe082; }
.stb-right .stb-item:last-child { color: rgba(255,255,255,.5); }
body.light #status-bar { background: #5a4ed4; }

/* ════ MODAL ════ */
#modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
}
#modal-overlay.open { display: block; }

.modal {
  display: none; position: fixed; z-index: 600;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(960px, 93vw); max-height: 82vh;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  flex-direction: column; box-shadow: var(--shadow-md);
}
.modal.open { display: flex; }
.modal-sm { width: min(420px, 90vw); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--bg-1);
}
.modal-header h2 { font-size: 15px; font-weight: 700; }
.modal-close {
  background: var(--bg-4); border: 1px solid var(--border);
  color: var(--text-2); width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 13px; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
}
.modal-close:hover { background: var(--red); border-color: var(--red); color: #fff; }

.modal-tabs {
  display: flex; border-bottom: 1px solid var(--border); padding: 0 18px;
  flex-shrink: 0; background: var(--bg-1); gap: 2px;
}
.mtab {
  background: none; border: none; color: var(--text-2);
  padding: 9px 14px; cursor: pointer; font-size: 12.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s; font-weight: 600; font-family: var(--font-ui);
}
.mtab:hover { color: var(--text-1); }
.mtab.active { color: var(--accent); border-bottom-color: var(--accent); }

.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-desc { color: var(--text-2); margin-bottom: 16px; font-size: 13px; }
.modal-actions { display: flex; gap: 10px; }

/* Cheatsheet */
.cs-section { margin-bottom: 24px; }
.cs-section h3 { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; font-weight: 800; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cs-table th { background: var(--bg-3); color: var(--text-2); padding: 7px 12px; text-align: left; font-weight: 700; font-size: 11px; }
.cs-table td { padding: 6px 12px; border-bottom: 1px solid var(--border); }
.cs-table tr:hover td { background: var(--bg-3); }
.cs-table code { font-family: var(--font-mono); color: var(--accent); font-size: 11.5px; }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.color-swatch {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); transition: all .15s;
}
.color-swatch:hover { transform: scale(1.06); border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.swatch-box { height: 38px; }
.swatch-info { background: var(--bg-3); padding: 4px 6px; }
.swatch-name { font-size: 9.5px; color: var(--text-2); display: block; }
.swatch-hex  { font-size: 9.5px; color: var(--text-1); font-family: var(--font-mono); display: block; }

/* ════ TOAST ════ */
#toast {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
  background: var(--bg-4); border: 1px solid var(--border2);
  color: var(--text-1); padding: 8px 20px; border-radius: 20px;
  font-size: 12.5px; z-index: 9999; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) { .ad-728 { display: none; } }
@media (max-width: 860px)  {
  .hd-btn:not(.primary):not(#btn-run) { padding: 5px 7px; font-size: 10px; }
  #btn-new, #btn-cheatsheet { display: none; }
}
@media (max-width: 640px) {
  .hd-actions { display: none; }
  #preview-wrap, #resizer { display: none; }
  #editor-wrap { flex: 1; }
}
