/* Linkivo v2.1.3 - reset and element defaults */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; } /* v2.1.3: also on <html>, so the browser's own pull-to-refresh (which reloads the app and replays the splash) can not start */
body {
  background: var(--bg); color: var(--text);
  font: 400 var(--fs) / 1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { a:hover { text-decoration: underline; text-underline-offset: 3px; } }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--accent-soft); }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.ic { flex: none; }
.muted { color: var(--sub); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
:root[data-motion='reduce'] *, :root[data-motion='reduce'] *::before, :root[data-motion='reduce'] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

/* Context menu and long-press are blocked app-wide (always on since v2.1.3; the on/off setting was removed by the owner).
   Text can still be selected and copied in inputs and in anything marked .selectable (logs, tester results). */
/* v2.1.3: TEXT STAYS SELECTABLE (owner). Only controls and navigation chrome are unselectable, so dragging or long-pressing over a button never starts a selection. */
:root[data-ctx='off'] body { -webkit-touch-callout: none; }
:root[data-ctx='off'] button, :root[data-ctx='off'] .btn, :root[data-ctx='off'] .bar, :root[data-ctx='off'] .sidebar, :root[data-ctx='off'] .set-nav, :root[data-ctx='off'] .seg, :root[data-ctx='off'] .switch,
:root[data-ctx='off'] .swatch, :root[data-ctx='off'] .splash, :root[data-ctx='off'] .tip, :root[data-ctx='off'] .ibanner, :root[data-ctx='off'] .ptr, :root[data-ctx='off'] .pop { -webkit-user-select: none; user-select: none; }
:root[data-ctx='off'] img, :root[data-ctx='off'] a { -webkit-user-drag: none; }
/* v2.1.3: the per-element color transition (class theme-anim) is gone. It made some areas change before others. The theme now switches
   through the View Transitions API (see core/appearance.js): one snapshot cross-fade, every color at the same moment. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: ease; }
/* The brand mark follows the accent: a mask of the logo shape painted with the brand gradient. */
.logo-mark { display: block; width: var(--w, 34px); aspect-ratio: 652.5 / 583; flex: none; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); -webkit-mask: url(/assets/brand/logo-mark.svg) center / contain no-repeat; mask: url(/assets/brand/logo-mark.svg) center / contain no-repeat; }
.wordmark { font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.wordmark i { font-style: normal; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* v2.4.1 (owner): no default blue flash on tap and no selection highlight or callout on press-and-hold for links, cards and rows on touch screens.
   Text that people copy (details, code, inputs) stays selectable. */
* { -webkit-tap-highlight-color: transparent; }
@media (hover: none) and (pointer: coarse) {
  a, button, [role='button'], [role='link'], [role='menuitem'], [tabindex], label, summary, .row, .fcard, .lrow, .card, .nav-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  input, textarea, select, [contenteditable='true'], pre, code, .selectable, .pv-details, .pv-details * { -webkit-user-select: text; user-select: text; }
}

/* v2.4.3 (owner): no sharp cuts anywhere. A low-specificity default for every control that has no transition of its own (a rule with a class wins over :where). */
:where(button, [role='button'], [role='switch'], [role='radio'], summary) {
  transition: background-color var(--t-std) var(--ease), border-color var(--t-std) var(--ease), color var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease), opacity var(--t-std) var(--ease);
}

/* v2.4.4: a control that only shows on wide screens (the Library settings icon is not on phones) */
@media (max-width: 899px) { .is-wide-only { display: none !important; } }
