/* Shared template: one look for every page (Watchtower design by Brian). Tokens, surfaces, buttons, the top nav
   and the voice button. Page CSS adds layout only and never re-picks colours or type. No external requests:
   'Geist' is used when installed, otherwise the system face. */
:root {
  --bg: #05080a;
  --glass: rgba(16, 26, 29, .62); --glass2: rgba(22, 34, 38, .72);
  --edge: rgba(160, 255, 240, .09); --edge2: rgba(160, 255, 240, .16);
  --fg: #eef5f4; --fg2: #cfdcda; --muted: #93a4a3; --dim: #7f9190;
  --teal: #2fe0c8; --teal2: #7ff3e3; --teal-d: rgba(47, 224, 200, .14);
  --amber: #ffb020; --amber-t: #ffd48a; --red: #ff5d58; --red-t: #ff9d90;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  overflow-x: hidden; min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 600px at 85% 110%, rgba(47, 224, 200, .07), transparent 60%),
              radial-gradient(900px 500px at 0% 40%, rgba(47, 224, 200, .05), transparent 60%), var(--bg);
}
a { color: var(--teal2); }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* surfaces */
.glass {
  background: linear-gradient(180deg, var(--glass2), var(--glass));
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: var(--teal-d); color: var(--teal2); white-space: nowrap;
}
.chip.w { background: rgba(255, 176, 32, .13); color: var(--amber-t); }
.chip.d { background: rgba(255, 93, 88, .14); color: var(--red-t); }
.chip.p { background: rgba(255, 255, 255, .06); color: var(--muted); }

/* buttons: pill, one primary per view */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge2);
  color: var(--fg2); cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: rgba(47, 224, 200, .1); color: #fff; }
.btn:active { transform: scale(.97); }
.btn.primary, .btn-primary { background: var(--teal); color: #032521; box-shadow: 0 0 30px -6px rgba(47, 224, 200, .6); }
.btn.primary:hover, .btn-primary:hover { background: var(--teal2); color: #032521; }
.btn.sm, .btn-small { min-height: 32px; padding: 0 13px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: wait; }

/* the shell: top nav on every page */
.shell-top {
  position: relative; z-index: 60; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1360px; margin: 0 auto; padding: 14px 32px;
}
.shell-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.shell-brand:hover { color: #fff; }
.shell-mark { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.shell-mark img { width: 28px; height: 28px; display: block; }
.shell-nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; margin-left: auto; flex-wrap: wrap; }
.shell-nav a {
  min-height: 34px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; color: var(--muted);
  text-decoration: none; font-size: 13.5px; white-space: nowrap; transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.shell-nav a:hover { color: #fff; }
.shell-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.shell-foot {
  max-width: 1360px; margin: 48px auto 0; padding: 22px 32px 96px; color: var(--dim); font-size: 12.5px;
  display: flex; gap: 8px 20px; flex-wrap: wrap; border-top: 1px solid var(--edge);
}
.shell-foot a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .shell-top { padding: 10px 16px; gap: 10px; }
  .shell-nav { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .shell-nav a { justify-content: center; padding: 0 8px; font-size: 13px; min-height: 40px; }
  .shell-foot { padding: 18px 16px 96px; }
}

/* the voice button: same place, same behaviour on every page */
.vbtn {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #05080a; background: var(--teal);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .15); transition: transform 140ms var(--ease);
}
.vbtn:active { transform: scale(.94); }
.vbtn svg { width: 24px; height: 24px; }
.vbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vbtn.rec { background: var(--red); animation: vpulse 1.2s ease-in-out infinite; }
.vbtn.busy { opacity: .7; cursor: progress; }
@keyframes vpulse { 50% { box-shadow: 0 0 0 10px rgba(255, 93, 88, .25), 0 6px 24px rgba(0, 0, 0, .45); } }
.vpanel {
  position: fixed; right: 24px; bottom: 92px; z-index: 80; width: min(380px, calc(100vw - 32px)); padding: 16px 18px;
  border-radius: 16px; font-size: 14px; line-height: 1.45;
}
.vpanel h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.vpanel .vq { color: var(--fg2); margin: 0 0 6px; }
.vpanel .va { color: #fff; margin: 0 0 10px; font-weight: 500; }
.vpanel form { display: flex; gap: 8px; margin: 0 0 10px; }
.vpanel input {
  flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .35); color: #fff;
}
.vpanel ul { margin: 0 0 8px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.vpanel small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .vbtn { right: 16px; bottom: 16px; } .vpanel { right: 16px; bottom: 84px; } }

/* language switch: EN | DE (English first; the other language is machine-translated through DeepL) */
.shell-lang { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--edge); }
.shell-lang button {
  min-width: 40px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 500 12.5px/1 var(--mono); letter-spacing: .06em; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.shell-lang button:hover { color: #fff; }
.shell-lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.shell-lang.float { position: fixed; left: 16px; bottom: 16px; z-index: 80; }
.shell-translating main { opacity: .55; transition: opacity 200ms var(--ease); }
@media (max-width: 760px) { .shell-top .shell-lang { margin-left: auto; } }
