* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f2f3f5; color: #161616; }
body { padding-bottom: 64px; }

.topbar { background: #07c160; color: #fff; padding: 12px 16px; font-size: 14px; position: sticky; top: 0; z-index: 10; }
.topbar #userInfo { opacity: .95; }

.page { padding: 12px; }
.hidden { display: none !important; }

.bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.bar input, .bar select { flex: 1; min-width: 120px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; background: #fff; }

button { border: none; border-radius: 8px; padding: 10px 16px; font-size: 15px; background: #07c160; color: #fff; cursor: pointer; }
button.ghost { background: #fff; color: #07c160; border: 1px solid #07c160; }
button.danger { background: #fa5151; }
button:active { opacity: .8; }

.list { display: flex; flex-direction: column; gap: 10px; }
.card { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card .row1 { display: flex; justify-content: space-between; align-items: center; }
.card .name { font-size: 16px; font-weight: 600; }
.card .sub { color: #888; font-size: 13px; margin-top: 4px; }
.card .metrics { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; color: #555; }
.card .tag { background: #e8f8ef; color: #07c160; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.card .tag.warn { background: #fdeaea; color: #fa5151; }
.card .actions { margin-top: 10px; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { background: #fff; color: #555; border: 1px solid #ddd; flex: 1; }
.tab.active { background: #07c160; color: #fff; border-color: #07c160; }
.tabpane { display: block; }

.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid #eee; }
.bottomnav button { flex: 1; border-radius: 0; background: #fff; color: #555; border-top: 3px solid transparent; padding: 12px 0; }
.bottomnav button.active { color: #07c160; border-top-color: #07c160; font-weight: 600; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 420px; padding: 16px; }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.modal-body { display: flex; flex-direction: column; gap: 10px; }
.modal-body textarea { width: 100%; min-height: 120px; border: 1px solid #ddd; border-radius: 8px; padding: 10px; font-size: 14px; font-family: inherit; }
.modal-body input { padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 20px; z-index: 100; font-size: 14px; }
.toast.hidden { display: none; }
