/* 原 styles.css L1-L104 连续区间纯移动（UI 重构阶段 A）。内容：:root 设计 token + 全局基础。层叠顺序由 01→12 的 <link> 顺序保持。 */
/* 这套墨蓝白纸是【默认调色板】：当前由最后加载的 honey.css 整体覆盖成蜜色主题。
   它不是死代码，是无皮肤时的回退基准；调整线上配色请改 honey.css 的变量。 */
:root {
  color-scheme: light;
  --ink: #17202f;
  --muted: #6f7785;
  --line: #dce2ea;
  --paper: #ffffff;
  --canvas: #ffffff;
  --soft: #f8fafc;
  --accent: #17202f;
  --brush-color: #2563eb;
  --text-bg-brush-color: #fff3a3;
  --control-bg: #fbfcfe;
  --control-text: #263140;
  --popover-bg: #ffffff;
  --preview-bg: #ffffff;
  --preview-mask: #ffffff;
  --active-bg: #17202f;
  --active-text: #ffffff;
  --active-border: #17202f;
  --primary-bg: #17202f;
  --primary-text: #ffffff;
  --guide-bg: #f8fafc;
  --guide-text: #4b5565;
  --avatar-bg: #eef6e6;
  --thumb-bg: #eef1f5;
  --crop-stage-bg: #111827;
  --crop-canvas-bg: #0b1020;
  --modal-overlay: rgba(15, 23, 42, 0.44);
  --shadow-soft: 0 10px 18px rgba(23, 32, 47, 0.05);
  --shadow-popover: 0 18px 50px rgba(23, 32, 47, 0.18);
  --shadow-card: 0 18px 46px rgba(23, 32, 47, 0.16);
  --focus-ring: rgba(23, 32, 47, 0.14);
  --green: #1f8a63;
  --coral: #e55d42;
  --shadow: 0 18px 50px rgba(23, 32, 47, 0.12);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* 工作区一行、页脚一行：页脚要真的占位，不能浮在内容上面挡住卡片。 */
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  /* 界面字体就是系统字体栈：此前声明的 Inter 从未加载，删掉以免装了 Inter 的设备观感漂移。 */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  /* 按钮文字不随容器换行：窄宽度下「历史」等短词曾被竖排折行。 */
  white-space: nowrap;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(395px, var(--editor-width, 500px)) 6px minmax(360px, 1fr);
  height: 100%;
  min-height: 0;
}

.site-footer {
  position: relative;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: calc(46px + env(safe-area-inset-bottom, 0px));
  padding: 0 max(18px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(18px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

