/* Design tool chrome. Scoped so the rest of the site keeps its own dark look. */
body.wd-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #1e1e1e;
  color: #fff;
  font-family: "Wy Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

body.wd-app h1,
body.wd-app h2,
body.wd-app .who,
body.wd-app .canvas-title {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
  line-height: 1.3;
}

body.wd-app button,
body.wd-app input {
  margin: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
}

body.wd-app button:hover { color: inherit; border-color: transparent; }

.wd-root,
.wd-browser,
.wd-editor {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.wd-browser {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.wd-side,
.wd-layers,
.wd-props {
  background: #2c2c2c;
  min-width: 0;
  min-height: 0;
}

.wd-side {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px 10px;
}

.wd-brand {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
}

.wd-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-label {
  margin: 18px 8px 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.wd-navbtn,
.wd-tool,
.wd-iconbtn,
.wd-card,
.wd-back,
.wd-toggle,
.wd-primary {
  cursor: pointer;
}

.wd-navbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.wd-navbtn svg,
.wd-tool svg,
.wd-iconbtn svg,
.wd-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wd-navbtn:hover,
.wd-tool:hover,
.wd-iconbtn:hover,
.wd-back:hover { background: rgba(255, 255, 255, 0.06); }

.wd-navbtn[aria-current="true"] {
  background: #0d99ff;
  color: #fff;
}

.wd-navbtn small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.wd-navbtn[aria-current="true"] small { color: rgba(255, 255, 255, 0.8); }

.wd-side-foot {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 10px 8px 2px;
  color: rgba(255, 255, 255, 0.55);
}

.wd-side-foot a { color: inherit; text-decoration: none; }
.wd-side-foot a:hover { color: #fff; }

.wd-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #1e1e1e;
}

.wd-filebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-search {
  position: relative;
  flex: 1;
  max-width: 560px;
  min-width: 0;
}

.wd-search svg {
  position: absolute;
  left: 8px;
  top: 8px;
  color: rgba(255, 255, 255, 0.55);
}

body.wd-app .wd-search input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 30px;
  border: 0;
  border-bottom: 0;
  background: #2c2c2c;
  color: #fff;
}

body.wd-app .wd-search input::placeholder { color: rgba(255, 255, 255, 0.4); }

.wd-scroll {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 40px;
}

.wd-heading {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 560;
}

.wd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 22px 16px;
}

.wd-card {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.wd-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #2c2c2c;
}

.wd-card:hover .wd-thumb,
.wd-card:focus-visible .wd-thumb { border-color: #0d99ff; }

.wd-sheet {
  width: 62%;
  height: 68%;
  border-radius: 2px;
  background: #f4f4f4;
}

.wd-sheet.is-draft {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.45);
}

.wd-name {
  margin: 8px 2px 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-sub {
  margin: 2px 2px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.wd-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 460px;
  margin-top: 12px;
}

.wd-mat {
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #2c2c2c;
}

.wd-mat span {
  width: 58%;
  height: 62%;
  border-radius: 2px;
  background: #f7f7f7;
}

.wd-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.wd-primary {
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: #0d99ff;
  color: #fff;
}

.wd-primary:hover { background: #0b86e0; color: #fff; }

.wd-editor {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  background: #1e1e1e;
}

.wd-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 8px;
  background: #2c2c2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-top-left,
.wd-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.wd-top-right { justify-content: flex-end; }

.wd-back,
.wd-tool,
.wd-iconbtn,
.wd-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
}

.wd-back { gap: 4px; padding: 0 8px; white-space: nowrap; flex: 0 0 auto; }
.wd-tool,
.wd-iconbtn { width: 32px; padding: 0; }
.wd-tool[aria-pressed="true"],
.wd-tool[aria-pressed="true"]:hover { background: rgba(13, 153, 255, 0.22); color: #0d99ff; }

.wd-tools {
  display: flex;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.wd-tools::-webkit-scrollbar { display: none; }

.wd-filename {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-zoom { color: rgba(255, 255, 255, 0.7); padding-right: 6px; }

.wd-stage {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 248px;
  min-width: 0;
  min-height: 0;
}

.wd-layers,
.wd-props {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.wd-layers { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.wd-props { border-left: 1px solid rgba(255, 255, 255, 0.08); }

.wd-panel-title {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 560;
}

.wd-layer {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.wd-layer.is-child { padding-left: 28px; }
.wd-layer[aria-current="true"] { background: #0d99ff; color: #fff; }

.wd-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background-color: #141414;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
}

.wd-frame-wrap { width: min(680px, 72%); }

.wd-hint {
  position: absolute;
  left: 16px;
  top: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

#wd-objects,
.wd-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wd-paths { pointer-events: none; overflow: visible; }

.wd-obj {
  position: absolute;
  box-sizing: border-box;
}

.wd-obj.is-selected { outline: 2px solid #0d99ff; outline-offset: 1px; }

.wd-text {
  min-width: 24px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  cursor: text;
}

.wd-pin {
  width: 22px;
  height: 22px;
  border-radius: 11px 11px 11px 2px;
  background: #0d99ff;
}

.wd-pin-text {
  position: absolute;
  left: 28px;
  top: 0;
  display: none;
  width: 160px;
  min-height: 52px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: #2c2c2c;
  color: #fff;
}

.wd-obj.is-selected .wd-pin-text { display: block; }

.wd-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 6px 0 8px;
}

.wd-layer-row[aria-current="true"] { background: #0d99ff; }

body.wd-app .wd-layer-name {
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-bottom: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
}

.wd-layer-row button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.wd-layer-row svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wd-frame-label {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.wd-artboard {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.wd-artboard.is-selected { outline: 2px solid #0d99ff; outline-offset: 1px; }

.wd-fields { padding: 8px 12px 16px; }

.wd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.wd-field { color: rgba(255, 255, 255, 0.55); }

body.wd-app .wd-field input {
  width: 100%;
  height: 28px;
  margin-top: 4px;
  padding: 0 8px;
  border: 0;
  border-bottom: 0;
  background: #383838;
  color: #fff;
}

.wd-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-top: 10px;
}

.wd-chip {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: #fff;
}

.wd-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.wd-toggle { display: none; }
.wd-menu { display: none; }

.wd-gate {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 32px 20px;
  background: #1e1e1e;
}

.wd-gate-card { width: min(420px, 100%); }
.wd-gate h1 {
  margin: 0 0 8px;
  font-size: 28px !important;
  font-weight: 500;
}
.wd-gate p { margin: 0; color: rgba(255, 255, 255, 0.7); }
.wd-gate .wd-primary { display: inline-flex; align-items: center; margin-top: 20px; text-decoration: none; }

@media (max-width: 840px) {
  .wd-browser { grid-template-columns: minmax(0, 1fr); }
  .wd-side {
    display: none;
    position: absolute;
    z-index: 5;
    top: 48px;
    bottom: 0;
    left: 0;
    width: min(280px, 88vw);
  }
  .wd-side.is-open { display: flex; }
  .wd-menu { display: inline-flex; }
  .wd-browser { position: relative; }
  .wd-scroll { padding: 16px; }
  .wd-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wd-top {
    display: flex;
    min-width: 0;
  }
  .wd-filename { flex: 1; max-width: none; }
  .wd-tools { flex: 0 1 auto; max-width: 42vw; }
  .wd-zoom { display: none; }
  .wd-toggle { display: inline-flex; width: auto; padding: 0 8px; }
  .wd-stage { grid-template-columns: minmax(0, 1fr); }
  .wd-layers,
  .wd-props { display: none; }
  .wd-layers.is-open,
  .wd-props.is-open {
    display: flex;
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    width: min(280px, 88vw);
  }
  .wd-layers.is-open { left: 0; }
  .wd-props.is-open { right: 0; }
  .wd-frame-wrap { width: min(680px, 86%); }
  .wd-rail { display: none; }
  .wd-dock { max-width: calc(100% - 16px); }
}

.wd-side { background: #1e1e1e; padding: 14px 10px 12px; }
.wd-main { background: #2c2c2c; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.wd-search { margin: 0 0 12px; background: #2c2c2c; }
.wd-side .wd-search { flex: 0 0 auto; width: 100%; max-width: none; }
.wd-navbtn[aria-current="true"] { background: #0d99ff; color: #fff; border-radius: 6px; }
.wd-who { margin: 14px 8px 4px; color: #fff; font-size: 13px; font-weight: 560; }
.wd-side-block { margin-top: 8px; }
.wd-filebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  height: auto;
  min-height: 52px;
  padding: 18px 20px 8px;
  border-bottom: 0;
}
.wd-heading { flex: 1 0 100%; margin: 0; font-size: 20px; font-weight: 560; }
.wd-filebar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 100%;
  min-width: 0;
}
.wd-tabs { display: flex; gap: 4px; min-width: 0; flex: 1 1 auto; }
.wd-tab {
  height: 28px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}
.wd-tab[aria-current="true"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.wd-filters { margin-left: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; flex: 0 0 auto; }
.wd-filter, .wd-filter select {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  padding: 0 8px;
}
.wd-filter select { max-width: 168px; }
.wd-tab { white-space: nowrap; }
.wd-scroll { padding: 8px 24px 28px; overflow-x: hidden; overflow-y: auto; }
.wd-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 12px; }
.wd-grid.is-list { grid-template-columns: 1fr; }
.wd-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}
.wd-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 8px;
  background: #e4e4e4;
}
.wd-card:hover .wd-thumb { outline: 2px solid #0d99ff; }
.wd-name { font-size: 12px; font-weight: 500; }
.wd-sub { color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.wd-card.is-quiet { cursor: default; }
.wd-grid.is-list .wd-card { flex-direction: row; align-items: center; }
.wd-grid.is-list .wd-thumb { width: 96px; aspect-ratio: 16 / 10; flex: 0 0 auto; }

.wd-stage { grid-template-columns: 48px 240px minmax(0, 1fr) 240px; }
.wd-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  background: #1e1e1e;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.wd-railbtn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}
.wd-railbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wd-railbtn[aria-pressed="true"] { background: #0d99ff; color: #fff; }
.wd-canvas {
  background: #e6e6e6;
  background-image: none;
}
.wd-canvas { position: relative; }
.wd-dock {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  background: #2c2c2c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 3;
}
.wd-dock .wd-tool { color: #fff; }
.wd-text { color: #111; min-width: 24px; min-height: 20px; overflow: visible; line-height: 1.2; }
body.wd-app #wd-fields select {
  width: 100%;
  height: 28px;
  margin-top: 4px;
  padding: 0 8px;
  border: 0;
  background: #383838;
  color: #fff;
}
.wd-obj.is-selected { outline: 2px solid #0d99ff; outline-offset: 1px; }
.wd-mode { display: flex; gap: 8px; padding: 10px 12px 0; }
.wd-mode button {
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.wd-mode button[aria-current="true"] { color: #fff; box-shadow: inset 0 -2px 0 #0d99ff; }
.wd-section { margin: 12px 0 6px; color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.wd-align { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.wd-align button {
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: #3a3a3a;
  color: #fff;
  cursor: pointer;
}
.wd-props { overflow: auto; }

.wd-dock {
  gap: 4px;
  padding: 8px;
}
.wd-dock .wd-tool {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.wd-dock .wd-tool svg.is-solid,
.wd-railbtn svg.is-solid,
.wd-present-btn svg.is-solid {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}
.wd-dock .wd-tool[aria-pressed="true"],
.wd-dock .wd-tool[aria-pressed="true"]:hover {
  background: #0d99ff;
  color: #fff;
}
.wd-railbtn {
  width: 36px;
  height: 36px;
}
.wd-present-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #0d99ff;
  color: #fff;
  cursor: pointer;
}
.wd-present-btn svg.is-solid { width: 16px; height: 16px; }
.wd-layer-row svg.is-solid {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.wd-show {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #111;
  color: #fff;
}
.wd-show-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.wd-show-boards {
  position: relative;
  width: 100%;
  height: 100%;
}
.wd-show-board {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  transition: transform 360ms ease, opacity 360ms ease;
}
.wd-show-board.is-incoming { opacity: 0; transform: translateX(42px); }
.wd-show-board.is-incoming.is-on { opacity: 1; transform: none; }
.wd-show-board.is-outgoing { opacity: 0; transform: translateX(-42px); }
.wd-show-art {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.wd-show-obj,
.wd-show-pin,
.wd-show-path {
  position: absolute;
}
.wd-show-obj.is-text {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.3;
}
.wd-show-path { inset: 0; width: 100%; height: 100%; }
.wd-show-pin {
  max-width: 40%;
  padding: 4px 6px;
  border-radius: 6px;
  background: #0d99ff;
  color: #fff;
  font-size: 12px;
}
.wd-show-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px 16px;
  background: #1c1c1c;
}
.wd-show-bar button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #3a3a3a;
  color: #fff;
  cursor: pointer;
}
.wd-show-bar button[aria-pressed="true"] { background: #0d99ff; }
.wd-show-progress { margin-right: 8px; }
.wd-show-hint { margin: 0; color: rgba(255, 255, 255, 0.7); }
.wd-show-empty {
  margin: auto;
  text-align: center;
}
.wd-show-empty button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #0d99ff;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 840px) {
  .wd-stage { grid-template-columns: minmax(0, 1fr); }
  .wd-rail { display: none; }
  .wd-filebar { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .wd-filebar-row { flex-wrap: wrap; }
  .wd-filters { margin-left: 0; flex-wrap: wrap; }
  .wd-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (min-width: 841px) {
  .wd-editor { grid-template-rows: 40px minmax(0, 1fr); }
  .wd-top { height: 40px; }
  .wd-browser,
  .wd-editor,
  .wd-stage { overflow: hidden; }
  .wd-side { overflow: auto; }
  .wd-stage { grid-template-columns: 48px 240px minmax(0, 1fr) 240px; }
  .wd-rail,
  .wd-layers,
  .wd-props {
    display: flex;
    position: relative;
    width: auto;
    height: auto;
    max-height: none;
  }
  .wd-layers,
  .wd-props { overflow: auto; }
  .wd-canvas { overflow: hidden; }
}

.wd-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 6400px;
  height: 4800px;
  transform-origin: 0 0;
  z-index: 1;
}
.wd-dock { z-index: 4; }
.wd-board-name {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  pointer-events: none;
}
html:has(body.wd-app) { overflow: hidden; }

body.wd-app label.wd-filter,
body.wd-app span.wd-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  height: 28px;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
body.wd-app .wd-filter select {
  display: inline-block;
  width: auto;
  min-width: 108px;
  max-width: 160px;
  margin: 0;
  padding: 0 8px;
  height: 28px;
  line-height: 28px;
}

body.wd-app > .top {
  background: rgba(28, 25, 22, 0.96);
  color: #f8f3ea;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
body.wd-app > .top .brand-row { align-items: center; }
body.wd-app > .top .brand {
  font-family: "Wy Display", "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #f8f3ea;
}
body.wd-app > .top .free-tag {
  height: 20px;
  font-size: 11px;
}
body.wd-app > .top .lang-switch button {
  width: auto;
  height: 22px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #f0e6d6;
  font-size: 12px;
}
body.wd-app > .top .lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: rgba(232, 196, 122, 0.18);
}
body.wd-app > .top .desk-btn {
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(232, 196, 122, 0.5);
  border-radius: 8px;
  background: transparent;
  color: #f3efe6;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
body.wd-app > .top .desk-btn:hover {
  border-color: #f0c36a;
  color: #fff;
  background: rgba(232, 196, 122, 0.12);
}
body.wd-app > .top .top-nav a {
  font-size: 14px;
  color: #f0e6d6;
}
body.wd-app > .top .top-nav a:hover,
body.wd-app > .top .top-nav a[aria-current="page"] { color: #fff; }
body.wd-app > .top .top-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #f0c36a; }
body.wd-app > .top .nav-toggle {
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: transparent;
  color: #f8f3ea;
  font-size: 14px;
}
body.wd-app > .top .nav-toggle:hover {
  border-color: #f0c36a;
  color: #fff;
}
