:root {
  --ink: #14201d;
  --muted: #66736e;
  --line: #dbe5e1;
  --bg: #edf2ef;
  --card: #ffffff;
  --brand: #08745f;
  --brand-deep: #064f43;
  --go: #ec641c;
  --go-deep: #b93e0c;
  --ok: #147a4d;
  --wait: #ad5809;
  --bad: #bd3b2d;
  --shadow-soft: 0 12px 28px rgba(19, 43, 36, .10);
  --shadow-raised: 0 18px 32px rgba(17, 42, 34, .16), 0 3px 7px rgba(17, 42, 34, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { min-height: 48px; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(12px); background: #1b1714; color: #fff; padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 50; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.ok { background: #e8f6ee; color: var(--ok); }
.chip.wait { background: #fff3e0; color: var(--wait); }
.chip.bad { background: #ffece5; color: var(--bad); }
.chip.idle { background: #efeae3; color: var(--muted); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; border: 0; border-radius: 14px; padding: 0 16px; font-weight: 760; transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.btn:active { transform: translateY(2px) scale(.995); filter: brightness(.97); }
.btn.primary { background: linear-gradient(160deg, #ff7a2f 0%, var(--go) 58%, var(--go-deep) 100%); color: white; box-shadow: 0 8px 0 #a93609, 0 13px 22px rgba(185, 62, 12, .23); }
.btn.brand { background: linear-gradient(160deg, #0b8c72 0%, var(--brand) 58%, var(--brand-deep) 100%); color: white; box-shadow: 0 8px 0 #043f35, 0 13px 22px rgba(6, 79, 67, .22); }
.btn.primary:active, .btn.brand:active { box-shadow: 0 3px 0 rgba(0,0,0,.3), 0 7px 12px rgba(0,0,0,.15); }
.btn.ghost { background: linear-gradient(180deg, #fff, #f4f7f5); color: var(--ink); border: 1px solid #d4dfdb; box-shadow: 0 5px 0 #c9d4d0, 0 9px 15px rgba(20, 44, 37, .08); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f3c1b0; }
.field { display: grid; gap: 6px; }
.field input, .field textarea { width: 100%; border: 1px solid #d3ded9; background: linear-gradient(180deg, #f7faf8, #fff); border-radius: 12px; padding: 12px 14px; outline: none; box-shadow: inset 0 2px 5px rgba(21, 47, 39, .07); }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: inset 0 2px 5px rgba(21, 47, 39, .06), 0 0 0 3px rgba(8,116,95,.12); }
.field textarea { min-height: 88px; resize: vertical; }
.error { color: var(--bad); min-height: 20px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
