:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #F0EEE9;
  --soft: #f9f9fb;
  --task-bar-width: 1100px;
  /* AI生图区双模式：宽/窄严格切换，中间不随视口连续变化 */
  --ai-image-breakpoint: 1450px;
  --ai-image-wide-width: 1280px;
  --ai-image-narrow-width: 760px;
}

html.theme-dark {
  --bg: #141414;
  --surface: #1e1e1e;
  --text: #f0f0f0;
  --muted: #a6a6a6;
  --line: #333333;
  --blue: #F0EEE9;
  --soft: #242424;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body,
.top-nav,
#ai-image .task-tabs-shell,
.panel,
.task-card,
.tool-modal-card,
.prompt-box,
.field-group select,
.prompt-editor-textarea,
.auth-card,
.left-float-main-btn,
.left-float-btn,
.nav-settings-panel,
.icon-btn,
.nav-menu-item {
  transition:
    background-color 420ms ease,
    color 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}
