@font-face {
  font-family: Inter;
  src: url("/labs-assets/fonts/inter-latin-wght-normal.woff2");
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/labs-assets/fonts/ibm-plex-mono-latin-400-normal.woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --paper: var(--bg);
  --surface: #fffefa;
  --ink: #181914;
  --text: var(--ink);
  --muted: #55594f;
  --sub: var(--muted);
  --line: #bfc2b7;
  --accent: #ffda42;
  --accent-ink: #242211;
  --good: #176646;
  --danger: #a12b27;
  --focus: #7b6300;
  --mono: "IBM Plex Mono", monospace;
  --sans: Inter, system-ui, sans-serif;
  --radius: 5px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191c19;
  --surface: #242822;
  --ink: #f3f3e9;
  --muted: #bdc4b4;
  --line: #576050;
  --good: #95dbb5;
  --danger: #ffa39c;
  --focus: #ffda42;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}
button,
.btn {
  cursor: pointer;
  padding: 0.47rem 0.72rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 540;
}
button:hover,
.btn:hover {
  border-color: currentColor;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
.row,
.grid {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.15rem;
}
.muted {
  color: var(--muted);
}
.app-rail {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem clamp(0.65rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}
.app-rail nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.app-rail button {
  font-size: 0.76rem;
  min-height: 30px;
}
.app-rail .local-indicator {
  color: var(--muted);
  font-family: var(--mono);
}
.app-rail a {
  text-decoration: none;
}
.app-rail a:hover {
  text-decoration: underline;
}
.app-rail .mark {
  width: 22px;
  vertical-align: middle;
  margin-right: 0.35rem;
}
#app-message:not(:empty) {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  padding: 0.8rem 1rem;
  max-width: min(90vw, 32rem);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  box-shadow: 0 3px 10px #0002;
}
#app-settings {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  width: min(26rem, 94vw);
}
#app-settings::backdrop {
  background: #151812aa;
}
#app-settings h2 {
  font-size: 1.3rem;
}
#app-settings p {
  margin-block: 1rem;
  color: var(--muted);
}
#app-settings .row {
  justify-content: space-between;
}
#app-settings .setting-action {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  text-align: left;
}
.app-load-error,
.app-loading {
  margin: 2rem auto;
  padding: 1.5rem;
  max-width: 52rem;
}
.app-skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--surface);
  padding: 0.6rem;
}
.app-skip:focus {
  top: 0.4rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 500px) {
  .app-rail {
    gap: 0.35rem;
  }
  .app-rail .local-indicator {
    display: none;
  }
  .app-rail nav {
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
.app-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.standalone-related[hidden] {
  display: none;
}
.standalone-related footer {
  padding: 24px 0;
}
