:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #65716c;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --line: #dce2dc;
  --brand: #18775b;
  --brand-dark: #105840;
  --brand-soft: #e4f3ec;
  --accent: #ed8d42;
  --danger: #ba3b3b;
  --danger-soft: #fbe9e7;
  --shadow: 0 18px 50px rgba(28, 52, 43, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220, 226, 220, 0.85); background: rgba(246, 247, 242, 0.9); backdrop-filter: blur(18px); }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(24, 119, 91, 0.24); }
.brand-mark::after { content: "评"; font-size: 17px; }
.top-actions { display: flex; gap: 10px; align-items: center; }

.button { min-height: 44px; border: 0; border-radius: 13px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.button:hover { background: var(--brand-dark); box-shadow: 0 9px 22px rgba(24, 119, 91, 0.16); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: 0.55; box-shadow: none; }
.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.button.secondary:hover { background: #f3f6f2; box-shadow: none; }
.button.ghost { background: transparent; color: var(--brand); padding-inline: 10px; }
.button.danger { background: var(--danger); }
.button.small { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: 14px; }
.button.full { width: 100%; }

.card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.success-text { color: var(--brand); }

.field { display: grid; gap: 7px; }
.field label, .field-label { font-size: 14px; font-weight: 700; }
.field small { color: var(--muted); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; padding: 11px 13px; color: var(--ink); background: #fff; transition: border 150ms ease, box-shadow 150ms ease; }
.input, .select { min-height: 46px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(24, 119, 91, 0.1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.notice { padding: 12px 14px; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-size: 14px; }
.notice.error { color: var(--danger); background: var(--danger-soft); }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; color: var(--brand-dark); background: var(--brand-soft); }
.pill.warn { color: #8a4a18; background: #fff0df; }
.pill.disabled { color: var(--danger); background: var(--danger-soft); }

.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 100; max-width: min(90vw, 460px); padding: 11px 17px; border-radius: 999px; color: #fff; background: rgba(23, 35, 31, 0.94); box-shadow: 0 12px 35px rgba(0,0,0,.2); transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }

@media (max-width: 720px) {
  .shell { width: min(100% - 22px, 680px); }
  .topbar-inner { min-height: 60px; }
  .brand-label { font-size: 15px; }
  .card { border-radius: 18px; }
  .card-pad { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .desktop-only { display: none !important; }
}
