:root { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #222; background: #f3f4f6; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 8px 0 16px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.top { display: flex; gap: 16px; align-items: center; padding: 10px 16px; background: #222; color: #fff; }
.top span { flex: 1; }
.top form.inline { margin: 0; }
button { font: inherit; padding: 10px 16px; border: 0; border-radius: 8px; background: #222; color: #fff; cursor: pointer; }
button.link { background: none; color: #fff; text-decoration: underline; padding: 0; }
input { font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 8px; width: 100%; }
label { display: block; margin-bottom: 12px; }
#notify, form.search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.search { margin-bottom: 12px; }
form.search input { font: inherit; padding: 8px 12px; border: 1px solid #bbb; border-radius: 8px; width: 12em; }
#notify select { font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 8px; }
.google { display: block; text-align: center; background: #fff; color: #222; border: 1px solid #bbb; text-decoration: none; padding: 10px 16px; border-radius: 8px; font-weight: 600; margin-bottom: 16px; }
.or { text-align: center; color: #777; margin: 0 0 12px; }
.notice { color: #157347; font-weight: 600; }
.top a { color: #fff; }
.form label { margin-bottom: 14px; }
.form textarea { font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 8px; width: 100%; }
.form select { font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 8px; }
a.button { display: inline-block; padding: 10px 16px; border-radius: 8px; background: #222; color: #fff; text-decoration: none; }
code { background: #eee; padding: 1px 4px; border-radius: 4px; }
form.row { display: grid; grid-template-columns: 2fr 2fr 2fr auto auto; gap: 8px; align-items: end; }
form.row label { margin: 0; font-size: .85rem; }
form.row select { font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 8px; width: 100%; }
@media (max-width: 700px) { form.row { grid-template-columns: 1fr; } }
.muted { color: #777; }
#notify input { font-size: 1.3rem; }
.msg { min-height: 1.4em; margin: 10px 0 0; }
.msg.ok { color: #157347; font-weight: 600; }
.msg.error, p.error { color: #b02a37; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eee; }
.s-sent { color: #157347; } .s-failed { color: #b02a37; } .s-queued { color: #996c00; }
body.login main { max-width: 380px; margin-top: 10vh; }
/* dashboard: BGA's profile on a screen. Dark grey #494949, apricot #FFA591 as the accent,
   warm grey #E0DED8 for lines, off-white #F7F5F2 as the background (Grafisk manual 2.1). */
body.stats { background: #F7F5F2; color: #494949; }
body.stats main { max-width: 1400px; padding: 10px 16px 16px; }
html[data-tab="nu"] body.stats main { max-width: 1100px; } /* the Nu tab is kept narrow (Björn 2026-10-23 18.05) */
.bar { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.bar img { height: 32px; width: auto; display: block; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs button { background: none; color: #494949; padding: 8px 12px; border-radius: 0; border-bottom: 3px solid transparent; font-weight: 600; }
.tabs button[aria-selected="true"] { border-bottom-color: #FFA591; }
.meta { color: #8a8a8a; font-size: .8rem; text-align: right; white-space: nowrap; }
.pane { display: none; }
html[data-tab="nu"] .pane.nu, html[data-tab="klassisk"] .pane.klassisk { display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tile { background: #fff; border: 1px solid #E0DED8; border-radius: 8px; padding: 16px; text-align: center; }
.tile .t { font-weight: 600; font-size: 1.05rem; }
.tile .c { color: #777; font-size: .85rem; margin-top: 2px; }
.tile .v { font-size: 2.2rem; font-weight: 700; margin-top: 6px; }
/* the Nu tab: four across on desktop, two on a phone, the number first and the comparisons under it */
.nu .grid { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.nu .tile { padding: 16px 14px 14px; text-align: left; }
.nu .tile .t { font-size: .85rem; font-weight: 600; color: #8a8a8a; letter-spacing: .02em; }
.nu .tile .v { font-size: 1.9rem; margin-top: 4px; line-height: 1.15; white-space: nowrap; }
.nu .tile .c { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: #666; font-size: .9rem; }
.nu .tile .c .r { white-space: nowrap; }
.nu .tile .c .sm { display: none; }
.nu .tile .c b { font-weight: 600; color: #494949; }
.nu .tile .c.none { color: #aaa; }
.warn { background: #FFA591; color: #494949; border-radius: 8px; padding: 8px 12px; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 900px) {
  .klassisk .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .klassisk .tile { padding: 10px 8px; }
  .klassisk .tile .t { font-size: .85rem; }
  .klassisk .tile .v { font-size: 1.4rem; }
  .nu .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .nu .tile { padding: 10px 8px 8px; }
  .nu .tile .t { font-size: .78rem; }
  .nu .tile .v { font-size: clamp(1rem, 4.9vw, 1.5rem); }
  .nu .tile .c { font-size: .62rem; margin-top: 5px; flex-wrap: nowrap; white-space: nowrap; gap: 0 4px; overflow: hidden; }
  .nu .tile .c .lg { display: none; }
  .nu .tile .c .sm { display: inline; }
  .bar { gap: 10px; }
  .bar img { height: 20px; }
  .tabs button { padding: 6px 8px; }
}
.preview h3 { font-size: 1rem; margin: 16px 0 6px; }
.preview .mail { border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; background: #fafafa; }
.preview .mail p { margin: 0 0 8px; }
.preview .body { white-space: normal; line-height: 1.45; }
