/* ============================================================
   All-In-One — web design studio
   The editor's own chrome. The designed site's styles are generated
   from its theme (web/js/sites/theme.js) and injected separately.
   ============================================================ */

/* ---------------- web design home ---------------- */

.wd-home { max-width: 1240px; margin: 0 auto; padding-bottom: 80px; }
.wd-home-intro { display: flex; align-items: flex-end; gap: 16px; margin: 10px 0 8px; }
.wd-home-intro h1 { margin-bottom: 4px; }
.wd-home-intro p { max-width: 640px; }
.wd-home-h { margin: 26px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }

.wd-site-grid, .wd-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.wd-site-card, .wd-template {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.wd-site-card:hover, .wd-template:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.wd-site-card:focus-visible, .wd-template:focus-visible { outline: 2px solid var(--accent); }
.wd-site-card-meta { display: flex; align-items: center; gap: 8px; padding: 11px 12px 12px; border-top: 1px solid var(--border); }
.wd-site-card-meta strong { display: block; font-size: 13.5px; }
.wd-template-meta { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 13px; border-top: 1px solid var(--border); }
.wd-template-meta strong { font-size: 13.5px; }
.wd-template-meta span { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.modal .wd-templates { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* A live render of the page, drawn at 1200px wide and scaled down. */
.wd-card-thumb { position: relative; overflow: hidden; background: #fff; pointer-events: none; }
/* --k is set from the thumbnail's real width (see fitThumb in editor.js). */
.wd-card-thumb-inner, .wd-thumb-inner { width: 1200px; transform: scale(var(--k, .22)); transform-origin: 0 0; }

/* ---------------- topbar bits ---------------- */

.wd-title-btn {
  max-width: 260px;
  padding: 4px 8px; margin-left: -4px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: none; color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer;
}
.wd-title-btn:hover:not(:disabled) { border-color: var(--border); background: var(--surface-3); }
.wd-title-btn:disabled { cursor: default; }
.wd-save-state { margin-left: 0; white-space: nowrap; }

/* ---------------- studio layout ---------------- */

.wd-studio {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 296px;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
.wd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.wd-panel {
  display: flex; flex-direction: column;
  min-height: 0; overflow-y: auto;
  background: var(--surface);
}
.wd-left { border-right: 1px solid var(--border); padding: 6px 8px 24px; }
.wd-right { border-left: 1px solid var(--border); overflow: hidden; }

.wd-panel-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 6px 5px;
  font-size: 10.5px; font-weight: 680;
  color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
}
.wd-rows { display: flex; flex-direction: column; gap: 1px; }
.wd-row {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 5px 7px;
  border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 13px;
  cursor: pointer; user-select: none;
}
.wd-row:hover { background: var(--surface-3); color: var(--text); }
.wd-row.on { background: var(--accent-soft); color: var(--accent-text); }
.wd-row-ico { display: grid; place-items: center; width: 16px; flex: none; opacity: .8; }
.wd-row-tag { display: grid; place-items: center; color: var(--text-faint); }
.wd-row-num {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--surface-3); color: var(--text-faint);
  font-size: 10.5px; font-weight: 700;
}
.wd-row.on .wd-row-num { background: var(--accent); color: #fff; }
.wd-row-title { font-weight: 560; line-height: 1.25; }
.wd-row-sub { font-size: 11.5px; color: var(--text-faint); line-height: 1.3; }
.wd-row-btn {
  display: grid; place-items: center;
  width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 5px;
  background: none; color: var(--text-faint); cursor: pointer;
}
.wd-row-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.wd-row-btn:disabled { opacity: .3; cursor: default; }
.wd-row-btns { display: none; gap: 1px; }
.wd-layer:hover .wd-row-btns, .wd-layer.on .wd-row-btns { display: flex; }
.wd-layer[draggable="true"] { cursor: grab; }
.wd-drop-target { box-shadow: inset 0 2px 0 var(--accent); }
.wd-empty-note { padding: 6px 8px; font-size: 12.5px; color: var(--text-faint); }

/* ---------------- toolbar ---------------- */

.wd-bar {
  display: flex; align-items: center; gap: 6px;
  flex: none;
  height: 46px; padding: 0 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.wd-bar .btn.wd-on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.wd-panel-toggle { display: none; }

.wd-seg {
  display: inline-flex; gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.wd-seg-full { display: flex; width: 100%; }
.wd-seg-full .wd-seg-btn { flex: 1; }
.wd-seg-btn {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 28px; padding: 0 9px;
  border: 0; border-radius: 7px;
  background: none; color: var(--text-dim);
  font: inherit; font-size: 12.5px; font-weight: 560;
  cursor: pointer; white-space: nowrap;
}
.wd-seg-btn:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
.wd-seg-btn.on { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm); }
[data-theme="light"] .wd-seg-btn.on { background: var(--surface); }
.wd-seg-btn:disabled { opacity: .5; cursor: default; }

.wd-zoom {
  height: 32px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); color: var(--text-dim);
  font: inherit; font-size: 12.5px;
}

/* ---------------- canvas ---------------- */

.wd-viewport {
  flex: 1; min-height: 0;
  overflow: auto;
  padding: 26px 28px 120px;
  background-color: var(--bg);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wd-stage-outer { position: relative; margin: 0 auto; }
.wd-stage {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), 0 18px 50px -18px rgba(0,0,0,.45);
  --inv: 1;
}
.wd-stage .wd-root { min-height: 400px; }

/* What can be edited, and what is selected. Sizes are multiplied by
   --inv (1 / zoom) so outlines and tools stay the same size on screen
   however far the page is scaled down. */
.wd-editing [contenteditable] { outline: none; cursor: text; border-radius: 2px; transition: box-shadow .1s; }
.wd-editing [contenteditable]:hover { box-shadow: 0 0 0 calc(1px * var(--inv)) rgba(99,102,241,.55); }
.wd-editing [contenteditable]:focus { box-shadow: 0 0 0 calc(2px * var(--inv)) #6366f1; }
.wd-editing [data-ph]:empty::before { content: attr(data-ph); opacity: .38; pointer-events: none; }
/* Empty optional text only takes up room on the selected section, so the
   canvas looks like the finished page until you go to edit that part. */
.wd-editing .wd-sec:not(.wd-sel) [data-ph]:empty:not(:focus),
.wd-editing .wd-sec:not(.wd-sel) .wd-ghost { display: none; }
.wd-editing a, .wd-editing summary { cursor: default; }
.wd-editing .wd-sec { cursor: default; }
.wd-editing .wd-sec:hover { outline: calc(1px * var(--inv)) dashed rgba(99,102,241,.7); outline-offset: calc(-1px * var(--inv)); }
.wd-editing .wd-sec.wd-sel { outline: calc(2px * var(--inv)) solid #6366f1; outline-offset: calc(-2px * var(--inv)); }
.wd-editing .wd-item { position: relative; }
.wd-editing .wd-item:hover { box-shadow: 0 0 0 calc(1px * var(--inv)) rgba(99,102,241,.55); }
.wd-editing .wd-sel-el { box-shadow: 0 0 0 calc(2px * var(--inv)) #6366f1 !important; }
.wd-editing .wd-faq-item.wd-sel-el, .wd-editing .wd-logo-item.wd-sel-el { border-radius: 4px; }

.wd-editing [data-img] { cursor: pointer; }
.wd-editing [data-img]:hover::after {
  content: 'Double-click to change';
  position: absolute; left: 50%; bottom: calc(10px * var(--inv));
  transform: translateX(-50%) scale(var(--inv)); transform-origin: 50% 100%;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(15,18,34,.82); color: #fff;
  font: 600 11.5px/1.4 var(--font); white-space: nowrap;
  pointer-events: none; z-index: 3;
}
.wd-editing .wd-logo .wd-img:hover::after, .wd-editing .wd-person .wd-img:hover::after { display: none; }
.wd-editing .wd-drop { box-shadow: 0 0 0 calc(3px * var(--inv)) #22c55e !important; }
.wd-editing .wd-bg { pointer-events: none; }

/* Floating tools on the selected or hovered section. */
.wd-sec-tools, .wd-item-tools {
  position: absolute; z-index: 30;
  display: none; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #1c2033; color: #e7eaf2;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,.45);
  font: 600 11.5px/1 var(--font);
  letter-spacing: 0; text-transform: none;
}
.wd-sec-tools {
  top: calc(10px * var(--inv)); right: calc(10px * var(--inv));
  transform: scale(var(--inv)); transform-origin: 100% 0;
}
.wd-item-tools {
  top: calc(-14px * var(--inv)); right: calc(6px * var(--inv));
  transform: scale(var(--inv)); transform-origin: 100% 0;
  display: flex;
}
.wd-editing .wd-sec:hover > .wd-sec-tools, .wd-editing .wd-sec.wd-sel > .wd-sec-tools { display: flex; }
.wd-sec-label { padding: 0 7px 0 6px; color: #a5b0ff; }
.wd-tool {
  display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 6px;
  background: none; color: inherit; cursor: pointer;
}
.wd-tool:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.wd-tool:disabled { opacity: .3; cursor: default; }

.wd-insert {
  position: absolute; left: 50%; z-index: 31;
  display: none; place-items: center;
  width: 30px; height: 30px; padding: 0;
  border: 2px solid #fff; border-radius: 50%;
  background: #6366f1; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  cursor: pointer;
}
.wd-insert-before { top: 0; transform: translate(-50%, -50%) scale(var(--inv)); }
.wd-insert-after { top: 100%; transform: translate(-50%, -50%) scale(var(--inv)); }
.wd-editing .wd-sec:hover > .wd-insert, .wd-editing .wd-sec.wd-sel > .wd-insert { display: grid; }
.wd-insert:hover { background: #4f46e5; }

/* "Add" affordances inside the page, shown on the selected section. */
.wd-add-item, .wd-add-chip {
  display: none;
  align-items: center; justify-content: center;
  border: calc(1.5px * var(--inv)) dashed rgba(99,102,241,.75);
  background: rgba(99,102,241,.07);
  color: #6366f1;
  font: 600 calc(13px * var(--inv)) / 1.2 var(--font);
  cursor: pointer;
}
.wd-add-item { min-height: 90px; padding: 16px; border-radius: var(--r, 12px); }
.wd-add-chip { min-height: 0; padding: calc(6px * var(--inv)) calc(11px * var(--inv)); border-radius: 99px; align-self: center; }
.wd-editing .wd-sel .wd-add-item, .wd-editing .wd-sel .wd-add-chip { display: flex; }
.wd-editing .wd-sel .wd-add-li { display: block; }
.wd-add-li { display: none; padding: 0 !important; list-style: none; }
.wd-add-li::before, .wd-add-li::after { display: none !important; }
.wd-add-item:hover, .wd-add-chip:hover { background: rgba(99,102,241,.14); }
.wd-faq-list .wd-add-item, .wd-details .wd-add-item, .wd-logo-row .wd-add-item { min-height: 0; margin-top: 12px; }
.wd-logo-row .wd-add-item { margin-top: 0; }

.wd-empty-canvas {
  display: grid; place-items: center; gap: 10px;
  min-height: 420px; padding: 60px 24px;
  text-align: center; color: #5b6478;
  font: 15px/1.5 var(--font);
}
.wd-empty-canvas h3 { font: 700 22px/1.2 var(--font); color: #161a23; }
.wd-empty-canvas p { max-width: 420px; }

.wd-readonly .wd-sec-tools, .wd-readonly .wd-insert, .wd-readonly .wd-add-item, .wd-readonly .wd-add-chip,
.wd-readonly .wd-add-li, .wd-readonly .wd-item-tools { display: none !important; }
.wd-readonly .wd-editing [data-img]:hover::after { display: none; }

/* ---------------- inspector ---------------- */

.wd-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--border); flex: none; }
.wd-tab {
  padding: 8px 12px 9px;
  border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--text-dim);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-bottom: -1px;
}
.wd-tab:hover { color: var(--text); }
.wd-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.wd-panel-body { flex: 1; overflow-y: auto; padding: 4px 14px 40px; }

.wd-panel-intro { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 4px; }
.wd-panel-intro strong { font-size: 14px; }
.wd-panel-intro span { font-size: 12.5px; color: var(--text-faint); line-height: 1.45; }
.wd-note {
  margin-top: 12px; padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 12.5px;
}

.wd-group { display: flex; flex-direction: column; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.wd-group:last-child { border-bottom: 0; }
.wd-group-title {
  display: flex; align-items: center;
  font-size: 11px; font-weight: 680;
  color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
}
.wd-fld { display: flex; flex-direction: column; gap: 5px; }
.wd-fld-label { font-size: 12px; font-weight: 580; color: var(--text-dim); }
.wd-hint { font-size: 11.5px; color: var(--text-faint); line-height: 1.45; margin: 0; }
.wd-input-sm { padding: 6px 9px; font-size: 13px; }
.wd-input-sm.textarea { min-height: 64px; }
select.wd-input-sm { padding-right: 28px; }
.wd-switch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.wd-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.wd-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wd-variant {
  padding: 8px 9px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); color: var(--text-dim);
  font: inherit; font-size: 12.5px; font-weight: 560; text-align: left;
  cursor: pointer;
}
.wd-variant:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }
.wd-variant.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

.wd-tones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wd-tone {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 0; border: 0; background: none;
  color: var(--text-faint); font: inherit; font-size: 10.5px; font-weight: 560;
  cursor: pointer;
}
.wd-tone-chip {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1.25;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: repeating-linear-gradient(45deg, var(--surface-3) 0 6px, var(--surface-2) 6px 12px);
  color: var(--text-dim);
}
.wd-tone:hover .wd-tone-chip { border-color: var(--border-strong); }
.wd-tone.on { color: var(--accent-text); }
.wd-tone.on .wd-tone-chip { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.wd-image-ctl { display: flex; flex-direction: column; gap: 8px; }
.wd-image-thumb {
  display: grid; place-items: center;
  height: 118px; overflow: hidden;
  border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  background: var(--bg); color: var(--text-faint);
  font-size: 12px; cursor: pointer;
}
.wd-image-thumb span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wd-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-image-thumb:hover { border-color: var(--accent); }

.wd-emoji { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.wd-emoji button {
  padding: 3px 0; border: 0; border-radius: 6px;
  background: none; font-size: 16px; line-height: 1.3; cursor: pointer;
}
.wd-emoji button:hover:not(:disabled) { background: var(--surface-3); }

.wd-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd-preset {
  display: flex; flex-direction: column; gap: 5px;
  padding: 0; border: 0; background: none;
  color: var(--text-dim); font: inherit; font-size: 11.5px; font-weight: 560;
  cursor: pointer;
}
.wd-preset-sw {
  position: relative;
  display: flex; align-items: flex-end; gap: 3px;
  height: 54px; padding: 7px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
}
.wd-preset-sw b { position: absolute; top: 5px; left: 8px; font-size: 18px; font-weight: 700; line-height: 1; }
.wd-preset-sw i { width: 13px; height: 13px; border-radius: 50%; margin-left: auto; }
.wd-preset-sw i + i { margin-left: 0; }
.wd-preset:hover .wd-preset-sw { border-color: var(--border-strong); }
.wd-preset.on .wd-preset-sw { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wd-preset.on { color: var(--accent-text); }

.wd-colors { display: flex; flex-direction: column; gap: 6px; }
.wd-color-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); }
.wd-color {
  width: 30px; height: 30px; flex: none;
  padding: 0; border: 1px solid var(--border-strong); border-radius: 8px;
  background: none; cursor: pointer;
}
.wd-color::-webkit-color-swatch-wrapper { padding: 2px; }
.wd-color::-webkit-color-swatch { border: 0; border-radius: 5px; }
.wd-color::-moz-color-swatch { border: 0; border-radius: 5px; }
.wd-hex { width: 92px; flex: none; font-family: var(--mono); font-size: 12px; }

/* ---------------- section library ---------------- */

.modal:has(.wd-lib) { width: min(1040px, 100%); }
.wd-lib-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wd-chip {
  padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--bg); color: var(--text-dim);
  font: inherit; font-size: 12.5px; font-weight: 560;
  cursor: pointer;
}
.wd-chip:hover { color: var(--text); border-color: var(--border-strong); }
.wd-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wd-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wd-lib-group {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 11px; font-weight: 680; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
}
.wd-lib-group:first-child { margin-top: 0; }
.wd-lib-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.wd-lib-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wd-thumb { position: relative; height: 128px; overflow: hidden; background: #fff; pointer-events: none; border-bottom: 1px solid var(--border); }
.wd-lib-label { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 9px; }
.wd-lib-label strong { font-size: 13px; }
.wd-lib-label span { font-size: 11.5px; color: var(--text-faint); }

/* ---------------- preview ---------------- */

.wd-preview {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column;
  background: var(--bg);
  animation: fadeIn var(--fast);
}
.wd-preview-bar {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px; flex: none;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.wd-preview-bar strong { font-size: 13.5px; max-width: 220px; }
.wd-preview-bar select { width: auto; max-width: 180px; }
.wd-preview-tag {
  padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 11px; font-weight: 700;
}
.wd-preview-scroll { flex: 1; overflow: auto; }
.wd-preview-frame { margin: 0 auto; min-height: 100%; max-width: 100%; background: #fff; }
.wd-preview-frame.wd-preview-device {
  margin: 24px auto 60px;
  min-height: calc(100% - 84px);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 10px #11131c, 0 30px 60px -20px rgba(0,0,0,.6);
}

/* ---------------- small screens ---------------- */

@media (max-width: 1100px) {
  .wd-studio { grid-template-columns: 210px minmax(0, 1fr) 272px; }
}

@media (max-width: 860px) {
  .wd-studio { grid-template-columns: minmax(0, 1fr); position: relative; }
  .wd-panel-toggle { display: inline-flex; }
  .wd-hide-sm { display: none; }
  .wd-panel {
    position: absolute; top: 46px; bottom: 0; z-index: 40;
    width: min(320px, 88vw);
    box-shadow: var(--shadow-lg);
    transition: transform var(--med);
  }
  .wd-left { left: 0; transform: translateX(-105%); }
  .wd-right { right: 0; transform: translateX(105%); }
  .wd-studio.wd-show-left .wd-left, .wd-studio.wd-show-right .wd-right { transform: none; }
  .wd-viewport { padding: 18px 12px 100px; }
  .wd-bar { gap: 4px; padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
  .wd-bar::-webkit-scrollbar { display: none; }
  .wd-bar > * { flex: none; }
  .wd-bar > .grow { flex: 1 0 0; }
  .wd-save-state { display: none; }
  .wd-zoom { display: none; }
  .wd-title-btn { max-width: 40vw; }
  .wd-preview-bar strong, .wd-preview-tag { display: none; }
}

@media print {
  .wd-bar, .wd-panel { display: none !important; }
}
