* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow: hidden;
  display: flex;
  font-feature-settings: 'cv11', 'ss01';
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }
.hidden { display: none !important; }

/* #main is the view mount-point. The sidebar (240px) sits to its left and
   body is display:flex, so we want #main to take the remaining width and
   manage its own scrolling. Individual views (class shell, reader) set
   their own internal flex layout inside #main. */
#main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
