/* Single stylesheet; served from 'self' so the CSP needs no inline style. */
:root { --bg: #f6f6f4; --card: #fff; --text: #1b1b1f; --muted: #6b6b73; --line: #e4e4e0; --accent: #1f3a5f; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #141417; --card: #1d1d22; --text: #ececef; --muted: #9a9aa3; --line: #2c2c33; --accent: #8fb3e6; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
h1 { font-size: 1.4rem; margin: 0; }
h1 span { color: var(--muted); font-weight: 400; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2rem 0 .75rem; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 16px; border-bottom: 1px solid var(--line); max-width: 1080px; margin: 0 auto; }
header form { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.card:hover, .card:focus-visible { border-color: var(--accent); outline: none; }
.card span { color: var(--muted); font-size: .9rem; }
.login { max-width: 380px; margin: 18vh auto 0; text-align: center; }
.login p { color: var(--muted); }
.error { color: #c0392b !important; }
.btn, button { display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--accent); color: var(--bg); font: inherit; text-decoration: none; cursor: pointer; }
header button { background: transparent; color: var(--text); padding: .35rem .8rem; }
