/* Tick-n'-Tack 2.0 — gemensam stil. Blått enligt gruppens beslut 2012:
   RAL 5002 Ultramarine blue. */
:root {
  --tnt: #20214f;
  --tnt-light: #3a3c7e;
  --bg: #f4f5f9;
  --card: #ffffff;
  --text: #16172e;
  --muted: #6a6c8a;
  --ok: #2e8b57;
  --warn: #d4a017;
  --err: #c0392b;
  --off: #9aa0a6;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
header {
  background: var(--tnt); color: #fff; padding: .7rem 1.2rem;
  display: flex; align-items: baseline; gap: 1rem;
}
header h1 { font-size: 1.25rem; margin: 0; letter-spacing: .04em; }
header nav a { color: #cdd1f0; margin-right: .9rem; text-decoration: none; }
header nav a:hover { color: #fff; }
main { max-width: 70rem; margin: 1.2rem auto; padding: 0 1rem; }
.card {
  background: var(--card); border-radius: .6rem; padding: 1rem 1.2rem;
  margin-bottom: 1rem; box-shadow: 0 1px 3px rgb(32 33 79 / .12);
}
h2 { margin: .2rem 0 .8rem; font-size: 1.05rem; color: var(--tnt); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid #e3e5f0; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
button, input, select {
  font: inherit; padding: .45rem .7rem; border-radius: .4rem; border: 1px solid #c9cce0;
}
button { background: var(--tnt); color: #fff; border: 0; cursor: pointer; }
button:hover { background: var(--tnt-light); }
button.ghost { background: transparent; color: var(--tnt); border: 1px solid var(--tnt); }
.dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .35rem; }
.dot.off { background: var(--off); } .dot.nosync { background: var(--warn); }
.dot.ok { background: var(--ok); } .dot.err { background: var(--err); }
.racing { color: var(--tnt); font-variant-numeric: tabular-nums; }
.mic { border-radius: 50%; width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }
.mic.rec { background: var(--err); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .55; } }
