:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif; color: #183239; background: #f2f5f4; line-height: 1.6; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; padding: 10px 18px; border: 1px solid #166454; border-radius: 8px; background: #166454; color: #fff; cursor: pointer; font-weight: 600; }
button:hover:not(:disabled) { background: #104c40; }
button.secondary { background: #fff; border-color: #c0cecb; color: #24433c; }
button.secondary:hover:not(:disabled) { background: #edf4f0; }
button.danger { background: #fff; color: #a3372b; border-color: #d6aea8; }
button:disabled { opacity: .52; cursor: not-allowed; }
:focus-visible { outline: 3px solid #268ed0; outline-offset: 3px; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; background: #fff; border: 1px solid #aebfba; border-radius: 7px; color: #183239; }
input:disabled, select:disabled { background: #f1f4f3; }
label { display: grid; gap: 7px; font-size: .92rem; font-weight: 600; min-width: 0; }
label span.hint, .hint { font-size: .82rem; font-weight: 400; color: #586e68; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.3; letter-spacing: -.035em; margin: 0 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 14px; }
h3 { font-size: 1.08rem; margin: 0; }
p { margin: 0 0 16px; }
small, .muted { color: #586e68; }
.skip-link { position: absolute; top: 8px; left: 8px; background: #fff; padding: 12px; z-index: 10; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { padding: 24px max(24px, calc((100% - 1180px) / 2)); background: #fff; border-bottom: 1px solid #dce5e1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand strong { font-size: 1.15rem; letter-spacing: .02em; }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #166454; color: #fff; font-size: 1.3rem; font-weight: 700; }
.brand-caption { display: block; font-size: .63rem; letter-spacing: .1em; color: #687a74; }
.identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.identity-name { display: grid; line-height: 1.4; overflow-wrap: anywhere; }
.identity-name small { font-size: .78rem; }
main { width: min(1180px, calc(100% - 48px)); margin: 36px auto 56px; }
main:focus { outline: none; }
.site-footer { border-top: 1px solid #dce5e1; color: #687a74; padding: 22px 24px; text-align: center; font-size: .8rem; }
.card { background: #fff; border: 1px solid #d5dfdb; border-radius: 14px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 5px 18px #18323904; }
.narrow { max-width: 540px; margin: 48px auto; }
.eyebrow { color: #166454; font-size: .72rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 13px; }
.intro { max-width: 72ch; color: #586e68; }
.stack { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.full { width: 100%; }
.notice { border-left: 4px solid #237657; background: #edf8f2; padding: 12px 16px; margin: 18px 0; border-radius: 3px; overflow-wrap: anywhere; font-size: .92rem; }
.notice:empty { display: none; }
.notice.error { border-color: #b33b2b; background: #fff1ee; color: #982b1e; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tabs button[aria-current="page"] { background: #166454; color: #fff; border-color: #166454; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.users-layout { display: grid; gap: 24px; }
.user-list { display: grid; gap: 16px; }
.user-card { border: 1px solid #d4e0da; border-radius: 10px; padding: 22px; }
.user-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.user-heading h3 { overflow-wrap: anywhere; }
.user-heading small { display: block; margin-top: 4px; font-size: .8rem; }
.badge { display: inline-block; border-radius: 5px; background: #eaf3ee; color: #1d6650; padding: 3px 9px; font-size: .73rem; font-weight: 600; white-space: nowrap; }
.badge.disabled { color: #795b31; background: #f6f0e4; }
.user-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.demo-access { margin-top: 20px; padding: 16px; border: 1px solid #d4e0da; border-radius: 8px; }
.demo-access legend { padding: 0 6px; font-weight: 600; }
.demo-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
.demo-choices[hidden] { display: none; }
.demo-choice { display: flex; align-items: center; gap: 10px; padding: 8px; min-height: 44px; }
.demo-choice input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; }
.reset-panel { margin-top: 20px; padding: 20px; border-radius: 8px; background: #f5f8f6; border: 1px solid #d4e0da; }
.reset-panel h3 { margin-bottom: 12px; }
.account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.account-summary dt { color: #586e68; font-size: .85rem; }
.account-summary dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.audit-list { display: grid; gap: 12px; }
.audit-row { border: 1px solid #d5dfdb; border-radius: 9px; padding: 18px; overflow-wrap: anywhere; }
.audit-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.audit-row dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); margin: 0; gap: 6px 12px; font-size: .85rem; }
.audit-row dt { color: #586e68; }
.audit-row dd { margin: 0; }
.loading { color: #586e68; padding: 24px 0; }
.empty { padding: 24px; background: #f6f8f7; color: #586e68; border-radius: 8px; }
@media (max-width: 640px) {
  .site-header { padding: 18px; flex-wrap: wrap; gap: 18px; }
  .identity { justify-content: flex-start; width: 100%; }
  main { width: calc(100% - 28px); margin: 24px auto 36px; }
  .narrow { margin: 24px auto; }
  .form-grid, .user-fields { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .user-card { padding: 18px; }
  .user-heading { flex-wrap: wrap; }
  .account-summary { grid-template-columns: 1fr; gap: 12px; }
  .form-actions > button { flex: 1 1 auto; }
  .audit-row dl { grid-template-columns: 1fr; gap: 1px; }
  .audit-row dd { margin-bottom: 9px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background .14s ease; } }
