/* ============================================================
   形色画布 ArtCanvas · 应用样式
   暖纸色工作台主题 · 响应式（桌面三栏 / 平板抽屉 / 手机紧凑）
   ============================================================ */

:root {
  --bg: #e9e2d4;
  --surface: #faf6ee;
  --surface2: #f1ebe0;
  --ink: #26221e;
  --muted: #8a8073;
  --line: #d8cdba;
  --line-strong: #c4b8a1;
  --accent: #d4552b;
  --accent-soft: #f6ddd2;
  --teal: #2f6f6a;
  --danger: #b23a2e;
  --shadow: 0 10px 30px rgba(60, 48, 32, .18);
  --radius: 10px;
  --radius-sm: 7px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.hidden { display: none !important; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
svg { display: block; }

/* ---------- 整体布局 ---------- */
#app {
  height: 100%;
  display: grid;
  grid-template-rows: 52px 1fr 30px;
}

/* ---------- 顶栏 ---------- */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.tb-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .02em; }
.brand svg { width: 26px; height: 26px; }
.brand-name { font-size: 15px; white-space: nowrap; }
.doc-meta {
  font-size: 12px; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

.icon-btn {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background .12s, color .12s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover:not(:disabled) { background: var(--surface2); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.text-btn {
  display: flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px; flex: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: background .12s, color .12s;
}
.text-btn svg { width: 17px; height: 17px; }
.text-btn:hover { background: var(--surface2); }
.text-btn.primary { background: var(--accent); color: #fff; }
.text-btn.primary:hover { background: #bf4a24; }
.zoom-label { font-size: 12.5px; color: var(--muted); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.only-compact { display: none; }

/* ---------- 主体区 ---------- */
#main {
  display: grid;
  grid-template-columns: 52px 1fr 312px;
  min-height: 0; /* 允许子项收缩 */
}

/* ---------- 左侧工具栏 ---------- */
#toolbar {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: none;
}
#toolbar::-webkit-scrollbar { display: none; }
.tool-btn {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: #5c5346;
  transition: background .12s, color .12s, box-shadow .12s;
}
.tool-btn svg { width: 21px; height: 21px; }
.tool-btn:hover { background: var(--surface2); color: var(--ink); }
.tool-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 3px 10px rgba(212, 85, 43, .35);
}
.tool-btn.active:hover { background: #c04a23; }
.tool-sep { width: 24px; height: 1px; background: var(--line); margin: 4px 0; flex: none; }
#btnGrid.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- 画布视口 ---------- */
#viewport {
  position: relative;
  min-width: 0; min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(90, 76, 56, .14) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--bg);
  touch-action: none;
}
#mainCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 悬浮工具条（切割形状 / 画笔参数） */
.float-bar {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(250, 246, 238, .96);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 20;
  max-width: calc(100% - 24px);
  flex-wrap: wrap; justify-content: center;
}
.fb-label { font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 2px; }
.fb-btn {
  width: 32px; height: 32px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #5c5346;
  transition: background .12s, color .12s;
}
.fb-btn svg { width: 18px; height: 18px; }
.fb-btn:hover { background: var(--surface2); color: var(--ink); }
.fb-btn.active { background: var(--accent); color: #fff; }
.fb-val { font-size: 12px; color: var(--muted); min-width: 34px; font-variant-numeric: tabular-nums; }
#fbBrushColor, #brushColorInput { width: 34px; height: 30px; flex: none; }
#fbBrushW { width: 90px; }

/* 就地编辑文字覆盖层（位置/字号由 JS 按视口变换动态设置） */
.text-overlay {
  position: absolute;
  z-index: 30;
  margin: 0;
  padding: 1px 10px 2px 2px;
  resize: none;
  overflow: hidden;
  background: rgba(255, 252, 246, .92);
  border: 1.5px dashed var(--accent);
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
  box-shadow: var(--shadow);
  transform-origin: center center;
  caret-color: var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}
.text-overlay:focus { border-style: solid; background: rgba(255, 252, 246, .97); }

/* ---------- 右侧面板 ---------- */
#sidePanel {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  min-height: 0;
  z-index: 30;
}
.sp-tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.sp-tab {
  flex: 1; height: 40px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.sp-tab:hover { color: var(--ink); }
.sp-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.sp-pane { flex: 1; overflow-y: auto; padding: 14px 14px 30px; min-height: 0; }
.sp-pane h5 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
  margin: 18px 0 8px;
}
.sp-pane h5:first-child { margin-top: 2px; }

.row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.nums { gap: 6px; }
.row.nums label {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted);
}
.row.nums.four label { flex-direction: column; align-items: stretch; gap: 3px; }
.row.nums input[type="number"] {
  width: 100%; min-width: 0;
  padding: 5px 7px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.row.nums input:focus, select:focus, input[type="text"]:focus, textarea:focus {
  outline: 2px solid rgba(212, 85, 43, .35); outline-offset: 0; border-color: var(--accent);
}
.inline-label { font-size: 12px; color: var(--muted); flex: none; }
.inline-label.w-3 { width: 32px; }
.rng-val { font-size: 12px; color: var(--muted); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.row.between { justify-content: space-between; }
.row .small { font-size: 12px; color: var(--muted); }

select {
  flex: 1; min-width: 0;
  padding: 6px 8px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer;
}
input[type="range"] { flex: 1; min-width: 40px; accent-color: var(--accent); height: 26px; }
input[type="color"] {
  width: 40px; height: 32px; flex: none;
  padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
textarea {
  width: 100%; resize: vertical; min-height: 54px;
  padding: 7px 9px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}

.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 30px; padding: 0 11px;
  font-size: 12.5px; font-weight: 500;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn:hover { background: var(--surface2); }
.mini-btn.wide { flex: 1; }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.mini-btn.primary:hover { background: #bf4a24; }
.mini-btn.danger { color: var(--danger); }
.mini-btn.danger:hover { background: #f7e2de; border-color: #d8a49b; }
.mini-btn:disabled { opacity: .45; cursor: default; }
.mini-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.row.btns .mini-btn { flex: 1; min-width: 0; }
#alignRow .mini-btn { flex: none; width: 36px; padding: 0; }

.hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 6px 0 2px; }
.hint.warn { color: var(--danger); background: #f9ece9; border: 1px solid #e5c4bd; padding: 7px 10px; border-radius: var(--radius-sm); }

/* 形状属性头部 */
.shape-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.shape-badge {
  flex: none;
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}
#inpName {
  flex: 1; min-width: 0;
  padding: 5px 8px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}

/* 色板 */
.swatches { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; }
.sw {
  width: 21px; height: 21px; flex: none;
  border-radius: 6px; border: 1px solid rgba(0, 0, 0, .14);
  transition: transform .1s;
}
.sw:hover { transform: scale(1.15); }
.sw.active { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 纹理缩略图 */
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--surface2);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted);
  transition: border-color .12s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--line-strong); }
.thumb.active { border-color: var(--accent); }

/* 填充页签 */
.ftabs { display: flex; gap: 4px; background: var(--surface2); padding: 3px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.ftabs button {
  flex: 1; height: 27px; font-size: 12px; font-weight: 500; color: var(--muted);
  border-radius: 5px; transition: background .12s, color .12s;
}
.ftabs button:hover { color: var(--ink); }
.ftabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(60, 48, 32, .12); }

.grad-preview {
  height: 30px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); margin-bottom: 8px;
}

/* 切口列表 */
.cutout-list { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow-y: auto; margin-top: 6px; }
.cutout-item {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 8px;
  background: var(--surface2); border-radius: 6px;
  font-size: 12px; color: var(--muted);
}
.cutout-item .co-del { margin-left: auto; color: var(--danger); width: 20px; height: 20px; border-radius: 5px; }
.cutout-item .co-del:hover { background: #f0d9d4; }
.cutout-empty { font-size: 12px; color: var(--muted); padding: 4px 2px; }

/* 图层面板 */
.layer-ops {
  display: flex; align-items: center; gap: 4px;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: -14px; background: var(--surface); z-index: 2;
  padding-top: 2px;
}
.layer-ops .mini-btn { width: 32px; padding: 0; flex: none; height: 28px; }
#layersList { display: flex; flex-direction: column; gap: 3px; }
.layer-row {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .1s, border-color .1s;
}
.layer-row:hover { background: var(--surface2); }
.layer-row.selected { background: var(--accent-soft); border-color: rgba(212, 85, 43, .4); }
.layer-row .lr-icon { width: 20px; height: 20px; flex: none; color: #6a6053; }
.layer-row .lr-icon svg { width: 20px; height: 20px; }
.layer-row.selected .lr-icon { color: var(--accent); }
.layer-row .lr-name {
  flex: 1; min-width: 0;
  font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.layer-row .lr-name input {
  width: 100%; padding: 2px 5px;
  border: 1px solid var(--accent); border-radius: 4px; background: #fff;
}
.layer-row.dim .lr-name { color: var(--muted); }
.lr-tgl {
  width: 24px; height: 24px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; color: #6a6053; font-size: 13px;
}
.lr-tgl:hover { background: rgba(0, 0, 0, .06); }
.lr-tgl.off { opacity: .35; }
.layer-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 22px 0; }

/* ---------- 状态栏 ---------- */
#statusbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 14px;
  font-size: 11.5px; color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 40;
}
#statusPos { min-width: 90px; font-variant-numeric: tabular-nums; }
#statusHint { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statusInfo { white-space: nowrap; }

/* ---------- 弹窗 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(38, 32, 26, .45);
  backdrop-filter: blur(2px);
  padding: 18px;
}
.modal {
  width: 400px; max-width: 100%;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  animation: modal-in .18s ease;
}
.modal.wide { width: 640px; }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.m-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.m-row > label:first-child { width: 62px; flex: none; font-size: 13px; color: var(--muted); }
.m-row input[type="text"], .m-row input[type="password"] {
  flex: 1; min-width: 0;
  padding: 7px 10px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.m-note { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn {
  height: 36px; padding: 0 18px;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: background .12s;
}
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #bf4a24; }

/* 分段选择 */
.seg { display: flex; gap: 3px; background: var(--surface2); padding: 3px; border-radius: var(--radius-sm); }
.seg button {
  height: 28px; padding: 0 13px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  border-radius: 5px; transition: background .12s, color .12s;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(60, 48, 32, .12); }

/* 帮助 */
.help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help-cols h6 { font-size: 12px; color: var(--accent); margin: 12px 0 6px; letter-spacing: .05em; }
.help-cols h6:first-child { margin-top: 0; }
table.keys { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.keys td { padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
table.keys td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; padding-right: 10px; }

/* ---------- 透明色板（背景透明切换） ---------- */
.sw-transparent {
  position: relative;
  background:
    linear-gradient(45deg, transparent 46%, rgba(178, 58, 46, .85) 46%, rgba(178, 58, 46, .85) 54%, transparent 54%),
    conic-gradient(#f2f0ea 0 25%, #dcd8cd 0 50%, #f2f0ea 0 75%, #dcd8cd 0);
  background-size: 100% 100%, 10px 10px;
  border-radius: 6px;
}
.sw-transparent:hover { transform: scale(1.15); }

/* ---------- 语言切换按钮 ---------- */
.lang-btn { font-weight: 600; letter-spacing: .02em; }
#btnLang span { display: inline; }   /* 紧凑模式下仍显示语言标签 */

/* ---------- 关于与版权弹窗 ---------- */
.about-modal h6 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
  margin: 16px 0 6px;
}
.about-desc { font-size: 13px; line-height: 1.7; color: var(--ink); }
.about-license {
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 8px;
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.contact-row .ct-label { flex: none; font-size: 12px; color: var(--muted); min-width: 52px; }
.contact-row .ct-value {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 700; color: var(--teal);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: .04em;
}
.contact-row .mini-btn { flex: none; }
.contact-row .ct-link {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; word-break: break-all;
}
.contact-row .ct-link:hover { text-decoration: underline; }
.about-star {
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-align: center; margin-top: 14px;
}

/* ---------- Toast ---------- */
#toasts {
  position: fixed; left: 50%; top: 64px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 200; pointer-events: none;
  width: max-content; max-width: calc(100vw - 30px);
}
.toast {
  padding: 9px 18px;
  background: rgba(38, 32, 26, .92); color: #f4ede3;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
  max-width: 100%;
}
.toast.err { background: rgba(178, 58, 46, .95); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 错误横幅 */
#errBanner {
  position: fixed; left: 12px; bottom: 40px; z-index: 300;
  max-width: 440px;
  background: #2c2118; color: #ffd9c9;
  font-size: 12px; line-height: 1.5;
  padding: 10px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-family: ui-monospace, monospace;
  word-break: break-all;
}

/* 滚动条 */
.sp-pane::-webkit-scrollbar, .modal::-webkit-scrollbar, .cutout-list::-webkit-scrollbar, #layersList::-webkit-scrollbar { width: 8px; }
.sp-pane::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb, .cutout-list::-webkit-scrollbar-thumb, #layersList::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: 4px; border: 2px solid var(--surface);
}

/* ============================================================
   响应式
   ============================================================ */

/* ≤ 1080px：右侧面板变抽屉 */
@media (max-width: 1080px) {
  #main { grid-template-columns: 52px 1fr 0; }
  #sidePanel {
    position: fixed; top: 52px; bottom: 30px; right: 0;
    width: min(320px, 88vw);
    transform: translateX(100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  #sidePanel.open { transform: none; }
  .only-compact { display: flex; }
}

/* ≤ 760px：顶栏紧凑 */
@media (max-width: 760px) {
  #app { grid-template-rows: 48px 1fr 26px; }
  .brand-name, .doc-meta, #btnZoomFit span, #topbar .tb-sep { display: none; }
  .text-btn span { display: none; }
  .text-btn { padding: 0 9px; }
  #btnZoomFit { padding: 0 8px; }
  .zoom-label { min-width: 38px; font-size: 11.5px; }
  #statusHint { display: none; }
  #statusPos { min-width: 70px; }
  .modal { padding: 16px; }
  .help-cols { grid-template-columns: 1fr; }
  .row.nums.four label { flex-direction: row; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ≤ 480px：工具栏更窄 */
@media (max-width: 480px) {
  #main { grid-template-columns: 46px 1fr 0; }
  .tool-btn { width: 34px; height: 34px; }
  .tool-btn svg { width: 19px; height: 19px; }
  #toolbar { padding: 6px 0; }
  .float-bar { bottom: 10px; padding: 6px 10px; }
}
