:root {
  --bg: #f5f5f2; --card: #fff; --text: #1c1c1a; --muted: #6a6a64; --line: #e2e2dd;
  --accent: #1f5fc4; --good: #1a7f4b; --warn: #b4560b;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141413; --card: #1e1e1c; --text: #ececE7; --muted: #9a9a93; --line: #31312d; --accent: #7fb0ff; --good: #4cc38a; --warn: #f0a35e; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1000px; margin: 0 auto; padding: 20px 16px 8px; }
header h1 { font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.user img { width: 28px; height: 28px; border-radius: 50%; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
main { max-width: 1000px; margin: 0 auto; padding: 8px 16px 48px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile .icon { font-size: 26px; }
.tile h2 { font-size: 17px; margin: 8px 0 4px; }
.tile p { color: var(--muted); margin: 0; font-size: 14px; }
.tile .ext { font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }
.stat b.good { color: var(--good); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; max-width: 360px; width: 100%; text-align: center; }
.login h1 { font-size: 20px; margin: 0 0 6px; }
.login p { color: var(--muted); margin: 0 0 22px; }
.login #gsi { display: flex; justify-content: center; min-height: 44px; }
.error { color: var(--warn); margin-top: 14px; font-size: 14px; }
