:root {
  --bg: #10182a;
  --bg2: #16203a;
  --card: #1b2640;
  --card-line: #2a3658;
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: 100dvh;
  padding-bottom: calc(60px + var(--safe-bottom));
}
.app-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  background: rgba(16,24,42,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 1.05rem; margin: 0; font-weight: 700; letter-spacing: .3px; }
.logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 135deg, var(--teal), var(--violet) 75%, #2a3658 75%);
  -webkit-mask: radial-gradient(circle at center, transparent 6px, #000 7px);
          mask: radial-gradient(circle at center, transparent 6px, #000 7px);
}
.header-actions { display: flex; gap: 8px; }
.ghost-btn {
  background: var(--card); border: 1px solid var(--card-line); color: var(--text);
  width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; cursor: pointer;
}
.ghost-btn:active { transform: scale(.94); }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.overall {
  border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: .95rem;
  border: 1px solid var(--card-line); background: var(--card); margin-bottom: 12px;
}
.overall.o-ok { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.5); color: #6ee7b7; }
.overall.o-warn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.5); color: #fcd34d; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 18px; padding: 16px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc { display: flex; align-items: center; gap: 10px; }
.svc .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.svc h2 { font-size: .98rem; margin: 0; }
.svc .sub { color: var(--muted); font-size: .74rem; }
.badge { font-size: .68rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--card-line); color: var(--muted); white-space: nowrap; }
.card-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.card-foot a { color: var(--teal); font-size: .82rem; text-decoration: none; }
.check-btn {
  background: var(--card-line); border: 1px solid var(--card-line); color: var(--text);
  font-size: .8rem; padding: 7px 14px; border-radius: 10px; cursor: pointer;
}
.check-btn:active { transform: scale(.95); }
.badge.b-ok { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.5); color: #6ee7b7; }
.badge.b-pending { background: rgba(251,191,36,.16); border-color: rgba(251,191,36,.5); color: #fcd34d; }
.card.v-ok { border-color: rgba(52,211,153,.3); }
.card.v-pending { border-color: rgba(251,191,36,.4); }
.hint { color: var(--muted); font-size: .76rem; margin-top: 20px; line-height: 1.6; }
.panel { display: none; }
.panel.active { display: block; }
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(6px + var(--safe-bottom));
  background: rgba(16,24,42,0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-line);
}
.tab {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 6px 0; border-radius: 12px; font-size: .68rem;
}
.tab .ti { font-size: 1.25rem; line-height: 1; }
.tab.active { color: var(--teal); }
.tab:active { transform: scale(.95); }
