/* Shared Jisuan design tokens. Keep component styles in admin.css. */
:root {
  color-scheme: light;
  --orange: #ff7817;
  --orange-dark: #bc4800;
  --orange-hover: #ec6810;
  --orange-soft: #fff2e8;
  --orange-line: #ffd8bc;
  --ink: #111827;
  --muted: #667085;
  --line: #e2e7ee;
  --panel: #fff;
  --soft: #f7f8fa;
  --green: #08785a;
  --danger: #b42318;
  --radius: 14px;
  --control-radius: 9px;
  --shadow: 0 8px 32px rgb(17 24 39 / 5%);
  --space: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
::selection { background: var(--orange-line); }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border-radius: var(--control-radius); font-weight: 600; line-height: 1.5; text-align: center; }
.primary { background: var(--orange); color: var(--ink); border: 1px solid var(--orange); }
.primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.secondary:hover { background: var(--soft); }
.compact { white-space: nowrap; }
input:not([type=hidden]):not([type=radio]), select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--panel); color: var(--ink); }
input::placeholder { color: var(--muted); }
.plan { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.plan.free { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.plan.pro { background: var(--orange-soft); color: var(--orange-dark); border: 1px solid var(--orange-line); }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 14px; object-fit: cover; }
.avatar.mini { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.avatar.fallback { display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); font-size: 20px; font-weight: 650; }
.avatar.mini.fallback { font-size: 12px; }
.success, .error, .notice { padding: 12px 16px; border-radius: var(--control-radius); margin: 0 0 20px; }
.success { background: #ecfdf3; color: var(--green); border: 1px solid #abefc6; }
.error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.auth-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.brand-icon { display: block; margin: 0 auto 14px; width: 56px; height: 56px; }
.brand-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.brand-row h1 { font-size: 24px; margin: 0; }
.brand-row span { color: var(--muted); }
.auth-card h2 { font-size: 18px; margin: 28px 0 6px; text-align: center; }
.lede { color: var(--muted); margin: 0 0 28px; text-align: center; font-size: 13px; }
.lede a:hover { color: var(--orange-dark); }
.login-form { display: grid; gap: 8px; }
.login-form label { font-size: 13px; font-weight: 600; }
.login-form input { margin-bottom: 10px; }
.login-form button { margin-top: 8px; width: 100%; }
.auth-page > footer { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 600px) {
  :root { --space: 16px; }
  .auth-page { padding: 24px 16px; }
  .auth-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
