/* MIMO 3.2 — 精修但不改变画布上的绘制或输出颜色 */
  body.mimo-theme {
    --mimo-headline: #a82e69;
    --mimo-control-surface: #fffafb;
    --mimo-control-hover: #fff0f7;
    --mimo-divider: #ebd3df;
    --mimo-control-text: #291923;
  }
  body.mimo-theme[data-theme="dark"] {
    --mimo-headline: #ffadd1;
    --mimo-control-surface: #1d1520;
    --mimo-control-hover: #32202d;
    --mimo-divider: #493043;
    --mimo-control-text: #fff1f8;
  }
  body.mimo-theme aside {
    background: var(--mimo-bg) !important;
    border-right: 1px solid var(--mimo-divider) !important;
  }
  /* 单一平面底色 + 轻分割线，不再堆层层半透明渐变卡片 */
  body.mimo-theme aside > section {
    background: var(--mimo-panel) !important;
    border: 1px solid var(--mimo-divider) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 16px !important;
    margin: 10px 12px 0 !important;
    padding: 16px !important;
  }
  body.mimo-theme aside > section::before { display: none !important; }
  body.mimo-theme aside > section:last-child { margin-bottom: 14px !important; }
  body.mimo-theme aside h2,
  body.mimo-theme aside #shared-common-panel .uppercase,
  body.mimo-theme aside > section > .uppercase,
  body.mimo-theme aside > section > label.font-semibold {
    color: var(--mimo-headline) !important;
    letter-spacing: .015em !important;
    font-weight: 700 !important;
  }
  body.mimo-theme aside #shared-common-panel .uppercase { font-size: 12px; }
  body.mimo-theme aside > section > h2,
  body.mimo-theme aside > section > div > h2,
  body.mimo-theme aside > section > div > div > h2 { font-size: 12px; line-height: 1.6; }
  body.mimo-theme aside p,
  body.mimo-theme aside .text-slate-400,
  body.mimo-theme aside .text-slate-500,
  body.mimo-theme aside .text-slate-600,
  body.mimo-theme aside .text-slate-700 {
    color: var(--mimo-muted) !important;
  }
  body.mimo-theme aside .text-slate-300,
  body.mimo-theme aside label,
  body.mimo-theme aside .text-xs,
  body.mimo-theme aside .text-\[11px\] { color: var(--mimo-control-text); }
  body.mimo-theme aside #drop-zone {
    background: var(--mimo-control-surface) !important;
    border: 1px dashed var(--mimo-border-strong) !important;
    border-radius: 13px !important;
  }
  body.mimo-theme aside #drop-zone:hover {
    background: var(--mimo-control-hover) !important;
    border-color: var(--mimo-accent) !important;
  }
  body.mimo-theme aside #elements-list > div {
    background: var(--mimo-control-surface) !important;
    border: 1px solid var(--mimo-divider) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }
  body.mimo-theme aside #elements-list > div:hover { border-color: var(--mimo-accent) !important; }
  body.mimo-theme aside .layout-mode-btn,
  body.mimo-theme aside .sizemode-btn,
  body.mimo-theme aside .rot-mode-btn,
  body.mimo-theme aside .canvas-preset-btn,
  body.mimo-theme aside .dpi-preset-btn {
    background: var(--mimo-control-surface) !important;
    border: 1px solid var(--mimo-divider) !important;
    color: var(--mimo-control-text) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }
  body.mimo-theme aside .layout-mode-btn.active,
  body.mimo-theme aside .sizemode-btn.active,
  body.mimo-theme aside .rot-mode-btn.active,
  body.mimo-theme aside .canvas-preset-btn.active,
  body.mimo-theme aside .dpi-preset-btn.bg-indigo-600 {
    background: var(--mimo-accent-soft) !important;
    border-color: var(--mimo-accent) !important;
    color: var(--mimo-headline) !important;
  }
  body.mimo-theme aside input[type="number"],
  body.mimo-theme aside input[type="text"],
  body.mimo-theme aside select {
    background: var(--mimo-control-surface) !important;
    border: 1px solid var(--mimo-border-strong) !important;
    color: var(--mimo-control-text) !important;
    border-radius: 10px !important;
    min-height: 32px;
  }
  body.mimo-theme aside input[type="range"] { accent-color: var(--mimo-accent) !important; }
  body.mimo-theme aside input:focus-visible,
  body.mimo-theme aside select:focus-visible,
  body.mimo-theme aside button:focus-visible,
  body.mimo-theme #btn-theme-light:focus-visible,
  body.mimo-theme #btn-theme-dark:focus-visible {
    outline: 2px solid var(--mimo-accent) !important;
    outline-offset: 2px;
  }
  body.mimo-theme aside #btn-sticker-fill,
  body.mimo-theme aside #btn-sticker-randomize {
    border-radius: 12px !important;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    box-shadow: none !important;
  }
  body.mimo-theme aside #seamless-module-panel,
  body.mimo-theme aside #sticker-mode-panel {
    border-color: var(--mimo-border-strong) !important;
  }
  body.mimo-theme aside #seamless-module-panel h2,
  body.mimo-theme aside #sticker-mode-panel h2,
  body.mimo-theme aside #shared-common-panel .uppercase {
    color: var(--mimo-headline) !important;
  }
  /* 开关收起时仍显示可点击的模块标题；专属控制节本身由 hidden 决定 */
  body.mimo-theme #mimo-seamless-layout-controls.hidden,
  body.mimo-theme #mimo-seamless-rotation-controls.hidden,
  body.mimo-theme #sticker-extra-controls.hidden { display: none !important; }
  body.mimo-theme #toggle-seamless-module + span,
  body.mimo-theme #toggle-sticker-mode + span { border: 1px solid var(--mimo-border-strong); }
  /* 通知重新独立配色：不能继承通用 slate/rose 文本覆盖导致白底白字。 */
  body.mimo-theme #toast-container {
    width: min(370px, calc(100vw - 32px));
    right: 16px;
    bottom: 16px;
    gap: 9px;
    z-index: 100 !important;
  }
  body.mimo-theme #toast-container > .mimo-toast {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px !important;
    border-radius: 13px !important;
    box-shadow: 0 12px 28px rgba(57,19,40,.14) !important;
    backdrop-filter: none !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
    background: #ffffff !important;
    border: 1px solid #d99bb5 !important;
    color: #402131 !important;
  }
  body.mimo-theme #toast-container > .mimo-toast[data-kind="error"] {
    background: #fff2f5 !important;
    border-color: #d9688c !important;
    color: #70213a !important;
  }
  body.mimo-theme[data-theme="dark"] #toast-container > .mimo-toast {
    background: #261624 !important;
    border-color: #a64b7e !important;
    color: #fff4fa !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.36) !important;
  }
  body.mimo-theme[data-theme="dark"] #toast-container > .mimo-toast[data-kind="error"] {
    background: #3a1927 !important;
    border-color: #f4769b !important;
    color: #ffe7ef !important;
  }
  body.mimo-theme #toast-container .mimo-toast-message {
    color: inherit !important;
    display: block;
    flex: 1;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }
  body.mimo-theme #toast-container .mimo-toast-icon {
    flex: 0 0 23px;
    height: 23px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: #fff !important;
    background: #bf3976 !important;
    margin-top: 1px;
  }
  body.mimo-theme #toast-container .mimo-toast[data-kind="error"] .mimo-toast-icon {
    background: #bd355b !important;
    color: #fff !important;
  }
  @media (prefers-reduced-motion: reduce) {
    body.mimo-theme aside button,
    body.mimo-theme .mimo-toast { transition-duration: .01ms !important; }
  }
