/* tokens.css — 纸与墨色板、兼容别名、字体、尺寸与无障碍动效。 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; margin: 0; }
::selection { background: var(--interactive-soft); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
[hidden] { display: none !important; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.lg { width: 18px; height: 18px; }
.i.sm { width: 13px; height: 13px; }
.spacer { flex: 1; }
::view-transition-group(*) { animation-duration: var(--motion-layout); animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation: vt-out 90ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 220ms var(--ease-out) 40ms both; }
.topbar { view-transition-name: mine-shell; }
.tabbar { view-transition-name: mine-tabbar; }
::view-transition-old(mine-shell) { animation: none; opacity: 0; }
::view-transition-old(mine-tabbar) { animation: none; opacity: 0; }
::view-transition-new(mine-shell) { animation: none; }
::view-transition-new(mine-tabbar) { animation: none; }
::view-transition-group(nav-pill) { animation-duration: 260ms; }
::view-transition-group(tab-pill) { animation-duration: 260ms; }
html.vt-theme::view-transition-old(*) { animation: none; }
html.vt-theme::view-transition-new(*) { animation: vt-fade 240ms ease both; }
html.vt-theme::view-transition-group(*) { animation-duration: 0s; }
#app.enter { animation: screenIn .28s cubic-bezier(.2,.8,.2,1); }
#login.enter { animation: screenIn .28s cubic-bezier(.2,.8,.2,1); }
#app.leave { animation: screenOut .16s ease forwards; }
#login.leave { animation: screenOut .16s ease forwards; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-underline-offset: .2em; touch-action: manipulation; }
select { touch-action: manipulation; }
summary { touch-action: manipulation; }
input { touch-action: manipulation; caret-color: var(--brand); }
textarea { touch-action: manipulation; caret-color: var(--brand); }
::placeholder { color: var(--text-secondary, var(--text-2)); opacity: 1; }
.num { font-variant-numeric: tabular-nums; }
time { font-variant-numeric: tabular-nums; }
.setting-value { font-variant-numeric: tabular-nums; }
:root {
  --page: #F5F1E8;
  --bg: var(--page);
  --surface: #FFFDF7;
  --surface-muted: #EFE9DC;
  --text: #18171F;
  --text-secondary: #55525F;
  --text-tertiary: #6F6B78;
  --line: #18171F;
  --line-soft: #DDD6C6;
  --dot: rgba(24, 23, 31, .09);
  --paper-pattern: radial-gradient(var(--dot) 1px, transparent 1.3px);
  --paper-grid: 22px 22px;
  --shadow-ink: #18171F;
  --brand: #5B63F0;
  --periwinkle: #5B63F0;
  --brand-fill: var(--periwinkle);
  --brand-hover: #4850D7;
  --brand-soft: #E7E8FD;
  --tone-agent-soft: #E7E8FD;
  --tone-mc: #B9EC4F;
  --tone-mc-soft: #EBF8CF;
  --tone-games: #FF8A5C;
  --tone-games-soft: #FFE4D8;
  --tone-sun: #FFD34D;
  --tone-sun-soft: #FFF1C2;
  --board-wood: #E9C98F;
  --on-accent: #18171F;
  --ink: #18171F;
  --paper: #FFFDF7;
  --sidebar: #EFEADF;
  --bw: 1.5px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --text-2: var(--text-secondary);
  --text-3: var(--text-tertiary);
  --control-bg: var(--surface-muted);
  --control-hover: #E7DFD0;
  --control-active: #DFD5C1;
  --surface-hover: var(--control-hover);
  --surface-active: var(--control-active);
  --border-subtle: var(--line-soft);
  --border-control: var(--line);
  --border: var(--line-soft);
  --border-2: var(--line);
  --border-strong: var(--line);
  --header-bg: color-mix(in srgb, var(--page) 86%, transparent);
  --drop-bg: color-mix(in srgb, var(--page) 90%, transparent);
  --user-bubble: #E7E8FD;
  --code-bg: #EFE9DC;
  --code-inline: #E9E1D1;
  --send-off-bg: var(--surface-muted);
  --send-off-fg: var(--text-tertiary);
  --interactive: var(--brand);
  --interactive-soft: var(--brand-soft);
  --interactive-border: var(--brand);
  --link: #4149CC;
  --reason-track: var(--surface-muted);
  --accent: var(--brand-fill);
  --accent-contrast: #FFFFFF;
  --danger: #B72F24;
  --ok: #287239;
  --grid-line: var(--line-soft);
  --shell-height: 64px;
  --content-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-composer: 20px;
  --radius-control: 10px;
  --radius-cta: 12px;
  --radius-card: 18px;
  --radius-popover: 14px;
  --radius-large: 22px;
  --shadow-hard-sm: 2px 2px 0 var(--shadow-ink);
  --shadow-hard: 4px 4px 0 var(--shadow-ink);
  --shadow-hard-lg: 6px 6px 0 var(--shadow-ink);
  --shadow-card: var(--shadow-hard-sm);
  --shadow-raised: var(--shadow-hard-lg);
  --shadow-popover: var(--shadow-hard);
  --motion-press: 70ms;
  --motion-exit: 120ms;
  --motion-fast: 100ms;
  --motion-ui: 150ms;
  --motion-enter: 180ms;
  --motion-layout: 280ms;
  --ease-standard: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.3,1.5,.5,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.4,0,1,1);
  --press-scale: .97;
  --col: 48rem; color-scheme: light;
}
html[data-theme="dark"] {
  --page: #15141B;
  --surface: #201F29;
  --surface-muted: #282733;
  --text: #F2EEE4;
  --text-secondary: #B9B4C4;
  --text-tertiary: #9A95A7;
  --line: #6E6A7E;
  --line-soft: #34333F;
  --dot: rgba(242, 238, 228, .06);
  --shadow-ink: #000000;
  --brand: #7C83FF;
  --brand-hover: #959BFF;
  --brand-soft: #302F51;
  --tone-agent-soft: #302F51;
  --tone-mc-soft: #26321A;
  --tone-games-soft: #3A2620;
  --tone-sun-soft: #3A3218;
  --board-wood: #B89B66;
  --sidebar: #1B1A23;
  --control-hover: #343240;
  --control-active: #3E3B4D;
  --user-bubble: #302F51;
  --code-bg: #1A1922;
  --code-inline: #343140;
  --link: #AAAFFF;
  --danger: #FFABA0;
  --ok: #B9EC4F; color-scheme: dark;
}
body { height: 100%; margin: 0; background: var(--bg); color: var(--text); overflow: hidden; font: 15.5px/1.75 var(--font-sans); }
code { font-family: var(--font-mono); }
pre { font-family: var(--font-mono); }
kbd { font-family: var(--font-mono); }
samp { font-family: var(--font-mono); }
@view-transition { navigation: auto; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes vt-fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes screenOut { to { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 640px) {
  :root { --shell-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation: none !important; }
  ::view-transition-old(*) { animation: none !important; }
  ::view-transition-new(*) { animation: none !important; }
  * {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; animation: none !important;
    transition: none !important;
  }
  *::before {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; animation: none !important;
    transition: none !important;
  }
  *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; animation: none !important;
    transition: none !important;
  }
  @view-transition { navigation: none; }
}
