#tool-body {
  --wb-bar: #f4f1ea;
  --wb-bar-border: #e3ddd2;
  --wb-text: #3c3832;
  --wb-muted: #8a8176;
  --wb-btn: #fffdf9;
  --wb-btn-border: #e0d9cc;
  --wb-hover: #f7f1e6;
  --wb-on: #2c3338;
  --wb-on-text: #fff;
  --wb-paper: #fffef9;
  --wb-board: #16352c;
  color: var(--wb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
.theme-dark-mode #tool-body {
  --wb-bar: #2a2926;
  --wb-bar-border: #45433e;
  --wb-text: #f3f0ea;
  --wb-muted: #b7b0a6;
  --wb-btn: #35332f;
  --wb-btn-border: #524e47;
  --wb-hover: #403e39;
  --wb-on: #f3f0ea;
  --wb-on-text: #241f1a;
  --wb-paper: #fffef9;
  --wb-board: #16352c;
}
#tool-body .wb-app,
#tool-body .wb-app * { box-sizing: border-box; }
#tool-body .wb-app {
  height: calc(100vh - 150px);
  height: calc(100dvh - 150px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
#tool-body .wb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--wb-bar);
  border: 1px solid var(--wb-bar-border);
  border-radius: 12px;
  user-select: none;
}
#tool-body .wb-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding-right: 8px;
  border-right: 1px solid var(--wb-bar-border);
}
#tool-body .wb-group:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}
#tool-body .wb-split {
  display: none;
  width: 1px;
  flex: 0 0 auto;
  align-self: stretch;
  margin: 0 4px;
  background: var(--wb-bar-border);
}
#tool-body .wb-colors.is-hidden { display: none; }
#tool-body .wb-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--wb-btn-border);
  border-radius: 8px;
  background: var(--wb-btn);
  color: var(--wb-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  cursor: pointer;
  white-space: nowrap;
}
#tool-body .wb-btn:hover:not(:disabled):not(.is-on) { background: var(--wb-hover); }
#tool-body .wb-btn.is-on {
  background: var(--wb-on);
  border-color: var(--wb-on);
  color: var(--wb-on-text);
}
#tool-body .wb-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
#tool-body .wb-btn:focus { outline: none; }
#tool-body .wb-btn:focus-visible { box-shadow: 0 0 0 2px var(--wb-on); }
#tool-body .wb-swatch {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--wb-bar-border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}
#tool-body .wb-swatch.is-on {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 0 0 2px var(--wb-muted);
}
#tool-body #wb-file {
  position: fixed;
  left: -100px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#tool-body .wb-page {
  min-width: 46px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--wb-muted);
}
#tool-body .wb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--wb-bar-border);
  border-radius: 12px;
  background: var(--wb-paper);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#tool-body .wb-stage.is-board { background: var(--wb-board); }
#tool-body .wb-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#tool-body #wb-main { z-index: 1; pointer-events: none; }
#tool-body #wb-preview { z-index: 2; cursor: crosshair; }
#tool-body .wb-stage.tool-text #wb-preview { cursor: text; }
#tool-body .wb-stage.tool-eraser #wb-preview { cursor: none; }
#tool-body .wb-stage.tool-move #wb-preview { cursor: grab; }
#tool-body .wb-stage.is-moving #wb-preview { cursor: grabbing; }
#tool-body .wb-editor {
  display: none;
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0;
  width: 24px;
  height: 32px;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 -2px 0 currentColor;
  white-space: pre;
  user-select: text;
  -webkit-user-select: text;
}
body.is-fullscreen #tool-body .wb-app,
#tool-body.wb-fullscreen .wb-app {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
}
#tool-body.wb-fullscreen {
  position: fixed !important;
  z-index: 1000100 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
  overflow: hidden !important;
  background: var(--wb-bar);
}
#tool-body.wb-fullscreen .wb-bar {
  flex: none;
  margin-bottom: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
#tool-body.wb-fullscreen .wb-stage {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0;
  border-radius: 0;
}
@media screen and (max-width: 768px) {
  #tool-body .wb-app {
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
    min-height: 360px;
  }
  #tool-body .wb-bar {
    gap: 6px 4px;
  }
  #tool-body .wb-group {
    display: contents;
  }
  #tool-body .wb-split {
    display: block;
  }
  #tool-body .wb-btn {
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }
}