* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:#f5f6f8; color:#222; }
#app { max-width:480px; margin:0 auto; min-height:100vh; position:relative; }
#view { padding-bottom:60px; }
#tabbar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); max-width:480px; width:100%;
  display:flex; background:#fff; border-top:1px solid #e8e8e8; z-index:100; }
.tab { flex:1; text-align:center; padding:10px 0; font-size:13px; color:#888; cursor:pointer; }
.tab.active { color:#1E5B3E; font-weight:600; }
.header { background:#1e5b3e; color:#fff; padding:16px; }
.header h1 { font-size:18px; }
.header .sub { font-size:12px; opacity:.85; margin-top:4px; }
.card { background:#fff; border-radius:10px; margin:10px; padding:14px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.card h3 { font-size:15px; margin-bottom:10px; }
.row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid #f0f0f0; font-size:14px; }
.row:last-child { border-bottom:none; }
.row .label { color:#666; }
.row .val { font-weight:600; }
.row .val.green { color:#1e5b3e; }
.row .val.red { color:#c0392b; }
.row .val.gray { color:#999; }
.grid4 { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; text-align:center; }
.grid4 .cell { background:#fff; border-radius:10px; padding:12px 4px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.grid4 .cell .v { font-size:16px; font-weight:700; color:#1e5b3e; }
.grid4 .cell .k { font-size:11px; color:#888; margin-top:4px; }
.btn { display:block; width:100%; padding:12px; border:none; border-radius:8px; background:#1e5b3e; color:#fff; font-size:15px; cursor:pointer; }
.btn.gray { background:#e8e8e8; color:#333; }
.btn.small { padding:6px 12px; width:auto; font-size:12px; border-radius:6px; }
.input { width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; font-size:15px; margin:6px 0; }
.label { font-size:13px; color:#666; margin-top:8px; }
.field { margin-bottom:10px; }
.list-item { display:flex; justify-content:space-between; align-items:center; padding:12px; background:#fff; border-radius:8px; margin-bottom:8px; box-shadow:0 1px 2px rgba(0,0,0,.05); }
.list-item .t { font-size:14px; font-weight:600; }
.list-item .s { font-size:12px; color:#999; margin-top:2px; }
.list-item .r { text-align:right; }
.badge { display:inline-block; font-size:11px; padding:2px 6px; border-radius:4px; background:#fdecea; color:#c0392b; }
.badge.ok { background:#e8f5e9; color:#2e7d32; }
.warn { background:#fff8e1; color:#b26a00; font-size:12px; padding:8px; border-radius:6px; margin:6px 0; }
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:200; display:flex; align-items:center; justify-content:center; }
.modal { background:#fff; width:90%; max-width:420px; border-radius:12px; padding:16px; max-height:80vh; overflow-y:auto; }
.modal h3 { margin-bottom:10px; }
.searchbar { display:flex; gap:8px; margin-bottom:10px; }
.searchbar input { flex:1; }
.toast { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,.75); color:#fff; padding:10px 18px; border-radius:8px; font-size:14px; z-index:300; display:none; }
.login-wrap { padding:40px 24px; }
.login-logo { text-align:center; font-size:22px; font-weight:700; color:#1e5b3e; margin:40px 0 30px; }
.login-logo small { display:block; font-size:13px; color:#888; font-weight:400; margin-top:6px; }
.title-bar { background:#1e5b3e; color:#fff; padding:12px 14px; display:flex; align-items:center; font-size:16px; }
.title-bar .back { margin-right:10px; cursor:pointer; }