/* Tokens, reset and page shell */
:root {
  --surface: #f7f9fd;
  --panel: #ffffff;
  --neutral: #f1f4fb;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --blue: #0b57d0;
  --active: #c2e7ff;
  --font: "Figtree", "Google Sans", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, select, input { -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.icon { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Shell: rail on the left, header above the content panel */
.app {
  display: grid;
  grid-template: "rail header" auto "rail content" 1fr / 108px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.header { grid-area: header; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 20px 28px 18px 0; }
.rail { grid-area: rail; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.content { grid-area: content; overflow-y: auto; overscroll-behavior: contain; margin-right: 24px; padding: 24px; background: var(--panel); border-radius: 24px 24px 0 0; }
