*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--tx);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
button { font: inherit; color: inherit; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
button:disabled { cursor: not-allowed; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
::selection { background: var(--acbg); }
[hidden] { display: none !important; }

.ic {
  font-family: "Material Symbols Outlined"; font-weight: 300; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr;
  display: inline-block; flex: none; user-select: none;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }
.mu { color: var(--mu); }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Type scale */
.t-title { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.t-h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.t-h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.t-h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.t-h4 { font-size: 15px; font-weight: 600; line-height: 1.35; }
@media (max-width: 639px) { .t-h1.r { font-size: 24px; } }

/* Logo mark: 24px --tx square with an 8px accent square. */
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--tx); display: grid; place-items: center; flex: none; }
.logo-mark::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ac); }
.logo-name { font-weight: 600; font-size: 16px; }

/* Shown instead of the app on browsers without import maps / oklch / color-mix (see index.html). */
/* Old browsers: plain colours and flexbox only (no oklch, no color-mix), the same look as the app's system pages */
.unsupported { display: none; min-height: 100vh; padding: 0 16px; font: 15px/1.6 system-ui, sans-serif; color: #8f8f8f; background: #0a0a0a; }
.unsupported b { color: #ededed; }
.unsupported-top { display: flex; align-items: center; gap: 10px; padding: 18px 8px; color: #ededed; font-weight: 600; }
.unsupported-mark { width: 24px; height: 24px; border-radius: 7px; background: #ededed; display: flex; align-items: center; justify-content: center; }
.unsupported-mark i { width: 8px; height: 8px; border-radius: 2px; background: #3b82f6; }
.unsupported-col { max-width: 560px; margin: 14vh auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.unsupported-col > * + * { margin-top: 14px; }
.unsupported-code { font: 13px/1 ui-monospace, monospace; letter-spacing: .08em; color: #3b82f6; }
.unsupported h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.2; color: #ededed; }
.unsupported p { margin: 10px 0 0; font-size: 16px; }
.unsupported-list { display: flex; flex-wrap: wrap; justify-content: center; }
.unsupported-list span { margin: 4px; padding: 4px 10px; border: 1px solid #262626; border-radius: 999px; font-size: 12.5px; color: #ededed; }
.unsupported-btn { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 9px; background: #ededed; color: #0a0a0a; font-weight: 500; text-decoration: none; }
[data-t=light] .unsupported { background: #fafafa; color: #6b6b6b; }
[data-t=light] .unsupported b, [data-t=light] .unsupported h1, [data-t=light] .unsupported-top, [data-t=light] .unsupported-list span { color: #171717; }
[data-t=light] .unsupported-list span { border-color: #e5e5e5; }
[data-t=light] .unsupported-mark, [data-t=light] .unsupported-btn { background: #171717; color: #fafafa; }
[data-unsupported] .unsupported, .unsupported.noscript { display: block; }
.unsupported.noscript { margin: 0; padding-top: 30vh; text-align: center; }
[data-unsupported] #root { display: none; }
