/* Base: reset, dense tool typography, focus, scrollbars, utilities. */
*, *::before, *::after { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
html { font-family: var(--font-ui); font-size: var(--t-md); line-height: var(--lh); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overflow: hidden;
  background: var(--bg-0);
  color: var(--text-1);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { margin: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
ul { list-style: none; }
strong { font-weight: var(--w-semibold); }

/* Numbers that line up, identifiers that read exactly */
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .94em; letter-spacing: -.01em; }

/* One focus ring for every control; rows get an inset ring so it is never clipped */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[role="treeitem"]:focus-visible, [role="row"]:focus-visible, [role="separator"]:focus-visible { outline-offset: -2px; }

/* Icons */
.icon { display: block; flex: none; width: 16px; height: 16px; }
.icon-xl { width: 28px; height: 28px; stroke-width: 1.2; }

/* Scrollbars: thin, quiet */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.kbd {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: var(--r-1);
  color: var(--text-3);
  font-size: var(--t-micro);
  font-weight: var(--w-medium);
  line-height: 1;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-2);
  background: var(--text-1);
  color: var(--text-inverse);
  font-weight: var(--w-semibold);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

::selection { background: var(--sel-bg); color: var(--text-1); }
.hash-full, .kv dd.mono.hash-full { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-all; overflow-wrap: anywhere; }
