:root {
  --brand: #00c17c;
  --brand-deep: #00a86a;
  --ink: #12231e;
  --muted: #667873;
  --line: #e4eeea;
  --bg: #f3f7f5;
  --card: #fff;
  --shadow: 0 10px 28px rgba(15, 61, 50, 0.1);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button, a { font-family: inherit; }
#app { min-height: 100vh; }

.screen {
  min-height: 100vh;
  padding: 20px 16px calc(24px + var(--safe-b));
}
.screen.login {
  background:
    radial-gradient(520px 280px at 80% -10%, rgba(0,193,124,.28), transparent 60%),
    linear-gradient(165deg, #0f3d32 0%, #145645 48%, #0f3d32 100%);
  color: #fff;
}

.brand-block { padding: 18px 4px 8px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}
.brand-block h1 { margin: 0 0 6px; font-size: 1.55rem; font-weight: 800; }
.brand-block p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; line-height: 1.5; }

.role-hint {
  margin: 18px 4px 10px;
  font-size: .86rem;
  color: rgba(255,255,255,.7);
}
.role-list { display: grid; gap: 10px; }
.role-item {
  display: block; width: 100%; text-align: left;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff; border-radius: 16px;
  padding: 14px 14px 12px; cursor: pointer;
}
.role-item:active, .role-item.on {
  border-color: var(--brand);
  background: rgba(0,193,124,.2);
}
.role-item .t { font-weight: 800; font-size: 1rem; }
.role-item .u {
  margin-top: 4px; font-size: .78rem; color: #8fe8cb;
  font-family: ui-monospace, Consolas, monospace;
}
.role-item .d { margin-top: 6px; font-size: .8rem; color: rgba(255,255,255,.68); line-height: 1.4; }

.login-foot {
  margin-top: 18px; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.login-foot a { color: #9ef0d0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.topbar .who { min-width: 0; }
.topbar .who .name { font-weight: 800; font-size: 1.05rem; }
.topbar .who .meta { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.btn-text {
  border: 0; background: transparent; color: var(--brand-deep);
  font-weight: 700; font-size: .9rem; padding: 8px;
}

.hero-card {
  background: linear-gradient(145deg, #117a5a, #0f3d32);
  color: #fff; border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.hero-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.hero-card p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.78); line-height: 1.5; }

.section-title {
  margin: 8px 2px 10px;
  font-size: .92rem; font-weight: 800; color: #244038;
}
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.tile {
  display: block; width: 100%; text-align: left; text-decoration: none; color: inherit;
  background: var(--card); border-radius: 16px; padding: 14px 12px;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15,61,50,.04);
  cursor: pointer;
}
.tile .ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 10px;
  background: rgba(0,193,124,.12); color: var(--brand-deep);
  font-size: .85rem; font-weight: 800;
}
.tile .tt { font-weight: 800; font-size: .92rem; }
.tile .dd { margin-top: 4px; font-size: .76rem; color: var(--muted); line-height: 1.35; }

.list-card {
  background: var(--card); border-radius: 16px;
  border: 1px solid var(--line); overflow: hidden;
  margin-bottom: 14px;
}
.list-row {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row .t { font-weight: 700; font-size: .9rem; }
.list-row .s { margin-top: 4px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.empty {
  padding: 22px 14px; text-align: center; color: var(--muted); font-size: .88rem;
}
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%);
  background: rgba(18,35,30,.92); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: .86rem; z-index: 50;
  opacity: 0; pointer-events: none; transition: .2s;
}
.toast.on { opacity: 1; }
.loading {
  padding: 40px 16px; text-align: center; color: rgba(255,255,255,.8);
}
.screen.home .loading { color: var(--muted); }
