:root {
  --bg: #f3f1ea; --surface: #fff; --text: #1c2420; --muted: #6b746f; --border: #e2ddd0;
  --shadow: 0 1px 2px rgba(28, 36, 32, .06), 0 6px 20px rgba(28, 36, 32, .07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1714; --surface: #17211d; --text: #e8efe9; --muted: #93a39a; --border: #2a3832; --shadow: 0 4px 16px rgba(0, 0, 0, .3); }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.4;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; }
header { padding: 8px 4px 20px; }
h1 { margin: 0; font-size: 1.9rem; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
header p { margin: 4px 0 0; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.app {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-left: 5px solid var(--c); transition: transform .08s;
}
.app:active { transform: scale(.985); }
.icon {
  width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
}
.icon img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.text b { font-size: 1.15rem; }
.text small { color: var(--muted); }
.app svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
footer { margin-top: 28px; text-align: center; }
.account {
  display: inline-block; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: inherit; text-decoration: none; font-weight: 600; box-shadow: var(--shadow);
}
.empty { text-align: center; }
.session {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.session::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.session.ok::before { background: #1e7a52; }
.session span { flex: 1; min-width: 0; }
.session small { display: block; color: var(--muted); }
.session a { color: inherit; font-weight: 600; white-space: nowrap; }
@media (min-width: 640px) { .apps { grid-template-columns: 1fr 1fr; } }
