/* ============================================================
   微信服务号底部菜单编排工具 · 样式表
   分区：01 变量与 reset / 02 顶栏底栏 / 03 工作区与通用控件
        04 结构树 / 05 属性表单 / 06 问题面板 / 07 手机壳
        08 微信组件 / 09 弹窗与动画
   注意：工具外壳用 --tool-* 变量；微信预览全部挂在 .wx 下，
        两套变量严格隔离，避免工具风格污染预览还原度。
   ============================================================ */

/* ===== 01 变量与 reset ===== */
:root {
  --tool-bg: #eef0f3;
  --tool-panel: #ffffff;
  --tool-line: #e3e6ea;
  --tool-line-soft: #f1f2f4;
  --tool-text: #1f2937;
  --tool-text-2: #667085;
  --tool-text-3: #98a2b3;
  --tool-accent: #0f766e;
  --tool-accent-hover: #0d6a63;
  --tool-accent-weak: #e6f2f0;
  --err: #d92d20;
  --err-weak: #fef3f2;
  --warn: #b54708;
  --warn-weak: #fffaeb;
  --ok: #067647;
  --ok-weak: #ecfdf3;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 10px 28px rgba(16, 24, 40, .12);
  --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--tool-bg);
  color: var(--tool-text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: auto;
  overflow-y: hidden;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
button { font-family: inherit; font-size: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
svg { display: block; }

.svg-sprite { display: none; }

.ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}

kbd {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  border: 1px solid var(--tool-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  color: var(--tool-text-2);
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f3f4f6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
  color: #1f2937;
}

/* 滚动条 */
.tree::-webkit-scrollbar, .pane::-webkit-scrollbar,
.col-preview::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 8px; height: 8px; }
.tree::-webkit-scrollbar-thumb, .pane::-webkit-scrollbar-thumb,
.col-preview::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #cfd4db;
}
.tree::-webkit-scrollbar-thumb:hover, .pane::-webkit-scrollbar-thumb:hover { background: #b4bbc5; }

/* ===== 02 顶栏 / 提示条 / 底栏 ===== */
.topbar {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--tool-line);
  box-shadow: var(--shadow-1);
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--tool-accent), #14b8a6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 16px; height: 16px; }

.brand-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}

.doc-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 260px;
}
.doc-name-label {
  font-size: 11px;
  color: var(--tool-text-3);
  flex: 0 0 auto;
}
.doc-name-input {
  width: 100%;
  min-width: 90px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color .15s, background .15s;
}
.doc-name-input:hover { background: #f1f3f6; }
.doc-name-input:focus {
  background: #fff;
  border-color: var(--tool-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.mode-switch {
  flex: 0 0 auto;
  display: flex;
  padding: 2px;
  border-radius: 7px;
  background: #eef0f3;
}
.mode-btn {
  padding: 4px 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--tool-text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.mode-btn:hover { color: var(--tool-text); }
.mode-btn.is-active {
  background: #fff;
  color: var(--tool-accent);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
}

.theme-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.theme-switch-label { font-size: 11px; color: var(--tool-text-3); }
.theme-select {
  height: 26px;
  padding: 0 3px;
  border: 1px solid var(--tool-line);
  border-radius: 6px;
  background: #fff;
  font-size: 11.5px;
  color: var(--tool-text);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.theme-select:hover { border-color: #cfd4db; }
.theme-select:focus { border-color: var(--tool-accent); }

.issue-badges {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.badge .ico { width: 12px; height: 12px; }
.badge-err { color: var(--err); background: var(--err-weak); border-color: #fecdca; }
.badge-err:hover { background: #fee4e2; }
.badge-warn { color: var(--warn); background: var(--warn-weak); border-color: #fedf89; }
.badge-warn:hover { background: #fef0c7; }
.badge-ok { color: var(--ok); background: var(--ok-weak); border-color: #abefc6; }
.badge-ok:hover { background: #d1fadf; }
.badge.is-off { opacity: .45; cursor: default; }
.badge.is-off:hover { background: inherit; }

.topbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--tool-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--tool-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.tb-btn:hover { background: #f7f8fa; border-color: #cfd4db; }
.tb-btn:active { background: #eff1f4; }
.tb-btn-ghost { padding: 0; width: 30px; justify-content: center; border-color: transparent; color: var(--tool-text-2); }
.tb-btn-ghost:hover { background: #f1f3f6; border-color: transparent; color: var(--tool-text); }

.storage-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--warn-weak);
  border-bottom: 1px solid #fedf89;
  color: var(--warn);
  font-size: 12px;
}
.storage-banner .ico { width: 14px; height: 14px; }

.statusbar {
  flex: 0 0 auto;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border-top: 1px solid var(--tool-line);
  font-size: 11px;
  color: var(--tool-text-3);
}
.sb-item { white-space: nowrap; }
.sb-path { color: var(--tool-text-2); overflow: hidden; text-overflow: ellipsis; }
.sb-sep { width: 1px; height: 12px; background: var(--tool-line); flex: 0 0 auto; }
.sb-spacer { flex: 1 1 auto; }
.sb-hint { white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.sb-hint kbd { font-size: 10px; line-height: 13px; min-width: 14px; }

/* ===== 03 工作区与通用控件 ===== */
.workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(420px, 1fr) 360px;
  min-width: 1080px;
}

.col {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.col-tree { background: #fff; border-right: 1px solid var(--tool-line); }
.col-form { background: #fff; border-left: 1px solid var(--tool-line); }
.col-preview {
  background: var(--tool-bg);
  background-image: radial-gradient(rgba(15, 118, 110, .07) 1px, transparent 1px);
  background-size: 18px 18px;
  align-items: center;
  padding: 12px 16px 8px;
  overflow: auto;
}

.col-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--tool-line-soft);
}
.col-head h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--tool-text-2);
  text-transform: uppercase;
}
.col-head-hint { font-size: 11px; color: var(--tool-text-3); }

.col-foot {
  flex: 0 0 auto;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--tool-line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--tool-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--tool-text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { background: #f7f8fa; border-color: #cfd4db; }
.btn:active { background: #eff1f4; }
.btn:disabled { opacity: .45; cursor: not-allowed; background: #fff; }
.btn:disabled:hover { border-color: var(--tool-line); }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; color: var(--tool-text-2); }
.btn-ghost:hover { background: #f1f3f6; border-color: transparent; color: var(--tool-text); }
.btn-danger { color: var(--err); border-color: #fecdca; }
.btn-danger:hover { background: var(--err-weak); border-color: #fda29b; }

.btn-primary {
  background: var(--tool-accent);
  border-color: var(--tool-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--tool-accent-hover); border-color: var(--tool-accent-hover); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--tool-text-2);
  cursor: pointer;
}
.icon-btn:hover { background: #f1f3f6; color: var(--tool-text); }
.icon-btn.is-danger:hover { background: var(--err-weak); color: var(--err); }
.icon-btn .ico { width: 14px; height: 14px; }

/* ===== 04 结构树 ===== */
.tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 8px 14px;
}

.tnode { position: relative; }

.tnode-row {
  position: relative;
  --row-bg: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.tnode-row:hover { --row-bg: #f5f6f8; background: var(--row-bg); }
.tnode-row.is-selected { --row-bg: var(--tool-accent-weak); background: var(--row-bg); }
.tnode-row.is-selected .tnode-name { color: var(--tool-accent); font-weight: 600; }

.tnode-caret {
  flex: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tool-text-3);
  transition: transform .15s;
}
.tnode-caret .ico { width: 12px; height: 12px; }
.tnode.is-open > .tnode-row .tnode-caret { transform: rotate(90deg); }
.tnode-caret.is-leaf { visibility: hidden; }

.tnode-drag {
  flex: 0 0 10px;
  color: #c8ced6;
  cursor: grab;
  opacity: 0;
  transition: opacity .12s;
}
.tnode-drag .ico { width: 12px; height: 12px; }
.tnode-row:hover .tnode-drag { opacity: 1; }
.tnode-drag:active { cursor: grabbing; }

.tnode-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--tool-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tnode-name.is-empty { color: var(--tool-text-3); font-style: italic; }

.tnode-tag {
  flex: 0 0 auto;
  max-width: 48px;
  padding: 0 5px;
  border-radius: 3px;
  background: #f1f3f6;
  font-size: 10px;
  line-height: 15px;
  color: var(--tool-text-2);
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tnode-tag.is-group { background: #eef2ff; color: #4f46e5; }

.tnode-count {
  flex: 0 0 auto;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f1f3f6;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  color: var(--tool-text-3);
}

.tnode-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tnode-dot.is-err { background: var(--err); }
.tnode-dot.is-warn { background: var(--warn); }
.tnode-dot.is-sub { background: #c8ced6; }

.tnode-acts {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1px;
  padding-left: 12px;
  border-radius: 5px;
  background: var(--row-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}
.tnode-row:hover .tnode-acts {
  opacity: 1;
  pointer-events: auto;
}

/* 触屏无 hover：隐藏拖拽手柄，按钮回到文档流常显（依赖 ↑↓ 排序） */
@media (hover: none) {
  .tnode-drag { display: none; }
  .tnode-acts {
    position: static;
    transform: none;
    padding-left: 0;
    background: none;
    opacity: 1;
    pointer-events: auto;
  }
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--tool-text-3);
  cursor: pointer;
}
.mini-btn:hover { background: rgba(15, 118, 110, .1); color: var(--tool-accent); }
.mini-btn.is-danger:hover { background: var(--err-weak); color: var(--err); }
.mini-btn:disabled { opacity: .3; cursor: not-allowed; }
.mini-btn:disabled:hover { background: transparent; color: var(--tool-text-3); }
.mini-btn .ico { width: 12px; height: 12px; }

.tnode-children {
  margin-left: 15px;
  padding-left: 6px;
  border-left: 1px dashed var(--tool-line);
}
.tnode:not(.is-open) > .tnode-children { display: none; }

.tnode.is-dragging { opacity: .4; }
.tnode-row.drop-before { box-shadow: inset 0 2px 0 var(--tool-accent); }
.tnode-row.drop-after { box-shadow: inset 0 -2px 0 var(--tool-accent); }

.tree-empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--tool-text-3);
  font-size: 12px;
  line-height: 1.9;
}

/* ===== 05 属性表单 / 问题面板容器 ===== */
.col-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--tool-line);
}
.col-tab {
  position: relative;
  padding: 7px 12px 9px;
  border: 0;
  background: transparent;
  color: var(--tool-text-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.col-tab:hover { color: var(--tool-text); }
.col-tab.is-active { color: var(--tool-accent); }
.col-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  border-radius: 1px;
  background: var(--tool-accent);
}
.tab-count {
  display: none;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--err-weak);
  color: var(--err);
  font-size: 10px;
  line-height: 15px;
  vertical-align: 1px;
}
.tab-count.is-on { display: inline-block; }
.tab-count.is-warn { background: var(--warn-weak); color: var(--warn); }

.pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.form-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--tool-text-3);
  font-size: 12px;
  line-height: 2;
}
.form-empty .ico { width: 26px; height: 26px; margin: 0 auto 10px; color: #cfd4db; }

.form-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tool-line-soft);
}
.form-section:last-child { border-bottom: 0; margin-bottom: 4px; padding-bottom: 0; }
.form-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--tool-text-3);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field { margin-bottom: 13px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--tool-text-2);
}
.field-label b { color: var(--tool-text); font-weight: 500; }
.field-req { color: var(--err); margin-left: 2px; }

.field-meter {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--tool-text-3);
}
.field-meter.is-near { color: var(--warn); }
.field-meter.is-over { color: var(--err); font-weight: 600; }

.field-input,
.field-select,
.field-textarea {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--tool-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--tool-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.field-input.is-error,
.field-textarea.is-error { border-color: var(--err); }
.field-input.is-error:focus,
.field-textarea.is-error:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .12); }
.field-input:disabled, .field-select:disabled { background: #f7f8fa; color: var(--tool-text-3); }

.field-select { appearance: none; background-image: none; cursor: pointer; padding-right: 26px; }
.field-select-wrap { position: relative; }
.field-select-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--tool-text-3);
  pointer-events: none;
}

.field-textarea { resize: vertical; min-height: 62px; font-family: inherit; }
.field-textarea.is-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

.field-help { margin-top: 4px; font-size: 11px; color: var(--tool-text-3); line-height: 1.6; }
.field-msg { margin-top: 4px; font-size: 11px; line-height: 1.6; }
.field-msg.is-error { color: var(--err); }
.field-msg.is-warn { color: var(--warn); }

.field-row { display: flex; gap: 8px; }
.field-row > * { flex: 1 1 0; min-width: 0; }

.field-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--tool-text-2);
  cursor: pointer;
  user-select: none;
}
.field-inline input[type="radio"] { accent-color: var(--tool-accent); margin: 0; }

.type-hint {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  font-size: 11px;
  line-height: 1.65;
  color: var(--tool-text-2);
}
.type-hint b { color: var(--tool-text); font-weight: 600; }
.type-hint.is-warn { background: var(--warn-weak); color: var(--warn); }

.form-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tool-line-soft);
}
.form-actions .btn { flex: 1 1 0; }

@keyframes fieldFlash {
  0% { background: #fef0c7; box-shadow: 0 0 0 3px rgba(181, 71, 8, .18); }
  100% { background: #fff; box-shadow: 0 0 0 0 rgba(181, 71, 8, 0); }
}
.field-flash { animation: fieldFlash 1s ease-out; }

/* 问题面板 */
.issues-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  font-size: 12px;
  color: var(--tool-text-2);
  line-height: 1.6;
}
.issues-summary.is-ok { background: var(--ok-weak); color: var(--ok); }
.issues-summary.is-err { background: var(--err-weak); color: var(--err); }

.issue-item {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--tool-line-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.issue-item:hover { background: #f9fafb; border-color: var(--tool-line); }
.issue-item.is-err { border-left: 3px solid var(--err); }
.issue-item.is-warn { border-left: 3px solid var(--warn); }
.issue-icon { flex: 0 0 auto; margin-top: 1px; }
.issue-icon .ico { width: 14px; height: 14px; }
.issue-item.is-err .issue-icon { color: var(--err); }
.issue-item.is-warn .issue-icon { color: var(--warn); }
.issue-body { min-width: 0; flex: 1 1 auto; }
.issue-text { font-size: 12px; line-height: 1.6; color: var(--tool-text); }
.issue-path { margin-top: 3px; font-size: 11px; color: var(--tool-text-3); }

.issues-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--ok);
  font-size: 12px;
  line-height: 2;
}
.issues-empty .ico { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--ok); }

/* ===== 07 手机壳 ===== */
.mode-hint {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto 10px;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
  transition: background .2s, color .2s;
}
.mode-hint[data-mode="edit"] { background: var(--tool-accent-weak); color: var(--tool-accent); }
.mode-hint[data-mode="demo"] { background: #fef0c7; color: #92400e; }

.phone-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-scale {
  zoom: var(--phone-scale, 1);
  transition: zoom .2s ease;
}

.phone {
  box-sizing: border-box;
  width: 395px;
  height: 832px;
  padding: 0;
  border: 10px solid #0b0b0d;
  border-radius: 46px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(16, 24, 40, .3), 0 0 0 1px rgba(0, 0, 0, .35);
}

.phone-foot-note {
  flex: 0 0 auto;
  max-width: 480px;
  margin: 6px auto 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--tool-text-3);
  text-align: center;
}
.phone-foot-note b { color: var(--tool-text-2); font-weight: 500; }

/* ===== 08 微信组件（独立命名空间，勿混用 --tool-*） ===== */
.wx {
  --wx-bar: #ededed;
  --wx-bg: #f7f7f7;
  --wx-white: #ffffff;
  --wx-text: #1a1a1a;
  --wx-text-2: #888888;
  --wx-text-3: #b2b2b2;
  --wx-line: rgba(0, 0, 0, .10);
  --wx-line-soft: rgba(0, 0, 0, .06);
  --wx-blue: #576b95;
  --wx-green: #07c160;
  --wx-mask: rgba(0, 0, 0, .40);
  /* 主题化扩展变量 */
  --wx-tabbar-bg: #ffffff;
  --wx-panel-bg: #ffffff;
  --wx-page-bg: #ffffff;
  --wx-chip: transparent;
  --wx-tab-ic: #9a9a9a;
  --wx-tab-dim: #1a1a1a;
  --wx-tab-on: #576b95;

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--wx-bg);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  color: var(--wx-text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* 状态栏 */
.wx-status {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  background: var(--wx-bar);
  color: var(--wx-text);
  user-select: none;
}
.wx-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}
.wx-status-icons { display: flex; align-items: center; gap: 5px; }
.wx-si { width: 17px; height: 11px; color: var(--wx-text); }
.wx-si-bat { width: 25px; }

/* 导航栏 */
.wx-nav {
  position: relative;
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wx-bar);
  border-bottom: 1px solid var(--wx-line);
}
.wx-nav-title {
  max-width: 210px;
  font-size: 17px;
  font-weight: 500;
  color: var(--wx-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-nav-back {
  position: absolute;
  left: 6px;
  top: 0;
  width: 34px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.wx-nav-back-arrow {
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--wx-text);
  border-bottom: 2px solid var(--wx-text);
  transform: rotate(45deg);
  border-radius: 1px;
}
.wx-nav-back:active { opacity: .5; }

.wx-capsule {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  width: 87px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  box-sizing: border-box;
}
.wx-capsule-dots {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.wx-capsule-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
}
.wx-capsule-sep { width: 1px; height: 18px; background: rgba(0, 0, 0, .12); }
.wx-capsule-circle {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-capsule-circle i {
  width: 13px;
  height: 13px;
  border: 1.6px solid #111;
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
}
.wx-capsule-circle i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #111;
}

/* 内容区 */
.wx-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--wx-bg);
  -webkit-overflow-scrolling: touch;
}
.wx-body::-webkit-scrollbar { width: 0; }

.wx-chat { padding: 14px 0 24px; }

.wx-time-sep {
  margin: 2px 0 16px;
  text-align: center;
  font-size: 12px;
  color: var(--wx-text-3);
}

.wx-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 16px;
}
.wx-msg-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}
.wx-msg-main { min-width: 0; max-width: calc(100% - 52px); }

.wx-bubble {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--wx-white);
  font-size: 17px;
  line-height: 1.6;
  color: var(--wx-text);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
}
.wx-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 13px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid var(--wx-white);
}

/* 图文卡片 */
.wx-news {
  position: relative;
  width: 252px;
  max-width: 100%;
  margin-bottom: 8px;
  border-radius: 6px;
  background: var(--wx-white);
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
}
.wx-news::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid var(--wx-white);
  z-index: 2;
}
.wx-news-cover {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: rgba(255, 255, 255, .94);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 1px;
  text-align: center;
  overflow: hidden;
}
.wx-news-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .18));
}
.wx-news-ph {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wx-news-cover span {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wx-news-body { padding: 9px 12px 11px; }
.wx-news-title {
  font-size: 16px;
  line-height: 1.4;
  color: var(--wx-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wx-news-digest {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--wx-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-news-meta {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--wx-text-3);
}

/* 空态 */
.wx-empty {
  padding: 70px 28px;
  text-align: center;
  color: var(--wx-text-3);
  font-size: 13px;
  line-height: 1.9;
}
.wx-empty strong { display: block; margin-bottom: 6px; font-size: 15px; color: var(--wx-text-2); font-weight: 500; }

/* 模拟网页 */
.wx-page { background: var(--wx-page-bg); min-height: 100%; }
.wx-page-tip {
  padding: 5px 12px;
  background: #fafafa;
  border-bottom: 1px dashed rgba(0, 0, 0, .12);
  font-size: 11px;
  line-height: 1.6;
  color: #999;
}
.wx-page-inner { padding: 18px 16px 40px; }
.wx-page-h1 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--wx-text);
}
.wx-page-body {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}
.wx-page-url {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: 11.5px;
  line-height: 1.6;
  color: #b2b2b2;
  word-break: break-all;
}

/* 遮罩 */
/* 遮罩：两套主题均不使用（竞品交互为无遮罩的浮层卡片） */
.wx-mask { display: none; }

/* 二级菜单面板：两套主题共用同一套交互（与激活列居中对齐的窄卡片） */
.wx-panel {
  position: absolute;
  left: var(--panel-left, 0px);
  right: auto;
  bottom: 88px;
  width: max-content;
  min-width: 108px;
  max-width: 160px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
  background: var(--wx-panel-bg);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .18);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
  z-index: 30;
}
.wx-panel.is-open { transform: translateY(0); opacity: 1; }

.wx-panel-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--wx-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}
.wx-panel-item.is-placeholder { color: var(--wx-text-3); }

/* 底部菜单栏 */
.wx-tabbar {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  background: var(--wx-tabbar-bg);
  border-top: 1px solid var(--wx-line);
  position: relative;
  z-index: 31;
}
.wx-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--wx-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
  transition: color .12s, background .12s;
}
.wx-tab + .wx-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  margin-top: -10px;
  background: var(--wx-line-soft);
}
.wx-tab-text { overflow: hidden; text-overflow: ellipsis; }
.wx-tab-arrow {
  display: none;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9a9a9a;
  transition: transform .18s ease;
}
.wx-tab.is-open { color: var(--wx-blue); }
.wx-tab.is-open .wx-tab-arrow { transform: rotate(180deg); border-top-color: var(--wx-blue); }
.wx-tab.is-placeholder { color: var(--wx-text-3); font-size: 13px; cursor: default; }

/* 编辑模式下的选中提示（仅工具内可见，不参与微信还原） */
.wx[data-mode="edit"] .wx-tab:not(.is-placeholder):hover { background: rgba(15, 118, 110, .07); }
.wx[data-mode="edit"] .wx-tab.is-selected { box-shadow: inset 0 0 0 2px var(--tool-accent); }
.wx[data-mode="edit"] .wx-panel-item:hover { background: rgba(0, 0, 0, .045); }
.wx[data-mode="edit"] .wx-panel-item.is-selected { box-shadow: inset 0 0 0 1.5px var(--tool-accent); }

/* 安全区 */
.wx-home {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wx-tabbar-bg);
  z-index: 31;
}
.wx-home span {
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #1a1a1a;
  opacity: .85;
}

/* ===== 08b 竞品深色主题（data-theme="dark"） =====
   参照竞品实测：页面 #1e1e1f、激活块 #29292a、面板 #242424、
   主文字 #e1e1e5、次文字 #868688。结构与 class 复用，仅覆盖视觉。 */
.wx[data-theme="dark"] {
  --wx-bar: #1e1e1f;
  --wx-bg: #1e1e1f;
  --wx-white: #2c2c2e;
  --wx-text: #e1e1e5;
  --wx-text-2: #8e8e93;
  --wx-text-3: #6b6b70;
  --wx-line: rgba(255, 255, 255, .08);
  --wx-line-soft: rgba(255, 255, 255, .06);
  --wx-blue: #e1e1e5;
  --wx-mask: rgba(0, 0, 0, .45);
  --wx-tabbar-bg: #1e1e1f;
  --wx-panel-bg: #242424;
  --wx-page-bg: #1e1e1f;
  --wx-chip: #29292a;
  --wx-tab-ic: #868688;
  --wx-tab-dim: #868688;
  --wx-tab-on: #e1e1e5;
}

/* 顶栏与导航 */
.wx[data-theme="dark"] .wx-nav { border-bottom-color: rgba(255, 255, 255, .06); }
.wx[data-theme="dark"] .wx-nav-title { color: #e1e1e5; }
.wx[data-theme="dark"] .wx-nav-back-arrow { border-color: #e1e1e5; }
.wx[data-theme="dark"] .wx-capsule {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}
.wx[data-theme="dark"] .wx-capsule-dots i { background: #e1e1e5; }
.wx[data-theme="dark"] .wx-capsule-sep { background: rgba(255, 255, 255, .16); }
.wx[data-theme="dark"] .wx-capsule-circle i { border-color: #e1e1e5; }
.wx[data-theme="dark"] .wx-capsule-circle i::after { background: #e1e1e5; }

/* 会话区 */
.wx[data-theme="dark"] .wx-time-sep { color: #6b6b70; }
.wx[data-theme="dark"] .wx-bubble { background: #2c2c2e; color: #e1e1e5; }
.wx[data-theme="dark"] .wx-bubble::before { border-right-color: #2c2c2e; }
.wx[data-theme="dark"] .wx-news { background: #2c2c2e; }
.wx[data-theme="dark"] .wx-news::before { border-right-color: #2c2c2e; }
.wx[data-theme="dark"] .wx-news-title { color: #e1e1e5; }
.wx[data-theme="dark"] .wx-news-digest { color: #8e8e93; }
.wx[data-theme="dark"] .wx-news-meta { color: #6b6b70; }
.wx[data-theme="dark"] .wx-empty { color: #6b6b70; }
.wx[data-theme="dark"] .wx-empty strong { color: #8e8e93; }

/* 模拟网页 */
.wx[data-theme="dark"] .wx-page-tip {
  background: rgba(255, 255, 255, .04);
  border-bottom-color: rgba(255, 255, 255, .08);
  color: #6b6b70;
}
.wx[data-theme="dark"] .wx-page-h1 { color: #e1e1e5; }
.wx[data-theme="dark"] .wx-page-body { color: #c7c7cc; }
.wx[data-theme="dark"] .wx-page-url {
  border-top-color: rgba(255, 255, 255, .08);
  color: #6b6b70;
}

/* 底部菜单栏：图标 + 文字横排，无列间竖线，极淡顶边 */
.wx[data-theme="dark"] .wx-tabbar { border-top: 1px solid rgba(255, 255, 255, .06); }
.wx[data-theme="dark"] .wx-tab {
  gap: 6px;
  padding: 0 3px;
  font-size: 13px;
  color: var(--wx-tab-dim);
  overflow: visible;
}
.wx[data-theme="dark"] .wx-tab + .wx-tab::before { display: none; }
.wx[data-theme="dark"] .wx-tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* 一级菜单图标（微信主题下隐藏，保持原样） */
.wx-tab-ic {
  display: none;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--wx-tab-ic);
}
.wx[data-theme="dark"] .wx-tab-ic { display: block; }

/* 激活列：整列圆角底块，文字转亮 */
.wx[data-theme="dark"] .wx-tab.is-open::before,
.wx[data-theme="dark"] .wx-tab.is-selected::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border-radius: 10px;
  background: var(--wx-chip);
}
.wx[data-theme="dark"] .wx-tab.is-open,
.wx[data-theme="dark"] .wx-tab.is-selected { color: var(--wx-tab-on); }
.wx[data-theme="dark"] .wx-tab.is-open .wx-tab-text,
.wx[data-theme="dark"] .wx-tab.is-selected .wx-tab-text { color: var(--wx-tab-on); }
.wx[data-theme="dark"] .wx-tab-text,
.wx[data-theme="dark"] .wx-tab-ic { position: relative; z-index: 1; }

/* 编辑态下叠加一圈青色描边，区分「选中」与「展开」 */
.wx[data-theme="dark"][data-mode="edit"] .wx-tab.is-selected {
  box-shadow: inset 0 0 0 1.5px rgba(20, 184, 166, .68);
}
.wx[data-theme="dark"][data-mode="edit"] .wx-tab:not(.is-placeholder):hover {
  background: rgba(255, 255, 255, .05);
}

/* 展开面板：交互已由基础样式统一（列宽窄卡片 / 居中对齐 / 左对齐 / 无箭头 / 无遮罩），
   此处只保留深色下的配色与投影差异 */
.wx[data-theme="dark"] .wx-panel {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.wx[data-theme="dark"] .wx-panel-item { color: #e1e1e5; }
.wx[data-theme="dark"] .wx-panel-item:hover { background: rgba(255, 255, 255, .06); }
.wx[data-theme="dark"][data-mode="edit"] .wx-panel-item.is-selected {
  box-shadow: inset 0 0 0 1.5px rgba(20, 184, 166, .68);
}

/* 安全区指示条 */
.wx[data-theme="dark"] .wx-home span { background: #e1e1e5; opacity: .55; }

/* 手机壳内提示 */
.wx[data-theme="dark"] .wx-toast {
  background: rgba(60, 60, 62, .94);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* 手机壳内系统提示 */
.wx-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 250px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .76);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.wx-toast.is-open { opacity: 1; }

/* ===== 09 弹窗 / Toast / 文档排版 ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.modal-box {
  position: relative;
  width: 720px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
  overflow: hidden;
}
.modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tool-line);
}
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px 24px; }

.modal-body h3 {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tool-accent);
}
.modal-body h3:first-child { margin-top: 0; }

.doc-list { margin: 0; padding-left: 20px; font-size: 12.5px; line-height: 1.95; color: var(--tool-text); }
.doc-list li { margin-bottom: 2px; }
.doc-list-plain { list-style: none; padding-left: 0; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 4px;
}
.doc-table th {
  padding: 6px 9px;
  text-align: left;
  background: #f7f8fa;
  border: 1px solid var(--tool-line);
  font-weight: 600;
  color: var(--tool-text-2);
  white-space: nowrap;
}
.doc-table td {
  padding: 6px 9px;
  border: 1px solid var(--tool-line);
  vertical-align: top;
  color: var(--tool-text);
}
.doc-note {
  margin-top: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--tool-text-2);
}
.t-err { color: var(--err); }
.t-warn { color: var(--warn); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%) translateY(8px);
  max-width: 420px;
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  z-index: 120;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-err { background: rgba(180, 35, 24, .95); }
.toast.is-ok { background: rgba(6, 95, 70, .95); }

/* 窄屏兜底：整体压缩两列宽度 */
@media (max-width: 1360px) {
  .workspace { grid-template-columns: 250px minmax(400px, 1fr) 330px; }
  .doc-name-wrap { flex-basis: 190px; }
}
@media (max-width: 1180px) {
  .workspace { grid-template-columns: 230px minmax(380px, 1fr) 310px; }
  .brand-text { display: none; }
}
